]>
Commit | Line | Data |
---|---|---|
1 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
2 | ||
3 | * makeutl.adb (Compute_Builder_Switches): no longer accept a unit name | |
4 | as an index for Builder'Switches. This conforms to the documentation. | |
5 | * make.adb (Insert_Project_Sources): avoid duplicate code | |
6 | ||
7 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
8 | ||
9 | * makeutl.adb (Complete_Mains): if the user has passed a relative file | |
10 | name on the command line (for instance "../dummy"), never assume it can | |
11 | be a unit name. | |
12 | ||
13 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
14 | ||
15 | * bindgen.adb: Remove code the reference or create the | |
16 | Break_Start/__gnat_break_start procedure. | |
17 | * s-stalib.adb (Break_Start): Removed. | |
18 | ||
19 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
20 | ||
21 | * make.adb, makeutl.adb, makeutl.ads (Compute_Builder_Switches): now | |
22 | shared with gprbuild. | |
23 | ||
24 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
25 | ||
26 | * par-ch4.adb (P_Primary): preferentially issue an error message about | |
27 | a missing parenthesis arount a conditional or case expression in Ada | |
28 | 2012 mode, if we detect that the alignment is not correct for a | |
29 | statement. | |
30 | ||
31 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
32 | ||
33 | * exp_ch7.adb (Process_Declarations): Do not consider the result of a | |
34 | tag-to-class-wide conversion as needing finalization actions. | |
35 | * exp_util.adb (Has_Controlled_Objects): Do not consider the result of | |
36 | a tag-to-class-wide conversion as needing finalization actions. | |
37 | (Is_Finalizable_Transient): The result of a tag-to-class-wide | |
38 | conversion does not need finalization actions. | |
39 | (Is_Tag_To_CW_Conversion): New routine. | |
40 | * exp_util.ads (Is_Tag_To_CW_Conversion): New routine. Determines | |
41 | whether an object is the result of a tag-to-class-wide conversion. | |
42 | ||
43 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
44 | ||
45 | * sem_ch13.adb (Analyze_Aspect_Specifications): correct order in which | |
46 | the left-hand-side and right-hand-side of a conjunct are inserted when | |
47 | translating a pre- or postcondition | |
48 | * sem_ch6.adb: Correct typo in comment | |
49 | ||
50 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
51 | ||
52 | * gnat_rm.texi: Ravenscar does not prohibit dependence on | |
53 | Unchecked_Conversion and Unchecked_Deallocation. | |
54 | ||
55 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
56 | ||
57 | * make.adb: Minor reformatting. | |
58 | ||
59 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
60 | ||
61 | * prj.adb, prj.ads, makeutl.adb (Complete_Mains): search for the | |
62 | sources in the project and its imported projects, but not in the whole | |
63 | tree. | |
64 | ||
65 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
66 | ||
67 | * make.adb: Remove debug trace. | |
68 | ||
69 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
70 | ||
71 | * makeutl.adb (Do_Complete): Get the absolute path name of a relative | |
72 | path in canonical form, to be able to compare path names on platforms | |
73 | such as Windows or Darwin. | |
74 | ||
75 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
76 | ||
77 | * par_sco.adb (Traverse_Declarations_Or_Statements.Set_Statement_Entry): | |
78 | For a pragma (statement with C1 = 'P'), record the sloc of the pragma. | |
79 | * scos.ads: Update documentation accordingly. | |
80 | * put_scos.adb (Output_SCO_Line): Omit statement SCOs for disabled | |
81 | pragmas. | |
82 | ||
83 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
84 | ||
85 | * sem_attr.adb (Bad_Attribute_For_Predicate): flag illegal use of | |
86 | attribute only if prefix type is scalar. | |
87 | ||
88 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
89 | ||
90 | * make.adb, makeutl.adb, prj-env.adb (Check_Mains): put back support | |
91 | in gnatmake for specifying mains on the command line that do not belong | |
92 | to the main project. These mains must currently all belong to the same | |
93 | project, though. | |
94 | (Ultimate_Extension_Of): removed, since duplicated | |
95 | Ultimate_Extending_Project. | |
96 | ||
97 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
98 | ||
99 | * make.adb (Do_Codepeer_Globalize_Step): Removed. Use CodePeer_Mode | |
100 | instead. | |
101 | (CodePeer_Mode_String): New. | |
102 | (Linking_Phase, Binding_Phase): Call gnatlink with -P switch in | |
103 | CodePeer mode. | |
104 | (Scan_Make_Arg): Do not disable binding/linking phase in CodePeer mode. | |
105 | * bindgen.adb (Gen_Elab_Calls_Ada): Ignore subprograms in CodePeer | |
106 | mode, since no useful elaboration subprogram is needed by CodePeer. | |
107 | * gnatlink.adb (Gnatlink): Add support for -P switch (CodePeer mode). | |
108 | In this mode, compile binder file with -gnatC and do stop after this | |
109 | step. | |
110 | ||
111 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
112 | ||
113 | * exp_ch7.adb: Minor comment fix. | |
114 | ||
115 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
116 | ||
117 | * exp_ch7.adb, make.adb, sem_ch10.adb, bindgen.adb, sem_res.adb, | |
118 | exp_ch4.adb, makeutl.adb: Minor reformatting. | |
119 | ||
120 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
121 | ||
122 | * make.adb, makeutl.adb, makeutl.ads (Make): major refactoring. | |
123 | Create several new subprograms to move code out of Make. This makes the | |
124 | code more readable, removes code duplication, and is a preparation work | |
125 | for adding support for aggregate projects. | |
126 | ||
127 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
128 | ||
129 | * s-po32gl.ads, s-po32gl.adb: New files. | |
130 | * exp_ch7.ads (Get_Global_Pool_For_Access_Type): New function. | |
131 | * exp_ch7.adb (Get_Global_Pool_For_Access_Type): New function. | |
132 | (Build_Finalization_Collection): Use it. | |
133 | * exp_ch4.adb (Complete_Controlled_Allocation): Ditto. | |
134 | * rtsfind.ads: System_Pool_32_Global, Re_Global_Pool_32_Object: New | |
135 | literals. | |
136 | * gcc-interface/Makefile.in: Use s-po32gl.o on VMS. | |
137 | * gcc-interface/Make-lang.in: Update dependencies. | |
138 | ||
139 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
140 | ||
141 | * makeutl.adb (Complete_Mains): add support for specs with no suffix on | |
142 | the command line. | |
143 | ||
144 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
145 | ||
146 | * make.adb, makeutl.adb (Complete_Mains): if a main specified on the | |
147 | command line is not a file name, also check whether it could be a unit | |
148 | name. | |
149 | ||
150 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> | |
151 | ||
152 | * bindgen.adb (Gen_Finalize_Library_Ada): Factor out code to generate | |
153 | the header of the finalization routine. | |
154 | If the unit has no finalizer but is a body whose spec has one, then | |
155 | generate the decrement of the elaboration entity only. | |
156 | If the unit has a finalizer and is a spec, then do not generate the | |
157 | decrement of the elaboration entity. | |
158 | (Gen_Finalize_Library_C): Likewise. | |
159 | ||
160 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
161 | ||
162 | * exp_ch7.adb (Alignment_Of): New subsidiary routine. | |
163 | (Bounds_Size_Expression): Removed. | |
164 | (Double_Alignment_Of): New subsidiary routine. | |
165 | (Make_Finalize_Address_Stmts): New local variable Index_Typ. Account | |
166 | for a hole in the dope vector of unconstrained arrays due to different | |
167 | index and element alignments. | |
168 | ||
169 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
170 | ||
171 | * sem_res.adb (Resolve_Allocator): diagnose task allocator that will | |
172 | raise program_error because body has not been seen yet. | |
173 | ||
174 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
175 | ||
176 | * sem_ch10.adb (Analyze_With_Clause): Protect against child unit with | |
177 | an unresolved name. | |
178 | ||
179 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
180 | ||
181 | * makeutl.adb (Do_Complete): Check absolute paths in canonical forms | |
182 | ||
183 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
184 | ||
185 | * alfa.adb, alfa.ads (Unique_Defining_Entity): move function from here | |
186 | * sem_util.adb, sem_util.ads (Unique_Defining_Entity): ...to here | |
187 | ||
188 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
189 | ||
190 | * sem_ch12.adb (Analyze_Package_Instantiation): Do not omit body for | |
191 | instantiation in RCI. | |
192 | ||
193 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
194 | ||
195 | * make.adb: Share more code with gprbuild | |
196 | ||
197 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
198 | ||
199 | * projects.texi: Added documentation for the IDE'Gnat project file | |
200 | attribute. | |
201 | ||
202 | 2011-08-04 Nicolas Roche <roche@adacore.com> | |
203 | ||
204 | * gnat_rm.texi: Minor editing. | |
205 | ||
206 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
207 | ||
208 | * bindgen.adb (Gen_Adafinal_Ada): Do not differentiate the main case | |
209 | and the library case for VM targets. | |
210 | (Gen_Adainit_Ada): Likewise. | |
211 | ||
212 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
213 | ||
214 | * g-altive.ads: Minor comment updates. | |
215 | * prj-nmsc.adb: Minor reformatting. | |
216 | ||
217 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
218 | ||
219 | * opt.ads | |
220 | (Normalize_Scalars_Config): Value of the configuration switch set by | |
221 | pragma Normalize_Scalars when it appears in the gnat.adc file. | |
222 | (Normalize_Scalars): New field for record Config_Switches_Type. Used | |
223 | to save and restore settings of this pragma. | |
224 | * opt.adb | |
225 | (Register_Opt_Config_Switches, Save_Opt_Config_Switches, | |
226 | Restore_Opt_Config_Switches): Add missing support for Normalize_Scalars. | |
227 | ||
228 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
229 | ||
230 | * gnat_ugn.texi: Document gnatlink options -M and -M=mapfile | |
231 | ||
232 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
233 | ||
234 | * makeutl.adb: Minor reformatting. | |
235 | ||
236 | 2011-08-04 Olivier Hainque <hainque@adacore.com> | |
237 | ||
238 | * g-altive.ads: Update comments to reflect that only the soft | |
239 | binding is available today. | |
240 | ||
241 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
242 | ||
243 | * bindgen.adb, einfo.adb, sem_ch12.adb, s-tasren.adb, sem_res.adb, | |
244 | makeutl.adb, prj-nmsc.adb, opt.ads, prj-env.adb: Minor reformatting | |
245 | * gcc-interface/Make-lang.in: Update dependencies. | |
246 | ||
247 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
248 | ||
249 | * prj-env.adb: Remove local debug traces. | |
250 | ||
251 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
252 | ||
253 | * checks.adb (Apply_Float_Conversion_Check): correct a typo where Lo_OK | |
254 | was used instead of Hi_OK, which could cause a read of an uninitialized | |
255 | value later on. Detected while working on the new warning. | |
256 | * exp_ch9.adb (Expand_N_Entry_Declaration): remove useless assignment | |
257 | to local variable. | |
258 | * sem_ch5.adb (Analyze_Assignment): set the last assignment component | |
259 | in more cases, in order to detect more unreferenced values. | |
260 | * sem_util.adb, sem_util.ads (Get_Enclosing_Object): return enclosing | |
261 | object for expression, if any. | |
262 | ||
263 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> | |
264 | ||
265 | * exp_intr.adb (Expand_Binary_Operator_Call): Look at the RM size of | |
266 | the operand types instead of the Esize. | |
267 | ||
268 | 2011-08-04 Steve Baird <baird@adacore.com> | |
269 | ||
270 | * switch-b.adb (Scan_Binder_Switches): Add -P binder switch, used to | |
271 | enable CodePeer_Mode. | |
272 | * bindusg.adb (Display): Add help message describing -P binder switch. | |
273 | * gnat_ugn.texi: Document -P binder switch. | |
274 | * bindgen.adb (Gen_Main_Ada): If CodePeer_Mode is set, then call the | |
275 | user-defined main program directly. | |
276 | (Gen_Output_File_Ada): If CodePeer_Mode is set, generate a with of the | |
277 | user-defined main program in the context clause of the package body. | |
278 | ||
279 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
280 | ||
281 | * alfa.adb, alfa.ads (Get_Entity_For_Decl): remove function, partial | |
282 | duplicate of Defining_Entity | |
283 | (Get_Unique_Entity_For_Decl): rename function into | |
284 | Unique_Defining_Entity | |
285 | * einfo.adb, einfo.ads (Is_In_ALFA, Body_Is_In_ALFA): remove flags | |
286 | (Formal_Proof_On): remove synthesized flag | |
287 | * cstand.adb, sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, | |
288 | sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_res.adb, sem_util.adb, | |
289 | sem_util.ads, stand.ads: Remove treatment associated to entities in ALFA | |
290 | * sem_prag.adb (Analyze_Pragma): remove special treatment for pragma | |
291 | Annotate (Formal_Proof) | |
292 | ||
293 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
294 | ||
295 | * prj-env.adb (Create_Config_Pragmas_File): fix handling of multi-unit | |
296 | source files with non-standard naming schemes, in imported projects | |
297 | ||
298 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
299 | ||
300 | * makeutl.adb (Complete_Mains): when a multi-unit source file is | |
301 | specified on the gprbuild command line, we need to compile all units | |
302 | within that file, not just the first one we find | |
303 | Fix error message for mains that are not found. | |
304 | ||
305 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
306 | ||
307 | * sem_ch6.adb: Update comment. | |
308 | * sem_ch12.adb: Minor reformatting. | |
309 | ||
310 | 2011-08-04 Bob Duff <duff@adacore.com> | |
311 | ||
312 | * s-tasren.adb (Task_Do_Or_Queue): Previous code was reading | |
313 | Acceptor.Terminate_Alternative without locking Acceptor, which causes a | |
314 | race condition whose symptom is to fail to lock Parent. That, in turn, | |
315 | causes Parent.Awake_Count to be accessed without locking Parent, which | |
316 | causes another race condition whose symptom is that Parent.Awake_Count | |
317 | can be off by 1 (either too high or too low). The solution is to lock | |
318 | Parent unconditionally, and then lock Acceptor, before reading | |
319 | Acceptor.Terminate_Alternative. | |
320 | ||
321 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
322 | ||
323 | * debug.adb: Update comment. | |
324 | ||
325 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
326 | ||
327 | * par_sco.adb, exp_util.adb, make.adb, a-tags.adb, sem_prag.adb, | |
328 | sem_util.adb, sem_attr.adb, exp_ch4.adb, g-comlin.adb, g-comlin.ads, | |
329 | exp_ch6.adb: Minor reformatting. | |
330 | ||
331 | 2011-08-04 Gary Dismukes <dismukes@adacore.com> | |
332 | ||
333 | * gnat_ugn.texi: Add sentence about the case of compile-time-detected | |
334 | checks for -gnateE. | |
335 | ||
336 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
337 | ||
338 | * gnat_rm.texi: update Ravenscar desription to reflect Ada2012 RM. | |
339 | ||
340 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
341 | ||
342 | * sinfo.ads: Minor reformatting. | |
343 | ||
344 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
345 | ||
346 | * makeutl.adb, makeutl.ads, prj-nmsc.adb (Complete_Mains): report error | |
347 | even if there is no location. | |
348 | ||
349 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
350 | ||
351 | * sem_res.adb, sem_ch4.adb: move check for restriction | |
352 | No_Task_Hierarchy to resolve_allocator. | |
353 | ||
354 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
355 | ||
356 | * sinfo.adb, sinfo.ads, sem_prag.adb, sem_ch12.adb (Pragma_Enabled): | |
357 | This flag of N_Pragma nodes is not used, remove it as well as all of | |
358 | the associated circuitry. | |
359 | ||
360 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
361 | ||
362 | * exp_disp.adb (Make_DT): Switch -gnatdQ disables the generation of the | |
363 | runtime check on duplicated externa tags | |
364 | * debug.adb Document switch -gnatdQ. | |
365 | ||
366 | 2011-08-04 Gary Dismukes <dismukes@adacore.com> | |
367 | ||
368 | * a-fihema.ads: Minor typo fix. | |
369 | ||
370 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
371 | ||
372 | * sem_ch10.adb: Minor comment update. | |
373 | ||
374 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
375 | ||
376 | * einfo.adb: Update the node field usage to reflect the renaming of | |
377 | Return_Flag to Return_ Flag_Or_Transient_Decl. | |
378 | (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. | |
379 | (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. | |
380 | (Write_Field15_Name): Change Return_Flag to | |
381 | Return_Flag_Or_Transient_Decl. | |
382 | * einfo.ads: Rename node field Return_Flag to | |
383 | Return_Flag_Or_Transient_Decl. Update the associated comment and all | |
384 | occurrences in entities. | |
385 | (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. Update | |
386 | associated Inline pragma. | |
387 | (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. Update | |
388 | associated Inline pragma. | |
389 | * exp_ch4.ads, exp_ch4.adb (Expand_N_Expression_With_Actions): New | |
390 | routine. | |
391 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Update the calls to | |
392 | Return_Flag and Set_Return_Flag. | |
393 | * exp_ch7.adb (Process_Declarations): Add code to recognize hook | |
394 | objects generated for controlled transients declared inside an | |
395 | Exception_With_Actions. Update the calls to Return_Flag. | |
396 | (Process_Object_Declaration): Add code to add a null guard for hook | |
397 | objects generated for controlled transients declared inside an | |
398 | Exception_With_Actions. Update related comment. | |
399 | * exp_util.adb (Has_Controlled_Objects): Add code to recognize hook | |
400 | objects generated for controlled transients declared inside an | |
401 | Exception_With_Actions. Update the calls to Return_Flag. | |
402 | * expander.adb (Expand): Add new case for N_Expression_With_Actions. | |
403 | ||
404 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
405 | ||
406 | * sem_util.adb:(Wrong_Type): Improve error message on a one-element | |
407 | positional aggregate. | |
408 | ||
409 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
410 | ||
411 | * par_sco.adb (Process_Decisions.Output_Header): Check and record pragma | |
412 | SLOC only for pragmas. | |
413 | ||
414 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
415 | ||
416 | * projects.texi: Minor typo fix. | |
417 | ||
418 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
419 | ||
420 | * prj-nmsc.adb (Check_File): Minor change to traces, to help debugging | |
421 | on case-sensitive file systems. | |
422 | ||
423 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
424 | ||
425 | * put_scos.adb (Put_SCOs): Do not emit decision SCO for an X decision | |
426 | nested in a disabled pragma. | |
427 | * scos.ads, scos.adb, par_sco.ads, par_sco.adb: Record sloc of | |
428 | enclosing pragma, if any, for X decisions. | |
429 | ||
430 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
431 | ||
432 | * sem_prag.adb: Minor reformatting. | |
433 | ||
434 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
435 | ||
436 | * a-tags.adb (Check_TSD): Avoid concatenation of strings, as it is not | |
437 | allowed in no run time mode. | |
438 | ||
439 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
440 | ||
441 | * make.adb (Check): When -gnatc is used, check for the source file | |
442 | inside the ALI file with a canonical case file name. | |
443 | ||
444 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
445 | ||
446 | * g-comlin.adb, g-comlin.ads (Add_Switch): Put back support for | |
447 | overriding the separator. | |
448 | ||
449 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
450 | ||
451 | * sem_aggr.adb, par_sco.adb, sem_type.adb, exp_util.adb, exp_ch9.adb, | |
452 | prj-nmsc.adb, sem_ch13.adb, exp_strm.adb: Minor reformatting. | |
453 | ||
454 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
455 | ||
456 | * gnat_rm.texi: Minor documentation fix for pragma Annotate. | |
457 | ||
458 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
459 | ||
460 | * sem_attr.adb (Analyze_Attribute): add check during pre-analysis that | |
461 | 'Result only appears in postcondition of function. | |
462 | ||
463 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
464 | ||
465 | * a-tags.adb (Check_TSD): When raising PROGRAM_ERROR for a duplicated | |
466 | external tag, include the value of the external tag in the exception | |
467 | message. | |
468 | ||
469 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
470 | ||
471 | * sem_attr.adb (Result): modify error message for misplaced 'Result | |
472 | ||
473 | 2011-08-04 Sergey Rybin <rybin@adacore.com> | |
474 | ||
475 | * gnat_rm.texi (pragma Annotate): Fix syntax description to make it | |
476 | clear that the second argument must be an identifier. | |
477 | ||
478 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
479 | ||
480 | * exp_ch9.adb (Build_Barrier_Function): When compiling with | |
481 | -fpreserve-control-flow, insert an IF statement on the barrier | |
482 | condition to ensure that a conditional branch instruction is generated. | |
483 | ||
484 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
485 | ||
486 | * prj-part.adb, prj.adb, prj.ads, prj-tree.ads | |
487 | (Processing_Flags.Ignore_Missing_With): new flag. | |
488 | ||
489 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
490 | ||
491 | * prj-nmsc.adb (Find_Sources, Path_Name_Of): Fix handling of | |
492 | Source_List_File on case-insensitive systems where the file is actually | |
493 | on a case-sensitive file system (NFS,...). | |
494 | ||
495 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
496 | ||
497 | * sem_ch6.adb (Analyze_Function_Return): In a rare case where a | |
498 | function return contains a controlled [extension] aggregate and the | |
499 | return statement is not part of a handled sequence of statements, wrap | |
500 | the return in a block. This ensures that all controlled temporaries | |
501 | generated during aggregate resolution will be picked up by the | |
502 | finalization machinery. | |
503 | ||
504 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
505 | ||
506 | * sem_aggr.adb (Resolve_Aggregate): If aggregate has box-initialized | |
507 | components, freeze type before resolution, to ensure that default | |
508 | initializations are present for all components. | |
509 | * sem_res.adb (Resolve_Actuals): the designated object of an | |
510 | accces-to-constant type is a legal actual in a call to an | |
511 | initialization procedure. | |
512 | ||
513 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
514 | ||
515 | * exp_util.adb (Extract_Renamed_Object): Add N_Type_Conversion and | |
516 | N_Unchecked_Type_Conversion to the possible containers of a renamed | |
517 | transient variable. | |
518 | ||
519 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
520 | ||
521 | * par-ch13.adb (Aspect_Specifications_Present): recognize | |
522 | "with Identifier'Class =>" as an aspect, so that a meaningful warning | |
523 | is issued in Strict mode. | |
524 | * par.adb: Fix typos in comments. | |
525 | ||
526 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
527 | ||
528 | * sem_attr.adb (Result): modify error message to take into account Post | |
529 | aspect when compiling Ada 2012 (or newer) code. | |
530 | ||
531 | 2011-08-04 Nicolas Roche <roche@adacore.com> | |
532 | ||
533 | * env.c (__gnat_clearenv): Avoid use of dynamic size array in order to | |
534 | remove need for GCC exceptions. | |
535 | ||
536 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
537 | ||
538 | * makeutl.adb (Do_Complete): Call Debug_Output with the name of the | |
539 | project, not the source file name. | |
540 | * prj.adb (Find_Sources.Look_For_Sources): If the source has been | |
541 | excluded, continue looking. This excluded source will only be returned | |
542 | if there is no other source with the same base name that is not locally | |
543 | removed. | |
544 | ||
545 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
546 | ||
547 | * sem_res.adb (Resolve_Intrinsic_Operator): if the result type is | |
548 | private and one of the operands is a real literal, use a qualified | |
549 | expression rather than a conversion which is not meaningful to the | |
550 | back-end. | |
551 | ||
552 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
553 | ||
554 | * sem_ch13.adb (Aspect_Loop): when an aspect X and its classwise | |
555 | corresponding aspect X'Class are allowed, proceed with analysis of the | |
556 | aspect instead of skipping it. | |
557 | ||
558 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
559 | ||
560 | * s-flocon.adb, s-flocon.ads: Add a body for s-flocon.ads | |
561 | This will allow to have an Ada implementation for the subprogram. | |
562 | ||
563 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
564 | ||
565 | * sem_ch3.adb (Analyze_Full_Type_Declaration): If the declaration is a | |
566 | completion and aspects are present, apply them to the entity for the | |
567 | type which is currently the partial view, but which is the one that | |
568 | will be frozen. | |
569 | * sem_ch13.adb (Analyze_Aspect_Specifications): if the predicate | |
570 | applies to a partial view, indicate that the full view has predicates | |
571 | and delayed aspects. | |
572 | (Replace_Type_Reference): Handle properly predicates that apply to the | |
573 | full view of a private completion. | |
574 | ||
575 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> | |
576 | ||
577 | * layout.adb (Layout_Type): For composite types, do not set Esize. | |
578 | * freeze.adb (Set_Small_Size): Remove test on alignment and do not | |
579 | set Esize. | |
580 | (Size_Known): Look at the RM size of components instead of the Esize. | |
581 | (Freeze_Record_Type): Look at the RM size instead of the Esize to | |
582 | issue warning and activate Implicit_Packing. | |
583 | (Freeze_Entity): Likewise. Do not issue a warning for alias/atomic | |
584 | if the Esize is not known. | |
585 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause) <Size>: Set Esize | |
586 | for elementary types only. | |
587 | (Analyze_Record_Representation_Clause): Look at the RM size instead | |
588 | of the Esize to issue errors. | |
589 | * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set Esize if it | |
590 | is not known. | |
591 | <E_Record_Type>: Look at the RM size instead of the Esize. Remove | |
592 | obsolete block. | |
593 | Look at the RM size instead of the Esize for types if the latter is | |
594 | not known. | |
595 | (gnat_to_gnu_field): Use Known_Esize instead of Known_Static_Esize. | |
596 | ||
597 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
598 | ||
599 | * sem_type.adb: proper handling of equality not involving anonymous | |
600 | access types. | |
601 | ||
602 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
603 | ||
604 | * exp_ch7.adb (Create_Finalizer): Remove local variables Spec_Nod and | |
605 | Vis_Decls. When creating a library-level finalizer for a package spec, | |
606 | both the declaration and body of the finalizer are inserted either in | |
607 | the visible or private declarations of the package spec. | |
608 | ||
609 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
610 | ||
611 | * sem_ch3.adb (Derive_Subprograms): Complete assertion to request the | |
612 | use of the full-view of a type when invoking Is_Ancestor. | |
613 | * sem_type.adb (Is_Ancestor): For consistency, when the traversal of | |
614 | the full-view of private parents is requested, then use also the | |
615 | full-view of the parent of the first derivation. | |
616 | ||
617 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
618 | ||
619 | * s-taprop-vxworks.adb (Enter_Task): Use System.Float_Control.Reset | |
620 | instead of the locally imported procedure. | |
621 | * s-taprop-mingw.adb (Enter_Task): Ditto. | |
622 | * s-valrea.adb (Scan_Real): Ditto. | |
623 | * s-imgrea.adb (Set_Image_Real): Ditto. | |
624 | * s-flocon.ads: Make the package pure. | |
625 | ||
626 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
627 | ||
628 | * sinfo.ads, sinfo.adb (Debug_Statement, Set_Debug_Statement): Remove. | |
629 | * tbuild.ads, tbuild.adb (Make_Pragma): Adjust accordingly. | |
630 | * sinfo-cn.ads, sinfo-cn.adb (Change_Name_To_Procedure_Call_Statement): | |
631 | New subprogram, moved here from... | |
632 | * par.adb, par-ch5.adb (P_Statement_Name): ... here. | |
633 | * par-prag.adb (Par.Prag, case Pragma_Debug): Do not perform any | |
634 | rewriting of the last argument into a procedure call statement here... | |
635 | * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): ...do it there | |
636 | instead. | |
637 | ||
638 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
639 | ||
640 | * par_sco.adb: Minor reformatting. | |
641 | ||
642 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
643 | ||
644 | * erroutc.adb: Minor reformatting. | |
645 | ||
646 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
647 | ||
648 | * par_sco.adb: Comment update. | |
649 | ||
650 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
651 | ||
652 | * s-flocon.ads: New file. | |
653 | * g-flocon.ads: Now a renaming of s-flocon. | |
654 | * Makefile.rtl: Add s-flocon.o | |
655 | ||
656 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
657 | ||
658 | * exp_strm.adb (Build_Array_Input_Function): if the array type is | |
659 | constrained, do not attempt to build a subtype of it. | |
660 | ||
661 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
662 | ||
663 | * errout.ads Change comments: remove 'R'M as an example where quotes | |
664 | are needed; add ALFA as another case where quotes are not needed | |
665 | * erroutc.adb (Set_Msg_Insertion_Reserved_Word): add ALFA as another | |
666 | case where quotes are not needed. | |
667 | * sem_ch11.adb, sem_ch13.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, | |
668 | sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_prag.adb, sem_res.adb: | |
669 | Remove all occurrences of 'A'L'F'A | |
670 | ||
671 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
672 | ||
673 | * sem_ch13.adb: check legality of invariant pragma. | |
674 | ||
675 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> | |
676 | ||
677 | * bindgen.adb: Add comments. | |
678 | ||
679 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
680 | ||
681 | * einfo.adb, einfo.ads: Free Flag254 and make Formal_Proof_On a | |
682 | synthesized flag. | |
683 | * sem_prag.adb (Analyze_Pragma): record the pragma Annotate | |
684 | (Formal_Proof, On/Off) in the Rep_Item list of the current subprogram. | |
685 | ||
686 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
687 | ||
688 | * exp_ch7.adb, exp_ch6.adb, sem_ch3.adb, layout.adb, sem_ch5.adb, | |
689 | osint-c.ads, sem_util.ads, gnat1drv.adb, targparm.ads, sem_ch6.adb, | |
690 | sem_ch13.adb, s-pooloc.adb: Minor reformatting. | |
691 | ||
692 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
693 | ||
694 | * s-pooloc.ads, s-pooglo.ads: Minor reformatting | |
695 | ||
696 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
697 | ||
698 | PR ada/47880 | |
699 | * s-pooloc.adb (Deallocate): Fix the case of deallocating the only | |
700 | allocated object. | |
701 | ||
702 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
703 | ||
704 | * einfo.ads, exp_ch4.adb: Minor reformatting. | |
705 | ||
706 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> | |
707 | ||
708 | * back_end.ads (Gen_Or_Update_Object_File): Add more comments. | |
709 | ||
710 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
711 | ||
712 | * exp_ch4.adb (Expand_Composite_Equality): code cleanup: use component | |
713 | type in all cases to compute list of primitive operations, because full | |
714 | view may be an itype that is not attached to the list of declarations. | |
715 | ||
716 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> | |
717 | ||
718 | * bindgen.adb (Gen_Adafinal_Ada): Generate an early return if the | |
719 | library has already been finalized. | |
720 | (Gen_Adafinal_C): Likewise. | |
721 | (Gen_Adainit_Ada): Generate an early return if the library has | |
722 | already been elaborated. | |
723 | (Gen_Adainit_C): Likewise. | |
724 | (Gen_Output_File_Ada): Generate an elaboration flag. | |
725 | (Gen_Output_File_C): Likewise. | |
726 | ||
727 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
728 | ||
729 | * exp_ch4.adb (Expand_Allocator_Expression): Disable the generation of | |
730 | Set_Finalize_Address_Ptr for CodePeer because Finalize_Address was not | |
731 | built in the first place. | |
732 | (Expand_N_Allocator): Disable the generation of Set_Finalize_Address_Ptr | |
733 | for CodePeer because Finalize_Address was not built to begin with. | |
734 | * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Ditto. | |
735 | ||
736 | 2011-08-04 Pascal Obry <obry@adacore.com> | |
737 | ||
738 | * adaint.c (__gnat_tmp_name): Use current process id to create temp | |
739 | filenames, this ensures unicity of filenames across processes. | |
740 | ||
741 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
742 | ||
743 | * bindgen.adb (Gen_Finalize_Library_Ada): Rename generated routine | |
744 | Raise_Controlled to Raise_From_Controlled_Operation. Update the | |
745 | signature of Raise_From_Controlled_Operation by adding flag From_Abort. | |
746 | Add False as the actual to From_Abort in the generated call to | |
747 | Raise_From_Controlled_Operation. | |
748 | ||
749 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> | |
750 | ||
751 | * osint-c.ads, osint-c.adb (Set_Library_Info_Name): Move to declaration | |
752 | so that the ali file name can be retrieved from outside of this package. | |
753 | * back_end.ads, back_end.adb (Gen_Or_Update_Object_File): New method | |
754 | doing nothing in the general case, but used to update the object file | |
755 | timestamp if directly generated by the backend. | |
756 | * gnat1drv.adb (Gnat1drv): Make sure the object file's timestamp is set | |
757 | to a later time than the ali file one. | |
758 | ||
759 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
760 | ||
761 | * einfo.adb, einfo.ads (Formal_Proof_On): new flag set on subprogram | |
762 | entities whose body contains an Annotate pragma which forces formal | |
763 | proof on this body. | |
764 | * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, | |
765 | sem_ch6.adb, sem_ch9.adb, sem_res.adb: Adapt call to | |
766 | Mark_Non_ALFA_Subprogram to pass in a message and node. | |
767 | * sem_prag.adb (Analyze_Pragma): add treatment of pragma Annotate | |
768 | (Forma_Proof, On) which sets the flag Formal_Proof_On in the | |
769 | surrounding subprogram. | |
770 | * sem_util.adb, sem_util.ads (Mark_Non_ALFA_Subprogram, | |
771 | Mark_Non_ALFA_Subprogram_Unconditional): if the subprogram being marked | |
772 | as not in ALFA is annotated with Formal_Proof being On, then an error | |
773 | is issued based on the additional parameters for message and node. | |
774 | * snames.ads-tmpl (Name_Formal_Proof): new name for annotation. | |
775 | * gcc-interface/Make-lang.in: Update dependencies. | |
776 | ||
777 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
778 | ||
779 | * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not generate | |
780 | Finalize_Address when CodePeer is enabled. | |
781 | ||
782 | 2011-08-04 Pascal Obry <obry@adacore.com> | |
783 | ||
784 | * adaint.c (__gnat_tmp_name): Use _tempnam() instead of tempnam() as | |
785 | the latter returns a pointer to a static buffer which is deallocated | |
786 | at the end of the routine. | |
787 | ||
788 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
789 | ||
790 | * sem_ch3.adb (Array_Type_Declaration): move test for type in ALFA | |
791 | after index creation; mark unconstrained base array type generated as | |
792 | being in/not in ALFA as well | |
793 | (Make_Index): mark subtype created as in/not in ALFA | |
794 | * sem_ch5.adb (Analyze_Iteration_Scheme): mark entity for iterating | |
795 | over a loop as in/not in ALFA, depending on its type and form of loop | |
796 | iteration. | |
797 | ||
798 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
799 | ||
800 | * exp_ch7.adb (Build_Object_Declarations): Initialize flag Abort | |
801 | directly to False on .NET and JVM. | |
802 | ||
803 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
804 | ||
805 | * sem_ch3.adb (Constrain_Enumeration, Constrain_Integer): remove | |
806 | constraint that subtype must come from source code to be in ALFA, so | |
807 | that anonymous subtypes can be in ALFA too. | |
808 | ||
809 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
810 | ||
811 | * sem_ch3.adb (Analyze_Object_Declaration): remove obsolete addition of | |
812 | reference for ALFA mode. | |
813 | * lib-xref-alfa.adb, lib-xref.ads (Traverse_Compilation_Unit): make | |
814 | procedure public so as to use it from formal verification back-end. | |
815 | ||
816 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> | |
817 | ||
818 | * g-comlin.adb (For_Each_Simple_Switch.Is_In_Config): Remove the | |
819 | invalid checks of the Parameter, making Remove_Switch not working | |
820 | correctly. | |
821 | ||
822 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
823 | ||
824 | * targparm.ads: Update header: no run-time exception is needed on this | |
825 | file. | |
826 | ||
827 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
828 | ||
829 | * a-fihema.adb: Use System.IO instead of GNAT.IO | |
830 | ||
831 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
832 | ||
833 | * sem_ch3.adb (Access_Definition): Anonymous access to subprogram types | |
834 | are forbidden in Compiler_Unit mode. | |
835 | ||
836 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
837 | ||
838 | * sem_util.adb: Minor reformatting. | |
839 | ||
840 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
841 | ||
842 | * bindgen.adb (Gen_Finalize_Library_Ada): Update the import string for | |
843 | library-level finalizers. | |
844 | (Gen_Finalize_Library_C): Update the import string for library-level | |
845 | finalizers. | |
846 | (Gen_Finalize_Library_Defs_C): Update the definition name of a | |
847 | library-level finalizer. | |
848 | * exp_ch7.adb: Remove with and use clauses for Stringt. | |
849 | (Create_Finalizer): Remove local variables Conv_Name, Prag_Decl, | |
850 | Spec_Decl. Add local variable Body_Id. The names of library-level | |
851 | finalizers are now manually fully qualified and are no longer external. | |
852 | A single name is now capable of servicing .NET, JVM and non-VM targets. | |
853 | Pragma Export is no longer required to provide visibility for the name. | |
854 | (Create_Finalizer_String): Removed. | |
855 | (New_Finalizer_Name): New routine which mimics New_..._Name. | |
856 | ||
857 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> | |
858 | ||
859 | * sem_elab.adb (Check_Internal_Call_Continue): Change the type of the | |
860 | elaboration counter to Standard_Short_Integer. | |
861 | * sem_util.adb (Build_Elaboration_Entity): Likewise. | |
862 | * bindgen.adb (Gen_Elab_Externals_Ada): Adjust to above change. | |
863 | (Gen_Elab_Externals_C): Likewise. | |
864 | ||
865 | 2011-08-04 Ed Falis <falis@adacore.com> | |
866 | ||
867 | * system-vxworks-arm.ads, system-vxworks-sparcv9.ads, | |
868 | system-vxworks-ppc.ads, system-vxworks-m68k.ads, | |
869 | system-vxworks-mips.ads, system-vxworks-x86.ads | |
870 | (Always_Compatible_Rep): set to False for all VxWorks targets. | |
871 | ||
872 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
873 | ||
874 | * par_sco.adb, prj-proc.adb, make.adb, bindgen.adb, prj.adb, prj.ads, | |
875 | makeutl.adb, makeutl.ads, prj-nmsc.adb, exp_ch5.adb, exp_ch12.adb, | |
876 | exp_ch7.ads, exp_util.ads, sem_util.ads, g-comlin.ads, exp_ch6.adb, | |
877 | exp_ch6.ads, lib-xref.ads, exp_ch7.adb, exp_util.adb, exp_dist.adb, | |
878 | exp_strm.adb, gnatcmd.adb, freeze.adb, g-comlin.adb, lib-xref-alfa.adb, | |
879 | sem_attr.adb, sem_prag.adb, sem_util.adb, sem_elab.adb, sem_ch8.adb, | |
880 | sem_ch11.adb, sem_eval.adb, sem_ch13.adb, sem_disp.adb, a-fihema.adb: | |
881 | Minor reformatting and code reorganization. | |
882 | ||
883 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
884 | ||
885 | * projects.texi: Added doc for aggregate projects. | |
886 | ||
887 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
888 | ||
889 | * prj-proc.adb, prj-nmsc.adb, prj-env.adb (Process_Declarative_Items): | |
890 | Add support for overriding the Project_Path in aggregate projects. | |
891 | ||
892 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
893 | ||
894 | * a-cofove.ads: Minor reformatting. | |
895 | ||
896 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
897 | ||
898 | * exp_ch7.adb (Build_Adjust_Or_Finalize_Statements): Update the comment | |
899 | on the generated code. | |
900 | (Build_Finalize_Statements): Update the comment on the generated code. | |
901 | (Build_Initialize_Statements): Update the comment on the generated code. | |
902 | (Build_Object_Declarations): Add local variable Result. The object | |
903 | declarations are now built in sequence. | |
904 | * rtsfind.ads: Add RE_Exception_Occurrence_Access to tables RE_Id and | |
905 | RE_Unit_Table. | |
906 | ||
907 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
908 | ||
909 | * checks.adb, alfa.adb, alfa.ads: Minor reformatting. | |
910 | ||
911 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> | |
912 | ||
913 | * einfo.ads (Elaboration_Entity): Document new definition and use. | |
914 | (Elaboration_Entity_Required): Adjust to above change. | |
915 | * exp_attr.adb (Expand_N_Attribute_Reference): Likewise. | |
916 | * exp_ch12.adb: And with and use for Snames. | |
917 | (Expand_N_Generic_Instantiation): Test 'Elaborated attribute. | |
918 | * exp_util.adb (Set_Elaboration_Flag): Likewise. | |
919 | * sem_attr.adb (Analyze_Attribute) <Check_Library_Unit>: Delete. | |
920 | <Check_Unit_Name>: Deal with N_Expanded_Name. | |
921 | <Attribute_Elaborated>: Extend to all unit names. | |
922 | * sem_elab.adb: And with and use for Uintp. | |
923 | (Check_Internal_Call_Continue): Adjust to Elaboration_Entity change. | |
924 | * sem_util.ads (Build_Elaboration_Entity): Adjust comment. | |
925 | * sem_util.adb (Build_Elaboration_Entity): Change type to Integer. | |
926 | * bindgen.adb (Gen_Elab_Externals_Ada): New local subprogram taken | |
927 | from Gen_Adainit_Ada. | |
928 | (Gen_Elab_Externals_C): Likewise, but taken from Gen_Adainit_C. | |
929 | (Gen_Adafinal_Ada): Remove redundant test. In the non-main program | |
930 | case, do not call System.Standard_Library.Adafinal; instead call | |
931 | finalize_library if needed. | |
932 | (Gen_Adafinal_C): Likewise. | |
933 | (Gen_Adainit_Ada): Do not set SSL.Finalize_Library_Objects in the | |
934 | non-main program case. | |
935 | (Gen_Adainit_C): Generate a couple of external declarations here. | |
936 | In the main program case, set SSL.Finalize_Library_Objects. | |
937 | (Gen_Elab_Calls_Ada): Adjust to Elaboration_Entity change. | |
938 | (Gen_Elab_Calls_C): Likewise. | |
939 | (Gen_Finalize_Library_Ada): Likewise. Skip SAL interface units. | |
940 | (Gen_Finalize_Library_C): Likewise. Generate a full function. | |
941 | (Gen_Main_C): Put back call to Ada_Final and don't finalize library | |
942 | objects here. | |
943 | (Gen_Output_File_Ada): Generate pragma Linker_Destructor for Ada_Final | |
944 | if -a is specified. Call Gen_Elab_Externals_Ada. Move around call to | |
945 | Gen_Adafinal_Ada. | |
946 | (Gen_Output_File_C): Generate __attribute__((destructor)) for Ada_Final | |
947 | if -a is specified. Call Gen_Elab_Externals_C. Remove useless couple | |
948 |