]>
Commit | Line | Data |
---|---|---|
e3aa9eba RO |
1 | 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2 | ||
3 | * gcc-interface/Makefile.in (PICFLAG_FOR_TARGET): New. | |
4 | (GNATLIBCFLAGS_FOR_C): Replace | |
5 | TARGET_LIBGCC2_CFLAGS by PICFLAG_FOR_TARGET. | |
6 | (gnatlib-shared-default, gnatlib-shared-dual-win32) | |
7 | (gnatlib-shared-win32, gnatlib-shared-darwin, gnatlib-shared) | |
8 | (gnatlib-sjlj, gnatlib-zcx): Likewise. | |
9 | ||
f446d60e EB |
10 | 2011-08-07 Eric Botcazou <ebotcazou@adacore.com> |
11 | ||
12 | * gcc-interface/Makefile.in (raise-gcc.o): Fix previous change. | |
13 | ||
588c8f48 EB |
14 | * gcc-interface/gigi.h (enumerate_modes): Fix formatting. |
15 | ||
16 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Revert latest change. | |
17 | ||
28d711bf NR |
18 | 2011-08-05 Nicolas Roche <roche@adacore.com> |
19 | ||
20 | * gcc-interface/Makefile.in: Don't use directly ../xgcc to build shared | |
21 | libgnat. Use rather the value of GCC_FOR_TARGET. Fix issue with | |
22 | canadian cross. | |
23 | * gcc-interface/Make-lang.in: Add support for canadian cross setting. | |
24 | ||
993f8920 AC |
25 | 2011-08-05 Matthew Heaney <heaney@adacore.com> |
26 | ||
27 | * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Child_Count, Child_Depth): | |
28 | subprogram bodies declared out-of-order. | |
29 | ||
30 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
31 | ||
32 | * sem_util.adb (Unique_Name): only prefix with "standard" the names of | |
33 | entities directly in package Standard, otherwise skip the standard | |
34 | prefix. | |
35 | ||
9b3956dd RD |
36 | 2011-08-05 Robert Dewar <dewar@adacore.com> |
37 | ||
38 | * a-cbmutr.adb: Minor reformatting | |
39 | (Allocate_Node): refactor node allocation algorithm | |
40 | ||
41 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
42 | ||
43 | * opt.ads, opt.adb (Debug_Pragmas_Disabled): New switch. | |
44 | * sem_prag.adb (Analyze_Pragma, case Debug_Policy): Implement Disable | |
45 | mode. | |
46 | (Analyze_Pragma, case Check_Policy): Ditto. | |
47 | * sem_prag.ads (Check_Disabled): New function | |
48 | * snames.ads-tmpl: Add Name_Disable. | |
49 | ||
50 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
51 | ||
52 | * gnat_rm.texi: Document implementation-defined policy DISABLE for | |
53 | pragmas Assertion_Policy, Check_Policy, Debug_Policy. | |
54 | ||
79e705d6 AC |
55 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> |
56 | ||
57 | * sem_prag.adb (Analyze_Pragma, case Inline): reject an Inline pragma | |
58 | that appears in a generic formal part and applies to a formal | |
59 | subprogram. | |
60 | ||
61 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
62 | ||
63 | * a-cbmutr.ads: Minor reformatting. | |
64 | ||
23b6deca AC |
65 | 2011-08-05 Matthew Heaney <heaney@adacore.com> |
66 | ||
67 | * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Read): do not use T'Valid | |
68 | to check count, check sign of value instead. | |
69 | * a-comutr.adb, a-cimutr.adb (Write): return immediately if tree empty | |
70 | (Copy_Subtree): allocate copy of source element | |
71 | (Equal_Subtree): compare elements, not access objects | |
72 | ||
73 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
74 | ||
75 | * gnat_ugn.texi: Fix VMS alternative. | |
76 | ||
a2773bd3 AC |
77 | 2011-08-05 Thomas Quinot <quinot@adacore.com> |
78 | ||
79 | * sem_ch11.adb: Add comment. | |
80 | ||
81 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
82 | ||
83 | * exp_util.adb: Minor comment fix. | |
84 | ||
85 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
86 | ||
87 | * scng.adb (Error_Unterminated_String): Improve flag position when | |
88 | comma present. | |
89 | ||
90 | 2011-08-05 Matthew Heaney <heaney@adacore.com> | |
91 | ||
92 | * Makefile.rtl, impunit.adb: Added a-cbmutr.ad[sb] (bounded multiway | |
93 | tree containers). | |
94 | * a-cbmutr.ads, a-cbmutr.adb: This is the new Ada 2012 unit for bounded | |
95 | multiway tree containers. | |
96 | ||
97 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
98 | ||
99 | * styleg.adb (Check_Comment): Implement comment spacing of 1 or 2 | |
100 | * stylesw.adb: Implement -gnatyC to control comment spacing | |
101 | * stylesw.ads (Style_Check_Comments_Spacing): New switch (set by | |
102 | -gnatyc/C). | |
103 | * usage.adb: Add line for -gnatyC. | |
104 | ||
105 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
106 | ||
f446d60e | 107 | * gnat_ugn.texi: Document -gnatyC. |
a2773bd3 AC |
108 | * vms_data.ads: Implement COMMENTS1/COMMENTS2 (retaining COMMENTS as a |
109 | synonym for COMMENTS2). | |
110 | ||
dedac3eb RD |
111 | 2011-08-05 Robert Dewar <dewar@adacore.com> |
112 | ||
113 | * par_sco.adb, sem_ch3.adb, scos.ads, a-iteint.ads, sem_ch12.adb, | |
114 | a-cimutr.adb, a-cimutr.ads, sem_util.ads, sem_res.adb, a-fihema.adb, | |
115 | sem_ch4.adb, lib-xref-alfa.adb, exp_disp.adb, a-comutr.adb, | |
116 | a-comutr.ads, lib-xref.adb: Minor reformatting. | |
117 | ||
118 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
119 | ||
120 | * sem_ch11.adb (Analyze_Raise_Statement): Kill assignment to formal | |
121 | warning if there is an exception handler present. | |
122 | ||
7c62a85a AC |
123 | 2011-08-05 Pascal Obry <obry@adacore.com> |
124 | ||
125 | * a-iteint.ads: Fix copyright year. | |
126 | ||
127 | 2011-08-05 Thomas Quinot <quinot@adacore.com> | |
128 | ||
129 | * par_sco.adb (Traverse_Declarations_Or_Statements): Do not generate a | |
130 | statement SCO for a USE clause or a representation clause. | |
131 | ||
132 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
133 | ||
134 | * lib-xref-alfa.adb (Collect_ALFA): generate the proper relation | |
135 | between body and spec for stub. | |
136 | (Detect_And_Add_ALFA_Scope): take into account subprogram stub | |
137 | * lib-xref.adb (Enclosing_Subprogram_Or_Package): in the case of a | |
138 | pragma precondition or postcondition, for which the enclosing | |
139 | subprogram or package in the AST is not the desired one, return empty. | |
140 | ||
e49208a9 AC |
141 | 2011-08-05 Thomas Quinot <quinot@adacore.com> |
142 | ||
143 | * g-expect.adb: Minor reformatting. | |
144 | ||
145 | 2011-08-05 Bob Duff <duff@adacore.com> | |
146 | ||
147 | * a-fihema.adb: Comment out OS_Lib. | |
148 | ||
149 | 2011-08-05 Matthew Heaney <heaney@adacore.com> | |
150 | ||
151 | * Makefile.rtl, impunit.adb: Added a-c[oi]mutr.ad[sb] | |
152 | (unbounded multiway tree containers) and a-iteint.ads. | |
153 | * a-comutr.ads, a-comutr.adb: | |
154 | This is the new Ada 2012 unit for unbounded multiway tree containers | |
155 | * a-cimutr.ads, a-cimutr.adb | |
156 | This is the new Ada 2012 unit for indefinite multiway tree containers | |
157 | * a-iteint.ads: New file. | |
158 | ||
201cdb74 RO |
159 | 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
160 | ||
f446d60e | 161 | * gcc-interface/Makefile.in (raise-gcc.o): Search $(srcdir)/../libgcc. |
201cdb74 | 162 | |
d50f4827 AC |
163 | 2011-08-05 Bob Duff <duff@adacore.com> |
164 | ||
165 | * sinfo.ads, sinfo.adb (Subpool_Handle_Name): New attribute for | |
166 | subpools. | |
167 | * par-ch4.adb (P_Allocator): Parse new subpool specification syntax. | |
168 | ||
169 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
170 | ||
171 | * sem_ch4.adb (Try_Container_Indexing): New procedure to implement the | |
172 | general indexing aspects of Ada2012. Called when analyzing indexed | |
173 | components when other interpretations fail. | |
174 | * sem_ch8.adb (Find_Direct_Name): check for implicit dereference only | |
175 | in an expression context where overloading is meaningful. This excludes | |
176 | the occurrence in an aspect specification (efficiency only). | |
177 | * sem_attr.adb (Analyze_Attribute): indicate that the attributes | |
178 | related to iterators can be set by an attribute specification, but | |
179 | cannot be queried. | |
180 | * sem_ch13.adb (Analyze_Aspect_Specifications): handle | |
181 | Constant_Indexing and Variable_Indexing. | |
182 | (Check_Indexing_Functions): New procedure to perform legality checks. | |
183 | Additional semantic checks at end of declarations. | |
184 | ||
efe05dfc AC |
185 | 2011-08-05 Sergey Rybin <rybin@adacore.com> |
186 | ||
187 | * tree_io.ads: Update ASIS_Version_Number because of the change of the | |
188 | order of calling Tree_Write/Tree_Read routines made for aspects. | |
189 | ||
190 | 2011-08-05 Bob Duff <duff@adacore.com> | |
191 | ||
192 | * a-fihema.adb (Finalize): Fix race condition. | |
193 | ||
5f9cdefe AC |
194 | 2011-08-05 Yannick Moy <moy@adacore.com> |
195 | ||
196 | * sem_ch12.adb (Analyze_Package_Instantiation, | |
197 | Need_Subprogram_Instance_Body): do not generate instance bodies in ALFA | |
198 | mode. | |
199 | ||
200 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
201 | ||
202 | * sem_type.adb (Specific_Type): in an instance, the type-specific | |
203 | operand of an equality check that involves null may have a private | |
204 | type. Use full view to determine legality of construct. | |
205 | ||
822868aa AC |
206 | 2011-08-05 Vincent Celier <celier@adacore.com> |
207 | ||
208 | * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to | |
209 | delete or close the file when the call to gnatmake was successful. | |
210 | ||
211 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
212 | ||
213 | * gnat1drv.adb (Adjust_Global_Switches): in ALFA mode, set | |
214 | Global_Discard_Names. | |
215 | ||
216 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
217 | ||
218 | * sinfo.ads: comments on use of entity field for aspect specifications. | |
219 | ||
220 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
221 | ||
222 | * sem_ch12.adb (Reset_Entity): If the entity field of the associated | |
223 | node is not itself an entity but a selected component, it is a | |
224 | rewritten parameterless call to an en enclosing synchronized operation, | |
225 | and this expansion will be performed again in the instance, so there is | |
226 | no global information to preserve. | |
227 | ||
44a10091 AC |
228 | 2011-08-05 Javier Miranda <miranda@adacore.com> |
229 | ||
230 | * exp_disp.adb (Set_All_DT_Position): Cleanup code and improve support | |
231 | for renamings of predefined primitives. | |
232 | (In_Predef_Prims_DT): New subprogram. | |
233 | ||
234 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
235 | ||
236 | * sem_util.adb, sem_util.ads (Check_Implicit_Dereference): If a | |
237 | possible interpretation of name is a reference type, add an | |
238 | interpretation that is the designated type of the reference | |
239 | discriminant of that type. | |
240 | * sem_res.adb (resolve): If the interpretation imposed by context is an | |
241 | implicit dereference, rewrite the node as the deference of the | |
242 | reference discriminant. | |
243 | * sem_ch3.adb (Analyze_Subtype_Declaration, Build_Derived_Record_Type, | |
244 | Build_Discriminated_Subtype): Inherit Has_Implicit_Dereference from | |
245 | parent type or base type. | |
246 | * sem_ch4.adb (Process_Indexed_Component, | |
247 | Process_Overloaded_Indexed_Component, Indicate_Name_And_Type, | |
248 | Analyze_Overloaded_Selected_Component, Analyze_Selected_Component): | |
249 | Check for implicit dereference. | |
250 | (List_Operand_Interps): Indicate when an implicit dereference is | |
251 | ambiguous. | |
252 | * sem_ch8.adb (Find_Direct_Name): Check for implicit dereference. | |
253 | ||
254 | 2011-08-05 Thomas Quinot <quinot@adacore.com> | |
255 | ||
256 | * scos.ads: Update documentation of SCO table. Pragma statements can now | |
257 | be marked as disabled (using 'p' instead of 'P' as the statement kind). | |
258 | * par_sco.ads, par_sco.adb: Implement the above change. | |
259 | (Process_Decisions_Defer): Generate a P decision for the first parameter | |
260 | of a dyadic pragma Debug. | |
261 | * sem_prag.adb (Analyze_Pragma, case Debug): Mark pragma as enabled if | |
262 | necessary. | |
263 | * put_scos.adb: Code simplification based on above change. | |
264 | ||
bb3c784c AC |
265 | 2011-08-05 Robert Dewar <dewar@adacore.com> |
266 | ||
267 | * sem_ch3.adb, gnatcmd.adb, switch-c.adb, exp_attr.adb, make.adb, | |
268 | bindgen.adb, einfo.adb, sem_ch12.adb, sem_attr.adb, a-fihema.adb, | |
269 | a-fihema.ads, sem_elab.adb, sem_elab.ads, aspects.adb, opt.ads, | |
270 | prj-conf.adb, sem_ch13.adb, s-ficobl.ads: Minor reformatting | |
271 | ||
272 | 2011-08-05 Bob Duff <duff@adacore.com> | |
273 | ||
274 | * a-stunau.ads, g-spipat.adb: Update comments. | |
275 | ||
36f686f9 BD |
276 | 2011-08-05 Bob Duff <duff@adacore.com> |
277 | ||
278 | * a-fihema.ads: Minor comment fix. | |
279 | * a-fihema.adb (Allocate, Deallocate): Assert that the alignment is | |
280 | correct. | |
281 | (Attach, Detach): Remove some unnecessary code. | |
282 | (Finalize): Remove Node_Ptr_To_Address, replace with a constant. | |
283 | ||
7882673f BD |
284 | 2011-08-05 Bob Duff <duff@adacore.com> |
285 | ||
286 | * a-fihema.ads, a-fihema.adb (Finalization_Collection): Avoid heap | |
287 | allocation for Objects component. This simplifies the code somewhat. It | |
288 | is also a little more efficient in the not-so-unusual case where there | |
289 | are no controlled objects allocated. | |
290 | Make Finalization_Started flag atomic. | |
291 | (Finalize): Avoid unnecessary detachment of items from the list. | |
292 | (pcol): Minor cleanup. | |
293 | ||
d34cd274 AC |
294 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> |
295 | ||
296 | * sem_ch12.adb (Analyze_Formal_Package_Declaration): reject a formal | |
297 | package whose name is the same as that of the generic unit, or its | |
298 | ultimate prefix. | |
299 | ||
300 | 2011-08-05 Bob Duff <duff@adacore.com> | |
301 | ||
302 | * a-fihema.adb, a-fihema.ads: Minor comment improvements. | |
303 | * sem_ch3.adb, exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb: | |
304 | Minor comment fixes. | |
305 | ||
00332244 AC |
306 | 2011-08-05 Arnaud Charlet <charlet@adacore.com> |
307 | ||
308 | * make.adb (Linking_Phase): No longer need to set source search path | |
309 | before calling gnatlink in CodePeer mode. | |
310 | * gnatlink.adb (Gnatlink): No longer pass -gnat83/95/05/12 switch to | |
311 | gcc in CodePeer mode, since the binder generated file no longer has a | |
312 | 'with Main'. | |
313 | * switch.ads, switch.adb (Is_Language_Switch): Removed. | |
314 | * switch-c.adb: Update comment. | |
315 | ||
316 | 2011-08-05 Thomas Quinot <quinot@adacore.com> | |
317 | ||
318 | * exp_strm.adb, bindgen.adb, s-ficobl.ads: Minor reformatting. | |
319 | ||
320 | 2011-08-05 Nicolas Roche <roche@adacore.com> | |
321 | ||
322 | * gnat_ugn.texi: Fix minor syntax error issue. | |
323 | ||
324 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
325 | ||
326 | * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to | |
327 | delete or close the file when the call to gnatmake returns a non | |
328 | successful return code. | |
329 | ||
330 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
331 | ||
332 | * exp_ch4.adb (Expand_N_Type_Conversion): When expanding a predicate | |
333 | check, indicate that the copy of the original node does not come from | |
334 | source, to prevent an infinite recursion of the expansion. | |
335 | ||
336 | 2011-08-05 Johannes Kanig <kanig@adacore.com> | |
337 | ||
338 | * debug.adb: document switch -gnatd.G for gnat2why, which deactivates | |
339 | VC generation for subprogram bodies. | |
340 | ||
341 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
342 | ||
343 | * einfo.ads: Typo. | |
344 | * sem_ch3.adb (Signed_Integer_Type_Declaration): in ALFA mode, define | |
345 | the base type with the smallest allowed base type. | |
346 | ||
347 | 2011-08-05 Sergey Rybin <rybin@adacore.com> | |
348 | ||
349 | * tree_gen.adb, tree_in.adb, aspects.adb: Fix tree read-write for | |
350 | aspects. | |
351 | ||
352 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
353 | ||
354 | * sem_ch12.ads: minor comment updates. | |
355 | ||
356 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
357 | ||
358 | * sem_ch12.adb (Analyze_Formal_Package_Declaration): in an | |
359 | instantiation and a formal package the compiler generates a package | |
360 | renaming declaration so that the generic name within the declaration | |
361 | is interpreted as a renaming of the instance. At the end of a formal | |
362 | package declaration, this renaming must become invisible. | |
363 | ||
0da80d7d AC |
364 | 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com> |
365 | ||
366 | * exp_ch7.adb (Is_Init_Call): Reimplemented to avoid character | |
367 | comparison and rely on concrete entities instead. | |
368 | ||
369 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
370 | ||
371 | * einfo.ads, einfo.adb (Has_Implicit_Dereference): new flag on types | |
372 | and discriminants, to indicate that the type has an access discriminant | |
373 | that supports implicit dereference. | |
374 | * snames.ads-tmpl: Add names of aspects and attributes related to | |
375 | Ada2012 iterators: constant_indexing, default_iterator, | |
376 | iterator_element, implicit_dereference, variable_indexing. | |
377 | * aspects.ads, aspects.adb: entries for iterator-related aspects. | |
378 | * sem_ch13.adb (Analyze_aspect_specifications): dummy entries for | |
379 | iterator-related aspects. | |
380 | * sem_attr.adb, exp_attr.adb Dummy entries for iterator-related aspects. | |
381 | ||
382 | 2011-08-05 Sergey Rybin <rybin@adacore.com> | |
383 | ||
384 | * gnat_ugn.texi, vms_data.ads: Extend the subsection about coupling | |
385 | metrics in gnatmetric to cover new kinds of coupling mentrics. | |
386 | ||
387 | 2011-08-05 Steve Baird <baird@adacore.com> | |
388 | ||
389 | * bindgen.adb (Gen_CodePeer_Wrapper): Call Ada_Main_Program instead | |
2c7f9cc0 | 390 | of calling the user-defined main subprogram. |
0da80d7d AC |
391 | (Gen_Main): Declare Ada_Main_Program and (if CodePeer_Mode |
392 | is set) Call_Main_Subprogram ahead of, as opposed to | |
393 | inside of, Main. | |
394 | (Gen_Output_File_Ada): Remove CodePeer_Mode-conditional | |
395 | generation of a "with" of the user-defined main subprogram. | |
396 | Remove CodePeer_Mode-conditional call to Gen_CodePeer_Wrapper | |
397 | (which is now called from Gen_Main instead). | |
398 | ||
73242473 AC |
399 | 2011-08-05 Emmanuel Briot <briot@adacore.com> |
400 | ||
401 | * projects.texi: Added reference to the Makefile package. | |
402 | ||
403 | 2011-08-05 Thomas Quinot <quinot@adacore.com> | |
404 | ||
405 | * exp_ch7.adb: Minor comment rewording. | |
406 | ||
407 | 2011-08-05 Ed Falis <falis@adacore.com> | |
408 | ||
409 | * env.c: Fix comment. | |
410 | ||
411 | 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com> | |
412 | ||
413 | * sem_elab.adb (Is_Finalization_Procedure): Reimplemented to avoid | |
414 | character comparison and rely on concrete entities instead. | |
415 | ||
97ed5872 AC |
416 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> |
417 | ||
418 | * sem_ch3.adb: (Check_Private_Overriding): better error message, | |
419 | suggested by AI95-0068. | |
420 | ||
421 | 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com> | |
422 | ||
423 | * exp_ch7.adb (Find_Last_Init): Use Next_Suitable_Statement to retrieve | |
424 | the two potential initialization calls. This accounts for any | |
425 | access-before-elaboration checks which may precede the initialization | |
426 | calls. | |
427 | (Next_Suitable_Statement): New routine. Returns the next real statement | |
428 | after the input node while skipping generated checks. | |
429 | * sem_elab.adb (Check_A_Call): New formal parameter In_Init_Proc along | |
430 | with comment on usage. | |
431 | Do not generate Elaborate_All when the trigger is a finalization call | |
432 | coming from a type init proc. | |
433 | (Check_Elab_Call): Propagate the initialization procedure context to | |
434 | subsequent calls to Check_A_Call. | |
435 | (Check_Internal_Call_Continue): Propagate the initialization procedure | |
436 | context to subsequent calls to Check_Elab_Call. | |
437 | (Is_Finalization_Procedure): New routine. Returns True if the input | |
438 | entity denotes a [Deep_]Finalize routine. | |
439 | * sem_elab.ads (Check_Elab_Call): New formal parameter In_Init_Proc | |
440 | along with comment on usage. | |
441 | ||
442 | 2011-08-05 Vadim Godunko <godunko@adacore.com> | |
443 | ||
444 | * s-atocou.ads: Add list of supported platforms. | |
445 | ||
446 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
447 | ||
448 | * sem_prag.adb, restrict.adb: Correct style for or'ing Boolean variables | |
449 | ||
450 | * opt.ads (Disable_ALI_File): new Boolean flag | |
451 | * lib-writ.adb (Write_ALI): when Disable_ALI_File is set, do nothing | |
452 | ||
453 | 2011-08-05 Ed Falis <falis@adacore.com> | |
454 | ||
455 | * env.c (__gnat_environ): Fix includes for RTPs and VTHREADS so that | |
456 | environ is properly defined. | |
457 | ||
458 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
459 | ||
460 | * make.adb (Compilation_Phase): Exit immediately when all objects have | |
461 | been found up to date, to avoid multiple exit messages. | |
462 | * prj-nmsc.adb (Add_Source): Allow duplicate source file names in the | |
463 | same project for languages with no compiler. | |
464 | * gnat_ugn.texi: Document compiler switch -gnateI and gnatmake switch | |
465 | -eI. | |
9aff36e9 RD |
466 | 2011-08-05 Robert Dewar <dewar@adacore.com> |
467 | ||
468 | * exp_ch7.ads, sem_type.adb, make.adb, sem_prag.adb, sem_util.adb, | |
469 | sem_util.ads, sem_attr.adb, restrict.ads, sem_ch6.adb, prj-conf.adb, | |
470 | prj-conf.ads, s-atocou.ads, s-atocou.adb, s-atocou-x86.adb, | |
471 | s-atocou-builtin.adb: Minor reformatting. | |
472 | ||
406935b6 AC |
473 | 2011-08-05 Yannick Moy <moy@adacore.com> |
474 | ||
475 | * exp_ch7.adb (Establish_Transient_Scope): in formal verification mode, | |
476 | if the node to wrap is a pragma check, this node and enclosed | |
477 | expression are not expanded, so do not apply any transformations here. | |
478 | * exp_prag.adb (Expand_Pragma_Check): document the need to avoid | |
479 | introducing transient scopes. | |
480 | ||
481 | 2011-08-05 Jose Ruiz <ruiz@adacore.com> | |
482 | ||
483 | * adaint.c (__gnat_set_writable, __gnat_set_readable, | |
484 | __gnat_set_executable, __gnat_set_non_writable, __gnat_set_non_readable, | |
485 | __gnat_copy_attribs): On VxWorks 6.x and later, the required chmod | |
486 | routine is available, so we use the default implementation of these | |
487 | functions. | |
488 | * s-os_lib.ads (Copy_File, Copy_Time_Stamps): Document that there is | |
489 | support for copying attributes on VxWorks 6. | |
490 | ||
491 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
492 | ||
493 | * debug.adb: Remove use of -gnatd.D. | |
494 | * gnat1drv.adb (Adjust_Global_Switches): adjust switches for ALFA mode | |
495 | * opt.ads: Simplify variables for ALFA mode, to keep one only | |
496 | * restrict.adb, sem_prag.adb: Adapt treatment done for CodePeer mode | |
497 | to ALFA mode. | |
498 | ||
499 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
500 | ||
501 | * prj-conf.adb (Do_Autoconf): Look also for --RTS in | |
502 | Builder'Default_Switches. | |
503 | ||
504 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
505 | ||
506 | * makeusg.adb: Add lines for --create-map-file switches. | |
507 | ||
508 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
509 | ||
510 | * freeze.adb (Freeze_Entity): For a subprogram, if a type in the | |
511 | profile is incomplete and the full view is available, replace it with | |
512 | the full view. | |
513 | * sem_ch6.adb (Possible_Freeze): if a type in the profile is | |
514 | incomplete, freezing the subprogram is delayed until the full view is | |
515 | frozen. | |
516 | * sem_type.adb (Disambiguate): an ambiguity between a user-defined | |
517 | fixed-point multiplication operator and the predefined operator is | |
518 | resolved in favor of the user-defined one. | |
519 | ||
96c891b3 RO |
520 | 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
521 | ||
522 | * init.c [__alpha__ && __osf__] (__gnat_error_handler): Use | |
523 | CONST_CAST. | |
524 | ||
276e7ed0 AC |
525 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
526 | ||
527 | * sem_util.ads, sem_unit.adb (Type_Without_Stream_Operation): determine | |
528 | whether a type lacks user-defined Read or Write operations, or has a | |
529 | component that lacks them. | |
530 | * sem_attr.adb (Check_Stream_Attribute): if restriction | |
531 | No_Default_Stream_Attributes is active, verify that all subcomponent | |
532 | types of the target have user-defined stream operations, and report | |
533 | error otherwise. | |
534 | * exp_ch3.adb (Stream_Operqtion_OK): use Type_Without_Stream_Operation. | |
535 | * exp_strm.adb: Build_Elementary_Input_Call, | |
536 | Build_Elementary_Write_Call): remove checks for restriction | |
537 | No_Default_Stream_Attributes, now checked in semantics. | |
538 | ||
539 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
540 | ||
541 | * prj-conf.ads, prj-conf.adb (Do_Autoconf): If there is no --RTS | |
542 | switches on the command line, look for all valid --RTS switches in the | |
543 | Builder switches and for each language use the first runtime name found | |
544 | to invoke gprconfig. | |
545 | (Get_Or_Create_Configuration_File): Warn if --RTS is specified on the | |
546 | command line and there is no auto-configuration. | |
547 | (Runtime_Name_Set_For): New function. | |
548 | ||
549 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
550 | ||
551 | * exp_ch7.adb (Build_Object_Declarations): Do not generate the | |
552 | elaborate initialization expression for variable Abort when processing | |
553 | a package body or a declaration. | |
554 | (Create_Finalizer): Propagate the package context when creating the | |
555 | exception-related variables. | |
556 | * exp_ch7.ads (Build_Object_Declarations): New formal parameter | |
557 | For_Package along with usage comment. | |
558 | ||
19172ae9 AC |
559 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
560 | ||
561 | * gcc-interface/Makefile.in: Clean up targets. | |
562 | Enable new package for atomic counters and copy-on-write implementation | |
563 | of unbounded strings on x86 platforms. | |
564 | * gcc-interface/Make-lang.in: Update dependencies. | |
565 | ||
0319cacc AC |
566 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
567 | ||
568 | * exp_ch7.adb: Minor reformatting. | |
569 | ||
570 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
571 | ||
572 | * exp_strm.adb: Minor reformatting. | |
573 | ||
574 | 2011-08-04 Vadim Godunko <godunko@adacore.com> | |
575 | ||
576 | * s-atocou.adb: Replace by dummy version and use on targets where atomic | |
577 | operations are not supported. | |
578 | * s-atocou-builtin.adb: Renamed from s-atocou.adb. | |
579 | * s-atocou-x86.adb: New file. | |
580 | * Makefile.rtl: Add s-atocou.o file | |
581 | ||
582 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
583 | ||
584 | * make.adb (Compile): Move setting of CodePeer_Mode to ... | |
585 | (Compilation_Phase): ... here. | |
586 | (Scan_Make_Arg): Now bind and link by default in CodePeer mode. | |
587 | ||
588 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
589 | ||
590 | * Make-generated.in: Fix minor typo in comment. | |
591 | ||
26e7e1a0 AC |
592 | 2011-08-04 Thomas Quinot <quinot@adacore.com> |
593 | ||
594 | * gnatls.adb: Use Prj.Env.Initialize_Default_Project_Path to retrieve | |
595 | the project path. | |
596 | ||
597 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
598 | ||
599 | * a-coinho.adb: Minor reformatting. | |
600 | ||
601 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
602 | ||
603 | * a-coinho.ads: Minor reformatting. | |
604 | ||
605 | 2011-08-04 Vadim Godunko <godunko@adacore.com> | |
606 | ||
607 | * s-atocou.ads, s-atocou.adb: New files. | |
608 | * a-strunb-shared.ads, a-strunb-shared.adb, a-stwiun-shared.ads, | |
609 | a-stwiun-shared.adb, a-stzunb-shared.ads, a-stzunb-shared.adb: Remove | |
610 | direct use of GCC's atomic builtins and replace them by use of new | |
611 | atomic counter package. | |
612 | ||
613 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
614 | ||
615 | * exp_strm.adb: better error message for No_Default_Stream_Attributes. | |
616 | ||
617 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
618 | ||
619 | * a-tags.adb (Unregister_Tag): Replace the complex address arithmetic | |
620 | with a call to Get_External_Tag. | |
621 | * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on | |
622 | subprogram usage. Remove the guard against package declarations and | |
623 | bodies since Build_Cleanup_Statements is no longer invoked in that | |
624 | context. | |
625 | (Build_Components): Initialize Tagged_Type_Stmts when the context | |
626 | contains at least one library-level tagged type. | |
627 | (Build_Finalizer): New local variables Has_Tagged_Types and | |
628 | Tagged_Type_Stmts along with associated comments on usage. Update the | |
629 | logic to include tagged type processing. | |
630 | (Create_Finalizer): Insert all library-level tagged type unregistration | |
631 | code before the jump block circuitry. | |
632 | (Expand_N_Package_Body): Remove the call to Build_Cleanup_Statements. | |
633 | (Expand_N_Package_Declaration): Remove the call to | |
634 | Build_Cleanup_Statements. | |
635 | (Process_Tagged_Type_Declaration): New routine. Generate a call to | |
636 | unregister the external tag of a tagged type. | |
637 | (Processing_Actions): Reimplemented to handle tagged types. | |
638 | (Process_Declarations): Detect the declaration of a library-level | |
639 | tagged type and carry out the appropriate actions. | |
640 | (Unregister_Tagged_Types): Removed. The machinery has been directly | |
641 | merged with Build_Finalizer. | |
642 | ||
7483c888 AC |
643 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
644 | ||
645 | * bindgen.ads, gnatlink.adb, sem_ch4.adb, gnatbind.adb, put_alfa.adb, | |
646 | gnatls.adb, exp_ch3.adb: Minor reformatting. | |
647 | ||
648 | 2011-08-04 Marc Sango <sango@adacore.com> | |
649 | ||
650 | * sem_attr.adb (Analyze_Attribute): Replace the message | |
651 | "invisible attribute of}" of the spark restriction violation in | |
652 | attribute reference by the simple message "invisible attribute of type". | |
653 | Indeed, the node value Error_Msg_Node_1 used is in conflit with the | |
654 | two insertion characters: '&' and '}'. | |
655 | ||
656 | 2011-08-04 Vadim Godunko <godunko@adacore.com> | |
657 | ||
658 | * impunit.adb (Non_Imp_File_Names_12): Add "a-coinho". | |
659 | * a-coinho.ads, a-coinho.adb: New file. | |
660 | * Makefile.rtl: Add Ada.Containers.Indefinite_Holders. | |
661 | ||
5207696c AC |
662 | 2011-08-04 Nicolas Roche <roche@adacore.com> |
663 | ||
664 | * alfa_test.adb: Not all ali files are containing alfa information even | |
665 | if compiled with -gnatd.F. So suppress warning about missing ALFA | |
666 | information. | |
667 | ||
668 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
669 | ||
670 | * lib-xref-alfa.adb (Add_ALFA_Scope): use non-empty unique name for | |
671 | scope. | |
672 | * put_alfa.adb: Check that scope name is not empty. | |
673 | ||
674 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
675 | ||
676 | * exp_ch3.adb (Stream_Operation_Ok): new predicate | |
677 | Needs_Elementary_Stream_Operation, to determine whether user-defined | |
678 | Read and Write attributes are available for the elementary components | |
679 | of the given type. If only the predefined attributes are available, | |
680 | then when restriction No_Default_Stream_Attributes is active the | |
681 | predefined stream attributes for the composite type cannot be created. | |
682 | ||
683 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
684 | ||
685 | * bindgen.adb: Fix obsolete comments and names from Ada/C days. | |
686 | Put routines in alpha order | |
687 | ||
2bd2d858 JR |
688 | 2011-08-04 Jose Ruiz <ruiz@adacore.com> |
689 | ||
690 | * gcc-interface/Makefile.in: Remove xenomai specific versions of system. | |
691 | * gcc-interface/Make-lang.in: Update dependencies. | |
692 | ||
8fae6016 AC |
693 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
694 | ||
695 | * gcc-interface/lang.opt: Add AdaWhy language, simimlar to Ada. | |
696 | * gcc-interface/lang-specs.h: Add handling of AdaWhy specs (calls | |
697 | gnat1why). | |
698 | ||
a54d0eb4 AC |
699 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
700 | ||
701 | * sem_ch3.adb, make.adb, a-cohata.ads, sem_prag.adb, makeutl.adb, | |
702 | lib-xref-alfa.adb: Minor reformatting. | |
703 | ||
704 | 2011-08-04 Marc Sango <sango@adacore.com> | |
705 | ||
706 | * sem_ch12.adb (Analyze_Generic_Package_Declaration, | |
707 | Analyze_Generic_Subprogram_Declaration, Analyze_Package_Instantiation, | |
708 | Analyze_Subprogram_Instantiation): Check absence of generic in SPARK | |
709 | mode. | |
710 | ||
711 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
712 | ||
713 | * bindgen.adb (Gen_Adainit_C): Remove. | |
714 | (Gen_Adafinal_C): Ditto. | |
715 | (Gen_Elab_Externals_C): Ditto. | |
716 | (Gen_Elab_Calls_C): Ditto. | |
717 | (Gen_Elab_Order_C): Ditto. | |
718 | (Gen_Elab_Defs_C): Ditto. | |
719 | (Gen_Finalize_Library_C): Ditto. | |
720 | (Gen_Finalize_Library_Defs_C): Ditto. | |
721 | (Gen_Main_C): Ditto. | |
722 | (Gen_Output_File_C): Ditto. | |
723 | (Gen_Restrictions_C): Ditto. | |
724 | (Gen_Versions_C): Ditto. | |
725 | (Write_Info_Ada_C): Ditto. | |
726 | (Gen_Object_Files_Options): Call WBI instead of Write_Info_Ada_C | |
727 | (Gen_Output_File): Do not force Ada_Bind_File anymore. | |
728 | Always call Gen_Output_File_Ada. | |
729 | * gnatlink.adb (Begin_Info): Now a constant. | |
730 | (End_Info): Ditto. | |
731 | (Ada_Bind_File): Remove | |
732 | (Process_Args): Do not handle -A/-C. Remove not Ada_Bind_File cases. | |
733 | * switch-b.adb (Scan_Binder_Switches): Do not handle -C. | |
734 | * gnatbind.adb (Gnatbind): Remove not Ada_Bind_File cases. | |
735 | * opt.ads (Ada_Bind_File): Remove. | |
736 | ||
737 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
738 | ||
739 | * projects.texi: Document target-specific directory in default project | |
740 | path for gnatmake. | |
741 | ||
742 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
743 | ||
744 | * gnatls.adb, prj-env.adb: Add $prefix/share/gpr to default project | |
745 | path in all cases . | |
746 | ||
24558db8 AC |
747 | 2011-08-04 Yannick Moy <moy@adacore.com> |
748 | ||
749 | * sem_ch3.adb, sem_ch5.adb, sem_util.adb, sem_ch4.adb, sem_ch8.adb, | |
750 | opt.ads, lib-xref.ads: Code clean up. | |
751 | ||
752 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
753 | ||
754 | * gnat_rm.texi: Update description of Test_Case | |
755 | * gnat_ugn.texi: Typo. | |
756 | ||
757 | 2011-08-04 Ed Falis <falis@adacore.com> | |
758 | ||
759 | * adaint.c (__gnat_get_number_of_cpus): fix typo in last checkin. | |
760 | ||
761 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
762 | ||
763 | * exp_ch4.adb (Suitable_Element): Skip field _parent on .NET/JVM when | |
764 | it is of type Root_Controlled. This action eliminates fields Prev and | |
765 | Next from type equality. | |
766 | ||
767 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
768 | ||
769 | * lib-xref-alfa.adb: Correct typo. | |
770 | ||
771 | 2011-08-04 Matthew Heaney <heaney@adacore.com> | |
772 | ||
773 | * a-cohata.ads (Hash_Table_Type): default-initialize the Nodes | |
774 | component. | |
775 | ||
1f9939b5 AC |
776 | 2011-08-04 Yannick Moy <moy@adacore.com> |
777 | ||
778 | * sem_prag.adb (Check_Arg_Is_String_Literal): remove useless procedure | |
779 | (Analyze_Pragma): allow static string expression for name of Test_Case, | |
780 | instead of simply string literals. | |
781 | * sem_util.adb (Get_Name_From_Test_Case_Pragma): adapt to static string | |
782 | expressions. | |
783 | ||
784 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
785 | ||
786 | * makeutl.adb (Complete_Mains.Find_File_Add_Extension): Use canonical | |
787 | case suffixes to find truncated main sources. | |
788 | ||
789 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
790 | ||
791 | * impunit.adb (Non_Imp_File_Names_95): Add g-tastus. | |
792 | s-stusta.adb (Compute_All_Task): Use Put_Line instead of Put. | |
793 | (Compute_Current_Task): Ditto. | |
794 | ||
795 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
796 | ||
797 | * gnat_ugn.texi: Mention GNAT.Task_Stack_Usage. | |
798 | ||
799 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
800 | ||
801 | * lib-xref-alfa.adb (Is_Global_Constant): new function that detects | |
802 | library-level constant. | |
803 | (Add_ALFA_Xrefs): ignore global constants in ALFA xref. | |
804 | * sem_res.adb (Resolve_Actuals): do not add cross-reference to Formal | |
805 | used as selector of parameter association, in ALFA mode. | |
806 | ||
15d8a51d AC |
807 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
808 | ||
809 | * exp_ch5.adb, exp_ch7.adb, exp_util.adb, bindgen.adb, sem_prag.adb, | |
810 | s-tassta.adb, exp_ch4.adb, exp_disp.adb, s-stausa.adb: Minor | |
811 | reformatting. | |
812 | ||
813 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
814 | ||
815 | * make.adb (Linking_Phase): Set source search path before calling | |
816 | gnatlink in CodePeer mode. | |
817 | ||
f46faa08 AC |
818 | 2011-08-04 Javier Miranda <miranda@adacore.com> |
819 | ||
820 | * exp_ch7.adb (Expand_N_Package_Body, Expand_N_Package_Declaration): | |
821 | Remove code which takes care of building TSDs. | |
822 | * rtsfind.ads (RE_Check_Interface_Conversion): New entity. | |
823 | * exp_ch4.adb (Apply_Accessibility_Check): Add support for generating | |
824 | the accessibility check in VM targets. | |
825 | * exp_disp.adb (Make_VM_TSD): Spec moved to exp_disp.ads | |
826 | (Building_Static_DT): Now returns false for VM targets. | |
827 | (Build_VM_TSDs): Removed. | |
828 | (Expand_Interface_Conversion): Generate missing runtime check for | |
829 | conversions to interface types whose target type is unknown at compile | |
830 | time. | |
831 | (Make_VM_TSD): Add missing code to disable the generation of calls to | |
832 | Check_TSD if the tagged type is not defined at library level, or not | |
833 | has a representation clause specifying its external tag, or -gnatdQ is | |
834 | active. | |
835 | * exp_disp.ads (Build_VM_TSDs): Removed. | |
836 | (Make_VM_TSDs): Spec relocated from exp_disp.adb | |
837 | * sem_disp.adb (Check_Dispatching_Operation): No code required to | |
838 | register primitives in the dispatch tables in VM targets. | |
839 | * exp_ch3.adb (Expand_N_Object_Declaration): Remove wrong expansion of | |
840 | initialization of class-wide interface objects in VM targets. | |
841 | (Expand_Freeze_Record_Type): For VM targets call Make_VM_TSD (instead | |
842 | of Make_DT). | |
843 | ||
844 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> | |
845 | ||
846 | * gnatlink.adb (Gnatlink): Correct missleading error message displayed | |
847 | when dotnet-ld cannot be found. | |
848 | ||
849 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
850 | ||
851 | * bindgen.adb: Simplify significantly generation of binder body file in | |
852 | CodePeer mode. | |
853 | * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Prevent assert failure | |
854 | when compiling binder generated file in CodePeer mode (xxx'Elab_Spec | |
855 | not expanded). | |
856 | ||
2ba7e31e AC |
857 | 2011-08-04 Yannick Moy <moy@adacore.com> |
858 | ||
859 | * sem_prag.adb, sem.ads: Code cleanup. | |
860 | ||
861 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
862 | ||
863 | * s-tassta.adb (Task_Wrapper): Rewrite the dynamic stack usage part. | |
864 | * s-stausa.adb, s-stausa.ads: Major rewrite. Now provides accurate | |
865 | results if possible. | |
866 | * s-stusta.adb (Print): Adjust after changes in s-stausa. | |
867 | * gnat_ugn.texi: Update dynamic stack usage section. | |
868 | ||
869 | 2011-08-04 Steve Baird <baird@adacore.com> | |
870 | ||
871 | * bindgen.adb (Gen_CodePeer_Wrapper): new procedure. | |
872 | Generate (if CodePeer_Mode is set) a "wrapper" subprogram which | |
873 | contains only a call to the user-defined main subprogram. | |
874 | (Gen_Main_Ada) - If CodePeer_Mode is set, then | |
875 | call the "wrapper" subprogram instead of directly | |
876 | calling the user-defined main subprogram. | |
877 | ||
878 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
879 | ||
880 | * exp_ch5.adb (Expand_N_Case_Statement): Check the statements of all | |
881 | alternatives of a case statement for controlled objects. Rename local | |
882 | variable A to Dead_Alt. | |
883 | (Expand_N_If_Statement): Check the then and else statements of an if | |
884 | statement for controlled objects. Check the then statements of all | |
885 | elsif parts of an if statement for controlled objects. | |
886 | (Expand_N_Loop_Statement): Check the statements of a loop for controlled | |
887 | objects. | |
888 | * exp_ch7.adb (Process_Transient_Objects): Rewrite the condition which | |
889 | detects a loop associated with the expansion of an array object. | |
890 | Augment the processing of the loop statements to account for a possible | |
891 | wrap done by Process_Statements_For_Controlled_Objects. | |
892 | * exp_ch9.adb (Expand_N_Asynchronous_Select): Check the triggering | |
893 | statements and abortable part of an asynchronous select for controlled | |
894 | objects. | |
895 | (Expand_N_Conditional_Entry_Call): Check the else statements of a | |
896 | conditional entry call for controlled objects. | |
897 | (Expand_N_Selective_Accept): Check the alternatives of a selective | |
898 | accept for controlled objects. | |
899 | (Expand_N_Timed_Entry_Call): Check the entry call and delay | |
900 | alternatives of a timed entry call for controlled objects. | |
901 | * exp_ch11.adb (Expand_Exception_Handlers): Check the statements of an | |
902 | exception handler for controlled objects. | |
903 | * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)): | |
904 | Add formal parameter Nested_Constructs along with its associated | |
905 | comment. | |
906 | (Requires_Cleanup_Actions (Node_Id)): Update all calls to | |
907 | Requires_Cleanup_Actions. | |
908 | (Process_Statements_For_Controlled_Objects): New routine. | |
909 | * exp_util.ads (Process_Statements_For_Controlled_Objects): New | |
910 | routine. Inspect a node which contains a non-handled sequence of | |
911 | statements for controlled objects. If such an object is found, the | |
912 | statements are wrapped in a block. | |
913 | ||
1bf773bb AC |
914 | 2011-08-04 Bob Duff <duff@adacore.com> |
915 | ||
916 | * sem_type.adb (Covers): If T2 is a subtype of a class-wide type, we | |
917 | need to compare with Class_Wide_Type (T2), in order to get at the | |
918 | original class-wide type node. | |
919 | * sem_type.ads (Covers): Improve the comment. | |
920 | * einfo.ads (Class_Wide_Type): Improve the comment. | |
921 | * exp_intr.adb (Expand_Unc_Deallocation): Remove unnecessary setting of | |
922 | the type of the Deref. | |
923 | ||
924 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
925 | ||
926 | * gnat_rm.texi: Document that Test_Case pragma can only appear on | |
927 | separate declarations. | |
928 | * sem_prag.adb (procedure Check_Identifier_Is_One_Of): new procedure to | |
929 | check identifier of pragma argument. | |
930 | (Chain_TC): check that no other test case associated to the same entity | |
931 | share the same name. | |
932 | (Check_Test_Case): disallow test case inside subprogram body | |
933 | (Analyze_Pragma): correct call to check identifier and not argument | |
934 | * sem_util.adb, sem_util.ads (Get_Name_From_Test_Case_Pragma): new | |
935 | function gets name from test case pragma. | |
936 | ||
dac3bede YM |
937 | 2011-08-04 Yannick Moy <moy@adacore.com> |
938 | ||
939 | * gnat_rm.texi: Document new pragma and aspect. | |
940 | * aspects.adb, aspects.ads (Aspect_Id): new value Aspect_Test_Case | |
941 | (No_Duplicates_Allowed): new constant array defining whether duplicates | |
942 | aspects of each kind can appear on the same declaration. | |
943 | * einfo.adb, einfo.ads (Spec_PPC_List): replace field with Contract | |
944 | field, which points to a node holding the previous Spec_PPC_List. | |
945 | * exp_ch9.adb, sem_ch6.adb, sem_prag.adb: Reach to Spec_PPC_List | |
946 | through the indirection with Contract. | |
947 | * exp_util.adb (Insert_Actions): raise Program_Error on N_Contract node | |
948 | * par-prag.adb (Prag): do nothing on Test_Case pragma | |
949 | * sem.adb (Analyze): abort on N_Contract, on which Analyze should not | |
950 | be called directly. | |
951 | * sem_attr.adb (Analyze_Attribute): allow attribute 'Result in | |
952 | component Ensures of Test_Case. | |
953 | * sem_ch12.adb, sem_ch6.adb, sem_ch9.adb | |
954 | (Analyze_Generic_Subprogram_Declaration, | |
955 | Analyze_Subprogram_Instantiation, | |
956 | Analyze_Abstract_Subprogram_Declaration, | |
957 | Analyze_Subprogram_Body_Helper, | |
958 | Analyze_Subprogram_Specification, Analyze_Entry_Declaration): | |
959 | insert contract in subprogram node at point of definition | |
960 | * sem_ch13.adb | |
961 | (Aspect_Loop): do not raise error on duplicate Test_Case aspect | |
962 | (Analyze_Aspect_Specifications): analyze Test_Case aspect and create | |
963 | corresponding pragma | |
964 | (Check_Aspect_At_Freeze_Point): raise Program_Error on Test_Case aspect | |
965 | * sem_ch3.adb (Analyze_Declarations): insert analysis of test-cases, | |
966 | similar to the analysis of pre/post | |
967 | (Derive_Subprogram): insert contract in subprogram node at point of | |
968 | derivation. | |
969 | * sem_prag.adb, sem_prag.ads | |
970 | (Check_Arg_Is_String_Literal, Check_Identifier): | |
971 | new checking procedures to be called in treatment of pragmas | |
972 | (Check_Test_Case): new procedure to check that a Test_Case aspect or | |
973 | pragma is well-formed. This does not check currently that 'Result is | |
974 | used only in the Ensures component of a Test_Case. | |
975 | (Analyze_Pragma): add case for Test_Case | |
976 | (Analyze_TC_In_Decl_Part): pre-analyze the Requires and Ensures | |
977 | components of a Test_Case. | |
978 | (Preanalyze_TC_Args): new procedure to preanalyze the boolean | |
979 | expressions in the 3rd (and 4th if present) arguments of a Test_Case | |
980 | pragma, treated as spec expressions. | |
981 | (Sig_Flags): add value -1 for Test_Case. | |
982 | * sem_util.adb, sem_util.ads (Get_Ensures_From_Test_Case_Pragma, | |
983 | Get_Requires_From_Test_Case_Pragma): getters for both expression | |
984 | components of a Test_Case. | |
985 | * sinfo.adb, sinfo.ads (N_Contract): new kind of node used as | |
986 | indirection between an entry or [generic] subprogram entity and its | |
987 | pre/post + test-cases. | |
988 | (Spec_PPC_List, Spec_TC_List, Set_Spec_PPC_List, Set_Spec_TC_List): | |
989 | get/set for fields of an N_Contract node. | |
990 | * snames.ads-tmpl (Name_Test_Case, Name_Ensures, Name_Mode, | |
991 | Name_Normal, Name_Requires, Name_Robustness, Pragma_Test_Case): new | |
992 | names and pragma for Test_Case. | |
993 | * sprint.adb (Sprint_Node): raise Program_Error on N_Contract node | |
994 | ||
6a2e5d0f AC |
995 | 2011-08-04 Vincent Celier <celier@adacore.com> |
996 | ||
997 | * gnat_ugn.texi: Improve documentation of gnatmake switch | |
998 | --source-info-file=. | |
999 | ||
1000 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
1001 | ||
1002 | * exp_ch7.adb (Make_Final_Call): Add local variable Atyp (assertion | |
1003 | type). Initialize Atyp to the appropriate type which is later checked | |
1004 | for completion. Rewrite the assertion associated with private type | |
1005 | completion. | |
1006 | ||
1007 | 2011-08-04 Ed Falis <falis@adacore.com> | |
1008 | ||
1009 | * adaint.c: Add call to vxCpuConfiguredGet for VxWorks SMP to | |
1010 | initialize the number of CPUs. | |
1011 | ||
1012 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
1013 | ||
1014 | * sem_type.adb (Disambiguate): New subsidiary routine | |
1015 | In_Same_Declaration_List, to implement AI05-0020: a user-defined | |
1016 | equality on an anonymous access type whose designated type is private | |
1017 | does not lead to an ambiguity with the universal access equality | |
1018 | operator in the body or child units of the defining package. The same | |
1019 | is true for a multiplication operator on a private type completed with | |
1020 | a fixed-point-type. | |
1021 | ||
1022 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
1023 | ||
1024 | * opt.ads (Init_Or_Norm_Scalars_Config): Removed. | |
1025 | (Normalize_Scalars_Config): Removed. | |
1026 | * opt.adb | |
1027 | (Register_Opt_Config_Switches): Remove registering config values of | |
1028 | Init_Or_Norm_Scalars_Config and Normalize_Scalars_Config. | |
1029 | (Restore_Opt_Config_Switches): Remove code which restores the values of | |
1030 | Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of | |
1031 | Init_Or_Norm_Scalars. | |
1032 | (Save_Opt_Config_Switches): Remove code which saves values of | |
1033 | Init_Or_Norm_Scalars and Normalize_Scalars. | |
1034 | (Set_Opt_Config_Switches): Remove code which restores config values of | |
1035 | Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of | |
1036 | Init_Or_Norm_Scalars. | |
1037 | ||
1038 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
1039 | ||
1040 | * frontend.adb (Frontend): remove previous patch to avoid full | |
1041 | qualification in ALFA mode. | |
1042 | * lib-xref-alfa.adb (Add_ALFA_Xrefs): use unique name for variables. | |
1043 | * sem_util.adb, sem_util.ads (Unique_Name): new function to define a | |
1044 | unique name for an entity, which could be used to identify the entity | |
1045 | across compilation units. | |
1046 | ||
1047 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
1048 | ||
1049 | * prj-env.adb | |
1050 | (Initialize_Default_Project_Path): Add target specific directory | |
1051 | ($prefix/$target/lib/gnat) in front of project path in all cases | |
1052 | (making gnatmake's behaviour consistent with gprbuild). | |
1053 | * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb: | |
1054 | Pass target name from Sdefault to project subsystem. | |
1055 | * gnatls.adb: Show new target specific default project directory. | |
1056 | ||
1057 | 2011-08-04 Johannes Kanig <kanig@adacore.com> | |
1058 | ||
1059 | * cstand.adb: Add Information to Identifier in Standard | |
1060 | (Identifer_For): Set Entity to the corresponding entity | |
1061 | ||
483361a6 AC |
1062 | 2011-08-04 Sergey Rybin <rybin@adacore.com> |
1063 | ||
1064 | * gnat_ugn.texi: Update doc on gnatcheck. | |
1065 | ||
1066 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
1067 | ||
1068 | * lib-xref-alfa.adb (Add_ALFA_Xrefs): correct definition of ranges of | |
1069 | xrefs in a scope. | |
1070 | ||
1071 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
1072 | ||
1073 | * exp_prag.adb (Expand_Pragma_Check): in ALFA mode, return without | |
1074 | performing expansion. | |
1075 | * sem_ch6.adb (Analyze_Subprogram_Body_Helper, | |
1076 | Analyze_Generic_Subprogram_Body): protect call to Process_PCCs so that | |
1077 | it is not called in ALFA mode. | |
1078 | ||
ef5569c6 AC |
1079 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
1080 | ||
1081 | * make.adb, osint.adb, osint.ads (Reset_Command_Line_Files): not used | |
1082 | after all, so removed. | |
1083 | ||
1084 | 2011-08-04 Sergey Rybin <rybin@adacore.com> | |
1085 | ||
1086 | * vms_data.ads: Add missing VMS qualifiers. | |
1087 | ||
1ab4a286 EB |
1088 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
1089 | ||
1090 | * make.adb, makeutl.adb, osint.adb, osint.ads (Check_Mains): rebuild | |
1091 | the list of files on the command line after processing it through | |
1092 | Complete_Mains. | |
1093 | ||
7ae0d98c AC |
1094 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> |
1095 | ||
1096 | * exp_ch7.adb (Build_Raise_Statement): Remove the specialized | |
1097 | processing for .NET/JVM. These targets can now benefit from | |
1098 | Raise_From_Controlled_Operation and they share the same processing with | |
1099 | standard targets. | |
1100 | (Establish_Transient_Scope): Remove the restriction for .NET/JVM. | |
1101 | These targets need transient scopes in order to properly finalize short | |
1102 | lived controlled objects. | |
1103 | (Make_Handler_For_Ctrl_Operation): Remove the specialized processing for | |
1104 | NET/JVM. These targets can now benefit from | |
1105 | Raise_From_Controlled_Operation and they share the same processing with | |
1106 | standard targets. | |
1107 | ||
1108 | 2011-08-04 Geert Bosch <bosch@adacore.com> | |
1109 | ||
1110 | * tracebak.c (STOP_FRAME): Stop at any next pointer outside the stack | |
1111 | ||
1112 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
1113 | ||
1114 | * exp_aggr.adb (Has_Visible_Private_Ancestor): subsidiary routine to | |
1115 | Expand_Record_Aggregate, to determine whether aggregate must be | |
1116 | expanded into assignments. This is the case if the ancestor part is | |
1117 | private, regarless of the setting of the flag Has_Private_Ancestor. | |
1118 | ||
1119 | 2011-08-04 Ed Falis <falis@adacore.com> | |
1120 | ||
1121 | * vxaddr2line.adb: Add support for e500v2 and for Linux hosts | |
1122 | ||
1123 | 2011-08-04 Bob Duff <duff@adacore.com> | |
1124 | ||
1125 | * sinfo.ads: Fix comment. | |
1126 | ||
1127 | 2011-08-04 Steve Baird <baird@adacore.com> | |
1128 | ||
1129 | * bindgen.adb (Get_Ada_Main_Name): If CodePeer_Mode is set, then | |
1130 | choose a package name in much the same way as is | |
1131 | done for JGNAT when VM_Target /= No_VM, except that | |
1132 | a slightly more distinctive prefix string is used. | |
1133 | ||
1134 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
1135 | ||
1136 | * makeutl.adb (Complete_Mains): no longer accept unit names on the | |
1137 | gnatmake command line. | |
1138 | This behavior was never documented (and was supported only because of | |
1139 | an early bug in the code). This case might lead to ambiguous cases | |
1140 | (between unit names and truncated base names without suffixes). | |
1141 | ||
87729e5a AC |
1142 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> |
1143 | ||
1144 | * a-tags.ads, a-tags.adb (Unregister_Tag): New routine. | |
1145 | Remove the external tag of a tagged type from the internal hash table. | |
1146 | * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on the | |
1147 | expanded usage of the routine. Strenghten the check for Is_Master. Add | |
1148 | processing for tagged types. | |
1149 | (Build_Finalizer): Create all the necessary lists used in finalizer | |
1150 | creation when the processed context is a package that may contain | |
1151 | tagged types. | |
1152 | (Expand_Cleanup_Actions): Rename the call to Has_Controlled_Objects to | |
1153 | Requires_Cleanup_Actions. | |
1154 | (Expand_N_Package_Body): Package bodies may need clean up code | |
1155 | depending on whether they contain tagged types. | |
1156 | (Expand_N_Package_Declaration): Package declarations may need clean up | |
1157 | code depending on whether they contain tagged types. | |
1158 | (Unregister_Tagged_Types): New routine. Search through a list of | |
1159 | declarations or statements, looking for non-abstract Ada tagged types. | |
1160 | For each such type, generate code to unregister the external tag. | |
1161 | * exp_util.adb (Has_Controlled_Objects (Node_Id)): Renamed to | |
1162 | Requires_Cleanup_Actions. | |
1163 | (Requires_Cleanup_Actions (List_Id, Boolean)): New routine. Search | |
1164 | through a list of declarations or statements looking for non-abstract | |
1165 | Ada tagged types or controlled objects. | |
1166 | * exp_util.ads (Has_Controlled_Objects (Node_Id)): Renamed to | |
1167 | Requires_Cleanup_Actions. | |
1168 | (Has_Controlled_Objects (List_Id, Boolean)): Removed. | |
1169 | * rtsfind.ads: Add entry RE_Unregister_Tag to tables RE_Id and | |
1170 | RE_Unit_Table. | |
1171 | ||
1172 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
1173 | ||
1174 | * prj-env.adb (For_All_Source_Dirs.For_Project): Check if project Prj | |
1175 | has Ada sources, not project Project, because if the root project | |
1176 | Project has no sources of its own, all projects will be deemed without | |
1177 | sources. | |
1178 | ||
1179 | 2011-08-04 Gary Dismukes <dismukes@adacore.com> | |
1180 | ||
1181 | * bindgen.adb (Gen_Adainit_Ada): Move the generation of the declaration | |
1182 | of the No_Param_Proc acc-to-subp type used for initialization of | |
1183 | __gnat_finalize_library_objects so that it's declared at library level | |
1184 | rather than nested inside of the adainit routine. | |
1185 | ||
1186 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
1187 | ||
1188 | * exp_disp.adb (Make_DT): Generate code to check the external tag ONLY | |
1189 | if the tagged type has a representation clause which specifies its | |
1190 | external tag. | |
1191 | ||
1192 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
1193 | ||
1194 | * einfo.ads, einfo.adb (Has_Private_Ancestor): now a flag on types. | |
1195 | Remove previous procedure with that name. | |
1196 | * sem_ch3.adb (Build_Derived_Record_Type): set Has_Private_Ancestor | |
1197 | when appropriate. | |
1198 | * sem_aggr.adb (Resolve_Extension_Aggregate): if the ancestor part is a | |
1199 | subtype mark, the ancestor cannot have unknown discriminants. | |
1200 | (Resolve_Record_Aggregate): if the type has invisible components | |
1201 | because of a private ancestor, the aggregate is illegal. | |
1202 | ||
1203 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
1204 | ||
1205 | * switch-m.adb (Normalize_Compiler_Switches): Recognize and take into | |
1206 | account switches -gnat2005, -gnat12 and -gnat2012. | |
1207 | ||
1208 | 2011-08-04 Bob Duff <duff@adacore.com> | |
1209 | ||
1210 | * s-tasdeb.ads: Minor comment fix. | |
1211 | ||
1212 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
1213 | ||
1214 | * gnatlink.adb (Gnatlink): Pass -gnat83/95/05/12 switch to gcc in | |
1215 | CodePeer mode. | |
1216 | * switch.ads, switch.adb (Is_Language_Switch): New function. | |
1217 | ||
1218 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
1219 | ||
1220 | * switch-c.adb: Minor comment addition. | |
1221 | ||
1222 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
1223 | ||
1224 | * vms_conv.adb (Process_Argument): Fail graciously when qualifier | |
1225 | ending with '=' is followed by a space (missing file name). | |
1226 | ||
1227 | 2011-08-04 Pascal Obry <obry@adacore.com> | |
1228 | ||
1229 | * g-regist.ads: Fix size of HKEY on x86_64-windows. | |
1230 | ||
1231 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
1232 | ||
1233 | * sem_ch12.adb (Analyze_Associations): New routine | |
1234 | Check_Overloaded_Formal_Subprogram to reject a formal package when | |
1235 | there is a named association or a box initialisation for an overloaded | |
1236 | formal subprogram of the corresponding generic. | |
1237 | ||
1238 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
1239 | ||
1240 | * alfa.ads (ALFA_Xref_Record): add component for type of entity | |
1241 | * get_alfa.adb, put_alfa.adb: Read and write new component of | |
1242 | cross-reference. | |
1243 | * lib-xref-alfa.adb (Collect_ALFA): generate new component. | |
1244 | ||
88f47280 AC |
1245 | 2011-08-04 Pascal Obry <obry@adacore.com> |
1246 | ||
1247 | * urealp.adb: Minor reformatting. | |
1248 | ||
1249 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
1250 | ||
1251 | * exp_ch7.adb (build_finalizer.process_declarations.processing_actions): | |
1252 | Handle the case when Cleanup_Protected_Object returns Empty. | |
1253 | ||
1254 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
1255 | ||
1256 | * frontend.adb (Frontend): only qualify names in non-ALFA mode | |
1257 | ||
1258 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
1259 | ||
1260 | * sem_ch4.adb (Try_Class_Wide_Operation): if the context is a procedure | |
1261 | call, ignore functions. | |
1262 | ||
05c53a69 GB |
1263 | 2011-08-04 Geert Bosch <bosch@adacore.com> |
1264 | ||
1265 | * urealp.adb (Equivalent_Decimal_Exponent): Avoid the use of floating | |
1266 | point. | |
1267 | ||
23cc1ace EB |
1268 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
1269 | ||
1270 | * makeutl.adb (Compute_Builder_Switches): no longer accept a unit name | |
1271 | as an index for Builder'Switches. This conforms to the documentation. | |
1272 | * make.adb (Insert_Project_Sources): avoid duplicate code | |
1273 | ||
cef14201 AC |
1274 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
1275 | ||
1276 | * makeutl.adb (Complete_Mains): if the user has passed a relative file | |
1277 | name on the command line (for instance "../dummy"), never assume it can | |
1278 | be a unit name. | |
1279 | ||
1280 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
1281 | ||
1282 | * bindgen.adb: Remove code the reference or create the | |
1283 | Break_Start/__gnat_break_start procedure. | |
1284 | * s-stalib.adb (Break_Start): Removed. | |
1285 | ||
e2fee30d EB |
1286 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
1287 | ||
1288 | * make.adb, makeutl.adb, makeutl.ads (Compute_Builder_Switches): now | |
1289 | shared with gprbuild. | |
1290 | ||
2d395256 AC |
1291 | 2011-08-04 Yannick Moy <moy@adacore.com> |
1292 | ||
1293 | * par-ch4.adb (P_Primary): preferentially issue an error message about | |
1294 | a missing parenthesis arount a conditional or case expression in Ada | |
1295 | 2012 mode, if we detect that the alignment is not correct for a | |
1296 | statement. | |
1297 | ||
1298 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
1299 | ||
1300 | * exp_ch7.adb (Process_Declarations): Do not consider the result of a | |
1301 | tag-to-class-wide conversion as needing finalization actions. | |
1302 | * exp_util.adb (Has_Controlled_Objects): Do not consider the result of | |
1303 | a tag-to-class-wide conversion as needing finalization actions. | |
1304 | (Is_Finalizable_Transient): The result of a tag-to-class-wide | |
1305 | conversion does not need finalization actions. | |
1306 | (Is_Tag_To_CW_Conversion): New routine. | |
1307 | * exp_util.ads (Is_Tag_To_CW_Conversion): New routine. Determines | |
1308 | whether an object is the result of a tag-to-class-wide conversion. | |
1309 | ||
1310 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
1311 | ||
1312 | * sem_ch13.adb (Analyze_Aspect_Specifications): correct order in which | |
1313 | the left-hand-side and right-hand-side of a conjunct are inserted when | |
1314 | translating a pre- or postcondition | |
1315 | * sem_ch6.adb: Correct typo in comment | |
1316 | ||
1317 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
1318 | ||
1319 | * gnat_rm.texi: Ravenscar does not prohibit dependence on | |
1320 | Unchecked_Conversion and Unchecked_Deallocation. | |
1321 | ||
1322 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
1323 | ||
1324 | * make.adb: Minor reformatting. | |
1325 | ||
767ab2fd EB |
1326 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
1327 | ||
1328 | * prj.adb, prj.ads, makeutl.adb (Complete_Mains): search for the | |
1329 | sources in the project and its imported projects, but not in the whole | |
1330 | tree. | |
1331 | ||
8fb3f5df AC |
1332 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
1333 | ||
1334 | * make.adb: Remove debug trace. | |
1335 | ||
1336 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
1337 | ||
1338 | * makeutl.adb (Do_Complete): Get the absolute path name of a relative | |
1339 | path in canonical form, to be able to compare path names on platforms | |
1340 | such as Windows or Darwin. | |
1341 | ||
1342 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
1343 | ||
1344 | * par_sco.adb (Traverse_Declarations_Or_Statements.Set_Statement_Entry): | |
1345 | For a pragma (statement with C1 = 'P'), record the sloc of the pragma. | |
1346 | * scos.ads: Update documentation accordingly. | |
1347 | * put_scos.adb (Output_SCO_Line): Omit statement SCOs for disabled | |
1348 | pragmas. | |
1349 | ||
9515740f AC |
1350 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
1351 | ||
1352 | * sem_attr.adb (Bad_Attribute_For_Predicate): flag illegal use of | |
1353 | attribute only if prefix type is scalar. | |
1354 | ||
1355 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
1356 | ||
1357 | * make.adb, makeutl.adb, prj-env.adb (Check_Mains): put back support | |
1358 | in gnatmake for specifying mains on the command line that do not belong | |
1359 | to the main project. These mains must currently all belong to the same | |
1360 | project, though. | |
1361 | (Ultimate_Extension_Of): removed, since duplicated | |
1362 | Ultimate_Extending_Project. | |
1363 | ||
92966893 AC |
1364 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
1365 | ||
1366 | * make.adb (Do_Codepeer_Globalize_Step): Removed. Use CodePeer_Mode | |
1367 | instead. | |
1368 | (CodePeer_Mode_String): New. | |
1369 | (Linking_Phase, Binding_Phase): Call gnatlink with -P switch in | |
1370 | CodePeer mode. | |
1371 | (Scan_Make_Arg): Do not disable binding/linking phase in CodePeer mode. | |
1372 | * bindgen.adb (Gen_Elab_Calls_Ada): Ignore subprograms in CodePeer | |
1373 | mode, since no useful elaboration subprogram is needed by CodePeer. | |
1374 | * gnatlink.adb (Gnatlink): Add support for -P switch (CodePeer mode). | |
1375 | In this mode, compile binder file with -gnatC and do stop after this | |
1376 | step. | |
1377 | ||
1378 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
1379 | ||
1380 | * exp_ch7.adb: Minor comment fix. | |
1381 | ||
5969611f RD |
1382 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
1383 | ||
1384 | * exp_ch7.adb, make.adb, sem_ch10.adb, bindgen.adb, sem_res.adb, | |
1385 | exp_ch4.adb, makeutl.adb: Minor reformatting. | |
1386 | ||
6367dd30 AC |
1387 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
1388 | ||
1389 | * make.adb, makeutl.adb, makeutl.ads (Make): major refactoring. | |
1390 | Create several new subprograms to move code out of Make. This makes the | |
1391 | code more readable, removes code duplication, and is a preparation work | |
1392 | for adding support for aggregate projects. | |
1393 | ||
1394 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
1395 | ||
1396 | * s-po32gl.ads, s-po32gl.adb: New files. | |
1397 | * exp_ch7.ads (Get_Global_Pool_For_Access_Type): New function. | |
1398 | * exp_ch7.adb (Get_Global_Pool_For_Access_Type): New function. | |
1399 | (Build_Finalization_Collection): Use it. | |
1400 | * exp_ch4.adb (Complete_Controlled_Allocation): Ditto. | |
1401 | * rtsfind.ads: System_Pool_32_Global, Re_Global_Pool_32_Object: New | |
1402 | literals. | |
1403 | * gcc-interface/Makefile.in: Use s-po32gl.o on VMS. | |
1404 | * gcc-interface/Make-lang.in: Update dependencies. | |
1405 | ||
cd8bfe35 EB |
1406 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
1407 | ||
1408 | * makeutl.adb (Complete_Mains): add support for specs with no suffix on | |
1409 | the command line. | |
1410 | ||
7db29ea7 EB |
1411 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
1412 | ||
1413 | * make.adb, makeutl.adb (Complete_Mains): if a main specified on the | |
1414 | command line is not a file name, also check whether it could be a unit | |
1415 | name. | |
1416 | ||
d9b056ea AC |
1417 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> |
1418 | ||
1419 | * bindgen.adb (Gen_Finalize_Library_Ada): Factor out code to generate | |
1420 | the header of the finalization routine. | |
1421 | If the unit has no finalizer but is a body whose spec has one, then | |
1422 | generate the decrement of the elaboration entity only. | |
1423 | If the unit has a finalizer and is a spec, then do not generate the | |
1424 | decrement of the elaboration entity. | |
1425 | (Gen_Finalize_Library_C): Likewise. | |
1426 | ||
1427 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
1428 | ||
1429 | * exp_ch7.adb (Alignment_Of): New subsidiary routine. | |
1430 | (Bounds_Size_Expression): Removed. | |
1431 | (Double_Alignment_Of): New subsidiary routine. | |
1432 | (Make_Finalize_Address_Stmts): New local variable Index_Typ. Account | |
1433 | for a hole in the dope vector of unconstrained arrays due to different | |
1434 | index and element alignments. | |
1435 | ||
1436 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
1437 | ||
1438 | * sem_res.adb (Resolve_Allocator): diagnose task allocator that will | |
1439 | raise program_error because body has not been seen yet. | |
1440 | ||
1441 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
1442 | ||
1443 | * sem_ch10.adb (Analyze_With_Clause): Protect against child unit with | |
1444 | an unresolved name. | |
1445 | ||
1446 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
1447 | ||
1448 | * makeutl.adb (Do_Complete): Check absolute paths in canonical forms | |
1449 | ||
1450 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
1451 | ||
1452 | * alfa.adb, alfa.ads (Unique_Defining_Entity): move function from here | |
1453 | * sem_util.adb, sem_util.ads (Unique_Defining_Entity): ...to here | |
1454 | ||
1455 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
1456 | ||
1457 | * sem_ch12.adb (Analyze_Package_Instantiation): Do not omit body for | |
1458 | instantiation in RCI. | |
1459 | ||
1460 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
1461 | ||
1462 | * make.adb: Share more code with gprbuild | |
1463 | ||
f5fc5b9d AC |
1464 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
1465 | ||
1466 | * projects.texi: Added documentation for the IDE'Gnat project file | |
1467 | attribute. | |
1468 | ||
1469 | 2011-08-04 Nicolas Roche <roche@adacore.com> | |
1470 | ||
1471 | * gnat_rm.texi: Minor editing. | |
1472 | ||
1473 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
1474 | ||
1475 | * bindgen.adb (Gen_Adafinal_Ada): Do not differentiate the main case | |
1476 | and the library case for VM targets. | |
1477 | (Gen_Adainit_Ada): Likewise. | |
1478 | ||
1479 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
1480 | ||
1481 | * g-altive.ads: Minor comment updates. | |
1482 | * prj-nmsc.adb: Minor reformatting. | |
1483 | ||
1484 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
1485 | ||
1486 | * opt.ads | |
1487 | (Normalize_Scalars_Config): Value of the configuration switch set by | |
1488 | pragma Normalize_Scalars when it appears in the gnat.adc file. | |
1489 | (Normalize_Scalars): New field for record Config_Switches_Type. Used | |
1490 | to save and restore settings of this pragma. | |
1491 | * opt.adb | |
1492 | (Register_Opt_Config_Switches, Save_Opt_Config_Switches, | |
1493 | Restore_Opt_Config_Switches): Add missing support for Normalize_Scalars. | |
1494 | ||
1495 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
1496 | ||
1497 | * gnat_ugn.texi: Document gnatlink options -M and -M=mapfile | |
1498 | ||
0c4683cf AC |
1499 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
1500 | ||
1501 | * makeutl.adb: Minor reformatting. | |
1502 | ||
1503 | 2011-08-04 Olivier Hainque <hainque@adacore.com> | |
1504 | ||
1505 | * g-altive.ads: Update comments to reflect that only the soft | |
1506 | binding is available today. | |
1507 | ||
2598ee6d RD |
1508 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
1509 | ||
1510 | * bindgen.adb, einfo.adb, sem_ch12.adb, s-tasren.adb, sem_res.adb, | |
1511 | makeutl.adb, prj-nmsc.adb, opt.ads, prj-env.adb: Minor reformatting | |
1512 | * gcc-interface/Make-lang.in: Update dependencies. | |
1513 | ||
c2db4b32 AC |
1514 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
1515 | ||
1516 | * prj-env.adb: Remove local debug traces. | |
1517 | ||
1518 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
1519 | ||
1520 | * checks.adb (Apply_Float_Conversion_Check): correct a typo where Lo_OK | |
1521 | was used instead of Hi_OK, which could cause a read of an uninitialized | |
1522 | value later on. Detected while working on the new warning. | |
1523 | * exp_ch9.adb (Expand_N_Entry_Declaration): remove useless assignment | |
1524 | to local variable. | |
1525 | * sem_ch5.adb (Analyze_Assignment): set the last assignment component | |
1526 | in more cases, in order to detect more unreferenced values. | |
1527 | * sem_util.adb, sem_util.ads (Get_Enclosing_Object): return enclosing | |
1528 | object for expression, if any. | |
1529 | ||
1530 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> | |
1531 | ||
1532 | * exp_intr.adb (Expand_Binary_Operator_Call): Look at the RM size of | |
1533 | the operand types instead of the Esize. | |
1534 | ||
1535 | 2011-08-04 Steve Baird <baird@adacore.com> | |
1536 | ||
1537 | * switch-b.adb (Scan_Binder_Switches): Add -P binder switch, used to | |
1538 | enable CodePeer_Mode. | |
1539 | * bindusg.adb (Display): Add help message describing -P binder switch. | |
1540 | * gnat_ugn.texi: Document -P binder switch. | |
1541 | * bindgen.adb (Gen_Main_Ada): If CodePeer_Mode is set, then call the | |
1542 | user-defined main program directly. | |
1543 | (Gen_Output_File_Ada): If CodePeer_Mode is set, generate a with of the | |
1544 | user-defined main program in the context clause of the package body. | |
1545 | ||
ad05f2e9 AC |
1546 | 2011-08-04 Yannick Moy <moy@adacore.com> |
1547 | ||
1548 | * alfa.adb, alfa.ads (Get_Entity_For_Decl): remove function, partial | |
1549 | duplicate of Defining_Entity | |
1550 | (Get_Unique_Entity_For_Decl): rename function into | |
1551 | Unique_Defining_Entity | |
1552 | * einfo.adb, einfo.ads (Is_In_ALFA, Body_Is_In_ALFA): remove flags | |
1553 | (Formal_Proof_On): remove synthesized flag | |
1554 | * cstand.adb, sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, | |
1555 | sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_res.adb, sem_util.adb, | |
1556 | sem_util.ads, stand.ads: Remove treatment associated to entities in ALFA | |
1557 | * sem_prag.adb (Analyze_Pragma): remove special treatment for pragma | |
1558 | Annotate (Formal_Proof) | |
1559 | ||
1560 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
1561 | ||
1562 | * prj-env.adb (Create_Config_Pragmas_File): fix handling of multi-unit | |
1563 | source files with non-standard naming schemes, in imported projects | |
1564 | ||
756ef2a0 AC |
1565 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
1566 | ||
1567 | * makeutl.adb (Complete_Mains): when a multi-unit source file is | |
1568 | specified on the gprbuild command line, we need to compile all units | |
1569 | within that file, not just the first one we find | |
1570 | Fix error message for mains that are not found. | |
1571 | ||
1572 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
1573 | ||
1574 | * sem_ch6.adb: Update comment. | |
1575 | * sem_ch12.adb: Minor reformatting. | |
1576 | ||
1577 | 2011-08-04 Bob Duff <duff@adacore.com> | |
1578 | ||
1579 | * s-tasren.adb (Task_Do_Or_Queue): Previous code was reading | |
1580 | Acceptor.Terminate_Alternative without locking Acceptor, which causes a | |
1581 | race condition whose symptom is to fail to lock Parent. That, in turn, | |
1582 | causes Parent.Awake_Count to be accessed without locking Parent, which | |
1583 | causes another race condition whose symptom is that Parent.Awake_Count | |
1584 | can be off by 1 (either too high or too low). The solution is to lock | |
1585 | Parent unconditionally, and then lock Acceptor, before reading | |
1586 | Acceptor.Terminate_Alternative. | |
1587 | ||
4fdebd93 AC |
1588 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
1589 | ||
1590 | * debug.adb: Update comment. | |
1591 | ||
1592 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
1593 | ||
1594 | * par_sco.adb, exp_util.adb, make.adb, a-tags.adb, sem_prag.adb, | |
1595 | sem_util.adb, sem_attr.adb, exp_ch4.adb, g-comlin.adb, g-comlin.ads, | |
1596 | exp_ch6.adb: Minor reformatting. | |
1597 | ||
1598 | 2011-08-04 Gary Dismukes <dismukes@adacore.com> | |
1599 | ||
1600 | * gnat_ugn.texi: Add sentence about the case of compile-time-detected | |
1601 | checks for -gnateE. | |
1602 | ||
1603 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
1604 | ||
1605 | * gnat_rm.texi: update Ravenscar desription to reflect Ada2012 RM. | |
1606 | ||
1607 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
1608 | ||
1609 | * sinfo.ads: Minor reformatting. | |
1610 | ||
1611 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
1612 | ||
1613 | * makeutl.adb, makeutl.ads, prj-nmsc.adb (Complete_Mains): report error | |
1614 | even if there is no location. | |
1615 | ||
6aaa0587 ES |
1616 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
1617 | ||
1618 | * sem_res.adb, sem_ch4.adb: move check for restriction | |
1619 | No_Task_Hierarchy to resolve_allocator. | |
1620 | ||
35a1c212 AC |
1621 | 2011-08-04 Thomas Quinot <quinot@adacore.com> |
1622 | ||
1623 | * sinfo.adb, sinfo.ads, sem_prag.adb, sem_ch12.adb (Pragma_Enabled): | |
1624 | This flag of N_Pragma nodes is not used, remove it as well as all of | |
1625 | the associated circuitry. | |
1626 | ||
1627 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
1628 | ||
1629 | * exp_disp.adb (Make_DT): Switch -gnatdQ disables the generation of the | |
1630 | runtime check on duplicated externa tags | |
1631 | * debug.adb Document switch -gnatdQ. | |
1632 | ||
1633 | 2011-08-04 Gary Dismukes <dismukes@adacore.com> | |
1634 | ||
1635 | * a-fihema.ads: Minor typo fix. | |
1636 | ||
1637 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
1638 | ||
1639 | * sem_ch10.adb: Minor comment update. | |
1640 | ||
1641 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
1642 | ||
1643 | * einfo.adb: Update the node field usage to reflect the renaming of | |
1644 | Return_Flag to Return_ Flag_Or_Transient_Decl. | |
1645 | (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. | |
1646 | (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. | |
1647 | (Write_Field15_Name): Change Return_Flag to | |
1648 | Return_Flag_Or_Transient_Decl. | |
1649 | * einfo.ads: Rename node field Return_Flag to | |
1650 | Return_Flag_Or_Transient_Decl. Update the associated comment and all | |
1651 | occurrences in entities. | |
1652 | (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. Update | |
1653 | associated Inline pragma. | |
1654 | (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. Update | |
1655 | associated Inline pragma. | |
1656 | * exp_ch4.ads, exp_ch4.adb (Expand_N_Expression_With_Actions): New | |
1657 | routine. | |
1658 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Update the calls to | |
1659 | Return_Flag and Set_Return_Flag. | |
1660 | * exp_ch7.adb (Process_Declarations): Add code to recognize hook | |
1661 | objects generated for controlled transients declared inside an | |
1662 | Exception_With_Actions. Update the calls to Return_Flag. | |
1663 | (Process_Object_Declaration): Add code to add a null guard for hook | |
1664 | objects generated for controlled transients declared inside an | |
1665 | Exception_With_Actions. Update related comment. | |
1666 | * exp_util.adb (Has_Controlled_Objects): Add code to recognize hook | |
1667 | objects generated for controlled transients declared inside an | |
1668 | Exception_With_Actions. Update the calls to Return_Flag. | |
1669 | * expander.adb (Expand): Add new case for N_Expression_With_Actions. | |
1670 | ||
1671 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
1672 | ||
1673 | * sem_util.adb:(Wrong_Type): Improve error message on a one-element | |
1674 | positional aggregate. | |
1675 | ||
1676 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
1677 | ||
1678 | * par_sco.adb (Process_Decisions.Output_Header): Check and record pragma | |
1679 | SLOC only for pragmas. | |
1680 | ||
1681 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
1682 | ||
1683 | * projects.texi: Minor typo fix. | |
1684 | ||
1685 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
1686 | ||
1687 | * prj-nmsc.adb (Check_File): Minor change to traces, to help debugging | |
1688 | on case-sensitive file systems. | |
1689 | ||
c2873f74 TQ |
1690 | 2011-08-04 Thomas Quinot <quinot@adacore.com> |
1691 | ||
1692 | * put_scos.adb (Put_SCOs): Do not emit decision SCO for an X decision | |
1693 | nested in a disabled pragma. | |
1694 | * scos.ads, scos.adb, par_sco.ads, par_sco.adb: Record sloc of | |
1695 | enclosing pragma, if any, for X decisions. | |
1696 | ||
1697 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
1698 | ||
1699 | * sem_prag.adb: Minor reformatting. | |
1700 | ||
46414266 VC |
1701 | 2011-08-04 Vincent Celier <celier@adacore.com> |
1702 | ||
1703 | * a-tags.adb (Check_TSD): Avoid concatenation of strings, as it is not | |
1704 | allowed in no run time mode. | |
1705 | ||
1706 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
1707 | ||
1708 | * make.adb (Check): When -gnatc is used, check for the source file | |
1709 | inside the ALI file with a canonical case file name. | |
1710 | ||
afab164f EB |
1711 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
1712 | ||
1713 | * g-comlin.adb, g-comlin.ads (Add_Switch): Put back support for | |
1714 | overriding the separator. | |
1715 | ||
fe0ec02f AC |
1716 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
1717 | ||
1718 | * sem_aggr.adb, par_sco.adb, sem_type.adb, exp_util.adb, exp_ch9.adb, | |
1719 | prj-nmsc.adb, sem_ch13.adb, exp_strm.adb: Minor reformatting. | |
1720 | ||
1721 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
1722 | ||
1723 | * gnat_rm.texi: Minor documentation fix for pragma Annotate. | |
1724 | ||
1725 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
1726 | ||
1727 | * sem_attr.adb (Analyze_Attribute): add check during pre-analysis that | |
1728 | 'Result only appears in postcondition of function. | |
1729 | ||
1730 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
1731 | ||
1732 | * a-tags.adb (Check_TSD): When raising PROGRAM_ERROR for a duplicated | |
1733 | external tag, include the value of the external tag in the exception | |
1734 | message. | |
1735 | ||
0180fd26 AC |
1736 | 2011-08-04 Yannick Moy <moy@adacore.com> |
1737 | ||
1738 | * sem_attr.adb (Result): modify error message for misplaced 'Result | |
1739 | ||
1740 | 2011-08-04 Sergey Rybin <rybin@adacore.com> | |
1741 | ||
1742 | * gnat_rm.texi (pragma Annotate): Fix syntax description to make it | |
1743 | clear that the second argument must be an identifier. | |
1744 | ||
1745 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
1746 | ||
1747 | * exp_ch9.adb (Build_Barrier_Function): When compiling with | |
1748 | -fpreserve-control-flow, insert an IF statement on the barrier | |
1749 | condition to ensure that a conditional branch instruction is generated. | |
1750 | ||
1751 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
1752 | ||
1753 | * prj-part.adb, prj.adb, prj.ads, prj-tree.ads | |
1754 | (Processing_Flags.Ignore_Missing_With): new flag. | |
1755 | ||
1756 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
1757 | ||
1758 | * prj-nmsc.adb (Find_Sources, Path_Name_Of): Fix handling of | |
1759 | Source_List_File on case-insensitive systems where the file is actually | |
1760 | on a case-sensitive file system (NFS,...). | |
1761 | ||
1762 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
1763 | ||
1764 | * sem_ch6.adb (Analyze_Function_Return): In a rare case where a | |
1765 | function return contains a controlled [extension] aggregate and the | |
1766 | return statement is not part of a handled sequence of statements, wrap | |
1767 | the return in a block. This ensures that all controlled temporaries | |
1768 | generated during aggregate resolution will be picked up by the | |
1769 | finalization machinery. | |
1770 | ||
1771 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
1772 | ||
1773 | * sem_aggr.adb (Resolve_Aggregate): If aggregate has box-initialized | |
1774 | components, freeze type before resolution, to ensure that default | |
1775 | initializations are present for all components. | |
1776 | * sem_res.adb (Resolve_Actuals): the designated object of an | |
1777 | accces-to-constant type is a legal actual in a call to an | |
1778 | initialization procedure. | |
1779 | ||
1780 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
1781 | ||
1782 | * exp_util.adb (Extract_Renamed_Object): Add N_Type_Conversion and | |
1783 | N_Unchecked_Type_Conversion to the possible containers of a renamed | |
1784 | transient variable. | |
1785 | ||
78efd712 AC |
1786 | 2011-08-04 Yannick Moy <moy@adacore.com> |
1787 | ||
1788 | * par-ch13.adb (Aspect_Specifications_Present): recognize | |
1789 | "with Identifier'Class =>" as an aspect, so that a meaningful warning | |
1790 | is issued in Strict mode. | |
1791 | * par.adb: Fix typos in comments. | |
1792 | ||
1793 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
1794 | ||
1795 | * sem_attr.adb (Result): modify error message to take into account Post | |
1796 | aspect when compiling Ada 2012 (or newer) code. | |
1797 | ||
1798 | 2011-08-04 Nicolas Roche <roche@adacore.com> | |
1799 | ||
1800 | * env.c (__gnat_clearenv): Avoid use of dynamic size array in order to | |
2c7f9cc0 | 1801 | remove need for GCC exceptions. |
78efd712 AC |
1802 | |
1803 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
1804 | ||
1805 | * makeutl.adb (Do_Complete): Call Debug_Output with the name of the | |
1806 | project, not the source file name. | |
1807 | * prj.adb (Find_Sources.Look_For_Sources): If the source has been | |
1808 | excluded, continue looking. This excluded source will only be returned | |
1809 | if there is no other source with the same base name that is not locally | |
1810 | removed. | |
1811 | ||
1812 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
1813 | ||
1814 | * sem_res.adb (Resolve_Intrinsic_Operator): if the result type is | |
1815 | private and one of the operands is a real literal, use a qualified | |
1816 | expression rather than a conversion which is not meaningful to the | |
1817 | back-end. | |
1818 | ||
0170a691 AC |
1819 | 2011-08-04 Yannick Moy <moy@adacore.com> |
1820 | ||
1821 | * sem_ch13.adb (Aspect_Loop): when an aspect X and its classwise | |
1822 | corresponding aspect X'Class are allowed, proceed with analysis of the | |
1823 | aspect instead of skipping it. | |
1824 | ||
1825 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
1826 | ||
1827 | * s-flocon.adb, s-flocon.ads: Add a body for s-flocon.ads | |
1828 | This will allow to have an Ada implementation for the subprogram. | |
1829 | ||
deb4f5ba ES |
1830 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
1831 | ||
1832 | * sem_ch3.adb (Analyze_Full_Type_Declaration): If the declaration is a | |
1833 | completion and aspects are present, apply them to the entity for the | |
1834 | type which is currently the partial view, but which is the one that | |
1835 | will be frozen. | |
1836 | * sem_ch13.adb (Analyze_Aspect_Specifications): if the predicate | |
1837 | applies to a partial view, indicate that the full view has predicates | |
1838 | and delayed aspects. | |
1839 | (Replace_Type_Reference): Handle properly predicates that apply to the | |
1840 | full view of a private completion. | |
1841 | ||
fc893455 AC |
1842 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> |
1843 | ||
1844 | * layout.adb (Layout_Type): For composite types, do not set Esize. | |
1845 | * freeze.adb (Set_Small_Size): Remove test on alignment and do not | |
1846 | set Esize. | |
1847 | (Size_Known): Look at the RM size of components instead of the Esize. | |
1848 | (Freeze_Record_Type): Look at the RM size instead of the Esize to | |
1849 | issue warning and activate Implicit_Packing. | |
1850 | (Freeze_Entity): Likewise. Do not issue a warning for alias/atomic | |
1851 | if the Esize is not known. | |
1852 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause) <Size>: Set Esize | |
1853 | for elementary types only. | |
1854 | (Analyze_Record_Representation_Clause): Look at the RM size instead | |
1855 | of the Esize to issue errors. | |
1856 | * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set Esize if it | |
1857 | is not known. | |
1858 | <E_Record_Type>: Look at the RM size instead of the Esize. Remove | |
2c7f9cc0 | 1859 | obsolete block. |
fc893455 AC |
1860 | Look at the RM size instead of the Esize for types if the latter is |
1861 | not known. | |
1862 | (gnat_to_gnu_field): Use Known_Esize instead of Known_Static_Esize. | |
1863 | ||
1864 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
1865 | ||
1866 | * sem_type.adb: proper handling of equality not involving anonymous | |
1867 | access types. | |
1868 | ||
b37d5bc6 AC |
1869 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> |
1870 | ||
1871 | * exp_ch7.adb (Create_Finalizer): Remove local variables Spec_Nod and | |
1872 | Vis_Decls. When creating a library-level finalizer for a package spec, | |
1873 | both the declaration and body of the finalizer are inserted either in | |
1874 | the visible or private declarations of the package spec. | |
1875 | ||
1876 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
1877 | ||
1878 | * sem_ch3.adb (Derive_Subprograms): Complete assertion to request the | |
1879 | use of the full-view of a type when invoking Is_Ancestor. | |
1880 | * sem_type.adb (Is_Ancestor): For consistency, when the traversal of | |
1881 | the full-view of private parents is requested, then use also the | |
1882 | full-view of the parent of the first derivation. | |
1883 | ||
7ab4d95a AC |
1884 | 2011-08-04 Tristan Gingold <gingold@adacore.com> |
1885 | ||
1886 | * s-taprop-vxworks.adb (Enter_Task): Use System.Float_Control.Reset | |
1887 | instead of the locally imported procedure. | |
1888 | * s-taprop-mingw.adb (Enter_Task): Ditto. | |
1889 | * s-valrea.adb (Scan_Real): Ditto. | |
1890 | * s-imgrea.adb (Set_Image_Real): Ditto. | |
1891 | * s-flocon.ads: Make the package pure. | |
1892 | ||
1893 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
1894 | ||
1895 | * sinfo.ads, sinfo.adb (Debug_Statement, Set_Debug_Statement): Remove. | |
1896 | * tbuild.ads, tbuild.adb (Make_Pragma): Adjust accordingly. | |
1897 | * sinfo-cn.ads, sinfo-cn.adb (Change_Name_To_Procedure_Call_Statement): | |
1898 | New subprogram, moved here from... | |
1899 | * par.adb, par-ch5.adb (P_Statement_Name): ... here. | |
1900 | * par-prag.adb (Par.Prag, case Pragma_Debug): Do not perform any | |
1901 | rewriting of the last argument into a procedure call statement here... | |
1902 | * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): ...do it there | |
1903 | instead. | |
1904 | ||
1905 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
1906 | ||
1907 | * par_sco.adb: Minor reformatting. | |
1908 | ||
51c400f5 AC |
1909 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
1910 | ||
1911 | * erroutc.adb: Minor reformatting. | |
1912 | ||
1913 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
1914 | ||
1915 | * par_sco.adb: Comment update. | |
1916 | ||
1917 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
1918 | ||
1919 | * s-flocon.ads: New file. | |
1920 | * g-flocon.ads: Now a renaming of s-flocon. | |
1921 | * Makefile.rtl: Add s-flocon.o | |
1922 | ||
6a49f110 AC |
1923 | 2011-08-04 Javier Miranda <miranda@adacore.com> |
1924 | ||
1925 | * exp_strm.adb (Build_Array_Input_Function): if the array type is | |
1926 | constrained, do not attempt to build a subtype of it. | |
1927 | ||
1928 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
1929 | ||
1930 | * errout.ads Change comments: remove 'R'M as an example where quotes | |
1931 | are needed; add ALFA as another case where quotes are not needed | |
1932 | * erroutc.adb (Set_Msg_Insertion_Reserved_Word): add ALFA as another | |
1933 | case where quotes are not needed. | |
1934 | * sem_ch11.adb, sem_ch13.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, | |
1935 | sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_prag.adb, sem_res.adb: | |
1936 | Remove all occurrences of 'A'L'F'A | |
1937 | ||
1938 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
1939 | ||
1940 | * sem_ch13.adb: check legality of invariant pragma. | |
1941 | ||
a4640a39 AC |
1942 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> |
1943 | ||
1944 | * bindgen.adb: Add comments. | |
1945 | ||
1946 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
1947 | ||
1948 | * einfo.adb, einfo.ads: Free Flag254 and make Formal_Proof_On a | |
1949 | synthesized flag. | |
1950 | * sem_prag.adb (Analyze_Pragma): record the pragma Annotate | |
1951 | (Formal_Proof, On/Off) in the Rep_Item list of the current subprogram. | |
1952 | ||
1953 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
1954 | ||
1955 | * exp_ch7.adb, exp_ch6.adb, sem_ch3.adb, layout.adb, sem_ch5.adb, | |
1956 | osint-c.ads, sem_util.ads, gnat1drv.adb, targparm.ads, sem_ch6.adb, | |
1957 | sem_ch13.adb, s-pooloc.adb: Minor reformatting. | |
1958 | ||
39ade2f9 AC |
1959 | 2011-08-04 Thomas Quinot <quinot@adacore.com> |
1960 | ||
1961 | * s-pooloc.ads, s-pooglo.ads: Minor reformatting | |
1962 | ||
1963 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
1964 | ||
1965 | PR ada/47880 | |
1966 | * s-pooloc.adb (Deallocate): Fix the case of deallocating the only | |
1967 | allocated object. | |
1968 | ||
1969 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
1970 | ||
1971 | * einfo.ads, exp_ch4.adb: Minor reformatting. | |
1972 | ||
1973 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> | |
1974 | ||
1975 | * back_end.ads (Gen_Or_Update_Object_File): Add more comments. | |
1976 | ||
7efc3f2d AC |
1977 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
1978 | ||
1979 | * exp_ch4.adb (Expand_Composite_Equality): code cleanup: use component | |
1980 | type in all cases to compute list of primitive operations, because full | |
1981 | view may be an itype that is not attached to the list of declarations. | |
1982 | ||
1983 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> | |
1984 | ||
1985 | * bindgen.adb (Gen_Adafinal_Ada): Generate an early return if the | |
1986 | library has already been finalized. | |
1987 | (Gen_Adafinal_C): Likewise. | |
1988 | (Gen_Adainit_Ada): Generate an early return if the library has | |
1989 | already been elaborated. | |
1990 | (Gen_Adainit_C): Likewise. | |
1991 | (Gen_Output_File_Ada): Generate an elaboration flag. | |
1992 | (Gen_Output_File_C): Likewise. | |
1993 | ||
f65df609 HK |
1994 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> |
1995 | ||
1996 | * exp_ch4.adb (Expand_Allocator_Expression): Disable the generation of | |
1997 | Set_Finalize_Address_Ptr for CodePeer because Finalize_Address was not | |
1998 | built in the first place. | |
1999 | (Expand_N_Allocator): Disable the generation of Set_Finalize_Address_Ptr | |
2000 | for CodePeer because Finalize_Address was not built to begin with. | |
2001 | * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Ditto. | |
2002 | ||
a0fb8fe8 AC |
2003 | 2011-08-04 Pascal Obry <obry@adacore.com> |
2004 | ||
2005 | * adaint.c (__gnat_tmp_name): Use current process id to create temp | |
2006 | filenames, this ensures unicity of filenames across processes. | |
2007 | ||
2008 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
2009 | ||
2010 | * bindgen.adb (Gen_Finalize_Library_Ada): Rename generated routine | |
2011 | Raise_Controlled to Raise_From_Controlled_Operation. Update the | |
2012 | signature of Raise_From_Controlled_Operation by adding flag From_Abort. | |
2013 | Add False as the actual to From_Abort in the generated call to | |
2014 | Raise_From_Controlled_Operation. | |
2015 | ||
2016 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> | |
2017 | ||
2018 | * osint-c.ads, osint-c.adb (Set_Library_Info_Name): Move to declaration | |
2019 | so that the ali file name can be retrieved from outside of this package. | |
2020 | * back_end.ads, back_end.adb (Gen_Or_Update_Object_File): New method | |
2021 | doing nothing in the general case, but used to update the object file | |
2022 | timestamp if directly generated by the backend. | |
2023 | * gnat1drv.adb (Gnat1drv): Make sure the object file's timestamp is set | |
2024 | to a later time than the ali file one. | |
2025 | ||
9534ab17 AC |
2026 | 2011-08-04 Yannick Moy <moy@adacore.com> |
2027 | ||
2028 | * einfo.adb, einfo.ads (Formal_Proof_On): new flag set on subprogram | |
2029 | entities whose body contains an Annotate pragma which forces formal | |
2030 | proof on this body. | |
2031 | * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, | |
2032 | sem_ch6.adb, sem_ch9.adb, sem_res.adb: Adapt call to | |
2033 | Mark_Non_ALFA_Subprogram to pass in a message and node. | |
2034 | * sem_prag.adb (Analyze_Pragma): add treatment of pragma Annotate | |
2035 | (Forma_Proof, On) which sets the flag Formal_Proof_On in the | |
2036 | surrounding subprogram. | |
2037 | * sem_util.adb, sem_util.ads (Mark_Non_ALFA_Subprogram, | |
2038 | Mark_Non_ALFA_Subprogram_Unconditional): if the subprogram being marked | |
2039 | as not in ALFA is annotated with Formal_Proof being On, then an error | |
2040 | is issued based on the additional parameters for message and node. | |
2041 | * snames.ads-tmpl (Name_Formal_Proof): new name for annotation. | |
2042 | * gcc-interface/Make-lang.in: Update dependencies. | |
2043 | ||
2044 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
2045 | ||
2046 | * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not generate | |
2047 | Finalize_Address when CodePeer is enabled. | |
2048 | ||
2049 | 2011-08-04 Pascal Obry <obry@adacore.com> | |
2050 | ||
2051 | * adaint.c (__gnat_tmp_name): Use _tempnam() instead of tempnam() as | |
2052 | the latter returns a pointer to a static buffer which is deallocated | |
2053 | at the end of the routine. | |
2054 | ||
5c0e97dd AC |
2055 | 2011-08-04 Yannick Moy <moy@adacore.com> |
2056 | ||
2057 | * sem_ch3.adb (Array_Type_Declaration): move test for type in ALFA | |
2058 | after index creation; mark unconstrained base array type generated as | |
2059 | being in/not in ALFA as well | |
2060 | (Make_Index): mark subtype created as in/not in ALFA | |
2061 | * sem_ch5.adb (Analyze_Iteration_Scheme): mark entity for iterating | |
2062 | over a loop as in/not in ALFA, depending on its type and form of loop | |
2063 | iteration. | |
2064 | ||
2065 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
2066 | ||
2067 | * exp_ch7.adb (Build_Object_Declarations): Initialize flag Abort | |
2068 | directly to False on .NET and JVM. | |
2069 | ||
7a93c64b YM |
2070 | 2011-08-04 Yannick Moy <moy@adacore.com> |
2071 | ||
2072 | * sem_ch3.adb (Constrain_Enumeration, Constrain_Integer): remove | |
2073 | constraint that subtype must come from source code to be in ALFA, so | |
2074 | that anonymous subtypes can be in ALFA too. | |
2075 | ||
e9a1ed9b YM |
2076 | 2011-08-04 Yannick Moy <moy@adacore.com> |
2077 | ||
2078 | * sem_ch3.adb (Analyze_Object_Declaration): remove obsolete addition of | |
2079 | reference for ALFA mode. | |
2080 | * lib-xref-alfa.adb, lib-xref.ads (Traverse_Compilation_Unit): make | |
2081 | procedure public so as to use it from formal verification back-end. | |
2082 | ||
8e293fbd AC |
2083 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> |
2084 | ||
2085 | * g-comlin.adb (For_Each_Simple_Switch.Is_In_Config): Remove the | |
2086 | invalid checks of the Parameter, making Remove_Switch not working | |
2087 | correctly. | |
2088 | ||
2089 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
2090 | ||
2091 | * targparm.ads: Update header: no run-time exception is needed on this | |
2092 | file. | |
2093 | ||
2094 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
2095 | ||
2096 | * a-fihema.adb: Use System.IO instead of GNAT.IO | |
2097 | ||
2098 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
2099 | ||
2100 | * sem_ch3.adb (Access_Definition): Anonymous access to subprogram types | |
2101 | are forbidden in Compiler_Unit mode. | |
2102 | ||
cfae2bed AC |
2103 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
2104 | ||
2105 | * sem_util.adb: Minor reformatting. | |
2106 | ||
2107 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
2108 | ||
2109 | * bindgen.adb (Gen_Finalize_Library_Ada): Update the import string for | |
2110 | library-level finalizers. | |
2111 | (Gen_Finalize_Library_C): Update the import string for library-level | |
2112 | finalizers. | |
2113 | (Gen_Finalize_Library_Defs_C): Update the definition name of a | |
2114 | library-level finalizer. | |
2115 | * exp_ch7.adb: Remove with and use clauses for Stringt. | |
2116 | (Create_Finalizer): Remove local variables Conv_Name, Prag_Decl, | |
2117 | Spec_Decl. Add local variable Body_Id. The names of library-level | |
2118 | finalizers are now manually fully qualified and are no longer external. | |
2119 | A single name is now capable of servicing .NET, JVM and non-VM targets. | |
2120 | Pragma Export is no longer required to provide visibility for the name. | |
2121 | (Create_Finalizer_String): Removed. | |
2122 | (New_Finalizer_Name): New routine which mimics New_..._Name. | |
2123 | ||
01f0729a AC |
2124 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> |
2125 | ||
2126 | * sem_elab.adb (Check_Internal_Call_Continue): Change the type of the | |
2127 | elaboration counter to Standard_Short_Integer. | |
2128 | * sem_util.adb (Build_Elaboration_Entity): Likewise. | |
2129 | * bindgen.adb (Gen_Elab_Externals_Ada): Adjust to above change. | |
2130 | (Gen_Elab_Externals_C): Likewise. | |
2131 | ||
2132 | 2011-08-04 Ed Falis <falis@adacore.com> | |
2133 | ||
2134 | * system-vxworks-arm.ads, system-vxworks-sparcv9.ads, | |
2135 | system-vxworks-ppc.ads, system-vxworks-m68k.ads, | |
2136 | system-vxworks-mips.ads, system-vxworks-x86.ads | |
2137 | (Always_Compatible_Rep): set to False for all VxWorks targets. | |
2138 | ||
2c1b72d7 AC |
2139 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
2140 | ||
2141 | * par_sco.adb, prj-proc.adb, make.adb, bindgen.adb, prj.adb, prj.ads, | |
2142 | makeutl.adb, makeutl.ads, prj-nmsc.adb, exp_ch5.adb, exp_ch12.adb, | |
2143 | exp_ch7.ads, exp_util.ads, sem_util.ads, g-comlin.ads, exp_ch6.adb, | |
2144 | exp_ch6.ads, lib-xref.ads, exp_ch7.adb, exp_util.adb, exp_dist.adb, | |
2145 | exp_strm.adb, gnatcmd.adb, freeze.adb, g-comlin.adb, lib-xref-alfa.adb, | |
2146 | sem_attr.adb, sem_prag.adb, sem_util.adb, sem_elab.adb, sem_ch8.adb, | |
2147 | sem_ch11.adb, sem_eval.adb, sem_ch13.adb, sem_disp.adb, a-fihema.adb: | |
2148 | Minor reformatting and code reorganization. | |
2149 | ||
2150 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
2151 | ||
2152 | * projects.texi: Added doc for aggregate projects. | |
2153 | ||
824e9320 AC |
2154 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
2155 | ||
2156 | * prj-proc.adb, prj-nmsc.adb, prj-env.adb (Process_Declarative_Items): | |
2157 | Add support for overriding the Project_Path in aggregate projects. | |
2158 | ||
2159 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
2160 | ||
2161 | * a-cofove.ads: Minor reformatting. | |
2162 | ||
2163 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
2164 | ||
2165 | * exp_ch7.adb (Build_Adjust_Or_Finalize_Statements): Update the comment | |
2166 | on the generated code. | |
2167 | (Build_Finalize_Statements): Update the comment on the generated code. | |
2168 | (Build_Initialize_Statements): Update the comment on the generated code. | |
2169 | (Build_Object_Declarations): Add local variable Result. The object | |
2170 | declarations are now built in sequence. | |
2171 | * rtsfind.ads: Add RE_Exception_Occurrence_Access to tables RE_Id and | |
2172 | RE_Unit_Table. | |
2173 | ||
2174 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
2175 | ||
2176 | * checks.adb, alfa.adb, alfa.ads: Minor reformatting. | |
2177 | ||
2178 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> | |
2179 | ||
2180 | * einfo.ads (Elaboration_Entity): Document new definition and use. | |
2181 | (Elaboration_Entity_Required): Adjust to above change. | |
2182 | * exp_attr.adb (Expand_N_Attribute_Reference): Likewise. | |
2183 | * exp_ch12.adb: And with and use for Snames. | |
2184 | (Expand_N_Generic_Instantiation): Test 'Elaborated attribute. | |
2185 | * exp_util.adb (Set_Elaboration_Flag): Likewise. | |
2186 | * sem_attr.adb (Analyze_Attribute) <Check_Library_Unit>: Delete. | |
2187 | <Check_Unit_Name>: Deal with N_Expanded_Name. | |
2188 | <Attribute_Elaborated>: Extend to all unit names. | |
2189 | * sem_elab.adb: And with and use for Uintp. | |
2190 | (Check_Internal_Call_Continue): Adjust to Elaboration_Entity change. | |
2191 | * sem_util.ads (Build_Elaboration_Entity): Adjust comment. | |
2192 | * sem_util.adb (Build_Elaboration_Entity): Change type to Integer. | |
2193 | * bindgen.adb (Gen_Elab_Externals_Ada): New local subprogram taken | |
2194 | from Gen_Adainit_Ada. | |
2195 | (Gen_Elab_Externals_C): Likewise, but taken from Gen_Adainit_C. | |
2196 | (Gen_Adafinal_Ada): Remove redundant test. In the non-main program | |
2197 | case, do not call System.Standard_Library.Adafinal; instead call | |
2198 | finalize_library if needed. | |
2199 | (Gen_Adafinal_C): Likewise. | |
2200 | (Gen_Adainit_Ada): Do not set SSL.Finalize_Library_Objects in the | |
2201 | non-main program case. | |
2202 | (Gen_Adainit_C): Generate a couple of external declarations here. | |
2203 | In the main program case, set SSL.Finalize_Library_Objects. | |
2204 | (Gen_Elab_Calls_Ada): Adjust to Elaboration_Entity change. | |
2205 | (Gen_Elab_Calls_C): Likewise. | |
2206 | (Gen_Finalize_Library_Ada): Likewise. Skip SAL interface units. | |
2207 | (Gen_Finalize_Library_C): Likewise. Generate a full function. | |
2208 | (Gen_Main_C): Put back call to Ada_Final and don't finalize library | |
2209 | objects here. | |
2210 | (Gen_Output_File_Ada): Generate pragma Linker_Destructor for Ada_Final | |
2211 | if -a is specified. Call Gen_Elab_Externals_Ada. Move around call to | |
2212 | Gen_Adafinal_Ada. | |
2213 | (Gen_Output_File_C): Generate __attribute__((destructor)) for Ada_Final | |
2214 | if -a is specified. Call Gen_Elab_Externals_C. Remove useless couple | |
2c7f9cc0 | 2215 | of external declarations. Call Gen_Finalize_Library_C. |
824e9320 | 2216 | |
316d9d4f EB |
2217 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
2218 | ||
2219 | * prj.adb, prj.ads, makeutl.adb, makeutl.ads (Complete_Mains, | |
2220 | Compute_Compilation_Phases): new subprogram. | |
2221 | (Builder_Data, Builder_Project_Tree_Data): new subprogram and type | |
2222 | The number of mains as well as the various compilation phases that | |
2223 | need to be run are now project tree specific, since various | |
2224 | aggregated trees might have different requirements. In particular, | |
2225 | they do not all require bind or link phases. | |
2226 | ||
9434c32e EB |
2227 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
2228 | ||
2229 | * prj.adb, prj.ads, makeutl.adb, makeutl.ads, prj-env.adb | |
2230 | (Project_Tree_Appdata): New type. | |
2231 | It is now possible to associate application-specific data to a project | |
2232 | tree. In particular, this is used in the gprbuild builder to avoid a | |
2233 | number of global tables and htables, especially now that there can be | |
2234 | several project trees loaded at once because of aggregate projects. | |
2235 | (Debug_Name): new procedure. | |
2236 | * projects.texi: Clarify syntax of "**" for Source_Dirs | |
2237 | ||
41ba34db EB |
2238 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
2239 | ||
2240 | * prj.ads, makeutl.adb, makeutl.ads (Queue.Insert): now also inserts | |
2241 | the "roots" for a main. | |
2242 | (Fill_From_Project): add support for aggregate projects. Main units | |
2243 | in aggregated projects are now automatically added in the list of | |
2244 | files to build (although this fails later on in gprbuild, because | |
2245 | these files are not using the root proejct tree, so this needs | |
2246 | further cleanup) | |
2247 | * gcc-interface/Make-lang.in: Update dependencies. | |
2248 | ||
fccd42a9 AC |
2249 | 2011-08-03 Yannick Moy <moy@adacore.com> |
2250 | ||
2251 | * sem_ch4.adb (Analyze_Conditional_Expression): only allow boolean | |
2252 | conditional expression in ALFA. | |
2253 | * sem_res.adb (Resolve_Conditional_Expression): mark non-boolean | |
2254 | expressions as not in ALFA. | |
2255 | ||
2256 | 2011-08-03 Robert Dewar <dewar@adacore.com> | |
2257 | ||
2258 | * a-cofove.adb: Minor reformatting. | |
2259 | ||
2260 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
2261 | ||
2262 | * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads | |
2263 | (Insert_Project_Sources, Insert_withed_Sources_For): moved from the | |
2264 | gprbuild sources. | |
2265 | These packages are more logically placed in the Queue package, since | |
2266 | they manipulate the queue. It is also likely that they can be adapted | |
2267 | for gnatmake, thus sharing more code. | |
2268 | (Finish_Program, Fail_Program): moved from the gprbuild sources, so | |
2269 | that we could move the above. | |
2270 | ||
2271 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
2272 | ||
2273 | * errutil.adb (Finalize): clean up the list of error messages on exit. | |
2274 | Calling this subprogram multiple times will no longer show duplicate | |
2275 | error messages on stderr. | |
2276 | ||
2277 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
2278 | ||
2279 | * g-comlin.adb, g-comlin.ads (Set_Command_Line): ignore the parameter | |
2280 | Getopt_Switches when we have already define a command line | |
2281 | configuration. | |
2282 | ||
5e8c8e44 YM |
2283 | 2011-08-03 Yannick Moy <moy@adacore.com> |
2284 | ||
2285 | * sem_ch11.adb (Analyze_Raise_xxx_Error): do not mark such nodes as not | |
2286 | in ALFA. Instead, they are considered as assertions to prove. | |
2287 | * sem_ch4.adb (Analyze_Conditional_Expression): do not always mark such | |
2288 | nodes as not in ALFA. Instead, include conditional expressions in ALFA | |
2289 | if they have no ELSE part, or if they occur in pre- and postconditions, | |
2290 | where the Condition cannot have side-effects in ALFA | |
2291 | (Analyze_Membership_Op): do not mark such nodes as not in ALFA | |
2292 | (Analyze_Type_Conversion): do not always mark such nodes as not in ALFA. | |
2293 | Instead, include type conversion between scalar types in ALFA. | |
2294 | * sem_ch6.adb (Process_Formals): correctly mark a parameter in ALFA | |
2295 | if-and-only-if its type is in ALFA. | |
2296 | ||
5ffe0bab AC |
2297 | 2011-08-03 Thomas Quinot <quinot@adacore.com> |
2298 | ||
2299 | * scos.adb, get_scos.adb, put_scos.adb | |
2300 | New code letter for decisions: G (entry guard) | |
2301 | * par_sco.adb | |
2302 | (Traverse_Subprogram_Body): Rename to... | |
2303 | (Traverse_Subprogram_Or_Task_Body): New subrpogram. | |
2304 | (Traverse_Protected_Body): New subprogram | |
2305 | (Traverse_Declarations_Or_Statements): Add traversal of task bodies, | |
2306 | protected bodies and entry bodies. | |
2307 | ||
2308 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
2309 | ||
2310 | * einfo.adb, einfo.ads (Is_Postcondition_Proc): new flag for procedure | |
2311 | entities with get/set subprograms, which is set on procedure entities | |
2312 | generated by the compiler for a postcondition. | |
2313 | * sem_ch6.adb (Process_PPCs): set new flag on postcondition procedures | |
2314 | * alfa.adb, alfa.ads (Get_Entity_For_Decl): new function returning the | |
2315 | entity for a declaration | |
2316 | (Get_Unique_Entity_For_Decl): new function returning an entity which | |
2317 | represents a declaration, so that matching spec and body have the same | |
2318 | entity. | |
2319 | ||
2320 | 2011-08-03 Robert Dewar <dewar@adacore.com> | |
2321 | ||
2322 | * a-except-2005.adb, a-cfhama.adb, a-cfhase.adb, a-cfhase.ads, | |
2323 | a-cforma.adb, a-cforse.ads, a-cforse.adb: Minor reformatting | |
2324 | ||
2325 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
2326 | ||
2327 | * lib-xref-alfa.adb (Detect_And_Add_ALFA_Scope): make the subprogram | |
2328 | library-level because retriction No_Implicit_Dynamic_Code in the | |
2329 | front-end prevents its definition as a local subprogram | |
2330 | (Traverse_Compilation_Unit): extract new procedure from Add_ALFA_File, | |
2331 | for reuse in other contexts | |
2332 | (Traverse_Declarations_Or_Statements, | |
2333 | Traverse_Handled_Statement_Sequence, Traverse_Package_Body, | |
2334 | Traverse_Package_Declaration, Traverse_Subprogram_Body): make all these | |
2335 | procedures take a callback parameter to be called on all declarations | |
2336 | * lib-xref.ads | |
2337 | (Traverse_All_Compilation_Units): new generic function to traverse a | |
2338 | compilation unit and call a callback parameter on all declarations | |
2339 | ||
f9ad6b62 AC |
2340 | 2011-08-03 Javier Miranda <miranda@adacore.com> |
2341 | ||
2342 | * sem_prag.adb (Process_Interface_Name): Allow duplicated export names | |
2343 | in Java since they are always enclosed in a namespace that | |
2344 | differentiates them, and overloaded entities are supported by the VM. | |
2345 | ||
2346 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
2347 | ||
2348 | * checks.adb (Determine_Range): If a computed bound of an operation is | |
2349 | outside the range of the base type of the expression, and overflow | |
2350 | checks are enabled, the result is unknown and cannot be used for any | |
2351 | subsequent constant folding. | |
2352 | * sem_eval.adb (Compile_Time_Compare): if the bounds of one operand are | |
2353 | unknown, so is the result of the comparison. | |
2354 | ||
2355 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> | |
2356 | ||
2357 | * a-except-2005.adb (Raise_From_Controlled_Operation): Add new formal | |
2358 | From_Abort. When finalization was triggered by an abort, propagate | |
2359 | Standard'Abort_Signal rather than Program_Error. | |
2360 | * a-except-2005.ads (Raise_From_Controlled_Operation): Add new formal | |
2361 | From_Abort. | |
2362 | * a-except.adb (Raise_From_Controlled_Operation): Add new formal | |
2363 | From_Abort. When finalization was triggered by an abort, propagate | |
2364 | Standard'Abort_Signal rather than Program_Error. | |
2365 | * a-except.ads:(Raise_From_Controlled_Operation): Add new formal | |
2366 | From_Abort. | |
2367 | * exp_ch7.adb:(Build_Adjust_Or_Finalize_Statements): New local variable | |
2368 | Abort_Id. Update the calls to Build_Object_Declarations and | |
2369 | Build_Raise_Statement to include Abort_Id. | |
2370 | (Build_Adjust_Statements): New local variable Abort_Id. Update the | |
2371 | calls to Build_Object_Declarations and Build_Raise_Statement to include | |
2372 | Abort_Id. | |
2373 | (Build_Finalize_Statements): New local variable Abort_Id. Update the | |
2374 | calls to Build_Object_Declarations and Build_Raise_Statement to include | |
2375 | Abort_Id. | |
2376 | (Build_Components): Create an entity for Abort_Id when exceptions are | |
2377 | allowed on the target. | |
2378 | (Build_Finalizer): New local variable Abort_Id. | |
2379 | (Build_Initialize_Statements): New local variable Abort_Id. Update the | |
2380 | calls to Build_Object_Declarations and Build_Raise_Statement to include | |
2381 | Abort_Id. | |
2382 | (Build_Object_Declarations): Add new formal Abort_Id. Create the | |
2383 | declaration of flag Abort_Id to preserve the original abort status | |
2384 | before finalization code is executed. | |
2385 | (Build_Raise_Statement): Add new formal Abort_Id. Pass Abort_Id to | |
2386 | runtime routine Raise_From_Controlled_Operation. | |
2387 | (Create_Finalizer): Update the call to Build_Raise_Statement to include | |
2388 | Abort_Id. Update the call to Build_Object_Declarations to include | |
2389 | Abort_Id. Update the layout of the finalizer body. | |
2390 | (Make_Handler_For_Ctrl_Operation): Add an actual for From_Abort. | |
2391 | (Process_Transient_Objects): New local variable Abort_Id. Remove the | |
2392 | clunky code to create all flags and objects related to | |
2393 | exception propagation and replace it with a call to | |
2394 | Build_Object_Declarations. Update the call to Build_Raise_Statement to | |
2395 | include Abort_Id. | |
2396 | * exp_ch7.ads (Build_Object_Declarations): Moved from body to spec. | |
2397 | Add new formal Abort_Id and associated comment on its use. | |
2398 | (Build_Raise_Statement): Add new formal Abort_Id and associated comment | |
2399 | on its use. | |
2400 | * exp_intr.adb (Expand_Unc_Deallocation): New local variable Abort_Id. | |
2401 | Remove the clunky code to create all flags and objects related to | |
2402 | exception propagation and replace it with a call to | |
2403 | Build_Object_Declarations. Update the call to Build_Raise_Statement. | |
2404 | ||
2405 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> | |
2406 | ||
2407 | * s-tassta.adb: Fix minor typos. | |
2408 | ||
2409 | 2011-08-03 Robert Dewar <dewar@adacore.com> | |
2410 | ||
2411 | * rtsfind.ads, makeutl.ads, prj.ads, prj.adb, make.adb, | |
2412 | lib-writ.adb, makeutl.adb, s-soflin.ads, clean.adb: Minor reformatting. | |
2413 | ||
1cdfa9be AC |
2414 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> |
2415 | ||
2416 | * exp_ch7.adb (Create_Finalizer): Treat freeze nodes in similar fashion | |
2417 | to packages. This ensures that the finalizer body will not end up | |
2418 | inside the freeze node. | |
2419 | (Process_Declarations): Add code to detect whether a freeze node has a | |
2420 | nested finalization collection. | |
2421 | ||
2422 | 2011-08-03 Pascal Obry <obry@adacore.com> | |
2423 | ||
2424 | * g-awk.adb, g-awk.ads: Make GNAT.AWK API compatible with Ada 2005. | |
2425 | (Current_Session): Return a not null access to Session_Type. | |
2426 | (Default_Session): Likewise. | |
2427 | ||
243cae0a AC |
2428 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
2429 | ||
2430 | * a-cfdlli.adb, bindgen.adb, exp_ch4.adb, exp_ch13.adb, sem_warn.adb, | |
2431 | exp_ch3.adb, exp_ch3.ads: Minor reformatting. | |
2432 | ||
2433 | 2011-08-03 Pascal Obry <obry@adacore.com> | |
2434 | ||
2435 | * g-awk.ads: Minor comment fix. | |
2436 | ||
2437 | 2011-08-03 Sergey Rybin <rybin@adacore.com> | |
2438 | ||
2439 | * tree_io.ads (ASIS_Version_Number): Update because of the changes in | |
2440 | the tree structure related to discriminant constraints. | |
2441 | Original_Discriminant cannot be used any more for computing the | |
2442 | defining name for the reference to a discriminant. | |
2443 | ||
2444 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
2445 | ||
2446 | * sem_disp.adb (Is_Tag_Indeterminate): If the return type of the | |
2447 | function is not visibly tagged, this is not a dispatching call and | |
2448 | therfore is not Tag_Indeterminate, even if the function is marked as | |
2449 | dispatching on result. | |
2450 | ||
f553e7bc AC |
2451 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> |
2452 | ||
2453 | * exp_ch13.adb: Add with and use clauses for Restrict and Rident. | |
2454 | (Expand_N_Free_Statement): Add a guard to protect against run-times | |
2455 | which do not support controlled types. | |
2456 | * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Add a guard to protect | |
2457 | against run-times which do not support controlled types. | |
2458 | * exp_ch4.adb (Complete_Controlled_Allocation): Add a guard to protect | |
2459 | against run-times which do not support controlled types. | |
2460 | * exp_ch7.adb (Build_Finalization_Collection): Add a guard to protect | |
2461 | against run-times which do not support controlled types. | |
2462 | * exp_util.adb (Needs_Finalization): Code reformatting. Add a guard to | |
2463 | protect against run-times which do not support controlled types. | |
2464 | ||
2465 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> | |
2466 | ||
2467 | * exp_intr.adb: Put back with and use clauses for Exp_Ch11. | |
2468 | (Expand_Unc_Deallocation): Expand the AT_END handler at the very end. | |
2469 | ||
e4982b64 AC |
2470 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> |
2471 | ||
2472 | * exp_ch5.adb (Expand_Iterator_Loop): indicate that the cursor is | |
2473 | modified in the source, to prevent spurious warnings when compiling | |
2474 | with -gnatg. | |
2475 | ||
2476 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
2477 | ||
2478 | * a-except-2005.adb: Minor reformatting. | |
2479 | ||
2480 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
2481 | ||
2482 | * sem_warn.adb (Check_One_Unit): if the only mention of a withed unit | |
2483 | is a renaming declaration in the private part of a package, do not emit | |
2484 | a warning that the with_clause could be moved because the renaming may | |
2485 | be used in the body or in a child unit. | |
2486 | ||
2487 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> | |
2488 | ||
2489 | * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): | |
2490 | Propagate the Comes_From_Source attribute from the original return | |
2491 | object to the renaming. | |
2492 | ||
2493 | 2011-08-03 Jose Ruiz <ruiz@adacore.com> | |
2494 | ||
2495 | * exp_ch7.adb (Build_Raise_Statement): Do not call | |
2496 | Raise_From_Controlled_Operation when this routine is not present in | |
2497 | the run-time library. | |
2498 | (Cleanup_Protected_Object, Cleanup_Task): For restricted run-time | |
2499 | libraries (Ravenscar), tasks are non-terminating, and protected objects | |
2500 | and tasks can only appear at library level, so we do not want | |
2501 | finalization of protected objects nor tasks. | |
2502 | * exp_intr.adb: Minor clarification in comment. | |
2503 | bindgen.adb (Gen_Adainit_Ada, Gen_Main_C, Gen_Output_File_Ada, | |
2504 | Gen_Output_File_C): Remove references to finalization of library-level | |
2505 | objects when using restricted run-time libraries. | |
2506 | ||
2507 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
2508 | ||
2509 | * sem_ch3.adb (Build_Discriminant_Constraints): Set | |
2510 | Original_Discriminant only if the parent type is a generic formal. | |
2511 | ||
deb8dacc HK |
2512 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> |
2513 | ||
2514 | * exp_ch13.adb: Add with and use clause for Targparm; | |
2515 | (Expand_N_Free_Statement): Prevent the generation of a custom | |
2516 | Deallocate on .NET/JVM targets since this requires pools and address | |
2517 | arithmetic. | |
2518 | * exp_ch4.adb (Expand_Allocator_Expression): When compiling for | |
2519 | .NET/JVM targets, attach the newly allocated object to the access | |
2520 | type's finalization collection. Do not generate a call to | |
2521 | Set_Finalize_Address_Ptr on .NET/JVM because this routine does not | |
2522 | exist in the runtime. | |
2523 | (Expand_N_Allocator): When compiling for .NET/JVM targets, do not | |
2524 | create a custom Allocate for object that do not require initialization. | |
2525 | Attach a newly allocated object to the access type's finalization | |
2526 | collection on .NET/JVM. | |
2527 | * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add special processing for | |
2528 | assignment of controlled types on .NET/JVM. The two hidden pointers | |
2529 | Prev and Next and stored and later restored after the assignment takes | |
2530 | place. | |
2531 | * exp_ch6.adb (Expand_Call): Add local constant Curr_S. Add specialized | |
2532 | kludge for .NET/JVM to recognize a particular piece of code coming from | |
2533 | Heap_Management and change the call to Finalize into Deep_Finalize. | |
2534 | * exp_ch7.adb (Build_Finalization_Collection): Allow the creation of | |
2535 | finalization collections on .NET/JVM only for types derived from | |
2536 | Controlled. Separate the association of storage pools with a collection | |
2537 | and only allow it on non-.NET/JVM targets. | |
2538 | (Make_Attach_Call): New routine. | |
2539 | (Make_Detach_Call): New routine. | |
2540 | (Process_Object_Declarations): Suppress the generation of | |
2541 | build-in-place return object clean up code on .NET/JVM since it uses | |
2542 | pools. | |
2543 | * exp_ch7.ads (Make_Attach_Call): New routine. | |
2544 | (Make_Detach_Call): New routine. | |
2545 | * exp_intr.adb Add with and use clause for Targparm. | |
2546 | (Expand_Unc_Deallocation): Detach a controlled object from a collection | |
2547 | on .NET/JVM targets. | |
2548 | * rtsfind.ads: Add entries RE_Attach, RE_Detach and | |
2549 | RE_Root_Controlled_Ptr to tables RE_Id and RE_Unit_Table. | |
2550 | * snames.ads-tmpl: Add name Name_Prev. Move Name_Prev to the special | |
2551 | names used in finalization. | |
2552 | ||
2553 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> | |
2554 | ||
2555 | * a-fihema.adb: Add with and use clauses for System.Soft_Links. | |
2556 | (Attach, Detach): Lock the current task when chaining an object onto a | |
2557 | collection. | |
2558 | ||
df3e68b1 HK |
2559 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> |
2560 | ||
2561 | * a-except.adb, a-except-2005.adb (Raise_From_Controlled_Operation): | |
2562 | Rewritten to create the message strings when the exception is not | |
2563 | raised by an abort during finalization. | |
2564 | * a-except.ads, a-except-2005.ads: Add pragma Export for procedure | |
2565 | Raise_From_Controlled_Operation and update its associated comment. | |
2566 | * a-fihema.ads, a-fihema.adb: New GNAT unit. | |
2567 | Ada.Finalization.Heap_Management provides key functionality | |
2568 | associated with controlled objects on the heap, their creation, | |
2569 | finalization and reclamation. Type Finalization_Collection is | |
2570 | effectively a wrapper which sits ontop of a storage pool and performs | |
2571 | all necessary bookkeeping for all the objects it contains. Each | |
2572 | access-to-controlled or access-to-class-wide type receives a collection | |
2573 | as part of its expansion. The compiler generates buffer code and | |
2574 | invokes Allocate / Deallocate to create and destroy allocated | |
2575 | controlled objects. | |
2576 | * a-finali.adb ("="): Removed. | |
2577 | * a-finali.ads ("="): Removed. Controlled types no longer carry hidden | |
2578 | fields Prev and Next. | |
2579 | * ali.adb (Scan_ALI): Add parsing code to process PF / Has_Finalizer. | |
2580 | A library unit with at least one controlled object on the library level | |
2581 | has a special finalizer which is invoked by the binder. To signal this, | |
2582 | ali files carry field PF. | |
2583 | * ali.ads: New field in type Unit_Record called Has_Finalizer. Add | |
2584 | associated comment on field usage. | |
2585 | * a-tags.adb (Get_RC_Offset): Removed. | |
2586 | (Needs_Finalization): New routine. | |
2587 | * a-tags.ads: Update the structure of the GNAT dispatch tables. | |
2588 | Dispatch tables now carry field Needs_Finalization which provides | |
2589 | runtime indication whether a type is controlled or has controlled | |
2590 | components or both. Remove field RC_Offset. | |
2591 | (Get_RC_Offset): Removed along with its associated pragma Export. | |
2592 | Since tagged types with controlled components no longer carry hidden | |
2593 | field _controller, the special mechanism to retrieve its location is no | |
2594 | longer needed. | |
2595 | (Needs_Finalization): New routine. | |
2596 | * atree.ads, atree.adb (Elist24): New routine. | |
2597 | (Set_Elist24): New routine. | |
2598 | * atree.h: Add a define clause for Elist24. | |
2599 | * bindgen.adb New library-level variable Lib_Final_Built. | |
2600 | (Gen_Adafinal_Ada): Reimplemented. Depending on the restrictions or the | |
2601 | presence of a VM target, the routine generates calls to the proper | |
2602 | library finalization routine. | |
2603 | (Gen_Adainit_Ada): Import Finalize_Library_Objects only on non-VM | |
2604 | targets. Set the correct library finalization routine depending on | |
2605 | whether the library has controlled objects or this is a VM compilation. | |
2606 | (Gen_Finalize_Library_Ada): New routine. This procedure generates calls | |
2607 | to library-level finalizers of compiled units in reverse order of | |
2608 | elaboration. It also produces exception management code and reraises a | |
2609 | potential exception after all units have been finalized. | |
2610 | (Gen_Finalize_Library_C): New routine. This procedure generates calls to | |
2611 | library-level finalizers of compiled units in reverse order of | |
2612 | elaboration. | |
2613 | (Gen_Finalize_Library_Defs_C): New routine. This procedure generates the | |
2614 | definitions of all library-level finalizers available to the compilation | |
2615 | (Gen_Main_Ada): Directly call Adafinal which now contails all target | |
2616 | dependent code. | |
2617 | (Gen_Main_C): Add new local constant Needs_Library_Finalization. Call | |
2618 | System.Standard_Library.Adafinal directly. If the library needs | |
2619 | finalization actions, create the sequence of finalization calls. | |
2620 | (Gen_Output_File_Ada): Alphabetize local variables and constants. | |
2621 | Generate a with clause for System.Soft_Links when compiling for a VM. | |
2622 | Remove the code which imports System.Standard_Library.Adafinal as | |
2623 | Do_Finalize. Generate the library finalization routine. | |
2624 | (Gen_Output_File_C): Add new local constant Needs_Library_Finalization. | |
2625 | If the library needs finalization actions, create all the definitions | |
2626 | of library- level finalizers. | |
2627 | (Has_Finalizer): New routine. Determines whether at least one compiled | |
2628 | unit has a library-level finalizer. | |
2629 | Add type Qualification_Mode. | |
2630 | (Set_Unit_Name): Add a formal which controls the replacement of a dot. | |
2631 | * einfo.adb: New usage of field 15 as Return_Flag. | |
2632 | Remove Finalization_Chain_Entity from the usages of field 19. | |
2633 | Remove Associated_Final_Chain from the usages of field 23. | |
2634 | New usage of field 23 as Associated_Collection. | |
2635 | New usage of field 24 as Finalizer. | |
2636 | New usage of flag 252 as Is_Processed_Transient. | |
2637 | (Associated_Final_Chain): Removed. | |
2638 | (Associated_Collection): New routine. | |
2639 | (Finalization_Chain_Entity): Removed. | |
2640 | (Finalizer): New routine. | |
2641 | (Is_Finalizer): New routine. | |
2642 | (Is_Processed_Transient): New routine. | |
2643 | (Return_Flag): New routine. | |
2644 | (Set_Associated_Final_Chain): Removed. | |
2645 | (Set_Associated_Collection): New routine. | |
2646 | (Set_Finalization_Chain_Entity): Removed. | |
2647 | (Set_Finalizer): New routine. | |
2648 | (Set_Is_Processed_Transient): New routine. | |
2649 | (Set_Return_Flag): New routine. | |
2650 | (Write_Entity_Flags): Include Is_Processed_Transient to the list of | |
2651 | displayed flags. | |
2652 | (Write_Field8_Name): Alphabetize the output. | |
2653 | (Write_Field11_Name): Alphabetize the output. | |
2654 | (Write_Field12_Name): Alphabetize the output. | |
2655 | (Write_Field13_Name): Alphabetize the output. | |
2656 | (Write_Field14_Name): Alphabetize the output. | |
2657 | (Write_Field15_Name): Alphabetize the output. | |
2658 | (Write_Field16_Name): Alphabetize the output. | |
2659 | (Write_Field17_Name): Alphabetize the output. | |
2660 | (Write_Field18_Name): Alphabetize the output. | |
2661 | (Write_Field19_Name): Alphabetize the output. Remove the output of | |
2662 | Finalization_Chain_Entity. | |
2663 | (Write_Field20_Name): Alphabetize the output. | |
2664 | (Write_Field21_Name): Alphabetize the output. | |
2665 | (Write_Field22_Name): Alphabetize the output. | |
2666 | (Write_Field23_Name): Alphabetize the output. Remove the output of | |
2667 | Associated_Final_Chain. Add output for Associated_Collection. | |
2668 | (Write_Field24_Name): Alphabetize the output. | |
2669 | (Write_Field25_Name): Add output for Finalizer. | |
2670 | (Write_Field26_Name): Alphabetize the output. | |
2671 | (Write_Field27_Name): Alphabetize the output. | |
2672 | (Write_Field28_Name): Alphabetize the output. | |
2673 | * einfo.ads: Add new field description for Associated_Collection and | |
2674 | its uses in nodes. | |
2675 | Remove Associated_Final_Chain and its uses in nodes. | |
2676 | Remove Finalization_Chain_Entity and its uses in nodes. | |
2677 | Add new field description for Finalizer and its uses in nodes. | |
2678 | Add new synthesized attribute Is_Finalizer. | |
2679 | Add new flag description for Is_Processed_Transient and its uses in | |
2680 | nodes. | |
2681 | Add new field description for Return_Flag and its uses in nodes. | |
2682 | (Associated_Final_Chain): Removed along with its pragma Inline. | |
2683 | (Associated_Collection): New routine and pragma Inline. | |
2684 | (Finalization_Chain_Entity): Removed along with its pragma Inline. | |
2685 | (Finalizer): New routine and pragma Inline. | |
2686 | (Is_Finalizer): New routine and pragma Inline. | |
2687 | (Is_Processed_Transient): New routine and pragma Inline. | |
2688 | (Return_Flag): New routine and pragma Inline. | |
2689 | (Set_Associated_Final_Chain): Removed along with its pragma Inline. | |
2690 | (Set_Associated_Collection): New routine and pragma Inline. | |
2691 | (Set_Finalization_Chain_Entity): Removed along with its pragma Inline. | |
2692 | (Set_Finalizer): New routine and pragma Inline. | |
2693 | (Set_Is_Processed_Transient): New routine and pragma Inline. | |
2694 | (Set_Return_Flag): New routine and pragma Inline. | |
2695 | * exp_aggr.adb: Alphabetize subprograms. | |
2696 | (Build_Array_Aggr_Code): Remove formal Flist and its associated comment. | |
2697 | (Build_Record_Aggr_Code): Remove formals Flist and Obj along with their | |
2698 | associated comments. Remove local variables External_Final_List and | |
2699 | Attach. | |
2700 | Rename Ctrl_Stuff_Done to Finalization_Done. Rename local variable A to | |
2701 | Ancestor. Remove the retrieval of finalization lists. Update the call to | |
2702 | Make_Adjust_Call. | |
2703 | (Convert_Aggr_In_Allocator): Remove the retrieval of finalization | |
2704 | lists. Update the call to Late_Expansion. | |
2705 | (Convert_Aggr_In_Assignment): Update the call to Late_Expansion. | |
2706 | (Convert_Aggr_In_Object_Decl): Update the call to Late_Expansion. | |
2707 | (Gen_Assign): Remove the retrieval of the finalization list used to | |
2708 | build the assignment. Update the calls to Make_Init_Call and | |
2709 | Make_Adjust_Call. | |
2710 | (Gen_Ctrl_Actions_For_Aggr): Renamed to Generate_Finalization_Actions. | |
2711 | Remove the mechanism to determine attachment levels and finalization | |
2712 | list retrieval. Remove the processing for coextensions. | |
2713 | (Init_Controller): Removed. Controllers no longer exist. | |
2714 | (Late_Expansion): Remove formals Flist and Obj along with their | |
2715 | associated comments. Update the calls to Build_Record_Aggr_Code and | |
2716 | Build_Array_Aggr_Code. | |
2717 | * exp_ch13.adb (Expand_N_Free_Statement): New routine. | |
2718 | (Expand_N_Freeze_Entity): Add special processing for finalizers which | |
2719 | appear in entry bodies, protected subprograms and task bodies. | |
2720 | * exp_ch13.ads (Expand_N_Free_Statement): New routine. | |
2721 | * exp_ch3.adb (Add_Final_Chain): Removed. | |
2722 | (Build_Array_Init_Proc): Alphabetize local variables. | |
2723 | (Build_Assignment): Alphabetize local variables. Update the call to | |
2724 | Maked_Adjust_Call. | |
2725 | (Build_Class_Wide_Master): Rename local variables to better reflect | |
2726 | their role. | |
2727 | (Build_Discriminant_Assignments): Code reformatting. | |
2728 | (Build_Init_Call_Thru): Code reformatting. | |
2729 | (Build_Init_Procedure): Code reformatting. Generate a special version | |
2730 | of Deep_Finalize which is capable of finalizing all initialized | |
2731 | components and ignore the rest. | |
2732 | (Build_Init_Statements): Rename local variables to better reflect their | |
2733 | role. | |
2734 | Reimplement the mechanism to include the creation and update of an index | |
2735 | variable called a "counter". It is used as a bookmark for tracing | |
2736 | initialized and non-initialized components. | |
2737 | (Build_Initialization_Call): Remove local variable Controller_Typ. | |
2738 | Alphabetize all local variables. Remove the initialization of the | |
2739 | record controller and update the call to Make_Init_Call. | |
2740 | (Build_Record_Init_Proc): Rename formal Pe to Rec_Ent. | |
2741 | New local variable Counter. | |
2742 | (Constrain_Array): Alphabetize. | |
2743 | (Expand_Freeze_Array_Type): Create a collection instead of a | |
2744 | finalization list. | |
2745 | (Expand_Freeze_Class_Wide_Type): New routine. Creates TSS primitive | |
2746 | Finalize_Address which is used in conjunction with allocated controlled | |
2747 | objects. | |
2748 | (Expand_N_Object_Declaration): Remove the creation of a finalization | |
2749 | list for anonymous access types. Update the calls to Make_Init_Call and | |
2750 | Make_Adjust_Call. | |
2751 | (Expand_Freeze_Record_Type): Remove local variable Flist. Remove the | |
2752 | retrieval of finalization lists. Remove the expansion of the record | |
2753 | controller. Create TSS primitive Finalize_Address used in conjunction | |
2754 | with controlled objects on the heap. Create finalization collections | |
2755 | for access-to-controlled record components. | |
2756 | (Expand_Record_Controller): Removed. | |
2757 | (Freeze_Type): Remove the freezing of record controllers. Freezing of | |
2758 | class-wide types now requires additional processing. Create | |
2759 | finalization collections for access-to-controlled types. | |
2760 | (Increment_Counter): New routine. | |
2761 | (Make_Counter): New routine. | |
2762 | (Make_Eq_If): Remove the mention of Name_uController. | |
2763 | (Make_Predefined_Primitive_Specs): There is no longer need to skip | |
2764 | types coming from System.Finalization_Root. | |
2765 | (Predef_Deep_Spec): Reimplemented to reflect the new parameter profiles. | |
2766 | (Predefined_Primitive_Bodies): There is no longer need to skip types | |
2767 | coming from System.Finalization_Root. | |
2768 | (Stream_Operation_OK): Do not generate stream routines for | |
2769 | type Ada.Finalization.Heap_Management.Finalization_Collection. | |
2770 | * exp_ch3.ads: Alphabetize subprograms. | |
2771 | * exp_ch4.adb: Remove with and use clause for Sem_Ch8. | |
2772 | Add with and use clause for Lib. | |
2773 | (Complete_Coextension_Finalization): Removed. | |
2774 | (Complete_Controlled_Allocation): New routine. Create a finalization | |
2775 | collection for anonymous access-to-controlled types. Create a custom | |
2776 | Allocate which interfaces with the back end and the machinery in | |
2777 | Heap_Management. | |
2778 | (Expand_Allocator_Expression): Add necessary calls to | |
2779 | Complete_Controlled_Allocation. Remove the retrieval of finalization | |
2780 | lists. Update the calls to Make_Adjust_Call. Generate a call to | |
2781 | Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate | |
2782 | the associated collection. | |
2783 | (Expand_N_Allocator): Remove the processing for dynamic coextensions. | |
2784 | Code clean up. Remove the retrieval of finalization lists and | |
2785 | attachment levels. | |
2786 | Update the call to Make_Init_Call. Generate a call to | |
2787 | Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate | |
2788 | the associated collection. | |
2789 | (Get_Allocator_Final_List): Removed. Finalization lists are not | |
2790 | available. | |
2791 | (Suitable_Element): Remove the mention of Name_uController. | |
2792 | * exp_ch5.adb: Remove with and use clauses for Ttypes and Uintp. | |
2793 | (Make_Tag_Ctrl_Assignment): Rewritten to simply do a finalization of | |
2794 | the left hand side, carry out the assignment and adjust the left hand | |
2795 | side. | |
2796 | * exp_ch6.adb (Add_Final_List_Actual_To_Build_In_Place_Call): Removed. | |
2797 | (Add_Collection_Actual_To_Build_In_Place_Call): New routine. | |
2798 | (BIP_Formal_Suffix): Rename BIP_Final_List and BIPfinallist to | |
2799 | BIP_Collection and BIPcollection. | |
2800 | (Build_Heap_Allocator): New routine used to allocate the return object | |
2801 | of a build-in-place function onto a collection. | |
2802 | (Expand_Ctrl_Function_Call): Moved from Exp_Ch7. | |
2803 | (Expand_Call): Do not replace direct calls to Deep routines with their | |
2804 | aliases. | |
2805 | (Expand_N_Extended_Return_Statement): Give all variables shorter names | |
2806 | and update their occurrences. Add a special return flag to monitor the | |
2807 | [ab]normal execution of the function. The flag is set right before the | |
2808 | return statement. | |
2809 | Rewrite the mechanism used to allocate a build-in-place return object | |
2810 | on the heap or on a storage pool. | |
2811 | (Is_Direct_Deep_Call): New routine. | |
2812 | (Make_Build_In_Place_Call_In_Allocator): Add a collection to a | |
2813 | build-in-place function call instead of a final list. Build a call to | |
2814 | Set_Finalize_Address_Ptr to decorate the associated collection. | |
2815 | (Make_Build_In_Place_Call_In_Anonymous_Context): Create a temporary in | |
2816 | order to name the build-in-place function call's result for later | |
2817 | finalization. Add a collection to a build-in-place function call | |
2818 | instead of a final list. | |
2819 | (Make_Build_In_Place_Call_In_Assignment): Add a collection to a | |
2820 | build-in-place function call instead of a final list. Remove the code | |
2821 | which moves one final list and transforms it into the actual in a | |
2822 | nested build-in-place call. | |
2823 | (Make_Build_In_Place_Call_In_Object_Declaration): Add a collection to a | |
2824 | build-in-place function call instead of a final list. | |
2825 | (Move_Final_List): Removed. | |
2826 | (Needs_BIP_Collection): New routine. | |
2827 | (Needs_BIP_Final_List): Removed. | |
2828 | * exp_ch6.ads: Replace BIP_Final_List with BIP_Collection in | |
2829 | enumeration type BIP_Formal_Kind. | |
2830 | Update the related comment. | |
2831 | (Needs_BIP_Collection): New routine. | |
2832 | (Needs_BIP_Final_List): Removed. | |
2833 | * exp_ch7.adb: Add with and use clauses for Elists, Exp_Ch6, Stringt | |
2834 | and Ttypes. Remove with and use clauses for Sem_Type. Alphabetize the | |
2835 | majority of subprograms in this unit. Add Name_Finalize_Address to | |
2836 | array Name_Of and TSS_Finalize_Address to array Deep_Name_Of. | |
2837 | (Build_Adjust_Or_Finalize_Statements): Create the adjust or finalization | |
2838 | statements for an array type. | |
2839 | (Build_Adjust_Statements): Create the adjust statements for a record | |
2840 | type. | |
2841 | (Build_Cleanup_Statements): New routine. A procedure which given any | |
2842 | construct containing asynchronous calls, references to _master, or is a | |
2843 | task body, a task allocation or a protected body produces the necessary | |
2844 | runtime calls to clean up these constructs. | |
2845 | (Build_Exception_Handler): New routine. | |
2846 | (Build_Final_List): Removed. | |
2847 | (Build_Finalization_Collection): New routine. A core procedure which | |
2848 | creates a collection to service heap allocated controlled objects | |
2849 | associated with an access-to-controlled type. | |
2850 | (Build_Finalize_Statements): Create the finalization statements for a | |
2851 | record types. | |
2852 | (Build_Finalizer): New routine. A core procedure which given any | |
2853 | construct with declarations and/or statements detects all objects which | |
2854 | need any type of clean up (controlled objects, protected objects) and | |
2855 | generates all necessary code to clean up the said objects in the proper | |
2856 | order. | |
2857 | (Build_Finalizer_Call): New routine. | |
2858 | (Build_Initialize_Statements): Create the initialization statements for | |
2859 | an array type. The generated routine contains code to finalize partially | |
2860 | initialized arrays. | |
2861 | (Build_Object_Declarations): New routine. | |
2862 | (Build_Raise_Statement): New routine. | |
2863 | (Clean_Simple_Protected_Objects): Removed. | |
2864 | (Controller_Component): Removed. | |
2865 | (Enclosing_Function): New routine. | |
2866 | (Expand_Cleanup_Actions): Create a finalizer for a construct which has | |
2867 | either declarations or statements or both. | |
2868 | (Expand_N_Package_Body): Create a finalizer for a non-generic package. | |
2869 | (Expand_N_Package_Declaration): Create a finalizer for a non-generic | |
2870 | package. | |
2871 | (Find_Final_List): Removed. | |
2872 | (Global_Flist_Ref): Removed. | |
2873 | (In_Finalization_Root): Removed. | |
2874 | (Insert_Actions_In_Scope_Around): Determine the range of the transient | |
2875 | scope in terms of tree nodes. Process all transient variables within | |
2876 | that range. | |
2877 | (Make_Adjust_Call): Rewritten. There is no longer an attach call | |
2878 | generated after the adjust. | |
2879 | (Make_Attach_Call): Removed. | |
2880 | (Make_Call): New routine. | |
2881 | (Make_Clean): Removed. | |
2882 | (Make_Deep_Array_Body): Rewritten to simply invoke the appropriate | |
2883 | build routines. | |
2884 | (Make_Deep_Proc): Rewritten to generate the new profile signature used | |
2885 | in Deep routines. | |
2886 | (Make_Deep_Record_Body): Rewritten to simply invoke the appropriate | |
2887 | build routines. | |
2888 | (Make_Final_Call): Modified to simply create a call to either | |
2889 | Deep_Finalize or Finalize. | |
2890 | (Make_Finalize_Address_Body): New routine. | |
2891 | (Make_Finalize_Address_Stmts): New routine. A function which produces | |
2892 | TSS primitive Finalize_Address used in conjunction with heap allocated | |
2893 | controlled objects. | |
2894 | (Make_Handler_For_Ctrl_Operation): Add specialized code for .NET/JVM. | |
2895 | (Make_Init_Call): Rewritten. There is no longer an attach call | |
2896 | generated after initialization. | |
2897 | (Make_Local_Deep_Finalize): New routine. | |
2898 | (Make_Set_Finalize_Address_Ptr_Call): New routine. | |
2899 | (Make_Transient_Block): Remove the finalization list retrieval and | |
2900 | manipulation. | |
2901 | (Needs_Finalization): Moved to Exp_Util. | |
2902 | (Parent_Field_Type): New routine. | |
2903 | (Preprocess_Components): New routine. | |
2904 | (Process_Transient_Objects): New routine. | |
2905 | (Wrap_HSS_In_Block): New routine. | |
2906 | (Wrap_Transient_Declaration): Remove finalization list management and | |
2907 | controller insertion. | |
2908 | (Wrap_Transient_Expression): Code reformatting. | |
2909 | (Wrap_Transient_Statement): Code reformatting. | |
2910 | * exp_ch7.ads (Build_Final_List): Removed. | |
2911 | (Build_Finalization_Collection): New routine. | |
2912 | (Build_Raise_Statement): New routine. | |
2913 | (Controller_Component): Removed. | |
2914 | (Expand_Ctrl_Function_Call): Moved to Exp_Ch6. | |
2915 | (Find_Final_List): Removed. | |
2916 | (In_Finalization_Root): Removed. | |
2917 | (Is_Simple_Protected_Type): Update related comment. | |
2918 | (Make_Adjust_Call): New parameter profile and associated comments. | |
2919 | (Make_Attach_Call): Removed. | |
2920 | (Make_Final_Call): New parameter profile and associated comments. | |
2921 | (Make_Finalize_Address_Body): New routine. | |
2922 | (Make_Init_Call): New parameter profile and associated comments. | |
2923 | (Make_Local_Deep_Finalize): New routine. | |
2924 | (Make_Set_Finalize_Address_Ptr_Call): New routine. | |
2925 | (Needs_Finalization): Moved to Exp_Util. | |
2926 | * exp_ch9.adb (Add_Object_Pointer): Code reformatting. | |
2927 | (Expand_N_Protected_Body): Remove the handling of finalization lists. | |
2928 | (Find_Protection_Type): Moved to Exp_Util. | |
2929 | * exp_disp.adb: Remove with and use clauses for Exp_Ch7. | |
2930 | (Make_DT): Update sequence of dispatch table initialization. Remove the | |
2931 | initialization of field RC_Offset. Add initialization of field Needs_ | |
2932 | Finalization. | |
2933 | * exp_intr.adb (Expand_Unc_Deallocation): Code reformatting. | |
2934 | Reimplement how an object is first finalized, then deallocated. | |
2935 | * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): | |
2936 | Code reformatting. | |
2937 | * exp_tss.ads: Add special suffix for TSS primitive Finalize_Address. | |
2938 | Register TSS_Finalize_Address with type TSS_Names. | |
2939 | * exp_util.adb (Build_Allocate_Deallocate_Proc): New routine. This core | |
2940 | procedure provides the interface between an allocation / deallocation | |
2941 | and the support machinery in Ada.Finalization.Heap_Management. | |
2942 | (Find_Init_Call): Code reformatting. | |
2943 | (Find_Init_Call_In_List): Code reformatting. | |
2944 | (Find_Protection_Type): Moved from Exp_Ch9. | |
2945 | (Find_Prim_Op): Reimplement to add preference of recovered primitive. | |
2946 | (Has_Controlled_Coextensions): Removed. | |
2947 | (Has_Controlled_Objects): New routine. | |
2948 | (In_Library_Level_Package_Body): New routine. | |
2949 | (Insert_Action_After): New routine. | |
2950 | (Is_Finalizable_Transient): New routine. This predicate determines | |
2951 | whether an object declaration is one of the many variants of controlled | |
2952 | transients. | |
2953 | (Is_Null_Access_BIP_Func_Call): New routine. | |
2954 | (Is_Non_BIP_Func_Call): New routine. | |
2955 | (Is_Related_To_Func_Return): New routine. | |
2956 | (Needs_Finalization): Moved from Exp_Ch7. | |
2957 | * exp_util.ads (Build_Allocate_Deallocate_Proc): New routine. | |
2958 | (Find_Protection_Type): Moved from Exp_Ch9. | |
2959 | (Has_Controlled_Coextensions): Removed. | |
2960 | (Has_Controlled_Objects): New routine. | |
2961 | (In_Library_Level_Package_Body): New routine. | |
2962 | (Insert_Action_After): New routine. | |
2963 | (Is_Finalizable_Transient): New routine. | |
2964 | (Is_Null_Access_BIP_Func_Call): New routine. | |
2965 | (Is_Non_BIP_Func_Call): New routine. | |
2966 | (Is_Related_To_Func_Return): New routine. | |
2967 | (Needs_Finalization): Moved from Exp_ch7. | |
2968 | * expander.adb (Expand): Add a case for N_Free_Statement. | |
2969 | * freeze.adb (Freeze_All): Replace the generation of a finalization | |
2970 | list with a collection for access-to-controlled types. | |
2971 | (Freeze_Entity): Code reformatting. | |
2972 | (Freeze_Record_Type): Remove the freezing of a record controller | |
2973 | component. | |
2974 | (Freeze_Subprogram): Code reformatting. | |
2975 | * inline.adb (Cleanup_Scopes): Remove the reset of the scope | |
2976 | finalization list. | |
2977 | * lib-writ.adb (Write_Unit_Information): Output "PF" when a package | |
2978 | has a library-level finalizer. | |
2979 | * lib-writ.ads: Add "PF" to the sequence of unit attributes. | |
2980 | * a-filico.ads, a-filico.adb, s-finimp.ads, s-finimp.adb: Removed. | |
2981 | * Makefile.rtl: Remove a-filico and s-finimp from the list of object | |
2982 | files. Add a-fihema to the list of object files. | |
2983 | * par-ch4.adb: | |
2984 | Alphabetize the associations in type Is_Parameterless_Attribute. | |
2985 | * rtsfind.ads: Ada.Finalization_List.Controller and | |
2986 | System.Finalization_Implementation are no longer a GNAT unit. | |
2987 | Update the range of type Ada_Finalization_Child. Remove the following | |
2988 | recoverable entities: | |
2c7f9cc0 | 2989 | |
df3e68b1 HK |
2990 | RE_Attach_To_Final_List |
2991 | RE_Deep_Tag_Attach | |
2992 | RE_Finalize_List | |
2993 | RE_Finalize_One | |
2994 | RE_Finalizable_Ptr_Ptr | |
2995 | RE_Global_Final_List | |
2996 | RE_Limited_Record_Controller | |
2997 | RE_List_Controller | |
2998 | RE_Move_Final_List | |
2999 | RE_Record_Controller | |
3000 | RE_Simple_List_Controller | |
2c7f9cc0 | 3001 | |
df3e68b1 | 3002 | Add the following recoverable entities: |
2c7f9cc0 | 3003 | |
df3e68b1 HK |
3004 | RE_Add_Offset_To_Address |
3005 | RE_Allocate | |
3006 | RE_Base_Pool | |
3007 | RE_Deallocate | |
3008 | RE_Exception_Identity | |
3009 | RE_Finalization_Collection | |
3010 | RE_Finalization_Collection_Ptr | |
3011 | RE_Needs_Finalization | |
3012 | RE_Save_Library_Occurrence | |
3013 | RE_Set_Finalize_Address_Ptr | |
3014 | RE_Set_Storage_Pool_Ptr | |
3015 | RE_Storage_Count | |
3016 | * sem_aggr.adb (Resolve_Record_Aggregate): Remove mention of | |
3017 | Name_uController. | |
3018 | * sem_aux.adb (First_Discriminant): Remove mention of Name_uController. | |
3019 | (First_Stored_Discriminant): Remove the mention of Name_uController. | |
3020 | * sem_aux.ads: Comment reformatting. | |
3021 | * sem_ch10.adb (Build_Chain): Signal the class-wide creation machinery | |
3022 | to redecorate an already existing class-wide type. | |
3023 | (Decorate_Tagged_Type): New parameter profile and associated comment. | |
3024 | Create a "shadow class-wide type" for a shadow entity. | |
3025 | * sem_ch11.adb (Analyze_Exception_Handlers): Remove the dubious setting | |
3026 | of the final chain along with the associated comment. | |
3027 | * sem_ch3.adb (Access_Type_Declaration): Add new local variable | |
3028 | Full_Desig and set it to the full view of the designated type. | |
3029 | Initialize the finalization collection to empty. | |
3030 | (Build_Derived_Record_Type): Alphabetize local variables. Code | |
3031 | reformatting. | |
3032 | (Collect_Fixed_Components): Remove the mention of Name_uController. | |
3033 | (Create_Constrained_Components): Remove the mention of Name_uController. | |
3034 | (Make_Class_Wide_Type): Add specialized code to redecorate an existing | |
3035 | class-wide type of a shadow entity. | |
3036 | (Process_Full_View): Update the machinery which marks type | |
3037 | Limited_Controlled's entity as limited. | |
3038 | * sem_ch4.adb (Analyze_One_Call): Code reformatting. | |
3039 | * sem_ch6.adb (Create_Extra_Formals): Do not generate a finalization | |
3040 | list, instead make a collection build-in-place formal. | |
3041 | * sem_ch8.adb (Analyze_Object_Renaming): Look at the available view of | |
3042 | a designated type in order to establish a match between the renaming | |
3043 | and the renamed entity. | |
3044 | (Find_Selected_Component): Add guard to prevent spurious exceptions | |
3045 | from being raised on .NET/JVM. | |
3046 | * sem_disp.adb (Check_Dispatching_Operation): Include Finalize_Address | |
3047 | to the list of primitive that need special processing. Update arrays | |
3048 | C_Names and D_Names. | |
3049 | (Replace_Types): Handle class-wide types. | |
3050 | * sem_elab.adb (Check_A_Call): Since Deep_Initialize now has a | |
3051 | different parameter profile, look at the first formal. | |
3052 | * sem_prag.adb: Remove with and use clauses for Exp_Ch7. Add with and | |
3053 | use clauses for Exp_Util. | |
3054 | * sem_res.adb: Remove with and use clauses for Elists. | |
3055 | (Propagate_Coextensions): Removed. | |
3056 | (Resolve_Allocator): Do not propagate the list of coextensions from one | |
3057 | allocator to another. | |
3058 | * sem_util.adb (Build_Actual_Subtype_Of_Component): Rename variable | |
3059 | Deaccessed_T to Desig_Typ. | |
3060 | (Enter_Name): Remove the mention of Name_uController. | |
3061 | (Gather_Components): Remove the mention of Name_uController. | |
3062 | (Incomplete_Or_Private_View): New routine. | |
3063 | (Is_Coextension_Root): Removed. | |
3064 | (Is_Fully_Initialized_Type): Remove the mention of Name_uController. | |
3065 | * sem_util.ads (Incomplete_Or_Private_View): New routine. | |
3066 | (Is_Coextension_Root): Removed. | |
3067 | * s-finroo.ads: Remove with clause for Ada.Unchecked_Conversion. | |
3068 | Controlled types are now derived from a null tagged record. Remove | |
3069 | types Finalizable_Ptr, Finalizable and Empty_Root_Controlled. | |
3070 | * sinfo.adb (Coextensions): Removed. | |
3071 | (Set_Coextensions): Removed. | |
3072 | * sinfo.ads: Remove Coextensions from the explanation of node fields | |
3073 | and its uses in nodes. | |
3074 | Update the field usage of N_Allocator. | |
3075 | (Coextensions): Removed along with its pragma Inline. | |
3076 | (Set_Coextensions): Removed along with its pragma Inline. | |
3077 | * snames.ads-tmpl: Remove names | |
2c7f9cc0 | 3078 | |
df3e68b1 HK |
3079 | Name_uClean |
3080 | Name_uController | |
3081 | Name_uFinal_List | |
3082 | Name_uLocal_Final_List | |
3083 | Name_Finalization_Root | |
3084 | Name_Next | |
3085 | Name_Prev | |
2c7f9cc0 | 3086 | |
df3e68b1 | 3087 | Add names |
2c7f9cc0 | 3088 | |
df3e68b1 HK |
3089 | Name_uFinalizer |
3090 | Name_Finalize_Address | |
3091 | * s-pooglo.adb (Allocate): Add overriding indicator. | |
3092 | (Deallocate): Add overriding indicator. | |
3093 | (Storage_Size): Add overriding indicator. | |
3094 | * s-soflin.adb (Adafinal_NT): Invoke Finalize_Library_Objects rather | |
3095 | than Finalize_Global_List. | |
3096 | (Null_Finalize_Global_List): Removed. | |
3097 | (Save_Library_Occurrence): New routine. | |
3098 | * s-soflin.ads: Remove variable Finalize_Global_List along with its | |
3099 | initialization. Add variable Finalize_Library_Objects along with its | |
3100 | pragma Export. Add variables Library_Exception and | |
3101 | Library_Exception_Set along with their pragma Export. | |
3102 | (Null_Finalize_Global_List): Removed. | |
3103 | (Save_Library_Occurrence): New routine. | |
3104 | * s-tassta.adb (Finalize_Global_Tasks): Call Finalize_Library_Objects | |
3105 | rather than Finalize_Global_List. | |
3106 | * tbuild.adb (Unchecked_Convert_To): Capture and set the parent field | |
3107 | of the constructed node. | |
3108 | ||
2ee06322 RO |
3109 | 2011-08-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
3110 | ||
3111 | * link.c: Include "auto-host.h" before system headers. | |
3112 | ||
f77b022b VC |
3113 | 2011-08-03 Vincent Celier <celier@adacore.com> |
3114 | ||
3115 | * make.adb (Gnatmake): Add to table Library_Projs only library projects | |
3116 | that are not extended. Do not check if a library project that is | |
3117 | extended should be regenerated. Do not add to table Library_Paths the | |
3118 | libraries that are in extended projects. Link only with libraries that | |
3119 | are in libray projects that are not extended. | |
3120 | * prj-nmsc.adb (Check_Library_Attributes): Do not reset flag Library | |
3121 | for a library project that is extended. | |
3122 | ||
0187b60e AC |
3123 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> |
3124 | ||
3125 | * sem_ch6.adb (Find_Corresponding_Spec): When in an instance, skip | |
3126 | conforming subprogram renamings that appear to be completions if they | |
3127 | are not fully conformant. | |
3128 | Such renamings are homographs but not completions. | |
3129 | * sem_type.adb (Disambiguate): Handle disambiguation of overloaded | |
3130 | names in a subprogram renaming that appears in an instance. | |
3131 | ||
3132 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
3133 | ||
3134 | * exp_util.adb (Expand_Subtype_From_Expr): if the type is limited but | |
3135 | not immutably limited, build actual subtype from expression to provide | |
3136 | proper bounds to caller. | |
3137 | ||
3138 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> | |
3139 | ||
3140 | * sem_ch8.adb: Minor comment correction. | |
3141 | ||
3142 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
3143 | ||
3144 | * exp_strm.adb (Build_Array_Input_Function): In Ada 2005 mode, when | |
3145 | returning a limited array, use an extended return statement. | |
3146 | ||
3147 | 2011-08-03 Vincent Celier <celier@adacore.com> | |
3148 | ||
3149 | * make.adb (Initialize): If --subdirs= is used, but no project file is | |
3150 | specified, attempt to create the specify subdir if it does not already | |
3151 | exist and use it as the object directory as if -D had been specified. | |
3152 | ||
3153 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
3154 | ||
3155 | * s-tpopsp-vms.adb: New file. | |
3156 | * s-taprop-vms.adb: Put back ATCB_Key, since needed by this file on VMS. | |
3157 | * gcc-interfaces/Makefile.in: Use s-taprop-vms.adb on VMS. | |
3158 | ||
e280f981 AC |
3159 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
3160 | ||
3161 | * make.adb, makeutl.adb, makeutl.ads, clean.adb (Makeutl.Queue): new | |
3162 | package. | |
3163 | ||
3164 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
3165 | ||
3166 | * cstand.adb (Create_Standard): select Universal_Integer as an ALFA type | |
3167 | * sem_ch3.adb (Array_Type_Declaration): detect array types in ALFA | |
3168 | * sem_util.adb, sem_util.ads (Has_Static_Array_Bounds): new function to | |
3169 | detect that an array has static bounds. | |
3170 | ||
98c99a5a AC |
3171 | 2011-08-03 Thomas Quinot <quinot@adacore.com> |
3172 | ||
3173 | * exp_dist.adb: Minor reformatting. | |
3174 | ||
3175 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
3176 | ||
3177 | * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-vms.adb | |
3178 | (ATCB_Key): Removed, not always used. | |
3179 | ||
3180 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
3181 | ||
3182 | * gnatcmd.adb, make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads, | |
3183 | clean.adb, prj-conf.adb, prj-env.adb, prj-env.ads (Makeutl): remove | |
3184 | most remaining global variables. | |
3185 | ||
686d0984 AC |
3186 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
3187 | ||
3188 | * gnatcmd.adb, prj-proc.adb, mlib-prj.adb, prj.adb, makeutl.ads, | |
3189 | prj-util.adb, prj-util.ads, prj-conf.adb, prj-env.adb: Minor | |
3190 | reformatting. | |
3191 | ||
3192 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
3193 | ||
3194 | * exp_util.adb (Is_VM_By_Copy_Actual): Include N_Slide nodes as actuals | |
3195 | that must be passed by copy in VM targets. | |
3196 | ||
3197 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
3198 | ||
3199 | * prj.ads, prj-nmsc.adb (Files_Htable): removed this htable, which | |
3200 | duplicates a similar htable now in the project tree. | |
3201 | ||
3202 | 2011-08-03 Claire Dross <dross@adacore.com> | |
3203 | ||
3204 | * a-cfdlli.adb, a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb, | |
3205 | a-cofove.adb ("=", Length, Is_Empty, Clear, Assign, Copy, Element, | |
3206 | Replace_Element, Query_Element, Update_Element, Move, Insert, Prepend, | |
3207 | Append, Delete, Delete_First, Delete_Last, Reverse_Element, Swap, | |
3208 | Splice, First, First_Element, Last, Last_Element, Next, Previous, Find, | |
3209 | Reverse_Find, Contains, Has_Element, Iterate, Reverse_Iterate, Capacity, | |
3210 | Reserve_Length, Length, Strict_Equal, Left, Right): Data-structure | |
3211 | update. | |
3212 | ||
3213 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
3214 | ||
3215 | * s-taprop-posix.adb, s-taprop-linux.adb, s-taprop-tru64.adb | |
3216 | (ATCB_Key): Removed, not always used. | |
3217 | * s-tpopsp-posix.adb, s-tpopsp-posix-foreign.adb (ATCB_Key): Moved from | |
3218 | s-taprop-posix.adb. | |
3219 | * s-tpopsp-tls.adb: New file. | |
3220 | * gcc-interface/Makefile.in: Use TLS implementation of s-tpopsp.adb on | |
3221 | x86/x64/ia64/powerpc/sparc Linux. | |
3222 | ||
3223 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
3224 | ||
3225 | * system-aix.ads, system-aix64.ads: Set ZCX_By_Default to True. | |
3226 | * gcc-interface/Makefile.in: Switch to ZCX by default on AIX ports. | |
3227 | ||
3228 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
3229 | ||
3230 | * rtsfind.ads, exp_dist.adb, exp_dist.ads | |
3231 | (Build_From_Any_Call, Build_To_Any_Call, Build_TypeCode_Call): | |
3232 | Fix type selection for mapping integer types to PolyORB types. | |
3233 | ||
3234 | 2011-08-03 Bob Duff <duff@adacore.com> | |
3235 | ||
3236 | * sem_ch7.adb: Minor comment clarification. | |
3237 | ||
3238 | 2011-08-03 Bob Duff <duff@adacore.com> | |
3239 | ||
3240 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): If we get | |
3241 | an error analyzing a choice, skip further processing. Further | |
3242 | processing could cause a crash or cascade errors. | |
3243 | ||
40ecf2f5 EB |
3244 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
3245 | ||
3246 | * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, mlib-prj.adb, | |
3247 | prj.adb, prj.ads, makeutl.adb, makeutl.ads, clean.adb, prj-nmsc.adb, | |
3248 | prj-util.adb, prj-util.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, | |
3249 | prj-env.ads (Shared_Project_Tree_Data): new type | |
3250 | An aggregate project and its aggregated trees need to share the common | |
3251 | data structures used for lists of strings, packages,... This makes the | |
3252 | code simpler since otherwise we have to pass the root tree (also used | |
3253 | for the configuration file data) in addition to the current project | |
3254 | tree. This also avoids ambiguities as to which tree should be used. | |
3255 | And finally this saves a bit of memory. | |
3256 | (For_Every_Project_Imported): new parameter Tree. | |
3257 | Since aggregated projects are using a different tree, we need to let | |
3258 | the caller know which tree to use to manipulate the returned project. | |
3259 | ||
9fde638d RD |
3260 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
3261 | ||
3262 | * prj-proc.adb, exp_util.ads, exp_ch9.adb, make.adb, prj-ext.adb, | |
3263 | prj-ext.ads, alfa.ads, sem_ch4.adb, makeutl.adb, makeutl.ads, | |
3264 | lib-xref-alfa.adb, sem_cat.adb, exp_dist.adb, get_alfa.adb, | |
3265 | prj-env.adb, prj-env.ads, prj-tree.adb, alfa.ads: Minor reformatting. | |
3266 | ||
95eb8b69 AC |
3267 | 2011-08-03 Javier Miranda <miranda@adacore.com> |
3268 | ||
3269 | * exp_util.adb, sem_aux.adb, exp_util.ads, sem_aux.ads: | |
3270 | Move routine Is_VM_By_Copy_Actual from sem_aux to exp_util. | |
3271 | ||
3272 | 2011-08-03 Bob Duff <duff@adacore.com> | |
3273 | ||
3274 | * sem_ch8.adb (Is_Primitive_Operator_In_Use): Always check In_Use on | |
3275 | the Base_Type. | |
3276 | ||
3277 | 2011-08-03 Joel Brobecker <brobecker@adacore.com brobecker> | |
3278 | ||
3279 | * g-sha256.ads, g-sha512.ads, g-sha1.ads, g-sha224.ads, g-sha384.ads, | |
3280 | g-sehash.ads: Fix typo. Update header. | |
3281 | ||
3282 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
3283 | ||
3284 | * exp_ch6.adb (Expand_Actuals): Remove Ada_2005 guard on build-in-place | |
3285 | expansion. | |
3286 | ||
3287 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> | |
3288 | ||
3289 | * sem_ch4.adb (Analyze_Overloaded_Selected_Component): Consider | |
3290 | prefixes of private types along with records, since the selector may be | |
3291 | a discriminant. | |
3292 | * sem_res.adb (Resolve_Selected_Component): Consider prefixes of | |
3293 | private types along with records, since the selector may be a | |
3294 | discriminant. | |
3295 | ||
92e77027 AC |
3296 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
3297 | ||
b2f7ebc1 | 3298 | * prj-pp.adb (Pretty_Print): Remove trailing blank line. |
92e77027 AC |
3299 | |
3300 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
3301 | ||
3302 | * sem_aux.adb (Is_VM_By_Copy_Actual): Fix wrong use of | |
3303 | Tagged_Type_Expansion. | |
3304 | ||
3305 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
3306 | ||
b2f7ebc1 GP |
3307 | * sem_res.adb (Resolve_Op_Concat_Arg): Do not issue a SPARK |
3308 | violation when the argument of concatenation is the name of a | |
3309 | constant. | |
92e77027 | 3310 | |
ab29a348 EB |
3311 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
3312 | ||
3313 | * prj-proc.adb, prj-ext.adb, prj-ext.ads, prj-env.adb, prj-env.ads, | |
3314 | prj-tree.adb, prj-tree.ads (Initialize_And_Copy, Copy): new subprograms | |
3315 | (Process_Declarative_Items): new parameter Child_Env. | |
3316 | ||
9466892f AC |
3317 | 2011-08-03 Yannick Moy <moy@adacore.com> |
3318 | ||
589ef536 GP |
3319 | * alfa.ads: Update format of ALFA section in ALI file in order to |
3320 | add a mapping from bodies to specs when both are present. | |
3321 | (ALFA_Scope_Record): Add components for spec file/scope. | |
3322 | * get_alfa.adb (Get_ALFA): Read the new file/scope for spec when | |
3323 | present. | |
3324 | * lib-xref-alfa.adb (Collect_ALFA): After all scopes have been | |
3325 | collected, fill in the spec information when relevant. | |
3326 | * put_alfa.adb (Put_ALFA): Write the new file/scope for spec when | |
9466892f AC |
3327 | present. |
3328 | ||
3329 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> | |
3330 | ||
3331 | * inline.adb (Add_Inlined_Subprogram): Do not consider the enclosing | |
3332 | code unit to decide whether to add internally generated subprograms. | |
2c7f9cc0 | 3333 | |
9466892f AC |
3334 | 2011-08-03 Javier Miranda <miranda@adacore.com> |
3335 | ||
3336 | * sem_aux.ads, sem_aux.adb (Is_VM_By_Copy_Actual): New subprogram. | |
589ef536 GP |
3337 | * exp_ch9.adb (Build_Simple_Entry_Call): Handle actuals that must |
3338 | be handled by copy in VM targets. | |
9466892f AC |
3339 | |
3340 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
3341 | ||
589ef536 | 3342 | * make.adb, makeutl.adb, makeutl.ads (Make.Switches_Of): Share |
9466892f AC |
3343 | code with Makeutl.Get_Switches. |
3344 | * prj-tree.adb: Update comment. | |
3345 | ||
b5ea9143 AC |
3346 | 2011-08-03 Thomas Quinot <quinot@adacore.com> |
3347 | ||
3348 | * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Reject a remote | |
3349 | subprogram with a limited formal that does not support external | |
3350 | streaming. | |
3351 | ||
3352 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
3353 | ||
3354 | * get_alfa.adb (Get_ALFA): add missing Skip_Spaces at start of | |
3355 | continuation line | |
3356 | * lib-xref-alfa.adb (Add_ALFA_File): split removal of scopes that are | |
3357 | not from current unit in two phases, because it is not possible to | |
3358 | change the table while iterating over its content. | |
3359 | * put_alfa.adb (Put_ALFA): reset current file/scope at each new entity | |
3360 | ||
3361 | 2011-08-03 Sergey Rybin <rybin@adacore.com> | |
3362 | ||
3363 | * vms_data.ads: Add qualifier for gnatmetric --no-static-loop option | |
3364 | * gnat_ugn.texi: Update description of complexity metrics (gnatmetric) | |
3365 | ||
668a19bc ES |
3366 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> |
3367 | ||
3368 | * sem_res.adb (Resolve_Op_Concat_Arg): if the argument is an aggregate | |
3369 | and the component type is composite, this is ambiguous for predefined | |
3370 | concatenation, but if the node is not overloaded and the entity is a use | |
3371 | -defined function its profile can be used to resolve that aggregate. | |
3372 | ||
170b2989 AC |
3373 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
3374 | ||
3375 | * exp_ch4.adb: Minor code cleanup. | |
3376 | ||
3377 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
3378 | ||
3379 | * exp_dist.adb: Do not generate distribution stubs if serious errors | |
3380 | have been diagnosed. | |
3381 | ||
3382 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
3383 | ||
3384 | * sem_ch4.adb (Try_Primitive_Operation): when checking the validity of | |
3385 | the first formal of a primitive operation, go to the base type to | |
3386 | handle properly an access to a derived type with constrained | |
3387 | discriminants. | |
3388 | * sem_type.adb (Disambiguate): an immediately visible operator hides a | |
3389 | user-defined function that is only use-visible. | |
170b2989 | 3390 | |
e917aec2 RD |
3391 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
3392 | ||
3393 | * sem_aggr.adb, sem_ch3.adb, lib.ads, gnatcmd.adb, prj-proc.adb, | |
3394 | make.adb, lib-writ.adb, prj-part.adb, prj-part.ads, prj-ext.adb, | |
3395 | fname-uf.adb, prj-ext.ads, prj.adb, prj.ads, sem_attr.adb, alfa.adb, | |
3396 | prj-makr.adb, errout.adb, makeutl.adb, makeutl.ads, restrict.ads, | |
3397 | sem_ch6.adb, g-pehage.adb, clean.adb, put_alfa.adb, lib-xref-alfa.adb, | |
3398 | prj-nmsc.adb, prj-nmsc.ads, sem_ch8.adb, prj-pars.ads, exp_aggr.adb, | |
3399 | prj-attr.ads, sem_ch13.adb, get_alfa.adb, prj-env.adb, prj-env.ads, | |
3400 | alfa_test.adb, prj-tree.adb, prj-tree.ads, einfo.ads: Minor reformatting | |
3401 | ||
3402 | 2011-08-03 Robert Dewar <dewar@adacore.com> | |
3403 | ||
3404 | * repinfo.adb (List_Mechanism): Add handling of | |
3405 | Convention_Ada_Pass_By_XXX. | |
3406 | * sem_mech.adb (Set_Mechanism): Ditto. | |
3407 | * sem_prag.adb (Process_Convention): Add entries for | |
3408 | Convention_Ada_Pass_By_XXX. | |
3409 | * snames.adb-tmpl, snames.ads-tmpl: Ditto. | |
3410 | ||
49bfcf43 AC |
3411 | 2011-08-03 Pascal Obry <obry@adacore.com> |
3412 | ||
3413 | * makeutl.adb: Minor reformatting. | |
3414 | ||
3415 | 2011-08-03 Vincent Celier <celier@adacore.com> | |
3416 | ||
3417 | * fname-uf.adb | |
3418 | (Get_File_Name) If the file cannot be found when there are no config | |
3419 | pragmas file and May_Fail is True, return No_File instead of the file | |
3420 | name, to be consistent. | |
3421 | ||
3422 | 2011-08-03 Pascal Obry <obry@adacore.com> | |
3423 | ||
3424 | * adaint.c (__gnat_is_executable_file_attr): Avoid access | |
3425 | to null pointer. | |
3426 | ||
3427 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
3428 | ||
3429 | * sem_ch13.adb | |
3430 | (Same_Representation): In VM targets the representation of arrays with | |
3431 | aliased components differs from arrays with non-aliased components. | |
3432 | ||
34798441 EB |
3433 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
3434 | ||
3435 | * prj-proc.adb, prj-attr.adb, prj-attr.ads (Get_Attribute_Index): do | |
3436 | not systematically lower case attribute indexes that contain no "." | |
3437 | Fix definition of several Naming attributes, which take | |
3438 | a unit name as index and therefore should be case insensitive. | |
3439 | Minor refactoring (reduce length of variable names). | |
3440 | ||
3441 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
3442 | ||
3443 | * makeutl.adb, makeutl.ads (Get_Switches): new subprogram. | |
3444 | ||
4437a530 EB |
3445 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
3446 | ||
3447 | * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb, | |
3448 | prj-part.ads, switch-m.adb, switch-m.ads, prj-makr.adb, clean.adb, | |
3449 | prj-pars.adb, prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb, | |
3450 | prj-tree.ads (Prj.Tree.Environment): new type. | |
3451 | ||
804fe3c4 EB |
3452 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
3453 | ||
3454 | * prj-proc.adb, prj.ads, makeutl.adb, makeutl.ads, prj-conf.adb, | |
3455 | prj-tree.adb, prj-tree.ads (Environment): new type. | |
3456 | ||
c565bc66 AC |
3457 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
3458 | ||
3459 | * prj-tree.ads: Remove unused variable. | |
3460 | ||
3461 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
3462 | ||
3463 | * restrict.adb (Restriction_Msg): set "SPARK" all in upper case for | |
3464 | issuing messages related to SPARK restriction violation. | |
3465 | ||
4ee646da AC |
3466 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> |
3467 | ||
3468 | * sem_ch6.adb: guard against error nodes in return statements. | |
3469 | ||
3470 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
3471 | ||
3472 | * errout.adb (Error_Msg_Internal): the main unit has not been read yet, | |
3473 | a warning can only appear on a configuration file, so emit warning | |
3474 | without further checks. | |
3475 | ||
3476 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
3477 | ||
3478 | * s-interr.ads: add overriding keyword. | |
3479 | ||
3480 | 2011-08-03 Geert Bosch <bosch@adacore.com> | |
3481 | ||
3482 | * exp_attr.adb: Fix minor typo. | |
3483 | ||
3484 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
3485 | ||
3486 | * par-ch4.adb: improve error recovery. | |
3487 | ||
c0e538ad AC |
3488 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
3489 | ||
3490 | * prj-part.adb, prj-part.ads, prj-makr.adb, prj-pars.adb, prj-conf.adb, | |
3491 | prj-env.adb (Prj.Part.Parse): change parameter Always_Errout_Finalize | |
3492 | to Errout_Handling. | |
3493 | ||
3494 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
3495 | ||
3496 | * prj-dect.adb (Parse_Attribute_Declaration): make sure we can use | |
3497 | "external" as an attribute name in aggregate projects. | |
3498 | ||
3499 | 2011-08-03 Jose Ruiz <ruiz@adacore.com> | |
3500 | ||
3501 | * s-taprop-vxworks.adb: (Create_Task, Initialize): Ada 2012 pragma CPU | |
3502 | uses CPU numbers starting 1, while VxWorks uses CPU numbers starting | |
3503 | from 0, so we need to adjust. | |
3504 | ||
3505 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
3506 | ||
3507 | * prj-proc.adb, prj-ext.adb, prj-ext.ads, makeutl.adb, prj-tree.adb, | |
3508 | prj-tree.ads, gnatcmd.adb, clean.adb (External_References): new type. | |
3509 | ||
c4d67e2d AC |
3510 | 2011-08-03 Yannick Moy <moy@adacore.com> |
3511 | ||
3512 | * sem_ch6.adb (New_Overloaded_Entity): only issue error for SPARK | |
3513 | restriction on overloaded entity if the entity is not an operator. | |
3514 | ||
3515 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
3516 | ||
3517 | * sem_ch7.adb, sem_res.adb, sem_attr.adb, restrict.adb, | |
3518 | restrict.ads: Rename remaining Check_Formal_Restriction* into | |
3519 | Check_SPARK_Restriction*. | |
3520 | ||
3521 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
3522 | ||
3523 | * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, | |
3524 | prj-nmsc.ads, prj-err.adb (Project_Data): now discriminated on its | |
3525 | qualifier. | |
3526 | (Project_Empty): removed | |
3527 | (Empty_Project): new parameter Qualifier | |
3528 | This is used to have fields specific to aggregate projects, cleaner | |
3529 | New field to store the list of aggregated projects. | |
3530 | (Check_Aggregate_Project): removed | |
3531 | (Process_Aggregated_Projects, Free): new subprograms. | |
3532 | ||
3f5a8fee AC |
3533 | 2011-08-03 Olivier Hainque <hainque@adacore.com> |
3534 | ||
3535 | * tracebak.c (STOP_FRAME ppc AIX): Stop at null return address as well. | |
3536 | ||
3537 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
3538 | ||
3539 | * sem_ch8.adb (Analyze_Object_Renaming): if the renamed object is an | |
3540 | explicit dereference of an unconstrained type, create a constrained | |
3541 | subtype for it, as is done for function calls that return an | |
3542 | unconstrained type. | |
3543 | ||
3544 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
3545 | ||
3546 | * g-pehage.adb (Finalize): Avoid possible double-free. | |
3547 | ||
3548 | 2011-08-03 Steve Baird <baird@adacore.com> | |
3549 | ||
3550 | * exp_attr.adb (Expand_N_Attribute_Reference): Don't expand | |
3551 | Elab_Spec/Body attrs in CodePeer_Mode. | |
3552 | ||
3553 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
3554 | ||
3555 | * exp_aggr.adb (Flatten): Convert to positional form aggregates whose | |
3556 | low bound is not known at compile time but they have no others choice. | |
3557 | Done because in this case the bounds can be obtained directly from the | |
3558 | aggregate. | |
3559 | ||
3560 | 2011-08-03 Ed Falis <falis@adacore.com> | |
3561 | ||
3562 | * s-tasinf-vxworks.ads: Update comment to reflect 0 indexing of CPUs | |
3563 | on VxWorks SMP. Remove unusable constant ANY_CPU. | |
3564 | ||
a96ca600 EB |
3565 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
3566 | ||
3567 | * gnatcmd.adb, make.adb, prj-part.adb, prj-part.ads, prj-makr.adb, | |
3568 | clean.adb, prj-nmsc.adb, prj-pars.adb, prj-conf.adb, prj-env.adb, | |
3569 | prj-env.ads (Prj.Env.Initialize_Default_Project_Path, | |
3570 | Prj.Env.Initialize_Empty): new subprograms | |
3571 | (Get_Env, Find_Project): remove parameter Target_Name. | |
3572 | ||
3e582869 AC |
3573 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> |
3574 | ||
3575 | * sem_ch3.adb (Build_Derived_Record_Type): Test the Derive_Subps formal | |
3576 | as a condition for the delayed call to Derived_Subprograms done for the | |
3577 | case of the rewriting of a derived type that constrains the | |
3578 | discriminants of its parent type. | |
3579 | Avoids redundant subprogram derivations for private subtype derivations. | |
3580 | ||
3581 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
3582 | ||
3583 | * exp_aggr.adb (Init_Hidden_Discriminants): New subprogram of | |
3584 | Build_Record_Aggr_Code. | |
3585 | (Build_Record_Aggr_Code): Add missing support to initialize hidden | |
3586 | discriminants in extension aggregates. | |
3587 | ||
3588 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
3589 | ||
3590 | * prj-pp.adb (Print): also output project qualifiers, since in | |
3591 | particular "aggregate" is mandatory in an aggregate project. | |
3592 | ||
3593 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
3594 | ||
3595 | * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb: | |
3596 | (Debug_Output): new function. | |
3597 | ||
56e94186 AC |
3598 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> |
3599 | ||
3600 | * gnat_ugn.texi: Document -Wstack-usage. | |
3601 | * gcc-interface/misc.c (enumerate_modes): Add guard for ghost FP modes. | |
3602 | ||
3603 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
3604 | ||
3605 | * sem_prag.adb Issue an error (not a warning) when a C++ type does not | |
3606 | have keyword LIMITED. | |
3607 | ||
3608 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
3609 | ||
3610 | * alfa.adb, alfa.ads, alfa_test.adb: New files. | |
3611 | * ali.adb (Known_ALI_Lines): add 'C' lines (SCO) and 'F' lines (ALFA) | |
3612 | (Scan_ALI): do not issue a fatal error if parsing known lines after Xref | |
3613 | section (does not happen in compiler, only if code directly calls | |
3614 | Scan_ALI). | |
3615 | * get_alfa.adb, get_alfa.ads: New files. | |
3616 | * lib-writ.adb, lib-writ.ads (Write_ALI): output ALFA information if | |
3617 | needed. | |
3618 | * lib-xref-alfa.adb: New file. | |
3619 | * lib-xref.adb, lib-xref.ads | |
3620 | (Xref_Entry): redefine information needed in cross-references for ALFA. | |
3621 | Push ALFA treatments in separated local package. | |
3622 | (Enclosing_Subpragram_Or_Package): treat specially subprogram | |
3623 | identifiers. Return entity of package body instead of spec. Return | |
3624 | Empty for a scope with no location. | |
3625 | (Generate_Reference): adapt to new components for ALFA information. | |
3626 | Remove the need for D references on definitions. | |
3627 | (Is_Local_Reference): moved to ALFA local package | |
3628 | (Output_References): extract subfunction as Extract_Source_Name | |
3629 | (Output_Local_References): remove procedure, replaced by filtering of | |
3630 | cross-references in package ALFA and printing in Put_ALFA. | |
3631 | (Write_Entity_Name): remove procedure | |
3632 | * lib.adb, lib.ads (Extract_Source_Name): extract here function to | |
3633 | print exact name of entity as it appears in source file | |
3634 | (Unit_Ref_Table): make type public for use in Lib.Xref.ALFA | |
3635 | * put_alfa.adb, put_alfa.ads: New files. | |
3636 | * xref_lib.adb (Search_Xref): protect read of cross-references against | |
3637 | reading other sections of the ALI file, in gnatxref | |
3638 | (Search): protect read of cross-references against reading other | |
3639 | sections of the ALI file, in gnatfind. | |
3640 | * gcc-interface/Make-lang.in: Update dependencies. | |
3641 | ||
3642 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
3643 | ||
3644 | * sem_ch3.adb: Minor reformatting. | |
3645 | ||
3646 | 2011-08-03 Jose Ruiz <ruiz@adacore.com> | |
3647 | ||
3648 | * s-inmaop-vxworks.adb (Setup_Interrupt_Mask): Do nothing instead of | |
3649 | raising an exception. | |
3650 | ||
3651 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
3652 | ||
3653 | * sem_res.adb (Set_String_Literal_Subtype): if index type is an integer | |
3654 | type, always use 1 as the lower bound or string, even if lower bound of | |
3655 | context is not static, to handle properly null strings in a non-static | |
3656 | context. | |
3657 | ||
3658 | 2011-08-03 Bob Duff <duff@adacore.com> | |
3659 | ||
3660 | * sem_prag.adb (Resolve_Aggregate): An array aggregate with 'others' is | |
3661 | always legal on the right-hand side of an assignment statement; there | |
3662 | is always an applicable index constraint in this case. Therefore, the | |
3663 | check for Pkind = N_Assignment_Statement is now unconditional -- it | |
3664 | doesn't depend on whether Is_Constrained (Typ). | |
3665 | ||
4317e442 AC |
3666 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
3667 | ||
3668 | * exp_ch5.adb, sem_prag.adb, exp_ch4.adb: Minor reformatting. | |
3669 | ||
3670 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
3671 | ||
3672 | * sem_ch3.adb (Build_Itype_Reference): do not create an itype reference | |
3673 | for an itype created within a generic unit. | |
3674 | ||
3675 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> | |
3676 | ||
3677 | * gnat_ugn.texi (Switches for gcc): Make it clearer that -fno-inline | |
3678 | suppresses all inlining. | |
3679 | ||
53f29d4f AC |
3680 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
3681 | ||
3682 | * sem_ch3.adb, sem_res.adb, exp_ch13.adb, exp_disp.adb, | |
3683 | exp_aggr.adb: Minor reformatting. | |
3684 | ||
3685 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
3686 | ||
3687 | * exp_ch5.adb (Expand_N_Assignment_Statement): Do not force inlining of | |
3688 | tagged assignment when discriminant checks are suppressed. This is | |
3689 | useless and extremely costly in terms of static stack usage. | |
3690 | ||
3691 | 2011-08-03 Bob Duff <duff@adacore.com> | |
3692 | ||
3693 | * sem_prag.adb (Get_Base_Subprogram): Do not follow Alias for instances | |
3694 | of generics, because this leads to the wrong entity in the wrong scope, | |
3695 | causing (e.g.) pragma Export_Procedure to get an error if the entity is | |
3696 | an instance. | |
3697 | (Process_Interface_Name): Follow Alias for instances of generics, to | |
3698 | correct for the above change. | |
3699 | ||
3700 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
3701 | ||
3702 | * exp_ch4.adb (Expand_N_Selected_Component): If the discriminant value | |
3703 | is an integer literal it is always safe to replace the reference. In | |
3704 | addition, if the reference appears in the generated code for an object | |
3705 | declaration it is necessary to copy because otherwise the reference | |
3706 | might be to the uninitilized value of the discriminant of the object | |
3707 | itself. | |
3708 | ||
3709 | 2011-08-03 Pascal Obry <obry@adacore.com> | |
3710 | ||
3711 | * adaint.c (__gnat_is_executable_file_attr): Fix Win32 circuitry when no | |
3712 | ACL used, in this case we want to check for ending .exe, not .exe | |
3713 | anywhere in the path. | |
3714 | ||
3715 | 2011-08-03 Sergey Rybin <rybin@adacore.com> | |
3716 | ||
3717 | * tree_io.ads (ASIS_Version_Number): Update because of the changes in | |
3718 | the tree structure (semantic decoration of references to record | |
3719 | discriminants). | |
3720 | ||
c0b11850 AC |
3721 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> |
3722 | ||
3723 | * sem_aggr.adb (Analyze_Array_Aggregate): When checking the discrete | |
3724 | choices of a named array aggregate, bail out when any choices are | |
3725 | marked as Errors_Posted. | |
3726 | ||
3727 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
3728 | ||
3729 | * exp_ch13.adb (Expand_N_Freeze_Entity): cleanup determination of scope | |
3730 | in which entity is frozen, to handle properly loop variables in | |
3731 | iterators. | |
3732 | ||
3733 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
3734 | ||
3735 | * sem_res.adb (Set_String_Literal_Subtype): if the lower bound of the | |
3736 | subtype is not static, compute the upper bound using attributes, to | |
3737 | handle properly index types that are not integer types. | |
3738 | ||
3739 | 2011-08-03 Bob Duff <duff@adacore.com> | |
3740 | ||
3741 | * gnat_rm.texi, gnat_ugn.texi: Fix some dangling URLs. | |
3742 | Update copyright notice. | |
3743 | ||
3744 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
3745 | ||
3746 | * sem_ch3.adb (Build_Discriminant_Constraints): Only use | |
3747 | Original_Discriminant if within an instance. | |
3748 | * sem_ch4.adb (Analyze_Selected_Component): Ditto. | |
3749 | ||
3750 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
3751 | ||
3752 | * einfo.ads: Minor reformatting. | |
3753 | ||
3754 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
3755 | ||
3756 | * exp_disp.adb (Check_Premature_Freezing): diagnose the presence of a | |
3757 | composite type with an unfrozen subcomponent, in the profile of a | |
3758 | primitive operation. | |
3759 | ||
5c34e9cd AC |
3760 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
3761 | ||
3762 | * sem_util.ads, exp_aggr.adb, exp_ch3.adb: Minor reformatting. | |
3763 | ||
3764 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
3765 | ||
3766 | * sem_ch3.adb (Analyze_Object_Declaration): if a constant object of an | |
3767 | unconstrained type with discriminants is initialized with an aggregate, | |
3768 | use the constrained subtype of the aggregate as the type of the object, | |
3769 | because it is immutable, and this allows the back-end to generate no | |
3770 | code for the object declaration. | |
3771 | ||
abcd9db2 AC |
3772 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
3773 | ||
3774 | * exp_ch4.adb (Optimize_Length_Check): Fix bad handling of case where | |
3775 | comparison operand is variable, and turns out to be zero or negative. | |
3776 | ||
3777 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
3778 | ||
3779 | * exp_intr.adb | |
3780 | (Expand_Dispatching_Constructor_Call): Disable expansion of | |
3781 | code required for native targets. Done to avoid generating | |
3782 | references to unavailable runtime entities in VM targets. | |
3783 | * exp_ch3.adb | |
3784 | (Expand_N_Object_Declaration): Add missing support to handle | |
3785 | the explicit initialization of class-wide interface objects. | |
3786 | Fix documentation. | |
3787 | ||
3788 | 2011-08-03 Matthew Heaney <heaney@adacore.com> | |
3789 | ||
3790 | * a-cobove.adb (Merge): Move source onto target, instead of using Assign | |
3791 | ||
3792 | 2011-08-03 Matthew Heaney <heaney@adacore.com> | |
3793 | ||
3794 | * a-cbdlli.adb (Splice): move source items from first to last | |
3795 | ||
3796 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
3797 | ||
3798 | * sem_util.ads: comment added. | |
3799 | ||
3800 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
3801 | ||
3802 | * exp_aggr.adb | |
3803 | (Expand_Record_Aggregate): In VM targets disable the expansion into | |
3804 | assignments of aggregates whose type is not known at compile time. | |
3805 | ||
b474d6c3 ES |
3806 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> |
3807 | ||
3808 | * exp_ch9.adb (Build_Renamed_Formal_Declaration): common procedure for | |
3809 | protected entries and task entries, to build the proper renaming | |
3810 | declaration for entry formals, used in debugging. | |
3811 | * exp_ch2.adb (Expand_Entry_Parameter): handle task and entry | |
3812 | parameters in the same way. | |
3813 | ||
0580d807 AC |
3814 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
3815 | ||
3816 | * a-direct.adb, sinfo.ads, exp_ch9.adb, scng.adb, sem_util.adb, | |
3817 | sem_util.ads, restrict.ads, par-prag.adb: Minor reformatting and/or | |
3818 | code reorganization. | |
3819 | ||
3820 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
3821 | ||
3822 | * debug.adb: Debug flag d.P to suppress length comparison optimization | |
3823 | * exp_ch4.adb (Optimize_Length_Comparison): New routine to optimize | |
3824 | comparison of Length by comparing First/Last instead. | |
3825 | ||
3826 | 2011-08-02 Matthew Heaney <heaney@adacore.com> | |
3827 | ||
3828 | * a-cobove.ads: Code clean up. | |
3829 | ||
b191a125 AC |
3830 | 2011-08-02 Vincent Celier <celier@adacore.com> |
3831 | ||
3832 | * adaint.c (file_names_case_sensitive_cache): New static int. | |
3833 | (__gnat_get_file_names_case_sensitive): Cache the return value in | |
3834 | file_names_case_sensitive_cache at the first invocation, to avoid | |
3835 | multiple calls to getenv. | |
3836 | ||
3837 | 2011-08-02 Bob Duff <duff@adacore.com> | |
3838 | ||
3839 | * sem_ch12.adb (Validate_Derived_Type_Instance): Implement AI05-0218-1. | |
3840 | ||
316a0661 AC |
3841 | 2011-08-02 Yannick Moy <moy@adacore.com> |
3842 | ||
3843 | * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem.ads, | |
3844 | sem_util.adb, sem_util.ads, sem_res.adb, sem_ch2.adb, sem_ch4.adb, | |
3845 | sem_ch6.adb, sem_ch11.adb: Add semantic flag In_Pre_Post_Expression to | |
3846 | indicate that we are in a precondition or postcondition. This is used in | |
3847 | Mark_Non_ALFA_Subprogram (renaming of Mark_Non_ALFA_Subprogram_Body) to | |
3848 | decide whether to flag the spec or body of the current subprogram as | |
3849 | not in ALFA. | |
3850 | ||
3851 | 2011-08-02 Fabien Chouteau <chouteau@adacore.com> | |
3852 | ||
3853 | * impunit.adb: Add Ada.Execution_Time.Interrupts in the Ada2012 package | |
3854 | list. | |
3855 | * a-extiin.ads: New file. | |
3856 | ||
3857 | 2011-08-02 Bob Duff <duff@adacore.com> | |
3858 | ||
3859 | * a-direct.adb (Rename): Implement AI05-0231-1. In particular, Rename | |
3860 | now raises Name_Error instead of Use_Error in certain cases. The other | |
3861 | parts of this AI were already implemented properly. | |
3862 | ||
f9adb9d4 AC |
3863 | 2011-08-02 Vincent Celier <celier@adacore.com> |
3864 | ||
3865 | * link.c: Only import "auto-host.h" when building the gnattools. | |
3866 | ||
3867 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
3868 | ||
3869 | * sem_util.adb: Inter-unit inlining does not work for a subprogram | |
3870 | which calls a local subprogram, so extract subprogram | |
3871 | from Mark_Non_ALFA_Subprogram_Body. | |
3872 | ||
3873 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
3874 | ||
3875 | * exp_ch9.adb | |
3876 | (Extract_Dispatching_Call): If the type of the dispatching object is an | |
3877 | access type then return an explicit dereference in the Object out-mode | |
3878 | parameter. | |
3879 | ||
3880 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
3881 | ||
3882 | * sem_ch3.adb (Analyze_Subtype_Declaration): Generate range | |
3883 | compatibility checks for all indexes of an array subtype, not just the | |
3884 | first. Reset Has_Dynamic_Range_Check on the subtype before each | |
3885 | potential check to ensure that Insert_Range_Checks will not elide any | |
3886 | of the dynamic checks. | |
3887 | ||
3888 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
3889 | ||
3890 | * par-prag.ad (Process_Restrictions_Or_Restriction_Warnings): recognize | |
3891 | SPARK restriction at parsing time. | |
3892 | * scng.adb (Scan): Generate a token Tok_SPARK_Hide for a SPARK HIDE | |
3893 | directive only if the SPARK restriction is set for this unit. | |
3894 | ||
83f33150 YM |
3895 | 2011-08-02 Yannick Moy <moy@adacore.com> |
3896 | ||
3897 | * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb, sem_util.ads, | |
3898 | sem_res.adb, sem_ch2.adb, sem_ch4.adb, sem_ch6.adb, | |
3899 | sem_ch11.adb: Protect call to Current_Subprogram which might be costly | |
3900 | when repeated. Rename Current_Subprogram_Is_Not_In_ALFA into | |
3901 | Mark_Non_ALFA_Subprogram_Body. | |
3902 | Split body of Mark_Non_ALFA_Subprogram_Body to get body small and | |
3903 | inlined. | |
3904 | ||
7b98672f YM |
3905 | 2011-08-02 Yannick Moy <moy@adacore.com> |
3906 | ||
3907 | * sem_res.adb: Protect calls to Matching_Static_Array_Bounds which | |
3908 | might be costly. | |
3909 | ||
052e0603 AC |
3910 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
3911 | ||
3912 | * exp_ch9.adb, exp_sel.adb, restrict.ads, exp_disp.adb, erroutc.ads, | |
3913 | exp_ch3.adb: Minor reformatting. | |
3914 | ||
3915 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
3916 | ||
3917 | * adaint.c (__gnat_locate_exec_on_path): only returns executable | |
3918 | files, not any regular file. | |
3919 | (__gnat_locate_file_with_predicate): new subprogram. | |
3920 | ||
3921 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
3922 | ||
3923 | * sinfo.adb, sinfo.ads: Restrict the use of flags | |
3924 | Has_Dynamic_Length_Check and Has_Dynamic_Range_Check to expression | |
3925 | nodes, plus N_Subtype_Declaration for the 2nd one. | |
3926 | ||
4fbad0ba AC |
3927 | 2011-08-02 Sergey Rybin <rybin@adacore.com> |
3928 | ||
3929 | * gnat_rm.texi: Ramification of pragma Eliminate documentation | |
3930 | - fix bugs in the description of Source_Trace; | |
3931 | - get rid of UNIT_NAME; | |
3932 | ||
052e0603 AC |
3933 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
3934 | ||
3935 | * exp_ch9.adb | |
3936 | (Build_Dispatching_Requeue): Adding support for VM targets | |
3937 | since we cannot directly reference the Tag entity. | |
3938 | * exp_sel.adb (Build_K): Adding support for VM targets. | |
3939 | (Build_S_Assignment): Adding support for VM targets. | |
3940 | * exp_disp.adb | |
3941 | (Default_Prim_Op_Position): In VM targets do not restrict availability | |
3942 | of predefined interface primitives to compiling in Ada 2005 mode. | |
3943 | (Is_Predefined_Interface_Primitive): In VM targets this service is not | |
3944 | restricted to compiling in Ada 2005 mode. | |
3945 | (Make_VM_TSD): Generate code that declares and initializes the OSD | |
3946 | record. Needed to support dispatching calls through synchronized | |
3947 | interfaces. | |
3948 | * exp_ch3.adb | |
3949 | (Make_Predefined_Primitive_Specs): Enable generation of predefined | |
3950 | primitives associated with synchronized interfaces. | |
3951 | (Make_Predefined_Primitive_Bodies): Enable generation of predefined | |
3952 | primitives associated with synchronized interfaces. | |
3953 | ||
3954 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
3955 | ||
3956 | * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of | |
3957 | statements hidden in SPARK if preceded by the HIDE directive | |
3958 | (Parse_Exception_Handlers): mark each exception handler in a sequence of | |
3959 | exception handlers as hidden in SPARK if preceded by the HIDE directive | |
3960 | * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK | |
3961 | if starting with the HIDE directive | |
3962 | * par-ch7.adb (P_Package): mark a package body hidden in SPARK if | |
3963 | starting with the HIDE directive; mark the declarations in a private | |
3964 | part as hidden in SPARK if the private part starts with the HIDE | |
3965 | directive | |
3966 | * restrict.adb, restrict.ads | |
3967 | (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK | |
3968 | (Is_In_Hidden_Part_In_SPARK): new function which returns whether its | |
3969 | argument node belongs to a part which is hidden in SPARK | |
3970 | (Check_SPARK_Restriction): do not issue violations on nodes in hidden | |
3971 | parts in SPARK; protect the possibly costly call to | |
3972 | Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on | |
3973 | * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration | |
3974 | * scng.adb (Accumulate_Token_Checksum_GNAT_6_3, | |
3975 | Accumulate_Token_Checksum_GNAT_5_03): add case for new token | |
3976 | Tok_SPARK_Hide. | |
3977 | (Scan): recognize special comment starting with '#' and followed by | |
3978 | SPARK keyword "hide" as a HIDE directive. | |
3979 | ||
3980 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
3981 | ||
3982 | * types.ads, erroutc.ads: Minor reformatting. | |
3983 | ||
3984 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
3985 | ||
3986 | * link.c: Add response file support for cross platforms. | |
3987 | ||
3988 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
3989 | ||
3990 | * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression | |
3991 | in an association, set parent field of copy before partial analysis. | |
3992 | * sem_res.adb (Resolve_Slice): create reference to itype only when | |
3993 | expansion is enabled. | |
3994 | ||
3995 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
3996 | ||
3997 | * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set | |
3998 | for new flag denoting which subprogram bodies are in ALFA | |
3999 | * restrict.adb, sem_ch7.adb: Update comment | |
4000 | * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, | |
4001 | sem_ch9.adb, sem_res.adb: Add calls to | |
4002 | Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs. | |
4003 | * sem_ch6.adb (Analyze_Function_Return): add calls to | |
4004 | Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the | |
4005 | middle of the body, and extended return. | |
4006 | (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument | |
4007 | False when missing return. | |
4008 | (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA | |
4009 | to True for subprograms whose spec is in ALFA. Remove later on the flag | |
4010 | on the entity used for a subprogram body when there exists a separate | |
4011 | declaration. | |
4012 | * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA): | |
4013 | if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to | |
4014 | False, otherwise do nothing. | |
4015 | ||
4016 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4017 | ||
4018 | * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting. | |
4019 | ||
4020 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
4021 | ||
4022 | * sem_ch4.ads: minor formatting. | |
4023 | ||
4024 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
4025 | ||
4026 | * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, | |
4027 | debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb, | |
4028 | errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb, | |
4029 | restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb, | |
4030 | opt.ads: cleanup of SPARK mode | |
4031 | ||
4032 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
4033 | ||
4034 | * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard | |
4035 | types. | |
4036 | * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities | |
4037 | (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA | |
4038 | * sem_ch3.adb | |
4039 | (Analyze_Object_Declaration): set Is_In_ALFA flag for objects | |
4040 | (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes | |
4041 | (Constrain_Integer): set Is_In_ALFA flag for integer subtypes | |
4042 | (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration | |
4043 | types. | |
4044 | (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with | |
4045 | non-static range. | |
4046 | * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for | |
4047 | functions whose return type is not in ALFA. | |
4048 | (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram | |
4049 | specifications. | |
4050 | (Process_Formals): unset Is_In_ALFA flag for subprograms if a | |
4051 | parameter's type is not in ALFA. | |
4052 | * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard | |
4053 | types are in ALFA. | |
4054 | ||
4055 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
4056 | ||
4057 | * sem_ch6 (Analyze_Expression_Function): treat the function as | |
4058 | Inline_Always, and introduce a subprogram declaration for it when it is | |
4059 | not a completion. | |
4060 | * inline.adb (Add_Inlined_Body): recognize bodies that come from | |
4061 | expression functions, so that the back-end can determine whether they | |
4062 | can in fact be inlined. | |
4063 | * sem_util.adb (Is_Expression_Function): predicate to determine whether | |
4064 | a function body comes from an expression function. | |
4065 | ||
4066 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
4067 | ||
4068 | * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming | |
4069 | null exclusions to test Can_Never_Be_Null on the anonymous access types | |
4070 | of the formals rather than testing the formals themselves. Exclude this | |
4071 | check in cases where the Old_Formal is marked as a controlling formal, | |
4072 | to avoid issuing spurious errors for bodies completing dispatching | |
4073 | operations (due to the flag not getting set on controlling access | |
4074 | formals in body specs). | |
4075 | (Find_Corresponding_Spec): When checking full and subtype conformance of | |
4076 | subprogram bodies in instances, pass Designated and E in that order, for | |
4077 | consistency with the expected order of the formals (New_Id followed by | |
4078 | Old_Id). | |
4079 | ||
4080 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4081 | ||
4082 | * sem_ch8.adb: Minor reformatting. | |
4083 | ||
4084 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
4085 | ||
4086 | * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure | |
4087 | Check_Class_Wide_Actual, to implement AI05-0071, on defaulted | |
4088 | primitive operations of class-wide actuals. | |
4089 | ||
4090 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
4091 | ||
4092 | * exp_atag.ads, exp_atag.adb | |
4093 | (Build_Common_Dispatching_Select_Statements): Remove argument Loc | |
4094 | since its value is implicitly passed in argument Typ. | |
4095 | * exp_disp.adb (Make_Disp_Conditional_Select_Body, | |
4096 | Make_Disp_Timed_Select_Body): Remove Loc in calls to routine | |
4097 | Build_Common_Dispatching_Select_Statements. | |
4098 | ||
4099 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4100 | ||
4101 | * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads, | |
4102 | exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments. | |
4103 | Minor reformatting. | |
4104 | ||
4105 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4106 | ||
4107 | * sem_res.adb: Minor reformatting. | |
4108 | * sem_prag.adb: Minor reformatting. | |
4109 | ||
4110 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
4111 | ||
4112 | * exp_atag.adb, exp_atags.ads | |
4113 | (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr | |
4114 | by the tagged type Entity. Required to use this routine in the VM | |
4115 | targets since we do not have available the Tag entity in the VM | |
4116 | platforms. | |
4117 | * exp_ch6.adb | |
4118 | (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package | |
4119 | Ada.Tags has not been previously loaded. | |
4120 | * exp_ch7.adb | |
4121 | (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke | |
4122 | Build_VM_TSDs if package Ada.Tags has not been previously loaded. | |
4123 | * sem_aux.adb | |
4124 | (Enclosing_Dynamic_Scope): Add missing support to handle the full | |
4125 | view of enclosing scopes. Required to handle enclosing scopes that | |
4126 | are synchronized types whose full view is a task type. | |
4127 | * exp_disp.adb | |
4128 | (Build_VM_TSDs): Minor code improvement to avoid generating and | |
4129 | analyzing lists with empty nodes. | |
4130 | (Make_Disp_Asynchronous_Select_Body): Add support for VM targets. | |
4131 | (Make_Disp_Conditional_Select_Body): Add support for VM targets. | |
4132 | (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets. | |
4133 | (Make_Disp_Timed_Select_Body): Add support for VM targets. | |
4134 | (Make_Select_Specific_Data_Table): Add support for VM targets. | |
4135 | (Make_VM_TSD): Generate code to initialize the SSD structure of | |
4136 | the TSD. | |
4137 | ||
4138 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
4139 | ||
4140 | * lib-writ.adb (Write_ALI): when ALFA mode is set, write local | |
4141 | cross-references section in ALI. | |
4142 | * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub | |
4143 | (enclosing subprogram), Slc (location of Sub) and Sun (unit number of | |
4144 | Sub). | |
4145 | (Enclosing_Subprogram_Or_Package): new function to return the enclosing | |
4146 | subprogram or package entity of a node | |
4147 | (Is_Local_Reference_Type): new function returns True for references | |
4148 | selected in local cross-references. | |
4149 | (Lt): function extracted from Lt in Output_References | |
4150 | (Write_Entity_Name): function extracted from Output_References | |
4151 | (Generate_Definition): generate reference with type 'D' for definition | |
4152 | of objects (object declaration and parameter specification), with | |
4153 | appropriate locations and units, for use in local cross-references. | |
4154 | (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created | |
4155 | references of type 'I' for initialization in object definition. | |
4156 | (Output_References): move part of function Lt and procedure | |
4157 | Write_Entity_Name outside of the body. Ignore references of types 'D' | |
4158 | and 'I' introduced for local cross-references. | |
4159 | (Output_Local_References): new procedure to output the local | |
4160 | cross-references sections. | |
4161 | (Lref_Entity_Status): new array defining whether an entity is a local | |
4162 | * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference | |
4163 | with 'I' type when initialization expression is present. | |
4164 | * get_scos.adb, get_scos.ads: Correct comments and typos | |
4165 | ||
4166 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
4167 | ||
4168 | * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in | |
4169 | the JVM target. | |
4170 | * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in | |
4171 | the JVM target. | |
4172 | * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no | |
4173 | TSD support. | |
4174 | ||
4175 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
4176 | ||
4177 | * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line | |
4178 | (No_Space_Img): New function | |
4179 | (Find_Excluded_Sources): When reading from a file, record the file name | |
4180 | and the line number for each excluded source. | |
4181 | (Mark_Excluded_Sources): When reporting an error, if the excluded | |
4182 | sources were read from a file, include file name and line number in | |
4183 | the error message. | |
4184 | ||
4185 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
4186 | ||
4187 | * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2). | |
4188 | ||
4189 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4190 | ||
4191 | * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting | |
4192 | ||
4193 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
4194 | ||
4195 | * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the | |
4196 | generation of TSDs to the DOTNET compiler. | |
4197 | * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the | |
4198 | generation of TSDs to the DOTNET compiler. | |
4199 | ||
4200 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
4201 | ||
4202 | * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data | |
4203 | record of all the tagged types declared inside library level package | |
4204 | declarations, library level package bodies or library level subprograms. | |
4205 | * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD | |
4206 | associated with a given tagged type. | |
4207 | (Build_VM_TSDs): New subprogram. | |
4208 | * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main | |
4209 | compilation units that are subprograms. | |
4210 | * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main | |
4211 | compilation units that are package bodies. | |
4212 | (Expand_N_Package_Declaration): Generate TSDs of the main compilation | |
4213 | units that are a package declaration or a package instantiation. | |
4214 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code | |
4215 | reorganization to improve the error generated by the frontend when the | |
4216 | function Ada.Tags.Secondary_Tag is not available. | |
4217 | * rtsfind.ads (RE_Register_TSD): New runtime entity. | |
4218 | * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup. | |
4219 | ||
4220 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
4221 | ||
4222 | * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode. | |
4223 | ||
4224 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4225 | ||
4226 | * s-imenne.ads: Minor reformatting. | |
4227 | ||
4228 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4229 | ||
4230 | * a-stunau.ads: Add pragma Suppress_Initialization for Big_String | |
4231 | * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed | |
4232 | * s-stalib.ads: Add pragma Suppress_Initialization for Big_String | |
4233 | ||
4234 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4235 | ||
4236 | * einfo.ads (Materialize_Entity): Document this is only for renamings | |
4237 | * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate | |
4238 | required debug information in the case where we transform the object | |
4239 | declaration into a renaming declaration. | |
4240 | * exp_ch4.adb (Expand_Concatenate): Generate debug info for result | |
4241 | object | |
4242 | * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of | |
4243 | Materialize_Entity. | |
4244 | ||
4245 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4246 | ||
4247 | * einfo.ads, einfo.adb (Suppress_Initialization): Replaces | |
4248 | Suppress_Init_Procs. | |
4249 | * exp_ch3.adb, exp_disp.adb, freeze.adb: Use | |
4250 | Suppress_Initialization/Initialization_Suppressed. | |
4251 | * gnat_rm.texi: New documentation for pragma Suppress_Initialization | |
4252 | * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function | |
4253 | * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed | |
4254 | * sem_prag.adb: New processing for pragma Suppress_Initialization. | |
4255 | ||
4256 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4257 | ||
4258 | * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb: | |
4259 | Minor reformatting. | |
4260 | ||
4261 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
4262 | ||
4263 | * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can | |
4264 | only have inheritable classwide pre/postconditions. | |
4265 | ||
4266 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
4267 | ||
4268 | * a-tags.ads, a-tags.adb (Check_TSD): New subprogram. | |
4269 | * rtsfind.ads (RE_Check_TSD): New runtime entity. | |
4270 | * exp_disp.adb (Make_DT): Generate call to the new runtime routine that | |
4271 | checks if the external tag of a type is the same as the external tag | |
4272 | of some other declaration. | |
4273 | ||
4274 | 2011-08-02 Thomas Quinot <quinot@adacore.com> | |
4275 | ||
4276 | * s-taskin.ads: Minor reformatting. | |
4277 | ||
4278 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
4279 | ||
4280 | * g-comlin.adb (Display_Help): swap the order in which it prints the | |
4281 | short help and the general usage. | |
4282 | ||
4283 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
4284 | ||
4285 | * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly | |
4286 | the aspect declarations and attach them to the generic copy for | |
4287 | subsequent analysis. | |
4288 | (Analyze_Subprogram_Instantiation): copy explicitly the aspect | |
4289 | declarations of the generic tree to the new subprogram declarations. | |
4290 | * sem_attr.adb (Check_Precondition_Postcondition): recognize | |
4291 | conditions that apply to a subprogram instance. | |
4292 | ||
4293 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4294 | ||
4295 | * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project]. | |
4296 | ||
4297 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
4298 | ||
4299 | * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged | |
4300 | private type with a tagged full view is not derived in the immediate | |
4301 | scope of the partial view, (RM 7.3 (7)) use the scope of the base type. | |
4302 | ||
4303 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4304 | ||
4305 | * exp_ch4.adb: Minor reformatting. | |
4306 | ||
4307 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
4308 | ||
4309 | * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an | |
4310 | Ada2012 iterator, the loop will be rewritten during expansion into a | |
4311 | while loop with a cursor and an element declaration. Do not analyze the | |
4312 | body in this case, because if the container is for indefinite types the | |
4313 | actual subtype of the elements will only be determined when the cursor | |
4314 | declaration is analyzed. | |
4315 | ||
4316 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
4317 | ||
4318 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore | |
4319 | size/alignment related attributes in CodePeer_Mode. | |
4320 | ||
4321 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
4322 | ||
4323 | * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to | |
4324 | Prepend_Element, since this can result in the operation getting the | |
4325 | wrong slot in the full type's dispatch table if the full type has | |
4326 | inherited operations. The incomplete type's operation will get added | |
4327 | to the proper position in the full type's primitives | |
4328 | list later in Sem_Disp.Check_Operation_From_Incomplete_Type. | |
4329 | (Process_Incomplete_Dependents): Add Is_Primitive test when checking for | |
4330 | dispatching operations, since there are cases where nonprimitive | |
4331 | subprograms can get added to the list of incomplete dependents (such | |
4332 | as subprograms in nested packages). | |
4333 | * sem_ch6.adb (Process_Formals): First, remove test for being in a | |
4334 | private part when determining whether to add a primitive with a | |
4335 | parameter of a tagged incomplete type to the Private_Dependents list. | |
4336 | Such primitives can also occur in the visible part, and should not have | |
4337 | been excluded from being private dependents. | |
4338 | * sem_ch7.adb (Uninstall_Declarations): When checking the rule of | |
4339 | RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents | |
4340 | list of a Taft-amendment incomplete type is a primitive before issuing | |
4341 | an error that the full type must appear in the same unit. There are | |
4342 | cases where nonprimitives can be in the list (such as subprograms in | |
4343 | nested packages). | |
4344 | * sem_disp.adb (Derives_From): Use correct condition for checking that | |
4345 | a formal's type is derived from the type of the corresponding formal in | |
4346 | the parent subprogram (the condition was completely wrong). Add | |
4347 | checking that was missing for controlling result types being derived | |
4348 | from the result type of the parent operation. | |
4349 | ||
4350 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
4351 | ||
4352 | * errout.adb (First_Node): minor renaming | |
4353 | * restrict.adb (Check_Formal_Restriction): put restriction warning on | |
4354 | first node. | |
4355 | ||
4356 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
4357 | ||
4358 | * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator | |
4359 | before accessing operands. | |
4360 | * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to | |
4361 | decide whether an initialization expression respects SPARK rules, as | |
4362 | the plain node is the expanded one. This allows for more valid warnings | |
4363 | to be issued. | |
4364 | * gnat_rm.texi: Minor update. | |
4365 | ||
4366 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
4367 | ||
4368 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert | |
4369 | previous change. | |
4370 | ||
4371 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4372 | ||
4373 | * sem_ch3.adb, sem_ch4.adb: Minor reformatting. | |
4374 | ||
4375 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
4376 | ||
4377 | * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original | |
4378 | loop statements and the element renaming declaration with a block when | |
4379 | the element type is controlled. | |
4380 | ||
4381 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
4382 | ||
4383 | * sinfo.ads: Minor formatting. | |
4384 | ||
4385 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
4386 | ||
4387 | * sem_aggr.adb (Add_Association): if the association has a box and no | |
4388 | expression, use the Sloc of the aggregate itself for the new | |
4389 | association. | |
4390 | * errout.adb (First_Node): Exclude nodes with no Sloc, and always use | |
4391 | the Original_Node. | |
4392 | ||
4393 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
4394 | ||
4395 | * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring. | |
4396 | When a container is provided via a function call, generate a renaming | |
4397 | of the function result. This avoids the creation of a transient scope | |
4398 | and the premature finalization of the container. | |
4399 | * exp_ch7.adb (Is_Container_Cursor): Removed. | |
4400 | (Wrap_Transient_Declaration): Remove the supression of the finalization | |
4401 | of the list controller when the declaration denotes a container cursor, | |
4402 | it is not needed. | |
4403 | ||
4404 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
4405 | ||
4406 | * restrict.adb (Check_Formal_Restriction): only issue a warning if the | |
4407 | node is from source, instead of the original node being from source. | |
4408 | * sem_aggr.adb | |
4409 | (Resolve_Array_Aggregate): refine the check for a static expression, to | |
4410 | recognize also static ranges | |
4411 | * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration, | |
4412 | Array_Type_Declaration): postpone the test for the type being a subtype | |
4413 | mark after the type has been resolved, so that component-selection and | |
4414 | expanded-name are discriminated. | |
4415 | (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm | |
4416 | to distinguish the case of an iteration scheme, so that an error is | |
4417 | issed on a non-static range in SPARK except in an iteration scheme. | |
4418 | * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with | |
4419 | In_Iter_Schm = True. | |
4420 | * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for | |
4421 | user-defined operators so that they are allowed in renaming | |
4422 | * sem_ch8.adb | |
4423 | (Find_Selected_Component): refine the check for prefixing of operators | |
4424 | so that they are allowed in renaming. Move the checks for restrictions | |
4425 | on selector name after analysis discriminated between | |
4426 | component-selection and expanded-name. | |
4427 | * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on | |
4428 | concatenation argument of string type if it is static. | |
4429 | * sem_util.adb, sem_util.ads | |
4430 | (Check_Later_Vs_Basic_Declarations): add a new function | |
4431 | Is_Later_Declarative_Item to decice which declarations are allowed as | |
4432 | later items, in the two different modes Ada 83 and SPARK. In the SPARK | |
4433 | mode, add that renamings are considered as later items. | |
4434 | (Enclosing_Package): new function to return the enclosing package | |
4435 | (Enter_Name): correct the rule for homonyms in SPARK | |
4436 | (Is_SPARK_Initialization_Expr): default to returning True on nodes not | |
4437 | from source (result of expansion) to avoid issuing wrong warnings. | |
4438 | ||
4439 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
4440 | ||
4441 | * errout.adb: On anything but an expression First_Node returns its | |
4442 | argument. | |
4443 | ||
4444 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
4445 | ||
4446 | * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting. | |
4447 | ||
4448 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
4449 | ||
4450 | * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization. | |
4451 | Set the associated loop as the related expression of internally | |
4452 | generated cursors. | |
4453 | * exp_ch7.adb (Is_Container_Cursor): New routine. | |
4454 | (Wrap_Transient_Declaration): Supress the finalization of the list | |
4455 | controller when the declaration denotes a container cursor. | |
4456 | ||
4457 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
4458 | ||
4459 | * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through | |
4460 | command line now. | |
4461 | * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the | |
4462 | expression is a simple expression. This check cannot be performed in | |
4463 | the semantics, so just drop it. | |
4464 | (P_Index_Or_Discriminant_Constraint): move check that the index or | |
4465 | discriminant is a subtype mark to Analyze_Subtype_Declaration in the | |
4466 | semantics. Other cases were previously checked in the semantics. | |
4467 | * par-ch4.adb (P_Name): move checks that a selector name is not | |
4468 | character literal or an operator symbol to Find_Selected_Component in | |
4469 | the semantics | |
4470 | * par-ch5.adb (Parse_Decls_Begin_End): move check that basic | |
4471 | declarations are not placed after later declarations in a separate | |
4472 | procedure in Sem_Util (possibly not the best choice?), to be used both | |
4473 | during parsing, for Ada 83 mode, and during semantic analysis, for | |
4474 | SPARK mode. | |
4475 | * par-endh.adb (Check_End): move check that end label is not missing | |
4476 | to Process_End_Label in the semantics | |
4477 | * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove | |
4478 | the special case for SPARK restriction | |
4479 | * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End | |
4480 | * restrict.adb, restrict.ads (Check_Formal_Restriction): add a | |
4481 | parameter Force to issue the error message even on internal node (used | |
4482 | for generated end label). Call Check_Restriction to check when an error | |
4483 | must be issued. In SPARK mode, issue an error message even if the | |
4484 | restriction is not set. | |
4485 | (Check_Restriction): new procedure with an additional out parameter to | |
4486 | inform the caller that a message has been issued | |
4487 | * sem_aggr.adb: Minor modification of message | |
4488 | * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction | |
4489 | instead of issuing an error message directly | |
4490 | * sem_ch3.adb (Analyze_Declarations): move here the check that basic | |
4491 | declarations are not placed after later declarations, by calling | |
4492 | Check_Later_Vs_Basic_Declarations | |
4493 | (Analyze_Subtype_Declaration): move here the check that an index or | |
4494 | discriminant constraint must be a subtype mark. Change the check that | |
4495 | a subtype of String must start at one so that it works on subtype marks. | |
4496 | * sem_ch4.adb (Analyze_Call): move here the check that a named | |
4497 | association cannot follow a positional one in a call | |
4498 | * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction | |
4499 | instead of issuing an error message directly | |
4500 | * sem_ch8.adb (Find_Selected_Component): move here the check that a | |
4501 | selector name is not a character literal or an operator symbol. Move | |
4502 | here the check that the prefix of an expanded name cannot be a | |
4503 | subprogram or a loop statement. | |
4504 | * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new | |
4505 | procedure called from parsing and semantics to check that basic | |
4506 | declarations are not placed after later declarations | |
4507 | (Process_End_Label): move here the check that end label is not missing | |
4508 | ||
4509 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
4510 | ||
4511 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum | |
4512 | representation clause in codepeer mode, since it confuses CodePeer and | |
4513 | does not bring useful info. | |
4514 | ||
4515 | 2011-08-02 Ed Falis <falis@adacore.com> | |
4516 | ||
4517 | * init.c: initialize fp hw on MILS. | |
4518 | ||
4519 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
4520 | ||
4521 | * errout.adb (First_Node): for bodies, return the node itself (small | |
4522 | optimization). For other nodes, do not check source_unit if the node | |
4523 | comes from Standard. | |
4524 | ||
4525 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4526 | ||
4527 | * exp_ch3.adb: Minor comment additions. | |
4528 | * sem_ch13.adb: Minor reformatting. | |
4529 | ||
4530 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
4531 | ||
4532 | * make.adb, makeutl.adb: Removes some superfluous directory separator. | |
4533 | ||
4534 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4535 | ||
4536 | * sem_attr.adb: Minor reformatting. | |
4537 | ||
4538 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4539 | ||
4540 | * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value | |
4541 | (Has_Default_Component_Value): Removed | |
4542 | * einfo.ads Comment updates | |
4543 | (Has_Default_Aspect): Replaces Has_Default_Value | |
4544 | (Has_Default_Component_Value): Removed | |
4545 | * exp_ch13.adb | |
4546 | (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects | |
4547 | * exp_ch3.adb | |
4548 | (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects | |
4549 | (Get_Simple_Init_Val): Handle Default_Value aspect | |
4550 | (Needs_Simple_Initialization): Handle Default_Value aspect | |
4551 | * exp_ch3.ads: Needs_Simple_Initialization | |
4552 | * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect | |
4553 | * par-prag.adb (Pragma_Default[_Component]Value) Removed | |
4554 | * sem_ch13.adb | |
4555 | (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects | |
4556 | * sem_prag.adb (Pragma_Default[_Component]Value) Removed | |
4557 | * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed | |
4558 | ||
4559 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
4560 | ||
4561 | * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate | |
4562 | package containing iteration primitives. | |
4563 | exp_ch5.adb (Expand_Iterator_Loop): ditto. | |
4564 | ||
4565 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
4566 | ||
4567 | * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with | |
4568 | "of", pre-analyze expression in case it is a function call with | |
4569 | finalization actions that must be placed ahead of the loop. | |
4570 | * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present | |
4571 | on an Ada2012 iterator, insert them ahead of the rewritten loop. | |
4572 | ||
4573 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
4574 | ||
4575 | * cstand.adb (Create_Float_Types): Only consider C's long double for | |
4576 | Long_Long_Float, in addition to double. | |
4577 | ||
4578 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4579 | ||
4580 | * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads, | |
4581 | sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads, | |
4582 | prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb: | |
4583 | Minor reformatting. | |
4584 | ||
4585 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
4586 | ||
4587 | * sem_attr.adb: handle properly 'Result when it is a prefix of an | |
4588 | indexed component. | |
4589 | ||
4590 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
4591 | ||
4592 | * einfo.ads, einfo.adb | |
4593 | (Original_Access_Type): Move this attribute to Node26 since there was | |
4594 | an undocumented use of Node21 in E_Access_Subprogram_Type entities | |
4595 | which causes conflicts and breaks the generation of the .NET compiler. | |
4596 | (Interface_Name): Add missing documentation on JGNAT only uses of | |
4597 | this attribute. | |
4598 | ||
4599 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
4600 | ||
4601 | * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist | |
4602 | (Find_Back_End_Float_Type): Likewise | |
4603 | (Create_Back_End_Float_Types): Likewise | |
4604 | (Create_Float_Types): Likewise | |
4605 | (Register_Float_Type): Likewise | |
4606 | * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of | |
4607 | Nlist and split out type selection in new local Find_Base_Type function. | |
4608 | * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of | |
4609 | Nlist | |
4610 | * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist | |
4611 | ||
4612 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4613 | ||
4614 | * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in | |
4615 | alpha order). | |
4616 | * opt.ads: Minor comment change. | |
4617 | * sem_ch12.adb: Minor code reorganization. | |
4618 | ||
4619 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
4620 | ||
4621 | * sem_ch3.adb (Complete_Private_Subtype): Don't append the private | |
4622 | subtype's list of rep items to the list on the full subtype in the case | |
4623 | where the lists are the same. | |
4624 | ||
4625 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
4626 | ||
4627 | * switch-c.adb (Free): New deallocation procedure to avoid implicitly | |
4628 | using the one from System.Strings, which also deallocates all strings. | |
4629 | ||
4630 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
4631 | ||
4632 | * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New | |
4633 | function. | |
4634 | * gcc-interface/Make-lang.in: Update dependencies. | |
4635 | ||
4636 | 2011-08-02 Olivier Hainque <hainque@adacore.com> | |
4637 | ||
4638 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function | |
4639 | end_locus. | |
4640 | ||
4641 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
4642 | ||
4643 | * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals | |
4644 | associated with anonymous access to subprograms. | |
4645 | ||
4646 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
4647 | ||
4648 | * opt.ads | |
4649 | (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions. | |
4650 | (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition. | |
4651 | * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads | |
4652 | (Add_Symbol_Definition): Move to switch-c.adb | |
4653 | (Process_Command_Line_Symbol_Definitions): Adjust references to above. | |
4654 | * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation. | |
4655 | (Add_Symbol_Definition): Move to switch-c.adb. | |
4656 | * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw. | |
4657 | * sem_warn.adb | |
4658 | (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch): | |
4659 | Move to warnsw.adb. | |
4660 | * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size, | |
4661 | Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch): | |
4662 | Move to warnsw.adb. | |
4663 | * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw. | |
4664 | (Add_Symbol_Definition): Moved from Prepcomp. | |
4665 | * switch-c.ads: Update copyright notice. Use String_List instead of | |
4666 | Argument_List, removing dependency on System.OS_Lib. | |
4667 | ||
4668 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
4669 | ||
4670 | * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal | |
4671 | mode on initialization expression which does not respect SPARK | |
4672 | restrictions. | |
4673 | * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines | |
4674 | if the tree referenced by its argument represents an initialization | |
4675 | expression in SPARK, suitable for initializing an object in an object | |
4676 | declaration. | |
4677 | ||
4678 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
4679 | ||
4680 | * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the | |
4681 | internally generated access to subprogram with its associated protected | |
4682 | subprogram type. | |
4683 | * einfo.ads, einfo.adb (Original_Access_Type): New attribute. | |
4684 | ||
4685 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
4686 | ||
4687 | * cstand.adb (Register_Float_Type): Print information about type to | |
4688 | register, if the Debug_Flag_Dot_B is set. | |
4689 | * debug.adb (Debug_Flag_Dot_B): Document d.b debug option. | |
4690 | * rtsfind.ads (RE_Max_Base_Digits): New run time entity. | |
4691 | * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations | |
4692 | with a requested precision of more than Max_Digits digits and no more | |
4693 | than Max_Base_Digits digits, if a range specification is present and the | |
4694 | Predefined_Float_Types list has a suitable type to derive from. | |
4695 | * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the | |
4696 | case of type completion with pragma Import | |
4697 | * sem_prag.adb | |
4698 | (Process_Import_Predefined_Type): Processing to complete a type | |
4699 | with pragma Import. Currently supports floating point types only. | |
4700 | (Set_Convention_From_Pragma): Do nothing without underlying type. | |
4701 | (Process_Convention): Guard against absence of underlying type, | |
4702 | which may happen when importing incomplete types. | |
4703 | (Process_Import_Or_Interface): Handle case of importing predefined | |
4704 | types. Tweak error message. | |
4705 | ||
4706 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
4707 | ||
4708 | * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined | |
4709 | functions to previous change. Reorganize code slightly. | |
4710 | ||
4711 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
4712 | ||
4713 | * back_end.ads (Register_Type_Proc): New call back procedure type for | |
4714 | allowing the back end to provide information about available types. | |
4715 | (Register_Back_End_Types): New procedure to register back end types. | |
4716 | * back_end.adb (Register_Back_End_Types): Call the back end to enumerate | |
4717 | available types. | |
4718 | * cstand.adb (Back_End_Float_Types): New list for floating point types | |
4719 | supported by the back end. | |
4720 | (Build_Float_Type): Add extra parameter for Float_Rep_Kind. | |
4721 | (Copy_Float_Type): New procedure to make new copies of predefined types. | |
4722 | (Register_Float_Type): New call back procedure to populate the BEFT list | |
4723 | (Find_Back_End_Float_Type): New procedure to find a BEFT by name | |
4724 | (Create_Back_End_Float_Types): New procedure to populate the BEFT list. | |
4725 | (Create_Float_Types): New procedure to create entities for floating | |
4726 | point types predefined in Standard, and put these and any remaining | |
4727 | BEFTs on the Predefined_Float_Types list. | |
4728 | * stand.ads (Predefined_Float_Types): New list for predefined floating | |
4729 | point types that do not have declarations in package Standard. | |
4730 | ||
4731 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
4732 | ||
4733 | * inline.adb (Get_Code_Unit_Entity): New local function. Returns the | |
4734 | entity node for the unit containing the parameter. | |
4735 | (Add_Inlined_Body): Use it to find the unit containing the subprogram. | |
4736 | (Add_Inlined_Subprogram): Likewise. | |
4737 | * gcc-interface/Make-lang.in: Update dependencies. | |
4738 | ||
4739 | 2011-08-02 Thomas Quinot <quinot@adacore.com> | |
4740 | ||
4741 | * s-stusta.adb (Print): Make sure Pos is always initialized to a | |
4742 | suitable value. | |
4743 | ||
4744 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
4745 | ||
4746 | * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image. | |
4747 | ||
4748 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
4749 | ||
4750 | * sem_type.adb (Covers): Move trivial case to the top and reuse the | |
4751 | computed value of Base_Type. | |
4752 | ||
4753 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
4754 | ||
4755 | * restrict.adb (Check_Restriction): issue an error for any use of | |
4756 | class-wide, even if the No_Dispatch restriction is not set. | |
4757 | * sem_aggr.adb: Correct typos in comments and messages in formal mode | |
4758 | * sem_ch3.adb (Process_Full_View): issue an error in formal mode is, | |
4759 | when completing a private extension, the type named in the private part | |
4760 | is not the same as that named in the visible part. | |
4761 | * sem_res.adb (Resolve_Call): issue an error in formal mode on the use | |
4762 | of an inherited primitive operations of a tagged type or type extension | |
4763 | that returns the tagged type. | |
4764 | * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new | |
4765 | function which returns True for an implicit operation inherited by the | |
4766 | derived type declaration for the argument type. | |
4767 | (Is_SPARK_Object_Reference): move to appropriate place in alphabetic | |
4768 | order. | |
4769 | ||
4770 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
4771 | ||
4772 | * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from | |
4773 | Process_Bounds, to perform analysis with expansion of a range or an | |
4774 | expression that is the iteration scheme for a loop. | |
4775 | (Analyze_Iterator_Specification): If domain of iteration is given by a | |
4776 | function call with a controlled result, as is the case if call returns | |
4777 | a predefined container, ensure that finalization actions are properly | |
4778 | generated. | |
4779 | * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range. | |
4780 | ||
4781 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
4782 | ||
4783 | * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo. | |
4784 | * gcc-interface/Make-lang.in: Update dependencies. | |
4785 | ||
4786 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
4787 | ||
4788 | * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to | |
4789 | determine if the analysis is performed using N or Original_Node (N). | |
4790 | * exp_util.adb (Side_Effect_Free): Code cleanup since the new | |
4791 | functionality of routine Is_Variable avoids code duplication. | |
4792 | * checks.adb (Determine_Range): Handle temporaries generated by | |
4793 | Remove_Side_Effects. | |
4794 | ||
4795 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
4796 | ||
4797 | * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and | |
4798 | expansion of the condition. Required since the previous analysis was | |
4799 | done with expansion disabled (see Resolve_Quantified_Expression) and | |
4800 | hence checks were not inserted and record comparisons have not been | |
4801 | expanded. | |
4802 | ||
4803 | 2011-08-02 Ed Falis <falis@adacore.com> | |
4804 | ||
4805 | * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads: | |
4806 | Update header. | |
4807 | ||
4808 | 2011-08-02 Bob Duff <duff@adacore.com> | |
4809 | ||
4810 | * opt.ads: Minor comment fix. | |
4811 | ||
4812 | 2011-08-02 Bob Duff <duff@adacore.com> | |
4813 | ||
4814 | * sem_ch12.adb (Analyze_Package_Instantiation, | |
4815 | Analyze_Subprogram_Instantiation): Turn off style checking while | |
4816 | analyzing an instance. Whatever style checks that apply to the generic | |
4817 | unit should apply, so it makes no sense to apply them in an instance. | |
4818 | This was causing trouble when compiling an instance of a runtime | |
4819 | unit that violates the -gnatyO switch. | |
4820 | * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from | |
4821 | one of the two case statements, causing spurious errors. | |
4822 | ||
4823 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4824 | ||
4825 | * uname.adb: Minor reformatting. | |
4826 | * gnatcmd.adb: Minor reformatting. | |
4827 | * exp_attr.adb: Minor reformatting. | |
4828 | ||
4829 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
4830 | ||
4831 | * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction | |
4832 | No_Dispatching_Calls, do not look for the Assign primitive, because | |
4833 | predefined primitives are not created in this case. | |
4834 | ||
4835 | 2011-08-02 Bob Duff <duff@adacore.com> | |
4836 | ||
4837 | * stylesw.ads: Minor comment fixes. | |
4838 | ||
4839 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4840 | ||
4841 | * freeze.adb (Add_To_Result): New procedure. | |
4842 | ||
4843 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
4844 | ||
4845 | * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run | |
4846 | time, if the specific run-time routines for handling streams of strings | |
4847 | are not available, use the default mechanism. | |
4848 | ||
4849 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
4850 | ||
4851 | * s-regpat.ads: Fix typo. | |
4852 | ||
4853 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
4854 | ||
4855 | * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is | |
4856 | not null, call it to create the in memory config project file without | |
4857 | parsing an existing default config project file. | |
4858 | ||
4859 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
4860 | ||
4861 | * atree.adb (Allocate_Initialize_Node): Remove useless temporaries. | |
4862 | ||
4863 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
4864 | ||
4865 | * sem_elim.adb: an abstract subprogram does not need an eliminate | |
4866 | pragma for its descendant to be eliminable. | |
4867 | ||
4868 | 2011-08-02 Ed Falis <falis@adacore.com> | |
4869 | ||
4870 | * init.c: revert to handling before previous checkin for VxWorks | |
4871 | * s-intman-vxworks.adb: delete unnecessary declarations related to | |
4872 | using Ada interrupt facilities for handling signals. | |
4873 | Delete Initialize_Interrupts. Use __gnat_install_handler instead. | |
4874 | * s-intman-vxworks.ads: Import __gnat_install_handler as | |
4875 | Initialize_Interrupts. | |
4876 | * s-taprop-vxworks.adb: Delete Signal_Mask. | |
4877 | (Abort_Handler): change construction of mask to unblock exception | |
4878 | signals. | |
4879 | ||
4880 | 2011-08-02 Jerome Guitton <guitton@adacore.com> | |
4881 | ||
4882 | * a-except-2005.adb (Raise_From_Signal_Handler): Call | |
4883 | Debug_Raise_Exception before propagation starts. | |
4884 | ||
4885 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
4886 | ||
4887 | * exp_ch6.adb (Expand_Call): Guard restriction checks with a call | |
4888 | to Restriction_Check_Required. | |
4889 | * sem_ch3.adb (Analyze_Object_Declaration): Likewise. | |
4890 | * sem_res.adb (Resolve_Call): Likewise. | |
4891 | * sem_attr.adb (Check_Stream_Attribute): Likewise. | |
4892 | ||
4893 | 2011-08-02 Bob Duff <duff@adacore.com> | |
4894 | ||
4895 | * stylesw.ads: Update comment. | |
4896 | * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N. | |
4897 | * errout.ads: Remove obsolete comment. | |
4898 | ||
4899 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
4900 | ||
4901 | * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function. | |
4902 | (Set_Is_Safe_To_Reevaluate): new procedure. | |
4903 | * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no | |
4904 | assignment is allowed on safe-to-reevaluate variables. | |
4905 | (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the | |
4906 | temporary created to remove side effects in expressions that use | |
4907 | the secondary stack as safe-to-reevaluate. | |
4908 | * exp_util.adb (Side_Effect_Free): Add missing code to handle well | |
4909 | variables that are not true constants. | |
4910 | ||
4911 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4912 | ||
4913 | * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads, | |
4914 | sem_res.adb, sem_ch6.adb: Minor reformatting. | |
4915 | ||
4916 | 2011-08-02 Jerome Guitton <guitton@adacore.com> | |
4917 | ||
4918 | * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code. | |
4919 | ||
4920 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
4921 | ||
4922 | * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do | |
4923 | not set Overridden_Operation if subprogram is an initialization | |
4924 | procedure. | |
4925 | ||
4926 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
4927 | ||
4928 | * par-ch6.adb: Correct obsolete name in comments | |
4929 | * restrict.adb, restrict.ads (Check_Formal_Restriction): new function | |
4930 | which takes two message arguments (existing function takes one), with | |
4931 | second message used for continuation. | |
4932 | * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject | |
4933 | block statements that originate from a source block statement, not | |
4934 | generated block statements | |
4935 | * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for | |
4936 | symmetry with procedure case | |
4937 | * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new | |
4938 | function to issue an error in formal mode if a package specification | |
4939 | contains more than one tagged type or type extension. | |
4940 | * sem_res.adb (Resolve_Actuals): in formal mode, check that actual | |
4941 | parameters matching formals of tagged types are objects (or ancestor | |
4942 | type conversions of objects), not general expressions. Issue an error | |
4943 | on view conversions that are not involving ancestor conversion of an | |
4944 | extended type. | |
4945 | (Resolve_Type_Conversion): in formal mode, issue an error on the | |
4946 | operand of an ancestor type conversion which is not an object | |
4947 | * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the | |
4948 | procedure so that it works also for actuals of function calls | |
4949 | (Is_Actual_Tagged_Parameter): new function which determines if its | |
4950 | argument is an actual parameter of a formal of tagged type in a | |
4951 | subprogram call | |
4952 | (Is_SPARK_Object_Reference): new function which determines if the tree | |
4953 | referenced by its argument represents an object in SPARK | |
4954 | ||
4955 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4956 | ||
4957 | * sem_ch3.adb: Minor reformatting | |
4958 | Minor comment addition | |
4959 | Minor error msg text change | |
4960 | ||
4961 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
4962 | ||
4963 | * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New | |
4964 | function. Used to be more precise when we generate a variable plus one | |
4965 | assignment to remove side effects in the evaluation of the Bound | |
4966 | expressions. | |
4967 | (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes | |
4968 | of the bound expression to force its re-analysis and thus expand the | |
4969 | associated transient scope (if required). Code cleanup replacing the | |
4970 | previous code that declared the constant entity by an invocation to | |
4971 | routine Force_Evaluation which centralizes this work in the frontend. | |
4972 | ||
4973 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4974 | ||
4975 | * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table | |
4976 | (Base_Type): Now uses improved Is_Base_Type function | |
4977 | * einfo.ads (Base_Type): Inline this function | |
4978 | ||
4979 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
4980 | ||
4981 | * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion | |
4982 | (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas | |
4983 | ||
4984 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
4985 | ||
4986 | * gcc-interface/Make-lang.in: Update dependencies. | |
4987 | * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks | |
4988 | targets. | |
4989 | ||
4990 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
4991 | ||
4992 | * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on | |
4993 | non-simple expression used in delta constraint | |
4994 | (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on | |
4995 | index constraint which is not a subtype mark | |
4996 | * par.adb: With and use Restrict | |
4997 | * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal | |
4998 | mode on component type which is not a subtype mark and default | |
4999 | expression on component | |
5000 | (Analyze_Subtype_Declaration): issue an error in formal mode on subtype | |
5001 | of string which does not have a lower index bound equal to 1 | |
5002 | (Array_Type_Declaration): issue an error in formal mode on index or | |
5003 | component type which is not a subtype mark, and on aliased keyword on | |
5004 | component | |
5005 | (Derived_Type_Declaration): issue an error in formal mode on interface, | |
5006 | limited or abstract type | |
5007 | (Record_Type_Declaration): issue an error in formal mode on interface | |
5008 | (Record_Type_Definition): issue an error in formal mode on tagged types | |
5009 | and type extensions not declared in the specification of a library unit | |
5010 | package; on null non-tagged record; on variant part | |
5011 | ||
5012 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
5013 | ||
5014 | * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir | |
5015 | not declared for qualified library project when Library_Name is not | |
5016 | declared, but Library_Dir is. | |
5017 | ||
5018 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5019 | ||
5020 | * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated | |
5021 | pragmas (affects aspects [Component_]Default_Value | |
5022 | (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use | |
5023 | component type for the resolution | |
5024 | ||
5025 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
5026 | ||
5027 | * einfo.adb (Base_Type): Tune implementation for speed. | |
5028 | ||
5029 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5030 | ||
5031 | * freeze.adb: Minor reformatting. | |
5032 | ||
5033 | 2011-08-02 Thomas Quinot <quinot@adacore.com> | |
5034 | ||
5035 | * scos.ads: Update comments. | |
5036 | ||
5037 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
5038 | ||
5039 | * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the | |
5040 | base type, because the parent may be a subtype of a private type whose | |
5041 | convention is established in a private part. | |
5042 | ||
5043 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
5044 | ||
5045 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return | |
5046 | statement in a block when the expansion of the return expression has | |
5047 | created a finalization chain. | |
5048 | * freeze.adb (Freeze_Expression): Alphabetize all choices associated | |
5049 | with the parent node. | |
5050 | Add N_Extended_Return_Statement to handle the case where a transient | |
5051 | object declaration appears in the Return_Object_Declarations list of | |
5052 | an extended return statement. | |
5053 | ||
5054 | 2011-08-02 Matthew Gingell <gingell@adacore.com> | |
5055 | ||
5056 | * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly | |
5057 | unused parameter 'name'. | |
5058 | ||
5059 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
5060 | ||
5061 | * sem_elim.adb (Set_Eliminated): If the overridden operation is an | |
5062 | inherited operation, check whether its alias, which is the source | |
5063 | operastion that it renames, has been marked eliminated. | |
5064 | ||
5065 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
5066 | ||
5067 | * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an | |
5068 | in-mode parameter whose type is an access type since it can be used to | |
5069 | modify its designated object. Enforce code that handles as safe an | |
5070 | access type that is not access-to-constant but it is the result of a | |
5071 | previous removal of side-effects. | |
5072 | (Remove_Side_Effects): Minor code reorganization of cases which require | |
5073 | no action. Done to incorporate documentation on new cases uncovered | |
5074 | working in this ticket: no action needed if this routine was invoked | |
5075 | too early and the nodes are not yet decorated. | |
5076 | * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls | |
5077 | to routine Remove_Side_Effects by calls to Force_Evaluation since they | |
5078 | were issued with actuals that are implicitly provided by | |
5079 | Force_Evaluation. | |
5080 | ||
5081 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5082 | ||
5083 | * sem_ch3.adb, sem_res.adb: Minor reformatting. | |
5084 | ||
5085 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5086 | ||
5087 | * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure | |
5088 | to issue an error in formal mode on attribute not supported in this mode | |
5089 | (Analyze_Attribute): issue errors on standard attributes not supported | |
5090 | in formal mode. | |
5091 | * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of | |
5092 | comment, and issue error in formal mode on modulus which is not a power | |
5093 | of 2. | |
5094 | (Process_Range_Expr_In_Decl): issue error in formal mode on non-static | |
5095 | range. | |
5096 | * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in | |
5097 | subtype mark. | |
5098 | * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary | |
5099 | operator on modular type (except 'not'). | |
5100 | ||
5101 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5102 | ||
5103 | * gnat_rm.texi: Minor reformatting. | |
5104 | ||
5105 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
5106 | ||
5107 | * s-osinte-linux.ads: Minor comment update and reformatting. | |
5108 | * i-cexten.ads: Make this unit pure, as for its parent. | |
5109 | Will allow its usage in more contexts if needed. | |
5110 | ||
5111 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5112 | ||
5113 | * s-utf_32.ads: Minor comment fix. | |
5114 | ||
5115 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
5116 | ||
5117 | * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive | |
5118 | operation of a tagged synchronized type, handle the case where the | |
5119 | controlling argument is overloaded. | |
5120 | ||
5121 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5122 | ||
5123 | * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl: | |
5124 | Replace pragma SPARK_95 with pragma Restrictions (SPARK) | |
5125 | * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set | |
5126 | SPARK mode and formal verification mode on processing SPARK restriction | |
5127 | * s-rident.ads (Restriction_Id): add SPARK restriction in those not | |
5128 | requiring consistency checking. | |
5129 | ||
5130 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5131 | ||
5132 | * sem_res.adb: Minor reformatting. | |
5133 | ||
5134 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5135 | ||
5136 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
5137 | a-cforse.ads: Remove unneeded with of Ada.Containers | |
5138 | Remove commented out pragma Inline's | |
5139 | Move specifications of new subprograms to the actual specs | |
5140 | ||
5141 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5142 | ||
5143 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
5144 | a-cforse.ads: Update comments. | |
5145 | ||
5146 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
5147 | ||
5148 | * sem_attr.adb: add attribute name when 'Result has the wrong prefix. | |
5149 | ||
5150 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5151 | ||
5152 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
5153 | a-cforse.ads, a-cofove.ads: Minor reformatting. | |
5154 | ||
5155 | 2011-08-02 Claire Dross <dross@adacore.com> | |
5156 | ||
5157 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads, | |
5158 | a-cofove.ads: Add comments. | |
5159 | ||
5160 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5161 | ||
5162 | * gnat_rm.texi: Document formal containers. | |
5163 | ||
5164 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
5165 | ||
5166 | * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there | |
5167 | are empty sections. | |
5168 | ||
5169 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5170 | ||
5171 | * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor | |
5172 | reformatting. | |
5173 | ||
5174 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5175 | ||
5176 | * aspects.adb: New aspects Default_Value and Default_Component_Value | |
5177 | New format of Aspect_Names table checks for omitted entries | |
5178 | * aspects.ads: Remove mention of Aspect_Cancel and add documentation on | |
5179 | handling of boolean aspects for derived types. | |
5180 | New aspects Default_Value and Default_Component_Value | |
5181 | New format of Aspect_Names table checks for omitted entries | |
5182 | * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag | |
5183 | (Has_Default_Value): New flag | |
5184 | (Has_Default_Component_Value): New flag | |
5185 | (Has_Default_Value): New flag | |
5186 | * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names | |
5187 | table. | |
5188 | * par-prag.adb: New pragmas Default_Value and Default_Component_Value | |
5189 | * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects | |
5190 | Default_Value and Default_Component_Value | |
5191 | * sem_prag.adb: New pragmas Default_Value and Default_Component_Value | |
5192 | New aspects Default_Value and Default_Component_Value | |
5193 | * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value | |
5194 | * sprint.adb: Print N_Aspect_Specification node when called from gdb | |
5195 | ||
5196 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
5197 | ||
5198 | * prj-nmsc.adb (Check_Library_Attributes): For virtual library project, | |
5199 | inherit library kind. | |
5200 | ||
5201 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
5202 | ||
5203 | * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds. | |
5204 | Minor reformatting. | |
5205 | ||
5206 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5207 | ||
5208 | * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM | |
5209 | ||
5210 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5211 | ||
5212 | * sem_aggr.adb (Resolve_Aggregate): Fix thinko. | |
5213 | ||
5214 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5215 | ||
5216 | * impunit.adb: Add comment. | |
5217 | ||
5218 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5219 | ||
5220 | * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks | |
5221 | qualification of aggregates in formal mode | |
5222 | (Is_Top_Level_Aggregate): returns True for an aggregate not contained in | |
5223 | another aggregate | |
5224 | (Resolve_Aggregate): complete the test that an aggregate is adequately | |
5225 | qualified in formal mode | |
5226 | ||
5227 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
5228 | ||
5229 | * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting. | |
5230 | * mlib-prj.adb: Supress warning when compiling binder generated file. | |
5231 | (Build_Library): Supress all warnings when compiling the binder | |
5232 | generated file. | |
5233 | ||
5234 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5235 | ||
5236 | * errout.adb, errout.ads (Check_Formal_Restriction): move procedure | |
5237 | from here... | |
5238 | * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here | |
5239 | * sem_aggr.adb, sem_ch5.adb, sem_util.adb: | |
5240 | Add with/use clauses to make Check_Formal_Restriction visible | |
5241 | ||
5242 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
5243 | ||
5244 | * sem_ch12.adb (Check_Generic_Actuals): handle properly actual | |
5245 | in-parameters when type of the generic formal is private in the generic | |
5246 | spec and non-private in the body. | |
5247 | ||
5248 | 2011-08-02 Claire Dross <dross@adacore.com> | |
5249 | ||
5250 | * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb, | |
5251 | a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads, | |
5252 | a-cofove.adb, a-cofove.ads: New files implementing formal containers. | |
5253 | * impunit.adb, Makefile.rtl: Take new files into account. | |
5254 | ||
5255 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5256 | ||
5257 | * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb, | |
5258 | sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting. | |
5259 | ||
5260 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5261 | ||
5262 | * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in | |
5263 | formal mode | |
5264 | * sem_util.adb (Matching_Static_Array_Bounds): proper detection of | |
5265 | matching static array bounds, taking into account the special case of | |
5266 | string literals | |
5267 | * sem_ch3.adb: Typo in comment. | |
5268 | ||
5269 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5270 | ||
5271 | * errout.adb, errout.ads (Check_Formal_Restriction): new procedure | |
5272 | which issues an error in formal mode if its argument node is originally | |
5273 | from source | |
5274 | * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type | |
5275 | has a discriminant specification so that it does not include the case | |
5276 | of derived types | |
5277 | (Derived_Type_Declaration): move here the test that a derived type has a | |
5278 | discriminant specification | |
5279 | * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the | |
5280 | first element of a component association before accessing its choices | |
5281 | (presence of component association is not enough) | |
5282 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram | |
5283 | declaration is a library item before accessing the next element in a | |
5284 | list, as library items are not member of lists | |
5285 | * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, | |
5286 | sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use | |
5287 | Check_Formal_Restriction whenever possible. | |
5288 | ||
5289 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
5290 | ||
5291 | * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype | |
5292 | reference when needed. | |
5293 | ||
5294 | 2011-08-02 Bob Duff <duff@adacore.com> | |
5295 | ||
5296 | * gnat_ugn.texi: Fix typo. | |
5297 | ||
5298 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
5299 | ||
5300 | * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of | |
5301 | archive file name. Do not use the full path name of archives for Open | |
5302 | VMS. | |
5303 | ||
5304 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5305 | ||
5306 | * sem_ch12.adb, sem_ch11.adb: New calling sequence for | |
5307 | Analyze_Aspect_Specifications | |
5308 | * sem_ch13.adb | |
5309 | (Analyze_Aspect_Specifications): New handling for boolean aspects | |
5310 | * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence | |
5311 | * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling | |
5312 | sequence for Analyze_Aspect_Specifications | |
5313 | * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely | |
5314 | * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used | |
5315 | ||
5316 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5317 | ||
5318 | * freeze.adb (Freeze_Entity): Remove handling of delayed boolean | |
5319 | aspects, since these no longer exist. | |
5320 | ||
5321 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5322 | ||
5323 | * par-ch13.adb (Aspect_Specifications_Present): Always return false on | |
5324 | semicolon, do not try to see if there are aspects following it. | |
5325 | * par-ch3.adb (P_Declarative_Items): Better message for unexpected | |
5326 | aspect spec. | |
5327 | ||
5328 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5329 | ||
5330 | * sem_ch8.adb, aspects.ads: Minor reformatting. | |
5331 | ||
5332 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
5333 | ||
5334 | * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline. | |
5335 | * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure | |
5336 | extracted from... | |
5337 | (Analyze_Aspect_Specifications): ...here. Call above procedure. | |
5338 | ||
5339 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5340 | ||
5341 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal | |
5342 | mode on subprogram declaration outside of package specification, unless | |
5343 | it is followed by a pragma Import | |
5344 | * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration, | |
5345 | Access_Type_Declaration): issue error in formal mode on access type | |
5346 | (Analyze_Incomplete_Type_Decl): issue error in formal mode on | |
5347 | incomplete type | |
5348 | (Analyze_Object_Declaration): issue error in formal mode on object | |
5349 | declaration which does not respect SPARK restrictions | |
5350 | (Analyze_Subtype_Declaration): issue error in formal mode on subtype | |
5351 | declaration which does not respect SPARK restrictions | |
5352 | (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue | |
5353 | error in formal mode on digits or delta constraint | |
5354 | (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on | |
5355 | decimal fixed point type | |
5356 | (Derived_Type_Declaration): issue error in formal mode on derived type | |
5357 | other than type extensions of tagged record types | |
5358 | * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant | |
5359 | with check on access definition | |
5360 | * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal | |
5361 | mode on protected definition. | |
5362 | (Analyze_Task_Definition): issue error in formal mode on task definition | |
5363 | ||
5364 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5365 | ||
5366 | * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting. | |
5367 | ||
5368 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
5369 | ||
5370 | * sem_ch6.adb (Can_Override_Operator): New function. | |
5371 | (Verify_Overriding_Indicator): Add missing code to check overriding | |
5372 | indicator in operators. Fixes regression. | |
5373 | (Check_Overriding_Indicator): Minor reformating after replacing the | |
5374 | code that evaluates if the subprogram can override an operator by | |
5375 | invocations to the above new function. | |
5376 | * einfo.adb | |
5377 | (Write_Field26_Name): Add missing code to ensure that, following | |
5378 | the documentation in einfo.ads, this field is not shown as attribute | |
5379 | "Static_Initialization" on non-dispatching functions. | |
5380 | ||
5381 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
5382 | ||
5383 | * sem_res.adb (Resolve_Call): A call to | |
5384 | Ada.Real_Time.Timing_Events.Set_Handler violates restriction | |
5385 | No_Relative_Delay (AI-0211) only when it sets a relative timing event, | |
5386 | i.e., when the second parameter is of type Time_Span. | |
5387 | ||
5388 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
5389 | ||
5390 | * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link | |
5391 | with an archive instead of -L<library dir> -l<library name>. | |
5392 | ||
5393 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
5394 | ||
5395 | * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed, | |
5396 | mark the base types In_Use in addition to making the operations | |
5397 | use_visible. | |
5398 | ||
5399 | 2011-08-02 Ed Falis <falis@adacore.com> | |
5400 | ||
5401 | * init.c: add and setup __gnat_signal_mask for the exception signals | |
5402 | * s-inmaop-vxworks.adb: new file. | |
5403 | * s-intman-vxworks.adb: remove unnecessary initializations and | |
5404 | simplify remaining | |
5405 | * s-intman-vxworks.ads: remove unnecessary variable | |
5406 | * s-taprop-vxworks.adb: simplify signal initialization | |
5407 | ||
5408 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5409 | ||
5410 | * sem_ch8.adb: Minor code reorganization, comment updates. | |
5411 | ||
5412 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5413 | ||
5414 | * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util | |
5415 | * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved | |
5416 | here from Sem_Res. | |
5417 | (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression | |
5418 | (Matching_Static_Array_Bounds): Moved here from Sem_Res | |
5419 | ||
5420 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
5421 | ||
5422 | * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5. | |
5423 | * par_ch8.adb (P_Use_Type): initialize Used_Operations for node. | |
5424 | * sinfo.ads, sinfo.adb (Used_Operations): new attribute of | |
5425 | use_type_clauses, to handle more efficiently use_type and use_all_type | |
5426 | constructs. | |
5427 | * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the | |
5428 | Ada2012 Use_All_Type clause. | |
5429 | (Use_Class_Wide_Operations): new procedure. | |
5430 | ||
5431 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5432 | ||
5433 | * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb, | |
5434 | sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized | |
5435 | expression to expression function. | |
5436 | ||
5437 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
5438 | ||
5439 | * sem_ch4.adb: transform simple Ada2012 membership into equality only | |
5440 | if types are compatible. | |
5441 | ||
5442 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5443 | ||
5444 | * sem_res.adb (Matching_Static_Array_Bounds): new function which | |
5445 | returns True if its argument array types have same dimension and same | |
5446 | static bounds at each index. | |
5447 | (Resolve_Actuals): issue an error in formal mode on actuals passed as | |
5448 | OUT or IN OUT paramaters which are not view conversions in SPARK. | |
5449 | (Resolve_Arithmetic_Op): issue an error in formal mode on | |
5450 | multiplication or division with operands of fixed point types which are | |
5451 | not qualified or explicitly converted. | |
5452 | (Resolve_Comparison_Op): issue an error in formal mode on comparisons of | |
5453 | Boolean or array type (except String) operands. | |
5454 | (Resolve_Equality_Op): issue an error in formal mode on equality | |
5455 | operators for array types other than String with non-matching static | |
5456 | bounds. | |
5457 | (Resolve_Logical_Op): issue an error in formal mode on logical operators | |
5458 | for array types with non-matching static bounds. Factorize the code in | |
5459 | Matching_Static_Array_Bounds. | |
5460 | (Resolve_Qualified_Expression): issue an error in formal mode on | |
5461 | qualified expressions for array types with non-matching static bounds. | |
5462 | (Resolve_Type_Conversion): issue an error in formal mode on type | |
5463 | conversion for array types with non-matching static bounds | |
5464 | ||
5465 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5466 | ||
5467 | * par-ch10.adb: Minor code reorganization (use Nkind_In). | |
5468 | ||
5469 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
5470 | ||
5471 | * par-ch9.adb: save location of entry for proper error message. | |
5472 | ||
5473 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
5474 | ||
5475 | * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal | |
5476 | (Use_Full_View) which permits this routine to climb through the | |
5477 | ancestors using the full-view of private parents. | |
5478 | * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set | |
5479 | Use_Full_View to true in calls to Is_Ancestor. | |
5480 | * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to | |
5481 | true in call to Is_Ancestor. | |
5482 | * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set | |
5483 | Use_Full_View to true in call to Is_Ancestor. | |
5484 | * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in | |
5485 | call to Is_Ancestor. | |
5486 | * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set | |
5487 | Use_Full_View to true in calls to Is_Ancestor. | |
5488 | * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT, | |
5489 | Make_Select_Specific_Data_Table, Register_Primitive, | |
5490 | Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor. | |
5491 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View | |
5492 | to true in call to Is_Ancestor. | |
5493 | * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set | |
5494 | Use_Full_View to true in calls to Is_Ancestor. | |
5495 | * exp_cg.adb | |
5496 | (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor. | |
5497 | (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor. | |
5498 | ||
5499 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5500 | ||
5501 | * gnat_rm.texi: Minor reformatting. | |
5502 | * sem_prag.adb: Minor reformatting. | |
5503 | ||
5504 | 2011-08-02 Tristan Gingold <gingold@adacore.com> | |
5505 | ||
5506 | * vms_data.ads: Add VMS qualifier for -gnateP. | |
5507 | ||
5508 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5509 | ||
5510 | * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty | |
5511 | * par-ch7.adb (P_Package): Proper placement of aspects for package | |
5512 | decl/instantiation. | |
5513 | * par-endh.adb (Check_End): Ad Is_Sloc parameter | |
5514 | (End_Statements): Add Is_Sloc parameterr | |
5515 | * par.adb (P_Aspect_Specification): New meaning of Decl = Empty | |
5516 | (Check_End): Ad Is_Sloc parameter | |
5517 | (End_Statements): Add Is_Sloc parameterr | |
5518 | ||
5519 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
5520 | ||
5521 | * ug_words: Add VMS qualifier equivalent to -gnateP: | |
5522 | /SYMBOL_PREPROCESSING. | |
5523 | ||
5524 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
5525 | ||
5526 | * gnat-style.texi: For hexadecimal numeric literals the typical | |
5527 | grouping of digits is 4 to represent 2 bytes. | |
5528 | A procedure spec which is split into several lines is indented two | |
5529 | characters. | |
5530 | ||
5531 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5532 | ||
5533 | * exp_aggr.adb (Is_Others_Aggregate): move function to other unit. | |
5534 | * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here | |
5535 | (Resolve_Aggregate): issue errors in formal modes when aggregate is not | |
5536 | properly qualified | |
5537 | (Resolve_Array_Aggregate): issue errors in formal modes on non-static | |
5538 | choice in array aggregate | |
5539 | (Resolve_Extension_Aggregate): issue errors in formal modes on subtype | |
5540 | mark as ancestor | |
5541 | (Resolve_Record_Aggregate): issue errors in formal modes on mixed | |
5542 | positional and named aggregate for record, or others in record | |
5543 | aggregate, or multiple choice in record aggregate | |
5544 | * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when | |
5545 | array operands to logical operations AND, OR and XOR do not have the | |
5546 | same static lower and higher bounds | |
5547 | * sem_ch5.adb, sinfo.ads: Correct typos in comments | |
5548 | ||
5549 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
5550 | ||
5551 | * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement): | |
5552 | Replaces Last_Source_Node_In_Sequence. | |
5553 | * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K | |
5554 | * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores | |
5555 | parens and blank in string (this was inconsistently implemented). | |
5556 | * errout.ads | |
5557 | (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and | |
5558 | blank in string (this was inconsistently implemented). | |
5559 | * gnat1drv.adb | |
5560 | (Set_Global_Switches): Set formal mode switches appropriately | |
5561 | * opt.ads, opt.adb: Formal mode is now global switches, more consistent | |
5562 | * par-prag.adb | |
5563 | (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and | |
5564 | call Set_Error_Msg_Lang to set "spark" as language name. | |
5565 | * par.adb: Remove unnecessary call to set formal language for errout | |
5566 | * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches | |
5567 | appropriately and call Set_Error_Msg_Lang to set "spark" as language | |
5568 | name. | |
5569 | * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and | |
5570 | calls to it, moved after resolution so that types are known | |
5571 | * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if | |
5572 | result of concatenation is not of type String | |
5573 | (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of | |
5574 | concatenation is not properly restricted | |
5575 | * gnat_rm.texi: Add doc on pragma Spark_95. | |
5576 | * gcc-interface/Makefile.in: Remove obsolete target pairs for | |
5577 | Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads. | |
5578 | * gcc-interface/Make-lang.in: Update dependencies. | |
5579 | ||
5580 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
5581 | ||
5582 | * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of | |
5583 | condition that detects if the overridden operation must replace an | |
5584 | existing entity. | |
5585 | ||
5586 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
5587 | ||
5588 | * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded | |
5589 | code declarations inserted by Insert_Actions in each alternative of the | |
5590 | N_Case_Expression node. | |
5591 | ||
5592 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
5593 | ||
5594 | * sem_ch6.adb: Minor code reorganization. | |
5595 | * sem_util.adb: Minor reformatting. | |
5596 | ||
5597 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
5598 | ||
5599 | * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path. | |
5600 | * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource. | |
5601 | ||
5602 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
5603 | ||
5604 | * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character | |
5605 | literal or operator symbol which is prefixed | |
5606 | * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal | |
5607 | mode on access attributes. | |
5608 | * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check | |
5609 | that concatenation operands are properly restricted in formal mode | |
5610 | (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure | |
5611 | Analyze_Concatenation_Operand. Issue an error in formal mode if the | |
5612 | result of the concatenation has a type different from String. | |
5613 | (Analyze_Conditional_Expression, Analyze_Explicit_Dereference, | |
5614 | Analyze_Quantified_Expression, Analyze_Slice, | |
5615 | Analyze_Null): issue an error in formal mode on unsupported constructs | |
5616 | * sem_ch5.adb | |
5617 | (Analyze_Block_Statement): only issue error on source block statement | |
5618 | * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new | |
5619 | function which returns the last node in a list of nodes for which | |
5620 | Comes_From_Source returns True, if any | |
5621 | * sem_ch6.adb (Check_Missing_Return): minor refactoring to use | |
5622 | Last_Source_Node_In_Sequence | |
5623 | * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming, | |
5624 | Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal | |
5625 | mode on unsupported constructs | |
5626 | * sem_ch9.adb Do not return after issuing error in formal mode, as the | |
5627 | rest of the actions may be needed later on since the error is marked as | |
5628 | not serious. | |
5629 | * sinfo.ads: Typos in comments. | |
5630 | ||
5631 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
5632 | ||
5633 | * projects.texi: Minor editing. | |
5634 | ||
5635 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
5636 | ||
5637 | * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for | |
5638 | insertion character ~~ | |
5639 | * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures | |
5640 | (Set_Error_Msg_Lang): new procedure which fixes the language for use | |
5641 | with insertion character ~~ | |
5642 | (Set_Msg_Text): treat insertion character ~~ | |
5643 | * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb, | |
5644 | sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to | |
5645 | Formal_Error_Msg_... procedures by equivalent Error_Msg_... | |
5646 | procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make | |
5647 | errors related to the formal language restriction not serious | |
5648 | (insertion character |). | |
5649 | * par.adb (Par): set formal language for error messages if needed | |
5650 | * sem_ch6.adb (Check_Missing_Return): take into account possible | |
5651 | generated statements at the end of the function | |
5652 | * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and | |
5653 | enumeration value to define a new pragma SPARK_95 | |
5654 | * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default, | |
5655 | SPARK_Version): new type and variables to store the SPARK version | |
5656 | (none by default). | |
5657 | (SPARK_Mode): return True when SPARK_Version is set | |
5658 | * par-prag.adb: Correct indentation | |
5659 | (Prag): take Pragma_SPARK_95 into account | |
5660 | * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95 | |
5661 | into account. | |
5662 | ||
5663 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
5664 | ||
5665 | * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb, | |
5666 | sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb, | |
5667 | sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting | |
5668 | ||
5669 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
5670 | ||
5671 | * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass | |
5672 | Target_Name to Get_Path call. | |
5673 | (Parse_Single_Project): Likewise. | |
5674 | (Post_Parse_Context_Clause): Likewise. | |
5675 | * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter. | |
5676 | Call Initialise_Project_Path with the proper Target_Name. | |
5677 | (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat | |
5678 | search path. | |
5679 | (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path | |
5680 | with the proper Target_Name. | |
5681 | * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to | |
5682 | Part.Parse routine. | |
5683 | (Parse_Project_And_Apply_Config): Likewise. | |
5684 | * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine. | |
5685 | This is fine as this part of the code is supporting only native | |
5686 | compilation. | |
5687 | * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This | |
5688 | is fine as this part of the code is supporting only native compilation. | |
5689 | ||
5690 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
5691 | ||
5692 | * sem_util.adb (Enter_Name): issue error in formal mode on declaration | |
5693 | of homonym, unless the homonym is one of the cases allowed in SPARK | |
5694 | * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for | |
5695 | package declaration occurring after a body. | |
5696 | ||
5697 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
5698 | ||
5699 | * checks.adb, exp_ch4.adb: Minor reformatting. | |
5700 | ||
5701 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
5702 | ||
5703 | * einfo.ads (Access_Disp_Table): Fix documentation. | |
5704 | (Dispatch_Table_Wrappers): Fix documentation. | |
5705 | ||
5706 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
5707 | ||
5708 | * prj-env.adb, prj-env.ads: Minor reformatting. | |
5709 | ||
5710 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
5711 | ||
5712 | * sem_util.ads, sem_util.adb, par.adb, par_util.adb | |
5713 | (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move | |
5714 | procedures out of these packages. | |
2c7f9cc0 | 5715 | * errout.ads, errout.adb |
052e0603 AC |
5716 | (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move |
5717 | procedures in of this package | |
5718 | (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE | |
5719 | * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode | |
5720 | on misplaced later vs initial declarations, like in Ada 83 | |
5721 | * sem_attr.adb (Processing for Analyze_Attribute): issue error in | |
5722 | formal mode on attribute of private type whose full type declaration | |
5723 | is not visible | |
5724 | * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a | |
5725 | package declaration inside a package specification | |
5726 | (Analyze_Full_Type_Declaration): issue error in formal mode on | |
5727 | controlled type or discriminant type | |
5728 | * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on | |
5729 | user-defined operator means that it should come from the source | |
5730 | (New_Overloaded_Entity): issue error in formal mode on overloaded | |
5731 | entity. | |
5732 | * sem_ch6.ads, sem_ch13.ads: typos in comments. | |
5733 | ||
5734 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
5735 | ||
5736 | * atree.adb: Minor reformatting. | |
5737 | * checks.adb: Minor reformatting. | |
5738 | ||
5739 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
5740 | ||
5741 | * s-parame-vms-ia64.ads: Fix typo in comment | |
5742 | Minor reformatting | |
5743 | * s-parame-vms-restrict.ads: Removed, unused. | |
5744 | ||
5745 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
5746 | ||
5747 | * exp_ch3.adb | |
5748 | (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound. | |
5749 | * sem_ch3.adb | |
5750 | (Constrain_Index): Remove side effects in the evaluation of the bounds. | |
5751 | * sem_ch3.ads, sem_ch3.adb | |
5752 | (Is_Constant_Bound): New extended version of the subprogram that was | |
5753 | previously located inside function Exp_Ch3.Is_Variable_Size_Array. | |
5754 | Moved here since it is shared by routines of sem_ch3 and exp_ch3. | |
5755 | * sem_aux.ads (Constant_Value): Fix typo in comment. | |
5756 | * checks.adb (Generate_Index_Checks): New implementation which, for | |
5757 | array objects with constant bounds, generates the runtime check | |
5758 | referencing the bounds of the array type. For other cases this routine | |
5759 | provides its previous behavior obtaining such values from the array | |
5760 | object. | |
5761 | * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its | |
5762 | parent type. | |
5763 | * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since | |
5764 | we cannot have semantic interpretations of the new node. | |
5765 | ||
5766 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
5767 | ||
5768 | * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified | |
5769 | expressions. | |
5770 | ||
5771 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
5772 | ||
5773 | * sem_ch8.adb: Minor code editing. | |
5774 | * s-vxwext.adb: Remove trailing space. | |
5775 | * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for | |
5776 | consistency with other files. | |
5777 | ||
5778 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
5779 | ||
5780 | * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting. | |
5781 | ||
5782 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
5783 | ||
5784 | * par-ch10.adb: reject parameterized expressions as compilation unit. | |
5785 | * sem_ch4.adb: handle properly conditional expression with overloaded | |
5786 | then_clause and no else_clause. | |
5787 | ||
5788 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
5789 | ||
5790 | * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address | |
5791 | like done by System.Aux_DEC. | |
5792 | * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table. | |
5793 | ||
5794 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
5795 | ||
5796 | * par-endh.adb (Check_End): issue a syntax error in SPARK mode for | |
5797 | missing label at end of declaration (subprogram or package) | |
5798 | * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing | |
5799 | of positional and named parameter association | |
5800 | * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on | |
5801 | Error_Msg_SP which adds a prefix to the error message giving the name | |
5802 | of the formal language analyzed | |
5803 | * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for | |
5804 | access result type in subprogram, unconstrained array as result type,. | |
5805 | (Analyze_Subprogram_Declaration): issue an error in formal mode for null | |
5806 | procedure | |
5807 | * sem_ch8.adb: Code clean up. | |
5808 | ||
5809 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
5810 | ||
5811 | * sem_ch7.adb (Uninstall_Declarations): Remove useless code. | |
5812 | * einfo.ads (Access_Disp_Table): Fix documentation. | |
5813 | (Dispatch_Table_Wrappers): Fix documentation. | |
5814 | * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers, | |
5815 | Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions | |
5816 | to enforce the documentation of this attribute. | |
5817 | (Set_Is_Interface): Cleanup the assertion. | |
5818 | * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate | |
5819 | the Underlying_Type entity before reading attribute Access_Disp_Table. | |
5820 | * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion): | |
5821 | Locate the Underlying_Type before reading attribute Access_Disp_Table. | |
5822 | * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate | |
5823 | the Underlying_Type entity before reading attribute Access_Disp_Table. | |
5824 | * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration): | |
5825 | Locate the Underlying_Type entity before reading attribute | |
5826 | Access_Disp_Table. | |
5827 | ||
5828 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
5829 | ||
5830 | * s-poosiz.ads: Additional overriding indicators. | |
5831 | ||
5832 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
5833 | ||
5834 | * sem_ch5.adb (Analyze_Exit_Statement): add return after error in | |
5835 | formal mode. | |
5836 | (Analyze_Iteration_Scheme): issue error in formal mode when loop | |
5837 | parameter specification does not include a subtype mark. | |
5838 | * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in | |
5839 | formal mode on abstract subprogram. | |
5840 | (Analyze_Subprogram_Specification): issue error in formal mode on | |
5841 | user-defined operator. | |
5842 | (Process_Formals): issue error in formal mode on access parameter and | |
5843 | default expression. | |
5844 | * sem_ch9.adb (Analyze_Abort_Statement, | |
5845 | Analyze_Accept_Statement, Analyze_Asynchronous_Select, | |
5846 | Analyze_Conditional_Entry_Call, Analyze_Delay_Relative, | |
5847 | Analyze_Delay_Until, Analyze_Entry_Call_Alternative, | |
5848 | Analyze_Requeue, Analyze_Selective_Accept, | |
5849 | Analyze_Timed_Entry_Call): issue error in formal mode on such constructs | |
5850 | * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error): | |
5851 | issue error in formal mode on user-defined raise statement. | |
5852 | ||
5853 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
5854 | ||
5855 | * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a | |
5856 | declaration being hidden when overriding an implicit inherited | |
5857 | subprogram. | |
5858 | * par-ch10.adb (P_Compilation_Unit): In syntax check only mode | |
5859 | (-gnats), do not complain about a source file that contains only a | |
5860 | pragma No_Body. | |
5861 | ||
5862 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
5863 | ||
5864 | * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop | |
5865 | variable if already set. | |
5866 | ||
5867 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
5868 | ||
5869 | * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads, | |
5870 | g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads, | |
5871 | s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads, | |
5872 | g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb, | |
5873 | g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads, | |
5874 | g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads, | |
5875 | g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads, | |
5876 | g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb, | |
5877 | g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb, | |
5878 | g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads, | |
5879 | g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads, | |
5880 | s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb, | |
5881 | g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads, | |
5882 | s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads, | |
5883 | g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb, | |
5884 | g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb, | |
5885 | g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb, | |
5886 | g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb, | |
5887 | g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb, | |
5888 | g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb, | |
5889 | s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads, | |
5890 | s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads, | |
5891 | a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb, | |
5892 | s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads, | |
5893 | s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb, | |
5894 | g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads, | |
5895 | g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb, | |
5896 | g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb, | |
5897 | g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads, | |
5898 | g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads, | |
5899 | g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads, | |
5900 | s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads, | |
5901 | s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb, | |
5902 | g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb, | |
5903 | g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads, | |
5904 | s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb, | |
5905 | s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads, | |
5906 | g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads, | |
5907 | g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb, | |
5908 | g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, | |
5909 | s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads, | |
5910 | g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads, | |
5911 | g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads, | |
5912 | g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb, | |
5913 | s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb, | |
5914 | g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb, | |
5915 | g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb, | |
5916 | g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb, | |
5917 | s-osinte-mingw.ads: Update to GPLv3 run-time license. | |
5918 | Use GNAT instead of GNARL. | |
5919 | ||
5920 | 2011-08-01 Bob Duff <duff@adacore.com> | |
5921 | ||
5922 | * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads, | |
5923 | a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads, | |
5924 | a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor | |
5925 | reformatting. | |
5926 | ||
5927 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
5928 | ||
5929 | * debug.adb (d.D) reverve flag for the SPARK mode | |
5930 | (d.E) reverve flag for SPARK generation mode | |
5931 | (d.F) reverve flag for Why generation mode | |
2c7f9cc0 | 5932 | * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode, |
052e0603 AC |
5933 | ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New |
5934 | functions which return True when the corresponding modes are set | |
5935 | (Formal_Language): return "spark" or "alfa" when in formal verification | |
5936 | mode. | |
5937 | * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on | |
5938 | Error_Msg to prefix the error message with a tag giving the formal | |
5939 | language | |
5940 | (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error | |
5941 | message with a tag giving the formal language | |
5942 | * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on | |
5943 | block statement | |
5944 | (Analyze_Case_Statement): issue error in formal mode on case statement | |
5945 | with a single "others" case alternative | |
5946 | (Analyze_Exit_Statement): issue errors in formal mode on exit | |
5947 | statements which do not respect SPARK restrictions | |
5948 | (Analyze_Goto_Statement): issue error in formal mode on goto statement | |
5949 | (Check_Unreachable_Code): always issue an error (not a warning) in | |
5950 | formal mode on unreachable code (concerns both code after an infinite | |
5951 | loop and after an unconditional jump, both not allowed in SPARK) | |
5952 | * sem_ch6.adb (Analyze_Return_Statement): add call to | |
5953 | Set_Return_Present for a procedure containing a return statement | |
5954 | (already done for functions in Analyze_Function_Return) | |
5955 | (Analyze_Function_Return): issue error in formal mode on extended | |
5956 | return or if return is not last statement in function | |
5957 | (Check_Missing_Return): issue error in formal mode if function does | |
5958 | not end with return or if procedure contains a return | |
5959 | * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new | |
5960 | function to detect if there is an inner scope of its parameter S which | |
5961 | is a loop. | |
5962 | ||
5963 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
5964 | ||
5965 | * sem_ch6.ads: Minor reformatting. | |
5966 | ||
5967 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
5968 | ||
5969 | * sem_util.adb (Abstract_Interface_List): Complete condition when | |
5970 | processing private type declarations to avoid reading unavailable | |
5971 | attribute. | |
5972 | (Is_Synchronized_Tagged_Type): Complete condition when processing | |
5973 | private extension declaration nodes to avoid reading unavailable | |
5974 | attribute. | |
5975 | ||
5976 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
5977 | ||
5978 | * sem_ch3.adb: Minor reformatting. | |
5979 | ||
5980 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
5981 | ||
5982 | * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads, | |
5983 | i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads, | |
5984 | s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads, | |
5985 | s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages | |
5986 | for VMS, instead parametrize the common implementation with | |
5987 | System.Parameters declarations. | |
5988 | ||
5989 | 2011-08-01 Eric Botcazou <ebotcazou@adacore.com> | |
5990 | ||
5991 | * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing. | |
5992 | ||
5993 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
5994 | ||
5995 | * seh_init.c: Fix SEH handler installation on win64. | |
5996 | ||
5997 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
5998 | ||
5999 | * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent | |
6000 | double analysis of an anonymous access to subprogram, because it can | |
6001 | lead to improper sharing of profiles and a back-end crash. | |
6002 | ||
6003 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
6004 | ||
6005 | * make.adb, sem_ch4.adb: Minor reformatting. | |
6006 | * gcc-interface/Make-lang.in: Update dependencies. | |
6007 | * sem_util.adb, exp_ch5.adb: Minor reformatting. | |
6008 | ||
6009 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
6010 | ||
6011 | * gnat_rm.texi: Fix definition of Long_Integer. | |
6012 | ||
6013 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
6014 | ||
6015 | * exp_aggr.adb: check limit size of static aggregate unconditionally, | |
6016 | to prevent storage exhaustion. | |
6017 | * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being | |
6018 | finalized is a function body, insert the cleanup code before the final | |
6019 | return statement, to prevent spurious warnings. | |
6020 | * s-pooglo.ads: add overriding indicator. | |
6021 | ||
6022 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
6023 | ||
6024 | * sem_ch4.adb (Operator_Check): improve error message when both a | |
6025 | with_clause and a use_clause are needed to make operator usage legal. | |
6026 | * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to | |
6027 | determine whether a compilation unit is visible within an other, | |
6028 | either through a with_clause in the current unit, or a with_clause in | |
6029 | its library unit or one one of its parents. | |
6030 | ||
6031 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
6032 | ||
6033 | * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator | |
6034 | over an arbitrary expression of an array or container type. | |
6035 | * lib-xref.adb: clarify comment. | |
6036 | ||
6037 | 2011-08-01 Bob Duff <duff@adacore.com> | |
6038 | ||
6039 | * einfo.ads: Minor reformatting. | |
6040 | * debug.adb: Minor comment improvement. | |
6041 | ||
6042 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
6043 | ||
6044 | * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not | |
6045 | consider hidden subprograms as valid candidates. | |
6046 | ||
6047 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
6048 | ||
6049 | * make.adb (Compile): Strip -mxxx switches in CodePeer mode. | |
6050 | ||
6051 | 2011-08-01 Vasiliy Fofanov <fofanov@adacore.com> | |
6052 | ||
6053 | * gnat_ugn.texi: Fix typo. | |
6054 | ||
6055 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
6056 | ||
6057 | * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb, | |
6058 | lib-xref.adb: Minor reformatting | |
6059 | ||
6060 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
6061 | ||
6062 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of | |
6063 | when to generate a call to Move_Final_List. | |
6064 | (Has_Controlled_Parts): Remove this function. | |
6065 | ||
6066 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
6067 | ||
6068 | * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra | |
6069 | "," in choice list. | |
6070 | ||
6071 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
6072 | ||
6073 | * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for | |
6074 | explicit raise of a predefined exception as Comes_From_Source if the | |
6075 | original N_Raise_Statement comes from source. | |
6076 | ||
6077 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
6078 | ||
6079 | * sinfo.ads: Add comment. | |
6080 | * sem_ch6.adb: Minor reformatting. | |
6081 | ||
6082 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
6083 | ||
6084 | * freeze.adb (Freeze_Entity): Refine check for bad component size | |
6085 | clause to avoid rejecting confirming clause when atomic/aliased present. | |
6086 | ||
6087 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
6088 | ||
6089 | * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to | |
6090 | better determine whether an entity reference is a write. | |
6091 | * sem_util.adb (Is_LHS): refine predicate to handle assignment to a | |
6092 | subcomponent. | |
6093 | * lib-xref.adb (Output_References): Do no suppress a read reference at | |
6094 | the same location as an immediately preceeding modify-reference, to | |
6095 | handle properly in-out actuals. | |
6096 | ||
6097 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
6098 | ||
6099 | * env.c (__gnat_setenv) [VMS]: Refine previous change. | |
6100 | ||
6101 | 2011-08-01 Quentin Ochem <ochem@adacore.com> | |
6102 | ||
6103 | * i-cstrin.adb (New_String): Changed implementation, now uses only the | |
6104 | heap to compute the result. | |
6105 | ||
6106 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
6107 | ||
6108 | * atree.ads: Minor reformatting. | |
6109 | ||
6110 | 2011-08-01 Emmanuel Briot <briot@adacore.com> | |
6111 | ||
6112 | * g-expect.adb (Get_Command_Output): Fix memory leak. | |
6113 | ||
6114 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
6115 | ||
6116 | * cstand.adb (P_Float_Type): New procedure to print the definition of | |
6117 | predefined fpt types. | |
6118 | (P_Mixed_Name): New procedure to print a name using mixed case | |
6119 | (Print_Standard): Use P_Float_Type for printing floating point types | |
6120 | * einfo.adb (Machine_Emax_Value): Add preliminary support for quad | |
6121 | precision IEEE float. | |
6122 | ||
6123 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
6124 | ||
6125 | * sem_ch3.adb: Minor reformatting. | |
6126 | ||
6127 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
6128 | ||
6129 | * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is | |
6130 | the completion of a generic function, insert the new body rather than | |
6131 | rewriting the original. | |
6132 | ||
6133 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
6134 | ||
6135 | * sinfo.ads, errout.ads: Typos in comments. | |
6136 | ||
6137 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
6138 | ||
6139 | * par-endh.adb: Minor reformatting. | |
6140 | ||
6141 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
6142 | ||
6143 | * aspects.ads, aspects.adb: Add aspects for library unit pragmas | |
6144 | (Pre_Post_Aspects): New subtype. | |
6145 | * par-ch12.adb (P_Generic): New syntax for aspects in packages | |
6146 | * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter | |
6147 | * par-ch7.adb (P_Package): Remove Decl parameter | |
6148 | (P_Package): Handle new syntax for aspects (before IS) | |
6149 | * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle | |
6150 | new aspect syntax | |
6151 | (P_Task_Definition): Remove Decl parameter, handle new aspect syntax | |
6152 | * par.adb (P_Aspect_Specifications): Add Semicolon parameter | |
6153 | (P_Package): Remove Decl parameter | |
6154 | * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit | |
6155 | aspects | |
6156 | * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect | |
6157 | specs | |
6158 | * sem_util.ads, sem_util.adb (Static_Boolean): New function | |
6159 | * sinfo.ads: Document new syntax for aspects in packages etc. | |
6160 | * sprint.adb: Handle new syntax of aspects before IS in package | |
6161 | ||
6162 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
6163 | ||
6164 | * atree.ads: Minor reformatting. | |
6165 | * sem_prag.adb: Minor reformatting. | |
6166 | ||
6167 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
6168 | ||
6169 | * exp_util.adb (Insert_Actions): Fix error in handling Actions for | |
6170 | case expr alternative. | |
6171 | ||
6172 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
6173 | ||
6174 | * sem_ch12.adb: Fix typo. | |
6175 | ||
6176 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
6177 | ||
6178 | * sem_prag.adb (Check_No_Link_Name): New procedure. | |
6179 | (Process_Import_Or_Interface): Use Check_No_Link_Name. | |
6180 | * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float) | |
6181 | instead of Standard_Long_Long_Float_Size global. Preparation for | |
6182 | eventual removal of per type constants. | |
6183 | * exp_util.ads (Get_Stream_Size): New function returning the stream | |
6184 | size value of subtype E. | |
6185 | * exp_util.adb (Get_Stream_Size): Implement new function. | |
6186 | * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size | |
6187 | function. | |
6188 | * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size | |
6189 | * einfo.adb: | |
6190 | (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats | |
6191 | ||
6192 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
6193 | ||
6194 | * cstand.adb: Fix comments. | |
6195 | * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit | |
6196 | count of arguments. | |
6197 | ||
6198 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
6199 | ||
6200 | * exp_ch4.adb, sem_cat.adb: Minor reformatting. | |
6201 | ||
6202 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
6203 | ||
6204 | * atree.ads: Fix comment. | |
6205 | ||
6206 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
6207 | ||
6208 | * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec. | |
6209 | * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name. | |
6210 | * par.adb: Add with for Namet.Sp. | |
6211 | * par-tchk.adb: Minor reformatting. | |
6212 | ||
6213 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
6214 | ||
6215 | * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb | |
6216 | (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name | |
6217 | of the init procedure of a SAL. | |
6218 | * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name): | |
6219 | New procedure. | |
6220 | ||
6221 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
6222 | ||
6223 | * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor | |
6224 | reformatting. | |
6225 | ||
6226 | 2011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
6227 | ||
6228 | * adaint.c (__gnat_file_time_name_attr): Get rid of warning. | |
6229 | ||
6230 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
6231 | ||
6232 | * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function | |
6233 | conformant with its spec (return True only for types that have | |
6234 | an overriding Initialize primitive operation that prevents them from | |
6235 | having preelaborable initialization). | |
6236 | * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable | |
6237 | initialization for controlled types in Ada 2005 or later mode. | |
6238 | ||
6239 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
6240 | ||
6241 | * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition, | |
6242 | Postcondition. | |
6243 | (Same_Aspect): New function. | |
6244 | * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect | |
6245 | Type_Invariant, Precondition, Postcondition. | |
6246 | * snames.ads-tmpl: Add Name_Type_Invariant. | |
6247 | ||
6248 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
6249 | ||
6250 | * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point | |
6251 | here. | |
6252 | (Freeze_All_Ent): Fix error in handling inherited aspects. | |
6253 | * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is | |
6254 | already analyzed, but don't skip entire processing of a declaration, | |
6255 | that's wrong in some cases of declarations being rewritten. | |
6256 | (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects. | |
6257 | Don't delay for integer, string literals | |
6258 | Treat predicates in usual manner for delay, remove special case code, | |
6259 | not needed. | |
6260 | (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point | |
6261 | (Build_Predicate_Function): Update saved expression in aspect | |
6262 | (Build_Invariant_Procedure): Update saved expression in aspect | |
6263 | * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization | |
6264 | of replacement of discriminant references if the reference is simple. | |
6265 | ||
6266 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
6267 | ||
6268 | * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate. | |
6269 | * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for | |
6270 | Static_Predicate and Dynamic_Predicate. | |
6271 | (Build_Predicate_Function): Add processing for Static_Predicate | |
6272 | and Dynamic_Predicate. | |
6273 | * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag | |
6274 | (From_Static_Predicate): New flag | |
6275 | * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate | |
6276 | ||
6277 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
6278 | ||
6279 | * usage.adb: Documentation cleanup for Ada version modes in usage. | |
6280 | * expander.adb: Minor reformatting. | |
6281 | ||
6282 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
6283 | ||
6284 | * atree.ads: Minor comment fix. | |
6285 | * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads, | |
6286 | a-witeio.ads, sem_prag.adb: Minor reformatting. | |
6287 | ||
6288 | 2011-08-01 Doug Rupp <rupp@adacore.com> | |
6289 | ||
6290 | * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure | |
6291 | pointers. Use descrip.h header file for convenience. Add some | |
6292 | comments. | |
6293 | ||
6294 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
6295 | ||
6296 | * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point | |
6297 | (Freeze_All): Call Check_Aspect_At_End_Of_Declarations | |
6298 | * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point): | |
6299 | New procedure. | |
6300 | (Check_Aspect_At_End_Of_Declarations): New procedure | |
6301 | (Analye_Aspect_Specification): Minor changes for above procedures | |
6302 | * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect | |
6303 | specification node as well. | |
6304 | ||
6305 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
6306 | ||
6307 | * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special | |
6308 | Windows files. Use GetFilesAttributes() in this case to check for file | |
6309 | existence instead of returning with an error code. | |
6310 | ||
6311 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
6312 | ||
6313 | * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when | |
6314 | High is above Source length. | |
6315 | ||
6316 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
6317 | ||
6318 | * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment. | |
6319 | ||
6320 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
6321 | ||
6322 | * aspects.ads (Boolean_Aspects): New subtype. | |
6323 | * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects | |
6324 | for derived types in cases where the parent type and derived type have | |
6325 | aspects. | |
6326 | * freeze.adb (Freeze_Entity): Fix problems in handling derived type | |
6327 | with aspects when parent type also has aspects. | |
6328 | (Freeze_Entity): Deal with delay of boolean aspects (must evaluate | |
6329 | boolean expression at this point). | |
6330 | * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in | |
6331 | accordance with final decision on the Ada 2012 feature. | |
6332 | * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag. | |
6333 | ||
6334 | 2011-08-01 Matthew Heaney <heaney@adacore.com> | |
6335 | ||
6336 | * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector. | |
6337 | ||
6338 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
6339 | ||
6340 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: | |
6341 | Fix Replace_Slice when High is above current string size. | |
6342 | (Replace_Slice): Fix DL computation when High is above current | |
6343 | string length. | |
6344 | ||
6345 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
6346 | ||
6347 | * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired. | |
6348 | ||
6349 | 2011-08-01 Matthew Heaney <heaney@adacore.com> | |
6350 | ||
6351 | * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child | |
6352 | of node. | |
6353 | ||
6354 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
6355 | ||
6356 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor | |
6357 | reformatting. | |
6358 | ||
6359 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
6360 | ||
6361 | * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named | |
6362 | access to protected subprograms in generic bodies. | |
6363 | * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a | |
6364 | protected type, indicate that the convention of the subprogram is | |
6365 | Convention_Protected, because it may be used in subsequent declarations | |
6366 | within the protected declaration. | |
6367 | ||
6368 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
6369 | ||
6370 | * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init" | |
6371 | and "final" procedures when the name of the library is "ada", to avoid | |
6372 | duplicate symbols "adainit" and "adafinal" in executables. | |
6373 | ||
6374 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
6375 | ||
6376 | * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a | |
6377 | quantified expression that appears within a postcondition and uses the | |
6378 | Ada2012 'Result attribute. | |
6379 | ||
6380 | 2011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
6381 | ||
6382 | * init.c (__gnat_error_handler): Cast reason to int. | |
6383 | (__gnat_install_handler): Explain sa_sigaction use. | |
6384 | ||
6385 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> | |
6386 | ||
6387 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the | |
6388 | subprogram has copy-in copy-out parameters, try to promote the mode of | |
6389 | the return type if it is passed in registers. | |
6390 | ||
6391 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> | |
6392 | ||
6393 | * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the | |
6394 | left operand as addressable. | |
6395 | ||
6396 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> | |
6397 | ||
6398 | * gcc-interface/gigi.h (build_function_stub): Remove. | |
6399 | (build_return_expr): Likewise. | |
6400 | (convert_vms_descriptor): Declare. | |
6401 | * gcc-interface/utils.c (convert_vms_descriptor): Make global. | |
6402 | (build_function_stub): Move to... | |
6403 | * gcc-interface/utils2.c (build_return_expr): Move to... | |
6404 | * gcc-interface/trans.c (build_function_stub): ...here. | |
6405 | (build_return_expr): ...here. | |
6406 | (Subprogram_Body_to_gnu): Add local variable for language_function. | |
6407 | Disconnect the parameter attributes cache, if any, once done with it. | |
6408 | Call end_subprog_body only after setting the end_locus. | |
6409 | Build the stub associated with the function, if any, at the very end. | |
6410 | (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local | |
6411 | variables and streamline control flow. | |
6412 | ||
6413 | 2011-07-23 Arnaud Charlet <charlet@adacore.com> | |
6414 | ||
6415 | PR ada/49819 | |
6416 | * gcc-interface/Makefile.in (powerpc-linux): Remove reference to | |
6417 | g-trasym-dwarf.adb. | |
6418 | ||
6419 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
6420 | ||
6421 | PR bootstrap/49794 | |
6422 | * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler): | |
6423 | Assign to act.sa_sigaction. | |
6424 | * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast | |
6425 | current->return_address to char * before arithmetic. | |
6426 | ||
6427 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
6428 | ||
6429 | * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation. | |
6430 | Correct argument types. | |
6431 | Extract code from reason. | |
6432 | (__gnat_install_handler): Assign to act.sa_sigaction. | |
6433 | ||
6434 | 2011-07-21 Eric Botcazou <ebotcazou@adacore.com> | |
6435 | ||
6436 | * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to... | |
6437 | (GNAT1_OBJS): ...here. | |
6438 | ||
6439 | 2011-07-15 Eric Botcazou <ebotcazou@adacore.com> | |
6440 | ||
6441 | PR ada/48711 | |
6442 | * g-socthi-mingw.adb (Fill): Fix formatting. | |
6443 | ||
6444 | * gcc-interface/gigi.h: Move around comment. | |
6445 | ||
6446 | 2011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | |
6447 | ||
6448 | PR ada/46350 | |
6449 | * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast. | |
6450 | ||
6451 | 2011-07-14 Florian Weimer <fw@deneb.enyo.de> | |
6452 | ||
6453 | PR ada/48711 | |
6454 | * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL. | |
6455 | ||
6456 | 2011-07-13 Eric Botcazou <ebotcazou@adacore.com> | |
6457 | ||
6458 | * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit | |
6459 | range comparison if Pmode is SImode. | |
6460 | ||
6461 | 2011-07-12 Laurent GUERBY <laurent@guerby.net> | |
6462 | Eric Botcazou <ebotcazou@adacore.com> | |
6463 | ||
6464 | * adadecode.c: Wrap up in extern "C" block. | |
6465 | * adadecode.h: Likewise. | |
6466 | * adaint.c: Likewise. Remove 'const' keyword. | |
6467 | * adaint.h: Likewise. | |
6468 | * argv.c: Likewise. | |
6469 | * atree.h: Likewise. | |
6470 | * cio.c: Likewise. | |
6471 | * cstreams.c: Likewise. | |
6472 | * env.c: Likewise. | |
6473 | * exit.c: Likewise. | |
6474 | * fe.h: Likewise. | |
6475 | * final.c: Likewise. | |
6476 | * init.c: Likewise. | |
6477 | * initialize.c: Likewise. | |
6478 | * link.c: Likewise. | |
6479 | * namet.h: Likewise. | |
6480 | * nlists.h: Likewise. | |
6481 | * raise.c: Likewise. | |
6482 | * raise.h: Likewise. | |
6483 | * repinfo.h: Likewise. | |
6484 | * seh_init.c: Likewise. | |
6485 | * targext.c: Likewise. | |
6486 | * tracebak.c: Likewise. | |
6487 | * uintp.h: Likewise. | |
6488 | * urealp.h: Likewise. | |
6489 | * xeinfo.adb: Wrap up generated C code in extern "C" block. | |
6490 | * xsinfo.adb: Likewise. | |
6491 | * xsnamest.adb: Likewise. | |
6492 | * gcc-interface/gadaint.h: Wrap up in extern "C" block. | |
6493 | * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block. | |
6494 | * gcc-interface/misc.c: Likewise. | |
6495 | * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER. | |
6496 | (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and | |
6497 | ada/targext.o here... | |
6498 | (GNAT_ADA_OBJS): ...and not here. | |
6499 | (GNAT1_ADA_OBJS): Add ada/b_gnat1.o. | |
6500 | (GNATBIND_OBJS): Reorder. | |
6501 | ||
6502 | 2011-07-07 Richard Henderson <rth@redhat.com> | |
6503 | ||
6504 | * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call | |
6505 | dwarf2out_frame_init. | |
6506 | ||
6507 | 2011-07-07 Eric Botcazou <ebotcazou@adacore.com> | |
6508 | ||
6509 | * gcc-interface/misc.c (gnat_init): Tweak previous change. | |
6510 | ||
6511 | 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
6512 | ||
6513 | PR target/39150 | |
6514 | * gcc-interface/Makefile.in: Handle x86_64-solaris2. | |
6515 | ||
6516 | 2011-07-06 Richard Guenther <rguenther@suse.de> | |
6517 | ||
6518 | * gcc-interface/misc.c (gnat_init): Merge calls to | |
6519 | build_common_tree_nodes and build_common_tree_nodes_2. | |
6520 | Re-initialize boolean_false_node. | |
6521 | ||
6522 | 2011-07-02 Eric Botcazou <ebotcazou@adacore.com> | |
6523 | Olivier Hainque <hainque@adacore.com> | |
6524 | Nicolas Setton <setton@adacore.com> | |
6525 | ||
6526 | * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on | |
6527 | the type according to the ARTIFICIAL_P parameter. | |
6528 | (create_type_decl): Likewise. | |
6529 | (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1. | |
6530 | ||
6531 | 2011-07-01 Eric Botcazou <ebotcazou@adacore.com> | |
6532 | ||
6533 | * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command. | |
6534 | (gnatbind): Likewise. | |
6535 | ||
6536 | 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
6537 | ||
6538 | * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL). | |
6539 | ||
6540 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> | |
6541 | ||
6542 | * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE | |
6543 | local variable throughout. Remove useless call to Base_Type. | |
6544 | (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout. | |
6545 | Take it also into account for the volatileness of the field. Set the | |
6546 | TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings. | |
6547 | ||
6548 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> | |
6549 | ||
6550 | * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP | |
6551 | on a dereference built for a by-ref object if it has an address clause. | |
6552 | ||
6553 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> | |
6554 | ||
6555 | * einfo.ads (Address_Taken): Document use for the second argument of | |
6556 | Asm_Input and Asm_Output attributes. | |
6557 | * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second | |
6558 | argument is an entity name, then set Address_Taken on it. | |
6559 | <Attribute_Asm_Output>: Likewise. | |
6560 | * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the | |
6561 | Attr_Asm_Input and Attr_Asm_Output attributes explicitly. | |
6562 | (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in | |
6563 | memory and is a CONST_DECL, retrieve its corresponding VAR_DECL. | |
6564 | ||
6565 | 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com> | |
6566 | ||
6567 | PR middle-end/46500 | |
6568 | * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args. | |
6569 | ||
6570 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> | |
6571 | ||
6572 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o. | |
6573 | (ada/utils.o): Update dependencies. | |
6574 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add | |
6575 | ../../../libcpp/libcpp.a. | |
6576 | * gcc-interface/utils.c: Include common/common-target.h. | |
6577 | (process_attributes): Use targetm_common.have_named_sections. | |
6578 | ||
6579 | 2011-06-07 Richard Guenther <rguenther@suse.de> | |
6580 | ||
6581 | * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call | |
6582 | set_sizetype. | |
6583 | ||
6584 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
6585 | ||
6586 | * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the | |
6587 | TREE_THIS_NOTRAP flag. | |
6588 | ||
6589 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
6590 | ||
6591 | * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>: | |
6592 | Fix thinko. | |
6593 | ||
6594 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
6595 | ||
6596 | * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred | |
6597 | constants whose full view has discriminants specially. | |
6598 | ||
6599 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
6600 | ||
6601 | * gcc-interface/utils.c: Include diagnostic.h. | |
6602 | (gnat_write_global_declarations): Output debug information for all | |
6603 | global type declarations before finalizing the compilation unit. | |
6604 | * gcc-interface/Make-lang.in (ada/utils.o): Add dependency. | |
6605 | ||
6606 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> | |
6607 | ||
6608 | * gcc-interface/utils.c (def_fn_type): Remove extra va_end. | |
6609 | ||
6610 | 2011-05-25 Kai Tietz <ktietz@redhat.com> | |
6611 | ||
6612 | * adaint.c (__gnat_to_canonical_file_list_next): Use array | |
6613 | initialization instead of const/none-const pointer assignment. | |
6614 | ||
6615 | 2011-05-24 Joseph Myers <joseph@codesourcery.com> | |
6616 | ||
6617 | * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include | |
6618 | $(EXTRA_GNAT1_OBJS). | |
6619 | (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS). | |
6620 | (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove. | |
6621 | (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a. | |
6622 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use | |
6623 | libcommon-target.a instead of prefix.o. | |
6624 | ||
6625 | 2011-05-21 Joseph Myers <joseph@codesourcery.com> | |
6626 | ||
6627 | PR ada/49097 | |
6628 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS). | |
6629 | ||
6630 | 2011-05-20 Joseph Myers <joseph@codesourcery.com> | |
6631 | ||
6632 | * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o. | |
6633 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a | |
6634 | instead of version.o. | |
6635 | ||
6636 | 2011-05-18 Kai Tietz <ktietz@redhat.com> | |
6637 | ||
6638 | * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use | |
6639 | boolean_false_node instead of integer_zero_node. | |
6640 | (convert_with_check): Likewise. | |
6641 | * gcc-interface/decl.c (choices_to_gnu): Likewise. | |
6642 | ||
6643 | 2011-05-12 Eric Botcazou <ebotcazou@adacore.com> | |
6644 | ||
6645 | * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the | |
6646 | type of the parameter is an unconstrained array, convert the actual to | |
6647 | the type of the formal in the In Out and Out cases as well. | |
6648 | ||
6649 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> | |
6650 | ||
6651 | * gcc-interface/utils.c (def_fn_type): Don't call build_function_type; | |
6652 | call build_function_type_array or build_varargs_function_type_array | |
6653 | instead. | |
6654 | (create_subprog_type): Don't call build_function_type; call | |
6655 | build_function_type_vec instead. | |
6656 | ||
6657 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> | |
6658 | ||
6659 | * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL. | |
6660 | (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL. | |
6661 | (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL. | |
6662 | ||
6663 | 2011-05-07 Eric Botcazou <ebotcazou@adacore.com> | |
6664 | ||
6665 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces. | |
6666 | ||
6667 | * gcc-interface/gigi.h (global_bindings_p): Adjust prototype. | |
6668 | * gcc-interface/utils.c (global_bindings_p): Return bool and simplify. | |
6669 | ||
6670 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> | |
6671 | ||
6672 | * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label. | |
6673 | ||
6674 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> | |
6675 | ||
6676 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators | |
6677 | instead of accessing TYPE_ARG_TYPES directly. | |
6678 | * gcc-interface/utils.c (handle_nonnull_attribute): Likewise. | |
6679 | ||
6680 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> | |
6681 | ||
6682 | PR ada/48844 | |
6683 | * gcc-interface/gigi.h (get_variant_part): Declare. | |
6684 | * gcc-interface/decl.c (get_variant_part): Make global. | |
6685 | * gcc-interface/utils2.c (find_common_type): Do not return T1 if the | |
6686 | types have the same constant size, are record types and T1 has a | |
6687 | variant part while T2 doesn't. | |
6688 | ||
6689 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> | |
6690 | ||
6691 | * gcc-interface/utils.c (begin_subprog_body): Do not call | |
6692 | get_pending_sizes. | |
6693 | (end_subprog_body): Likewise. | |
6694 | ||
6695 | 2011-05-04 Richard Guenther <rguenther@suse.de> | |
6696 | ||
6697 | * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to | |
6698 | int_const_binop. | |
6699 | (pos_to_constructor): Likewise. | |
6700 | ||
6701 | 2011-05-03 Nathan Froyd <froydnj@codesourcery.com> | |
2c7f9cc0 | 6702 | Eric Botcazou <ebotcazou@adacore.com> |
052e0603 AC |
6703 | |
6704 | * gcc-interface/trans.c (gigi): Call build_function_type_list instead | |
6705 | of build_function_type. Adjust calls to... | |
6706 | (build_raise_check): ...this. Do not take a void_tree parameter. | |
6707 | Call build_function_type_list instead of build_function_type. | |
6708 | Fix head comment and swap couple of conditional blocks. | |
6709 | ||
6710 | 2011-04-30 Eric Botcazou <ebotcazou@adacore.com> | |
6711 | ||
6712 | * gnatvsn.ads (Library_Version): Bump to 4.7. | |
6713 | (Current_Year): Bump to 2011. | |
6714 | ||
6715 | 2011-04-29 Michael Matz <matz@suse.de> | |
6716 | ||
6717 | * gcc-interface/misc.c (gnat_handle_option): Set | |
6718 | warn_maybe_uninitialized. | |
6719 | ||
6720 | 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com> | |
6721 | ||
6722 | * gnat_ugn.texi (Complexity Metrics Control): Update link to | |
6723 | the Watson/McCabe paper. | |
6724 | ||
6725 | 2011-04-23 Jim Meyering <meyering@redhat.com> | |
6726 | ||
6727 | * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/ | |
6728 | ||
6729 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> | |
6730 | ||
6731 | * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE | |
6732 | onto the new type. | |
6733 | ||
6734 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> | |
6735 | ||
6736 | * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG | |
6737 | parameter. | |
6738 | * gcc-interface/utils.c (create_subprog_decl): Likewise. Set | |
6739 | DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly. | |
6740 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add | |
6741 | ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl. | |
6742 | <all>: Do not set flags on the reused DECL node coming from an alias. | |
6743 | Set DECL_IGNORED_P on the DECL node built for subprograms if they | |
6744 | don't need debug info here... | |
6745 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here. | |
6746 | (gigi): Adjust calls to create_subprog_decl. | |
6747 | (build_raise_check): Likewise. | |
6748 | (establish_gnat_vms_condition_handler): Likewise. | |
6749 | (Compilation_Unit_to_gnu): Likewise. | |
6750 | (gnat_to_gnu): Likewise. | |
6751 | ||
6752 | 2011-04-21 Eric Botcazou <ebotcazou@adacore.com> | |
6753 | ||
6754 | * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define. | |
6755 | (NO_REORDER_ADAFLAGS): New variable. | |
6756 | (EXTRA_GNATTOOLS): Always define. | |
6757 | (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h. | |
6758 | Clean up and adjust list of files compiled with special options. | |
6759 | * gcc-interface/Make-lang.in: Likewise. | |
6760 | (ada/decl.o): Cosmetical change. | |
6761 | (ada/misc.o): Remove dependency on $(PLUGIN_H). | |
6762 | ||
6763 | 2011-04-20 Jim Meyering <meyering@redhat.com> | |
6764 | ||
6765 | * initialize.c (__gnat_initialize): Remove useless if-before-free. | |
6766 | ||
6767 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> | |
6768 | ||
6769 | * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with | |
6770 | $(CFLAGS) on the link line. | |
6771 | ||
6772 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> | |
6773 | ||
6774 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the | |
6775 | padded type built for the return type if it is unconstrained. | |
6776 | ||
6777 | 2011-04-14 Nathan Froyd <froydnj@codesourcery.com> | |
6778 | ||
6779 | * gcc-interface/utils.c (gnat_poplevel): Use block_chainon. | |
6780 | ||
6781 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> | |
6782 | ||
6783 | * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON | |
6784 | before calling TREE_CHAIN. | |
6785 | * gcc-interface/misc.c (gnat_init_ts): New function. | |
6786 | (LANG_HOOKS_INIT_TS): Define. | |
6787 | ||
6788 | 2011-04-12 Martin Jambor <mjambor@suse.cz> | |
6789 | ||
6790 | * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node | |
6791 | instead of cgraph_node. | |
6792 | ||
6793 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> | |
6794 | ||
6795 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum | |
6796 | alignment on fields of the RETURN type built for the Copy-In Copy-Out | |
6797 | mechanism. | |
6798 | ||
6799 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> | |
6800 | ||
6801 | * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers | |
6802 | of aggregate types that contain a placeholder. | |
6803 | ||
6804 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> | |
6805 | ||
6806 | * gcc-interface/utils.c (handle_sentinel_attribute): Don't use | |
6807 | TYPE_ARG_TYPES. | |
6808 | (handle_type_generic_attribute): Likewise. | |
6809 | ||
6810 | 2011-04-04 Eric Botcazou <ebotcazou@adacore.com> | |
6811 | ||
6812 | PR ada/47163 | |
6813 | * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change. | |
6814 | ||
6815 | 2011-04-04 Kai Tietz <ktietz@redhat.com> | |
6816 | ||
6817 | PR ada/47163 | |
6818 | * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets | |
6819 | to flag value. | |
6820 | ||
6821 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
6822 | ||
6823 | * gcc-interface/utils2.c (build_allocator): In the unconstrained array | |
6824 | type case, do not strip a padding type around the array type. | |
6825 | ||
6826 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
6827 | ||
6828 | * gcc-interface/utils.c (update_pointer_to): Finalize named pointer | |
6829 | types. | |
6830 | ||
6831 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
6832 | ||
6833 | * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete. | |
6834 | * gcc-interface/misc.c (gnat_handle_option): Remove special handling | |
6835 | code for -feliminate-unused-debug-types. | |
6836 | (gnat_post_options): Likewise. | |
6837 | ||
6838 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
6839 | ||
6840 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
6841 | declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a | |
6842 | distinct copy. | |
6843 | ||
6844 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
6845 | ||
6846 | * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the | |
6847 | DECL_ARTIFICIAL flag on enumeration types. | |
6848 | ||
6849 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
6850 | ||
6851 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make | |
6852 | fat pointer types artificial unconditionally. | |
6853 | <E_Array_Subtype>: Attach the base array type as a parallel type if it | |
6854 | isn't artificial. | |
6855 | ||
6856 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
6857 | ||
6858 | * gcc-interface/gigi.h (get_dummy_type): Declare. | |
6859 | (build_dummy_unc_pointer_types): Likewise. | |
6860 | (finish_fat_pointer_type): Likewise. | |
6861 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy | |
6862 | fat pointer type has been built, complete it in place. | |
6863 | <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat | |
6864 | and thin pointers. Remove useless variable. | |
6865 | (finish_fat_pointer_type): Make global and move to... | |
6866 | * gcc-interface/utils.c (finish_fat_pointer_type): ...here. | |
6867 | (get_dummy_type): New function. | |
6868 | (build_dummy_unc_pointer_types): Likewise. | |
6869 | (gnat_pushdecl): Propage the name to the anonymous variants only. | |
6870 | (update_pointer_to): Only adjust the pointer types in the unconstrained | |
6871 | array case. | |
6872 | ||
6873 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
6874 | ||
6875 | * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag. | |
6876 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it | |
6877 | if this is a Taft amendment type and the full declaration is available. | |
6878 | * gcc-interface/trans.c (process_type): Likewise. | |
6879 | If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P. | |
6880 | (process_freeze_entity): Likewise. | |
6881 | * gcc-interface/utils.c (dummy_global): New static variable. | |
6882 | (gnat_write_global_declarations): If there are types declared as used | |
6883 | at the global level, insert them in the global hash table. | |
6884 | ||
6885 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
6886 | ||
6887 | * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param. | |
6888 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
6889 | declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct | |
6890 | copy. | |
6891 | (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL | |
6892 | flag of the type accordingly. | |
6893 | * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type. | |
6894 | ||
6895 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
6896 | ||
6897 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
6898 | finalizing types when updating the pointers to the designated type. | |
6899 | <all>: Finalize the deferred types even if we didn't defer processing | |
6900 | of incomplete types in this invocation. | |
6901 | ||
6902 | 2011-04-01 Olivier Hainque <hainque@adacore.com> | |
2c7f9cc0 AS |
6903 | Nicolas Setton <setton@adacore.com> |
6904 | Eric Botcazou <ebotcazou@adacore.com> | |
052e0603 AC |
6905 | |
6906 | * gcc-interface/misc.c (gnat_descriptive_type): New function. | |
6907 | (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type. | |
6908 | ||
6909 | 2011-03-28 Kai Tietz <ktietz@redhat.com> | |
6910 | ||
6911 | * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native | |
6912 | Windows targets. | |
6913 | (EH_MECHANISM): Use GCC exception mechanism for native Windows targets. | |
6914 | * system-mingw.ads (System): Change ZCX_By_Default default to True. | |
6915 | ||
6916 | * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype. | |
6917 | ||
6918 | 2011-03-28 Tristan Gingold <gingold@adacore.com> | |
6919 | ||
6920 | PR ada/44431 | |
6921 | * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c. | |
6922 | Use ada output of gnatbind. | |
6923 | (ada/b_gnatb.adb): Ditto. | |
6924 | (ada/b_gnat1.o, ada/b_gnatb.o): New rules. | |
6925 | (ada.mostlyclean, ada.stage1) | |
6926 | (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile) | |
6927 | (ada.stagefeedback): Adjust. | |
6928 | * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c. | |
6929 | Use ada output of gnatbind. | |
6930 | (b_gnatm.adb): Ditto. | |
6931 | (b_gnatl.o, b_gnatm.o): New rules. | |
6932 | ||
6933 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> | |
6934 | ||
6935 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
6936 | for the padded type built to support a specified size or alignment. | |
6937 | ||
6938 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> | |
6939 | ||
6940 | * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment. | |
6941 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
6942 | unconditionally to the end of the unit when the designated type is | |
6943 | limited_with'ed. | |
6944 | <all>: Rename local variable. Attempt to un-defer types only and do it | |
6945 | for limited_with'ed types as well. | |
6946 | (finalize_from_with_types): Adjust comment. Rename variable and tidy. | |
6947 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT | |
6948 | consistently and remove redundant call to finalize_from_with_types. | |
6949 | ||
6950 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> | |
6951 | ||
6952 | * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to | |
6953 | subprograms without a previous spec declared in the same unit. | |
6954 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined | |
6955 | subprograms at the end of the unit instead of at the beginning. | |
6956 | * gcc-interface/utils.c (create_subprog_decl): Check that the entity | |
6957 | isn't public for the special handling of non-inline functions nested | |
6958 | inside inline external functions. | |
6959 | ||
6960 | 2011-03-25 Jeff Law <law@redhat.com> | |
6961 | ||
6962 | * gcc-interface/utils.c (def_fn_type): Add missing va_end. | |
6963 | ||
6964 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> | |
6965 | ||
6966 | * einfo.ads (Size_Depends_On_Discriminant): Adjust description. | |
6967 | * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure | |
6968 | to compute Set_Size_Depends_On_Discriminant. | |
6969 | (Layout_Type): Call it on array types in back-end layout mode. | |
6970 | * sem_util.adb (Requires_Transient_Scope): Return true for array | |
6971 | types only if the size depends on the value of discriminants. | |
6972 | * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS | |
6973 | type if the RHS is a call to a function that returns an unconstrained | |
6974 | type with default discriminant. | |
6975 | ||
6976 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> | |
6977 | ||
6978 | * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of | |
6979 | non-conversion to the nominal result type at the end. | |
6980 | ||
6981 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> | |
6982 | ||
6983 | * gcc-interface/trans.c (create_temporary): New function taken from... | |
6984 | (create_init_temporary): ...here. Call it. | |
6985 | (call_to_gnu): Create the temporary for the return value early, if any. | |
6986 | Create it for a function with copy-in/copy-out parameters if there is | |
6987 | no target; in other cases of copy-in/copy-out, use another temporary. | |
6988 | Push the new binding level lazily. Add and rename local variables. | |
6989 | ||
6990 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> | |
6991 | ||
6992 | * gcc-interface/decl.c (validate_size): Improve comments and tweak | |
6993 | error message. | |
6994 | (set_rm_size): Likewise. | |
6995 | ||
6996 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> | |
6997 | ||
6998 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
6999 | for the padded type built in order to support a specified alignment. | |
7000 | Fix incorrect formatting. | |
7001 | ||
7002 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> | |
7003 | ||
7004 | PR bootstrap/48216 | |
7005 | * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL. | |
7006 | ||
7007 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> | |
7008 | ||
7009 | * gcc-interface/decl.c (components_to_record): Add REORDER parameter, | |
7010 | rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter | |
7011 | to the end of the list. Adjust recursive call. Rename local variable. | |
7012 | If REORDER is true, reorder components of the record type. | |
7013 | (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to | |
7014 | components_to_record and adjust the parameter list. | |
7015 | ||
7016 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> | |
7017 | ||
7018 | * gcc-interface/decl.c (elaborate_expression_1): When optimization is | |
7019 | disabled, use the variable for bounds of loop iteration scheme. | |
7020 | ||
7021 | 2011-03-21 Kai Tietz <ktietz@redhat.com> | |
7022 | ||
7023 | PR target/12171 | |
7024 | * gcc-interface/utils.c (gnat_internal_attribute_table): Add column. | |
7025 | ||
7026 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> | |
7027 | ||
7028 | * gcc-interface/decl.c (elaborate_expression_1): Try harder to find | |
7029 | out whether the expression is read-only. Short-circuit placeholder | |
7030 | case and rename a couple of local variables. | |
7031 | ||
7032 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> | |
7033 | ||
7034 | * gcc-interface/gigi.h (smaller_form_type_p): Declare. | |
7035 | * gcc-interface/trans.c (smaller_form_type_p): Make global and move... | |
7036 | * gcc-interface/utils.c (smaller_form_type_p): ...to here. | |
7037 | (convert): Deal with conversions from a smaller form type specially. | |
7038 | ||
7039 | 2011-02-14 Eric Botcazou <ebotcazou@adacore.com> | |
7040 | ||
7041 | * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and | |
7042 | its argument, except for the special -I- switch. | |
7043 | ||
7044 | 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com> | |
7045 | ||
7046 | * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to | |
7047 | "Ada Issues". | |
7048 | ||
7049 | 2011-02-08 Eric Botcazou <ebotcazou@adacore.com> | |
7050 | ||
7051 | * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs. | |
7052 | ||
7053 | 2011-02-03 Eric Botcazou <ebotcazou@adacore.com> | |
7054 | ||
7055 | * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of | |
7056 | GNAT_FORMAL. | |
7057 | * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to... | |
7058 | * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE | |
7059 | instead of GNAT_FORMAL. Protect the expression against multiple uses. | |
7060 | Do not generate the check directly, instead instantiate the template | |
7061 | check present in the descriptor. | |
7062 | (make_descriptor_field): Move around. | |
7063 | (build_vms_descriptor32): Build a template check in the POINTER field. | |
7064 | (build_vms_descriptor): Remove useless suffixes. | |
7065 | * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call. | |
7066 | ||
7067 | 2011-01-26 Eric Botcazou <ebotcazou@adacore.com> | |
7068 | ||
7069 | PR bootstrap/47467 | |
7070 | * targext.c: Include target files if IN_RTS is defined. | |
7071 | ||
7072 | 2011-01-26 Richard Guenther <rguenther@suse.de> | |
7073 | ||
7074 | PR bootstrap/47467 | |
7075 | * targext.c: Include config.h. | |
7076 | * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H) | |
7077 | dependency. | |
7078 | ||
7079 | 2011-01-04 Pascal Obry <obry@adacore.com> | |
2c7f9cc0 | 7080 | Eric Botcazou <ebotcazou@adacore.com> |
052e0603 AC |
7081 | |
7082 | * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit. | |
7083 | ||
7084 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> | |
7085 | ||
7086 | * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the | |
7087 | end-of-case on the end label and its associated gotos, if any. | |
7088 | ||
7089 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> | |
7090 | ||
7091 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the | |
7092 | expressions of the parameter cache within the statement group of | |
7093 | the CICO mechanism. | |
7094 | ||
7095 | 2011-01-04 Olivier Hainque <hainque@adacore.com> | |
2c7f9cc0 | 7096 | Eric Botcazou <ebotcazou@adacore.com> |
052e0603 AC |
7097 | |
7098 | * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default. | |
7099 | (set_end_locus_from_node): New function. | |
7100 | (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we | |
7101 | make and the function end_locus. | |
7102 | (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus | |
7103 | for the elaboration subprogram. | |
7104 | (set_gnu_expr_location_from_node) <default case>: Use it to attempt to | |
7105 | set the end_locus of the expression as well. | |
7106 | ||
7107 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> | |
7108 | ||
7109 | PR ada/47131 | |
7110 | * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make | |
7111 | variables that are referenced in exception handlers volatile. | |
7112 | ||
7113 | ||
7114 | \f | |
7115 | Copyright (C) 2011 Free Software Foundation, Inc. | |
7116 | ||
7117 | Copying and distribution of this file, with or without modification, | |
7118 | are permitted in any medium without royalty provided the copyright | |
7119 | notice and this notice are preserved. | |
7120 | ||
7121 | * gnat_rm.texi: Ramification of pragma Eliminate documentation | |
7122 | - fix bugs in the description of Source_Trace; | |
7123 | - get rid of UNIT_NAME; | |
7124 | ||
4fbad0ba AC |
7125 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
7126 | ||
7127 | * exp_ch9.adb | |
7128 | (Build_Dispatching_Requeue): Adding support for VM targets | |
7129 | since we cannot directly reference the Tag entity. | |
7130 | * exp_sel.adb (Build_K): Adding support for VM targets. | |
7131 | (Build_S_Assignment): Adding support for VM targets. | |
7132 | * exp_disp.adb | |
7133 | (Default_Prim_Op_Position): In VM targets do not restrict availability | |
7134 | of predefined interface primitives to compiling in Ada 2005 mode. | |
7135 | (Is_Predefined_Interface_Primitive): In VM targets this service is not | |
7136 | restricted to compiling in Ada 2005 mode. | |
7137 | (Make_VM_TSD): Generate code that declares and initializes the OSD | |
7138 | record. Needed to support dispatching calls through synchronized | |
7139 | interfaces. | |
7140 | * exp_ch3.adb | |
7141 | (Make_Predefined_Primitive_Specs): Enable generation of predefined | |
7142 | primitives associated with synchronized interfaces. | |
7143 | (Make_Predefined_Primitive_Bodies): Enable generation of predefined | |
7144 | primitives associated with synchronized interfaces. | |
7145 | ||
7146 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7147 | ||
7148 | * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of | |
7149 | statements hidden in SPARK if preceded by the HIDE directive | |
7150 | (Parse_Exception_Handlers): mark each exception handler in a sequence of | |
7151 | exception handlers as hidden in SPARK if preceded by the HIDE directive | |
7152 | * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK | |
7153 | if starting with the HIDE directive | |
7154 | * par-ch7.adb (P_Package): mark a package body hidden in SPARK if | |
7155 | starting with the HIDE directive; mark the declarations in a private | |
7156 | part as hidden in SPARK if the private part starts with the HIDE | |
7157 | directive | |
7158 | * restrict.adb, restrict.ads | |
7159 | (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK | |
7160 | (Is_In_Hidden_Part_In_SPARK): new function which returns whether its | |
7161 | argument node belongs to a part which is hidden in SPARK | |
7162 | (Check_SPARK_Restriction): do not issue violations on nodes in hidden | |
7163 | parts in SPARK; protect the possibly costly call to | |
7164 | Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on | |
7165 | * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration | |
7166 | * scng.adb (Accumulate_Token_Checksum_GNAT_6_3, | |
7167 | Accumulate_Token_Checksum_GNAT_5_03): add case for new token | |
7168 | Tok_SPARK_Hide. | |
7169 | (Scan): recognize special comment starting with '#' and followed by | |
7170 | SPARK keyword "hide" as a HIDE directive. | |
7171 | ||
7172 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7173 | ||
7174 | * types.ads, erroutc.ads: Minor reformatting. | |
7175 | ||
7176 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
7177 | ||
7178 | * link.c: Add response file support for cross platforms. | |
7179 | ||
6ff6152d ES |
7180 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
7181 | ||
7182 | * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression | |
7183 | in an association, set parent field of copy before partial analysis. | |
7184 | * sem_res.adb (Resolve_Slice): create reference to itype only when | |
7185 | expansion is enabled. | |
7186 | ||
975c6896 YM |
7187 | 2011-08-02 Yannick Moy <moy@adacore.com> |
7188 | ||
7189 | * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set | |
7190 | for new flag denoting which subprogram bodies are in ALFA | |
7191 | * restrict.adb, sem_ch7.adb: Update comment | |
7192 | * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, | |
7193 | sem_ch9.adb, sem_res.adb: Add calls to | |
7194 | Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs. | |
7195 | * sem_ch6.adb (Analyze_Function_Return): add calls to | |
7196 | Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the | |
7197 | middle of the body, and extended return. | |
7198 | (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument | |
7199 | False when missing return. | |
7200 | (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA | |
7201 | to True for subprograms whose spec is in ALFA. Remove later on the flag | |
7202 | on the entity used for a subprogram body when there exists a separate | |
7203 | declaration. | |
7204 | * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA): | |
7205 | if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to | |
7206 | False, otherwise do nothing. | |
7207 | ||
afc8324d AC |
7208 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
7209 | ||
7210 | * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting. | |
7211 | ||
7212 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7213 | ||
7214 | * sem_ch4.ads: minor formatting. | |
7215 | ||
2ba431e5 YM |
7216 | 2011-08-02 Yannick Moy <moy@adacore.com> |
7217 | ||
7218 | * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, | |
7219 | debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb, | |
7220 | errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb, | |
7221 | restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb, | |
7222 | opt.ads: cleanup of SPARK mode | |
7223 | ||
0f853035 YM |
7224 | 2011-08-02 Yannick Moy <moy@adacore.com> |
7225 | ||
7226 | * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard | |
7227 | types. | |
7228 | * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities | |
7229 | (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA | |
7230 | * sem_ch3.adb | |
7231 | (Analyze_Object_Declaration): set Is_In_ALFA flag for objects | |
7232 | (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes | |
7233 | (Constrain_Integer): set Is_In_ALFA flag for integer subtypes | |
7234 | (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration | |
7235 | types. | |
7236 | (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with | |
7237 | non-static range. | |
7238 | * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for | |
7239 | functions whose return type is not in ALFA. | |
7240 | (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram | |
7241 | specifications. | |
7242 | (Process_Formals): unset Is_In_ALFA flag for subprograms if a | |
7243 | parameter's type is not in ALFA. | |
7244 | * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard | |
7245 | types are in ALFA. | |
7246 | ||
d2b10647 ES |
7247 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
7248 | ||
7249 | * sem_ch6 (Analyze_Expression_Function): treat the function as | |
7250 | Inline_Always, and introduce a subprogram declaration for it when it is | |
7251 | not a completion. | |
7252 | * inline.adb (Add_Inlined_Body): recognize bodies that come from | |
7253 | expression functions, so that the back-end can determine whether they | |
7254 | can in fact be inlined. | |
7255 | * sem_util.adb (Is_Expression_Function): predicate to determine whether | |
7256 | a function body comes from an expression function. | |
7257 | ||
c7b9d548 AC |
7258 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> |
7259 | ||
7260 | * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming | |
7261 | null exclusions to test Can_Never_Be_Null on the anonymous access types | |
7262 | of the formals rather than testing the formals themselves. Exclude this | |
7263 | check in cases where the Old_Formal is marked as a controlling formal, | |
7264 | to avoid issuing spurious errors for bodies completing dispatching | |
7265 | operations (due to the flag not getting set on controlling access | |
7266 | formals in body specs). | |
7267 | (Find_Corresponding_Spec): When checking full and subtype conformance of | |
7268 | subprogram bodies in instances, pass Designated and E in that order, for | |
7269 | consistency with the expected order of the formals (New_Id followed by | |
7270 | Old_Id). | |
7271 | ||
7272 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7273 | ||
7274 | * sem_ch8.adb: Minor reformatting. | |
7275 | ||
1138cf59 AC |
7276 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
7277 | ||
7278 | * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure | |
7279 | Check_Class_Wide_Actual, to implement AI05-0071, on defaulted | |
7280 | primitive operations of class-wide actuals. | |
7281 | ||
7282 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7283 | ||
7284 | * exp_atag.ads, exp_atag.adb | |
7285 | (Build_Common_Dispatching_Select_Statements): Remove argument Loc | |
7286 | since its value is implicitly passed in argument Typ. | |
7287 | * exp_disp.adb (Make_Disp_Conditional_Select_Body, | |
7288 | Make_Disp_Timed_Select_Body): Remove Loc in calls to routine | |
7289 | Build_Common_Dispatching_Select_Statements. | |
7290 | ||
7b9db926 RD |
7291 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
7292 | ||
7293 | * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads, | |
7294 | exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments. | |
7295 | Minor reformatting. | |
7296 | ||
e8374e7a AC |
7297 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
7298 | ||
7299 | * sem_res.adb: Minor reformatting. | |
7300 | * sem_prag.adb: Minor reformatting. | |
7301 | ||
7302 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7303 | ||
7304 | * exp_atag.adb, exp_atags.ads | |
7305 | (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr | |
7306 | by the tagged type Entity. Required to use this routine in the VM | |
7307 | targets since we do not have available the Tag entity in the VM | |
7308 | platforms. | |
7309 | * exp_ch6.adb | |
7310 | (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package | |
7311 | Ada.Tags has not been previously loaded. | |
7312 | * exp_ch7.adb | |
7313 | (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke | |
7314 | Build_VM_TSDs if package Ada.Tags has not been previously loaded. | |
7315 | * sem_aux.adb | |
7316 | (Enclosing_Dynamic_Scope): Add missing support to handle the full | |
7317 | view of enclosing scopes. Required to handle enclosing scopes that | |
7318 | are synchronized types whose full view is a task type. | |
7319 | * exp_disp.adb | |
7320 | (Build_VM_TSDs): Minor code improvement to avoid generating and | |
7321 | analyzing lists with empty nodes. | |
7322 | (Make_Disp_Asynchronous_Select_Body): Add support for VM targets. | |
7323 | (Make_Disp_Conditional_Select_Body): Add support for VM targets. | |
7324 | (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets. | |
7325 | (Make_Disp_Timed_Select_Body): Add support for VM targets. | |
7326 | (Make_Select_Specific_Data_Table): Add support for VM targets. | |
7327 | (Make_VM_TSD): Generate code to initialize the SSD structure of | |
7328 | the TSD. | |
7329 | ||
7330 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7331 | ||
7332 | * lib-writ.adb (Write_ALI): when ALFA mode is set, write local | |
7333 | cross-references section in ALI. | |
7334 | * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub | |
7335 | (enclosing subprogram), Slc (location of Sub) and Sun (unit number of | |
7336 | Sub). | |
7337 | (Enclosing_Subprogram_Or_Package): new function to return the enclosing | |
7338 | subprogram or package entity of a node | |
7339 | (Is_Local_Reference_Type): new function returns True for references | |
7340 | selected in local cross-references. | |
7341 | (Lt): function extracted from Lt in Output_References | |
7342 | (Write_Entity_Name): function extracted from Output_References | |
7343 | (Generate_Definition): generate reference with type 'D' for definition | |
7344 | of objects (object declaration and parameter specification), with | |
7345 | appropriate locations and units, for use in local cross-references. | |
7346 | (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created | |
7347 | references of type 'I' for initialization in object definition. | |
7348 | (Output_References): move part of function Lt and procedure | |
7349 | Write_Entity_Name outside of the body. Ignore references of types 'D' | |
7350 | and 'I' introduced for local cross-references. | |
7351 | (Output_Local_References): new procedure to output the local | |
7352 | cross-references sections. | |
7353 | (Lref_Entity_Status): new array defining whether an entity is a local | |
7354 | * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference | |
7355 | with 'I' type when initialization expression is present. | |
7356 | * get_scos.adb, get_scos.ads: Correct comments and typos | |
7357 | ||
1f6439e3 AC |
7358 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
7359 | ||
7360 | * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in | |
7361 | the JVM target. | |
7362 | * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in | |
7363 | the JVM target. | |
7364 | * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no | |
7365 | TSD support. | |
7366 | ||
7367 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
7368 | ||
7369 | * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line | |
7370 | (No_Space_Img): New function | |
7371 | (Find_Excluded_Sources): When reading from a file, record the file name | |
7372 | and the line number for each excluded source. | |
7373 | (Mark_Excluded_Sources): When reporting an error, if the excluded | |
7374 | sources were read from a file, include file name and line number in | |
7375 | the error message. | |
7376 | ||
7377 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7378 | ||
7379 | * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2). | |
7380 | ||
ab027d28 RD |
7381 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
7382 | ||
7383 | * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting | |
7384 | ||
b3b28b0c JM |
7385 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
7386 | ||
7387 | * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the | |
7388 | generation of TSDs to the DOTNET compiler. | |
7389 | * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the | |
7390 | generation of TSDs to the DOTNET compiler. | |
7391 | ||
9732e886 JM |
7392 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
7393 | ||
7394 | * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data | |
7395 | record of all the tagged types declared inside library level package | |
7396 | declarations, library level package bodies or library level subprograms. | |
7397 | * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD | |
7398 | associated with a given tagged type. | |
7399 | (Build_VM_TSDs): New subprogram. | |
7400 | * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main | |
7401 | compilation units that are subprograms. | |
7402 | * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main | |
7403 | compilation units that are package bodies. | |
7404 | (Expand_N_Package_Declaration): Generate TSDs of the main compilation | |
7405 | units that are a package declaration or a package instantiation. | |
7406 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code | |
7407 | reorganization to improve the error generated by the frontend when the | |
7408 | function Ada.Tags.Secondary_Tag is not available. | |
7409 | * rtsfind.ads (RE_Register_TSD): New runtime entity. | |
7410 | * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup. | |
7411 | ||
e526d0c7 AC |
7412 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
7413 | ||
7414 | * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode. | |
7415 | ||
7416 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7417 | ||
7418 | * s-imenne.ads: Minor reformatting. | |
7419 | ||
7420 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7421 | ||
7422 | * a-stunau.ads: Add pragma Suppress_Initialization for Big_String | |
7423 | * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed | |
7424 | * s-stalib.ads: Add pragma Suppress_Initialization for Big_String | |
7425 | ||
7426 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7427 | ||
7428 | * einfo.ads (Materialize_Entity): Document this is only for renamings | |
7429 | * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate | |
7430 | required debug information in the case where we transform the object | |
7431 | declaration into a renaming declaration. | |
7432 | * exp_ch4.adb (Expand_Concatenate): Generate debug info for result | |
7433 | object | |
7434 | * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of | |
7435 | Materialize_Entity. | |
7436 | ||
5b1e6aca RD |
7437 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
7438 | ||
7439 | * einfo.ads, einfo.adb (Suppress_Initialization): Replaces | |
7440 | Suppress_Init_Procs. | |
7441 | * exp_ch3.adb, exp_disp.adb, freeze.adb: Use | |
7442 | Suppress_Initialization/Initialization_Suppressed. | |
7443 | * gnat_rm.texi: New documentation for pragma Suppress_Initialization | |
7444 | * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function | |
7445 | * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed | |
7446 | * sem_prag.adb: New processing for pragma Suppress_Initialization. | |
7447 | ||
5ad4969d RD |
7448 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
7449 | ||
7450 | * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb: | |
7451 | Minor reformatting. | |
7452 | ||
8c4ee6f5 AC |
7453 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
7454 | ||
7455 | * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can | |
7456 | only have inheritable classwide pre/postconditions. | |
7457 | ||
7458 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7459 | ||
7460 | * a-tags.ads, a-tags.adb (Check_TSD): New subprogram. | |
7461 | * rtsfind.ads (RE_Check_TSD): New runtime entity. | |
7462 | * exp_disp.adb (Make_DT): Generate call to the new runtime routine that | |
7463 | checks if the external tag of a type is the same as the external tag | |
7464 | of some other declaration. | |
7465 | ||
0b3d16c0 AC |
7466 | 2011-08-02 Thomas Quinot <quinot@adacore.com> |
7467 | ||
7468 | * s-taskin.ads: Minor reformatting. | |
7469 | ||
7470 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
7471 | ||
7472 | * g-comlin.adb (Display_Help): swap the order in which it prints the | |
7473 | short help and the general usage. | |
7474 | ||
7475 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7476 | ||
7477 | * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly | |
7478 | the aspect declarations and attach them to the generic copy for | |
7479 | subsequent analysis. | |
7480 | (Analyze_Subprogram_Instantiation): copy explicitly the aspect | |
7481 | declarations of the generic tree to the new subprogram declarations. | |
7482 | * sem_attr.adb (Check_Precondition_Postcondition): recognize | |
7483 | conditions that apply to a subprogram instance. | |
7484 | ||
7485 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7486 | ||
7487 | * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project]. | |
7488 | ||
7489 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7490 | ||
7491 | * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged | |
7492 | private type with a tagged full view is not derived in the immediate | |
7493 | scope of the partial view, (RM 7.3 (7)) use the scope of the base type. | |
7494 | ||
4637729f AC |
7495 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
7496 | ||
7497 | * exp_ch4.adb: Minor reformatting. | |
7498 | ||
7499 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7500 | ||
7501 | * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an | |
7502 | Ada2012 iterator, the loop will be rewritten during expansion into a | |
7503 | while loop with a cursor and an element declaration. Do not analyze the | |
7504 | body in this case, because if the container is for indefinite types the | |
7505 | actual subtype of the elements will only be determined when the cursor | |
7506 | declaration is analyzed. | |
7507 | ||
7508 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
7509 | ||
7510 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore | |
7511 | size/alignment related attributes in CodePeer_Mode. | |
7512 | ||
7513 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
7514 | ||
7515 | * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to | |
7516 | Prepend_Element, since this can result in the operation getting the | |
7517 | wrong slot in the full type's dispatch table if the full type has | |
7518 | inherited operations. The incomplete type's operation will get added | |
7519 | to the proper position in the full type's primitives | |
7520 | list later in Sem_Disp.Check_Operation_From_Incomplete_Type. | |
7521 | (Process_Incomplete_Dependents): Add Is_Primitive test when checking for | |
7522 | dispatching operations, since there are cases where nonprimitive | |
7523 | subprograms can get added to the list of incomplete dependents (such | |
7524 | as subprograms in nested packages). | |
7525 | * sem_ch6.adb (Process_Formals): First, remove test for being in a | |
7526 | private part when determining whether to add a primitive with a | |
7527 | parameter of a tagged incomplete type to the Private_Dependents list. | |
7528 | Such primitives can also occur in the visible part, and should not have | |
7529 | been excluded from being private dependents. | |
7530 | * sem_ch7.adb (Uninstall_Declarations): When checking the rule of | |
7531 | RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents | |
7532 | list of a Taft-amendment incomplete type is a primitive before issuing | |
7533 | an error that the full type must appear in the same unit. There are | |
7534 | cases where nonprimitives can be in the list (such as subprograms in | |
7535 | nested packages). | |
7536 | * sem_disp.adb (Derives_From): Use correct condition for checking that | |
7537 | a formal's type is derived from the type of the corresponding formal in | |
7538 | the parent subprogram (the condition was completely wrong). Add | |
7539 | checking that was missing for controlling result types being derived | |
7540 | from the result type of the parent operation. | |
7541 | ||
4c60de0c YM |
7542 | 2011-08-02 Yannick Moy <moy@adacore.com> |
7543 | ||
7544 | * errout.adb (First_Node): minor renaming | |
7545 | * restrict.adb (Check_Formal_Restriction): put restriction warning on | |
7546 | first node. | |
7547 | ||
f5afb270 AC |
7548 | 2011-08-02 Yannick Moy <moy@adacore.com> |
7549 | ||
7550 | * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator | |
7551 | before accessing operands. | |
7552 | * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to | |
7553 | decide whether an initialization expression respects SPARK rules, as | |
7554 | the plain node is the expanded one. This allows for more valid warnings | |
7555 | to be issued. | |
7556 | * gnat_rm.texi: Minor update. | |
7557 | ||
7558 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
7559 | ||
7560 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert | |
7561 | previous change. | |
7562 | ||
7563 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7564 | ||
7565 | * sem_ch3.adb, sem_ch4.adb: Minor reformatting. | |
7566 | ||
7567 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
7568 | ||
7569 | * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original | |
7570 | loop statements and the element renaming declaration with a block when | |
7571 | the element type is controlled. | |
7572 | ||
7573 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7574 | ||
7575 | * sinfo.ads: Minor formatting. | |
7576 | ||
7577 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7578 | ||
7579 | * sem_aggr.adb (Add_Association): if the association has a box and no | |
7580 | expression, use the Sloc of the aggregate itself for the new | |
7581 | association. | |
7582 | * errout.adb (First_Node): Exclude nodes with no Sloc, and always use | |
7583 | the Original_Node. | |
7584 | ||
db72f10a AC |
7585 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> |
7586 | ||
7587 | * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring. | |
7588 | When a container is provided via a function call, generate a renaming | |
7589 | of the function result. This avoids the creation of a transient scope | |
7590 | and the premature finalization of the container. | |
7591 | * exp_ch7.adb (Is_Container_Cursor): Removed. | |
7592 | (Wrap_Transient_Declaration): Remove the supression of the finalization | |
7593 | of the list controller when the declaration denotes a container cursor, | |
7594 | it is not needed. | |
7595 | ||
7596 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7597 | ||
7598 | * restrict.adb (Check_Formal_Restriction): only issue a warning if the | |
7599 | node is from source, instead of the original node being from source. | |
7600 | * sem_aggr.adb | |
7601 | (Resolve_Array_Aggregate): refine the check for a static expression, to | |
7602 | recognize also static ranges | |
7603 | * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration, | |
7604 | Array_Type_Declaration): postpone the test for the type being a subtype | |
7605 | mark after the type has been resolved, so that component-selection and | |
7606 | expanded-name are discriminated. | |
7607 | (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm | |
7608 | to distinguish the case of an iteration scheme, so that an error is | |
7609 | issed on a non-static range in SPARK except in an iteration scheme. | |
7610 | * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with | |
7611 | In_Iter_Schm = True. | |
7612 | * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for | |
7613 | user-defined operators so that they are allowed in renaming | |
7614 | * sem_ch8.adb | |
7615 | (Find_Selected_Component): refine the check for prefixing of operators | |
7616 | so that they are allowed in renaming. Move the checks for restrictions | |
7617 | on selector name after analysis discriminated between | |
7618 | component-selection and expanded-name. | |
7619 | * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on | |
7620 | concatenation argument of string type if it is static. | |
7621 | * sem_util.adb, sem_util.ads | |
7622 | (Check_Later_Vs_Basic_Declarations): add a new function | |
7623 | Is_Later_Declarative_Item to decice which declarations are allowed as | |
7624 | later items, in the two different modes Ada 83 and SPARK. In the SPARK | |
7625 | mode, add that renamings are considered as later items. | |
7626 | (Enclosing_Package): new function to return the enclosing package | |
7627 | (Enter_Name): correct the rule for homonyms in SPARK | |
7628 | (Is_SPARK_Initialization_Expr): default to returning True on nodes not | |
7629 | from source (result of expansion) to avoid issuing wrong warnings. | |
7630 | ||
7631 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7632 | ||
7633 | * errout.adb: On anything but an expression First_Node returns its | |
7634 | argument. | |
7635 | ||
23685ae6 AC |
7636 | 2011-08-02 Pascal Obry <obry@adacore.com> |
7637 | ||
7638 | * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting. | |
7639 | ||
7640 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
7641 | ||
7642 | * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization. | |
7643 | Set the associated loop as the related expression of internally | |
7644 | generated cursors. | |
7645 | * exp_ch7.adb (Is_Container_Cursor): New routine. | |
7646 | (Wrap_Transient_Declaration): Supress the finalization of the list | |
7647 | controller when the declaration denotes a container cursor. | |
7648 | ||
7649 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7650 | ||
7651 | * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through | |
7652 | command line now. | |
7653 | * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the | |
7654 | expression is a simple expression. This check cannot be performed in | |
7655 | the semantics, so just drop it. | |
7656 | (P_Index_Or_Discriminant_Constraint): move check that the index or | |
7657 | discriminant is a subtype mark to Analyze_Subtype_Declaration in the | |
7658 | semantics. Other cases were previously checked in the semantics. | |
7659 | * par-ch4.adb (P_Name): move checks that a selector name is not | |
7660 | character literal or an operator symbol to Find_Selected_Component in | |
7661 | the semantics | |
7662 | * par-ch5.adb (Parse_Decls_Begin_End): move check that basic | |
7663 | declarations are not placed after later declarations in a separate | |
7664 | procedure in Sem_Util (possibly not the best choice?), to be used both | |
7665 | during parsing, for Ada 83 mode, and during semantic analysis, for | |
7666 | SPARK mode. | |
7667 | * par-endh.adb (Check_End): move check that end label is not missing | |
7668 | to Process_End_Label in the semantics | |
7669 | * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove | |
7670 | the special case for SPARK restriction | |
7671 | * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End | |
7672 | * restrict.adb, restrict.ads (Check_Formal_Restriction): add a | |
7673 | parameter Force to issue the error message even on internal node (used | |
7674 | for generated end label). Call Check_Restriction to check when an error | |
7675 | must be issued. In SPARK mode, issue an error message even if the | |
7676 | restriction is not set. | |
7677 | (Check_Restriction): new procedure with an additional out parameter to | |
7678 | inform the caller that a message has been issued | |
7679 | * sem_aggr.adb: Minor modification of message | |
7680 | * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction | |
7681 | instead of issuing an error message directly | |
7682 | * sem_ch3.adb (Analyze_Declarations): move here the check that basic | |
7683 | declarations are not placed after later declarations, by calling | |
7684 | Check_Later_Vs_Basic_Declarations | |
7685 | (Analyze_Subtype_Declaration): move here the check that an index or | |
7686 | discriminant constraint must be a subtype mark. Change the check that | |
7687 | a subtype of String must start at one so that it works on subtype marks. | |
7688 | * sem_ch4.adb (Analyze_Call): move here the check that a named | |
7689 | association cannot follow a positional one in a call | |
7690 | * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction | |
7691 | instead of issuing an error message directly | |
7692 | * sem_ch8.adb (Find_Selected_Component): move here the check that a | |
7693 | selector name is not a character literal or an operator symbol. Move | |
7694 | here the check that the prefix of an expanded name cannot be a | |
7695 | subprogram or a loop statement. | |
7696 | * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new | |
7697 | procedure called from parsing and semantics to check that basic | |
7698 | declarations are not placed after later declarations | |
7699 | (Process_End_Label): move here the check that end label is not missing | |
7700 | ||
7701 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
7702 | ||
7703 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum | |
7704 | representation clause in codepeer mode, since it confuses CodePeer and | |
7705 | does not bring useful info. | |
7706 | ||
7707 | 2011-08-02 Ed Falis <falis@adacore.com> | |
7708 | ||
7709 | * init.c: initialize fp hw on MILS. | |
7710 | ||
7711 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7712 | ||
7713 | * errout.adb (First_Node): for bodies, return the node itself (small | |
7714 | optimization). For other nodes, do not check source_unit if the node | |
7715 | comes from Standard. | |
7716 | ||
d2d9cc22 AC |
7717 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
7718 | ||
7719 | * exp_ch3.adb: Minor comment additions. | |
7720 | * sem_ch13.adb: Minor reformatting. | |
7721 | ||
7722 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
7723 | ||
7724 | * make.adb, makeutl.adb: Removes some superfluous directory separator. | |
7725 | ||
a01b9df6 AC |
7726 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
7727 | ||
7728 | * sem_attr.adb: Minor reformatting. | |
7729 | ||
7730 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7731 | ||
7732 | * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value | |
7733 | (Has_Default_Component_Value): Removed | |
7734 | * einfo.ads Comment updates | |
7735 | (Has_Default_Aspect): Replaces Has_Default_Value | |
7736 | (Has_Default_Component_Value): Removed | |
7737 | * exp_ch13.adb | |
7738 | (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects | |
7739 | * exp_ch3.adb | |
7740 | (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects | |
7741 | (Get_Simple_Init_Val): Handle Default_Value aspect | |
7742 | (Needs_Simple_Initialization): Handle Default_Value aspect | |
7743 | * exp_ch3.ads: Needs_Simple_Initialization | |
7744 | * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect | |
7745 | * par-prag.adb (Pragma_Default[_Component]Value) Removed | |
7746 | * sem_ch13.adb | |
7747 | (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects | |
7748 | * sem_prag.adb (Pragma_Default[_Component]Value) Removed | |
7749 | * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed | |
7750 | ||
7751 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7752 | ||
7753 | * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate | |
7754 | package containing iteration primitives. | |
7755 | exp_ch5.adb (Expand_Iterator_Loop): ditto. | |
7756 | ||
75c90775 AC |
7757 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
7758 | ||
7759 | * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with | |
7760 | "of", pre-analyze expression in case it is a function call with | |
7761 | finalization actions that must be placed ahead of the loop. | |
7762 | * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present | |
7763 | on an Ada2012 iterator, insert them ahead of the rewritten loop. | |
7764 | ||
7765 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
7766 | ||
7767 | * cstand.adb (Create_Float_Types): Only consider C's long double for | |
7768 | Long_Long_Float, in addition to double. | |
7769 | ||
ded8909b AC |
7770 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
7771 | ||
7772 | * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads, | |
7773 | sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads, | |
7774 | prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb: | |
7775 | Minor reformatting. | |
7776 | ||
7777 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7778 | ||
7779 | * sem_attr.adb: handle properly 'Result when it is a prefix of an | |
7780 | indexed component. | |
7781 | ||
7782 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7783 | ||
7784 | * einfo.ads, einfo.adb | |
7785 | (Original_Access_Type): Move this attribute to Node26 since there was | |
7786 | an undocumented use of Node21 in E_Access_Subprogram_Type entities | |
7787 | which causes conflicts and breaks the generation of the .NET compiler. | |
7788 | (Interface_Name): Add missing documentation on JGNAT only uses of | |
7789 | this attribute. | |
7790 | ||
70c34e1c AC |
7791 | 2011-08-02 Geert Bosch <bosch@adacore.com> |
7792 | ||
7793 | * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist | |
7794 | (Find_Back_End_Float_Type): Likewise | |
7795 | (Create_Back_End_Float_Types): Likewise | |
7796 | (Create_Float_Types): Likewise | |
7797 | (Register_Float_Type): Likewise | |
7798 | * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of | |
7799 | Nlist and split out type selection in new local Find_Base_Type function. | |
7800 | * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of | |
7801 | Nlist | |
7802 | * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist | |
7803 | ||
7804 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7805 | ||
7806 | * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in | |
7807 | alpha order). | |
7808 | * opt.ads: Minor comment change. | |
7809 | * sem_ch12.adb: Minor code reorganization. | |
7810 | ||
b715bc59 AC |
7811 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> |
7812 | ||
7813 | * sem_ch3.adb (Complete_Private_Subtype): Don't append the private | |
7814 | subtype's list of rep items to the list on the full subtype in the case | |
7815 | where the lists are the same. | |
7816 | ||
7817 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
7818 | ||
7819 | * switch-c.adb (Free): New deallocation procedure to avoid implicitly | |
7820 | using the one from System.Strings, which also deallocates all strings. | |
7821 | ||
002bdd68 AC |
7822 | 2011-08-02 Geert Bosch <bosch@adacore.com> |
7823 | ||
7824 | * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New | |
7825 | function. | |
7826 | * gcc-interface/Make-lang.in: Update dependencies. | |
7827 | ||
7828 | 2011-08-02 Olivier Hainque <hainque@adacore.com> | |
7829 | ||
7830 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function | |
7831 | end_locus. | |
7832 | ||
499769ec AC |
7833 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
7834 | ||
7835 | * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals | |
7836 | associated with anonymous access to subprograms. | |
7837 | ||
7838 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
7839 | ||
7840 | * opt.ads | |
7841 | (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions. | |
7842 | (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition. | |
7843 | * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads | |
7844 | (Add_Symbol_Definition): Move to switch-c.adb | |
7845 | (Process_Command_Line_Symbol_Definitions): Adjust references to above. | |
7846 | * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation. | |
7847 | (Add_Symbol_Definition): Move to switch-c.adb. | |
7848 | * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw. | |
7849 | * sem_warn.adb | |
7850 | (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch): | |
7851 | Move to warnsw.adb. | |
7852 | * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size, | |
7853 | Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch): | |
7854 | Move to warnsw.adb. | |
7855 | * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw. | |
7856 | (Add_Symbol_Definition): Moved from Prepcomp. | |
7857 | * switch-c.ads: Update copyright notice. Use String_List instead of | |
7858 | Argument_List, removing dependency on System.OS_Lib. | |
7859 | ||
aa1e353a AC |
7860 | 2011-08-02 Yannick Moy <moy@adacore.com> |
7861 | ||
7862 | * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal | |
7863 | mode on initialization expression which does not respect SPARK | |
7864 | restrictions. | |
7865 | * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines | |
7866 | if the tree referenced by its argument represents an initialization | |
7867 | expression in SPARK, suitable for initializing an object in an object | |
7868 | declaration. | |
7869 | ||
7870 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7871 | ||
7872 | * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the | |
7873 | internally generated access to subprogram with its associated protected | |
7874 | subprogram type. | |
7875 | * einfo.ads, einfo.adb (Original_Access_Type): New attribute. | |
7876 | ||
15b682ca GB |
7877 | 2011-08-02 Geert Bosch <bosch@adacore.com> |
7878 | ||
7879 | * cstand.adb (Register_Float_Type): Print information about type to | |
7880 | register, if the Debug_Flag_Dot_B is set. | |
7881 | * debug.adb (Debug_Flag_Dot_B): Document d.b debug option. | |
7882 | * rtsfind.ads (RE_Max_Base_Digits): New run time entity. | |
7883 | * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations | |
7884 | with a requested precision of more than Max_Digits digits and no more | |
7885 | than Max_Base_Digits digits, if a range specification is present and the | |
7886 | Predefined_Float_Types list has a suitable type to derive from. | |
7887 | * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the | |
7888 | case of type completion with pragma Import | |
7889 | * sem_prag.adb | |
7890 | (Process_Import_Predefined_Type): Processing to complete a type | |
7891 | with pragma Import. Currently supports floating point types only. | |
7892 | (Set_Convention_From_Pragma): Do nothing without underlying type. | |
7893 | (Process_Convention): Guard against absence of underlying type, | |
7894 | which may happen when importing incomplete types. | |
7895 | (Process_Import_Or_Interface): Handle case of importing predefined | |
7896 | types. Tweak error message. | |
7897 | ||
f8726f2b AC |
7898 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> |
7899 | ||
7900 | * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined | |
7901 | functions to previous change. Reorganize code slightly. | |
7902 | ||
7903 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
7904 | ||
7905 | * back_end.ads (Register_Type_Proc): New call back procedure type for | |
7906 | allowing the back end to provide information about available types. | |
7907 | (Register_Back_End_Types): New procedure to register back end types. | |
7908 | * back_end.adb (Register_Back_End_Types): Call the back end to enumerate | |
7909 | available types. | |
7910 | * cstand.adb (Back_End_Float_Types): New list for floating point types | |
7911 | supported by the back end. | |
7912 | (Build_Float_Type): Add extra parameter for Float_Rep_Kind. | |
7913 | (Copy_Float_Type): New procedure to make new copies of predefined types. | |
7914 | (Register_Float_Type): New call back procedure to populate the BEFT list | |
7915 | (Find_Back_End_Float_Type): New procedure to find a BEFT by name | |
7916 | (Create_Back_End_Float_Types): New procedure to populate the BEFT list. | |
7917 | (Create_Float_Types): New procedure to create entities for floating | |
7918 | point types predefined in Standard, and put these and any remaining | |
7919 | BEFTs on the Predefined_Float_Types list. | |
7920 | * stand.ads (Predefined_Float_Types): New list for predefined floating | |
7921 | point types that do not have declarations in package Standard. | |
7922 | ||
feecad68 AC |
7923 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> |
7924 | ||
7925 | * inline.adb (Get_Code_Unit_Entity): New local function. Returns the | |
7926 | entity node for the unit containing the parameter. | |
7927 | (Add_Inlined_Body): Use it to find the unit containing the subprogram. | |
7928 | (Add_Inlined_Subprogram): Likewise. | |
7929 | * gcc-interface/Make-lang.in: Update dependencies. | |
7930 | ||
7931 | 2011-08-02 Thomas Quinot <quinot@adacore.com> | |
7932 | ||
7933 | * s-stusta.adb (Print): Make sure Pos is always initialized to a | |
7934 | suitable value. | |
7935 | ||
12f0c50c AC |
7936 | 2011-08-02 Geert Bosch <bosch@adacore.com> |
7937 | ||
7938 | * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image. | |
7939 | ||
7940 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
7941 | ||
7942 | * sem_type.adb (Covers): Move trivial case to the top and reuse the | |
7943 | computed value of Base_Type. | |
7944 | ||
7945 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7946 | ||
7947 | * restrict.adb (Check_Restriction): issue an error for any use of | |
7948 | class-wide, even if the No_Dispatch restriction is not set. | |
7949 | * sem_aggr.adb: Correct typos in comments and messages in formal mode | |
7950 | * sem_ch3.adb (Process_Full_View): issue an error in formal mode is, | |
7951 | when completing a private extension, the type named in the private part | |
7952 | is not the same as that named in the visible part. | |
7953 | * sem_res.adb (Resolve_Call): issue an error in formal mode on the use | |
7954 | of an inherited primitive operations of a tagged type or type extension | |
7955 | that returns the tagged type. | |
7956 | * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new | |
7957 | function which returns True for an implicit operation inherited by the | |
7958 | derived type declaration for the argument type. | |
7959 | (Is_SPARK_Object_Reference): move to appropriate place in alphabetic | |
7960 | order. | |
7961 | ||
fb86fe11 ES |
7962 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
7963 | ||
7964 | * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from | |
7965 | Process_Bounds, to perform analysis with expansion of a range or an | |
7966 | expression that is the iteration scheme for a loop. | |
7967 | (Analyze_Iterator_Specification): If domain of iteration is given by a | |
7968 | function call with a controlled result, as is the case if call returns | |
7969 | a predefined container, ensure that finalization actions are properly | |
7970 | generated. | |
7971 | * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range. | |
7972 | ||
62be5d0a JM |
7973 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
7974 | ||
7975 | * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo. | |
7976 | * gcc-interface/Make-lang.in: Update dependencies. | |
7977 | ||
7978 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7979 | ||
7980 | * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to | |
7981 | determine if the analysis is performed using N or Original_Node (N). | |
7982 | * exp_util.adb (Side_Effect_Free): Code cleanup since the new | |
7983 | functionality of routine Is_Variable avoids code duplication. | |
7984 | * checks.adb (Determine_Range): Handle temporaries generated by | |
7985 | Remove_Side_Effects. | |
7986 | ||
7987 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7988 | ||
7989 | * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and | |
7990 | expansion of the condition. Required since the previous analysis was | |
7991 | done with expansion disabled (see Resolve_Quantified_Expression) and | |
7992 | hence checks were not inserted and record comparisons have not been | |
7993 | expanded. | |
7994 | ||
a20f4389 AC |
7995 | 2011-08-02 Ed Falis <falis@adacore.com> |
7996 | ||
7997 | * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads: | |
7998 | Update header. | |
7999 | ||
8000 | 2011-08-02 Bob Duff <duff@adacore.com> | |
8001 | ||
8002 | * opt.ads: Minor comment fix. | |
8003 | ||
8004 | 2011-08-02 Bob Duff <duff@adacore.com> | |
8005 | ||
8006 | * sem_ch12.adb (Analyze_Package_Instantiation, | |
8007 | Analyze_Subprogram_Instantiation): Turn off style checking while | |
8008 | analyzing an instance. Whatever style checks that apply to the generic | |
8009 | unit should apply, so it makes no sense to apply them in an instance. | |
8010 | This was causing trouble when compiling an instance of a runtime | |
8011 | unit that violates the -gnatyO switch. | |
8012 | * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from | |
8013 | one of the two case statements, causing spurious errors. | |
8014 | ||
8015 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8016 | ||
8017 | * uname.adb: Minor reformatting. | |
8018 | * gnatcmd.adb: Minor reformatting. | |
8019 | * exp_attr.adb: Minor reformatting. | |
8020 | ||
90878b12 AC |
8021 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
8022 | ||
8023 | * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction | |
8024 | No_Dispatching_Calls, do not look for the Assign primitive, because | |
8025 | predefined primitives are not created in this case. | |
8026 | ||
8027 | 2011-08-02 Bob Duff <duff@adacore.com> | |
8028 | ||
8029 | * stylesw.ads: Minor comment fixes. | |
8030 | ||
8031 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8032 | ||
8033 | * freeze.adb (Add_To_Result): New procedure. | |
8034 | ||
8035 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
8036 | ||
8037 | * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run | |
8038 | time, if the specific run-time routines for handling streams of strings | |
8039 | are not available, use the default mechanism. | |
8040 | ||
8041 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
8042 | ||
8043 | * s-regpat.ads: Fix typo. | |
8044 | ||
8045 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
8046 | ||
8047 | * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is | |
8048 | not null, call it to create the in memory config project file without | |
8049 | parsing an existing default config project file. | |
8050 | ||
8051 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
8052 | ||
8053 | * atree.adb (Allocate_Initialize_Node): Remove useless temporaries. | |
8054 | ||
8055 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8056 | ||
8057 | * sem_elim.adb: an abstract subprogram does not need an eliminate | |
8058 | pragma for its descendant to be eliminable. | |
8059 | ||
8060 | 2011-08-02 Ed Falis <falis@adacore.com> | |
8061 | ||
8062 | * init.c: revert to handling before previous checkin for VxWorks | |
8063 | * s-intman-vxworks.adb: delete unnecessary declarations related to | |
8064 | using Ada interrupt facilities for handling signals. | |
8065 | Delete Initialize_Interrupts. Use __gnat_install_handler instead. | |
8066 | * s-intman-vxworks.ads: Import __gnat_install_handler as | |
8067 | Initialize_Interrupts. | |
8068 | * s-taprop-vxworks.adb: Delete Signal_Mask. | |
8069 | (Abort_Handler): change construction of mask to unblock exception | |
8070 | signals. | |
8071 | ||
273adcdf AC |
8072 | 2011-08-02 Jerome Guitton <guitton@adacore.com> |
8073 | ||
8074 | * a-except-2005.adb (Raise_From_Signal_Handler): Call | |
8075 | Debug_Raise_Exception before propagation starts. | |
8076 | ||
8077 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
8078 | ||
8079 | * exp_ch6.adb (Expand_Call): Guard restriction checks with a call | |
8080 | to Restriction_Check_Required. | |
8081 | * sem_ch3.adb (Analyze_Object_Declaration): Likewise. | |
8082 | * sem_res.adb (Resolve_Call): Likewise. | |
8083 | * sem_attr.adb (Check_Stream_Attribute): Likewise. | |
8084 | ||
8085 | 2011-08-02 Bob Duff <duff@adacore.com> | |
8086 | ||
8087 | * stylesw.ads: Update comment. | |
8088 | * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N. | |
8089 | * errout.ads: Remove obsolete comment. | |
8090 | ||
8091 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
8092 | ||
8093 | * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function. | |
8094 | (Set_Is_Safe_To_Reevaluate): new procedure. | |
8095 | * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no | |
8096 | assignment is allowed on safe-to-reevaluate variables. | |
8097 | (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the | |
8098 | temporary created to remove side effects in expressions that use | |
8099 | the secondary stack as safe-to-reevaluate. | |
8100 | * exp_util.adb (Side_Effect_Free): Add missing code to handle well | |
8101 | variables that are not true constants. | |
8102 | ||
6320f5e1 AC |
8103 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
8104 | ||
8105 | * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads, | |
8106 | sem_res.adb, sem_ch6.adb: Minor reformatting. | |
8107 | ||
8108 | 2011-08-02 Jerome Guitton <guitton@adacore.com> | |
8109 | ||
8110 | * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code. | |
8111 | ||
2fe829ae ES |
8112 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
8113 | ||
8114 | * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do | |
8115 | not set Overridden_Operation if subprogram is an initialization | |
8116 | procedure. | |
8117 | ||
e24329cd YM |
8118 | 2011-08-02 Yannick Moy <moy@adacore.com> |
8119 | ||
8120 | * par-ch6.adb: Correct obsolete name in comments | |
8121 | * restrict.adb, restrict.ads (Check_Formal_Restriction): new function | |
8122 | which takes two message arguments (existing function takes one), with | |
8123 | second message used for continuation. | |
8124 | * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject | |
8125 | block statements that originate from a source block statement, not | |
8126 | generated block statements | |
8127 | * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for | |
8128 | symmetry with procedure case | |
8129 | * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new | |
8130 | function to issue an error in formal mode if a package specification | |
8131 | contains more than one tagged type or type extension. | |
8132 | * sem_res.adb (Resolve_Actuals): in formal mode, check that actual | |
8133 | parameters matching formals of tagged types are objects (or ancestor | |
8134 | type conversions of objects), not general expressions. Issue an error | |
8135 | on view conversions that are not involving ancestor conversion of an | |
8136 | extended type. | |
8137 | (Resolve_Type_Conversion): in formal mode, issue an error on the | |
8138 | operand of an ancestor type conversion which is not an object | |
8139 | * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the | |
8140 | procedure so that it works also for actuals of function calls | |
8141 | (Is_Actual_Tagged_Parameter): new function which determines if its | |
8142 | argument is an actual parameter of a formal of tagged type in a | |
8143 | subprogram call | |
8144 | (Is_SPARK_Object_Reference): new function which determines if the tree | |
8145 | referenced by its argument represents an object in SPARK | |
8146 | ||
176dadf6 AC |
8147 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
8148 | ||
8149 | * sem_ch3.adb: Minor reformatting | |
8150 | Minor comment addition | |
8151 | Minor error msg text change | |
8152 | ||
8153 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
8154 | ||
8155 | * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New | |
8156 | function. Used to be more precise when we generate a variable plus one | |
8157 | assignment to remove side effects in the evaluation of the Bound | |
8158 | expressions. | |
8159 | (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes | |
8160 | of the bound expression to force its re-analysis and thus expand the | |
8161 | associated transient scope (if required). Code cleanup replacing the | |
8162 | previous code that declared the constant entity by an invocation to | |
8163 | routine Force_Evaluation which centralizes this work in the frontend. | |
8164 | ||
d8b962d8 AC |
8165 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
8166 | ||
8167 | * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table | |
8168 | (Base_Type): Now uses improved Is_Base_Type function | |
8169 | * einfo.ads (Base_Type): Inline this function | |
8170 | ||
8171 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8172 | ||
8173 | * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion | |
8174 | (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas | |
8175 | ||
8176 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
8177 | ||
8178 | * gcc-interface/Make-lang.in: Update dependencies. | |
8179 | * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks | |
8180 | targets. | |
8181 | ||
8182 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8183 | ||
8184 | * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on | |
8185 | non-simple expression used in delta constraint | |
8186 | (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on | |
8187 | index constraint which is not a subtype mark | |
8188 | * par.adb: With and use Restrict | |
8189 | * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal | |
8190 | mode on component type which is not a subtype mark and default | |
8191 | expression on component | |
8192 | (Analyze_Subtype_Declaration): issue an error in formal mode on subtype | |
8193 | of string which does not have a lower index bound equal to 1 | |
8194 | (Array_Type_Declaration): issue an error in formal mode on index or | |
8195 | component type which is not a subtype mark, and on aliased keyword on | |
8196 | component | |
8197 | (Derived_Type_Declaration): issue an error in formal mode on interface, | |
8198 | limited or abstract type | |
8199 | (Record_Type_Declaration): issue an error in formal mode on interface | |
8200 | (Record_Type_Definition): issue an error in formal mode on tagged types | |
8201 | and type extensions not declared in the specification of a library unit | |
8202 | package; on null non-tagged record; on variant part | |
8203 | ||
8204 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
8205 | ||
8206 | * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir | |
8207 | not declared for qualified library project when Library_Name is not | |
8208 | declared, but Library_Dir is. | |
8209 | ||
8210 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8211 | ||
8212 | * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated | |
8213 | pragmas (affects aspects [Component_]Default_Value | |
8214 | (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use | |
8215 | component type for the resolution | |
8216 | ||
f96b2d85 AC |
8217 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> |
8218 | ||
8219 | * einfo.adb (Base_Type): Tune implementation for speed. | |
8220 | ||
8221 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8222 | ||
8223 | * freeze.adb: Minor reformatting. | |
8224 | ||
8b3c6430 AC |
8225 | 2011-08-02 Thomas Quinot <quinot@adacore.com> |
8226 | ||
8227 | * scos.ads: Update comments. | |
8228 | ||
8229 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8230 | ||
8231 | * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the | |
8232 | base type, because the parent may be a subtype of a private type whose | |
8233 | convention is established in a private part. | |
8234 | ||
8235 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
8236 | ||
8237 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return | |
8238 | statement in a block when the expansion of the return expression has | |
8239 | created a finalization chain. | |
8240 | * freeze.adb (Freeze_Expression): Alphabetize all choices associated | |
8241 | with the parent node. | |
8242 | Add N_Extended_Return_Statement to handle the case where a transient | |
8243 | object declaration appears in the Return_Object_Declarations list of | |
8244 | an extended return statement. | |
8245 | ||
8246 | 2011-08-02 Matthew Gingell <gingell@adacore.com> | |
8247 | ||
8248 | * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly | |
8249 | unused parameter 'name'. | |
8250 | ||
8251 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8252 | ||
8253 | * sem_elim.adb (Set_Eliminated): If the overridden operation is an | |
8254 | inherited operation, check whether its alias, which is the source | |
8255 | operastion that it renames, has been marked eliminated. | |
8256 | ||
cae81f17 JM |
8257 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
8258 | ||
8259 | * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an | |
8260 | in-mode parameter whose type is an access type since it can be used to | |
8261 | modify its designated object. Enforce code that handles as safe an | |
8262 | access type that is not access-to-constant but it is the result of a | |
8263 | previous removal of side-effects. | |
8264 | (Remove_Side_Effects): Minor code reorganization of cases which require | |
8265 | no action. Done to incorporate documentation on new cases uncovered | |
8266 | working in this ticket: no action needed if this routine was invoked | |
8267 | too early and the nodes are not yet decorated. | |
8268 | * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls | |
8269 | to routine Remove_Side_Effects by calls to Force_Evaluation since they | |
8270 | were issued with actuals that are implicitly provided by | |
8271 | Force_Evaluation. | |
8272 | ||
218e6dee RD |
8273 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
8274 | ||
8275 | * sem_ch3.adb, sem_res.adb: Minor reformatting. | |
8276 | ||
7a489a2b AC |
8277 | 2011-08-02 Yannick Moy <moy@adacore.com> |
8278 | ||
8279 | * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure | |
8280 | to issue an error in formal mode on attribute not supported in this mode | |
8281 | (Analyze_Attribute): issue errors on standard attributes not supported | |
8282 | in formal mode. | |
8283 | * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of | |
8284 | comment, and issue error in formal mode on modulus which is not a power | |
8285 | of 2. | |
8286 | (Process_Range_Expr_In_Decl): issue error in formal mode on non-static | |
8287 | range. | |
8288 | * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in | |
8289 | subtype mark. | |
8290 | * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary | |
8291 | operator on modular type (except 'not'). | |
8292 | ||
8293 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8294 | ||
8295 | * gnat_rm.texi: Minor reformatting. | |
8296 | ||
cb7fa356 AC |
8297 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> |
8298 | ||
8299 | * s-osinte-linux.ads: Minor comment update and reformatting. | |
8300 | * i-cexten.ads: Make this unit pure, as for its parent. | |
8301 | Will allow its usage in more contexts if needed. | |
8302 | ||
8303 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8304 | ||
8305 | * s-utf_32.ads: Minor comment fix. | |
8306 | ||
8307 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8308 | ||
8309 | * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive | |
8310 | operation of a tagged synchronized type, handle the case where the | |
8311 | controlling argument is overloaded. | |
8312 | ||
8313 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8314 | ||
8315 | * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl: | |
8316 | Replace pragma SPARK_95 with pragma Restrictions (SPARK) | |
8317 | * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set | |
8318 | SPARK mode and formal verification mode on processing SPARK restriction | |
8319 | * s-rident.ads (Restriction_Id): add SPARK restriction in those not | |
8320 | requiring consistency checking. | |
8321 | ||
5cc9353d RD |
8322 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
8323 | ||
8324 | * sem_res.adb: Minor reformatting. | |
8325 | ||
e51537ff RD |
8326 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
8327 | ||
8328 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
8329 | a-cforse.ads: Remove unneeded with of Ada.Containers | |
8330 | Remove commented out pragma Inline's | |
8331 | Move specifications of new subprograms to the actual specs | |
8332 | ||
83fa09c5 AC |
8333 | 2011-08-02 Yannick Moy <moy@adacore.com> |
8334 | ||
8335 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
8336 | a-cforse.ads: Update comments. | |
8337 | ||
8338 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8339 | ||
8340 | * sem_attr.adb: add attribute name when 'Result has the wrong prefix. | |
8341 | ||
d11cfaf8 RD |
8342 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
8343 | ||
8344 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
8345 | a-cforse.ads, a-cofove.ads: Minor reformatting. | |
8346 | ||
300b98bb AC |
8347 | 2011-08-02 Claire Dross <dross@adacore.com> |
8348 | ||
8349 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads, | |
8350 | a-cofove.ads: Add comments. | |
8351 | ||
8352 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8353 | ||
8354 | * gnat_rm.texi: Document formal containers. | |
8355 | ||
8356 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
8357 | ||
8358 | * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there | |
8359 | are empty sections. | |
8360 | ||
19fb051c AC |
8361 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
8362 | ||
8363 | * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor | |
8364 | reformatting. | |
8365 | ||
8366 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8367 | ||
8368 | * aspects.adb: New aspects Default_Value and Default_Component_Value | |
8369 | New format of Aspect_Names table checks for omitted entries | |
8370 | * aspects.ads: Remove mention of Aspect_Cancel and add documentation on | |
8371 | handling of boolean aspects for derived types. | |
8372 | New aspects Default_Value and Default_Component_Value | |
8373 | New format of Aspect_Names table checks for omitted entries | |
8374 | * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag | |
8375 | (Has_Default_Value): New flag | |
8376 | (Has_Default_Component_Value): New flag | |
8377 | (Has_Default_Value): New flag | |
8378 | * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names | |
8379 | table. | |
8380 | * par-prag.adb: New pragmas Default_Value and Default_Component_Value | |
8381 | * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects | |
8382 | Default_Value and Default_Component_Value | |
8383 | * sem_prag.adb: New pragmas Default_Value and Default_Component_Value | |
8384 | New aspects Default_Value and Default_Component_Value | |
8385 | * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value | |
8386 | * sprint.adb: Print N_Aspect_Specification node when called from gdb | |
8387 | ||
8388 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
8389 | ||
8390 | * prj-nmsc.adb (Check_Library_Attributes): For virtual library project, | |
8391 | inherit library kind. | |
8392 | ||
8393 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8394 | ||
8395 | * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds. | |
8396 | Minor reformatting. | |
8397 | ||
8398 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8399 | ||
8400 | * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM | |
8401 | ||
5f7747af AC |
8402 | 2011-08-02 Yannick Moy <moy@adacore.com> |
8403 | ||
8404 | * sem_aggr.adb (Resolve_Aggregate): Fix thinko. | |
8405 | ||
8406 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8407 | ||
8408 | * impunit.adb: Add comment. | |
8409 | ||
a5fe697b AC |
8410 | 2011-08-02 Yannick Moy <moy@adacore.com> |
8411 | ||
8412 | * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks | |
8413 | qualification of aggregates in formal mode | |
8414 | (Is_Top_Level_Aggregate): returns True for an aggregate not contained in | |
8415 | another aggregate | |
8416 | (Resolve_Aggregate): complete the test that an aggregate is adequately | |
8417 | qualified in formal mode | |
8418 | ||
8419 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
8420 | ||
8421 | * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting. | |
8422 | * mlib-prj.adb: Supress warning when compiling binder generated file. | |
8423 | (Build_Library): Supress all warnings when compiling the binder | |
8424 | generated file. | |
8425 | ||
bd65a2d7 | 8426 | 2011-08-02 Yannick Moy <moy@adacore.com> |
d4487611 | 8427 | |
bd65a2d7 AC |
8428 | * errout.adb, errout.ads (Check_Formal_Restriction): move procedure |
8429 | from here... | |
8430 | * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here | |
8431 | * sem_aggr.adb, sem_ch5.adb, sem_util.adb: | |
8432 | Add with/use clauses to make Check_Formal_Restriction visible | |
8433 | ||
8434 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8435 | ||
8436 | * sem_ch12.adb (Check_Generic_Actuals): handle properly actual | |
8437 | in-parameters when type of the generic formal is private in the generic | |
8438 | spec and non-private in the body. | |
8439 | ||
8440 | 2011-08-02 Claire Dross <dross@adacore.com> | |
8441 | ||
8442 | * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb, | |
8443 | a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads, | |
8444 | a-cofove.adb, a-cofove.ads: New files implementing formal containers. | |
8445 | * impunit.adb, Makefile.rtl: Take new files into account. | |
d4487611 AC |
8446 | |
8447 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8448 | ||
8449 | * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb, | |
8450 | sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting. | |
8451 | ||
bd434b3f YM |
8452 | 2011-08-02 Yannick Moy <moy@adacore.com> |
8453 | ||
8454 | * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in | |
8455 | formal mode | |
8456 | * sem_util.adb (Matching_Static_Array_Bounds): proper detection of | |
8457 | matching static array bounds, taking into account the special case of | |
8458 | string literals | |
8459 | * sem_ch3.adb: Typo in comment. | |
8460 | ||
fe5d3068 YM |
8461 | 2011-08-02 Yannick Moy <moy@adacore.com> |
8462 | ||
8463 | * errout.adb, errout.ads (Check_Formal_Restriction): new procedure | |
8464 | which issues an error in formal mode if its argument node is originally | |
8465 | from source | |
8466 | * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type | |
8467 | has a discriminant specification so that it does not include the case | |
8468 | of derived types | |
8469 | (Derived_Type_Declaration): move here the test that a derived type has a | |
8470 | discriminant specification | |
8471 | * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the | |
8472 | first element of a component association before accessing its choices | |
8473 | (presence of component association is not enough) | |
8474 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram | |
8475 | declaration is a library item before accessing the next element in a | |
8476 | list, as library items are not member of lists | |
8477 | * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, | |
8478 | sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use | |
8479 | Check_Formal_Restriction whenever possible. | |
8480 | ||
b60a3f26 AC |
8481 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
8482 | ||
8483 | * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype | |
8484 | reference when needed. | |
8485 | ||
8486 | 2011-08-02 Bob Duff <duff@adacore.com> | |
8487 | ||
8488 | * gnat_ugn.texi: Fix typo. | |
8489 | ||
8490 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
8491 | ||
8492 | * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of | |
8493 | archive file name. Do not use the full path name of archives for Open | |
8494 | VMS. | |
8495 | ||
eaba57fb RD |
8496 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
8497 | ||
8498 | * sem_ch12.adb, sem_ch11.adb: New calling sequence for | |
8499 | Analyze_Aspect_Specifications | |
8500 | * sem_ch13.adb | |
8501 | (Analyze_Aspect_Specifications): New handling for boolean aspects | |
8502 | * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence | |
8503 | * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling | |
8504 | sequence for Analyze_Aspect_Specifications | |
8505 | * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely | |
8506 | * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used | |
8507 | ||
8508 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8509 | ||
8510 | * freeze.adb (Freeze_Entity): Remove handling of delayed boolean | |
8511 | aspects, since these no longer exist. | |
8512 | ||
8513 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8514 | ||
8515 | * par-ch13.adb (Aspect_Specifications_Present): Always return false on | |
8516 | semicolon, do not try to see if there are aspects following it. | |
8517 | * par-ch3.adb (P_Declarative_Items): Better message for unexpected | |
8518 | aspect spec. | |
8519 | ||
8830d1d2 AC |
8520 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
8521 | ||
8522 | * sem_ch8.adb, aspects.ads: Minor reformatting. | |
8523 | ||
8524 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
8525 | ||
8526 | * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline. | |
8527 | * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure | |
8528 | extracted from... | |
8529 | (Analyze_Aspect_Specifications): ...here. Call above procedure. | |
8530 | ||
7ff2d234 AC |
8531 | 2011-08-02 Yannick Moy <moy@adacore.com> |
8532 | ||
8533 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal | |
8534 | mode on subprogram declaration outside of package specification, unless | |
8535 | it is followed by a pragma Import | |
8536 | * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration, | |
8537 | Access_Type_Declaration): issue error in formal mode on access type | |
8538 | (Analyze_Incomplete_Type_Decl): issue error in formal mode on | |
8539 | incomplete type | |
8540 | (Analyze_Object_Declaration): issue error in formal mode on object | |
8541 | declaration which does not respect SPARK restrictions | |
8542 | (Analyze_Subtype_Declaration): issue error in formal mode on subtype | |
8543 | declaration which does not respect SPARK restrictions | |
8544 | (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue | |
8545 | error in formal mode on digits or delta constraint | |
8546 | (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on | |
8547 | decimal fixed point type | |
8548 | (Derived_Type_Declaration): issue error in formal mode on derived type | |
8549 | other than type extensions of tagged record types | |
8550 | * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant | |
8551 | with check on access definition | |
8552 | * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal | |
8553 | mode on protected definition. | |
8554 | (Analyze_Task_Definition): issue error in formal mode on task definition | |
8555 | ||
8556 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8557 | ||
8558 | * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting. | |
8559 | ||
806f6d37 AC |
8560 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
8561 | ||
8562 | * sem_ch6.adb (Can_Override_Operator): New function. | |
8563 | (Verify_Overriding_Indicator): Add missing code to check overriding | |
8564 | indicator in operators. Fixes regression. | |
8565 | (Check_Overriding_Indicator): Minor reformating after replacing the | |
8566 | code that evaluates if the subprogram can override an operator by | |
8567 | invocations to the above new function. | |
8568 | * einfo.adb | |
8569 | (Write_Field26_Name): Add missing code to ensure that, following | |
8570 | the documentation in einfo.ads, this field is not shown as attribute | |
8571 | "Static_Initialization" on non-dispatching functions. | |
8572 | ||
8573 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
8574 | ||
8575 | * sem_res.adb (Resolve_Call): A call to | |
8576 | Ada.Real_Time.Timing_Events.Set_Handler violates restriction | |
8577 | No_Relative_Delay (AI-0211) only when it sets a relative timing event, | |
8578 | i.e., when the second parameter is of type Time_Span. | |
8579 | ||
8580 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
8581 | ||
8582 | * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link | |
8583 | with an archive instead of -L<library dir> -l<library name>. | |
8584 | ||
8585 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8586 | ||
8587 | * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed, | |
8588 | mark the base types In_Use in addition to making the operations | |
8589 | use_visible. | |
8590 | ||
8591 | 2011-08-02 Ed Falis <falis@adacore.com> | |
8592 | ||
8593 | * init.c: add and setup __gnat_signal_mask for the exception signals | |
8594 | * s-inmaop-vxworks.adb: new file. | |
8595 | * s-intman-vxworks.adb: remove unnecessary initializations and | |
8596 | simplify remaining | |
8597 | * s-intman-vxworks.ads: remove unnecessary variable | |
8598 | * s-taprop-vxworks.adb: simplify signal initialization | |
8599 | ||
780d052e RD |
8600 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
8601 | ||
8602 | * sem_ch8.adb: Minor code reorganization, comment updates. | |
8603 | ||
8604 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8605 | ||
8606 | * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util | |
8607 | * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved | |
8608 | here from Sem_Res. | |
8609 | (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression | |
8610 | (Matching_Static_Array_Bounds): Moved here from Sem_Res | |
8611 | ||
29efbb8c ES |
8612 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
8613 | ||
8614 | * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5. | |
8615 | * par_ch8.adb (P_Use_Type): initialize Used_Operations for node. | |
8616 | * sinfo.ads, sinfo.adb (Used_Operations): new attribute of | |
8617 | use_type_clauses, to handle more efficiently use_type and use_all_type | |
8618 | constructs. | |
8619 | * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the | |
8620 | Ada2012 Use_All_Type clause. | |
8621 | (Use_Class_Wide_Operations): new procedure. | |
8622 | ||
b0186f71 AC |
8623 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
8624 | ||
8625 | * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb, | |
8626 | sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized | |
8627 | expression to expression function. | |
8628 | ||
8629 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8630 | ||
8631 | * sem_ch4.adb: transform simple Ada2012 membership into equality only | |
8632 | if types are compatible. | |
8633 | ||
8634 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8635 | ||
8636 | * sem_res.adb (Matching_Static_Array_Bounds): new function which | |
8637 | returns True if its argument array types have same dimension and same | |
8638 | static bounds at each index. | |
8639 | (Resolve_Actuals): issue an error in formal mode on actuals passed as | |
8640 | OUT or IN OUT paramaters which are not view conversions in SPARK. | |
8641 | (Resolve_Arithmetic_Op): issue an error in formal mode on | |
8642 | multiplication or division with operands of fixed point types which are | |
8643 | not qualified or explicitly converted. | |
8644 | (Resolve_Comparison_Op): issue an error in formal mode on comparisons of | |
8645 | Boolean or array type (except String) operands. | |
8646 | (Resolve_Equality_Op): issue an error in formal mode on equality | |
8647 | operators for array types other than String with non-matching static | |
8648 | bounds. | |
8649 | (Resolve_Logical_Op): issue an error in formal mode on logical operators | |
8650 | for array types with non-matching static bounds. Factorize the code in | |
8651 | Matching_Static_Array_Bounds. | |
8652 | (Resolve_Qualified_Expression): issue an error in formal mode on | |
8653 | qualified expressions for array types with non-matching static bounds. | |
8654 | (Resolve_Type_Conversion): issue an error in formal mode on type | |
8655 | conversion for array types with non-matching static bounds | |
8656 | ||
767bb4e8 AC |
8657 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
8658 | ||
8659 | * par-ch10.adb: Minor code reorganization (use Nkind_In). | |
8660 | ||
8661 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
8662 | ||
8663 | * par-ch9.adb: save location of entry for proper error message. | |
8664 | ||
4ac2477e JM |
8665 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
8666 | ||
8667 | * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal | |
8668 | (Use_Full_View) which permits this routine to climb through the | |
8669 | ancestors using the full-view of private parents. | |
8670 | * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set | |
8671 | Use_Full_View to true in calls to Is_Ancestor. | |
8672 | * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to | |
8673 | true in call to Is_Ancestor. | |
8674 | * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set | |
8675 | Use_Full_View to true in call to Is_Ancestor. | |
8676 | * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in | |
8677 | call to Is_Ancestor. | |
8678 | * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set | |
8679 | Use_Full_View to true in calls to Is_Ancestor. | |
8680 | * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT, | |
8681 | Make_Select_Specific_Data_Table, Register_Primitive, | |
8682 | Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor. | |
8683 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View | |
8684 | to true in call to Is_Ancestor. | |
8685 | * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set | |
8686 | Use_Full_View to true in calls to Is_Ancestor. | |
8687 | * exp_cg.adb | |
8688 | (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor. | |
8689 | (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor. | |
8690 | ||
9f90d123 AC |
8691 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
8692 | ||
8693 | * gnat_rm.texi: Minor reformatting. | |
8694 | * sem_prag.adb: Minor reformatting. | |
8695 | ||
8696 | 2011-08-02 Tristan Gingold <gingold@adacore.com> | |
8697 | ||
8698 | * vms_data.ads: Add VMS qualifier for -gnateP. | |
8699 | ||
8700 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
8701 | ||
8702 | * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty | |
8703 | * par-ch7.adb (P_Package): Proper placement of aspects for package | |
8704 | decl/instantiation. | |
8705 | * par-endh.adb (Check_End): Ad Is_Sloc parameter | |
8706 | (End_Statements): Add Is_Sloc parameterr | |
8707 | * par.adb (P_Aspect_Specification): New meaning of Decl = Empty | |
8708 | (Check_End): Ad Is_Sloc parameter | |
8709 | (End_Statements): Add Is_Sloc parameterr | |
8710 | ||
8711 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
8712 | ||
8713 | * ug_words: Add VMS qualifier equivalent to -gnateP: | |
8714 | /SYMBOL_PREPROCESSING. | |
8715 | ||
8716 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
8717 | ||
8718 | * gnat-style.texi: For hexadecimal numeric literals the typical | |
8719 | grouping of digits is 4 to represent 2 bytes. | |
8720 | A procedure spec which is split into several lines is indented two | |
8721 | characters. | |
8722 | ||
8723 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
8724 | ||
8725 | * exp_aggr.adb (Is_Others_Aggregate): move function to other unit. | |
8726 | * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here | |
8727 | (Resolve_Aggregate): issue errors in formal modes when aggregate is not | |
8728 | properly qualified | |
8729 | (Resolve_Array_Aggregate): issue errors in formal modes on non-static | |
8730 | choice in array aggregate | |
8731 | (Resolve_Extension_Aggregate): issue errors in formal modes on subtype | |
8732 | mark as ancestor | |
8733 | (Resolve_Record_Aggregate): issue errors in formal modes on mixed | |
8734 | positional and named aggregate for record, or others in record | |
8735 | aggregate, or multiple choice in record aggregate | |
8736 | * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when | |
8737 | array operands to logical operations AND, OR and XOR do not have the | |
8738 | same static lower and higher bounds | |
8739 | * sem_ch5.adb, sinfo.ads: Correct typos in comments | |
8740 | ||
2933b16c RD |
8741 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
8742 | ||
8743 | * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement): | |
8744 | Replaces Last_Source_Node_In_Sequence. | |
8745 | * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K | |
8746 | * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores | |
8747 | parens and blank in string (this was inconsistently implemented). | |
8748 | * errout.ads | |
8749 | (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and | |
8750 | blank in string (this was inconsistently implemented). | |
8751 | * gnat1drv.adb | |
8752 | (Set_Global_Switches): Set formal mode switches appropriately | |
8753 | * opt.ads, opt.adb: Formal mode is now global switches, more consistent | |
8754 | * par-prag.adb | |
8755 | (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and | |
8756 | call Set_Error_Msg_Lang to set "spark" as language name. | |
8757 | * par.adb: Remove unnecessary call to set formal language for errout | |
8758 | * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches | |
8759 | appropriately and call Set_Error_Msg_Lang to set "spark" as language | |
8760 | name. | |
8761 | * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and | |
8762 | calls to it, moved after resolution so that types are known | |
8763 | * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if | |
8764 | result of concatenation is not of type String | |
8765 | (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of | |
8766 | concatenation is not properly restricted | |
8767 | * gnat_rm.texi: Add doc on pragma Spark_95. | |
8768 | * gcc-interface/Makefile.in: Remove obsolete target pairs for | |
8769 | Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads. | |
8770 | * gcc-interface/Make-lang.in: Update dependencies. | |
8771 | ||
05dbd302 AC |
8772 | 2011-08-01 Javier Miranda <miranda@adacore.com> |
8773 | ||
8774 | * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of | |
8775 | condition that detects if the overridden operation must replace an | |
8776 | existing entity. | |
8777 | ||
8778 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
8779 | ||
8780 | * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded | |
8781 | code declarations inserted by Insert_Actions in each alternative of the | |
8782 | N_Case_Expression node. | |
8783 | ||
8784 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8785 | ||
8786 | * sem_ch6.adb: Minor code reorganization. | |
8787 | * sem_util.adb: Minor reformatting. | |
8788 | ||
af9e051f PO |
8789 | 2011-08-01 Pascal Obry <obry@adacore.com> |
8790 | ||
8791 | * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path. | |
8792 | * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource. | |
8793 | ||
1d801f21 AC |
8794 | 2011-08-01 Yannick Moy <moy@adacore.com> |
8795 | ||
8796 | * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character | |
8797 | literal or operator symbol which is prefixed | |
8798 | * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal | |
8799 | mode on access attributes. | |
8800 | * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check | |
8801 | that concatenation operands are properly restricted in formal mode | |
8802 | (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure | |
8803 | Analyze_Concatenation_Operand. Issue an error in formal mode if the | |
8804 | result of the concatenation has a type different from String. | |
8805 | (Analyze_Conditional_Expression, Analyze_Explicit_Dereference, | |
8806 | Analyze_Quantified_Expression, Analyze_Slice, | |
8807 | Analyze_Null): issue an error in formal mode on unsupported constructs | |
8808 | * sem_ch5.adb | |
8809 | (Analyze_Block_Statement): only issue error on source block statement | |
8810 | * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new | |
8811 | function which returns the last node in a list of nodes for which | |
8812 | Comes_From_Source returns True, if any | |
8813 | * sem_ch6.adb (Check_Missing_Return): minor refactoring to use | |
8814 | Last_Source_Node_In_Sequence | |
8815 | * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming, | |
8816 | Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal | |
8817 | mode on unsupported constructs | |
8818 | * sem_ch9.adb Do not return after issuing error in formal mode, as the | |
8819 | rest of the actions may be needed later on since the error is marked as | |
8820 | not serious. | |
8821 | * sinfo.ads: Typos in comments. | |
8822 | ||
8823 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
8824 | ||
8825 | * projects.texi: Minor editing. | |
8826 | ||
53beff22 YM |
8827 | 2011-08-01 Yannick Moy <moy@adacore.com> |
8828 | ||
8829 | * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for | |
8830 | insertion character ~~ | |
8831 | * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures | |
8832 | (Set_Error_Msg_Lang): new procedure which fixes the language for use | |
8833 | with insertion character ~~ | |
8834 | (Set_Msg_Text): treat insertion character ~~ | |
8835 | * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb, | |
8836 | sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to | |
8837 | Formal_Error_Msg_... procedures by equivalent Error_Msg_... | |
8838 | procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make | |
8839 | errors related to the formal language restriction not serious | |
8840 | (insertion character |). | |
8841 | * par.adb (Par): set formal language for error messages if needed | |
8842 | * sem_ch6.adb (Check_Missing_Return): take into account possible | |
8843 | generated statements at the end of the function | |
8844 | * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and | |
8845 | enumeration value to define a new pragma SPARK_95 | |
8846 | * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default, | |
8847 | SPARK_Version): new type and variables to store the SPARK version | |
8848 | (none by default). | |
8849 | (SPARK_Mode): return True when SPARK_Version is set | |
8850 | * par-prag.adb: Correct indentation | |
8851 | (Prag): take Pragma_SPARK_95 into account | |
8852 | * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95 | |
8853 | into account. | |
8854 | ||
8d606a78 RD |
8855 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
8856 | ||
8857 | * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb, | |
8858 | sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb, | |
8859 | sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting | |
8860 | ||
1982d5a8 PO |
8861 | 2011-08-01 Pascal Obry <obry@adacore.com> |
8862 | ||
8863 | * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass | |
8864 | Target_Name to Get_Path call. | |
8865 | (Parse_Single_Project): Likewise. | |
8866 | (Post_Parse_Context_Clause): Likewise. | |
8867 | * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter. | |
8868 | Call Initialise_Project_Path with the proper Target_Name. | |
8869 | (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat | |
8870 | search path. | |
8871 | (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path | |
8872 | with the proper Target_Name. | |
8873 | * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to | |
8874 | Part.Parse routine. | |
8875 | (Parse_Project_And_Apply_Config): Likewise. | |
8876 | * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine. | |
8877 | This is fine as this part of the code is supporting only native | |
8878 | compilation. | |
8879 | * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This | |
8880 | is fine as this part of the code is supporting only native compilation. | |
8881 | ||
0d53d36b AC |
8882 | 2011-08-01 Yannick Moy <moy@adacore.com> |
8883 | ||
8884 | * sem_util.adb (Enter_Name): issue error in formal mode on declaration | |
8885 | of homonym, unless the homonym is one of the cases allowed in SPARK | |
8886 | * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for | |
8887 | package declaration occurring after a body. | |
8888 | ||
8889 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8890 | ||
8891 | * checks.adb, exp_ch4.adb: Minor reformatting. | |
8892 | ||
8893 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
8894 | ||
8895 | * einfo.ads (Access_Disp_Table): Fix documentation. | |
8896 | (Dispatch_Table_Wrappers): Fix documentation. | |
8897 | ||
8898 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
8899 | ||
8900 | * prj-env.adb, prj-env.ads: Minor reformatting. | |
8901 | ||
8ed68165 AC |
8902 | 2011-08-01 Yannick Moy <moy@adacore.com> |
8903 | ||
8904 | * sem_util.ads, sem_util.adb, par.adb, par_util.adb | |
8905 | (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move | |
8906 | procedures out of these packages. | |
2c7f9cc0 | 8907 | * errout.ads, errout.adb |
8ed68165 AC |
8908 | (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move |
8909 | procedures in of this package | |
8910 | (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE | |
8911 | * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode | |
8912 | on misplaced later vs initial declarations, like in Ada 83 | |
8913 | * sem_attr.adb (Processing for Analyze_Attribute): issue error in | |
8914 | formal mode on attribute of private type whose full type declaration | |
8915 | is not visible | |
8916 | * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a | |
8917 | package declaration inside a package specification | |
8918 | (Analyze_Full_Type_Declaration): issue error in formal mode on | |
8919 | controlled type or discriminant type | |
8920 | * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on | |
8921 | user-defined operator means that it should come from the source | |
8922 | (New_Overloaded_Entity): issue error in formal mode on overloaded | |
8923 | entity. | |
8924 | * sem_ch6.ads, sem_ch13.ads: typos in comments. | |
8925 | ||
8926 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
8927 | ||
8928 | * atree.adb: Minor reformatting. | |
8929 | * checks.adb: Minor reformatting. | |
8930 | ||
4230bdb7 AC |
8931 | 2011-08-01 Vincent Celier <celier@adacore.com> |
8932 | ||
8933 | * s-parame-vms-ia64.ads: Fix typo in comment | |
8934 | Minor reformatting | |
8935 | * s-parame-vms-restrict.ads: Removed, unused. | |
8936 | ||
8937 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
8938 | ||
8939 | * exp_ch3.adb | |
8940 | (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound. | |
8941 | * sem_ch3.adb | |
8942 | (Constrain_Index): Remove side effects in the evaluation of the bounds. | |
8943 | * sem_ch3.ads, sem_ch3.adb | |
8944 | (Is_Constant_Bound): New extended version of the subprogram that was | |
8945 | previously located inside function Exp_Ch3.Is_Variable_Size_Array. | |
8946 | Moved here since it is shared by routines of sem_ch3 and exp_ch3. | |
8947 | * sem_aux.ads (Constant_Value): Fix typo in comment. | |
8948 | * checks.adb (Generate_Index_Checks): New implementation which, for | |
8949 | array objects with constant bounds, generates the runtime check | |
8950 | referencing the bounds of the array type. For other cases this routine | |
8951 | provides its previous behavior obtaining such values from the array | |
8952 | object. | |
8953 | * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its | |
8954 | parent type. | |
8955 | * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since | |
8956 | we cannot have semantic interpretations of the new node. | |
8957 | ||
2010d078 AC |
8958 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
8959 | ||
8960 | * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified | |
8961 | expressions. | |
8962 | ||
8963 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
8964 | ||
8965 | * sem_ch8.adb: Minor code editing. | |
8966 | * s-vxwext.adb: Remove trailing space. | |
8967 | * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for | |
8968 | consistency with other files. | |
8969 | ||
8970 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
8971 | ||
8972 | * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting. | |
8973 | ||
8974 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
8975 | ||
8976 | * par-ch10.adb: reject parameterized expressions as compilation unit. | |
8977 | * sem_ch4.adb: handle properly conditional expression with overloaded | |
8978 | then_clause and no else_clause. | |
8979 | ||
8980 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
8981 | ||
8982 | * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address | |
8983 | like done by System.Aux_DEC. | |
8984 | * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table. | |
8985 | ||
daec8eeb YM |
8986 | 2011-08-01 Yannick Moy <moy@adacore.com> |
8987 | ||
8988 | * par-endh.adb (Check_End): issue a syntax error in SPARK mode for | |
8989 | missing label at end of declaration (subprogram or package) | |
8990 | * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing | |
8991 | of positional and named parameter association | |
8992 | * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on | |
8993 | Error_Msg_SP which adds a prefix to the error message giving the name | |
8994 | of the formal language analyzed | |
8995 | * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for | |
8996 | access result type in subprogram, unconstrained array as result type,. | |
8997 | (Analyze_Subprogram_Declaration): issue an error in formal mode for null | |
8998 | procedure | |
8999 | * sem_ch8.adb: Code clean up. | |
9000 | ||
38171f43 AC |
9001 | 2011-08-01 Javier Miranda <miranda@adacore.com> |
9002 | ||
9003 | * sem_ch7.adb (Uninstall_Declarations): Remove useless code. | |
9004 | * einfo.ads (Access_Disp_Table): Fix documentation. | |
9005 | (Dispatch_Table_Wrappers): Fix documentation. | |
9006 | * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers, | |
9007 | Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions | |
9008 | to enforce the documentation of this attribute. | |
9009 | (Set_Is_Interface): Cleanup the assertion. | |
9010 | * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate | |
9011 | the Underlying_Type entity before reading attribute Access_Disp_Table. | |
9012 | * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion): | |
9013 | Locate the Underlying_Type before reading attribute Access_Disp_Table. | |
9014 | * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate | |
9015 | the Underlying_Type entity before reading attribute Access_Disp_Table. | |
9016 | * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration): | |
9017 | Locate the Underlying_Type entity before reading attribute | |
9018 | Access_Disp_Table. | |
9019 | ||
9020 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
9021 | ||
9022 | * s-poosiz.ads: Additional overriding indicators. | |
9023 | ||
9024 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
9025 | ||
9026 | * sem_ch5.adb (Analyze_Exit_Statement): add return after error in | |
9027 | formal mode. | |
9028 | (Analyze_Iteration_Scheme): issue error in formal mode when loop | |
9029 | parameter specification does not include a subtype mark. | |
9030 | * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in | |
9031 | formal mode on abstract subprogram. | |
9032 | (Analyze_Subprogram_Specification): issue error in formal mode on | |
9033 | user-defined operator. | |
9034 | (Process_Formals): issue error in formal mode on access parameter and | |
9035 | default expression. | |
9036 | * sem_ch9.adb (Analyze_Abort_Statement, | |
9037 | Analyze_Accept_Statement, Analyze_Asynchronous_Select, | |
9038 | Analyze_Conditional_Entry_Call, Analyze_Delay_Relative, | |
9039 | Analyze_Delay_Until, Analyze_Entry_Call_Alternative, | |
9040 | Analyze_Requeue, Analyze_Selective_Accept, | |
9041 | Analyze_Timed_Entry_Call): issue error in formal mode on such constructs | |
9042 | * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error): | |
9043 | issue error in formal mode on user-defined raise statement. | |
9044 | ||
1f250383 AC |
9045 | 2011-08-01 Thomas Quinot <quinot@adacore.com> |
9046 | ||
9047 | * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a | |
9048 | declaration being hidden when overriding an implicit inherited | |
9049 | subprogram. | |
9050 | * par-ch10.adb (P_Compilation_Unit): In syntax check only mode | |
9051 | (-gnats), do not complain about a source file that contains only a | |
9052 | pragma No_Body. | |
9053 | ||
9054 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
9055 | ||
9056 | * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop | |
9057 | variable if already set. | |
9058 | ||
607d0635 AC |
9059 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> |
9060 | ||
9061 | * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads, | |
9062 | g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads, | |
9063 | s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads, | |
9064 | g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb, | |
9065 | g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads, | |
9066 | g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads, | |
9067 | g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads, | |
9068 | g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb, | |
9069 | g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb, | |
9070 | g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads, | |
9071 | g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads, | |
9072 | s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb, | |
9073 | g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads, | |
9074 | s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads, | |
9075 | g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb, | |
9076 | g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb, | |
9077 | g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb, | |
9078 | g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb, | |
9079 | g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb, | |
9080 | g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb, | |
9081 | s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads, | |
9082 | s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads, | |
9083 | a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb, | |
9084 | s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads, | |
9085 | s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb, | |
9086 | g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads, | |
9087 | g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb, | |
9088 | g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb, | |
9089 | g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads, | |
9090 | g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads, | |
9091 | g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads, | |
9092 | s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads, | |
9093 | s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb, | |
9094 | g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb, | |
9095 | g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads, | |
9096 | s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb, | |
9097 | s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads, | |
9098 | g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads, | |
9099 | g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb, | |
9100 | g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, | |
9101 | s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads, | |
9102 | g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads, | |
9103 | g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads, | |
9104 | g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb, | |
9105 | s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb, | |
9106 | g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb, | |
9107 | g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb, | |
9108 | g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb, | |
9109 | s-osinte-mingw.ads: Update to GPLv3 run-time license. | |
9110 | Use GNAT instead of GNARL. | |
9111 | ||
9112 | 2011-08-01 Bob Duff <duff@adacore.com> | |
9113 | ||
9114 | * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads, | |
9115 | a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads, | |
9116 | a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor | |
9117 | reformatting. | |
9118 | ||
9119 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
9120 | ||
9121 | * debug.adb (d.D) reverve flag for the SPARK mode | |
9122 | (d.E) reverve flag for SPARK generation mode | |
9123 | (d.F) reverve flag for Why generation mode | |
2c7f9cc0 | 9124 | * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode, |
607d0635 AC |
9125 | ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New |
9126 | functions which return True when the corresponding modes are set | |
9127 | (Formal_Language): return "spark" or "alfa" when in formal verification | |
9128 | mode. | |
9129 | * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on | |
9130 | Error_Msg to prefix the error message with a tag giving the formal | |
9131 | language | |
9132 | (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error | |
9133 | message with a tag giving the formal language | |
9134 | * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on | |
9135 | block statement | |
9136 | (Analyze_Case_Statement): issue error in formal mode on case statement | |
9137 | with a single "others" case alternative | |
9138 | (Analyze_Exit_Statement): issue errors in formal mode on exit | |
9139 | statements which do not respect SPARK restrictions | |
9140 | (Analyze_Goto_Statement): issue error in formal mode on goto statement | |
9141 | (Check_Unreachable_Code): always issue an error (not a warning) in | |
9142 | formal mode on unreachable code (concerns both code after an infinite | |
9143 | loop and after an unconditional jump, both not allowed in SPARK) | |
9144 | * sem_ch6.adb (Analyze_Return_Statement): add call to | |
9145 | Set_Return_Present for a procedure containing a return statement | |
9146 | (already done for functions in Analyze_Function_Return) | |
9147 | (Analyze_Function_Return): issue error in formal mode on extended | |
9148 | return or if return is not last statement in function | |
9149 | (Check_Missing_Return): issue error in formal mode if function does | |
9150 | not end with return or if procedure contains a return | |
9151 | * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new | |
9152 | function to detect if there is an inner scope of its parameter S which | |
9153 | is a loop. | |
9154 | ||
9155 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
9156 | ||
9157 | * sem_ch6.ads: Minor reformatting. | |
9158 | ||
d8b3ccb9 AC |
9159 | 2011-08-01 Javier Miranda <miranda@adacore.com> |
9160 | ||
9161 | * sem_util.adb (Abstract_Interface_List): Complete condition when | |
9162 | processing private type declarations to avoid reading unavailable | |
9163 | attribute. | |
9164 | (Is_Synchronized_Tagged_Type): Complete condition when processing | |
9165 | private extension declaration nodes to avoid reading unavailable | |
9166 | attribute. | |
9167 | ||
9168 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
9169 | ||
9170 | * sem_ch3.adb: Minor reformatting. | |
9171 | ||
9172 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
9173 | ||
9174 | * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads, | |
9175 | i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads, | |
9176 | s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads, | |
9177 | s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages | |
9178 | for VMS, instead parametrize the common implementation with | |
9179 | System.Parameters declarations. | |
9180 | ||
0bb9276c AC |
9181 | 2011-08-01 Eric Botcazou <ebotcazou@adacore.com> |
9182 | ||
9183 | * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing. | |
9184 | ||
9185 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
9186 | ||
9187 | * seh_init.c: Fix SEH handler installation on win64. | |
9188 | ||
9189 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
9190 | ||
9191 | * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent | |
9192 | double analysis of an anonymous access to subprogram, because it can | |
9193 | lead to improper sharing of profiles and a back-end crash. | |
9194 | ||
6a2e4f0b AC |
9195 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
9196 | ||
9197 | * make.adb, sem_ch4.adb: Minor reformatting. | |
9198 | * gcc-interface/Make-lang.in: Update dependencies. | |
9199 | * sem_util.adb, exp_ch5.adb: Minor reformatting. | |
9200 | ||
9201 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
9202 | ||
9203 | * gnat_rm.texi: Fix definition of Long_Integer. | |
9204 | ||
9205 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
9206 | ||
9207 | * exp_aggr.adb: check limit size of static aggregate unconditionally, | |
9208 | to prevent storage exhaustion. | |
9209 | * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being | |
9210 | finalized is a function body, insert the cleanup code before the final | |
9211 | return statement, to prevent spurious warnings. | |
9212 | * s-pooglo.ads: add overriding indicator. | |
9213 | ||
4561baf7 ES |
9214 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
9215 | ||
9216 | * sem_ch4.adb (Operator_Check): improve error message when both a | |
9217 | with_clause and a use_clause are needed to make operator usage legal. | |
9218 | * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to | |
9219 | determine whether a compilation unit is visible within an other, | |
9220 | either through a with_clause in the current unit, or a with_clause in | |
9221 | its library unit or one one of its parents. | |
9222 | ||
383e179e AC |
9223 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
9224 | ||
9225 | * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator | |
9226 | over an arbitrary expression of an array or container type. | |
9227 | * lib-xref.adb: clarify comment. | |
9228 | ||
9229 | 2011-08-01 Bob Duff <duff@adacore.com> | |
9230 | ||
9231 | * einfo.ads: Minor reformatting. | |
9232 | * debug.adb: Minor comment improvement. | |
9233 | ||
9234 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
9235 | ||
9236 | * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not | |
9237 | consider hidden subprograms as valid candidates. | |
9238 | ||
9239 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
9240 | ||
9241 | * make.adb (Compile): Strip -mxxx switches in CodePeer mode. | |
9242 | ||
9243 | 2011-08-01 Vasiliy Fofanov <fofanov@adacore.com> | |
9244 | ||
9245 | * gnat_ugn.texi: Fix typo. | |
9246 | ||
61c161b2 AC |
9247 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
9248 | ||
9249 | * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb, | |
9250 | lib-xref.adb: Minor reformatting | |
9251 | ||
9252 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
9253 | ||
9254 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of | |
9255 | when to generate a call to Move_Final_List. | |
9256 | (Has_Controlled_Parts): Remove this function. | |
9257 | ||
84df40f7 AC |
9258 | 2011-08-01 Geert Bosch <bosch@adacore.com> |
9259 | ||
9260 | * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra | |
9261 | "," in choice list. | |
9262 | ||
9263 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
9264 | ||
9265 | * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for | |
9266 | explicit raise of a predefined exception as Comes_From_Source if the | |
9267 | original N_Raise_Statement comes from source. | |
9268 | ||
9269 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9270 | ||
9271 | * sinfo.ads: Add comment. | |
9272 | * sem_ch6.adb: Minor reformatting. | |
9273 | ||
9274 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9275 | ||
9276 | * freeze.adb (Freeze_Entity): Refine check for bad component size | |
9277 | clause to avoid rejecting confirming clause when atomic/aliased present. | |
9278 | ||
9279 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
9280 | ||
9281 | * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to | |
9282 | better determine whether an entity reference is a write. | |
9283 | * sem_util.adb (Is_LHS): refine predicate to handle assignment to a | |
9284 | subcomponent. | |
9285 | * lib-xref.adb (Output_References): Do no suppress a read reference at | |
9286 | the same location as an immediately preceeding modify-reference, to | |
9287 | handle properly in-out actuals. | |
9288 | ||
9289 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
9290 | ||
9291 | * env.c (__gnat_setenv) [VMS]: Refine previous change. | |
9292 | ||
9293 | 2011-08-01 Quentin Ochem <ochem@adacore.com> | |
9294 | ||
9295 | * i-cstrin.adb (New_String): Changed implementation, now uses only the | |
9296 | heap to compute the result. | |
9297 | ||
c7f0d2c0 AC |
9298 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
9299 | ||
9300 | * atree.ads: Minor reformatting. | |
9301 | ||
9302 | 2011-08-01 Emmanuel Briot <briot@adacore.com> | |
9303 | ||
9304 | * g-expect.adb (Get_Command_Output): Fix memory leak. | |
9305 | ||
9306 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
9307 | ||
9308 | * cstand.adb (P_Float_Type): New procedure to print the definition of | |
9309 | predefined fpt types. | |
9310 | (P_Mixed_Name): New procedure to print a name using mixed case | |
9311 | (Print_Standard): Use P_Float_Type for printing floating point types | |
9312 | * einfo.adb (Machine_Emax_Value): Add preliminary support for quad | |
9313 | precision IEEE float. | |
9314 | ||
9315 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
9316 | ||
9317 | * sem_ch3.adb: Minor reformatting. | |
9318 | ||
9319 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
9320 | ||
9321 | * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is | |
9322 | the completion of a generic function, insert the new body rather than | |
9323 | rewriting the original. | |
9324 | ||
9325 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
9326 | ||
9327 | * sinfo.ads, errout.ads: Typos in comments. | |
9328 | ||
1c54829e AC |
9329 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
9330 | ||
9331 | * par-endh.adb: Minor reformatting. | |
9332 | ||
9333 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9334 | ||
9335 | * aspects.ads, aspects.adb: Add aspects for library unit pragmas | |
9336 | (Pre_Post_Aspects): New subtype. | |
9337 | * par-ch12.adb (P_Generic): New syntax for aspects in packages | |
9338 | * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter | |
9339 | * par-ch7.adb (P_Package): Remove Decl parameter | |
9340 | (P_Package): Handle new syntax for aspects (before IS) | |
9341 | * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle | |
9342 | new aspect syntax | |
9343 | (P_Task_Definition): Remove Decl parameter, handle new aspect syntax | |
9344 | * par.adb (P_Aspect_Specifications): Add Semicolon parameter | |
9345 | (P_Package): Remove Decl parameter | |
9346 | * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit | |
9347 | aspects | |
9348 | * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect | |
9349 | specs | |
9350 | * sem_util.ads, sem_util.adb (Static_Boolean): New function | |
9351 | * sinfo.ads: Document new syntax for aspects in packages etc. | |
9352 | * sprint.adb: Handle new syntax of aspects before IS in package | |
9353 | ||
9354 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
9355 | ||
9356 | * atree.ads: Minor reformatting. | |
9357 | * sem_prag.adb: Minor reformatting. | |
9358 | ||
9359 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9360 | ||
9361 | * exp_util.adb (Insert_Actions): Fix error in handling Actions for | |
9362 | case expr alternative. | |
9363 | ||
9364 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
9365 | ||
9366 | * sem_ch12.adb: Fix typo. | |
9367 | ||
9eea4346 GB |
9368 | 2011-08-01 Geert Bosch <bosch@adacore.com> |
9369 | ||
9370 | * sem_prag.adb (Check_No_Link_Name): New procedure. | |
9371 | (Process_Import_Or_Interface): Use Check_No_Link_Name. | |
9372 | * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float) | |
9373 | instead of Standard_Long_Long_Float_Size global. Preparation for | |
9374 | eventual removal of per type constants. | |
9375 | * exp_util.ads (Get_Stream_Size): New function returning the stream | |
9376 | size value of subtype E. | |
9377 | * exp_util.adb (Get_Stream_Size): Implement new function. | |
9378 | * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size | |
9379 | function. | |
9380 | * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size | |
9381 | * einfo.adb: | |
9382 | (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats | |
9383 | ||
3d6c3bd7 GB |
9384 | 2011-08-01 Geert Bosch <bosch@adacore.com> |
9385 | ||
9386 | * cstand.adb: Fix comments. | |
9387 | * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit | |
9388 | count of arguments. | |
9389 | ||
e7d897b8 AC |
9390 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
9391 | ||
9392 | * exp_ch4.adb, sem_cat.adb: Minor reformatting. | |
9393 | ||
9394 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
9395 | ||
9396 | * atree.ads: Fix comment. | |
9397 | ||
c228a069 AC |
9398 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
9399 | ||
9400 | * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec. | |
9401 | * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name. | |
9402 | * par.adb: Add with for Namet.Sp. | |
9403 | * par-tchk.adb: Minor reformatting. | |
9404 | ||
9405 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
9406 | ||
9407 | * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb | |
9408 | (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name | |
9409 | of the init procedure of a SAL. | |
9410 | * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name): | |
9411 | New procedure. | |
9412 | ||
9413 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
9414 | ||
9415 | * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor | |
9416 | reformatting. | |
9417 | ||
9418 | 2011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
9419 | ||
9420 | * adaint.c (__gnat_file_time_name_attr): Get rid of warning. | |
9421 | ||
9422 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
9423 | ||
9424 | * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function | |
9425 | conformant with its spec (return True only for types that have | |
9426 | an overriding Initialize primitive operation that prevents them from | |
9427 | having preelaborable initialization). | |
9428 | * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable | |
9429 | initialization for controlled types in Ada 2005 or later mode. | |
9430 | ||
857ade1b RD |
9431 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
9432 | ||
9433 | * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition, | |
9434 | Postcondition. | |
9435 | (Same_Aspect): New function. | |
9436 | * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect | |
9437 | Type_Invariant, Precondition, Postcondition. | |
9438 | * snames.ads-tmpl: Add Name_Type_Invariant. | |
9439 | ||
bd949ee2 RD |
9440 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
9441 | ||
9442 | * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point | |
9443 | here. | |
9444 | (Freeze_All_Ent): Fix error in handling inherited aspects. | |
9445 | * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is | |
9446 | already analyzed, but don't skip entire processing of a declaration, | |
9447 | that's wrong in some cases of declarations being rewritten. | |
9448 | (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects. | |
9449 | Don't delay for integer, string literals | |
9450 | Treat predicates in usual manner for delay, remove special case code, | |
9451 | not needed. | |
9452 | (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point | |
9453 | (Build_Predicate_Function): Update saved expression in aspect | |
9454 | (Build_Invariant_Procedure): Update saved expression in aspect | |
9455 | * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization | |
9456 | of replacement of discriminant references if the reference is simple. | |
9457 | ||
f1c952af RD |
9458 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
9459 | ||
9460 | * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate. | |
9461 | * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for | |
9462 | Static_Predicate and Dynamic_Predicate. | |
9463 | (Build_Predicate_Function): Add processing for Static_Predicate | |
9464 | and Dynamic_Predicate. | |
9465 | * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag | |
9466 | (From_Static_Predicate): New flag | |
9467 | * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate | |
9468 | ||
9469 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9470 | ||
9471 | * usage.adb: Documentation cleanup for Ada version modes in usage. | |
9472 | * expander.adb: Minor reformatting. | |
9473 | ||
47e11d08 AC |
9474 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
9475 | ||
9476 | * atree.ads: Minor comment fix. | |
9477 | * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads, | |
9478 | a-witeio.ads, sem_prag.adb: Minor reformatting. | |
9479 | ||
9480 | 2011-08-01 Doug Rupp <rupp@adacore.com> | |
9481 | ||
9482 | * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure | |
9483 | pointers. Use descrip.h header file for convenience. Add some | |
9484 | comments. | |
9485 | ||
9486 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
9487 | ||
9488 | * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point | |
9489 | (Freeze_All): Call Check_Aspect_At_End_Of_Declarations | |
9490 | * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point): | |
9491 | New procedure. | |
9492 | (Check_Aspect_At_End_Of_Declarations): New procedure | |
9493 | (Analye_Aspect_Specification): Minor changes for above procedures | |
9494 | * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect | |
9495 | specification node as well. | |
9496 | ||
9497 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
9498 | ||
9499 | * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special | |
9500 | Windows files. Use GetFilesAttributes() in this case to check for file | |
9501 | existence instead of returning with an error code. | |
9502 | ||
a3a16b21 VC |
9503 | 2011-08-01 Vincent Celier <celier@adacore.com> |
9504 | ||
9505 | * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when | |
9506 | High is above Source length. | |
9507 | ||
ff58cc69 RD |
9508 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
9509 | ||
9510 | * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment. | |
9511 | ||
6bb88533 AC |
9512 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
9513 | ||
9514 | * aspects.ads (Boolean_Aspects): New subtype. | |
9515 | * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects | |
9516 | for derived types in cases where the parent type and derived type have | |
9517 | aspects. | |
9518 | * freeze.adb (Freeze_Entity): Fix problems in handling derived type | |
9519 | with aspects when parent type also has aspects. | |
9520 | (Freeze_Entity): Deal with delay of boolean aspects (must evaluate | |
9521 | boolean expression at this point). | |
9522 | * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in | |
9523 | accordance with final decision on the Ada 2012 feature. | |
9524 | * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag. | |
9525 | ||
9526 | 2011-08-01 Matthew Heaney <heaney@adacore.com> | |
9527 | ||
9528 | * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector. | |
9529 | ||
060a3f28 AC |
9530 | 2011-08-01 Pascal Obry <obry@adacore.com> |
9531 | ||
9532 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: | |
9533 | Fix Replace_Slice when High is above current string size. | |
9534 | (Replace_Slice): Fix DL computation when High is above current | |
9535 | string length. | |
9536 | ||
9537 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
9538 | ||
9539 | * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired. | |
9540 | ||
e7f567a3 AC |
9541 | 2011-08-01 Matthew Heaney <heaney@adacore.com> |
9542 | ||
9543 | * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child | |
9544 | of node. | |
9545 | ||
9546 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
9547 | ||
9548 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor | |
9549 | reformatting. | |
9550 | ||
1a265e78 AC |
9551 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
9552 | ||
9553 | * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named | |
9554 | access to protected subprograms in generic bodies. | |
9555 | * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a | |
9556 | protected type, indicate that the convention of the subprogram is | |
9557 | Convention_Protected, because it may be used in subsequent declarations | |
9558 | within the protected declaration. | |
9559 | ||
9560 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
9561 | ||
9562 | * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init" | |
9563 | and "final" procedures when the name of the library is "ada", to avoid | |
9564 | duplicate symbols "adainit" and "adafinal" in executables. | |
9565 | ||
67e28ef8 ES |
9566 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
9567 | ||
9568 | * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a | |
9569 | quantified expression that appears within a postcondition and uses the | |
9570 | Ada2012 'Result attribute. | |
9571 | ||
6da2ca7d RO |
9572 | 2011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
9573 | ||
9574 | * init.c (__gnat_error_handler): Cast reason to int. | |
9575 | (__gnat_install_handler): Explain sa_sigaction use. | |
9576 | ||
7d5997c6 EB |
9577 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> |
9578 | ||
9579 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the | |
9580 | subprogram has copy-in copy-out parameters, try to promote the mode of | |
9581 | the return type if it is passed in registers. | |
9582 | ||
4b4cfdd5 EB |
9583 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> |
9584 | ||
9585 | * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the | |
9586 | left operand as addressable. | |
9587 | ||
f3d34576 EB |
9588 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> |
9589 | ||
9590 | * gcc-interface/gigi.h (build_function_stub): Remove. | |
9591 | (build_return_expr): Likewise. | |
9592 | (convert_vms_descriptor): Declare. | |
9593 | * gcc-interface/utils.c (convert_vms_descriptor): Make global. | |
9594 | (build_function_stub): Move to... | |
9595 | * gcc-interface/utils2.c (build_return_expr): Move to... | |
9596 | * gcc-interface/trans.c (build_function_stub): ...here. | |
9597 | (build_return_expr): ...here. | |
9598 | (Subprogram_Body_to_gnu): Add local variable for language_function. | |
9599 | Disconnect the parameter attributes cache, if any, once done with it. | |
9600 | Call end_subprog_body only after setting the end_locus. | |
9601 | Build the stub associated with the function, if any, at the very end. | |
9602 | (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local | |
9603 | variables and streamline control flow. | |
9604 | ||
0a6ecc08 AC |
9605 | 2011-07-23 Arnaud Charlet <charlet@adacore.com> |
9606 | ||
9607 | PR ada/49819 | |
9608 | * gcc-interface/Makefile.in (powerpc-linux): Remove reference to | |
9609 | g-trasym-dwarf.adb. | |
9610 | ||
5b6d595b RO |
9611 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
9612 | ||
9613 | PR bootstrap/49794 | |
9614 | * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler): | |
9615 | Assign to act.sa_sigaction. | |
9616 | * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast | |
9617 | current->return_address to char * before arithmetic. | |
9618 | ||
94017021 RO |
9619 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
9620 | ||
9621 | * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation. | |
9622 | Correct argument types. | |
9623 | Extract code from reason. | |
9624 | (__gnat_install_handler): Assign to act.sa_sigaction. | |
9625 | ||
52fd02bb EB |
9626 | 2011-07-21 Eric Botcazou <ebotcazou@adacore.com> |
9627 | ||
9628 | * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to... | |
9629 | (GNAT1_OBJS): ...here. | |
9630 | ||
f39a9ca2 EB |
9631 | 2011-07-15 Eric Botcazou <ebotcazou@adacore.com> |
9632 | ||
9633 | PR ada/48711 | |
9634 | * g-socthi-mingw.adb (Fill): Fix formatting. | |
9635 | ||
9e36aa23 EB |
9636 | * gcc-interface/gigi.h: Move around comment. |
9637 | ||
e3aca522 JDA |
9638 | 2011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
9639 | ||
9640 | PR ada/46350 | |
9641 | * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast. | |
9642 | ||
696b1960 FW |
9643 | 2011-07-14 Florian Weimer <fw@deneb.enyo.de> |
9644 | ||
9645 | PR ada/48711 | |
9646 | * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL. | |
9647 | ||
f542c405 EB |
9648 | 2011-07-13 Eric Botcazou <ebotcazou@adacore.com> |
9649 | ||
9650 | * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit | |
9651 | range comparison if Pmode is SImode. | |
9652 | ||
9e9bd455 LG |
9653 | 2011-07-12 Laurent GUERBY <laurent@guerby.net> |
9654 | Eric Botcazou <ebotcazou@adacore.com> | |
9655 | ||
9656 | * adadecode.c: Wrap up in extern "C" block. | |
9657 | * adadecode.h: Likewise. | |
9658 | * adaint.c: Likewise. Remove 'const' keyword. | |
9659 | * adaint.h: Likewise. | |
9660 | * argv.c: Likewise. | |
9661 | * atree.h: Likewise. | |
9662 | * cio.c: Likewise. | |
9663 | * cstreams.c: Likewise. | |
9664 | * env.c: Likewise. | |
9665 | * exit.c: Likewise. | |
9666 | * fe.h: Likewise. | |
9667 | * final.c: Likewise. | |
9668 | * init.c: Likewise. | |
9669 | * initialize.c: Likewise. | |
9670 | * link.c: Likewise. | |
9671 | * namet.h: Likewise. | |
9672 | * nlists.h: Likewise. | |
9673 | * raise.c: Likewise. | |
9674 | * raise.h: Likewise. | |
9675 | * repinfo.h: Likewise. | |
9676 | * seh_init.c: Likewise. | |
9677 | * targext.c: Likewise. | |
9678 | * tracebak.c: Likewise. | |
9679 | * uintp.h: Likewise. | |
9680 | * urealp.h: Likewise. | |
9681 | * xeinfo.adb: Wrap up generated C code in extern "C" block. | |
9682 | * xsinfo.adb: Likewise. | |
9683 | * xsnamest.adb: Likewise. | |
9684 | * gcc-interface/gadaint.h: Wrap up in extern "C" block. | |
9685 | * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block. | |
9686 | * gcc-interface/misc.c: Likewise. | |
9687 | * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER. | |
9688 | (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and | |
9689 | ada/targext.o here... | |
9690 | (GNAT_ADA_OBJS): ...and not here. | |
9691 | (GNAT1_ADA_OBJS): Add ada/b_gnat1.o. | |
9692 | (GNATBIND_OBJS): Reorder. | |
9693 | ||
7644b3c7 RH |
9694 | 2011-07-07 Richard Henderson <rth@redhat.com> |
9695 | ||
9696 | * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call | |
9697 | dwarf2out_frame_init. | |
9698 | ||
8384ac41 EB |
9699 | 2011-07-07 Eric Botcazou <ebotcazou@adacore.com> |
9700 | ||
9701 | * gcc-interface/misc.c (gnat_init): Tweak previous change. | |
9702 | ||
fbdd5d87 RO |
9703 | 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
9704 | ||
9705 | PR target/39150 | |
9706 | * gcc-interface/Makefile.in: Handle x86_64-solaris2. | |
9707 | ||
1a072294 RG |
9708 | 2011-07-06 Richard Guenther <rguenther@suse.de> |
9709 | ||
8384ac41 EB |
9710 | * gcc-interface/misc.c (gnat_init): Merge calls to |
9711 | build_common_tree_nodes and build_common_tree_nodes_2. | |
1a072294 RG |
9712 | Re-initialize boolean_false_node. |
9713 | ||
bc712852 EB |
9714 | 2011-07-02 Eric Botcazou <ebotcazou@adacore.com> |
9715 | Olivier Hainque <hainque@adacore.com> | |
9716 | Nicolas Setton <setton@adacore.com> | |
9717 | ||
9718 | * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on | |
9719 | the type according to the ARTIFICIAL_P parameter. | |
9720 | (create_type_decl): Likewise. | |
9721 | (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1. | |
9722 | ||
2eb22389 EB |
9723 | 2011-07-01 Eric Botcazou <ebotcazou@adacore.com> |
9724 | ||
9725 | * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command. | |
9726 | (gnatbind): Likewise. | |
9727 | ||
4bdaaf2f RO |
9728 | 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
9729 | ||
9730 | * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL). | |
9731 | ||
c020c92b EB |
9732 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> |
9733 | ||
9734 | * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE | |
9735 | local variable throughout. Remove useless call to Base_Type. | |
9736 | (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout. | |
9737 | Take it also into account for the volatileness of the field. Set the | |
9738 | TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings. | |
9739 | ||
96769d32 EB |
9740 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> |
9741 | ||
9742 | * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP | |
9743 | on a dereference built for a by-ref object if it has an address clause. | |
9744 | ||
7e4680c1 EB |
9745 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> |
9746 | ||
9747 | * einfo.ads (Address_Taken): Document use for the second argument of | |
9748 | Asm_Input and Asm_Output attributes. | |
9749 | * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second | |
9750 | argument is an entity name, then set Address_Taken on it. | |
9751 | <Attribute_Asm_Output>: Likewise. | |
9752 | * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the | |
9753 | Attr_Asm_Input and Attr_Asm_Output attributes explicitly. | |
9754 | (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in | |
9755 | memory and is a CONST_DECL, retrieve its corresponding VAR_DECL. | |
9756 | ||
9757 | 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com> | |
d5cc9181 JR |
9758 | |
9759 | PR middle-end/46500 | |
9760 | * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args. | |
9761 | ||
677f3fa8 JM |
9762 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> |
9763 | ||
9764 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o. | |
9765 | (ada/utils.o): Update dependencies. | |
9766 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add | |
9767 | ../../../libcpp/libcpp.a. | |
9768 | * gcc-interface/utils.c: Include common/common-target.h. | |
9769 | (process_attributes): Use targetm_common.have_named_sections. | |
9770 | ||
009db074 RG |
9771 | 2011-06-07 Richard Guenther <rguenther@suse.de> |
9772 | ||
0bad0e23 EB |
9773 | * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call |
9774 | set_sizetype. | |
009db074 | 9775 | |
3bfc61cf EB |
9776 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
9777 | ||
0bad0e23 | 9778 | * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the |
3bfc61cf EB |
9779 | TREE_THIS_NOTRAP flag. |
9780 | ||
5c4a1c7b EB |
9781 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
9782 | ||
9783 | * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>: | |
9784 | Fix thinko. | |
9785 | ||
e9f57686 EB |
9786 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
9787 | ||
9788 | * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred | |
9789 | constants whose full view has discriminants specially. | |
9790 | ||
10e4d056 EB |
9791 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
9792 | ||
9793 | * gcc-interface/utils.c: Include diagnostic.h. | |
9794 | (gnat_write_global_declarations): Output debug information for all | |
9795 | global type declarations before finalizing the compilation unit. | |
9796 | * gcc-interface/Make-lang.in (ada/utils.o): Add dependency. | |
9797 | ||
0957c029 JJ |
9798 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> |
9799 | ||
9800 | * gcc-interface/utils.c (def_fn_type): Remove extra va_end. | |
9801 | ||
52d0a7ac KT |
9802 | 2011-05-25 Kai Tietz <ktietz@redhat.com> |
9803 | ||
9804 | * adaint.c (__gnat_to_canonical_file_list_next): Use array | |
9805 | initialization instead of const/none-const pointer assignment. | |
9806 | ||
1ed1641d JM |
9807 | 2011-05-24 Joseph Myers <joseph@codesourcery.com> |
9808 | ||
9809 | * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include | |
9810 | $(EXTRA_GNAT1_OBJS). | |
9811 | (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS). | |
9812 | (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove. | |
9813 | (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a. | |
9814 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use | |
9815 | libcommon-target.a instead of prefix.o. | |
9816 | ||
9fe72ebd JM |
9817 | 2011-05-21 Joseph Myers <joseph@codesourcery.com> |
9818 | ||
9819 | PR ada/49097 | |
0bad0e23 | 9820 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS). |
9fe72ebd | 9821 | |
2691e6d7 JM |
9822 | 2011-05-20 Joseph Myers <joseph@codesourcery.com> |
9823 | ||
0bad0e23 EB |
9824 | * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o. |
9825 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a | |
9826 | instead of version.o. | |
2691e6d7 | 9827 | |
bf6490b5 KT |
9828 | 2011-05-18 Kai Tietz <ktietz@redhat.com> |
9829 | ||
9830 | * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use | |
9831 | boolean_false_node instead of integer_zero_node. | |
9832 | (convert_with_check): Likewise. | |
9833 | * gcc-interface/decl.c (choices_to_gnu): Likewise. | |
9834 | ||
7bf9a5ac EB |
9835 | 2011-05-12 Eric Botcazou <ebotcazou@adacore.com> |
9836 | ||
9837 | * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the | |
9838 | type of the parameter is an unconstrained array, convert the actual to | |
9839 | the type of the formal in the In Out and Out cases as well. | |
9840 | ||
e5b00edf NF |
9841 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> |
9842 | ||
9843 | * gcc-interface/utils.c (def_fn_type): Don't call build_function_type; | |
9844 | call build_function_type_array or build_varargs_function_type_array | |
9845 | instead. | |
9846 | (create_subprog_type): Don't call build_function_type; call | |
9847 | build_function_type_vec instead. | |
9848 | ||
51545682 NF |
9849 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> |
9850 | ||
9851 | * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL. | |
9852 | (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL. | |
9853 | (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL. | |
9854 | ||
c99c0026 EB |
9855 | 2011-05-07 Eric Botcazou <ebotcazou@adacore.com> |
9856 | ||
f620bd21 EB |
9857 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces. |
9858 | ||
c99c0026 EB |
9859 | * gcc-interface/gigi.h (global_bindings_p): Adjust prototype. |
9860 | * gcc-interface/utils.c (global_bindings_p): Return bool and simplify. | |
9861 | ||
3d528853 NF |
9862 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
9863 | ||
c99c0026 | 9864 | * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label. |
3d528853 | 9865 | |
d7d058c5 NF |
9866 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
9867 | ||
9868 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators | |
9869 | instead of accessing TYPE_ARG_TYPES directly. | |
9870 | * gcc-interface/utils.c (handle_nonnull_attribute): Likewise. | |
9871 | ||
805e60a0 EB |
9872 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> |
9873 | ||
9874 | PR ada/48844 | |
9875 | * gcc-interface/gigi.h (get_variant_part): Declare. | |
9876 | * gcc-interface/decl.c (get_variant_part): Make global. | |
9877 | * gcc-interface/utils2.c (find_common_type): Do not return T1 if the | |
9878 | types have the same constant size, are record types and T1 has a | |
9879 | variant part while T2 doesn't. | |
9880 | ||
907a08d9 EB |
9881 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> |
9882 | ||
9883 | * gcc-interface/utils.c (begin_subprog_body): Do not call | |
9884 | get_pending_sizes. | |
9885 | (end_subprog_body): Likewise. | |
9886 | ||
d35936ab RG |
9887 | 2011-05-04 Richard Guenther <rguenther@suse.de> |
9888 | ||
9889 | * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to | |
9890 | int_const_binop. | |
9891 | (pos_to_constructor): Likewise. | |
9892 | ||
c1fd8753 | 9893 | 2011-05-03 Nathan Froyd <froydnj@codesourcery.com> |
2c7f9cc0 | 9894 | Eric Botcazou <ebotcazou@adacore.com> |
c1fd8753 NF |
9895 | |
9896 | * gcc-interface/trans.c (gigi): Call build_function_type_list instead | |
9897 | of build_function_type. Adjust calls to... | |
9898 | (build_raise_check): ...this. Do not take a void_tree parameter. | |
9899 | Call build_function_type_list instead of build_function_type. | |
9900 | Fix head comment and swap couple of conditional blocks. | |
9901 | ||
4fb87d2b EB |
9902 | 2011-04-30 Eric Botcazou <ebotcazou@adacore.com> |
9903 | ||
9904 | * gnatvsn.ads (Library_Version): Bump to 4.7. | |
9905 | (Current_Year): Bump to 2011. | |
9906 | ||
fa5e5a76 MM |
9907 | 2011-04-29 Michael Matz <matz@suse.de> |
9908 | ||
9909 | * gcc-interface/misc.c (gnat_handle_option): Set | |
9910 | warn_maybe_uninitialized. | |
9911 | ||
8d6a2f69 GP |
9912 | 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com> |
9913 | ||
9914 | * gnat_ugn.texi (Complexity Metrics Control): Update link to | |
9915 | the Watson/McCabe paper. | |
9916 | ||
770937fd JM |
9917 | 2011-04-23 Jim Meyering <meyering@redhat.com> |
9918 | ||
9919 | * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/ | |
9920 | ||
eb601ae1 EB |
9921 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> |
9922 | ||
9923 | * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE | |
9924 | onto the new type. | |
9925 | ||
7d7fcb08 EB |
9926 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> |
9927 | ||
9928 | * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG | |
9929 | parameter. | |
9930 | * gcc-interface/utils.c (create_subprog_decl): Likewise. Set | |
9931 | DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly. | |
9932 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add | |
9933 | ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl. | |
9934 | <all>: Do not set flags on the reused DECL node coming from an alias. | |
9935 | Set DECL_IGNORED_P on the DECL node built for subprograms if they | |
9936 | don't need debug info here... | |
9937 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here. | |
9938 | (gigi): Adjust calls to create_subprog_decl. | |
9939 | (build_raise_check): Likewise. | |
9940 | (establish_gnat_vms_condition_handler): Likewise. | |
9941 | (Compilation_Unit_to_gnu): Likewise. | |
9942 | (gnat_to_gnu): Likewise. | |
9943 | ||
e1876cac EB |
9944 | 2011-04-21 Eric Botcazou <ebotcazou@adacore.com> |
9945 | ||
9946 | * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define. | |
9947 | (NO_REORDER_ADAFLAGS): New variable. | |
9948 | (EXTRA_GNATTOOLS): Always define. | |
9949 | (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h. | |
9950 | Clean up and adjust list of files compiled with special options. | |
9951 | * gcc-interface/Make-lang.in: Likewise. | |
9952 | (ada/decl.o): Cosmetical change. | |
9953 | (ada/misc.o): Remove dependency on $(PLUGIN_H). | |
9954 | ||
04695783 JM |
9955 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
9956 | ||
9957 | * initialize.c (__gnat_initialize): Remove useless if-before-free. | |
9958 | ||
23399579 EB |
9959 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> |
9960 | ||
9961 | * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with | |
9962 | $(CFLAGS) on the link line. | |
9963 | ||
51c5169c EB |
9964 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> |
9965 | ||
9966 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the | |
9967 | padded type built for the return type if it is unconstrained. | |
9968 | ||
61e46a7d NF |
9969 | 2011-04-14 Nathan Froyd <froydnj@codesourcery.com> |
9970 | ||
9971 | * gcc-interface/utils.c (gnat_poplevel): Use block_chainon. | |
9972 | ||
81f653d6 NF |
9973 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> |
9974 | ||
b4867846 EB |
9975 | * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON |
9976 | before calling TREE_CHAIN. | |
81f653d6 NF |
9977 | * gcc-interface/misc.c (gnat_init_ts): New function. |
9978 | (LANG_HOOKS_INIT_TS): Define. | |
9979 | ||
a358e188 MJ |
9980 | 2011-04-12 Martin Jambor <mjambor@suse.cz> |
9981 | ||
b4867846 EB |
9982 | * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node |
9983 | instead of cgraph_node. | |
a358e188 | 9984 | |
29b1c5a4 EB |
9985 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> |
9986 | ||
9987 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum | |
9988 | alignment on fields of the RETURN type built for the Copy-In Copy-Out | |
9989 | mechanism. | |
9990 | ||
88872b00 EB |
9991 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> |
9992 | ||
9993 | * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers | |
9994 | of aggregate types that contain a placeholder. | |
9995 | ||
dcf0c47e NF |
9996 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> |
9997 | ||
9998 | * gcc-interface/utils.c (handle_sentinel_attribute): Don't use | |
b4867846 | 9999 | TYPE_ARG_TYPES. |
dcf0c47e NF |
10000 | (handle_type_generic_attribute): Likewise. |
10001 | ||
53e3000c EB |
10002 | 2011-04-04 Eric Botcazou <ebotcazou@adacore.com> |
10003 | ||
10004 | PR ada/47163 | |
10005 | * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change. | |
10006 | ||
ab380bb4 KT |
10007 | 2011-04-04 Kai Tietz <ktietz@redhat.com> |
10008 | ||
10009 | PR ada/47163 | |
0bad0e23 EB |
10010 | * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets |
10011 | to flag value. | |
ab380bb4 | 10012 | |
8ffac116 EB |
10013 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
10014 | ||
10015 | * gcc-interface/utils2.c (build_allocator): In the unconstrained array | |
10016 | type case, do not strip a padding type around the array type. | |
10017 | ||
de9528f0 EB |
10018 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
10019 | ||
10020 | * gcc-interface/utils.c (update_pointer_to): Finalize named pointer | |
10021 | types. | |
10022 | ||
d9d7a26c EB |
10023 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
10024 | ||
10025 | * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete. | |
10026 | * gcc-interface/misc.c (gnat_handle_option): Remove special handling | |
de9528f0 | 10027 | code for -feliminate-unused-debug-types. |
d9d7a26c EB |
10028 | (gnat_post_options): Likewise. |
10029 | ||
4cb12a90 EB |
10030 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
10031 | ||
10032 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
10033 | declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a | |
10034 | distinct copy. | |
10035 | ||
acccc61c EB |
10036 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
10037 | ||
10038 | * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the | |
10039 | DECL_ARTIFICIAL flag on enumeration types. | |
10040 | ||
583eb0c9 EB |
10041 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
10042 | ||
10043 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make | |
10044 | fat pointer types artificial unconditionally. | |
10045 | <E_Array_Subtype>: Attach the base array type as a parallel type if it | |
10046 | isn't artificial. | |
10047 | ||
e3edbd56 EB |
10048 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
10049 | ||
10050 | * gcc-interface/gigi.h (get_dummy_type): Declare. | |
10051 | (build_dummy_unc_pointer_types): Likewise. | |
10052 | (finish_fat_pointer_type): Likewise. | |
10053 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy | |
10054 | fat pointer type has been built, complete it in place. | |
10055 | <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat | |
10056 | and thin pointers. Remove useless variable. | |
10057 | (finish_fat_pointer_type): Make global and move to... | |
10058 | * gcc-interface/utils.c (finish_fat_pointer_type): ...here. | |
10059 | (get_dummy_type): New function. | |
10060 | (build_dummy_unc_pointer_types): Likewise. | |
10061 | (gnat_pushdecl): Propage the name to the anonymous variants only. | |
10062 | (update_pointer_to): Only adjust the pointer types in the unconstrained | |
10063 | array case. | |
10064 | ||
65444786 EB |
10065 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
10066 | ||
10067 | * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag. | |
10068 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it | |
10069 | if this is a Taft amendment type and the full declaration is available. | |
10070 | * gcc-interface/trans.c (process_type): Likewise. | |
10071 | If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P. | |
10072 | (process_freeze_entity): Likewise. | |
10073 | * gcc-interface/utils.c (dummy_global): New static variable. | |
10074 | (gnat_write_global_declarations): If there are types declared as used | |
10075 | at the global level, insert them in the global hash table. | |
10076 | ||
1aeb40dd EB |
10077 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
10078 | ||
10079 | * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param. | |
10080 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
10081 | declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct | |
10082 | copy. | |
10083 | (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL | |
10084 | flag of the type accordingly. | |
10085 | * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type. | |
10086 | ||
80ec8b4c EB |
10087 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
10088 | ||
10089 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
10090 | finalizing types when updating the pointers to the designated type. | |
10091 | <all>: Finalize the deferred types even if we didn't defer processing | |
10092 | of incomplete types in this invocation. | |
10093 | ||
2a9d769a | 10094 | 2011-04-01 Olivier Hainque <hainque@adacore.com> |
2c7f9cc0 AS |
10095 | Nicolas Setton <setton@adacore.com> |
10096 | Eric Botcazou <ebotcazou@adacore.com> | |
2a9d769a OH |
10097 | |
10098 | * gcc-interface/misc.c (gnat_descriptive_type): New function. | |
10099 | (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type. | |
10100 | ||
2438d7a6 KT |
10101 | 2011-03-28 Kai Tietz <ktietz@redhat.com> |
10102 | ||
333d8aff | 10103 | * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native |
80ec8b4c EB |
10104 | Windows targets. |
10105 | (EH_MECHANISM): Use GCC exception mechanism for native Windows targets. | |
10106 | * system-mingw.ads (System): Change ZCX_By_Default default to True. | |
333d8aff | 10107 | |
80ec8b4c | 10108 | * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype. |
2438d7a6 | 10109 | |
8ad150f6 TG |
10110 | 2011-03-28 Tristan Gingold <gingold@adacore.com> |
10111 | ||
10112 | PR ada/44431 | |
80ec8b4c EB |
10113 | * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c. |
10114 | Use ada output of gnatbind. | |
8ad150f6 TG |
10115 | (ada/b_gnatb.adb): Ditto. |
10116 | (ada/b_gnat1.o, ada/b_gnatb.o): New rules. | |
10117 | (ada.mostlyclean, ada.stage1) | |
10118 | (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile) | |
10119 | (ada.stagefeedback): Adjust. | |
80ec8b4c | 10120 | * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c. |
8ad150f6 TG |
10121 | Use ada output of gnatbind. |
10122 | (b_gnatm.adb): Ditto. | |
10123 | (b_gnatl.o, b_gnatm.o): New rules. | |
10124 | ||
51c7954d EB |
10125 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
10126 | ||
10127 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
10128 | for the padded type built to support a specified size or alignment. | |
10129 | ||
6ddf9843 EB |
10130 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
10131 | ||
10132 | * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment. | |
10133 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
10134 | unconditionally to the end of the unit when the designated type is | |
10135 | limited_with'ed. | |
10136 | <all>: Rename local variable. Attempt to un-defer types only and do it | |
10137 | for limited_with'ed types as well. | |
10138 | (finalize_from_with_types): Adjust comment. Rename variable and tidy. | |
10139 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT | |
10140 | consistently and remove redundant call to finalize_from_with_types. | |
10141 | ||
5daed84a EB |
10142 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
10143 | ||
10144 | * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to | |
10145 | subprograms without a previous spec declared in the same unit. | |
10146 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined | |
10147 | subprograms at the end of the unit instead of at the beginning. | |
10148 | * gcc-interface/utils.c (create_subprog_decl): Check that the entity | |
10149 | isn't public for the special handling of non-inline functions nested | |
10150 | inside inline external functions. | |
10151 | ||
0edf1bb2 JL |
10152 | 2011-03-25 Jeff Law <law@redhat.com> |
10153 | ||
5daed84a | 10154 | * gcc-interface/utils.c (def_fn_type): Add missing va_end. |
0edf1bb2 | 10155 | |
e3c4580e EB |
10156 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> |
10157 | ||
10158 | * einfo.ads (Size_Depends_On_Discriminant): Adjust description. | |
10159 | * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure | |
10160 | to compute Set_Size_Depends_On_Discriminant. | |
10161 | (Layout_Type): Call it on array types in back-end layout mode. | |
10162 | * sem_util.adb (Requires_Transient_Scope): Return true for array | |
10163 | types only if the size depends on the value of discriminants. | |
10164 | * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS | |
10165 | type if the RHS is a call to a function that returns an unconstrained | |
10166 | type with default discriminant. | |
10167 | ||
abbc8c7b EB |
10168 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> |
10169 | ||
10170 | * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of | |
10171 | non-conversion to the nominal result type at the end. | |
10172 | ||
ddb5a105 EB |
10173 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
10174 | ||
10175 | * gcc-interface/trans.c (create_temporary): New function taken from... | |
10176 | (create_init_temporary): ...here. Call it. | |
10177 | (call_to_gnu): Create the temporary for the return value early, if any. | |
10178 | Create it for a function with copy-in/copy-out parameters if there is | |
10179 | no target; in other cases of copy-in/copy-out, use another temporary. | |
10180 | Push the new binding level lazily. Add and rename local variables. | |
10181 | ||
0d853156 EB |
10182 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
10183 | ||
10184 | * gcc-interface/decl.c (validate_size): Improve comments and tweak | |
10185 | error message. | |
10186 | (set_rm_size): Likewise. | |
10187 | ||
4184ef1b EB |
10188 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
10189 | ||
10190 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
10191 | for the padded type built in order to support a specified alignment. | |
10192 | Fix incorrect formatting. | |
10193 | ||
bf7eefab EB |
10194 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
10195 | ||
10196 | PR bootstrap/48216 | |
10197 | * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL. | |
10198 | ||
ef0feeb2 EB |
10199 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
10200 | ||
10201 | * gcc-interface/decl.c (components_to_record): Add REORDER parameter, | |
10202 | rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter | |
10203 | to the end of the list. Adjust recursive call. Rename local variable. | |
10204 | If REORDER is true, reorder components of the record type. | |
10205 | (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to | |
10206 | components_to_record and adjust the parameter list. | |
10207 | ||
646f9414 EB |
10208 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
10209 | ||
10210 | * gcc-interface/decl.c (elaborate_expression_1): When optimization is | |
10211 | disabled, use the variable for bounds of loop iteration scheme. | |
10212 | ||
62d784f7 KT |
10213 | 2011-03-21 Kai Tietz <ktietz@redhat.com> |
10214 | ||
10215 | PR target/12171 | |
0bad0e23 | 10216 | * gcc-interface/utils.c (gnat_internal_attribute_table): Add column. |
62d784f7 | 10217 | |
f230d759 EB |
10218 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> |
10219 | ||
10220 | * gcc-interface/decl.c (elaborate_expression_1): Try harder to find | |
10221 | out whether the expression is read-only. Short-circuit placeholder | |
10222 | case and rename a couple of local variables. | |
10223 | ||
bb1f7929 EB |
10224 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> |
10225 | ||
10226 | * gcc-interface/gigi.h (smaller_form_type_p): Declare. | |
10227 | * gcc-interface/trans.c (smaller_form_type_p): Make global and move... | |
10228 | * gcc-interface/utils.c (smaller_form_type_p): ...to here. | |
10229 | (convert): Deal with conversions from a smaller form type specially. | |
10230 | ||
400a2d24 EB |
10231 | 2011-02-14 Eric Botcazou <ebotcazou@adacore.com> |
10232 | ||
10233 | * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and | |
10234 | its argument, except for the special -I- switch. | |
10235 | ||
c26bc3ad GP |
10236 | 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com> |
10237 | ||
0bad0e23 EB |
10238 | * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to |
10239 | "Ada Issues". | |
c26bc3ad | 10240 | |
07b8e910 EB |
10241 | 2011-02-08 Eric Botcazou <ebotcazou@adacore.com> |
10242 | ||
10243 | * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs. | |
10244 | ||
31a5a547 EB |
10245 | 2011-02-03 Eric Botcazou <ebotcazou@adacore.com> |
10246 | ||
10247 | * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of | |
10248 | GNAT_FORMAL. | |
10249 | * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to... | |
10250 | * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE | |
10251 | instead of GNAT_FORMAL. Protect the expression against multiple uses. | |
10252 | Do not generate the check directly, instead instantiate the template | |
10253 | check present in the descriptor. | |
10254 | (make_descriptor_field): Move around. | |
10255 | (build_vms_descriptor32): Build a template check in the POINTER field. | |
10256 | (build_vms_descriptor): Remove useless suffixes. | |
10257 | * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call. | |
10258 | ||
dcf25f59 EB |
10259 | 2011-01-26 Eric Botcazou <ebotcazou@adacore.com> |
10260 | ||
10261 | PR bootstrap/47467 | |
10262 | * targext.c: Include target files if IN_RTS is defined. | |
10263 | ||
0418e131 RG |
10264 | 2011-01-26 Richard Guenther <rguenther@suse.de> |
10265 | ||
10266 | PR bootstrap/47467 | |
10267 | * targext.c: Include config.h. | |
10268 | * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H) | |
10269 | dependency. | |
10270 | ||
c6eecbd8 | 10271 | 2011-01-04 Pascal Obry <obry@adacore.com> |
2c7f9cc0 | 10272 | Eric Botcazou <ebotcazou@adacore.com> |
c6eecbd8 PO |
10273 | |
10274 | * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit. | |
10275 | ||
2d3c7e4f EB |
10276 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
10277 | ||
10278 | * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the | |
10279 | end-of-case on the end label and its associated gotos, if any. | |
10280 | ||
0394741f EB |
10281 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
10282 | ||
10283 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the | |
10284 | expressions of the parameter cache within the statement group of | |
10285 | the CICO mechanism. | |
10286 | ||
2a02d090 | 10287 | 2011-01-04 Olivier Hainque <hainque@adacore.com> |
2c7f9cc0 | 10288 | Eric Botcazou <ebotcazou@adacore.com> |
2a02d090 OH |
10289 | |
10290 | * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default. | |
10291 | (set_end_locus_from_node): New function. | |
10292 | (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we | |
10293 | make and the function end_locus. | |
10294 | (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus | |
10295 | for the elaboration subprogram. | |
10296 | (set_gnu_expr_location_from_node) <default case>: Use it to attempt to | |
10297 | set the end_locus of the expression as well. | |
10298 | ||
89f5e978 EB |
10299 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
10300 | ||
10301 | PR ada/47131 | |
10302 | * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make | |
10303 | variables that are referenced in exception handlers volatile. | |
10304 | ||
10305 | ||
ad41bd84 | 10306 | \f |
797103eb | 10307 | Copyright (C) 2011 Free Software Foundation, Inc. |
ad41bd84 JM |
10308 | |
10309 | Copying and distribution of this file, with or without modification, | |
10310 | are permitted in any medium without royalty provided the copyright | |
10311 | notice and this notice are preserved. |