]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ada/ChangeLog
[multiple changes]
[thirdparty/gcc.git] / gcc / ada / ChangeLog
CommitLineData
c2db4b32
AC
12011-08-04 Arnaud Charlet <charlet@adacore.com>
2
3 * prj-env.adb: Remove local debug traces.
4
52011-08-04 Yannick Moy <moy@adacore.com>
6
7 * checks.adb (Apply_Float_Conversion_Check): correct a typo where Lo_OK
8 was used instead of Hi_OK, which could cause a read of an uninitialized
9 value later on. Detected while working on the new warning.
10 * exp_ch9.adb (Expand_N_Entry_Declaration): remove useless assignment
11 to local variable.
12 * sem_ch5.adb (Analyze_Assignment): set the last assignment component
13 in more cases, in order to detect more unreferenced values.
14 * sem_util.adb, sem_util.ads (Get_Enclosing_Object): return enclosing
15 object for expression, if any.
16
172011-08-04 Eric Botcazou <ebotcazou@adacore.com>
18
19 * exp_intr.adb (Expand_Binary_Operator_Call): Look at the RM size of
20 the operand types instead of the Esize.
21
222011-08-04 Steve Baird <baird@adacore.com>
23
24 * switch-b.adb (Scan_Binder_Switches): Add -P binder switch, used to
25 enable CodePeer_Mode.
26 * bindusg.adb (Display): Add help message describing -P binder switch.
27 * gnat_ugn.texi: Document -P binder switch.
28 * bindgen.adb (Gen_Main_Ada): If CodePeer_Mode is set, then call the
29 user-defined main program directly.
30 (Gen_Output_File_Ada): If CodePeer_Mode is set, generate a with of the
31 user-defined main program in the context clause of the package body.
32
ad05f2e9
AC
332011-08-04 Yannick Moy <moy@adacore.com>
34
35 * alfa.adb, alfa.ads (Get_Entity_For_Decl): remove function, partial
36 duplicate of Defining_Entity
37 (Get_Unique_Entity_For_Decl): rename function into
38 Unique_Defining_Entity
39 * einfo.adb, einfo.ads (Is_In_ALFA, Body_Is_In_ALFA): remove flags
40 (Formal_Proof_On): remove synthesized flag
41 * cstand.adb, sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb,
42 sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_res.adb, sem_util.adb,
43 sem_util.ads, stand.ads: Remove treatment associated to entities in ALFA
44 * sem_prag.adb (Analyze_Pragma): remove special treatment for pragma
45 Annotate (Formal_Proof)
46
472011-08-04 Emmanuel Briot <briot@adacore.com>
48
49 * prj-env.adb (Create_Config_Pragmas_File): fix handling of multi-unit
50 source files with non-standard naming schemes, in imported projects
51
756ef2a0
AC
522011-08-04 Emmanuel Briot <briot@adacore.com>
53
54 * makeutl.adb (Complete_Mains): when a multi-unit source file is
55 specified on the gprbuild command line, we need to compile all units
56 within that file, not just the first one we find
57 Fix error message for mains that are not found.
58
592011-08-04 Thomas Quinot <quinot@adacore.com>
60
61 * sem_ch6.adb: Update comment.
62 * sem_ch12.adb: Minor reformatting.
63
642011-08-04 Bob Duff <duff@adacore.com>
65
66 * s-tasren.adb (Task_Do_Or_Queue): Previous code was reading
67 Acceptor.Terminate_Alternative without locking Acceptor, which causes a
68 race condition whose symptom is to fail to lock Parent. That, in turn,
69 causes Parent.Awake_Count to be accessed without locking Parent, which
70 causes another race condition whose symptom is that Parent.Awake_Count
71 can be off by 1 (either too high or too low). The solution is to lock
72 Parent unconditionally, and then lock Acceptor, before reading
73 Acceptor.Terminate_Alternative.
74
4fdebd93
AC
752011-08-04 Arnaud Charlet <charlet@adacore.com>
76
77 * debug.adb: Update comment.
78
792011-08-04 Robert Dewar <dewar@adacore.com>
80
81 * par_sco.adb, exp_util.adb, make.adb, a-tags.adb, sem_prag.adb,
82 sem_util.adb, sem_attr.adb, exp_ch4.adb, g-comlin.adb, g-comlin.ads,
83 exp_ch6.adb: Minor reformatting.
84
852011-08-04 Gary Dismukes <dismukes@adacore.com>
86
87 * gnat_ugn.texi: Add sentence about the case of compile-time-detected
88 checks for -gnateE.
89
902011-08-04 Ed Schonberg <schonberg@adacore.com>
91
92 * gnat_rm.texi: update Ravenscar desription to reflect Ada2012 RM.
93
942011-08-04 Thomas Quinot <quinot@adacore.com>
95
96 * sinfo.ads: Minor reformatting.
97
982011-08-04 Emmanuel Briot <briot@adacore.com>
99
100 * makeutl.adb, makeutl.ads, prj-nmsc.adb (Complete_Mains): report error
101 even if there is no location.
102
6aaa0587
ES
1032011-08-04 Ed Schonberg <schonberg@adacore.com>
104
105 * sem_res.adb, sem_ch4.adb: move check for restriction
106 No_Task_Hierarchy to resolve_allocator.
107
35a1c212
AC
1082011-08-04 Thomas Quinot <quinot@adacore.com>
109
110 * sinfo.adb, sinfo.ads, sem_prag.adb, sem_ch12.adb (Pragma_Enabled):
111 This flag of N_Pragma nodes is not used, remove it as well as all of
112 the associated circuitry.
113
1142011-08-04 Javier Miranda <miranda@adacore.com>
115
116 * exp_disp.adb (Make_DT): Switch -gnatdQ disables the generation of the
117 runtime check on duplicated externa tags
118 * debug.adb Document switch -gnatdQ.
119
1202011-08-04 Gary Dismukes <dismukes@adacore.com>
121
122 * a-fihema.ads: Minor typo fix.
123
1242011-08-04 Yannick Moy <moy@adacore.com>
125
126 * sem_ch10.adb: Minor comment update.
127
1282011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
129
130 * einfo.adb: Update the node field usage to reflect the renaming of
131 Return_Flag to Return_ Flag_Or_Transient_Decl.
132 (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl.
133 (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl.
134 (Write_Field15_Name): Change Return_Flag to
135 Return_Flag_Or_Transient_Decl.
136 * einfo.ads: Rename node field Return_Flag to
137 Return_Flag_Or_Transient_Decl. Update the associated comment and all
138 occurrences in entities.
139 (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. Update
140 associated Inline pragma.
141 (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. Update
142 associated Inline pragma.
143 * exp_ch4.ads, exp_ch4.adb (Expand_N_Expression_With_Actions): New
144 routine.
145 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Update the calls to
146 Return_Flag and Set_Return_Flag.
147 * exp_ch7.adb (Process_Declarations): Add code to recognize hook
148 objects generated for controlled transients declared inside an
149 Exception_With_Actions. Update the calls to Return_Flag.
150 (Process_Object_Declaration): Add code to add a null guard for hook
151 objects generated for controlled transients declared inside an
152 Exception_With_Actions. Update related comment.
153 * exp_util.adb (Has_Controlled_Objects): Add code to recognize hook
154 objects generated for controlled transients declared inside an
155 Exception_With_Actions. Update the calls to Return_Flag.
156 * expander.adb (Expand): Add new case for N_Expression_With_Actions.
157
1582011-08-04 Ed Schonberg <schonberg@adacore.com>
159
160 * sem_util.adb:(Wrong_Type): Improve error message on a one-element
161 positional aggregate.
162
1632011-08-04 Vincent Celier <celier@adacore.com>
164
165 * par_sco.adb (Process_Decisions.Output_Header): Check and record pragma
166 SLOC only for pragmas.
167
1682011-08-04 Emmanuel Briot <briot@adacore.com>
169
170 * projects.texi: Minor typo fix.
171
1722011-08-04 Emmanuel Briot <briot@adacore.com>
173
174 * prj-nmsc.adb (Check_File): Minor change to traces, to help debugging
175 on case-sensitive file systems.
176
c2873f74
TQ
1772011-08-04 Thomas Quinot <quinot@adacore.com>
178
179 * put_scos.adb (Put_SCOs): Do not emit decision SCO for an X decision
180 nested in a disabled pragma.
181 * scos.ads, scos.adb, par_sco.ads, par_sco.adb: Record sloc of
182 enclosing pragma, if any, for X decisions.
183
1842011-08-04 Thomas Quinot <quinot@adacore.com>
185
186 * sem_prag.adb: Minor reformatting.
187
46414266
VC
1882011-08-04 Vincent Celier <celier@adacore.com>
189
190 * a-tags.adb (Check_TSD): Avoid concatenation of strings, as it is not
191 allowed in no run time mode.
192
1932011-08-04 Vincent Celier <celier@adacore.com>
194
195 * make.adb (Check): When -gnatc is used, check for the source file
196 inside the ALI file with a canonical case file name.
197
afab164f
EB
1982011-08-04 Emmanuel Briot <briot@adacore.com>
199
200 * g-comlin.adb, g-comlin.ads (Add_Switch): Put back support for
201 overriding the separator.
202
fe0ec02f
AC
2032011-08-04 Robert Dewar <dewar@adacore.com>
204
205 * sem_aggr.adb, par_sco.adb, sem_type.adb, exp_util.adb, exp_ch9.adb,
206 prj-nmsc.adb, sem_ch13.adb, exp_strm.adb: Minor reformatting.
207
2082011-08-04 Robert Dewar <dewar@adacore.com>
209
210 * gnat_rm.texi: Minor documentation fix for pragma Annotate.
211
2122011-08-04 Yannick Moy <moy@adacore.com>
213
214 * sem_attr.adb (Analyze_Attribute): add check during pre-analysis that
215 'Result only appears in postcondition of function.
216
2172011-08-04 Thomas Quinot <quinot@adacore.com>
218
219 * a-tags.adb (Check_TSD): When raising PROGRAM_ERROR for a duplicated
220 external tag, include the value of the external tag in the exception
221 message.
222
0180fd26
AC
2232011-08-04 Yannick Moy <moy@adacore.com>
224
225 * sem_attr.adb (Result): modify error message for misplaced 'Result
226
2272011-08-04 Sergey Rybin <rybin@adacore.com>
228
229 * gnat_rm.texi (pragma Annotate): Fix syntax description to make it
230 clear that the second argument must be an identifier.
231
2322011-08-04 Thomas Quinot <quinot@adacore.com>
233
234 * exp_ch9.adb (Build_Barrier_Function): When compiling with
235 -fpreserve-control-flow, insert an IF statement on the barrier
236 condition to ensure that a conditional branch instruction is generated.
237
2382011-08-04 Emmanuel Briot <briot@adacore.com>
239
240 * prj-part.adb, prj.adb, prj.ads, prj-tree.ads
241 (Processing_Flags.Ignore_Missing_With): new flag.
242
2432011-08-04 Emmanuel Briot <briot@adacore.com>
244
245 * prj-nmsc.adb (Find_Sources, Path_Name_Of): Fix handling of
246 Source_List_File on case-insensitive systems where the file is actually
247 on a case-sensitive file system (NFS,...).
248
2492011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
250
251 * sem_ch6.adb (Analyze_Function_Return): In a rare case where a
252 function return contains a controlled [extension] aggregate and the
253 return statement is not part of a handled sequence of statements, wrap
254 the return in a block. This ensures that all controlled temporaries
255 generated during aggregate resolution will be picked up by the
256 finalization machinery.
257
2582011-08-04 Ed Schonberg <schonberg@adacore.com>
259
260 * sem_aggr.adb (Resolve_Aggregate): If aggregate has box-initialized
261 components, freeze type before resolution, to ensure that default
262 initializations are present for all components.
263 * sem_res.adb (Resolve_Actuals): the designated object of an
264 accces-to-constant type is a legal actual in a call to an
265 initialization procedure.
266
2672011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
268
269 * exp_util.adb (Extract_Renamed_Object): Add N_Type_Conversion and
270 N_Unchecked_Type_Conversion to the possible containers of a renamed
271 transient variable.
272
78efd712
AC
2732011-08-04 Yannick Moy <moy@adacore.com>
274
275 * par-ch13.adb (Aspect_Specifications_Present): recognize
276 "with Identifier'Class =>" as an aspect, so that a meaningful warning
277 is issued in Strict mode.
278 * par.adb: Fix typos in comments.
279
2802011-08-04 Yannick Moy <moy@adacore.com>
281
282 * sem_attr.adb (Result): modify error message to take into account Post
283 aspect when compiling Ada 2012 (or newer) code.
284
2852011-08-04 Nicolas Roche <roche@adacore.com>
286
287 * env.c (__gnat_clearenv): Avoid use of dynamic size array in order to
288 remove need for GCC exceptions.
289
2902011-08-04 Vincent Celier <celier@adacore.com>
291
292 * makeutl.adb (Do_Complete): Call Debug_Output with the name of the
293 project, not the source file name.
294 * prj.adb (Find_Sources.Look_For_Sources): If the source has been
295 excluded, continue looking. This excluded source will only be returned
296 if there is no other source with the same base name that is not locally
297 removed.
298
2992011-08-04 Ed Schonberg <schonberg@adacore.com>
300
301 * sem_res.adb (Resolve_Intrinsic_Operator): if the result type is
302 private and one of the operands is a real literal, use a qualified
303 expression rather than a conversion which is not meaningful to the
304 back-end.
305
0170a691
AC
3062011-08-04 Yannick Moy <moy@adacore.com>
307
308 * sem_ch13.adb (Aspect_Loop): when an aspect X and its classwise
309 corresponding aspect X'Class are allowed, proceed with analysis of the
310 aspect instead of skipping it.
311
3122011-08-04 Tristan Gingold <gingold@adacore.com>
313
314 * s-flocon.adb, s-flocon.ads: Add a body for s-flocon.ads
315 This will allow to have an Ada implementation for the subprogram.
316
deb4f5ba
ES
3172011-08-04 Ed Schonberg <schonberg@adacore.com>
318
319 * sem_ch3.adb (Analyze_Full_Type_Declaration): If the declaration is a
320 completion and aspects are present, apply them to the entity for the
321 type which is currently the partial view, but which is the one that
322 will be frozen.
323 * sem_ch13.adb (Analyze_Aspect_Specifications): if the predicate
324 applies to a partial view, indicate that the full view has predicates
325 and delayed aspects.
326 (Replace_Type_Reference): Handle properly predicates that apply to the
327 full view of a private completion.
328
fc893455
AC
3292011-08-04 Eric Botcazou <ebotcazou@adacore.com>
330
331 * layout.adb (Layout_Type): For composite types, do not set Esize.
332 * freeze.adb (Set_Small_Size): Remove test on alignment and do not
333 set Esize.
334 (Size_Known): Look at the RM size of components instead of the Esize.
335 (Freeze_Record_Type): Look at the RM size instead of the Esize to
336 issue warning and activate Implicit_Packing.
337 (Freeze_Entity): Likewise. Do not issue a warning for alias/atomic
338 if the Esize is not known.
339 * sem_ch13.adb (Analyze_Attribute_Definition_Clause) <Size>: Set Esize
340 for elementary types only.
341 (Analyze_Record_Representation_Clause): Look at the RM size instead
342 of the Esize to issue errors.
343 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set Esize if it
344 is not known.
345 <E_Record_Type>: Look at the RM size instead of the Esize. Remove
346 obsolete block.
347 Look at the RM size instead of the Esize for types if the latter is
348 not known.
349 (gnat_to_gnu_field): Use Known_Esize instead of Known_Static_Esize.
350
3512011-08-04 Ed Schonberg <schonberg@adacore.com>
352
353 * sem_type.adb: proper handling of equality not involving anonymous
354 access types.
355
b37d5bc6
AC
3562011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
357
358 * exp_ch7.adb (Create_Finalizer): Remove local variables Spec_Nod and
359 Vis_Decls. When creating a library-level finalizer for a package spec,
360 both the declaration and body of the finalizer are inserted either in
361 the visible or private declarations of the package spec.
362
3632011-08-04 Javier Miranda <miranda@adacore.com>
364
365 * sem_ch3.adb (Derive_Subprograms): Complete assertion to request the
366 use of the full-view of a type when invoking Is_Ancestor.
367 * sem_type.adb (Is_Ancestor): For consistency, when the traversal of
368 the full-view of private parents is requested, then use also the
369 full-view of the parent of the first derivation.
370
7ab4d95a
AC
3712011-08-04 Tristan Gingold <gingold@adacore.com>
372
373 * s-taprop-vxworks.adb (Enter_Task): Use System.Float_Control.Reset
374 instead of the locally imported procedure.
375 * s-taprop-mingw.adb (Enter_Task): Ditto.
376 * s-valrea.adb (Scan_Real): Ditto.
377 * s-imgrea.adb (Set_Image_Real): Ditto.
378 * s-flocon.ads: Make the package pure.
379
3802011-08-04 Thomas Quinot <quinot@adacore.com>
381
382 * sinfo.ads, sinfo.adb (Debug_Statement, Set_Debug_Statement): Remove.
383 * tbuild.ads, tbuild.adb (Make_Pragma): Adjust accordingly.
384 * sinfo-cn.ads, sinfo-cn.adb (Change_Name_To_Procedure_Call_Statement):
385 New subprogram, moved here from...
386 * par.adb, par-ch5.adb (P_Statement_Name): ... here.
387 * par-prag.adb (Par.Prag, case Pragma_Debug): Do not perform any
388 rewriting of the last argument into a procedure call statement here...
389 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): ...do it there
390 instead.
391
3922011-08-04 Thomas Quinot <quinot@adacore.com>
393
394 * par_sco.adb: Minor reformatting.
395
51c400f5
AC
3962011-08-04 Robert Dewar <dewar@adacore.com>
397
398 * erroutc.adb: Minor reformatting.
399
4002011-08-04 Thomas Quinot <quinot@adacore.com>
401
402 * par_sco.adb: Comment update.
403
4042011-08-04 Tristan Gingold <gingold@adacore.com>
405
406 * s-flocon.ads: New file.
407 * g-flocon.ads: Now a renaming of s-flocon.
408 * Makefile.rtl: Add s-flocon.o
409
6a49f110
AC
4102011-08-04 Javier Miranda <miranda@adacore.com>
411
412 * exp_strm.adb (Build_Array_Input_Function): if the array type is
413 constrained, do not attempt to build a subtype of it.
414
4152011-08-04 Yannick Moy <moy@adacore.com>
416
417 * errout.ads Change comments: remove 'R'M as an example where quotes
418 are needed; add ALFA as another case where quotes are not needed
419 * erroutc.adb (Set_Msg_Insertion_Reserved_Word): add ALFA as another
420 case where quotes are not needed.
421 * sem_ch11.adb, sem_ch13.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb,
422 sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_prag.adb, sem_res.adb:
423 Remove all occurrences of 'A'L'F'A
424
4252011-08-04 Ed Schonberg <schonberg@adacore.com>
426
427 * sem_ch13.adb: check legality of invariant pragma.
428
a4640a39
AC
4292011-08-04 Eric Botcazou <ebotcazou@adacore.com>
430
431 * bindgen.adb: Add comments.
432
4332011-08-04 Yannick Moy <moy@adacore.com>
434
435 * einfo.adb, einfo.ads: Free Flag254 and make Formal_Proof_On a
436 synthesized flag.
437 * sem_prag.adb (Analyze_Pragma): record the pragma Annotate
438 (Formal_Proof, On/Off) in the Rep_Item list of the current subprogram.
439
4402011-08-04 Robert Dewar <dewar@adacore.com>
441
442 * exp_ch7.adb, exp_ch6.adb, sem_ch3.adb, layout.adb, sem_ch5.adb,
443 osint-c.ads, sem_util.ads, gnat1drv.adb, targparm.ads, sem_ch6.adb,
444 sem_ch13.adb, s-pooloc.adb: Minor reformatting.
445
39ade2f9
AC
4462011-08-04 Thomas Quinot <quinot@adacore.com>
447
448 * s-pooloc.ads, s-pooglo.ads: Minor reformatting
449
4502011-08-04 Thomas Quinot <quinot@adacore.com>
451
452 PR ada/47880
453 * s-pooloc.adb (Deallocate): Fix the case of deallocating the only
454 allocated object.
455
4562011-08-04 Robert Dewar <dewar@adacore.com>
457
458 * einfo.ads, exp_ch4.adb: Minor reformatting.
459
4602011-08-04 Jerome Lambourg <lambourg@adacore.com>
461
462 * back_end.ads (Gen_Or_Update_Object_File): Add more comments.
463
7efc3f2d
AC
4642011-08-04 Ed Schonberg <schonberg@adacore.com>
465
466 * exp_ch4.adb (Expand_Composite_Equality): code cleanup: use component
467 type in all cases to compute list of primitive operations, because full
468 view may be an itype that is not attached to the list of declarations.
469
4702011-08-04 Eric Botcazou <ebotcazou@adacore.com>
471
472 * bindgen.adb (Gen_Adafinal_Ada): Generate an early return if the
473 library has already been finalized.
474 (Gen_Adafinal_C): Likewise.
475 (Gen_Adainit_Ada): Generate an early return if the library has
476 already been elaborated.
477 (Gen_Adainit_C): Likewise.
478 (Gen_Output_File_Ada): Generate an elaboration flag.
479 (Gen_Output_File_C): Likewise.
480
f65df609
HK
4812011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
482
483 * exp_ch4.adb (Expand_Allocator_Expression): Disable the generation of
484 Set_Finalize_Address_Ptr for CodePeer because Finalize_Address was not
485 built in the first place.
486 (Expand_N_Allocator): Disable the generation of Set_Finalize_Address_Ptr
487 for CodePeer because Finalize_Address was not built to begin with.
488 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Ditto.
489
a0fb8fe8
AC
4902011-08-04 Pascal Obry <obry@adacore.com>
491
492 * adaint.c (__gnat_tmp_name): Use current process id to create temp
493 filenames, this ensures unicity of filenames across processes.
494
4952011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
496
497 * bindgen.adb (Gen_Finalize_Library_Ada): Rename generated routine
498 Raise_Controlled to Raise_From_Controlled_Operation. Update the
499 signature of Raise_From_Controlled_Operation by adding flag From_Abort.
500 Add False as the actual to From_Abort in the generated call to
501 Raise_From_Controlled_Operation.
502
5032011-08-04 Jerome Lambourg <lambourg@adacore.com>
504
505 * osint-c.ads, osint-c.adb (Set_Library_Info_Name): Move to declaration
506 so that the ali file name can be retrieved from outside of this package.
507 * back_end.ads, back_end.adb (Gen_Or_Update_Object_File): New method
508 doing nothing in the general case, but used to update the object file
509 timestamp if directly generated by the backend.
510 * gnat1drv.adb (Gnat1drv): Make sure the object file's timestamp is set
511 to a later time than the ali file one.
512
9534ab17
AC
5132011-08-04 Yannick Moy <moy@adacore.com>
514
515 * einfo.adb, einfo.ads (Formal_Proof_On): new flag set on subprogram
516 entities whose body contains an Annotate pragma which forces formal
517 proof on this body.
518 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
519 sem_ch6.adb, sem_ch9.adb, sem_res.adb: Adapt call to
520 Mark_Non_ALFA_Subprogram to pass in a message and node.
521 * sem_prag.adb (Analyze_Pragma): add treatment of pragma Annotate
522 (Forma_Proof, On) which sets the flag Formal_Proof_On in the
523 surrounding subprogram.
524 * sem_util.adb, sem_util.ads (Mark_Non_ALFA_Subprogram,
525 Mark_Non_ALFA_Subprogram_Unconditional): if the subprogram being marked
526 as not in ALFA is annotated with Formal_Proof being On, then an error
527 is issued based on the additional parameters for message and node.
528 * snames.ads-tmpl (Name_Formal_Proof): new name for annotation.
529 * gcc-interface/Make-lang.in: Update dependencies.
530
5312011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
532
533 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not generate
534 Finalize_Address when CodePeer is enabled.
535
5362011-08-04 Pascal Obry <obry@adacore.com>
537
538 * adaint.c (__gnat_tmp_name): Use _tempnam() instead of tempnam() as
539 the latter returns a pointer to a static buffer which is deallocated
540 at the end of the routine.
541
5c0e97dd
AC
5422011-08-04 Yannick Moy <moy@adacore.com>
543
544 * sem_ch3.adb (Array_Type_Declaration): move test for type in ALFA
545 after index creation; mark unconstrained base array type generated as
546 being in/not in ALFA as well
547 (Make_Index): mark subtype created as in/not in ALFA
548 * sem_ch5.adb (Analyze_Iteration_Scheme): mark entity for iterating
549 over a loop as in/not in ALFA, depending on its type and form of loop
550 iteration.
551
5522011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
553
554 * exp_ch7.adb (Build_Object_Declarations): Initialize flag Abort
555 directly to False on .NET and JVM.
556
7a93c64b
YM
5572011-08-04 Yannick Moy <moy@adacore.com>
558
559 * sem_ch3.adb (Constrain_Enumeration, Constrain_Integer): remove
560 constraint that subtype must come from source code to be in ALFA, so
561 that anonymous subtypes can be in ALFA too.
562
e9a1ed9b
YM
5632011-08-04 Yannick Moy <moy@adacore.com>
564
565 * sem_ch3.adb (Analyze_Object_Declaration): remove obsolete addition of
566 reference for ALFA mode.
567 * lib-xref-alfa.adb, lib-xref.ads (Traverse_Compilation_Unit): make
568 procedure public so as to use it from formal verification back-end.
569
8e293fbd
AC
5702011-08-04 Jerome Lambourg <lambourg@adacore.com>
571
572 * g-comlin.adb (For_Each_Simple_Switch.Is_In_Config): Remove the
573 invalid checks of the Parameter, making Remove_Switch not working
574 correctly.
575
5762011-08-04 Arnaud Charlet <charlet@adacore.com>
577
578 * targparm.ads: Update header: no run-time exception is needed on this
579 file.
580
5812011-08-04 Vincent Celier <celier@adacore.com>
582
583 * a-fihema.adb: Use System.IO instead of GNAT.IO
584
5852011-08-04 Thomas Quinot <quinot@adacore.com>
586
587 * sem_ch3.adb (Access_Definition): Anonymous access to subprogram types
588 are forbidden in Compiler_Unit mode.
589
cfae2bed
AC
5902011-08-04 Robert Dewar <dewar@adacore.com>
591
592 * sem_util.adb: Minor reformatting.
593
5942011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
595
596 * bindgen.adb (Gen_Finalize_Library_Ada): Update the import string for
597 library-level finalizers.
598 (Gen_Finalize_Library_C): Update the import string for library-level
599 finalizers.
600 (Gen_Finalize_Library_Defs_C): Update the definition name of a
601 library-level finalizer.
602 * exp_ch7.adb: Remove with and use clauses for Stringt.
603 (Create_Finalizer): Remove local variables Conv_Name, Prag_Decl,
604 Spec_Decl. Add local variable Body_Id. The names of library-level
605 finalizers are now manually fully qualified and are no longer external.
606 A single name is now capable of servicing .NET, JVM and non-VM targets.
607 Pragma Export is no longer required to provide visibility for the name.
608 (Create_Finalizer_String): Removed.
609 (New_Finalizer_Name): New routine which mimics New_..._Name.
610
01f0729a
AC
6112011-08-04 Eric Botcazou <ebotcazou@adacore.com>
612
613 * sem_elab.adb (Check_Internal_Call_Continue): Change the type of the
614 elaboration counter to Standard_Short_Integer.
615 * sem_util.adb (Build_Elaboration_Entity): Likewise.
616 * bindgen.adb (Gen_Elab_Externals_Ada): Adjust to above change.
617 (Gen_Elab_Externals_C): Likewise.
618
6192011-08-04 Ed Falis <falis@adacore.com>
620
621 * system-vxworks-arm.ads, system-vxworks-sparcv9.ads,
622 system-vxworks-ppc.ads, system-vxworks-m68k.ads,
623 system-vxworks-mips.ads, system-vxworks-x86.ads
624 (Always_Compatible_Rep): set to False for all VxWorks targets.
625
2c1b72d7
AC
6262011-08-04 Robert Dewar <dewar@adacore.com>
627
628 * par_sco.adb, prj-proc.adb, make.adb, bindgen.adb, prj.adb, prj.ads,
629 makeutl.adb, makeutl.ads, prj-nmsc.adb, exp_ch5.adb, exp_ch12.adb,
630 exp_ch7.ads, exp_util.ads, sem_util.ads, g-comlin.ads, exp_ch6.adb,
631 exp_ch6.ads, lib-xref.ads, exp_ch7.adb, exp_util.adb, exp_dist.adb,
632 exp_strm.adb, gnatcmd.adb, freeze.adb, g-comlin.adb, lib-xref-alfa.adb,
633 sem_attr.adb, sem_prag.adb, sem_util.adb, sem_elab.adb, sem_ch8.adb,
634 sem_ch11.adb, sem_eval.adb, sem_ch13.adb, sem_disp.adb, a-fihema.adb:
635 Minor reformatting and code reorganization.
636
6372011-08-04 Emmanuel Briot <briot@adacore.com>
638
639 * projects.texi: Added doc for aggregate projects.
640
824e9320
AC
6412011-08-04 Emmanuel Briot <briot@adacore.com>
642
643 * prj-proc.adb, prj-nmsc.adb, prj-env.adb (Process_Declarative_Items):
644 Add support for overriding the Project_Path in aggregate projects.
645
6462011-08-04 Robert Dewar <dewar@adacore.com>
647
648 * a-cofove.ads: Minor reformatting.
649
6502011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
651
652 * exp_ch7.adb (Build_Adjust_Or_Finalize_Statements): Update the comment
653 on the generated code.
654 (Build_Finalize_Statements): Update the comment on the generated code.
655 (Build_Initialize_Statements): Update the comment on the generated code.
656 (Build_Object_Declarations): Add local variable Result. The object
657 declarations are now built in sequence.
658 * rtsfind.ads: Add RE_Exception_Occurrence_Access to tables RE_Id and
659 RE_Unit_Table.
660
6612011-08-04 Robert Dewar <dewar@adacore.com>
662
663 * checks.adb, alfa.adb, alfa.ads: Minor reformatting.
664
6652011-08-04 Eric Botcazou <ebotcazou@adacore.com>
666
667 * einfo.ads (Elaboration_Entity): Document new definition and use.
668 (Elaboration_Entity_Required): Adjust to above change.
669 * exp_attr.adb (Expand_N_Attribute_Reference): Likewise.
670 * exp_ch12.adb: And with and use for Snames.
671 (Expand_N_Generic_Instantiation): Test 'Elaborated attribute.
672 * exp_util.adb (Set_Elaboration_Flag): Likewise.
673 * sem_attr.adb (Analyze_Attribute) <Check_Library_Unit>: Delete.
674 <Check_Unit_Name>: Deal with N_Expanded_Name.
675 <Attribute_Elaborated>: Extend to all unit names.
676 * sem_elab.adb: And with and use for Uintp.
677 (Check_Internal_Call_Continue): Adjust to Elaboration_Entity change.
678 * sem_util.ads (Build_Elaboration_Entity): Adjust comment.
679 * sem_util.adb (Build_Elaboration_Entity): Change type to Integer.
680 * bindgen.adb (Gen_Elab_Externals_Ada): New local subprogram taken
681 from Gen_Adainit_Ada.
682 (Gen_Elab_Externals_C): Likewise, but taken from Gen_Adainit_C.
683 (Gen_Adafinal_Ada): Remove redundant test. In the non-main program
684 case, do not call System.Standard_Library.Adafinal; instead call
685 finalize_library if needed.
686 (Gen_Adafinal_C): Likewise.
687 (Gen_Adainit_Ada): Do not set SSL.Finalize_Library_Objects in the
688 non-main program case.
689 (Gen_Adainit_C): Generate a couple of external declarations here.
690 In the main program case, set SSL.Finalize_Library_Objects.
691 (Gen_Elab_Calls_Ada): Adjust to Elaboration_Entity change.
692 (Gen_Elab_Calls_C): Likewise.
693 (Gen_Finalize_Library_Ada): Likewise. Skip SAL interface units.
694 (Gen_Finalize_Library_C): Likewise. Generate a full function.
695 (Gen_Main_C): Put back call to Ada_Final and don't finalize library
696 objects here.
697 (Gen_Output_File_Ada): Generate pragma Linker_Destructor for Ada_Final
698 if -a is specified. Call Gen_Elab_Externals_Ada. Move around call to
699 Gen_Adafinal_Ada.
700 (Gen_Output_File_C): Generate __attribute__((destructor)) for Ada_Final
701 if -a is specified. Call Gen_Elab_Externals_C. Remove useless couple
702