]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ada/ChangeLog
sem_ch3.adb, [...]: Minor reformatting.
[thirdparty/gcc.git] / gcc / ada / ChangeLog
CommitLineData
d600ef16
RD
12011-12-02 Robert Dewar <dewar@adacore.com>
2
3 * sem_ch3.adb, sem_attr.adb, a-comutr.adb, a-cbmutr.adb,
4 a-cbmutr.ads: Minor reformatting.
5
0add5a95
AC
62011-12-02 Hristian Kirtchev <kirtchev@adacore.com>
7
8 * exp_dbug.adb: Comment reformatting.
9 (Get_External_Name): Use Reset_Buffers to reset the contents of
10 Name_Buffer and Homonym_Numbers.
11 (Qualify_All_Entity_Names): Reset the contents of Name_Buffer and
12 Homonym_Numbers before creating a new qualified name for a particular
13 entity.
14 (Reset_Buffers): New routine.
15
162011-12-02 Matthew Heaney <heaney@adacore.com>
17
18 * a-cbmutr.ads (No_Node): Moved declaration from body to spec
19 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Iterator): Derives
20 from Root_Iterator.
21 (Child_Iterator): Derives from Root_Iterator.
22 (Finalize): Implemented as an override operation for Root_Iterator.
23 (First): Return value depends on Subtree component.
24 (Last): Component was renamed from Parent to Subtree.
25 (Next): Checks parameter value, and uses simplified loop.
26 (Iterate): Forwards to Iterate_Subtree.
27 (Iterate_Children): Component was renamed from Parent to Subtree.
28 (Iterate_Subtree): Checks parameter value
29
302011-12-02 Robert Dewar <dewar@adacore.com>
31
32 * usage.adb: Add lines for -gnatw.n and -gnatw.N
33 (atomic sync info msgs).
34
352011-12-02 Steve Baird <baird@adacore.com>
36
37 * sem_ch3.adb (Check_Completion): An Ada 2012
38 generic formal type doesn't require a completion.
39
402011-12-02 Eric Botcazou <ebotcazou@adacore.com>
41
42 * sem_util.adb (Set_Debug_Info_Needed): Also set the flag on the
43 packed array type if it is to be set on the array type used to
44 represent it.
45
462011-12-02 Robert Dewar <dewar@adacore.com>
47
48 * gnat_rm.texi: Eliminate confusing use of type name.
49
81435e80
TQ
502011-12-02 Thomas Quinot <quinot@adacore.com>
51
52 * sem_ch10.adb (Analyze_Compilation_Unit): For a library subprogram
53 body that acts as spec, do not create a shallow copy of the context
54 clause for the synthetized spec (instead, use the same list as
55 in the body).
56
414b312e
AC
572011-12-02 Bob Duff <duff@adacore.com>
58
59 * gnat_ugn.texi: Clarify usage of -p binder switch.
60
612011-12-02 Javier Miranda <miranda@adacore.com>
62
63 * sem_util.ads, sem_util.adb, sem_aux.ads, sem_aux.adb
64 (Effectively_Has_Constrained_Partial_View): Moved to sem_aux
65 (In_Generic_Body): Moved to sem_aux.
66 (Unit_Declaration_Node): Moved to sem_aux.
67 * einfo.ads (Effectively_Has_Constrained_Partial_View): Complete
68 documentation.
69 * exp_attr.adb, live.adb, sem_ch10.adb, checks.adb, sem.adb,
70 rtsfind.adb, sem_attr.adb, sem_elab.adb, exp_ch4.adb, sem_ch4.adb,
71 exp_ch13.adb: Add with-clause on Sem_Aux.
72
151c42b0
YM
732011-12-02 Yannick Moy <moy@adacore.com>
74
75 * sem_util.adb (Unique_Name): Reach through Unique_Entity to
76 get the name of the entity.
77 (Unique_Entity): Correct case for subprogram stubs.
78
792011-12-02 Yannick Moy <moy@adacore.com>
80
81 * sem_ch3.adb (Check_Initialization): Do not emit warning on
82 initialization of limited type object in Alfa mode.
83
7a6c40a6
RD
842011-12-02 Robert Dewar <dewar@adacore.com>
85
86 * sinfo.ads: Minor reformatting.
87 * gnat_ugn.texi: Fix confusion in use of term "type name".
88
cc96a1b8
AC
892011-12-02 Robert Dewar <dewar@adacore.com>
90
91 * sem_ch6.adb: Minor change in error message.
92
932011-12-02 Robert Dewar <dewar@adacore.com>
94
95 * sem_ch9.adb, prj-part.adb, vms_data.ads, sem_ch8.adb: Minor
96 reformatting.
97
982011-12-02 Javier Miranda <miranda@adacore.com>
99
100 * sem_ch3.adb (Constrain_Access): Enable on Ada 2005 mode the
101 static check of the rule of general access types whose designated
102 type has discriminants.
103 * sem_util.ads, sem_util.adb
104 (Effectively_Has_Constrained_Partial_View): New subprogram.
105 (In_Generic_Body): New subprogram.
106 * einfo.ads (Has_Constrained_Partial_View): Adding documentation.
107 * sem_prag.adb (Inside_Generic_Body): Removed. Replaced by new
108 subprogram In_Generic_Body.
109 * exp_attr.adb, checks.adb, sem_attr.adb, exp_ch4.adb,
110 sem_ch4.adb: In addition, this patch replaces the occurrences of
111 Has_Constrained_Partial_View by
112 Effectively_Has_Constrained_Partial_View.
113
1142011-12-02 Matthew Heaney <heaney@adacore.com>
115
116 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Iterator): Rename
117 Position component.
118 (Finalize): Remove unnecessary access check.
119 (First): Forward to First_Child.
120 (Last): Forward to Last_Child.
121 (Iterate): Check preconditions for parent node parameter.
122 (Next): Forward to Next_Sibling.
123 (Previous): Forward to Previous_Sibling.
124
35fae080
RD
1252011-12-02 Robert Dewar <dewar@adacore.com>
126
127 * a-coinve.adb, a-coorma.adb, freeze.adb, a-coorse.adb, a-comutr.adb,
128 a-coormu.adb, a-convec.adb: Minor reformatting.
129
e47e21c1
AC
1302011-12-02 Matthew Heaney <heaney@adacore.com>
131
132 * a-coormu.ads, a-ciormu.ads: Declare iterator factory function.
133 * a-ciormu.adb, a-ciormu.adb (Iterator): Declare concrete
134 Iterator type.
135 (Finalize): Decrement busy counter.
136 (First, Last): Cursor return value depends on iterator node value.
137 (Iterate): Use start position as iterator node value.
138 (Next, Previous): Forward to corresponding cursor-based operation.
139
1402011-12-02 Robert Dewar <dewar@adacore.com>
141
142 * a-cborma.adb, a-cbhama.adb, a-cbdlli.adb, a-cbmutr.adb,
143 a-cbhase.adb, a-cdlili.adb, a-cihama.adb, a-ciorse.adb, a-cidlli.adb,
144 a-cimutr.adb, a-cihase.adb, a-cohama.adb, a-cborse.adb,
145 a-ciorma.adb, a-cobove.adb: Minor reformatting.
146
c136d696
JJ
1472011-12-01 Jakub Jelinek <jakub@redhat.com>
148
149 PR bootstrap/51201
150 * gcc-interface/Make-lang.in: Initialize RTS_DIR with = instead of :=.
151
bf75cdbe
RO
1522011-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
153
154 * s-taprop-tru64.adb (Create_Task): Use Unrestricted_Access.
155
d0dcb2b1
AC
1562011-11-23 Thomas Quinot <quinot@adacore.com>
157
158 * thread.c, s-oscons-tmplt.c: Generate __gnat_pthread_condattr_setup
159 only on platforms where this is required, as determined by
160 s-oscons.h.
161
1622011-11-23 Ed Schonberg <schonberg@adacore.com>
163
164 * sem_ch9.adb: No check on entry index if error on index.
165
1662011-11-23 Gary Dismukes <dismukes@adacore.com>
167
168 * sem_ch6.adb (Analyze_Return_Statement): Improve error messages for
169 return statements nested inside an extended_return_statement.
170 * gcc-interface/Make-lang.in: Update dependencies.
171 * gcc-interface/Makefile.in (MISCLIB): Add -lutil for BSD targets.
172
ef992452
AC
1732011-11-23 Ed Schonberg <schonberg@adacore.com>
174
175 * freeze.adb (Freeze_All_Ent): An incomplete type is not
176 frozen by a subprogram body that does not come from source.
177
1782011-11-23 Pascal Obry <obry@adacore.com>
179
180 * s-oscons-tmplt.c: Add PTY_Library constant. It contains
181 the library for pseudo terminal support.
182 * g-exptty.ads: Add pseudo-terminal library into a Linker_Options
183 pragma.
184
1852011-11-23 Ed Schonberg <schonberg@adacore.com>
186
187 * sem_ch9.adb: No check on entry family index if generic.
188
1892011-11-23 Thomas Quinot <quinot@adacore.com>
190
191 * sem_ch9.adb, s-taprop.ads, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
192 s-taprop-posix.adb, s-taprop-rtx.adb, s-taprop-solaris.adb,
193 s-taprop-tru64.adb, s-taprop-vxworks.adb: Move dependency on
194 System.OS_Constants from shared spec of
195 System.Tasking.Primitive_Operations to the specific body variants
196 that really require this dependency.
197
1982011-11-23 Ed Schonberg <schonberg@adacore.com>
199
200 * sem_ch8.adb (Analyze_Subprogram_Renaming_Declaration):
201 If the declaration has aspects, analyze them so they can be
202 properly rejected.
203
2042011-11-23 Hristian Kirtchev <kirtchev@adacore.com>
205
206 * a-comutr.adb, a-coorma.adb, a-coorse.adb, a-convec.adb, a-cihase.adb,
207 a-cimutr.adb, a-coinve.adb, a-ciorma.adb, a-ciorse.adb, a-cobove.adb,
208 a-cohama.adb, a-cihama.adb, a-cidlli.adb, a-cdlili.adb, a-cbhama.adb,
209 a-cbhase.adb, a-cbmutr.adb, a-cborma.adb, a-cborse.adb, a-cbdlli.adb:
210 Add with and use clause for Ada.Finalization. Type
211 Iterator and Child_Iterator are now derived from Limited_Controlled.
212 (Finalize): New routine.
213 (Iterate): Add a renaming of counter Busy and
214 increment it. Update the return aggregate.
215 (Iterate_Children): Add a renaming of
216 counter Busy and increment it. Update the return aggregate.
217 (Iterate_Subtree): Add a renaming of counter Busy and increment
218 it. Update the return aggregate.
219 * a-cdlili.ads, a-cidlli.ads: Type List_Access is now a general access
220 type.
221 * a-cihama.ads: Type Map_Access is now a general access type.
222 * a-comutr.ads, a-cimutr.ads: Use type Natural for the two locks
223 associated with the tree.
224 * a-cohama.ads: Type Map_Access is now a general access type.
225 * a-coinve.ads, a-convec.ads: Type Vector_Access is now a general
226 access type.
227 * exp_ch5.adb (Expand_Iterator_Loop): Do not create a block
228 to wrap the loop as this is done at an earlier step, during
229 analysis. The declarations of the iterator and the cursor use
230 the usual Insert_Action mechanism when added into the tree.
231 * sem_ch5.adb (Analyze_Loop_Statement): Remove local constant
232 Loop_Statement and replace all respective uses by N. Add local
233 constant Loc. Preanalyze the loop iterator to discover whether
234 it is a container iterator and if it is, wrap the loop in a
235 block. This ensures that any controlled temporaries produced
236 by the iteration scheme share the same lifetime of the loop.
237 (Is_Container_Iterator): New routine.
238 (Is_Wrapped_In_Block): New routine.
239 (Pre_Analyze_Range): Move spec and body to the library level.
240
2412011-11-23 Sergey Rybin <rybin@adacore.com frybin>
242
243 * gnat_ugn.texi, vms_data.ads: Add documentation for new gnatpp option
244 that controls casing of type and subtype names.
245
2462011-11-23 Yannick Moy <moy@adacore.com>
247
248 * sem_ch3.adb: Minor addition of comments.
249
2502011-11-23 Thomas Quinot <quinot@adacore.com>
251
252 * prj-part.adb (Extension_Withs): New global variable,
253 contains the head of the list of WITH clauses from the EXTENDS
254 ALL projects for which virtual packages are being created.
255 (Look_For_Virtual_Projects_For): When recursing through
256 an EXTENDS ALL, add the WITH clauses of the extending
257 project to Extension_Withs. When adding a project to the
258 Virtual_Hash, record the associated Extension_Withs list.
259 (Create_Virtual_Extending_Project): Add a copy of the appropriate
260 Extension_Withs to the virtual project.
261
2622011-11-23 Thomas Quinot <quinot@adacore.com>
263
264 * mlib-tgt-specific-vxworks.adb: Minor reformatting.
265
2662011-11-23 Thomas Quinot <quinot@adacore.com>
267
268 * Make-generated.in (Sdefault.Target_Name): Set to
269 $(target_noncanonical) instead of $(target) for consistency.
270
595a055f
MH
2712011-11-23 Matthew Heaney <heaney@adacore.com>
272
273 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb (Iterator): Declared
274 Iterator type as limited (First, Last): Cursor return value
275 depends on iterator node value (Iterate): Use start position as
276 iterator node value (Next, Previous): Forward to corresponding
277 cursor-based operation.
278
b38c20a6
AC
2792011-11-23 Matthew Heaney <heaney@adacore.com>
280
281 * a-coorse.ads, a-ciorse.ads, a-cborse.ads (Set_Iterator_Interfaces):
282 Renamed from Ordered_Set_Iterator_Interfaces.
283 * a-coorse.adb, a-ciorse.adb, a-cborse.adb (Iterator): Declared
284 Iterator type as limited (First, Last): Cursor return value
285 depends on iterator node value (Iterate): Use start position as
286 iterator node value (Next, Previous): Forward to corresponding
287 cursor-based operation.
288 * a-cohase.ads, a-cohase.adb: Implemented forward iterator.
289 * a-cihase.adb, a-cbhase.adb (Iterator): Removed unnecessary
290 node component (First, Next): Forward call to corresponding
291 cursor-based operation (Iterate): Representation of iterator no
292 longer has node component
293
2942011-11-23 Hristian Kirtchev <kirtchev@adacore.com>
295
296 * exp_intr.adb (Expand_Unc_Deallocation): Ensure that the
297 dereference has a proper type before the side effect removal
298 mechanism kicks in.
299 * sem_ch3.adb (Analyze_Subtype_Declaration): Handle a rare case
300 where the base type of the subtype is a private itype created
301 to act as the partial view of a constrained record type. This
302 scenario manifests with equivalent class-wide types for records
303 with unknown discriminants.
304
3052011-11-23 Jerome Guitton <guitton@adacore.com>
306
307 * s-osprim-vxworks.adb (Clock): Use Clock_RT_Ada.
308
3092011-11-23 Thomas Quinot <quinot@adacore.com>
310
311 * s-oscons-tmplt.c: Fix unbalanced preprocessor directives Minor
312 reformatting/reorganization.
313
24fee494
TQ
3142011-11-23 Thomas Quinot <quinot@adacore.com>
315
316 * g-htable.ads: Remove old comments.
317
bc6e33a3
TQ
3182011-11-23 Thomas Quinot <quinot@adacore.com>
319
320 * exp_imgv.adb: Minor reformatting.
321
c269a1f5
AC
3222011-11-23 Robert Dewar <dewar@adacore.com>
323
324 * sem_ch9.adb (Analyze_Entry_Declaration): Check for entry
325 family bounds out of range.
326
3272011-11-23 Matthew Heaney <heaney@adacore.com>
328
329 * a-cohama.adb, a-cihama.adb, a-cbhama.adb (Iterator): Declare
330 type as limited, and remove node component.
331 (First, Next): Forward call to corresponding cursor-based operation.
332 (Iterate): Representation of iterator no longer has node component.
333
3342011-11-23 Yannick Moy <moy@adacore.com>
335
336 * exp_util.adb: Revert previous change to remove side-effects in Alfa
337 mode, which is not the correct thing to do for renamings.
338
3392011-11-23 Thomas Quinot <quinot@adacore.com>
340
341 * s-osinte-hpux.ads, s-taprop-vxworks.adb, s-taprop-tru64.adb,
342 s-osinte-vxworks.ads, s-osinte-aix.ads, s-osinte-lynxos.ads,
343 s-osinte-solaris-posix.ads, s-taprop-solaris.adb, a-exetim-posix.adb,
344 s-osinte-irix.ads, s-osinte-solaris.ads, s-oscons-tmplt.c,
345 s-taprop-irix.adb, s-osinte-hpux-dce.ads, Makefile.rtl,
346 s-osinte-tru64.ads, s-osinte-darwin.ads, s-taprop.ads,
347 s-osinte-freebsd.ads, s-osinte-lynxos-3.ads, s-taprop-hpux-dce.adb,
348 s-taprop-posix.adb: Remove hard-coded clock ids;
349 instead, generate them in System.OS_Constants.
350 (System.OS_Constants.CLOCK_RT_Ada): New constant denoting the
351 id of the clock providing Ada.Real_Time.Monotonic_Clock.
352 * thread.c: New file.
353 (__gnat_pthread_condattr_setup): New function. For platforms where
354 CLOCK_RT_Ada is not CLOCK_REALTIME, set appropriate condition
355 variable attribute.
356
3572011-11-23 Yannick Moy <moy@adacore.com>
358
359 * sem_ch3.adb: Restore the use of Expander_Active instead of
360 Full_Expander_Active, so that the evaluation is forced in Alfa
361 mode too. Otherwise, we end up with an unexpected insertion in a
362 place where it is not supposed to happen, on default parameters
363 of a call.
364
3652011-11-23 Thomas Quinot <quinot@adacore.com>
366
367 * prj-pp.adb, prj-pp.ads: Minor new addition: wrapper procedure "wpr"
368 for Pretty_Print, for use from within gdb.
369
f947ee34
AC
3702011-11-23 Ed Schonberg <schonberg@adacore.com>
371
372 * exp_ch5.adb (Expand_Iterator_Loop): Wrap the expanded loop
373 and the cursor declarations in a block, so that the loop variable
374 is local to the construct.
375
3762011-11-23 Matthew Heaney <heaney@adacore.com>
377
378 * a-coorma.ads, a-ciorma.ads, a-cborma.ads (Iterate): Returns
379 type Reversible_Iterator'Class.
380 * a-coorma.adb, a-ciorma.adb, a-cborma.adb (Iterator):
381 Declare type as limited.
382 (First, Last): Return value depends on iterator's start node value.
383 (Next, Previous): Call corresponding Cursor-based operation.
384 (Iterate): Indicate whether complete or partial iteration
385
fb2bd3a7
RD
3862011-11-23 Robert Dewar <dewar@adacore.com>
387
388 * errout.adb: Minor reformattin (Finalize): Take templates into
389 account for warning suppression.
390 * errout.ads (Set_Specific_Warning_Off): Add Used parameter.
391 * erroutc.adb: Minor reformatting (Finalize): Take generic
392 templates into account for warning suppress.
393 * erroutc.ads (Set_Specific_Warning_Off): Add Used parameter.
394 * sem_prag.adb: Minor reformatting (Analyze_Pragma,
395 case Warnings): Provide Used parameter in call to
396 Set_Specific_Warnings_Off (to deal with generic template case).
397
a1092b48
AC
3982011-11-23 Pascal Obry <obry@adacore.com>
399
400 * sem_prag.adb (Process_Convention): Better error message for
401 stdcall convention on dispatching calls.
402
4032011-11-23 Gary Dismukes <dismukes@adacore.com>
404
405 * sem_ch4.adb, sem_ch13.adb: Minor reformatting.
406
4072011-11-23 Javier Miranda <miranda@adacore.com>
408
409 * exp_ch6.adb (Expand_Simple_Function_Return): Add missing
410 implicit type conversion when the returned object is allocated
411 in the secondary stack and the type of the returned object is
412 an interface. Done to force generation of displacement of the
413 "this" pointer.
414
3d0c15cf
AC
4152011-11-23 Pascal Obry <obry@adacore.com>
416
417 * impunit.adb: Add g-exptty and g-tty units.
418
4192011-11-23 Robert Dewar <dewar@adacore.com>
420
421 * exp_imgv.adb: Minor code reorganization (use Make_Temporary).
422
95160516
AC
4232011-11-23 Robert Dewar <dewar@adacore.com>
424
425 * exp_util.adb, par-ch6.adb, sem_res.adb, par-util.adb: Minor
426 reformatting.
427
4282011-11-23 Yannick Moy <moy@adacore.com>
429
430 * sem_ch13.adb (Analyze_Aspect_Specifications): Place error on
431 line of precondition/ postcondition/invariant.
3d0c15cf 432
95160516
AC
4332011-11-23 Pascal Obry <obry@adacore.com>
434
435 * g-exptty.ads, g-exptty.adb, g-tty.ads, g-tty.adb,
436 terminals.c: New files.
437 Makefile.rtl: Add these new files.
438 * gnat_rm.texi: Add documentation for GNAT.Expect.TTY.
439 * gcc-interface/Makefile.in: Add g-exptty, g-tty, terminals.o
440 * gcc-interface/Make-lang.in: Update dependencies.
441
5328a91d
AC
4422011-11-21 Robert Dewar <dewar@adacore.com>
443
95160516 444 * exp_imgv.adb (Expand_Width_Attribute): Handle case of Discard_Names.
5328a91d
AC
445 * sem_attr.adb (Eval_Attribute, case Width): Ditto.
446
4472011-11-21 Thomas Quinot <quinot@adacore.com>
448
449 * sinfo.ads: Minor reformatting.
450
4512011-11-21 Yannick Moy <moy@adacore.com>
452
453 * exp_util.adb: Minor reformatting. Update comments.
454
8a06151a
RD
4552011-11-21 Robert Dewar <dewar@adacore.com>
456
457 * exp_prag.adb, exp_util.adb, sinfo.ads, sem_res.adb, s-stposu.adb,
458 sem_attr.adb, s-stposu.ads, s-taprop-solaris.adb, s-taprop-irix.adb,
459 sem_ch6.adb: Minor reformatting.
460
ca20a08e
AC
4612011-11-21 Arnaud Charlet <charlet@adacore.com>
462
463 * s-taprop-irix.adb, s-taprop-solaris.adb (Create_Task): Use
464 Unrestricted_Access to deal with fact that we properly detect the
465 error if Access is used.
466 * gcc-interface/Make-lang.in: Update dependencies.
467
4682011-11-21 Yannick Moy <moy@adacore.com>
469
470 * exp_prag.adb (Expand_Pragma_Check): Place error on first character
471 of expression.
472 * sem_res.adb (Resolve_Short_Circuit): Place error on first
473 character of expression.
474
4752011-11-21 Yannick Moy <moy@adacore.com>
476
477 * exp_util.adb (Remove_Side_Effects): Do nothing in Alfa mode.
478
4792011-11-21 Hristian Kirtchev <kirtchev@adacore.com>
480
481 * exp_attr.adb (Expand_N_Attribute_Reference, case
482 Max_Size_In_Storage_Elements): Account for the size of the
483 hidden list header which precedes controlled objects allocated
484 on the heap.
485 * rtsfind.ads: Add RE_Header_Size_With_Padding to the runtime
486 tables.
487 * sinfo.adb (Header_Size_Added): New routine.
488 (Set_Header_Size_Added): New routine.
489 * sinfo.ads: Add flag Controlled_Header_Added along with
490 associated comment.
491 (Header_Size_Added): New inlined routine.
492 (Set_Header_Size_Added): New inlined routine.
493 * s-stposu.adb (Allocate_Any_Controlled): Use
494 Header_Size_With_Padding to calculate the proper
495 size of the header.
496 (Deallocate_Any_Controlled): Use
497 Header_Size_With_Padding to calculate the proper size
498 of the header. (Header_Size_With_Padding): New routine.
499 (Nearest_Multiple_Rounded_Up): Removed along with its uses.
500 * s-stposu.ads (Header_Size_With_Padding): New routine.
501
5022011-11-21 Ed Schonberg <schonberg@adacore.com>
503
504 * aspects.adb: Aspect specifications are allowed on renaming
505 declarations
506 * par-ch6.adb (P_Subprogram): Parse aspect specifications in a
507 subprogram renaming declaration
508
d2d4b355
AC
5092011-11-21 Tristan Gingold <gingold@adacore.com>
510
511 * env.c: Remove unused declaration.
512
5132011-11-21 Pascal Obry <obry@adacore.com>
514
515 * s-os_lib.ads: Minor style fix.
516
5172011-11-21 Pascal Obry <obry@adacore.com>
518
519 * adaint.c (__gnat_dup2): When fd are stdout, stdin or stderr and
520 identical, do nothing on Windows XP.
521
5222011-11-21 Yannick Moy <moy@adacore.com>
523
524 * sem_ch3.adb (Constrain_Index, Process_Range_Expr_In_Decl):
525 Use Full_Expander_Active instead of Expander_Active to control
526 the forced evaluation of expressions for the sake of generating
527 checks.
528
5292011-11-21 Thomas Quinot <quinot@adacore.com>
530
531 * init.c: On FreeBSD, stack checking failures may raise SIGBUS.
532
5332011-11-21 Tristan Gingold <gingold@adacore.com>
534
535 * sysdep.c (mode_read_text, mode_write_text, mode_append_text,
536 mode_read_binary, mode_write_binary, mode_append_binary,
537 mode_read_text_plus, mode_write_text_plus, mode_append_text_plus,
538 mode_read_binary_plus, mode_write_binary_plus,
539 mode_append_binary_plus): Remove unused declarations.
540
5412011-11-21 Yannick Moy <moy@adacore.com>
542
543 * gnat_rm.texi: Minor rewording.
544
5452011-11-21 Hristian Kirtchev <kirtchev@adacore.com>
546
547 * exp_imgv.adb (Expand_Width_Attribute): Emit
548 an error message rather than a warning when pragma Discard_Names
549 prevents the computation of 'Width. Do not emit an error through
550 the use of RE_Null.
551
5522011-11-21 Javier Miranda <miranda@adacore.com>
553
554 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Add
555 implicit type conversion when the type of the allocator is an
556 interface. Done to force generation of displacement of the "this"
557 pointer when required.
558
5592011-11-21 Ed Schonberg <schonberg@adacore.com>
560
561 * sinfo.ads, sinfo.adb: Corresponding_Spec applies to expression
562 functions, and is set when the expression is a completion of a
563 previous declaration.
564 * sem_ch6.adb (Analyze_Expression_Function): To determine properly
565 whether an expression function completes a previous declaration,
566 use Find_Corresponding_Spec, as when analyzing a subprogram body.
567
5682011-11-21 Steve Baird <baird@adacore.com>
569
570 * sem_util.adb (Deepest_Type_Access_Level): Improve comment.
571 (Type_Access_Level): Improve comment.
572
08ef33f5
EB
5732011-11-21 Eric Botcazou <ebotcazou@adacore.com>
574
575 * gcc-interface/Makefile.in (INCLUDES_FOR_SUBDIR): Add $(fsrcdir) by
576 means of -iquote unconditionally.
577
83e5da69
AC
5782011-11-21 Robert Dewar <dewar@adacore.com>
579
580 * sem_ch3.adb, sem_util.adb, sem_res.adb, sem_attr.adb: Minor
581 reformatting.
582
5832011-11-21 Arnaud Charlet <charlet@adacore.com>
584
585 * s-taprop-posix.adb (Create_Task): Use Unrestricted_Access
586 to deal with fact that we properly detect the error if Access
587 is used.
588
f460d8f3
SB
5892011-11-21 Steve Baird <baird@adacore.com>
590
591 * sem_util.ads: Update comment describing function
592 Deepest_Access_Level.
593 * sem_util.adb (Deepest_Type_Access_Level): Return Int'Last for a
594 generic formal type.
595 (Type_Access_Level): Return library level
596 for a generic formal type.
597 * sem_attr.adb (Resolve_Attribute): Replace two Type_Access_Level
598 calls with calls to Deepest_Type_Access_Level.
599 * sem_ch3.adb (Analyze_Component_Declaration): replace a
600 Type_Access_Level call with a call to Deepest_Type_Access_Level.
601 * sem_res.adb (Resolve_Allocator.Check_Allocator_Discrim_Accessibility):
602 Replace three Type_Access_Level calls with calls to
603 Deepest_Type_Access_Level.
604 (Resolve_Allocator): Replace a Type_Access_Level call with a call to
605 Deepest_Type_Access_Level.
606 (Valid_Conversion.Valid_Array_Conversion): Replace a
607 Type_Access_Level call with a call to Deepest_Type_Access_Level.
608
d673c5c5
RD
6092011-11-21 Robert Dewar <dewar@adacore.com>
610
611 * sem_ch3.adb, s-taprop-vms.adb, opt.ads: Minor reformatting.
612
be482a8c
AC
6132011-11-21 Robert Dewar <dewar@adacore.com>
614
615 * sinput.ads: Minor comment fix.
616
6172011-11-21 Robert Dewar <dewar@adacore.com>
618
619 * exp_attr.adb (Expand_N_Attribute_Reference, case First_Bit,
620 Last_Bit, Position): Handle 2005 case.
621
6222011-11-21 Robert Dewar <dewar@adacore.com>
623
624 * s-atocou-builtin.adb (Decrement): Use Unrestricted_Access
625 to deal with fact that we properly detect the error if Access
626 is used.
627 (Increment): Same fix.
628 * s-taprop-linux.adb (Create_Task): Use Unrestricted_Access
629 to deal with fact that we properly detect the error if Access
630 is used.
631 * sem_util.adb (Is_Volatile_Object): Properly record that A.B is
632 volatile if the B component is volatile. This affects the check
633 for passing such a by reference volatile actual to a non-volatile
634 formal (which should be illegal)
635
6362011-11-21 Robert Dewar <dewar@adacore.com>
637
638 * freeze.adb (Freeze_Enumeration_Type): Make sure to set both
639 size and alignment for foreign convention enumeration types.
640 * layout.adb (Set_Elem_Alignment): Redo setting of alignment
641 when size is set.
642
6432011-11-21 Yannick Moy <moy@adacore.com>
644
645 * checks.adb (Apply_Access_Check, Apply_Arithmetic_Overflow_Check,
646 Apply_Discriminant_Check, Apply_Divide_Check,
647 Apply_Selected_Length_Checks, Apply_Selected_Range_Checks,
648 Build_Discriminant_Checks, Insert_Range_Checks, Selected_Length_Checks,
649 Selected_Range_Checks): Replace reference to Expander_Active
650 with reference to Full_Expander_Active, so that expansion of
651 checks is not performed in Alfa mode
652
6532011-11-21 Tristan Gingold <gingold@adacore.com>
654
655 * s-taprop-vms.adb (Create_Task): Use Unrestricted_Access to deal with
656 fact that we properly detect the error if Access is used.
657
6582011-11-21 Hristian Kirtchev <kirtchev@adacore.com>
659
660 * par-ch4.adb (P_Quantified_Expression): Add an Ada 2012 check.
661
6622011-11-21 Hristian Kirtchev <kirtchev@adacore.com>
663
664 * exp_imgv.adb: Add with and use clause for Errout.
665 (Expand_Width_Attribute): Emit a warning when in
666 configurable run-time mode to provide a better diagnostic message.
667
6682011-11-21 Hristian Kirtchev <kirtchev@adacore.com>
669
670 * s-finmas.adb (Finalize): Add comment concerning double finalization.
671
6722011-11-21 Ed Schonberg <schonberg@adacore.com>
673
674 * sem_ch3.adb (Access_Definition): If the access definition
675 is itself the return type of an access to function definition
676 which is ultimately the return type of an access to subprogram
677 declaration, its scope is the enclosing scope of the ultimate
678 access to subprogram.
679
6802011-11-21 Steve Baird <baird@adacore.com>
681
682 * sem_res.adb (Valid_Conversion): If a conversion was legal
683 in the body of a generic, then the corresponding conversion is
684 legal in the expanded body of an instance of the generic.
685
8e0aa19b
RD
6862011-11-21 Robert Dewar <dewar@adacore.com>
687
688 * sem_ch3.adb: Minor reformatting.
689
6902011-11-21 Robert Dewar <dewar@adacore.com>
691
692 * s-utf_32.adb (Is_UTF_32_Line_Terminator): Recognize NEL as
693 line terminator.
694 * sinput.ads: Add section on Handling of Source Line Terminators.
695 * types.ads (Line_Terminator): Adjust comments.
696
51fb9b73
RD
6972011-11-21 Robert Dewar <dewar@adacore.com>
698
699 * frontend.adb (Frontend): Capture restrictions from config files
700 * lib-load.adb (Load_Unit): Save/set/restore restriction pragma
701 information
702 * lib-xref.adb (Generate_Reference): Fix handling of obsolescent
703 references. This was noticed during debugging, but it is not
704 known if it causes real bugs.
705 * restrict.ads, restrict.adb: New routines to save/set/restore
706 non-partition-wide restrictions.
707 * s-rident.ads: Comment changes for new handling of
708 No_Elaboration_Code
709 * sem.adb (Sem): Save/Set/Restore non-partition-wide restrictions
710 * sem_ch10.adb (Analyze_Compilation_Unit): Remove incomplete
711 attempt to save/restore non-partition-wide restrictions (now
712 this work is all done in Sem).
713 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
714 Special handling for restriction No_Elaboration_Code.
715
7162011-11-21 Robert Dewar <dewar@adacore.com>
717
718 * gnat_ugn.texi: Document new handling of restrictions pragmas.
719
56272abe
AC
7202011-11-21 Pascal Obry <obry@adacore.com>
721
722 * s-taprop-linux.adb (Initialize_Lock): Do not allocate a cond
723 attribute as not needed.
724
7252011-11-21 Robert Dewar <dewar@adacore.com>
726
727 * sem_prag.adb: Minor reformatting.
728
7292011-11-21 Pascal Obry <obry@adacore.com>
730
731 * gnat_rm.texi: Document restriction for stdcall convention on
732 dispatching calls.
733
a5dd23a7
PO
7342011-11-21 Pascal Obry <obry@adacore.com>
735
736 * sem_prag.adb (Process_Convention): A dispatching call cannot
737 have a stdcall calling convention.
738
7392011-11-21 Pascal Obry <obry@adacore.com>
740
741 * s-taprop-linux.adb (Initialize_Lock): Do not allocate a
742 mutex attribute as not needed.
743 (Initialize_TCB): Likewise.
744 (Initialize): Likewise.
745
a4901c08
AC
7462011-11-21 Robert Dewar <dewar@adacore.com>
747
748 * sem_ch6.adb (Is_Public_Subprogram_For): New procedure
749 (Process_PPCs): Invariants only apply to public subprograms.
750
7512011-11-21 Robert Dewar <dewar@adacore.com>
752
753 * sem_util.adb, sem_util.ads, sem_attr.adb, restrict.adb,
754 restrict.ads: Fix for No_Implicit_Aliasing in the renames case.
755
7562011-11-21 Robert Dewar <dewar@adacore.com>
757
758 * a-finali.ads: Use pragma Pure_12 for this unit
759 * aspects.adb: Add aspect Pure_12
760 * aspects.ads: Add aspect Pure_12
761 * opt.ads: Add note on Pure_12
762 * par-prag.adb: Add dummy entry for Pure_12
763 * sem_prag.adb: Implement Pure_12 pragma
764 * snames.ads-tmpl: Add Entry for Pure_12
765
7662011-11-21 Sergey Rybin <rybin@adacore.com frybin>
767
768 * vms_data.ads: Add qualifiers for new gnatpp options
769 '--call_threshold' and '--par_threshold".
770 * gnat_ugn.texi: Add description for new gnatpp options
771 '--call_threshold' and '--par_threshold".
772
7732011-11-21 Robert Dewar <dewar@adacore.com>
774
775 * lib.ads: Minor reformatting.
776
7772011-11-21 Robert Dewar <dewar@adacore.com>
778
779 * lib-load.ads: Add comment.
780
4bf201ed
AC
7812011-11-21 Gary Dismukes <dismukes@adacore.com>
782
783 * sem_elab.adb: Minor reformatting
784
7852011-11-21 Robert Dewar <dewar@adacore.com>
786
787 * exp_ch6.adb: Minor reformatting.
788
7892011-11-21 Ed Schonberg <schonberg@adacore.com>
790
791 * sem_ch12.adb (Check_Formal_Package_Instance): If a formal
792 subprogram of the formal package is covered by an others
793 association with a box initialization, no check is needed
794 against the actual in the instantiation of the formal package.
795
7962011-11-21 Robert Dewar <dewar@adacore.com>
797
798 * sem_elab.adb (Check_Internal_Call_Continue): Suppress junk
799 elab warning from within precondition/postcondition etc.
800
bdf69d33
AC
8012011-11-21 Ed Schonberg <schonberg@adacore.com>
802
803 * exp_ch6.adb (Expand_Actuals): In Ada 2012, a function call
804 with out parameters may generate assignments to force constraint
805 checks. These checks must be properly placed in the code after the
806 declaration or statement that contains the call.
807
8082011-11-21 Fedor Rybin <frybin@adacore.com>
809
810 * gnat_ugn.texi: Adding info on current gnattest limitations an
811 support of -X option.
812
8132011-11-21 Robert Dewar <dewar@adacore.com>
814
815 * a-cfdlli.adb, a-cbdlli.adb: Minor reformatting.
816
03e1048e
AC
8172011-11-20 Robert Dewar <dewar@adacore.com>
818
819 * exp_ch6.adb, exp_util.adb: Minor reformatting
820
8212011-11-20 Eric Botcazou <ebotcazou@adacore.com>
822
823 * sinfo.ads (Reference): Document that it is OK to set
824 Is_Known_Non_Null on a temporary initialized to a N_Reference
825 node.
826
8272011-11-20 Matthew Heaney <heaney@adacore.com>
828
829 * a-cbdlli.adb, a-cfdlli.adb (Move): Set Last component to 0
830 for Source list.
831
74cab21a
EB
8322011-11-20 Eric Botcazou <ebotcazou@adacore.com>
833
834 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment):
835 Declare NEW_EXPR local variable and attach the
836 temporary to it. Set Is_Known_Non_Null on the temporary.
837 (Make_Build_In_Place_Call_In_Object_Declaration): Likewise.
838 * exp_util.adb (Remove_Side_Effects): Set Is_Known_Non_Null on
839 the temporary created to hold the 'Reference of the expression,
840 if any.
841 * checks.adb (Install_Null_Excluding_Check): Bail out for the
842 Get_Current_Excep.all.all idiom generated by the expander.
843
088b91c7
EB
8442011-11-20 Eric Botcazou <ebotcazou@adacore.com>
845
846 * gcc-interface/trans.c (struct language_function): Add GNAT_RET.
847 (f_gnat_ret): New macro.
848 (struct nrv_data): Add GNAT_RET.
849 (finalize_nrv_unc_r): New helper function.
850 (finalize_nrv): Add GNAT_RET parameter. Copy it into DATA. If the
851 function returns unconstrained, use finalize_nrv_unc_r as callback.
852 (return_value_ok_for_nrv_p): Test the alignment of RET_OBJ only if
853 RET_OBJ is non-null.
854 (Subprogram_Body_to_gnu): Pass GNAT_RET to finalize_nrv.
855 (gnat_to_gnu) <N_Return_Statement>: In the return-unconstrained case,
856 if optimization is enabled, record candidates for the Named Return
857 Value optimization.
858
8592011-11-20 Eric Botcazou <ebotcazou@adacore.com>
0d24bf76
EB
860
861 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Add comment.
862 (gnat_to_gnu) <N_Return_Statement>: Add 'else' to avoid doing a useless
863 test. Tweak default case.
864 <N_Goto_Statement>: Use better formatting.
865 * gcc-interface/utils2.c (maybe_wrap_malloc): Use INIT_EXPR instead of
866 MODIFY_EXPR to initialize the storage.
867 (build_allocator): Likewise.
868
b1a785fb
EB
8692011-11-20 Eric Botcazou <ebotcazou@adacore.com>
870
871 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Adjust
872 call to components_to_record.
873 (components_to_record): Add FIRST_FREE_POS parameter. For the variant
874 part, reuse enclosing union even if there is a representation clause
875 on the Unchecked_Union. If there is a variant part, compute the new
876 first free position, if any. Adjust call to self. Use a single field
877 directly only if it hasn't got a representation clause or is placed at
878 offset zero. Create the variant part at offset 0 if all the fields
879 down to this level have a rep clause. Do not chain the variant part
880 immediately and adjust downstream.
881 Do not test ALL_REP before moving the fields without rep clause to the
882 previous level. Call create_rep_part to create the REP part and force
883 a minimum size on it if necessary. Do not chain it immediately.
884 Create a fake REP part if there are fields without rep clause that need
885 to be laid out starting from FIRST_FREE_POS.
886 At the end, chain the REP part and then the variant part.
887 (create_rep_part): New function.
888 (get_rep_part): Minor tweak.
889 * gcc-interface/utils.c (tree_code_for_record_type): Minor tweak.
890
590175d2
IS
8912011-11-18 Iain Sandoe <iains@gcc.gnu.org>
892
893 PR target/50678
a6b7e723
EB
894 * init.c (__gnat_error_handler) [Darwin]: Move workaround to the
895 bug filed as radar #10302855 from __gnat_error_handler to...
896 (__gnat_adjust_context_for_raise) [Darwin]: ...here. New function.
590175d2 897 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE) [Darwin]: Define.
590175d2 898
1e1ae0af
TG
8992011-11-18 Tristan Gingold <gingold@adacore.com>
900 Iain Sandoe <iains@gcc.gnu.org>
901
902 PR target/49992
903 * mlib-tgt-specific-darwin.adb (Archive_Indexer_Options): Remove.
a6b7e723 904 * gcc-interface/Makefile.in (darwin): Remove ranlib special-casing.
1e1ae0af 905
5f41422f
IS
9062011-11-12 Iain Sandoe <iains@gcc.gnu.org>
907
908 * gcc-interface/Makefile.in (stamp-gnatlib-$(RTSDIR)): Don't link
909 s-oscons.ads.
910 (OSCONS_CPP, OSCONS_EXTRACT): New.
a6b7e723
EB
911 (./bldtools/oscons/xoscons): New target.
912 ($(RTSDIR)/s-oscons.ads): Likewise.
913 (gnatlib): Depend on $(RTSDIR)/s-oscons.ads.
5f41422f
IS
914 * gcc-interface/Make-lang.in (ada/s-oscons.ads) Remove as dependency.
915 * Make-generated.in: Remove machinery to generate xoscons and
916 ada/s-oscons.ads.
917
033ba5bf
EB
9182011-11-10 Eric Botcazou <ebotcazou@adacore.com>
919
920 * fe.h (Serious_Errors_Detected): New macro.
921 * gcc-interface/gigi.h (build_atomic_load): Declare.
922 (build_atomic_store): Likewise.
923 * gcc-interface/trans.c (atomic_sync_required_p): New predicate.
924 (call_to_gnu): Add ATOMIC_SYNC parameter. Use local variable.
925 Build an atomic load for an In or In Out parameter if needed.
926 Build an atomic store for the assignment of an Out parameter if needed.
927 Build an atomic store to the target if ATOMIC_SYNC is true.
928 (present_in_lhs_or_actual_p): New predicate.
929 (gnat_to_gnu) <N_Identifier>: Build an atomic load if needed.
930 <N_Explicit_Dereference>: Likewise.
931 <N_Indexed_Component>: Likewise.
932 <N_Selected_Component>: Likewise.
933 <N_Assignment_Statement>: Adjust call to call_to_gnu.
934 Build an atomic store to the LHS if needed.
935 <N_Function_Call>: Adjust call to call_to_gnu.
936 * gcc-interface/utils2.c: Include toplev.h.
937 (resolve_atomic_size): New static function.
938 (build_atomic_load): New function.
939 (build_atomic_store): Likewise.
940 * gcc-interface/Make-lang.in (ada/utils2.o): Add toplev.h.
941
b5bf3335
AC
9422011-11-07 Olivier Hainque <hainque@adacore.com>
943
944 * sigtramp-ppcvxw.c: Add general comments.
945 (CFI_COMMON_REGS): Remove rule for r1, as in other unwinders. Add
946 rules for r2 to r13, plus CTR and XER.
947 (CFA_REG): New, register number used to hold the local CFA.
948 (CFI_DEF_CFA, SIGTRAMP_BODY): Use it.
949 Make that 15, not 14, with documentation.
950 (TCR): Undef before definition, preventing conflict with reg number in
951 VxWorks headers.
952
9532011-11-07 Robert Dewar <dewar@adacore.com>
954
955 * exp_util.ads, exp_alfa.adb, a-cohama.adb, a-cohama.ads, sem_ch4.adb,
956 aspects.ads, exp_ch8.adb, exp_ch8.ads, atree.ads: Minor reformatting.
957 * gcc-interface/Make-lang.in: Update dependencies.
958
9592011-11-07 Ed Schonberg <schonberg@adacore.com>
960
961 * exp_ch6.adb: A tagged type is a legal actual for an aliased
962 formal.
963
9642011-11-07 Pascal Obry <obry@adacore.com>
965
966 * g-socket.adb, g-socket.ads: Minor reformatting.
967
9682011-11-07 Robert Dewar <dewar@adacore.com>
969
970 * sem_res.adb (Resolve_Actuals): Minor error message improvement.
971
9722011-11-07 Robert Dewar <dewar@adacore.com>
973
974 * gnat_ugn.texi: Add discussion of default mode handling of
975 source representation with no -gnatW option given, in particular
976 noting that NEL (next line) is not recognized in this context.
977
9ee76313
AC
9782011-11-07 Yannick Moy <moy@adacore.com>
979
980 * sem_util.adb (Note_Possible_Modification): In Alfa mode,
981 generate a reference for a modification even when the modification
982 does not come from source.
983
9842011-11-07 Ed Schonberg <schonberg@adacore.com>
985
986 * exp_ch5.adb (Expand_Iterator_Loop): For the "of" iterator form,
987 use the indexing attributes rather than the Element function,
988 to obtain variable references.
989 * sem_ch4.adb (Try_Container_Indexing): Code cleanup. Use
990 Find_Aspect rather than iterating over representation
991 items. Improve error message.
992 * a-cohama.adb, a-cohama.ads Update to latest RM, with two versions
993 of Reference functions.
994
7b7a0c2b
AC
9952011-11-07 Yannick Moy <moy@adacore.com>
996
997 * sem_util.adb (Unique_Entity): For a parameter on a subprogram
998 body that has a corresponding parameter on the subprogram
999 declaration, define the unique entity as being the declaration
1000 one.
1001
10022011-11-07 Ed Schonberg <schonberg@adacore.com>
1003
1004 * sem_ch6.adb (Analyze_Return_Type): In Ada 2012 mode, if the
1005 return type of a function is the class-wide type of an incomplete
1006 type T, T can be a Taft-amendment type and does not have to be
1007 completed in the current private part.
1008
10092011-11-07 Ed Schonberg <schonberg@adacore.com>
1010
1011 * aspects.ads (Inherited_Aspect): Map that indicates type aspects
1012 that are inherited by default, and apply to the class-wide type
1013 as well.
1014 * aspects.adb (Find_Aspect): If the entity is class-wide and the
1015 aspect is inherited, use the aspect of the specific type.
1016
cc570be6
AC
10172011-11-07 Hristian Kirtchev <kirtchev@adacore.com>
1018
1019 * exp_alfa.adb: Remove with and use clause for
1020 Exp_Ch8. Add with and use clause for Exp_Util.
1021 Remove local constant Disable_Processing_Of_Renamings.
1022 (Expand_Alfa_N_Object_Renaming_Declaration): The expansion of
1023 object renamings has been reenabled.
1024 (Expand_Possible_Renaming):
1025 The expansion of identifier and expanded names has been
1026 reenabled. Perform the substitutions only for entities that
1027 denote an object.
1028 * exp_ch8.ads, exp_ch8.adb (Evaluate_Name): Moved to Exp_Util.
1029 * exp_util.adb (Evaluate_Name): Moved from Exp_Ch8.
1030 (Remove_Side_Effects): Alphabetize local variables. Add a guard
1031 to avoid the infinite expansion of an expression in Alfa mode. Add
1032 processing for function calls in Alfa mode.
1033 * exp_util.ads (Evaliate_Name): Moved from Exp_Ch8.
1034
10352011-11-07 Ed Schonberg <schonberg@adacore.com>
1036
1037 * freeze.adb (Freeze_Entity): If the entity is an access to
1038 subprogram whose designated type is itself a subprogram type,
1039 its own return type must be decorated with size information.
1040
b6d185a5
AC
10412011-11-04 Arnaud Charlet <charlet@adacore.com>
1042
1043 * gcc-interface/Make-lang.in: Update dependencies.
1044
1adaea16
AC
10452011-11-04 Robert Dewar <dewar@adacore.com>
1046
1047 * sprint.adb (Sprint_Node_Actual, case Qualified_Expression):
1048 Avoid junk semicolon after argument of machine code Asm operand.
1049
10502011-11-04 Robert Dewar <dewar@adacore.com>
1051
1052 * exp_ch11.adb (Generate_Push_Pop): Inhibit push/pop nodes in
1053 CodePeer mode or if restriction No_Exception_Handlers is present.
1054 * exp_ch6.adb (Expand_N_Subprogram_Body): (Inhibit push/pop
1055 nodes in CodePeer mode or if restriction No_Exception_Handlers
1056 is present.
1057
10582011-11-04 Robert Dewar <dewar@adacore.com>
1059
1060 * s-tassta.adb, atree.ads, errout.adb, sinput.adb: Minor reformatting.
1061
10622011-11-04 Ed Schonberg <schonberg@adacore.com>
1063
1064 * sem_ch6.adb (Analyze_Subprogram_Specification): The
1065 specification is legal if it is a function that returns an
1066 abstract type, if it comes from an attribute renaming of a stream
1067 attribute of an abstract type.
1068
10692011-11-04 Gary Dismukes <dismukes@adacore.com>
1070
1071 * exp_util.adb (Is_Possibly_Unaligned_Object): In case of indexed
1072 components, check whether recursively check whether the prefix
1073 denotes an unaligned object.
1074
10752011-11-04 Ed Schonberg <schonberg@adacore.com>
1076
1077 * sem_prag.adb (Analyze_Pragma, case Debug): The argument of
1078 the pragma is legal if it is an expanded name that denotes a
1079 procedure that be can called without parameters.
1080
10812011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1082
1083 * gnat_ugn.texi (Performance Considerations) <Vectorization
1084 of loops>: New sub-section. <Other Optimization Switches>:
1085 Minor tweak.
1086
4c9fe6c7
AC
10872011-11-04 Robert Dewar <dewar@adacore.com>
1088
1089 * gnat_rm.texi: Minor reformatting.
1090
10912011-11-04 Matthew Heaney <heaney@adacore.com>
1092
1093 * a-convec.adb, a-coinve.adb, a-cobove.adb (Merge): Raise PE
1094 when Target and Source denote same non-empty object
1095 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb (Merge): Ditto
1096
10972011-11-04 Robert Dewar <dewar@adacore.com>
1098
1099 * exp_attr.adb: Minor reformatting.
1100
11012011-11-04 Ed Schonberg <schonberg@adacore.com>
1102
1103 * exp_ch5.adb (Expand_Assign_Record): Do not generate a
1104 discriminant assignment within an initialization proc if the
1105 record is an unchecked union, as it can only come from the
1106 initialization of an unchecked union component.
1107
11082011-11-04 Robert Dewar <dewar@adacore.com>
1109
1110 * gnat_ugn.texi: Minor reformatting.
1111
11122011-11-04 Robert Dewar <dewar@adacore.com>
1113
1114 * par-labl.adb (Rewrite_As_Loop): Generate info msg rather than
1115 warning message.
1116
11172011-11-04 Robert Dewar <dewar@adacore.com>
1118
1119 * exp_ch4.adb: Minor code reorganization (remove junk obsolete
1120 var Save_Space).
1121
6ec084f3
HK
11222011-11-04 Hristian Kirtchev <kirtchev@adacore.com>
1123
1124 * exp_alfa.adb: Add local constant
1125 Disable_Processing_Of_Renamings;
1126 (Expand_Alfa_N_Object_Renaming_Declaration): Disable
1127 the name evaluation of object renamings for now.
1128 (Expand_Potential_Renaming): Do not perform the substitution
1129 for now.
1130 * exp_util.adb (Remove_Side_Effects): Remove processing for
1131 functions with side effects in Alfa mode.
1132
73fe1679
AC
11332011-11-04 Gary Dismukes <dismukes@adacore.com>
1134
1135 * bindgen.adb (Gen_Elab_Calls): In the case
1136 of the AAMP target, set elaboration entities to 1 rather than
1137 incrementing.
1138
11392011-11-04 Ed Schonberg <schonberg@adacore.com>
1140
1141 * sem_ch10.adb (Install_Limited_With_Unit): To establish the
1142 proper entities on the ancestors of a child unit that appear
1143 in a limited_with clause, follow the unit links because the
1144 units are not analyzed and scope information is incomplete.
1145
11462011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1147
1148 * exp_ch4.adb (Expand_N_Selected_Component): Refine code
1149 setting the Atomic_Sync_Required flag to detect one more case.
1150 * exp_util.adb (Activate_Atomic_Synchronization): Refine code
1151 setting the Atomic_Sync_Required flag to exclude more cases,
1152 depending on the parent of the node to be examined.
1153
11542011-11-04 Bob Duff <duff@adacore.com>
1155
1156 * g-excact.adb: Minor: use named notation.
1157
11582011-11-04 Ed Schonberg <schonberg@adacore.com>
1159
1160 * sem_ch5.adb: Improve error messages for illegal iterators.
1161
b2ab8c33
AC
11622011-11-04 Hristian Kirtchev <kirtchev@adacore.com>
1163
1164 * exp_alfa.adb: Add with and use clauses for Exp_Ch8 and
1165 Sem_Util.
1166 (Expand_Alfa): Alphabetize cases on first choice. Add
1167 processing for object renaming declarations, identifiers and
1168 expanded names.
1169 (Expand_Alfa_N_In): Remove useless return.
1170 (Expand_Alfa_N_Object_Renaming_Declaration): New routine.
1171 (Expand_Potential_Renaming): New routine.
1172 * exp_ch8.adb (Evaluate_Name): Moved to the top level.
1173 (Expand_N_Object_Declaration): Alphabetize local variables. Move
1174 Evaluate_Name out to the top level.
1175 * exp_ch8.ads (Evaluate_Name): Moved from body to package spec.
1176 * exp_util.adb (Remove_Side_Effects): Add processing for
1177 functions with side effects in Alfa mode.
1178
11792011-11-04 Hristian Kirtchev <kirtchev@adacore.com>
1180
1181 * gnat_rm.texi: Add entries for
1182 restrictions No_Relative_Delay, No_Requeue_Statements and
1183 No_Stream_Optimizations.
1184
11852011-11-04 Ed Schonberg <schonberg@adacore.com>
1186
1187 * sem_ch4.adb: Set type of entity in prefixed call, for
1188 completeness in a generic context.
1189
4c318253
AC
11902011-11-04 Yannick Moy <moy@adacore.com>
1191
1192 * sem_prag.adb: Minor refactoring (renaming of a parameter).
1193
11942011-11-04 Robert Dewar <dewar@adacore.com>
1195
1196 * atree.ads: Minor reformatting.
1197
11982011-11-04 Robert Dewar <dewar@adacore.com>
1199
1200 * checks.adb (Atomic_Synchronization_Disabled): Check -gnatd.d
1201 and -gnatd.e here
1202 * exp_ch2.adb (Expand_Entity_Reference): Use
1203 Activate_Atomic_Synchronization
1204 * exp_ch4.adb (Expand_N_Explicit_Dereference): Use
1205 Activate_Atomic_Synchronization (Expand_N_Indexed_Compoonent):
1206 Activate_Atomic_Synchronization (Expand_N_Selected_Component):
1207 Use Activate_Atomic_Synchronization
1208 * exp_util.ads, exp_util.adb (Activate_Atomic_Synchronization): New
1209 procedure.
1210 * sinfo.ads, sinfo.adb (Atomic_Sync_Required): Can now apply to
1211 N_Selected_Component node
1212
37765e95
RD
12132011-11-04 Robert Dewar <dewar@adacore.com>
1214
1215 * sem_prag.adb, atree.ads, prj-env.adb, prj-env.ads: Minor reformatting.
1216
8c18a165
AC
12172011-11-04 Yannick Moy <moy@adacore.com>
1218
1219 * atree.adb, atree.ads (Set_Original_Node): New set procedure.
1220 * sem_ch13.adb (Analyze_Aspect_Specifications/Pre_Post_Aspects):
1221 In ASIS mode, no splitting of aspects between conjuncts.
1222 (Analyze_Aspect_Specifications/Aspect_Test_Case): Make pragma
1223 expressions refer to the original aspect expressions through
1224 the Original_Node link. This is used in semantic analysis for
1225 ASIS mode, so that the original expression also gets analyzed.
1226 * sem_prag.adb (Preanalyze_TC_Args,
1227 Check_Precondition_Postcondition,
1228 Analyze_Pragma/Pragma_Test_Case): In ASIS mode, for a pragma
1229 generated from a source aspect, also analyze the original aspect
1230 expression.
1231 (Check_Expr_Is_Static_Expression): New procedure
1232 similar to existing procedure Check_Arg_Is_Static_Expression,
1233 except called on expression inside pragma.
1234
12352011-11-04 Tristan Gingold <gingold@adacore.com>
1236
1237 * prj-env.adb, prj-env.ads (Find_Name_In_Path): New function, from
1238 Find_Project.Try_Path_Name.
1239 (Find_Project): Use Find_Name_In_Path to implement Try_Path_Name.
1240
12412011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1242
1243 * s-atocou.ads (Atomic_Counter): Remove redundant pragma Volatile.
1244
12452011-11-04 Pascal Obry <obry@adacore.com>
1246
1247 * projects.texi: Add short description for qualifiers aggregate
1248 and aggregate library.
1249
12502011-11-04 Matthew Heaney <heaney@adacore.com>
1251
1252 * Makefile.rtl, impunit.adb: Added a-cogeso.ad[sb]
1253 * a-cgaaso.adb: Replaced implementation with instantiation
1254 of Generic_Sort.
1255 * a-cogeso.ad[sb] This is the new Ada 2012 unit
1256 Ada.Containers.Generic_Sort
1257
5972791c
AC
12582011-11-04 Robert Dewar <dewar@adacore.com>
1259
1260 * exp_ch2.adb (Expand_Entity_Reference): Do not set
1261 Atomic_Sync_Required for the case of a prefix of an attribute.
1262 * exp_ch4.adb (Expand_N_Explicit_Dereference): May require
1263 atomic synchronization
1264 (Expand_N_Indexed_Component): Ditto.
1265 (Expand_B_Selected_Component): Ditto.
1266 * sem_prag.adb (Process_Suppress_Unsuppress):
1267 Disable/Enable_Atomic_Synchronization can now occur for array
1268 types with pragma Atomic_Components.
1269 * sinfo.ads, sinfo.adb (Atomic_Sync_Required): Can now occur on
1270 N_Explicit_Dereference nodes and on N_Indexed_Component nodes.
1271
12722011-11-04 Gary Dismukes <dismukes@adacore.com>
1273
1274 * gnat_ugn.texi: Editorial corrections for gnattest section.
1275
8751a35c
RD
12762011-11-04 Robert Dewar <dewar@adacore.com>
1277
1278 * sem_prag.adb: Minor reformatting.
1279 * gnat_rm.texi: Update documentation for pragma Warnings (Off,
1280 "***") usage.
1281 * exp_ch2.adb (Expand_Entity_Reference): Only set
1282 Atomic_Sync_Required on entities that are variables. Doesn't
1283 make any sense on anything else.
1284
fb5d63c6
RD
12852011-11-04 Robert Dewar <dewar@adacore.com>
1286
1287 * exp_ch2.adb (Expand_Entity_Reference): Extend handling of
1288 atomic sync to type case.
1289 * sem_prag.adb (Process_Suppress_Unsuppress): Atomic Sync can
1290 apply to types.
1291
a51cd0ec 12922011-11-04 Robert Dewar <dewar@adacore.com>
25ec1790 1293
a51cd0ec
AC
1294 * sem_warn.adb (Warn_On_Useless_Assignment): More accurate test
1295 for call vs assign.
1296 * gcc-interface/Make-lang.in: Update dependencies.
1297
12982011-11-04 Robert Dewar <dewar@adacore.com>
1299
1300 * sem_prag.adb: Detect more cases of Long_Float inconsistencies at
1301 compile time.
1302
13032011-11-04 Matthew Heaney <heaney@adacore.com>
1304
1305 * Makefile.rtl, impunit.adb: Added a-sfecin.ads,
1306 * a-sfhcin.ads, a-sflcin.ads, a-sbecin.ad[sb], a-sbhcin.ad[sb],
1307 a-sblcin.ad[sb], a-suecin.ad[sb], a-suhcin.ad[sb], a-sulcin.ad[sb]
1308 * a-sfecin.ads, a-sfhcin.ads, a-sflcin.ads, a-sbecin.ad[sb],
1309 a-sbhcin.ad[sb], a-sblcin.ad[sb], a-suecin.ad[sb], a-suhcin.ad[sb],
1310 a-sulcin.ad[sb]: New files.
1311
13122011-11-04 Geert Bosch <bosch@adacore.com>
1313
1314 * i-forbla-unimplemented.ads, s-gecola.adb, s-gecola.ads,
1315 s-gerebl.adb, s-gerebl.ads, i-forbla.adb, i-forbla.ads,
1316 i-forlap.ads, i-forbla-darwin.adb, s-gecobl.adb, s-gecobl.ads,
1317 s-gerela.adb, s-gerela.ads: Remove partial interface to BLAS/LAPACK.
1318 * gcc-interface/Makefile.in: Remove libgnala and related objects.
25ec1790 1319
a31945d7
AC
13202011-11-04 Matthew Heaney <heaney@adacore.com>
1321
1322 * a-cdlili.ad[sb], a-cidlli.ad[sb], a-coorse.ad[sb], a-ciorse.ad[sb],
1323 a-coorma.ad[sb], a-ciorma.ad[sb], a-coormu.ad[sb], a-ciormu.ad[sb],
1324 a-cohama.ad[sb], a-cihama.ad[sb], a-cohase.ad[sb], a-cihase.ad[sb],
1325 a-convec.ad[sb], a-coinve.ad[sb] (Assign, Copy): New operations
1326 added to package.
1327
a51cd0ec
AC
13282011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1329
1330 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Do not assert
1331 that the type of the parameters isn't dummy in type_annotate_only mode.
1332
a31945d7
AC
13332011-11-04 Robert Dewar <dewar@adacore.com>
1334
1335 * sem_ch12.adb: Minor reformatting
1336
13372011-11-04 Gary Dismukes <dismukes@adacore.com>
1338
1339 * bindgen.adb (Gen_Elab_Calls): In the case of the AAMP target,
1340 initialize elaboration entities to zero when specs are processed.
1341
a53f3523
IS
13422011-10-28 Iain Sandoe <iains@gcc.gnu.org>
1343 Eric Botcazou <ebotcazou@adacore.com>
1344
1345 PR target/50678
be7552fc
EB
1346 * init.c (__gnat_error_handler) [Darwin]: Apply a work-around to the
1347 bug filed as radar #10302855 (inconsistent unwind data for sigtramp).
a53f3523 1348
0de82be5
EB
13492011-10-28 Eric Botcazou <ebotcazou@adacore.com>
1350
1351 PR ada/50842
1352 * gcc-interface/Makefile.in (SYMDEPS): Delete.
1353 (LIBICONV): New variable.
1354 (LIBICONV_DEP): Likewise.
1355 (LIBS): Add $(LIBICONV).
1356 (LIBDEPS): Add $(LIBICONV_DEP).
1357 (EXTRA_GNATTOOLS_OBJS): Merge into...
1358 (TOOLS_LIBS): ...this. Add $(LIBICONV).
e1e5852c 1359
1586f8a3
EB
13602011-10-26 Eric Botcazou <ebotcazou@adacore.com>
1361
1362 * gcc-interface/decl.c (elaborate_expression_1): Add EXPR_PUBLIC_P local
1363 variable. Always create the elaboration variable, if any, as constant.
1364
e1e5852c
EB
13652011-10-26 Eric Botcazou <ebotcazou@adacore.com>
1366
1367 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Try to
1368 make a packable type for fields of union types as well.
1369 <is_type>: Use RECORD_OR_UNION_TYPE_P predicate.
1370 (gnat_to_gnu_component_type): Try to make a packable type for fields
1371 of union types as well.
1372 (make_packable_type): Use RECORD_OR_UNION_TYPE_P predicate.
1373 (maybe_pad_type): Try to make a packable type for fields of union types
1374 as well.
1375 (gnat_to_gnu_field): Likewise.
1376 (is_variable_size): Use RECORD_OR_UNION_TYPE_P predicate.
1377 (set_rm_size): Likewise.
1378 (rm_size): Likewise.
1379 * gcc-interface/misc.c (gnat_type_max_size): Likewise.
1380 * gcc-interface/trans.c (add_decl_expr): Likewise.
1381 * gcc-interface/utils.c (finish_record_type): Likewise.
1382 * gcc-interface/utils2.c (build_simple_component_ref): Likewise.
1383
0025cb63
EB
13842011-10-26 Eric Botcazou <ebotcazou@adacore.com>
1385
1386 * gcc-interface/decl.c (gnat_to_gnu_field): Always check components
1387 declared as atomic. Move around conditionally executed code.
1388
b3c33641
AC
13892011-10-24 Robert Dewar <dewar@adacore.com>
1390
be7552fc 1391 * sem.adb (Initialize): Fix bug that blew up if called a second time.
b3c33641
AC
1392
13932011-10-24 Robert Dewar <dewar@adacore.com>
1394
1395 * tb-alvxw.c, tracebak.c, expect.c, initflt.c, tb-alvms.c,
1396 tb-ivms.c, tb-gcc.c: Update headers to GPL 3.
1397
13982011-10-24 Robert Dewar <dewar@adacore.com>
1399
1400 * sem_prag.adb (Analyze_Pragma, case Debug): Give proper pragma
1401 name in error msg.
1402
14032011-10-24 Hristian Kirtchev <kirtchev@adacore.com>
1404
be7552fc 1405 * gnat_rm.texi: Add an entry for restriction No_Finalization.
b3c33641
AC
1406
14072011-10-24 Ed Schonberg <schonberg@adacore.com>
1408
1409 * sem_ch12.adb (Insert_Freeze_Node_For_Instance): If the
1410 current instance is within the one that contains the generic,
1411 the freeze node for the current one must appear in the current
1412 declarative part. Ditto if the current instance is within another
1413 package instance. In both of these cases the freeze node of the
1414 previous instance is not relevant.
1415
14162011-10-24 Gary Dismukes <dismukes@adacore.com>
1417
1418 * switch-m.adb (Normalize_Compiler_Switches): Add recognition
1419 of AAMP-specific switches -univ and -aamp_target.
1420
14212011-10-24 Robert Dewar <dewar@adacore.com>
1422
1423 * a-tienau.adb (Put): Deal properly with limited line length.
1424
14252011-10-24 Robert Dewar <dewar@adacore.com>
1426
1427 * sem_warn.adb, sem_ch12.adb: Minor reformatting.
1428
30e1709c 14292011-10-24 Tristan Gingold <gingold@adacore.com>
8263e17a
TG
1430
1431 * gcc-interface/Makefile.in: Use GNU ld switches to generate map files
1432 on AIX.
1433
12b4d338
AC
14342011-10-24 Ed Schonberg <schonberg@adacore.com>
1435
1436 * sem_ch12.adb (Earlier): make available globally. If both
1437 nodes have the same sloc, the freeze node that does not come
1438 from source is the later one.
1439 (True_Parent): Make available globally.
1440 (Previous_Instance): Subsidiary of
1441 Insert_Freeze_Node_For_Instance, to check whether the generic
1442 parent of the current instance is declared within a previous
1443 instance in the same unit or declarative part, in which case the
1444 freeze nodes of both instances must appear in order to prevent
1445 elaboration problems in gigi.
1446 * sem_ch12.adb (Insert_Freeze_Node_For_Instance): A stub is a
1447 freeze point, and the freeze node of a preceding instantiation
1448 must be inserted before it.
1449
14502011-10-24 Robert Dewar <dewar@adacore.com>
1451
1452 * checks.ads, checks.adb: Add handling of Synchronization_Check
1453 * debug.adb: Add doc for -gnatd.d and -gnatd.e (disable/enable
1454 atomic sync).
1455 * exp_ch2.adb (Expand_Entity_Reference): Set Atomic_Sync_Required
1456 flag Minor code reorganization.
1457 * opt.ads (Warn_On_Atomic_Synchronization): New switch.
1458 * par-prag.adb: Add dummy entries for pragma
1459 Disable/Enable_Atomic_Synchronization.
1460 * sem_prag.adb (Process_Suppress_Unsuppress): Handle
1461 case of Atomic_Synchronization specially (not suppressed
1462 by All_Checks, cannot be set from Source).
1463 (Pragma Disable/Enable_Atomic_Synchronization): Add processing.
1464 * sinfo.ads, sinfo.adb: Add Atomic_Sync_Required flag
1465 * snames.ads-tmpl: Add entry for Atomic_Synchronization Add
1466 entry for pragma Disable/Enable_Atomic_Synchronization
1467 * switch-c.adb: The -gnatp switch does not disable
1468 Atomic_Synchronization Add -gnatep switch to disable
1469 Atomic_Synchronization.
1470 * types.ads: Add entry for Synchronization_Check
1471 * usage.adb: Add line for -gnated switch
1472 * warnsw.adb: Settings for Warn_On_Atomic_Synchronization
1473
08ce7bb8
AC
14742011-10-24 Geert Bosch <bosch@adacore.com>
1475
be7552fc
EB
1476 * s-gearop.adb (Back_Substitute): Avoid overflow if matrix bounds start
1477 at Integer'First.
08ce7bb8
AC
1478
14792011-10-24 Robert Dewar <dewar@adacore.com>
1480
be7552fc 1481 * sem_ch12.adb, s-gearop.adb: Minor reformatting.
08ce7bb8
AC
1482
14832011-10-24 Robert Dewar <dewar@adacore.com>
1484
be7552fc
EB
1485 * warnsw.adb: Add some missing warnings to Set_GNAT_Mode_Warnings.
1486 * warnsw.ads: Add comments to Set_GNAT_Mode_Warnings.
08ce7bb8 1487
292689c2
AC
14882011-10-24 Emmanuel Briot <briot@adacore.com>
1489
1490 * prj-proc.adb (Process_Expression_Variable_Decl): No special
1491 handling for Project_Path unless it is an attribute.
1492
14932011-10-24 Javier Miranda <miranda@adacore.com>
1494
1495 * sem_ch12.adb (Check_Hidden_Primitives): New subprogram.
1496 (Install_Hidden_Primitives): New subprogram.
1497 (Restore_Hidden_Primitives): New subprogram.
1498 (Analyze_Formal_Package_Declaration,
1499 Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
1500 Invoke Check_Hidden_Primitives after every call to
1501 Analyze_Associations, and invoke Restore_Hidden_Primitives to
1502 restore their visibility after processing the instantiation.
1503 (Instantiate_Package_Body): Install visible primitives before
1504 analyzing the instantiation and uninstall them to restore their
1505 visibility when the instantiation has been analyzed.
1506 * sem_util.ads, sem_util.adb (Add_Suffix): New subprogram
1507 (Remove_Suffix): New subprogram
1508 * sem_ch3.adb (Derive_Subprogram): When handling
1509 a derived subprogram for the instantiation of a formal derived
1510 tagged type, inherit the dispatching attributes from the actual
1511 subprogram (not from the parent type).
1512
db4b3c49
AC
15132011-10-24 Vasiliy Fofanov <fofanov@adacore.com>
1514
1515 * gnat_ugn.texi: Document explicit use of XDECGNAT library.
1516
15172011-10-24 Hristian Kirtchev <kirtchev@adacore.com>
1518
1519 * exp_ch3.adb (Build_Assignment): Add local constant N_Loc and
1520 update its uses.
1521 (Build_Discriminant_Assignments): Add local variable D_Loc and update
1522 its uses.
1523 (Build_Init_Statements): Add local variables Comp_Loc, Decl_Loc and
1524 Var_Loc and update their uses.
1525 (Build_Record_Init_Proc): Code reformatting.
1526 (Increment_Counter): Add formal parameter Loc.
1527 (Make_Counter): Add formal parameter Loc.
1528
15292011-10-24 Eric Botcazou <ebotcazou@adacore.com>
1530
1531 * sem_disp.adb (Covers_Some_Interface): Fix typo.
1532
15332011-10-24 Matthew Heaney <heaney@adacore.com>
1534
be7552fc
EB
1535 * a-cuprqu.adb, a-cbprqu.adb (Dequeue_Only_High_Priority): Fix sense
1536 of predicate.
db4b3c49
AC
1537
15382011-10-24 Yannick Moy <moy@adacore.com>
1539
1540 * sem_ch13.adb (Analyze_Aspect_Specifications/Aspect_Test_Case):
1541 Translate arguments in positional notation into pragma argument
1542 association arguments for the generated pragma.
1543
15442011-10-24 Arnaud Charlet <charlet@adacore.com>
1545
1546 * exp_ch5.adb: Fix minor typo.
1547
15482011-10-24 Ed Schonberg <schonberg@adacore.com>
1549
1550 * sem_ch3.adb (Is_Visible_Component): Refine predicate for
1551 the case of a component reference in an instance body, when the
1552 enclosing type is private.
1553
86f0e17a
AC
15542011-10-24 Sergey Rybin <rybin@adacore.com frybin>
1555
1556 * gnat_ugn.texi: For gnatelim, move the note about using the GNAT
1557 driver for getting the project support into gnatelim section.
1558
15592011-10-24 Robert Dewar <dewar@adacore.com>
1560
be7552fc 1561 * gnat_rm.texi: Minor correction to documentation on address clause.
86f0e17a
AC
1562
15632011-10-24 Hristian Kirtchev <kirtchev@adacore.com>
1564
1565 * s-finmas.adb (Attach): Synchronize and call the unprotected version.
1566 (Attach_Unprotected): New routine.
1567 (Delete_Finalize_Address): Removed.
1568 (Delete_Finalize_Address_Unprotected): New routine.
1569 (Detach): Synchronize and call the unprotected version.
1570 (Detach_Unprotected): Remove locking.
1571 (Finalize): Add various comment on synchronization. Lock the critical
1572 region and call the unprotected versions of routines.
1573 (Finalize_Address): Removed.
1574 (Finalize_Address_Unprotected): New routine.
1575 (Set_Finalize_Address): Synchronize and call
1576 the unprotected version.
1577 (Set_Finalize_Address_Unprotected): New routine.
1578 (Set_Heterogeneous_Finalize_Address): Removed.
1579 (Set_Heterogeneous_Finalize_Address_Unprotected): New routine.
1580 (Set_Is_Heterogeneous): Add comment on synchronization and
1581 locking.
1582 * s-finmas.ads: Flag Finalization_Started is no longer atomic
1583 because synchronization uses task locking / unlocking.
1584 (Attach): Add comment on usage.
1585 (Attach_Unprotected): New routine.
1586 (Delete_Finalize_Address): Renamed to
1587 Delete_Finalize_Address_Unprotected.
1588 (Detach): Add comment on usage.
1589 (Detach_Unprotected): New routine.
1590 (Finalize_Address): Renamed to Finalize_Address_Unprotected.
1591 (Set_Finalize_Address): Add comment on usage.
1592 (Set_Finalize_Address_Unprotected): New routine.
1593 (Set_Heterogeneous_Finalize_Address): Renamed to
1594 Set_Heterogeneous_Finalize_Address_Unprotected.
1595 * s-stposu.adb (Allocate_Any_Controlled): Add local variable
1596 Allocation_Locked. Add various comments on synchronization. Lock
1597 the critical region and call the unprotected version of
1598 routines.
1599 (Deallocate_Any_Controlled): Add various comments on
1600 synchronization. Lock the critical region and call the unprotected
1601 version of routines.
1602
16032011-10-24 Ed Schonberg <schonberg@adacore.com>
1604
1605 * sem_ch3.adb (Set_Fixed_Range): The bounds of a fixed point type
1606 are universal and must carry the corresponding type.
1607 * sem_eval.adb (Check_Non_Static_Context): If the type of the
1608 expression is universal real, as may be the case for a fixed point
1609 expression with constant operands in the context of a conversion,
1610 there is nothing to check.
1611 * s-finmas.adb: Minor reformatting
1612
be98aaf0
EB
16132011-10-23 Eric Botcazou <ebotcazou@adacore.com>
1614
1615 * gcc-interface/decl.c (create_concat_name): Add explicit cast.
1616
e45c0886
EB
16172011-10-20 Eric Botcazou <ebotcazou@adacore.com>
1618
1619 * gcc-interface/Make-lang.in (GNATLIBFLAGS, GNATLIBCFLAGS, THREAD_KIND,
1620 TRACE): Reintroduce.
1621 (ada/tracebak.o, ada/targext.o, ada/cio.o, ada/init.o,
1622 ada/initialize.o, ada/raise.o): Reintroduce explicit compilation rules.
1623
27ab5bd8
EB
16242011-10-20 Eric Botcazou <ebotcazou@adacore.com>
1625
1626 * gcc-interface/trans.c (lhs_or_actual_p): New predicate.
1627 (unchecked_conversion_nop): Use it.
1628 (gnat_to_gnu): Likewise.
1629
b7562769
EB
16302011-10-20 Eric Botcazou <ebotcazou@adacore.com>
1631
1632 * back_end.adb (Call_Back_End): Pass the maximum logical line number
1633 instead of the maximum physical line number to gigi.
1634 * gcc-interface/trans.c (Sloc_to_locus): Cope with line zero.
1635
53e7c794 16362011-10-16 Tom Tromey <tromey@redhat.com>
46427374
TT
1637 Dodji Seketeli <dodji@redhat.com>
1638
be7552fc
EB
1639 * gcc-interface/trans.c (gigi, Sloc_to_locus): Adjust to use the new
1640 public ordinary map interface.
46427374 1641
ea10ca9c
AC
16422011-10-16 Tristan Gingold <gingold@adacore.com>
1643
53e7c794 1644 * link.c (_AIX): Add support for GNU ld.
ea10ca9c
AC
1645
16462011-10-16 Fedor Rybin <frybin@adacore.com>
1647
1648 * gnat_ugn.texi: Fixing gnattest example names in the doc.
1649 Adding explanation to additional tests usage.
1650
16512011-10-16 Robert Dewar <dewar@adacore.com>
1652
1653 * exp_ch6.adb, sem_ch6.adb: Minor reformatting.
1654
16552011-10-16 Eric Botcazou <ebotcazou@adacore.com>
1656
1657 * a-convec.adb: Fix minor inconsistencies.
1658
16592011-10-16 Matthew Heaney <heaney@adacore.com>
1660
1661 * a-cusyqu.ads, a-cbsyqu.ads, a-cuprqu.ads, a-cbprqu.ads (package
1662 Implementation): Specify pragma Implementation_Defined.
1663
c225ba50
NR
16642011-10-15 Nicolas Roche <roche@adacore.com>
1665
1666 * gcc-interface/lang-specs.h: Ensure -mrtp switch is passed when using
1667 either rtp-smp or ravenscar-cert-rtp runtimes.
1668
3e452820
AC
16692011-10-15 Bob Duff <duff@adacore.com>
1670
1671 * exp_ch6.adb (Add_Unconstrained_Actuals_To_Build_In_Place_Call):
1672 Do not create a pool formal on unless RE_Root_Storage_Pool_Ptr
1673 is available.
1674 (Expand_N_Extended_Return_Statement): Do not create a renaming of the
1675 build-in-place pool parameter unless RE_Root_Storage_Pool_Ptr is
1676 available.
1677 (Make_Build_In_Place_Call_In_Allocator): Add the user-defined
1678 pool only if RE_Root_Storage_Pool_Ptr is available.
1679 (Make_Build_In_Place_Call_In_Object_Declaration): Do not add a
1680 pool actual unless RE_Root_Storage_Pool_Ptr is available.
1681 * sem_ch6.adb (Create_Extra_Formals): Add build-in-place pool
1682 formal only if RE_Root_Storage_Pool_Ptr is available.
1683
16842011-10-15 Matthew Heaney <heaney@adacore.com>
1685
1686 * a-cusyqu.ads, a-cbsyqu.ads, a-cuprqu.ads, a-cbprqu.ads (Queue
1687 type): Specify Priority aspect for protected type.
1688
b7539c3b
AC
16892011-10-14 Ed Schonberg <schonberg@adacore.com>
1690
1691 * exp_disp.adb (Check_Premature_Freezing): If an untagged type
1692 is a generic actual, it is a subtype of a type that was frozen
1693 by the instantiation, and even if not marked frozen it does not
1694 affect the construction of the dispatch table.
1695
16962011-10-14 Robert Dewar <dewar@adacore.com>
1697
1698 * make.adb, mlib-utl.adb, sem_util.adb, sem_ch4.adb: Minor code
1699 reformatting.
1700 * s-rident.ads: Add missing Compiler_Unit pragma.
1701
af89615f
AC
17022011-10-14 Gary Dismukes <dismukes@adacore.com>
1703
1704 * sem_res.adb: Minor reformatting.
1705
17062011-10-14 Hristian Kirtchev <kirtchev@adacore.com>
1707
1708 * exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call):
1709 Code and comment reformatting. Use BIP_Task_Master
1710 when creating a _master.
1711 (BIP_Formal_Suffix): Code reformatting. Correct the case for
1712 BIP_Task_Master.
1713 (Make_Build_In_Place_Call_In_Object_Declaration): Use
1714 BIP_Task_Master when creating a reference to the enclosing
1715 function's _master formal.
1716 (Move_Activation_Chain): Use BIP_Task_Master when creating a reference
1717 to the _master.
1718 * exp_ch6.ads: Change BIP_Master to BIP_Task_Master.
1719 (Needs_BIP_Finalization_Master): Alphabetized.
1720 * sem_ch6.adb (Create_Extra_Formals): Update the usage of
1721 BIP_Task_Master.
1722
17232011-10-14 Ed Schonberg <schonberg@adacore.com>
1724
1725 * par-ch6.adb (P_Return_Object_Declaration): In Ada 2012 mode,
1726 reject an aliased keyword on the object declaration of an extended
1727 return statement. In older versions of the language indicate
1728 that this is illegal in the standard.
1729
17302011-10-14 Pascal Obry <obry@adacore.com>
1731
1732 * sem_util.adb, sem_ch4.adb: Minor reformatting.
1733
17342011-10-14 Ed Schonberg <schonberg@adacore.com>
1735
1736 * sem_ch13.adb: Recognize properly procedure calls that are
1737 transformed into code statements.
1738
17392011-10-14 Vincent Celier <celier@adacore.com>
1740
1741 * projects.texi: Minor fix in project example.
1742
f2d10a02
AC
17432011-10-14 Ed Schonberg <schonberg@adacore.com>
1744
1745 * sem_util.adb: Return objects are aliased if their type is
1746 immutably limited as per AI05-0053.
1747
17482011-10-14 Gary Dismukes <dismukes@adacore.com>
1749
1750 * exp_ch4.adb (Expand_N_Op_And): Remove Short_Circuit_And_Or
1751 expansion code (moved to sem_res) (Expand_N_Op_Or): Remove
1752 Short_Circuit_And_Or expansion code (moved to sem_res).
1753 * sem_res.adb (Resolve_Logical_Op): Add code to rewrite Boolean
1754 "and" and "or" operators as short-circuit "and then" and "or
1755 else", when pragma Short_Circuit_And_Or is active.
1756
2fcc44fa
AC
17572011-10-13 Robert Dewar <dewar@adacore.com>
1758
1759 * sem_ch9.adb, sem_util.adb, sem_util.ads, exp_ch6.adb, sem_ch4.adb,
1760 sem_ch6.adb, exp_ch3.adb: Minor reformatting.
1761
17622011-10-13 Arnaud Charlet <charlet@adacore.com>
1763
1764 * Makefile.rtl (GNATRTL_NONTASKING_OBJS): Add a-ngcoar.o.
1765
17662011-10-13 Jerome Guitton <guitton@adacore.com>
1767
1768 * sysdep.c (__gnat_get_task_options): Re-enable VX_SPE_TASK on vThreads
1769
17702011-10-13 Eric Botcazou <ebotcazou@adacore.com>
1771
1772 * a-convec.ads (Cursor): Minor reformatting.
1773 * a-convec.adb (Next): Fix minor inconsistencies.
1774 (Previous): Likewise.
1775
9b62eb32
AC
17762011-10-13 Ed Schonberg <schonberg@adacore.com>
1777
1778 * sem_util.ads, sem_util.adb (Available_Full_View_Of_Component):
1779 New predicate to determine whether some operations on an array
1780 type are available when the full view of its component may differ
1781 from the view of the point of the array declaration.
1782 * sem_ch4.adb (Find_Equality_Types): Use
1783 Available_Full_View_Of_Component.
1784 * sem_type.adb (Valid_Boolean_Arg, Valid_Comparison_Arg): Ditto
1785
17862011-10-13 Ed Schonberg <schonberg@adacore.com>
1787
1788 * sem_ch9.adb: Analyze aspects while discriminants of protected
1789 type are visible.
1790
17912011-10-13 Geert Bosch <bosch@adacore.com>
1792
1793 * Makefile.rtl (GNATRTL_TASKING_OBJECTS): Add
1794 a-nlcoar.o, a-nllcar.o, a-nucoar.o and s-gearop.o, as these no
1795 longer depend on an external library.
1796 * gcc-interface/Makefile.in (GNATRTL_LINEARALGEBRA_OBJS): Remove
1797 a-nlcoar.o, a-nllcar.o, a-nucoar.o and s-gearop.o.
1798 Update dependencies.
1799 * gcc-interface/Make-lang.in: Update dependencies.
1800
1a36a0cd
AC
18012011-10-13 Cyrille Comar <comar@adacore.com>
1802
1803 * gnat_ugn.texi: Minor editing.
1804
18052011-10-13 Vincent Celier <celier@adacore.com>
1806
1807 * projects.texi: Add documentation on packages and attributes
1808 that are inherited from a project being extended into the
1809 extended project.
1810
18112011-10-13 Hristian Kirtchev <kirtchev@adacore.com>
1812
1813 * exp_ch3.adb (Build_Master): Rewritten.
1814 (Expand_N_Full_Type_Declaration): Reformat the declarative
1815 region. Update the call to Build_Master_Renaming.
1816 (Expand_Previous_Access_Type): Rewritten.
1817 * exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call):
1818 Add local constant Result_Subt and update related usage.
1819 (Expand_N_Extended_Return_Statement): Add local constant
1820 Result_Subt and update related usage.
1821 * exp_ch9.adb (Build_Activation_Chain): Rewritten to use the
1822 new context detection mechanism.
1823 (Build_Class_Wide_Master):
1824 Use Insert_Action to add the renaming into the tree.
1825 (Build_Master_Entity): Rewritten to use the new context detection
1826 mechanism.
1827 (Build_Master_Renaming): Add formal parameter Ins_Nod
1828 and related usage. Use Insert_Action to add the renaming into the
1829 tree.
1830 (Find_Enclosing_Context): New subsidiary routine. Rather
1831 than relying on enclosing scopes, this routine looks at the
1832 tree structure to figure out the proper context for a _master
1833 or a _chain. This approach eliminates the issues with transient
1834 scopes which have not been converted into blocks.
1835 * exp_ch9.ads (Build_Master_Entity): Change parameter profile
1836 to better reflect the new usage. Update the related comment.
1837 (Build_Master_Renaming): Add formal parameter Ins_Nod. Update
1838 the comment on usage.
1839 * sem_ch3.adb (Access_Definition): Update the calls to
1840 Build_Master_Entity and Build_Master_Renaming.
1841 * sem_ch6.adb (Create_Extra_Formals): Add local variable
1842 Full_Subt. Code reformatting.
1843 * sem_util.adb (Is_Iterator): Alphabetized.
1844 (Is_LHS): Alphabetized.
1845 (Is_Limited_Class_Wide_Type): New routine.
1846 * sem_util.ads (Is_Limited_Class_Wide_Type): New routine.
1847
a5917ffb
GB
18482011-10-13 Geert Bosch <bosch@adacore.com>
1849
1850 * a-ngrear.adb (Solve): Make generic and move to
1851 System.Generic_Array_Operations.
1852 * s-gearop.ads (Matrix_Vector_Solution, Matrix_Matrix_Solution):
1853 New generic solvers to compute a vector resp. matrix Y such
1854 that A * Y = X, approximately.
1855 * s-gearop.adb (Matrix_Vector_Solution, Matrix_Matrix_Solution):
1856 Implement using Forward_Eliminate and Back_Substitute
1857 * a-ngcoar.adb: Reimplement in pure Ada to remove dependencies
1858 on BLAS and LAPACK.
1859 * a-ngcoar.ads ("abs"): Fix return type to be real.
1860
574ec945
EB
18612011-10-13 Eric Botcazou <ebotcazou@adacore.com>
1862
1863 PR ada/50589
1864 * s-linux-alpha.ads: Do not "with" Interfaces.C.
1865 * s-linux-sparc.ads: Likewise.
1866
8668ea36
GB
18672011-10-13 Geert Bosch <bosch@adacore.com>
1868
1869 * s-gearop.ads (Forward_Eliminate): Add "abs" formal function
1870 returning a Real.
1871 * s-gearop.adb (Forward_Eliminate): Remove local "abs" function
1872 and use formal.
1873 * a-ngrear.adb (Forward_Eliminate): Adjust instantiation for
1874 new profile.
1875
edcf5983
GB
18762011-10-13 Geert Bosch <bosch@adacore.com>
1877
1878 * a-ngrear.adb, s-gearop.adb, s-gearop.ads (Sqrt): Make generic and
1879 move to System.Generic_Array_Operations.
1880
a4935dea
GB
18812011-10-13 Geert Bosch <bosch@adacore.com>
1882
1883 * a-ngrear.adb ("abs"): Adjust for modified L2_Norm generic
1884 * s-gearop.ads (L2_Norm): Change profile to be suitable for
1885 Complex_Vector
1886 * s-gearop.adb (L2_Norm): Reimplement using direct definition,
1887 not inner product
1888
3e7302c3
AC
18892011-10-13 Robert Dewar <dewar@adacore.com>
1890
1891 * exp_ch5.adb, sem_ch3.adb, impunit.adb, impunit.ads, sem_type.adb,
1892 prj-proc.adb, exp_ch9.adb, s-regpat.adb, sem_ch10.adb, sem_prag.adb,
1893 sem_ch12.adb, freeze.adb, sem_attr.adb, sem_attr.ads, gnatlink.adb,
1894 par-ch6.adb, exp_ch6.adb, sem_ch4.adb, sem_ch6.adb, sem_ch8.adb,
1895 par-util.adb, sem_ch13.adb, lib-xref.adb, g-trasym.adb, g-trasym.ads,
1896 exp_aggr.adb, s-taprop-posix.adb: Minor reformatting.
1897
18982011-10-13 Geert Bosch <bosch@adacore.com>
1899
1900 * s-gearop.adb: Minor comment additions.
1901
8417f4b2
AC
19022011-10-13 Fedor Rybin <frybin@adacore.com>
1903
1904 * gnat_ugn.texi: Add gnattest section.
1905
19062011-10-13 Ed Schonberg <schonberg@adacore.com>
1907
1908 * freeze.adb: Do not create body of renaming if declaration has
1909 errors.
1910
19112011-10-13 Olivier Hainque <hainque@adacore.com>
1912
1913 * init.c (__gnat_error_handler - vxworks case): Restrict sigtramp calls
1914 further, to the ppc+kernel case only.
1915
19162011-10-13 Hristian Kirtchev <kirtchev@adacore.com>
1917
1918 * exp_ch4.adb (Expand_N_Allocator): Comment reformatting.
1919 * exp_ch6.adb (Add_Unconstrained_Actuals_To_Build_In_Place_Call):
1920 Do not create a pool formal on .NET/JVM.
1921 (Expand_N_Extended_Return_Statement): Alphabetize local
1922 variables. Do not create a renaming of the build-in-place pool
1923 parameter on .NET/JVM. (Make_Build_In_Place_Call_In_Allocator):
1924 Add the user-defined pool only on non-VM targets.
1925 (Make_Build_In_Place_Call_In_Object_Declaration): Alphabetize
1926 local variables. Do not add a pool actual on .NET/JVM.
1927 * sem_ch6.adb: Add with and use clause for Targparm.
1928 (Create_Extra_Formals): Add build-in-place pool formal only on
1929 non-VM targets.
1930 * rtsfind.ads: Alphabetize entries.
1931
4674dd21
AC
19322011-10-13 Sergey Rybin <rybin@adacore.com>
1933
1934 * gnat_ugn.texi: Minor correction.
1935
19362011-10-13 Ed Schonberg <schonberg@adacore.com>
1937
1938 * sem_ch8.adb: Minor error message improvement.
1939
19402011-10-13 Robert Dewar <dewar@adacore.com>
1941
1942 * a-cbprqu.adb, a-ciorma.adb, exp_ch3.adb: Minor reformatting.
1943
95aeda79
GD
19442011-10-13 Gary Dismukes <dismukes@adacore.com>
1945
1946 * exp_ch5.adb (Expand_N_Loop_Statement): For the transformation
1947 of a for loop for an enumeration type with an enumeration rep
1948 clause, which involves moving the original loop parameter into
1949 a nested block, the loop parameter's entity must be removed from
1950 the entity list of the loop scope.
1951
200b7162
BD
19522011-10-13 Bob Duff <duff@adacore.com>
1953
1954 * exp_ch6.ads (BIP_Storage_Pool): New "extra implicit parameter"
1955 that gets passed in the same cases where BIP_Alloc_Form is passed
1956 (caller-unknown-size results). BIP_Storage_Pool is used when
1957 BIP_Alloc_Form = User_Storage_Pool. In that case, a pointer
1958 to the user-defined storage pool is passed at the call site,
1959 and this pool is used in callee to allocate the result.
1960 * exp_ch6.adb (Add_Unconstrained_Actuals_To_Build_In_Place_Call): New
1961 version of Add_Alloc_Form_Actual_To_Build_In_Place_Call. Passes
1962 the additional BIP_Storage_Pool actual.
1963 (Expand_N_Extended_Return_Statement): Allocate the function
1964 result using the user-defined storage pool, if BIP_Alloc_Form =
1965 User_Storage_Pool.
1966 * sem_ch6.adb: Add the "extra formal" for BIP_Storage_Pool.
1967 * exp_ch4.adb: Don't overwrite storage pool set by
1968 Expand_N_Extended_Return_Statement.
1969 * s-stopoo.ads, rtsfind.ads (Root_Storage_Pool_Ptr): New type,
1970 for use in build-in-place function calls within allocators
1971 where the access type has a user-defined storage pool.
1972
9f8d1e5c
AC
19732011-10-13 Sergey Rybin <rybin@adacore.com>
1974
1975 * gnat_ugn.texi, vms_data.ads: Add an option to control enumeration
1976 literal casing.
1977
19782011-10-13 Nicolas Roche <roche@adacore.com>
1979
be7552fc
EB
1980 * gnatlink.adb: Ensure that -mrtp is passed when runtime name ends
1981 with 'rtp'.
9f8d1e5c
AC
1982
19832011-10-13 Ed Schonberg <schonberg@adacore.com>
1984
be7552fc
EB
1985 * sem_prag.adb (Analyze_Pragma, case Unchecked_Union): Take into
1986 account that an unchecked union type can be limited.
9f8d1e5c
AC
1987
19882011-10-13 Olivier Hainque <hainque@adacore.com>
1989
1990 * init.c (__gnat_error_handler) <VxWorks version>: Add comments on
1991 the use of the signal trampoline for PPC in the sjlj case as well.
1992 Add legitimate casts, preventing compile time warnings on the
1993 (sighandler *) profile.
1994
19952011-10-13 Yannick Moy <moy@adacore.com>
1996
be7552fc
EB
1997 * sem_aggr.adb (Resolve_Aggr_Expr): Always perform semantic analysis
1998 in Alfa mode.
9f8d1e5c
AC
1999
20002011-10-13 Ed Schonberg <schonberg@adacore.com>
2001
2002 * sem_ch3.adb (OK_For_Limited_Init_In_05): Conditional and case
2003 expressions are legal limited return values if each one of their
2004 dependent expressions are legal.
2005
20062011-10-13 Ed Schonberg <schonberg@adacore.com>
2007
2008 * sem_ch6.adb (Analyze_Procedure_Call_Statement): In Ada 2012 mode,
2009 if the prefix of the call is a qualified expression, rewrite as
2010 a code statement.
2011 * sem_ch13.adb (Analyze_Code_Statement): In Ada 2012 mode, the
2012 code statement is legal if it is a rewriting of a procedure call.
2013
20142011-10-13 Ed Schonberg <schonberg@adacore.com>
2015
2016 * exp_aggr.adb (Flatten): If a component association has a box,
2017 assume that aggregate is not static.
2018 (Safe_Aggregate): If a component association in a non-limited
2019 aggregate has a box, assume that it cannot be expanded in place.
2020
20212011-10-13 Vincent Celier <celier@adacore.com>
2022
2023 * prj-conf.adb (Get_Or_Create_Configuration_File): Call
2024 Process_Project_Tree_Phase_1 with Packages_To_Check.
2025 (Process_Project_And_Apply_Config): Ditto
2026 * prj-part.ads, prj-part.adb, prj-pars.ads, prj-pars.adb (Parse):
2027 Remove default for argument Packages_To_Check.
2028 * prj-proc.adb (Recursive_Process): New argument
2029 Packages_To_Check.
2030 (Process): Ditto.
2031 (Process_Project_Tree_Phase_1): Ditto.
2032 (Recursive_Project.Process_Aggregated_Projects): Call
2033 Prj.Part.Parse and Process_Project_Tree_Phase_1 with
2034 Packages_To_Check.
2035 * prj-proc.ads (Process): New argument Packages_To_Check
2036 (Process_Project_Tree_Phase_1): Ditto
2037
46f8e1ac
AC
20382011-10-13 Arnaud Charlet <charlet@adacore.com>
2039
2040 * gcc-interface/Makefile.in: Fix typo.
2041
8097203f
AC
20422011-10-13 Ed Schonberg <schonberg@adacore.com>
2043
2044 * sem_ch12.adb (Analyze_Formal_{Floating_Type,
2045 Signed_Integer_Type, Decimal_Fixed_Point_Type, Discrete_Type}):
2046 Use sloc of defining identifier of farmal type declaration,
2047 as sloc of generated internal entity, to prevent misplaced
2048 references in ali.
2049
20502011-10-13 Ed Schonberg <schonberg@adacore.com>
2051
2052 * sem_intr.adb (Check_Intrinsic_Operator): Check that type
2053 is fully defined before checking that it is a numeric type.
2054
20552011-10-13 Ed Schonberg <schonberg@adacore.com>
2056
2057 * sem_aggr.adb (Resolve_Record_Aggregate): If a component
2058 association for component X has a box, then X is covered in the
2059 aggregate even if there is not default value for X in the type
2060 declaration, and X has to be default-initialized.
2061
20622011-10-13 Ed Schonberg <schonberg@adacore.com>
2063
be7552fc
EB
2064 * sem_attr.adb (Check_Enum_Image, Analyze_Attribute case 'Value): Mark
2065 literals as referenced only if reference is in current source unit.
8097203f
AC
2066
20672011-10-13 Matthew Heaney <heaney@adacore.com>
2068
2069 * a-csquin.ads (Enque, Dequeue): Mark interface operations as entries.
2070
20712011-10-13 Olivier Hainque <hainque@adacore.com>
2072
2073 * sigtramp.h: New file. Prototype and spec of the signal
2074 trampoline to be called by an established handler to provide
2075 dwarf call frame info before the real signal processing code.
2076 * sigtramp-ppcvxw.c: New file. Implementation of the signal
2077 trampoline for ppc-vxworks.
2078 * init.c (vxworks section): Use it for ppc.
2079
e192a2cd
AC
20802011-10-13 Thomas Quinot <quinot@adacore.com>
2081
2082 * par-ch2.adb, par.adb, par-util.adb, par-ch3.adb
2083 (Check_Future_Identifier): New subprogram,
2084 factors duplicated code from Par.Ch2.P_Identifier and
2085 Par.Ch3.P_Defining_Identifier.
2086
20872011-10-13 Thomas Quinot <quinot@adacore.com>
2088
2089 * s-taprop-posix.adb (Initialize): Always raise Storage_Error
2090 if we fail to initialize CV attributes or CV.
2091
20922011-10-13 Thomas Quinot <quinot@adacore.com>
2093
2094 * s-tasren.adb (Timed_Selective_Wait, case
2095 Accept_Alternative_Selected): Use Defer_Abort_Nestable, since
2096 we know abortion is already deferred.
2097
20982011-10-13 Hristian Kirtchev <kirtchev@adacore.com>
2099
2100 * exp_ch3.adb (Build_Class_Wide_Master): Moved to exp_ch9.
2101 (Build_Master_Renaming (function)): Removed.
2102 (Build_Master_Renaming (procedure)): Moved to exp_ch9.
2103 (Expand_Full_Type_Declaration): Alphabetize
2104 variables. Reformatting of code and comments. Rewrite the
2105 section on processing of anonymous access-to-task types in
2106 record components.
2107 * exp_ch3.ads (Build_Class_Wide_Master): Moved to exp_ch9.
2108 (Build_Master_Renaming): Moved to exp_ch9.
2109 * exp_ch9.adb (Build_Class_Wide_Master): Moved from exp_ch3.
2110 (Build_Master_Entity): Add formal parameter
2111 Use_Current. Reformatting of code and comments.
2112 (Build_Master_Renaming): Moved from exp_ch3.
2113 * exp_ch9.ads (Build_Class_Wide_Master): Moved from
2114 exp_ch3. Update comment on usage.
2115 (Build_Master_Entity):
2116 Add formal parameter Use_Current. Update comment on usage.
2117 (Build_Master_Renaming): Moved from exp_ch3.
2118 * sem_ch3.adb (Access_Definition): Remove redundant code to
2119 create a _master and a renaming.
2120
21212011-10-13 Ed Schonberg <schonberg@adacore.com>
2122
2123 * lib-xref.adb: Do no emit reference to overridden operation,
2124 if it is internally generated.
2125
21262011-10-13 Vincent Celier <celier@adacore.com>
2127
2128 * bindgen.adb: Remove any processing related to g-trasym
2129 * Makefile.rtl: Add g-trasym.o to GNATRTL_NONTASKING_OBJS
2130 * mlib-prj.adb: Remove any processing related to g-trasym.
2131
0cfaf83f
EB
21322011-10-12 Eric Botcazou <ebotcazou@adacore.com>
2133
2134 * sem_util.adb (Denotes_Same_Prefix): Fix fatal warning.
2135 * gcc-interface/Make-lang.in (WARN_ADAFLAGS): New.
2136 (ALL_ADAFLAGS): Include WARN_ADAFLAGS.
2137 (ADA_FLAGS_TO_PASS): Likewise.
2138 (COMMON_FLAGS_TO_PASS): New.
2139 (ADA_TOOLS_FLAGS_TO_PASS): Use COMMON_FLAGS_TO_PASS. In the regular
2140 native case, also use FLAGS_TO_PASS and ADA_FLAGS_TO_PASS.
2141 (gnatlib): Use COMMON_FLAGS_TO_PASS.
2142 (ada.install-common): Likewise.
2143 (install-gnatlib): Likewise.
2144 (install-gnatlib-obj): Likewise.
2145 (gnattools): Use ADA_TOOLS_FLAGS_TO_PASS for gnattools1 as well.
2146 (gnat-cross): Delete.
2147 (gnatboot): Likewise.
2148 (gnatboot2): Likewise.
2149 (gnatboot3): Likewise.
2150 (gnatstage1): Likewise.
2151 (gnatstage2): Likewise.
2152 * gcc-interface/Makefile.in (SOME_ADAFLAGS): Likewise.
2153 (MOST_ADAFLAGS): Likewise.
2154 (LOOSE_CFLAGS): Likewise.
2155 (gnat-cross): Likewise.
2156 (GNATLIBFLAGS): Add -W -Wall.
2157 (GNATLIBCFLAGS_FOR_C): Likewise.
2158 * gcc-interface/lang.opt: Remove C-specific warnings. Add doc lines.
2159 * gcc-interface/misc.c (gnat_handle_option): Remove obsolete cases.
2160
722356ce
EB
21612011-10-12 Eric Botcazou <ebotcazou@adacore.com>
2162
2163 * gcc-interface/trans.c (Attribute_to_gnu): Use remove_conversions.
2164 (push_range_check_info): Likewise.
2165 (gnat_to_gnu) <N_Code_Statement>: Likewise.
2166 * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: Likewise.
2167 (gnat_invariant_expr): Likewise.
2168 * gcc-interface/utils.c (compute_related_constant): Likewise.
2169 (max_size): Fix handling of SAVE_EXPR.
2170 (remove_conversions): Fix formatting.
2171
15bf7d19
EB
21722011-10-12 Eric Botcazou <ebotcazou@adacore.com>
2173
2174 * gcc-interface/ada-tree.h (DECL_LOOP_PARM_P): New flag.
2175 (DECL_INDUCTION_VAR): New macro.
2176 (SET_DECL_INDUCTION_VAR): Likewise.
2177 * gcc-interface/gigi.h (convert_to_index_type): Declare.
2178 (gnat_invariant_expr): Likewise.
2179 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: If this is a loop
2180 parameter, set DECL_LOOP_PARM_P on it.
2181 * gcc-interface/misc.c (gnat_print_decl) <VAR_DECL>: If DECL_LOOP_PARM_P
2182 is set, print DECL_INDUCTION_VAR instead of DECL_RENAMED_OBJECT.
2183 * gcc-interface/trans.c (gnu_loop_label_stack): Delete.
2184 (struct range_check_info_d): New type.
2185 (struct loop_info_d): Likewise.
2186 (gnu_loop_stack): New stack.
2187 (Identifier_to_gnu): Set TREE_READONLY flag on the first dereference
2188 built for a by-double-ref read-only parameter. If DECL_LOOP_PARM_P
2189 is set, do not test DECL_RENAMED_OBJECT.
2190 (push_range_check_info): New function.
2191 (Loop_Statement_to_gnu): Push a new struct loop_info_d instead of just
2192 the label. Reference the label and the iteration variable from it.
2193 Build the special induction variable in the unsigned version of the
2194 size type, if it is larger than the base type. And attach it to the
2195 iteration variable if the latter isn't by-ref. In the iteration scheme
2196 case, initialize the invariant conditions in front of the loop if
2197 deemed profitable. Use gnu_loop_stack.
2198 (gnat_to_gnu) <N_Exit_Statement>: Use gnu_loop_stack.
2199 <N_Raise_Constraint_Error>: Always process the reason. In the range
2200 check and related cases, and if loop unswitching is enabled, compute
2201 invariant conditions and push this information onto the stack.
2202 Do not translate again the condition if it has been already translated.
2203 * gcc-interface/utils.c (record_global_renaming_pointer): Assert that
2204 DECL_LOOP_PARM_P isn't set.
2205 (convert_to_index_type): New function.
2206 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Use it in order
2207 to convert the index from the base index type to sizetype.
2208 (gnat_invariant_expr): New function.
2209
e79983f4
MM
22102011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2211
2212 * gcc-interface/utils.c (def_builtin_1): Delete old interface with
2213 two parallel arrays to hold standard builtin declarations, and
2214 replace it with a function based interface that can support
15bf7d19 2215 creating builtins on the fly in the future.
e79983f4
MM
2216 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Ditto.
2217 (gnat_to_gnu): Ditto.
2218
228ee426
EB
22192011-10-07 Eric Botcazou <ebotcazou@adacore.com>
2220
2221 PR lto/50492
2222 * gcc-interface/gigi.h (gnat_pushdecl): Adjust comment.
2223 * gcc-interface/utils.c (global_context): New variable.
2224 (gnat_pushdecl): Initialize it and set it as the DECL_CONTEXT of DECLs
2225 that are either public external or at top level. Use "No" macro.
2226 (end_subprog_body): Call decl_function_context.
2227 (rest_of_subprog_body_compilation): Likewise.
2228
71196d4e
EB
22292011-10-07 Eric Botcazou <ebotcazou@adacore.com>
2230
2231 * gcc-interface/gigi.h (gnat_useless_type_conversion): Declare.
2232 (rest_of_subprog_body_compilation): Likewise.
2233 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: For renaming,
2234 test for useless conversions by means of gnat_useless_type_conversion.
2235 * gcc-interface/trans.c: Include bitmap.h and cgraph.h.
2236 (language_function): Add named_ret_val and other_ret_val.
2237 (f_named_ret_val): New macro.
2238 (f_other_ret_val): Likewise.
2239 (gigi): Call rest_of_subprog_body_compilation.
2240 (struct nrv_data): New structure.
2241 (is_nrv_p): New predicate.
2242 (prune_nrv_r): New helper function.
2243 (prune_nrv_in_block): New function.
2244 (finalize_nrv_r): New helper function.
2245 (finalize_nrv): New function.
2246 (return_value_ok_for_nrv_p): New predicate.
2247 (build_return_expr): If optimization is enabled, record candidates for
2248 the Named Return Value optimization.
2249 (build_function_stub): Call rest_of_subprog_body_compilation.
2250 (Subprogram_Body_to_gnu): If optimization is enabled and there are
2251 candidates, finalize the Named Return Value optimization.
2252 Call rest_of_subprog_body_compilation.
2253 (call_to_gnu): At the end, if a return value is needed, simplify the
2254 result before wrapping it up in a COMPOUND_EXPR.
2255 * gcc-interface/utils.c (end_subprog_body): Split into...
2256 (rest_of_subprog_body_compilation): ...this. New function.
2257 (gnat_useless_type_conversion): Likewise.
2258
885c4871
AC
22592011-10-06 Thomas Quinot <quinot@adacore.com>
2260
2261 * einfo.ads, exp_attr.adb, exp_ch3.adb, exp_ch4.adb, exp_ch7.adb,
2262 exp_ch9.adb, exp_ch9.ads, exp_strm.adb, exp_util.adb, freeze.adb,
2263 g-debpoo.ads, opt.ads, par-ch12.adb, par-ch2.adb, par-ch3.adb,
2264 par-ch5.adb, par-ch6.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
2265 sem_ch10.adb, sem_ch12.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
2266 sem_ch6.adb, sem_intr.adb, sem_res.ads, sem_type.adb, sem_util.adb,
2267 s-regpat.adb, s-tpopde-vms.ads: Minor reformatting.
2268 * s-osinte-freebsd.ads: Fix for tasking failures on FreeBSD.
2269
22702011-10-06 Ed Schonberg <schonberg@adacore.com>
2271
2272 * a-cihase.adb, a-ciorma.adb: Avoid accessibility checks in container
2273 references.
2274
22752011-10-06 Matthew Heaney <heaney@adacore.com>
2276
2277 * a-cuprqu.ads, a-cuprqu.adb, a-cbprqu.ads, a-cbprqu.adb
2278 (Dequeue_Only_High_Priority): Protected procedure now implemented.
2279
22802011-10-06 Vincent Celier <celier@adacore.com>
2281
2282 * g-trasym.adb: Replace old implementation with the default
2283 implementation that returns list of addresses as "0x...".
2284 * g-trasym.ads: Update the list of platforms with the full
2285 capability. Indicate that there is a default implementation
2286 for other platforms.
2287 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: Remove.
2288 * gcc-interface/Makefile.in: Remove g-trasym-unimplemented, as there
2289 is now a default implementation for all platforms without the full
2290 capability.
2291
ce72a9a3
AC
22922011-10-06 Robert Dewar <dewar@adacore.com>
2293
2294 * a-ciorse.adb, a-cihase.adb, a-cihase.ads, a-coorse.adb,
2295 a-cborse.adb, a-comutr.adb, a-ciorma.adb, a-cbmutr.adb,
2296 a-cbmutr.ads, a-cbhase.adb, a-cbhase.ads: Minor reformatting and code
2297 reorganization (use conditional expressions).
2298
22992011-10-06 Robert Dewar <dewar@adacore.com>
2300
2301 * sem_res.adb (Resolve_Arithmetic_Op): Fix bad warning for
2302 floating divide by zero.
2303
23042011-10-06 Ed Schonberg <schonberg@adacore.com>
2305
2306 * sem_ch6.adb: Limited interfaces that are not immutably limited
2307 are OK in return statements.
2308
a912d7d9
IS
23092011-09-30 Iain Sandoe <iains@gcc.gnu.org>
2310
2311 * gcc-interface/Makefile.in (Darwin): Partial reversion of previous
2312 change to powerpc section.
2313
39ffb1f9
IS
23142011-09-29 Iain Sandoe <iains@gcc.gnu.org>
2315
2316 * gcc-interface/Makefile.in (Darwin): Factor LIBGNAT_TARGET_PAIRS
2317 across the port.
2318
ffb35bbf
ES
23192011-09-27 Ed Schonberg <schonberg@adacore.com>
2320
2321 * a-cbhase.adb, a-cbhase.ads, a-cborse.adb, a-cborse.ads,
2322 a-cihase.adb, a-cihase.ads, a-ciorse.adb, a-ciorse.ads,
2323 a-coorse.adb, a-coorse.ads: Add iterator machinery to bounded sets and
2324 indefinite sets.
2325 * a-coorma.ads: Minor reformmating.
2326 * einfo.ads: Improve the comment describing the
2327 Directly_Designated_Type function.
2328 * a-ciorma.adb, a-ciorma.ads: Add iterator machinery to indefinite
2329 ordered maps.
2330 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
2331 dependencies.
2332
da124b6a
AC
23332011-09-27 Robert Dewar <dewar@adacore.com>
2334
2335 * a-comutr.ads: Minor reformatting.
2336
23372011-09-27 Ed Schonberg <schonberg@adacore.com>
2338
2339 * a-cimutr.adb, a-cimutr.ads, a-cbmutr.adb, a-cbmutr.ads: Add children
2340 iterators to multiway trees.
2341
23422011-09-27 Yannick Moy <moy@adacore.com>
2343
2344 * debug.adb (d.D): New option for strict Alfa mode.
2345 * opt.ads (Strict_Alfa_Mode): New flag to interpret compiler
2346 permissions as strictly as possible.
2347 * sem_ch3.adb (Signed_Integer_Type_Declaration): In non-strict
2348 Alfa mode, now, interpret ranges of base types like GNAT does; in
2349 strict mode, simply change the range of the implicit base Itype.
2350 * gnat1drv.adb: Update comments. Set Strict_Alfa_Mode.
2351
706a4067
AC
23522011-09-27 Robert Dewar <dewar@adacore.com>
2353
2354 * exp_ch9.adb: Minor comment fixes.
2355
23562011-09-27 Ed Schonberg <schonberg@adacore.com>
2357
2358 * a-comutr.adb, a-comutr.ads: Add children iterators on multiway
2359 trees.
2360
05c1e7d2
AC
23612011-09-27 Eric Botcazou <ebotcazou@adacore.com>
2362
2363 * checks.adb (Apply_Scalar_Range_Check): Use Designated_Type
2364 instead of Directly_Designated_Type in the indirect array case.
2365
23662011-09-27 Robert Dewar <dewar@adacore.com>
2367
2368 * exp_util.adb, exp_aggr.adb: Minor reformatting.
2369
65e78a74
AC
23702011-09-27 Ed Schonberg <schonberg@adacore.com>
2371
2372 * sinfo.ads, par-ch3.adb: Minor comment update: aspect specification
2373 on subtype declarations.
2374 * exp_aggr.adb: Minor comment update.
2375
23762011-09-27 Eric Botcazou <ebotcazou@adacore.com>
2377
2378 * exp_util.adb (Safe_Prefixed_Reference): Remove always-false
2379 test in the N_Explicit_Dereference case. Fold double logical
2380 negation in the special loop case and conditionalize it on
2381 Variable_Ref being true.
2382
23832011-09-27 Ed Schonberg <schonberg@adacore.com>
2384
2385 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is a
2386 single protected object and the selector is a discriminant or an
2387 entry family, this is a non-overloaded candidate interpretation,
2388 and possible primitive operations of the type must not be
2389 examined.
2390
23912011-09-27 Arnaud Charlet <charlet@adacore.com>
2392
2393 * s-taspri-posix-noaltstack.ads (Lock): Mark fields aliased.
2394
6f5add73
AC
23952011-09-27 Pascal Obry <obry@adacore.com>
2396
2397 * s-osinte-hpux.ads, s-osinte-aix.ads, s-osinte-solaris-posix.ads,
2398 s-osinte-irix.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads:
2399 Add dummy definitions for pthread_rwlock_t
2400 and pthread_rwlockattr_t on all POSIX platforms.
2401 * s-taprop-irix.adb, s-taprop-posix.adb (Initialize_Lock): Fix lock
2402 reference.
2403 (Finalize_Lock): Likewise.
2404 (Write_Lock): Likewise.
2405 (Unlock): Likewise.
2406
24072011-09-27 Tristan Gingold <gingold@adacore.com>
2408
2409 * s-tassta.adb (Task_Wrapper): Increase Guard_Page_Size value for
2410 windows 64.
2411
64a63cd5
PO
24122011-09-27 Pascal Obry <obry@adacore.com>
2413
2414 * s-osinte-hpux.ads, s-taprop-vxworks.adb, s-taspri-vxworks.ads,
2415 s-taprop-tru64.adb, s-osinte-aix.ads, s-taspri-posix-noaltstack.ads,
2416 s-taspri-mingw.ads, s-taprop-vms.adb, s-tpoben.adb, s-tpoben.ads,
2417 s-taprop-mingw.adb, s-taprob.adb, s-taprob.ads,
2418 s-osinte-solaris-posix.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
2419 s-osinte-irix.ads, s-taprop-irix.adb, s-osinte-darwin.ads,
2420 s-taspri-dummy.ads, s-taspri-posix.ads, s-taprop.ads,
2421 s-taspri-vms.ads, s-osinte-freebsd.ads, s-taprop-hpux-dce.adb,
2422 s-taspri-hpux-dce.ads, s-taspri-tru64.ads, s-taprop-dummy.adb,
2423 s-taprop-posix.adb: Revert previous changes.
2424 (Lock): Now a record containing the two possible lock
2425 (mutex and read/write) defined in OS_Interface.
2426 * s-taprop-linux.adb (Finalize_Protection): Use r/w lock for
2427 'R' locking policy.
2428 (Initialize_Protection): Likewise.
2429 (Lock): Likewise.
2430 (Lock_Read_Only): Likewise.
2431 (Unlock): Likewise.
2432
f672a756
AC
24332011-09-27 Pascal Obry <obry@adacore.com>
2434
2435 * s-taspri-posix-noaltstack.ads (RW_Lock): This type is now defined as
2436 OS_Interface.pthread_rwlock_t.
2437
24382011-09-27 Robert Dewar <dewar@adacore.com>
2439
2440 * exp_ch9.adb, a-cimutr.adb, a-cimutr.ads, gnat1drv.adb, a-comutr.adb,
2441 a-comutr.ads, exp_dist.adb, a-cbmutr.adb, a-cbmutr.ads,
2442 sem_ch5.adb, sem_util.adb: Minor reformatting.
2443
7a44cb69
PO
24442011-09-27 Pascal Obry <obry@adacore.com>
2445
2446 * s-taprop.ads (Initialize_Lock)[RW_Lock]: New spec for r/w lock.
2447 (Finalize_Lock)[RW_Lock]: Likewise.
2448 (Write_Lock)[RW_Lock]: Likewise.
2449 (Unlock)[RW_Lock]: Likewise.
2450 (Read_Lock): Define L as RW_Lock (instead of Lock).
2451 * s-taprop-linux.adb (Initialize_Lock)[RW_Lock]: New
2452 routine for r/w lock.
2453 (Finalize_Lock)[RW_Lock]: Likewise.
2454 (Write_Lock)[RW_Lock]: Likewise.
2455 (Unlock)[RW_Lock]: Likewise.
2456 (Read_Lock): Define L as RW_Lock (instead of Lock).
2457
2458 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
2459 s-taprop-mingw.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
2460 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-posix.adb
2461 (Initialize_Lock)[RW_Lock]: Same implementation as corresponding
2462 routine for standard lock.
2463 (Finalize_Lock)[RW_Lock]: Likewise.
2464 (Write_Lock)[RW_Lock]: Likewise.
2465 (Unlock)[RW_Lock]: Likewise.
2466 (Read_Lock): Define L as RW_Lock (instead of Lock).
2467 * s-taprob.ads, s-tpoben.ads (Protection): Add RWL (RW_Lock)
2468 in the record definition.
2469 * s-taprob.adb, s-taproben.adb (Finalize_Protection): Use r/w
2470 lock for 'R' locking policy.
2471 (Initialize_Protection): Likewise.
2472 (Lock): Likewise.
2473 (Lock_Read_Only): Likewise.
2474 (Unlock): Likewise.
2475 * s-taspri-posix.ads (RW_Lock): New type defined as
2476 OS_Interface.pthread_rwlock_t.
2477
2478 * s-taspri-vxworks.ads, s-taspri-posix-noaltstack.ads,
2479 s-taspri-mingw.ads, s-taspri-solaris.ads, s-taspri-dummy.ads,
2480 s-taspri-posix.ads, s-taspri-vms.ads, s-taspri-hpux-dce.ads,
2481 s-taspri-tru64.ads (RW_Lock): New type defined as alias to Lock.
2482
4c173b50
PO
24832011-09-27 Pascal Obry <obry@adacore.com>
2484
2485 * exp_ch9.adb, s-taspri-posix.ads: Minor reformatting.
2486
24872011-09-27 Pascal Obry <obry@adacore.com>
2488
2489 * s-osinte-aix.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads,
2490 s-osinte-hpux.ads, s-osinte-irix.ads,
2491 s-osinte-solaris-posix.ads (pthread_rwlock_t): New definition alias of
2492 pthread_mutex_t.
2493 (pthread_rwlockattr_t): New definition alias of pthread_mutexattr_t.
2494 * s-osinte-linux.ads (pthread_rwlock_t, pthread_rwlockattr_t,
2495 pthread_rwlockattr_init, pthread_rwlockattr_destroy,
2496 pthread_rwlockattr_setkind_np, pthread_rwlock_init,
2497 pthread_rwlock_destroy, pthread_rwlock_rdlock,
2498 pthread_rwlock_wrlock, pthread_rwlock_unlock): New.
2499
343250a6
PO
25002011-09-27 Pascal Obry <obry@adacore.com>
2501
2502 * rtsfind.ads: Add RE_Lock_Read_Only into rtsfind circuitry.
2503 (RE_Id): Add RE_Lock_Read_Only.
2504 (RE_Unit_Table): Likewise.
2505 * sem_prag.adb (Process_Convention): Change Pragma_Locking_Policy
2506 to lift restriction on first character. Handle now the
2507 Name_Concurrent_Readers_Locking where policy character is set to
2508 'R'.
2509 * snames.ads-tmpl (Name_Concurrent_Readers_Locking): New
2510 constant.
2511 * exp_ch9.adb (Build_Protected_Subprogram_Body): Generate a
2512 read only lock for function in protected object.
2513 * s-taprob.ads (Lock_Read_Only): Remove obsolete comment as
2514 this routine is now used.
2515
2d0dd51a
EB
25162011-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2517
2518 * s-atocou-x86.adb (Decrement): Use %;.
2519 (Increment): Likewise.
2520
bdbebf66
EB
25212011-09-26 Eric Botcazou <ebotcazou@adacore.com>
2522
2523 * gcc-interface/utils2.c (build_allocator): Set TREE_THIS_NOTRAP on the
2524 dereference of the pointer to the storage area. Remove useless type
2525 conversions and factor out common code.
2526
1aa291f7
EB
25272011-09-26 Eric Botcazou <ebotcazou@adacore.com>
2528
2529 * gcc-interface/utils.c (maybe_unconstrained_array): Declare TYPE local
2530 variable and use it throughout.
2531 <UNCONSTRAINED_ARRAY_TYPE>: Add 'break' at the end.
2532 <RECORD_TYPE>: Do not unconditionally convert to the unpadded type as a
2533 first step. Also convert to the unpadded type as a last step.
2534
7d76717d
EB
25352011-09-26 Eric Botcazou <ebotcazou@adacore.com>
2536
2537 * gcc-interface/gigi.h (create_subprog_decl): Replace TREE_CHAIN with
2538 DECL_CHAIN in comment.
2539 * gcc-interface/trans.c (gigi): Likewise.
2540 (Attribute_to_gnu): Likewise.
2541 (build_function_stub): Likewise.
2542 (gnat_to_gnu): Likewise.
2543 * gcc-interface/utils.c (create_subprog_decl): Likewise.
2544 (convert_vms_descriptor64): Likewise.
2545 (convert_vms_descriptor32): Likewise.
2546
42acad07
EB
25472011-09-26 Eric Botcazou <ebotcazou@adacore.com>
2548
2549 * gcc-interface/trans.c (assoc_to_constructor): Minor tweaks.
2550 * gcc-interface/utils2.c (build_simple_component_ref): Fix formatting
2551 issues. Use COMPLETE_TYPE_P in assertion. Also set TREE_READONLY if
2552 the type of the record is TYPE_READONLY.
2553
a1d72281
EB
25542011-09-26 Eric Botcazou <ebotcazou@adacore.com>
2555 Robert Dewar <dewar@adacore.com>
2556
2557 * sem_ch6.adb (Set_Formal_Mode): Set Can_Never_Be_Null on an IN or IN
2558 OUT formal parameter which is of an null-exclusion access subtype.
2559
a1c7d797
EB
25602011-09-26 Eric Botcazou <ebotcazou@adacore.com>
2561
2562 * gcc-interface/ada-tree.h (DECL_CAN_NEVER_BE_NULL_P): New macro.
2563 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Set the flag.
2564 (gnat_to_gnu_param): Likewise.
2565 * gcc-interface/utils.c (convert) <UNCONSTRAINED_ARRAY_REF>: Invoke
2566 maybe_unconstrained_array instead of doing the work manually.
2567 (maybe_unconstrained_array): Propagate the TREE_THIS_NOTRAP flag.
2568 * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: If operand
2569 is a DECL with the flag, set TREE_THIS_NOTRAP on the reference.
2570 (gnat_stabilize_reference_1): Propagate the TREE_THIS_NOTRAP flag.
2571 (gnat_stabilize_reference): Likewise.
2572
50179d58
EB
25732011-09-26 Eric Botcazou <ebotcazou@adacore.com>
2574
2575 * gcc-interface/ada-tree.h (TYPE_NULL_BOUNDS): New macro.
2576 (SET_TYPE_NULL_BOUNDS): Likewise.
2577 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Set again
2578 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
2579 * gcc-interface/trans.c (Identifier_to_gnu): Return initializers of fat
2580 pointer types.
2581 * gcc-interface/utils.c (create_var_decl_1): If the object is external,
2582 check that the initializer is a valid constant expression for use in
2583 initializing a static variable. Add missing guard.
2584 (update_pointer_to): Adjust TYPE_NULL_BOUNDS if set.
2585 (convert_to_fat_pointer): In the null fat pointer case, build a valid
2586 pointer for the bounds.
2587 * gcc-interface/utils2.c (compare_fat_pointers): New function.
2588 (build_binary_op) <EQ_EXPR>: Call it to compare fat pointers.
2589
ad1d36ba
EB
25902011-09-25 Eric Botcazou <ebotcazou@adacore.com>
2591
2592 * gcc-interface/ada-tree.h (TREE_THIS_NOTRAP): Redefine.
2593 * gcc-interface/trans.c (Identifier_to_gnu): Factor out common code in
2594 the by-ref case. Do not set TREE_READONLY on a renamed object. Set
2595 TREE_THIS_NOTRAP on UNCONSTRAINED_ARRAY_REF nodes.
2596 (Attribute_to_gnu) <Attr_Length>: Expand the use of the parameter cache
2597 to the indirect case.
2598 * gcc-interface/utils.c (convert) <UNCONSTRAINED_ARRAY_REF>: Preserve
2599 the TREE_THIS_NOTRAP flag.
2600
6162cec0
EB
26012011-09-25 Eric Botcazou <ebotcazou@adacore.com>
2602
2603 * gcc-interface/trans.c (Loop_Statement_to_gnu): In the case of an
2604 iteration scheme, always generate the do-while form if optimization
2605 is enabled. Use more straightforward test at the end.
2606
dee12fcd
EB
26072011-09-25 Eric Botcazou <ebotcazou@adacore.com>
2608
2609 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Subtype>: Use
2610 XNEW instead of xmalloc. Do not build useless pointer type.
2611 <E_Anonymous_Access_Subprogram_Type>: Use XNEW instead of xmalloc.
2612 * gcc-interface/trans.c (gnat_to_gnu) <N_Raise_Constraint_Error>: Tidy.
2613 * gcc-interface/utils2.c (build_unary_op): Remove local variable.
2614
dea976c4
EB
26152011-09-25 Eric Botcazou <ebotcazou@adacore.com>
2616
2617 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not promote
2618 the alignment if this doesn't prevent BLKmode access to the object.
2619
655ae828
IS
26202011-09-24 Iain Sandoe <iains@gcc.gnu.org>
2621
2622 * gcc-interface/Makefile.in (darwin): Do not issue the
2623 '-flat_namespace' linker flag during Ada build.
2624 * mlib-tgt-specific-darwin.adb: Remove '-flat_namespace' flag from the
2625 default shared library options.
2626
0e871c15
AO
26272011-09-19 Alexandre Oliva <aoliva@redhat.com>
2628
2629 * gcc-interface/decl.c (annotate_value): Look up expression for
2630 insertion in the cache at the end.
2631
1e6a52b4
AC
26322011-09-19 Arnaud Charlet <charlet@adacore.com>
2633
2634 * gcc-interface/Make-lang.in: Update dependencies.
2635
a3068ca6
AC
26362011-09-19 Steve Baird <baird@adacore.com>
2637
2638 * snames.ads-tmpl: Move declaration of Name_Annotate into range of
2639 configuration pragma names so that Is_Configuration_Pragma_Name
2640 will return True for Name_Annotate. Make corresponding change in
2641 Pragma_Id enumeration type. This is needed to allow an Annotate
2642 pragma to occur in a configuration pragma file (typically,
2643 a gnat.adc file).
2644 * gnat_ugn.texi: Add Annotate to the list of configuration pragmas.
2645 * gnat_rm.texi: Note that pragma Annotate may be used as a
2646 configuration pragma.
2647
26482011-09-19 Ed Schonberg <schonberg@adacore.com>
2649
2650 * a-cbmutr.adb, a-cbmutr.ads, a-cimutr.adb, a-cimutr.ads,
2651 a-comutr.adb, a-comutr.ads: Add iterator machinery for multiway trees.
2652
26532011-09-19 Yannick Moy <moy@adacore.com>
2654
2655 * exp_alfa.adb, exp_alfa.ads (Expand_Alfa_N_In): New function
2656 for expansion of set membership.
2657 (Expand_Alfa): Call expansion for N_In and N_Not_In nodes.
2658 * exp_ch4.adb, exp_ch4.ads (Expand_Set_Membership): Make procedure
2659 visible for use in Alfa expansion.
2660 * sem_ch5.adb (Analyze_Iterator_Specification): Introduce loop
2661 variable in Alfa mode.
2662
26632011-09-19 Thomas Quinot <quinot@adacore.com>
2664
2665 * s-osinte-darwin.ads: Change SIGADAABRT on Darwin to SIGABRT.
2666
26672011-09-19 Thomas Quinot <quinot@adacore.com>
2668
2669 * exp_ch9.adb: Minor reformatting.
2670
26712011-09-19 Hristian Kirtchev <kirtchev@adacore.com>
2672
2673 * freeze.adb (Build_Renamed_Body): Generic subprograms
2674 instantiations cannot be poperly inlined by the compiler, do
2675 not set the Body_To_Inline attribute in such cases.
2676 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Inherit all
2677 inlining-related flags from the generic subprogram declaration.
2678
26792011-09-19 Thomas Quinot <quinot@adacore.com>
2680
2681 * exp_dist.adb, rtsfind.ads, sem_util.adb, sem_util.ads
2682 (Build_Stub_Type): Remove, instead copy components from
2683 System.Partition_Interface.RACW_Stub_Type.
2684 (RPC_Receiver_Decl): Remainder of code from old Build_Stub_Type routine.
2685 (Copy_Component_List): New subprogram.
2686
26872011-09-19 Yannick Moy <moy@adacore.com>
2688
2689 * lib-xref.adb (Generate_Reference): Ignore references to
2690 constants in Standard.
2691
e7fceebc
AC
26922011-09-19 Robert Dewar <dewar@adacore.com>
2693
2694 * err_vars.ads, errout.ads: Minor reformatting.
2695
26962011-09-19 Robert Dewar <dewar@adacore.com>
2697
2698 * aspects.ads (Impl_Defined_Aspects): New array
2699 * lib-writ.adb (No_Dependences): New name for No_Dependence
2700 * restrict.adb (No_Dependences): New name for No_Dependence
2701 (Check_Restriction_No_Specification_Of_Aspect): New
2702 procedure.
2703 (Set_Restriction_No_Specification_Of_Aspect): New procedure
2704 (Restricted_Profile_Result): New variable
2705 (No_Specification_Of_Aspects): New variable
2706 (No_Specification_Of_Aspect_Warning): New variable
2707 * restrict.ads (No_Dependences): New name for No_Dependence
2708 (Check_Restriction_No_Specification_Of_Aspect): New procedure
2709 (Set_Restriction_No_Specification_Of_Aspect): New procedure
2710 * s-rident.ads: Add restriction
2711 No_Implementation_Aspect_Specifications, this is also added to
2712 the No_Implementation_Extensions profile.
2713 * sem_ch13.adb (Analyze_Aspect_Specifications): Check
2714 No_Implementation_Defined_Aspects
2715 (Analyze_Aspect_Specifications): Check No_Specification_Of_Aspect
2716 * sem_prag.adb (Analyze_Aspect_Specifications): Check
2717 No_Implementation_Aspects
2718 (Analyze_Aspect_Specifications): Check No_Specification_Of_Aspect
2719 * snames.ads-tmpl (Name_No_Specification_Of_Aspect): New name
2720
27212011-09-19 Yannick Moy <moy@adacore.com>
2722
2723 * lib-xref.adb (Generate_Reference): Take into account multiple
2724 renamings for Alfa refs.
2725
27262011-09-19 Thomas Quinot <quinot@adacore.com>
2727
2728 * g-socthi-mingw.adb: Minor reformatting.
2729
27302011-09-19 Yannick Moy <moy@adacore.com>
2731
2732 * gnat1drv.adb (Adjust_Global_Switches): Set tagged type
2733 expansion to False in mode Alfa
2734
27352011-09-19 Pascal Obry <obry@adacore.com>
2736
2737 * mingw32.h: Remove obsolete code needed for old versions
2738 of MingW.
2739
e5a163fc
RD
27402011-09-19 Robert Dewar <dewar@adacore.com>
2741
2742 * errout.ads: Minor reformatting.
2743
6d7e5c54
AC
27442011-09-19 Ed Schonberg <schonberg@adacore.com>
2745
2746 * sem_ch6.adb (Analyze_Expression_Function): When the expression
2747 function is transformed into a declaration and a body, insert
2748 body at the end of the declarative part, to prevent premature
2749 freeze actions, and preserve original specification in the
2750 subprogram declaration.
2751
27522011-09-19 Vincent Celier <celier@adacore.com>
2753
2754 * projects.texi: Minor editing.
2755
99ba07a3
AC
27562011-09-19 Robert Dewar <dewar@adacore.com>
2757
2758 * sem_aggr.adb, lib-writ.ads, s-restri.ads, sem_ch6.adb,
2759 exp_aggr.adb: Minor reformatting.
2760
27612011-09-19 Yannick Moy <moy@adacore.com>
2762
2763 * lib-xref.adb (Generate_Reference): Change entity referenced
2764 to underlying object if any, or else reference to the HEAP.
2765
41781043
AC
27662011-09-15 Arnaud Charlet <charlet@adacore.com>
2767
2768 * gcc-interface/Make-lang.in: Update dependencies.
2769
804ff4c3
AC
27702011-09-15 Robert Dewar <dewar@adacore.com>
2771
2772 * tree_io.ads: Minor reformatting.
2773 * a-intnam.ads: Fix bad header.
2774
27752011-09-15 Thomas Quinot <quinot@adacore.com>
2776
2777 * a-exexpr-gcc.adb: Minor reformatting.
2778
27792011-09-15 Yannick Moy <moy@adacore.com>
2780
2781 * sem_ch6.adb: Propagate information that an expression function comes
2782 from source (otherwise references to this entity are not stored).
2783
0b5b2bbc
AC
27842011-09-15 Robert Dewar <dewar@adacore.com>
2785
2786 * a-cdlili.adb, a-coinve.adb, a-stzunb-shared.ads, a-suezst.adb,
2787 a-suenco.adb, a-stwiun-shared.ads, a-cobove.adb, a-convec.adb,
2788 a-btgbso.adb, a-cbdlli.adb, a-suewst.adb: Minor reformatting.
2789
27902011-09-15 Ed Schonberg <schonberg@adacore.com>
2791
2792 * sem_ch6.adb (Analyze_Expression_Function): Code cleanup:
2793 if the expression function is not a completion, create a
2794 new specification for the generated declaration, and keep the
2795 original specification in the generated body. Shorter code also
2796 ensures that proper warnings are generated for unused formals
2797 in all cases.
2798
27992011-09-15 Sergey Rybin <rybin@adacore.com>
2800
2801 * tree_io.ads: Update ASIS_Version_Number because of the changes
2802 in the tree structures for expression functions.
2803
28042011-09-15 Arnaud Charlet <charlet@adacore.com>
2805
2806 * s-osinte-aix.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads,
2807 s-osinte-hpux.ads, s-osinte-lynxos.ads, s-osinte-solaris-posix.ads,
2808 s-taprop-posix.adb (CLOCK_MONOTONIC): New constant.
2809 (CLOCK_REALTIME): Fix wrong value on some OSes.
2810 * s-taprop-posix.adb (Monotonic_Clock): Use CLOCK_MONOTONIC.
2811
7e169899
EB
28122011-09-11 Eric Botcazou <ebotcazou@adacore.com>
2813
2814 * gcc-interface/utils.c (maybe_unconstrained_array): In the reference
2815 to unconstrained array case, deal with each branch of a COND_EXPR.
2816 * gcc-interface/utils2.c (build_allocator): Deal with each branch of
2817 a COND_EXPR in the initializer, if present.
2818
819a653e
EB
28192011-09-11 Eric Botcazou <ebotcazou@adacore.com>
2820
2821 * gcc-interface/decl.c (maybe_pad_type): Do not try to change the form
2822 of an addressable type.
2823 * gcc-interface/trans.c (gnat_gimplify_expr) <VIEW_CONVERT_EXPR>: New.
2824 Deal with those cases for which creating a temporary is mandatory.
2825
c946adde
EB
28262011-09-11 Eric Botcazou <ebotcazou@adacore.com>
2827
2828 * gcc-interface/trans.c (call_to_gnu): Use local variable. Make sure
2829 this is a real formal parameter before testing whether it is by ref.
2830
dddf8120
EB
28312011-09-11 Eric Botcazou <ebotcazou@adacore.com>
2832
2833 * gcc-interface/gigi.h (build_call_0_expr): Delete.
2834 (build_call_1_expr): Likewise.
2835 (build_call_2_expr): Likewise.
2836 (build_call_n_expr): New prototype.
2837 * gcc-interface/decl.c (gnat_to_gnu_entity): Use build_call_n_expr.
2838 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Ditto.
2839 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
2840 (Exception_Handler_to_gnu_zcx): Likewise.
2841 (gnat_to_gnu): Likewise.
2842 (build_binary_op_trapv): Likewise.
2843 * gcc-interface/utils2.c (build_call_0_expr): Delete.
2844 (build_call_1_expr): Likewise.
2845 (build_call_2_expr): Likewise.
2846 (build_call_n_expr): New function.
2847 (build_call_raise): Use build_call_n_expr.
2848 (build_call_raise_range): Likewise.
2849 (build_call_raise_column): Likewise.
2850 (build_call_alloc_dealloc_proc): Likewise.
2851 (maybe_wrap_malloc): Likewise.
2852 (maybe_wrap_free): Likewise.
2853
d8e38554
EB
28542011-09-11 Eric Botcazou <ebotcazou@adacore.com>
2855
2856 * gcc-interface/trans.c (build_return_expr): Use void_type_node for
2857 MODIFY_EXPR.
2858 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Assert that
2859 the result type is null if ENABLE_CHECKING. Set operation_type at the
2860 end unconditionally if not set in the previous cases.
2861 Use build2 and void_type_node for MODIFY_EXPR.
2862 (build_allocator): Use NULL_TREE for MODIFY_EXPR.
2863
416de7d5
EB
28642011-09-08 Eric Botcazou <ebotcazou@adacore.com>
2865
2866 * gcc-interface/utils.c (unchecked_convert): Use a field of the right
2867 precision when converting to or from an integral type whose precision
2868 is not equal to its size.
2869
88b76013
IS
28702011-09-08 Iain Sandoe <iains@gcc.gnu.org>
2871
416de7d5 2872 * traceback.c (Darwin) USE_GCC_UNWINDER for Darwin versions >= 8.
88b76013 2873
1aeee5ad
IS
28742011-09-07 Iain Sandoe <iains@gcc.gnu.org>
2875
416de7d5 2876 * gcc-interface/Makefile.in (darwin): Provide powerpc64 system
1aeee5ad
IS
2877 implementation.
2878 * system-darwin-ppc64.ads: New file.
2879
f61fc398
IS
28802011-09-06 Iain Sandoe <iains@gcc.gnu.org>
2881
2882 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Remove
2883 reference to "-lm".
2884
84ef27d3
IS
28852011-09-06 Iain Sandoe <iains@gcc.gnu.org>
2886
2887 * gcc-interface/Makefile.in (darwin, SO_OPTS): Provide architecture
2888 size switches to the link phase for shared libs.
2889
a1bf1ec7
IS
28902011-09-06 Iain Sandoe <iains@gcc.gnu.org>
2891
416de7d5 2892 * gcc-interface/Makefile.in (x86_64 darwin arch): Adjust
a1bf1ec7
IS
2893 LIBGNAT_TARGET_PAIRS for x86 and x86_64 variants.
2894
e972fd52
AC
28952011-09-06 Arnaud Charlet <charlet@adacore.com>
2896
2897 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in
2898 (gnattools, regnattools, cross-gnattools, canadian-gnattools,
2899 gnatlib, gnatlib-sjlj, gnatlib-zcx, gnatlib-shared, gnatlib_and_tools):
2900 New targets.
2901 (TOOLS_FLAGS_TO_PASS): New.
2902 (../stamp-tools): Reintroduce, to avoid merge conflicts.
2903
ef417be1
RD
29042011-09-06 Robert Dewar <dewar@adacore.com>
2905
2906 * sem_ch10.adb, impunit.ads, impunit.adb (Not_Impl_Defined_Unit): New
2907 name for Is_RM_Defined_Unit. Also several fixes to this unit.
2908
0a034606
RD
29092011-09-06 Robert Dewar <dewar@adacore.com>
2910
2911 * impunit.ads, impunit.adb (Is_RM_Defined_Unit): New function.
2912 * s-rident.ads: New restriction No_Implementation_Units
2913 (this restriction is also part of the profile
2914 No_Implementation_Extensions)
2915 * sem_ch10.adb (Analyze_With_Clause): Add check for
2916 No_Implementation_Units restriction.
2917
ebb6faaa
AC
29182011-09-06 Jerome Guitton <guitton@adacore.com>
2919
2920 * sysdep.c (__gnat_get_task_options): Disable VX_SPE_TASK
2921 on vThreads.
2922
29232011-09-06 Thomas Quinot <quinot@adacore.com>
2924
2925 * s-solita.adb: Minor reformatting.
2926
29272011-09-06 Ed Schonberg <schonberg@adacore.com>
2928
2929 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The body that
2930 is a rewriting of an expression function does not freeze previous
2931 entities.
2932
29332011-09-06 Robert Dewar <dewar@adacore.com>
2934
2935 * impunit.adb (Is_Known_Unit): Fix bad handling of Ada 2012 case
2936
60435286
TG
29372011-09-06 Tristan Gingold <gingold@adacore.com>
2938
2939 * gcc-interface/Makefile.in: Handle e500v2-wrs-vxworksae like
2940 powerpc-wrs-vxworksae.
2941
08f8a983
AC
29422011-09-06 Thomas Quinot <quinot@adacore.com>
2943
2944 * s-os_lib.ads (Spawn): Minor documentation clarification,
2945 Success is True for a zero exit status.
2946
29472011-09-06 Ed Schonberg <schonberg@adacore.com>
2948
2949 * sem_ch5.adb: Add message for common iterator error.
2950
29512011-09-06 Ed Schonberg <schonberg@adacore.com>
2952
2953 * exp_ch3.adb (Build_Initialization_Call): If the target is a
2954 selected component discriminated by a current instance, replace
2955 the constraint with a reference to the target object, regardless
2956 of whether the context is an init_proc.
2957
29582011-09-06 Robert Dewar <dewar@adacore.com>
2959
2960 * exp_attr.adb: Descriptor_Size is never static.
2961
29622011-09-06 Robert Dewar <dewar@adacore.com>
2963
2964 * gnat_ugn.texi: Add documentation for LSLOC metric in gnatmetric
2965
29662011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
2967
2968 * gnat_rm.texi: Clarify that attribute Descriptor_Size is
2969 non-static.
2970
29712011-09-06 Ed Schonberg <schonberg@adacore.com>
2972
2973 * sem_res.adb (Resolve): An expression that is the body of an
2974 expression function does not freeze.
2975
29762011-09-06 Matthew Heaney <heaney@adacore.com>
2977
2978 * a-csquin.ads, a-cusyqu.adb, a-cbprqu.adb, a-cbsyqu.adb,
2979 a-cuprqu.adb: Changed copyright notice to indicate current
2980 year only.
2981
29822011-09-06 Vincent Celier <celier@adacore.com>
2983
2984 * prj.adb: Minor spelling error fix in comment
2985 * sem_res.adb: Minor reformatting
2986
29872011-09-06 Pascal Obry <obry@adacore.com>
2988
2989 * sysdep.c (winflush_nt): Removed as not needed anymore.
2990 (winflush_95): Likewise.
2991 (winflush_init): Likewise.
2992 (winflush_function): Likewise.
2993 (getc_immediate_common): Remove call to winflush_function.
2994
cb3d8731
HK
29952011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
2996
2997 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite the
2998 processing for Descriptor_Size.
2999 * gnat_rm.texi: Rephrase the wording for attribute Descriptor_Size
3000 to account for its broader usage.
3001 * sem_attr.adb (Analyze_Attribute): Change the error detection
3002 circuitry for Descriptor_Size as the attribute is now applicable
3003 to all types.
3004
f7e6fc47
RD
30052011-09-06 Robert Dewar <dewar@adacore.com>
3006
3007 * sem_attr.adb, prj-nmsc.adb, exp_aggr.adb: Minor reformatting.
3008
f8e9fc30
AC
30092011-09-06 Ed Schonberg <schonberg@adacore.com>
3010
3011 * lib-xref.adb (OK_To_Set_Referenced): A reference to a formal
3012 in a parameter association must not set the Referenced flag on
3013 the formal.
3014 * prj-nmsc.adb (Check_File_Naming_Schemes): Remove useless formal
3015
30162011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
3017
3018 * gnat_rm.texi: Add a section on attribute Descriptor_Size
3019
e8e38f35
AC
30202011-09-06 Arnaud Charlet <charlet@adacore.com>
3021
3022 * gcc-interface/Makefile.in (common-tools, gnatmake-re,
3023 gnatlink-re): Speed up by using -j0.
3024
ba759acd
AC
30252011-09-06 Yannick Moy <moy@adacore.com>
3026
3027 * sem_ch13.adb (Analyze_Aspect_Specifications): Call
3028 Set_Corresponding_Aspect when creating pragma from aspect.
3029 (Add_Predicates): Use new field Corresponding_Aspect.
3030 * sem_prag.adb (Analyze_Pragma): Make Pname hold source aspect
3031 name when present, for the purpose of issuing error messages;
3032 remove local procedure Error_Pragma_Arg_Alternate_Name.
3033 * sinfo.adb, sinfo.ads (Corresponding_Aspect): New field in
3034 N_Pragma node.
3035 (From_Dynamic_Predicate, From_Static_Predicate): Remove fields from
3036 N_Pragma node.
3037
30382011-09-06 Robert Dewar <dewar@adacore.com>
3039
3040 * checks.adb, s-except.ads, g-socket.adb: Minor reformatting.
3041
30422011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
3043
3044 * exp_ch6.adb (Build_Heap_Allocator): Add new
3045 local variable Desig_Typ. Code and comment reformatting. Add
3046 machinery to ensure that the allocation uses a fat pointer when
3047 the type of the return object is a constrained array and the
3048 function return type is an unconstrained array.
3049
30502011-09-06 Vincent Celier <celier@adacore.com>
3051
3052 * make.adb, prj-part.adb, prj-nmsc.adb: Remove unused formal
3053 parameters in subprograms.
3054
30552011-09-06 Arnaud Charlet <charlet@adacore.com>
3056
3057 * s-taprop-mingw.adb (Finalize_TCB): Fix typo.
3058
30592011-09-06 Thomas Quinot <quinot@adacore.com>
3060
3061 * s-taprop-vxworks.adb, s-tpoaal.adb, s-tpopsp-vxworks.adb
3062 (System.Tasking.Primitive_Operations.Specific.Delete): Remove
3063 subprogram.
3064 (System.Tasking.Primitive_Operations.Specific.Set): If argument
3065 is null, destroy task specific data, to make API consistent with
3066 other platforms, and thus compatible with the shared version
3067 of s-tpoaal.adb.
3068 (System.Tasking.Primitive_Operations.ATCB_Allocation.Free_ATCB):
3069 Document the above assumption.
3070
f4f92d9d
AC
30712011-09-06 Ed Schonberg <schonberg@adacore.com>
3072
3073 * exp_ch6.adb (Expand_Inlined_Call): Fix use of uninitialized
3074 variable for type of return value when return type is
3075 unconstrained and context is an assignment.
3076
30772011-09-06 Ed Schonberg <schonberg@adacore.com>
3078
3079 * sem_ch8.adb (Check_Class_Wide_Actual): Do not generate body of
3080 class-wide operation if expansion is not enabled.
3081
30822011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3083
3084 * checks.adb (Apply_Scalar_Range_Check): Deal with access
3085 type prefix.
3086
30872011-09-06 Yannick Moy <moy@adacore.com>
3088
3089 * sem_ch13.adb (Analyze_Aspect_Specifications, case
3090 Aspect_Invariant): Do not issue error at this point on illegal
3091 pragma placement, as this is checked later on when analyzing
3092 the corresponding pragma.
3093 * sem_prag.adb (Error_Pragma_Arg_Alternate_Name): New procedure
3094 similar to Error_Pragma_Arg, except the source name of the
3095 aspect/pragma to use in warnings may be equal to parameter
3096 Alt_Name (Analyze_Pragma, case Pragma_Invariant): refine error
3097 message to distinguish source name of pragma/aspect, and whether
3098 the illegality resides in the type being public, or being private
3099 without a public declaration
3100
31012011-09-06 Thomas Quinot <quinot@adacore.com>
3102
3103 * g-socket.adb (Check_For_Fd_Set): On Windows, no need for bitmap
3104 size check (fd_set is implemented differently on that platform).
3105
31062011-09-06 Thomas Quinot <quinot@adacore.com>
3107
3108 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
3109 s-tpoaal.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
3110 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop.ads,
3111 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-posix.adb
3112 (ATCB_Allocation): New subpackage of
3113 System.Tasking.Primitive_Operations, shared across all targets
3114 with full tasking runtime.
3115 (ATCB_Allocation.New_ATCB): Moved there (from target specific
3116 s-taprop bodies).
3117 (ATCB_Allocation.Free_ATCB): New subprogram. Deallocate an ATCB,
3118 taking care of establishing a local temporary ATCB if the one
3119 being deallocated is Self, to avoid a reference to the freed
3120 ATCB in Abort_Undefer.
3121
31222011-09-06 Thomas Quinot <quinot@adacore.com>
3123
3124 * s-tassta.adb, s-taskin.ads (Free_Task): If the task is not
3125 terminated, mark it for deallocation upon termination.
3126 (Terminate_Task): Call Free_Task again if the task is marked
3127 for automatic deallocation upon termination.
3128
df177175
RD
31292011-09-06 Robert Dewar <dewar@adacore.com>
3130
3131 * a-cbprqu.ads, a-cbsyqu.ads, a-cuprqu.ads, a-cusyqu.ads,
3132 a-intnam-aix.ads, a-intnam-darwin.ads, a-intnam-dummy.ads,
3133 a-intnam-freebsd.ads, a-intnam-hpux.ads, a-intnam-irix.ads,
3134 a-intnam-linux.ads, a-intnam-lynxos.ads, a-intnam-mingw.ads,
3135 a-intnam-solaris.ads, a-intnam-tru64.ads,
3136 a-intnam-vms.ads, a-intnam-vxworks.ads, a-intnam.ads, interfac.ads,
3137 cstand.adb, s-maccod.ads: Mark all entities as Implementation_Defined
3138 * einfo.ads, einfo.adb (Is_Implementation_Defined): New flag
3139 * par-prag.adb: Add dummy entry for pragma Implementation_Defined
3140 * s-rident.ads: Add new restriction No_Implementation_Identifiers
3141 Add new profile No_Implementation_Extensions
3142 * sem_prag.adb: Implement pragma Implementation_Defined Implement
3143 profile No_Implementation_Extensions
3144 * sem_util.adb: Minor reformatting (Set_Entity_With_Style_Check):
3145 Check violation of restriction No_Implementation_Identifiers
3146 * snames.ads-tmpl: Add entries for pragma Implementation_Defined
3147 Add entry for Name_No_Implementation_Extensions
3148
31492011-09-06 Robert Dewar <dewar@adacore.com>
3150
3151 * impunit.ads: Minor reformatting.
3152
b991dd43
AC
31532011-09-06 Robert Dewar <dewar@adacore.com>
3154
3155 * ali.adb, sem_ch13.adb, lib-xref.adb: Minor reformatting.
3156
31572011-09-06 Pascal Obry <obry@adacore.com>
3158
3159 * s-osinte-linux.ads, s-oscons-tmplt.c: Use oscons to define sigset_t
3160 types.
3161
516785cc
AC
31622011-09-06 Robert Dewar <dewar@adacore.com>
3163
3164 * g-socket.adb: Minor reformatting
3165
31662011-09-06 Javier Miranda <miranda@adacore.com>
3167
3168 * ali.adb (Scan_ALI): Add missing support to load references of
3169 entities imported from other languages.
3170 * ali.ads (Xref_Record): Adding new fields to store the language and
3171 name of an imported entity.
3172 * lib-xref.adb (Output_Import_Export_Info): Fix typo
3173 in comment.
3174
31752011-09-06 Ed Schonberg <schonberg@adacore.com>
3176
3177 * sem_prag.adb (Analyze_Pragma, case Type_Invariant): A type invariant
3178 is allowed on a full type declaration if it is the completion of
3179 a private declarations.
3180 * sem_ch13.adb (Analyze_Aspect_Specifications): An invariant
3181 aspect is allowed on a full type declaration in the private part
3182 of a package.
3183
96691943
AC
31842011-09-06 Robert Dewar <dewar@adacore.com>
3185
3186 * sem_ch8.ads: Minor reformatting
3187
31882011-09-06 Thomas Quinot <quinot@adacore.com>
3189
3190 * s-oscons-tmplt.c, g-socket.adb (GNAT.Sockets.Clear,Set,Is_Set):
3191 Guard against socket values that are not in [0;FD_SETSIZE[
3192
54bf19e4
AC
31932011-09-06 Robert Dewar <dewar@adacore.com>
3194
3195 * s-osinte-linux.ads, a-iteint.ads, exp_ch6.adb, s-solita.adb: Minor
3196 reformatting.
3197
31982011-09-06 Arnaud Charlet <charlet@adacore.com>
3199
3200 * s-linux-alpha.ads: Minor reformatting
3201 * s-oscons-tmplt.c: Fix generated comments in s-oscons template.
3202 Use sizeof instead of corresponding C defines in s-oscons template.
3203
5d42cba1
VG
32042011-09-06 Vadim Godunko <godunko@adacore.com>
3205
3206 * a-convec.ads, a-iteint.ads: Minor reformatting.
3207
77aa62e7
AC
32082011-09-06 Vincent Celier <celier@adacore.com>
3209
3210 * projects.texi: Add menus and @node lines.
3211
32122011-09-06 Ed Schonberg <schonberg@adacore.com>
3213
3214 * exp_ch6.adb (Expand_Inlined_Call): Handle properly the case
3215 where the return type is an unconstrained array and the context
3216 is an assignment. Optimize the case when the target of the
3217 assignment is a selected component.
3218
32192011-09-06 Arnaud Charlet <charlet@adacore.com>
3220
3221 * s-solita.adb: Update comments.
3222
32232011-09-06 Pascal Obry <obry@adacore.com>
3224
3225 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, s-linux-mipsel.ads,
3226 s-linux-sparc.ads: Remove hard coded and now wrong definitions.
3227 * s-oscons-tmplt.c: Add support for generating pthread related
3228 types size on GNU/Linux as done for Darwin.
3229 * s-osinte-linux.ads: Use s-oscons to define the pthread types.
3230
886b5a18
AC
32312011-09-06 Robert Dewar <dewar@adacore.com>
3232
3233 * exp_ch6.adb: Fix minor typo.
3234
32352011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
3236
3237 * exp_ch7.adb: Remove with and use clauses for Get_Targ.
3238 (Alignment_Of): Moved to the body of Nearest_Multiple_Rounded_Up.
3239 (Double_Size_Of): Alphabetized. Update the comment on usage.
3240 (Make_Finalize_Address_Stmts): Update comments and reformat code.
3241 (Nearest_Multiple_Rounded_Up): New routine.
3242 (Size_Of): Update comment on usage. The generated expression now
3243 accounts for alignment gaps by rounding the size of the type to the
3244 nearest multiple rounded up of the type's alignment.
3245
57a3fca9
AC
32462011-09-06 Robert Dewar <dewar@adacore.com>
3247
3248 * exp_ch7.adb, g-comlin.adb: Minor reformatting.
3249
32502011-09-06 Steve Baird <baird@adacore.com>
3251
3252 * exp_ch4.adb (Expand_Allocator_Expression): Look through
3253 derived subprograms in checking for presence of an
3254 Extra_Accessibility_Of_Result formal parameter.
3255 * exp_ch6.adb (Expand_Call): Look through derived subprograms in
3256 checking for presence of an Extra_Accessibility_Of_Result formal
3257 parameter.
3258 (Expand_Call.Add_Actual_Parameter): Fix a bug in the
3259 case where the Parameter_Associatiations attribute is already set,
3260 but set to an empty list.
3261 (Needs_Result_Accessibility_Level):
3262 Unconditionally return False. This is a temporary
3263 change, disabling the Extra_Accessibility_Of_Result
3264 mechanism.
3265 (Expand_Simple_Function_Return): Check for
3266 Extra_Accessibility_Of_Result parameter's presence instead of
3267 testing Ada_Version when generating a runtime accessibility
3268 check which makes use of the parameter.
3269
eaed0c37
AC
32702011-09-06 Ed Schonberg <schonberg@adacore.com>
3271
3272 * exp_ch4.adb (Expand_N_Case_Expression): Actions created for the
3273 expression in a given case alternative must be attached to the
3274 statement list of the ccrresponding case statement alternative
3275 They cannot be propagated ahead of the case statement, because
3276 the validity of the expression that generated the action may
3277 hold only for that alternative.
3278
32792011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
3280
3281 * exp_ch7.adb: Remove with and use clauses for Get_Targ.
3282 (Alignment_Of): Remove the code for strict alignment targets.
3283 (Double_Alignment_Of): Removed.
3284 (Double_Size_Of): New routine.
3285 (Make_Finalize_Address_Stmts): Change the
3286 calculation of the dope's size. Update relevant comments.
3287 (Size_Of): New routine.
3288
b8a93198
AC
32892011-09-06 Steve Baird <baird@adacore.com>
3290
3291 * einfo.ads (Extra_Accessibility): Update associated comment to use
3292 the term "present" correctly ("present" just means that it is not
3293 an error to query the value of the attribute - it does not imply
3294 that the value must be non-null).
3295 (Extra_Constrained): Ditto.
3296 (Is_Visible_Formal): Ditto.
3297 (Extra_Accessibility_Of_Result) Ditto; also add Inline pragma.
3298 (Set_Extra_Accessibility_Of_Result): Add Inline pragma.
3299 * exp_ch4.adb (Expand_Allocator_Expression): Improve a comment.
3300 * exp_ch6.adb (Expand_Call): The callee may require an
3301 Extra_Accessibility_Of_Result actual parameter even if Ada_Version
3302 < Ada_2012. This can occur if the callee is exported from a Gnat
3303 runtimes unit. Also improve a comment.
3304
33052011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
3306
3307 * exp_ch7.adb: Add with and use clauses for Get_Targ.
3308 (Alignment_Of): Rename formal parameter Some_Typ
3309 to Typ, update related comment. Use the allocator alignment on
3310 strict alignment targets such as SPARC.
3311 (Double_Alignment_Of): Rename formal parameter Some_Typ to Typ, update
3312 related comment.
3313
33142011-09-06 Gary Dismukes <dismukes@adacore.com>
3315
3316 * sem_ch9.adb (Check_Interfaces): Test
3317 Is_Limited_Type rather than Is_Limited_Record when checking that
3318 the partial view of a synchronized full view must be limited.
3319
33202011-09-06 Emmanuel Briot <briot@adacore.com>
3321
3322 * g-comlin.adb (Free): Fix memory leak.
3323
ebf494ec
RD
33242011-09-06 Robert Dewar <dewar@adacore.com>
3325
3326 * sem_util.adb, exp_ch6.adb: Minor reformatting and code reorganization.
3327
63585f75
SB
33282011-09-06 Steve Baird <baird@adacore.com>
3329
3330 * einfo.ads (Extra_Accessibility_Of_Result): New function; in the
3331 (Ada2012) cases described in AI05-0234 where the accessibility
3332 level of a function result is "determined by the point of
3333 call", an implicit parameter representing that accessibility
3334 level is passed in. Extra_Accessibilty_Of_Result yields this
3335 additional formal parameter. Extra_Accessibility_Of_Result
3336 is analogous to the existing Extra_Accessibility
3337 function used in the implementation of access parameters.
3338 (Set_Extra_Accessibility_Of_Result): New procedure; sets
3339 Extra_Accessibility_Of_Result attribute.
3340 * einfo.adb (Extra_Accessibility_Of_Result): New function.
3341 (Set_Extra_Accessibility_Of_Result): New procedure.
3342 (Write_Field19_Name): Display Extra_Accessibilty_Of_Result attribute.
3343 * sem_util.adb (Dynamic_Accessibility_Level): Set Etype of
3344 an accessibility level literal to Natural; introduce a nested
3345 function, Make_Level_Literal, to do this.
3346 * exp_ch6.ads (Needs_Result_Accessibility_Level): New function;
3347 determines whether a given function (or access-to-function
3348 type) needs to have an implicitly-declared accessibility-level
3349 parameter added to its profile.
3350 (Add_Extra_Actual_To_Call): Export an existing procedure which was
3351 previously declared in the body of Exp_Ch6.
3352 * exp_ch6.adb (Add_Extra_Actual_To_Call): Export declaration by moving
3353 it to exp_ch6.ads.
3354 (Has_Unconstrained_Access_Discriminants): New Function; a
3355 predicate on subtype entities which returns True if the given
3356 subtype is unconstrained and has one or more access discriminants.
3357 (Expand_Call): When expanding a call to a function which takes an
3358 Extra_Accessibility_Of_Result parameter, pass in the appropriate
3359 actual parameter value. In the case of a function call which is
3360 used to initialize an allocator, this may not be possible because
3361 the Etype of the allocator may not have been set yet. In this
3362 case, we defer passing in the parameter and handle it later in
3363 Expand_Allocator_Expression.
3364 (Expand_Simple_Function_Return): When returning from a function which
3365 returns an unconstrained subtype having at least one access
3366 discriminant, generate the accessibility check needed to ensure that
3367 the function result will not outlive any objects designated by its
3368 discriminants.
3369 (Needs_Result_Accessibility_Level): New function; see exp_ch6.ads
3370 description.
3371 * exp_ch4.adb (Expand_Allocator_Expression): When a function call
3372 is used to initialize an allocator, we may need to pass in "the
3373 accessibility level determined by the point of call" (AI05-0234)
3374 to the function. Expand_Call, where such actual parameters are
3375 usually generated, is too early in this case because the Etype of
3376 the allocator (which is used in determining the level to be passed
3377 in) may not have been set yet when Expand_Call executes. Instead,
3378 we generate code to pass in the appropriate actual parameter
3379 in Expand_Allocator_Expression.
3380 * sem_ch6.adb (Create_Extra_Formals): Create
3381 the new Extra_Accessibility_Of_Result formal if
3382 Needs_Result_Accessibility_Level returns True. This includes the
3383 introduction of a nested procedure, Check_Against_Result_Level.
3384
1a982c6e
AC
33852011-09-06 Arnaud Charlet <charlet@adacore.com>
3386
3387 * gcc-interface/Makefile.in (X86_TARGET_PAIRS): Remove duplicate
3388 declaration.
3389
e42bcfa3
AC
33902011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
3391
3392 * s-finmas.adb (Set_Finalize_Address): Explain the reason
3393 for the synchronization. Move the test for null from
3394 s-stposu.Allocate_Any_Controlled to this routine since the check
3395 needs to be protected too.
3396 (Set_Heterogeneous_Finalize_Address): Explain the reason for the
3397 synchronization code.
3398 * s-finmas.ads (Set_Heterogeneous_Finalize_Address): Add comment
3399 explaining the context in which this routine is used.
3400 * s-stposu.adb (Allocate_Any_Controlled): Move the test for null
3401 to s-finmas.Set_Finalize_Address.
3402
34032011-09-05 Ed Schonberg <schonberg@adacore.com>
3404
3405 * einfo.ads: Document that itypes have no parent field.
3406
34072011-09-05 Robert Dewar <dewar@adacore.com>
3408
3409 * rtsfind.adb (Check_CRT): Check for overloaded entity
3410 * rtsfind.ads: Document that entities to be found by rtsfind
3411 cannot be overloaded
3412 * s-taenca.adb, s-tasren.adb, s-tpobop.adb, s-tpoben.ads, s-tpoben.adb
3413 (Lock_Entries_With_Status): New name for Lock_Entries with two
3414 arguments (changed to meet rtsfind no overloading rule).
3415
544e7c17
AC
34162011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
3417
3418 * s-finmas.adb (Set_Finalize_Address (Address,
3419 Finalize_Address_Ptr)): Renamed to Set_Heterogeneous_Finalize_Address.
3420 (Set_Finalize_Address (in out Finalization_Master,
3421 Finalize_Address_Ptr): Add synchronization code.
3422 * s-finmas.ads (Set_Finalize_Address (Address,
3423 Finalize_Address_Ptr)): Renamed to Set_Heterogeneous_Finalize_Address.
3424 * s-stposu.adb (Allocate_Any_Controlled): Update the call to
3425 Set_Finalize_Address for the heterogeneous case.
3426
34272011-09-05 Ed Schonberg <schonberg@adacore.com>
3428
3429 * sem_ch3.adb: Undo previous change, not suitable after all.
3430
34312011-09-05 Robert Dewar <dewar@adacore.com>
3432
3433 * einfo.ads: Minor comment clarification.
3434
0613fb33
AC
34352011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
3436
3437 * exp_ch6.adb (Move_Activation_Chain): Rewritten. The routine
3438 no longer needs to search through the entities of the return
3439 statement scope to find the _chain.
3440 * sem_ch5.adb: Add with and use clauses for Exp_Ch6 and Sem_Ch6.
3441 (Analyze_Block_Statement): Add local variable
3442 Is_BIP_Return_Statement. Add machinery to install all entities
3443 produced by the expansion of the return object declaration.
3444 (Install_Return_Entities): New routine.
3445 * sem_ch6.ads, sem_ch6.adb (Install_Entity): Moved from body to spec.
3446
34472011-09-05 Ed Schonberg <schonberg@adacore.com>
3448
3449 * sem_ch10.adb (Analyze_Context): Apply simple fixup if context
3450 of subunit is incomplete.
3451 (Analyze_Proper_Body): If parent spec is not available, do not
3452 attempt analysis.
3453
5dcab3ca
AC
34542011-09-05 Ed Schonberg <schonberg@adacore.com>
3455
3456 * sem_disp.adb (Find_Controlling_Arg): Add checks for
3457 interface type conversions, that are expanded into dereferences.
3458
34592011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
3460
3461 * sem_ch6.adb (Analyze_Subprogram_Body_Helper):
3462 Examine the parameter and return profile of a subprogram and swap
3463 any incomplete types coming from a limited context with their
3464 corresponding non-limited views.
3465 (Exchange_Limited_Views): New routine.
3466
34672011-09-05 Ed Schonberg <schonberg@adacore.com>
3468
3469 * sem_ch3.adb (Prepare_Private_Subtype_Completion): Set parent
3470 of internal entity to the subtype declaration, so that when
3471 entities are subsequently exchanged in a package body, the tree
3472 remains properly formatted for ASIS.
3473
8da1a312
AC
34742011-09-05 Johannes Kanig <kanig@adacore.com>
3475
3476 * g-comlin.adb (Set_Usage): Additional optional argument to set help
3477 message.
3478 (Display_Help): display the user given help message, if available.
3479
34802011-09-05 Ed Schonberg <schonberg@adacore.com>
3481
3482 * sem_ch3.adb (OK_For_Limited_Init_In_05): The expression
3483 is legal if the original node is an identifier that is a
3484 parameterless function call.
3485
69b73847
PO
34862011-09-05 Pascal Obry <obry@adacore.com>
3487
3488 * prj-nmsc.adb: Minor reformatting.
3489 Add support for standalone aggregate library.
3490 (Check_Stand_Alone_Library): Handle standalone aggregate library.
3491 * projects.texi: Fix documentation for aggregate library projects.
3492
81bf2382
AC
34932011-09-05 Robert Dewar <dewar@adacore.com>
3494
3495 * sem_ch6.adb: Minor reformatting.
3496
34972011-09-05 Matthew Gingell <gingell@adacore.com>
3498
3499 * s-tassta.adb (Task_Wrapper): Ensure that we don't try to write the
3500 stack guard page on PPC Linux. This patch ensures the 64K guard page at
3501 the bottom of the stack is not overwritten.
3502
13a0b1e8
AC
35032011-09-05 Thomas Quinot <quinot@adacore.com>
3504
3505 * exp_intr.adb, s-tasini.adb: Minor reformatting.
3506
35072011-09-05 Ed Schonberg <schonberg@adacore.com>
3508
3509 * sem_ch3.adb (Access_Definition): If an access type declaration
3510 appears in a child unit, the scope of whatever anonymous type
3511 may be generated is the child unit itself.
3512
35132011-09-05 Ed Schonberg <schonberg@adacore.com>
3514
3515 * sem_ch6.adb (Analyze_Expression_Function): Do not set
3516 Comes_From_Source on rewritten body.
3517 (Analyze_Subprogram_Body_Helper): Check that the original node for
3518 the body comes from source, when determining whether expansion
3519 of a protected operation is needed.
3520
20428725
AC
35212011-09-05 Ed Schonberg <schonberg@adacore.com>
3522
3523 * exp_aggr.adb (Replace_Type): If the target of the assignment is
3524 a selected component and the right-hand side is a self-referential
3525 access, the proper prefix of the rewritten attribute is a copy
3526 of the left-hand side, not of its prefix.
3527
35282011-09-05 Robert Dewar <dewar@adacore.com>
3529
3530 * sem_ch5.adb: Minor reformatting.
3531 * sem_ch3.adb: Minor code clean up.
3532
35332011-09-05 Jose Ruiz <ruiz@adacore.com>
3534
3535 * exp_ch9.adb (Make_Initialize_Protection): The fact that
3536 restriction No_Dynamic_Attachment is in effect or not should
3537 not influence the default priority associated to a protected
3538 object. With this change, when the restriction is in effect (as
3539 is the case for the Ravenscar profile) the default priority of
3540 a protected object with an interrupt handler is in the range of
3541 interrupt priorities (Default_Interrupt_Priority) as required
3542 by D.3(10).
3543
35442011-09-05 Arnaud Charlet <charlet@adacore.com>
3545
3546 * a-iteint.ads: Fix header.
3547
35482011-09-05 Vincent Celier <celier@adacore.com>
3549
3550 * prj-conf.adb (Do_Autoconf): Make sure Obj_Dir always ends
3551 with a directory separator to avoid output such as:
3552 "/path/to/objauto.cgpr" has been deleted.
3553
4a1bfefb
AC
35542011-09-05 Robert Dewar <dewar@adacore.com>
3555
3556 * sem_ch3.adb: Minor reformatting.
3557
35582011-09-05 Ed Schonberg <schonberg@adacore.com>
3559
3560 * sem_ch5.adb: Better error message.
3561
35622011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
3563
3564 * exp_aggr.adb: Add with and use clause for Exp_Ch6.
3565 (Expand_Array_Aggregate): Detect a special case of an aggregate
3566 which contains tasks in the context of an unexpanded return
3567 statement of a build-in-place function.
3568 * exp_ch6.adb: Add with and use clause for Exp_Aggr.
3569 (Expand_N_Extended_Return_Statement): Detect a delayed aggregate
3570 which contains tasks and expand it now that the original simple
3571 return statement has been rewritten.
3572 * exp_ch9.adb (Build_Activation_Chain_Entity): Code
3573 reformatting. Do not create a chain for an extended return
3574 statement if one is already available.
3575 (Has_Activation_Chain): New routine.
3576
9ec080cb
AC
35772011-09-05 Marc Sango <sango@adacore.com>
3578
3579 * sem_ch3.adb (Analyze_Object_Declaration): Remove
3580 the wrong test and add the correct test to detect the violation
3581 of illegal use of unconstrained string type in SPARK mode.
3582
35832011-09-05 Ed Schonberg <schonberg@adacore.com>
3584
3585 * sem_ch5.adb (Analyze_Iteration_Specification): Improve error
3586 message on an iterator over an array.
3587
35882011-09-05 Robert Dewar <dewar@adacore.com>
3589
3590 * lib-xref-alfa.adb: Minor reformatting.
3591
aeae67ed
RD
35922011-09-05 Robert Dewar <dewar@adacore.com>
3593
3594 * sem_ch3.adb, sem_res.adb, par.adb, par-ch6.adb, g-comlin.adb,
3595 exp_ch6.adb, lib-xref-alfa.adb: Minor reformatting.
3596
d72e7628
AC
35972011-09-05 Gary Dismukes <dismukes@adacore.com>
3598
3599 * exp_ch7.adb, exp_ch6.adb: Minor reformatting.
3600
36012011-09-05 Johannes Kanig <kanig@adacore.com>
3602
3603 * lib-xref-alfa.adb: Update comments.
3604
36052011-09-05 Thomas Quinot <quinot@adacore.com>
3606
3607 * sem_res.adb: Minor reformatting
3608
0d566e01
ES
36092011-09-05 Ed Schonberg <schonberg@adacore.com>
3610
3611 * exp_ch6.adb (Build_In_Place_Formal): If extra formals are not
3612 present, create them now. Needed in case the return type was
3613 a limited view in the function declaration.
3614 (Make_Build_In_Place_Call_In_Allocator): If return type contains
3615 tasks, build the activation chain for it. Pass a reference to
3616 the Master_Id in call to Add_Task_Actuals_To_Build_In_Place call.
3617 * exp_ch7.adb (Make_Set_Finalize_Address_Call): Clean up interface
3618 with build_in_place calls.
3619 * sem_ch9.adb (Analyze_Task_Type_Declaration): If partial view was
3620 incomplete, inatialize its Corresponding_Record_Type component.
3621 * sem_ch10.adb (Build_Chain): Initialize Private_Dependents field
3622 of limited views.
3623
ec09f261
AC
36242011-09-05 Johannes Kanig <kanig@adacore.com>
3625
3626 * lib-xref-alfa.adb (Is_Alfa_Reference): Filter constants from effect
3627 information.
3628
36292011-09-05 Ed Schonberg <schonberg@adacore.com>
3630
3631 * par-ch6.adb (P_Subprogram): In Ada2012 mode, if the subprogram
3632 appears within a package specification and the token after "IS"
3633 is not a parenthesis, assume that this is an unparenthesized
3634 expression function, even if the token appears in a line by
3635 itself.
3636 * par.adb: Clarify use of Labl field of scope stack in error
3637 recovery.
3638
7109f4f5
AC
36392011-09-05 Bob Duff <duff@adacore.com>
3640
3641 * sem_res.adb (Resolve_Intrinsic_Operator): Use unchecked
3642 conversions instead of normal type conversions in all cases where a
3643 type conversion would be illegal. In particular, use unchecked
3644 conversions when the operand types are private.
3645
36462011-09-05 Johannes Kanig <kanig@adacore.com>
3647
3648 * lib-xref-alfa.adb (Is_Alfa_Reference): Never declare effects on
3649 objects of task type or protected type.
3650
66dc8075
AC
36512011-09-05 Ed Schonberg <schonberg@adacore.com>
3652
3653 * sem_ch6.adb (Analyze_Expression_Function): If the expression
3654 function comes from source, indicate that so does its rewriting,
3655 so it is compatible with any subsequent expansion of the
3656 subprogram body (e.g. when it is a protected operation).
3657 * sem_ch4.adb: minor reformatting
3658
36592011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
3660
3661 * lib.adb (Check_Same_Extended_Unit): Comment rewriting. Use
3662 Get_Source_Unit rather than Get_Code_Unit as instantiation unfolding
3663 may lead to wrong ancestor package in the case of instantiated subunit
3664 bodies. If a subunit is instantiated, follow the chain of instantiations
3665 rather than the stub structure.
3666
bd38b431
AC
36672011-09-02 Robert Dewar <dewar@adacore.com>
3668
3669 * sem_ch4.adb, sem_ch6.adb: Minor reformatting.
3670 * gcc-interface/Make-lang.in: Update dependencies.
3671
36722011-09-02 Marc Sango <sango@adacore.com>
3673
3674 * sem_ch3.adb (Analyze_Object_Declaration): Change
3675 comment and add additional check to differentiate constant of
3676 type string from others unconstrained type.
3677
99d520ad
ES
36782011-09-02 Ed Schonberg <schonberg@adacore.com>
3679
3680 * sinfo.ads, sinfo.adb: New semantic attribute Premature_Use,
3681 present in incomplete type declarations to refine the error
3682 message the full declaration is in the same unit.
3683 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of
3684 an incomplete type, set the Premature_Use for additional message.
3685 * sem_ch3.adb (Find_Type_Name): If partial view is incomplete
3686 and Premature_Use is set, place additional information at the
3687 point of premature use.
3688
5b5588dd
AC
36892011-09-02 Bob Duff <duff@adacore.com>
3690
3691 * sem_ch6.adb: (Check_Post_State): Suppress warning
3692 "postcondition refers only to pre-state" when the expression has not
3693 yet been analyzed, because it causes false alarms. This can happen when
3694 the postcondition contains a quantified expression, because those are
3695 analyzed later. This is a temporary/partial fix.
3696 (Process_Post_Conditions): Minor: change wording of warning.
3697
36982011-09-02 Marc Sango <sango@adacore.com>
3699
3700 * sem_ch3.adb (Analyze_Object_Declaration): Detect the violation of
3701 illegal use of unconstrained string type in SPARK mode.
3702 * sem_res.adb (Analyze_Operator_Symbol): Set the
3703 right place where the string operand of concatenation should be
3704 violate in SPARK mode.
3705
bd603506
RD
37062011-09-02 Robert Dewar <dewar@adacore.com>
3707
3708 * sem_prag.adb, sem_util.adb, sem_ch6.adb, prj-nmsc.adb,
3709 exp_ch3.adb: Minor reformatting.
3710
24a120ac
AC
37112011-09-02 Vincent Celier <celier@adacore.com>
3712
3713 * prj-conf.adb (Add_Default_GNAT_Naming_Scheme): Declare "gcc"
3714 as the compiler driver so Is_Compilable returns True for sources.
3715 * prj-nmsc.adb (Override_Kind): When Kind is Sep, set the source
3716 for the body.
3717
37182011-09-02 Ed Schonberg <schonberg@adacore.com>
3719
3720 * sem_prag.adb (Analyze_PPC_In_Decl_Part): for a class-wide
3721 condition, a reference to a controlling formal must be interpreted
3722 as having the class-wide type (or an access to such) so that the
3723 inherited condition can be properly applied to any overriding
3724 operation (see ARM12 6.6.1 (7)).
3725
37262011-09-02 Tristan Gingold <gingold@adacore.com>
3727
3728 * init.c (__gnat_is_vms_v7): Fix case and add prototype
3729 for LIB$GETSYI.
3730
37312011-09-02 Javier Miranda <miranda@adacore.com>
3732
3733 * exp_ch3.adb (Expand_N_Object_Declaration): Do not copy the
3734 initializing expression of a class-wide interface object declaration
3735 if its type is limited.
3736
37372011-09-02 Johannes Kanig <kanig@adacore.com>
3738
3739 * sem_util.adb (Unique_Name): To obtain a unique name for enumeration
3740 literals, take into account the type name; the type is *not*
3741 the scope for an enumeration literal.
3742
37432011-09-02 Ed Schonberg <schonberg@adacore.com>
3744
3745 * sem_ch6.adb (Check_Overriding_Indicator): add special check
3746 to reject an overriding indicator on a user-defined Adjust
3747 subprogram for a limited controlled type.
3748
37492011-09-02 Ed Schonberg <schonberg@adacore.com>
3750
3751 * sem_res.adb (Resolve_Actuals): add missing call to Resolve
3752 for an actual that is a function call returning an unconstrained
3753 limited controlled type.
3754
37552011-09-02 Tristan Gingold <gingold@adacore.com>
3756
3757 * g-socthi-vms.adb (c_sendmsg, c_recvmsg): Use unpacked msg if on vms 7
3758
37592011-09-02 Johannes Kanig <kanig@adacore.com>
3760
3761 * alfa.ads (Name_Of_Heap_Variable): Change value of the HEAP variable
3762 from "HEAP" to __HEAP Change comment that refers to that variable
3763 * put_alfa.adb: Change comment that refers to that variable
3764
c5f5123f
AC
37652011-09-02 Robert Dewar <dewar@adacore.com>
3766
3767 * exp_ch4.adb, exp_ch6.adb, prj-nmsc.adb: Minor reformatting.
3768
37692011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
3770
3771 * exp_util.adb (Extract_Renamed_Object): Renamed to
3772 Find_Renamed_Object. This routine has been reimplemented and now uses
3773 tree traversal to locate a renamed object.
3774 (Is_Aliased): Replace call to Extract_Renamed_Object with
3775 Find_Renamed_Object.
3776
37772011-09-02 Tristan Gingold <gingold@adacore.com>
3778
3779 * init.c: (__gnat_is_vms_v7): New function.
3780
37812011-09-02 Olivier Hainque <hainque@adacore.com>
3782
3783 * tracebak.c (STOP_FRAME, ppc elf/vxworks case): Stop on frames
3784 that have a misaligned backchain, necessarily bogus.
3785
2bfa5484
HK
37862011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
3787
3788 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not create
3789 TSS routine Finalize_Address when compiling in Alfa mode.
3790 (Expand_Freeze_Record_Type): Do not create TSS routine
3791 Finalize_Address when compiling in Alfa mode.
3792 * exp_ch4.adb (Expand_Allocator_Expression): Do not produce a
3793 call to Set_Finalize_Address in Alfa mode because Finalize_Address is
3794 not built.
3795 (Expand_N_Allocator): Do not produce a call to
3796 Set_Finalize_Address in Alfa mode because Finalize_Address is not built.
3797 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not
3798 produce a call to primitive Set_Finalize_Address in Alfa mode because
3799 Finalize_Address is not built.
3800 * exp_ch7.adb (Build_Finalization_Master): Do not create
3801 finalization masters in Afa mode since they are not needed.
3802 (Build_Finalizer): Do not create scope and library-level
3803 finalizers in Alfa mode since they are not needed.
3804 * exp_util.adb (Build_Allocate_Deallocate_Proc): Do not expand
3805 "new" and "free" when applied to controlled objects in Alfa mode since
3806 this is not needed.
3807
7a0ddd20
AC
38082011-09-02 Vincent Celier <celier@adacore.com>
3809
3810 * prj-nmsc.db: (Check_Stand_Alone_Library): For SALs, allow
3811 only library names with the syntax of Ada identifiers, to avoid errors
3812 when compiling the binder generated files.
3813 * projects.texi: Document restriction on SAL library names
3814
38152011-09-02 Thomas Quinot <quinot@adacore.com>
3816
3817 * a-chtgbo.adb: Minor comment fix.
3818
439b6dfa
AC
38192011-09-02 Robert Dewar <dewar@adacore.com>
3820
3821 * lib-xref.adb: Minor reformatting
3822
38232011-09-02 Vincent Celier <celier@adacore.com>
3824
3825 * bindusg.adb, clean.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
3826 gnatls.adb, gnatname.adb, gnatxref.adb, gprep.adb, makeusg.adb: Add
3827 --version and --help in usage.
3828 * switch.ads, switch.adb (Display_Usage_Version_And_Help): New procedure
3829
f2404867
AC
38302011-09-02 Bob Duff <duff@adacore.com>
3831
3832 * lib-xref.adb: (Hash): Avoid use of 'Mod attribute, because old
3833 compilers don't understand it.
3834
38352011-09-02 Gary Dismukes <dismukes@adacore.com>
3836
3837 * exp_attr.adb (Expand_N_Attribute_Reference): Pass the
3838 underlying subtype rather than its base type on the call to
3839 Build_Record_Or_Elementary_Input_Function, so that any
3840 constraints on a discriminated subtype will be available for
3841 doing the check required by AI05-0192.
3842 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function):
3843 If the prefix subtype of the 'Input attribute is a constrained
3844 discriminated subtype, then check each constrained discriminant value
3845 against the corresponding value read from the stream.
3846
029b67ba
YM
38472011-09-02 Yannick Moy <moy@adacore.com>
3848
3849 * usage.adb, warnsw.adb, sem_ch6.adb, opt.ads: Disable by default
3850 warnings on suspicious contracts, and enable them with -gnatwa.
3851
dc36a7e3
RD
38522011-09-02 Robert Dewar <dewar@adacore.com>
3853
3854 * exp_util.adb, exp_ch9.adb, sem_attr.adb, sem_ch6.adb: Minor
3855 reformatting.
3856
d5aa443c
AC
38572011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
3858
3859 * exp_ch9.adb (Install_Private_Data_Declarations): Add guards
3860 which ensure that restriction No_Dynamic_Attachment has not been
3861 violated.
3862 (Make_Initialize_Protection): Protected types with attach or
3863 interrupt handlers must not violate restriction No_Dynamic_Attachment.
3864 * exp_util.adb (Corresponding_Runtime_Package): Add a guard
3865 which ensures that restriction No_Dynamic_Attachment has not been
3866 violated.
3867 * sem_attr.adb: (Eval_Attribute): Transform
3868 VAX_Float_Type'First and 'Last into references to
3869 the temporaries which store the corresponding bounds. The
3870 transformation is needed since the back end cannot evaluate
3871 'First and 'Last on VAX.
3872 (Is_VAX_Float): New routine.
3873
38742011-09-02 Ed Schonberg <schonberg@adacore.com>
3875
3876 * sem_ch12.adb (Analyze_Subprogram_Instantiation): If the
3877 generic unit is not intrinsic and has an explicit convention,
3878 the instance inherits it.
3879
67c86178
AC
38802011-09-02 Robert Dewar <dewar@adacore.com>
3881
3882 * prj-dect.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, prj-tree.adb,
3883 prj.adb, prj.ads, sem_ch5.adb: Minor reformatting.
3884
38852011-09-02 Thomas Quinot <quinot@adacore.com>
3886
3887 * sem_attr.adb (Analyze_Attribute, case Unrestriced_Access):
3888 Guard against a prefix that is an N_Has_Entity but has no
3889 associated entity.
3890
38912011-09-02 Yannick Moy <moy@adacore.com>
3892
3893 * lib-xref-alfa.adb (Is_Alfa_Reference): Ignore IN parameters in Alfa
3894 references.
3895
38962011-09-02 Yannick Moy <moy@adacore.com>
3897
3898 * opt.ads (Warn_On_Suspicious_Contract): New warning flag.
3899 * sem_ch3.adb (Analyze_Declarations): Call checker for suspicious
3900 contracts.
3901 * sem_ch6.adb, sem_ch6.ads (Check_Subprogram_Contract): New
3902 procedure looking for suspicious postconditions.
3903 * usage.adb (Usage): New options -gnatw.t and -gnatw.T.
3904 * warnsw.adb (Set_Dot_Warning_Switch): Take into account new
3905 options -gnatw.t and -gnatw.T.
3906
735ca1b9
PO
39072011-09-02 Pascal Obry <obry@adacore.com>
3908
3909 * prj.adb: Minor code refactoring. Move check for null project in
3910 Project_Changed.
3911 * projects.texi: Fix minor typos.
3912
86828d40
AC
39132011-09-02 Ed Schonberg <schonberg@adacore.com>
3914
3915 * sem_ch5.adb (Analyze_Iterator_Specification): If the domain
3916 of iteration is an expression, its value must be captured in a
3917 renaming declaration, so that modification of the elements is
3918 propagated to the original container.
3919
39202011-09-02 Pascal Obry <obry@adacore.com>
3921
3922 * prj-proc.adb, prj.adb, makeutl.adb, makeutl.ads, prj-dect.adb,
3923 prj-nmsc.adb, prj-util.adb, prj-conf.adb, prj-env.adb,
3924 prj-tree.adb: Minor reformatting and style fixes.
3925
83de674b
AC
39262011-09-02 Robert Dewar <dewar@adacore.com>
3927
3928 * s-rident.ads: Add new restriction No_Implicit_Aliasing
3929 * sem_attr.adb: (Analyze_Access_Attribute): Deal with
3930 No_Implicit_Aliasing
3931 (Analyze_Attribute, case Address): ditto
3932 (Analyze_Attribute, case Unrestricted_Access): ditto
3933 * sem_util.ads, sem_util.adb: (Is_Aliased_View): Handle
3934 No_Implicit_Aliasing restriction.
3935 * gnat_rm.texi: Add documentation for No_Implicit_Aliasing
3936
39372011-09-02 Ed Schonberg <schonberg@adacore.com>
3938
3939 * exp_util.adb: (Possible_Bit_Aligned_Object): If the object
3940 is an unchecked conversion, apply test to its expression.
3941
39422011-09-02 Javier Miranda <miranda@adacore.com>
3943
3944 * sem_ch3.adb (Check_Abstract_Overriding): When
3945 traversing the chain of aliased subprograms avoid reporting a
3946 redundant error on the current entity.
3947
39482011-09-02 Sergey Rybin <rybin@adacore.com>
3949
3950 * gnat_ugn.texi: Minor clean up.
3951
39522011-09-02 Bob Duff <duff@adacore.com>
3953
3954 * s-htable.adb (Set_If_Not_Present): Use renaming
3955 instead of ":=", because the type Key is limited in the generic (even
3956 if not in the instances).
3957
2c17ca0a
AC
39582011-09-02 Robert Dewar <dewar@adacore.com>
3959
3960 * exp_util.adb, sem_ch10.adb, sem_attr.adb, s-htable.adb,
3961 g-comlin.adb, g-comlin.ads, lib-xref-alfa.adb, lib-xref.adb: Minor
3962 reformatting.
3963
39642011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
3965
3966 * sem_ch3.adb: (Set_Anonymous_Type): Associate the itype of an
3967 inherited component with the enclosing derived type. Code reformatting.
3968
39692011-09-02 Gary Dismukes <dismukes@adacore.com>
3970
3971 * checks.adb: (Determine_Range): Add test of OK1 to prevent the early
3972 return done when overflow checks are enabled, since comparisons against
3973 Lor and Hir should not be done when OK1 is False.
3974
39752011-09-02 Gary Dismukes <dismukes@adacore.com>
3976
3977 * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
3978 Add new formal Master_Exp. When present, add that expression to the
3979 call as an extra actual.
3980 (Make_Build_In_Place_Call_In_Object_Declaration): Add variable
3981 Fmaster_Actual and in the case of a BIP call initializing a return
3982 object of an enclosing BIP function set it to a
3983 new reference to the implicit finalization master
3984 formal of the enclosing function. Fmaster_Actual is
3985 then passed to the new formal Master_Exp on the call to
3986 Add_Finalization_Master_Actual_To_Build_ In_Place_Call. Move
3987 initializations of Enclosing_Func to its declaration.
3988
39892011-09-02 Thomas Quinot <quinot@adacore.com>
3990
3991 * csets.ads: Minor reformatting
3992
39932011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
3994
3995 * exp_aggr.adb: (Get_Constraint_Association): Add code to retrieve
3996 the full view of a private type coming from an instantiation.
3997 * exp_ch4.adb: (Current_Anonymous_Master): Reimplement the search
3998 loop to iterate over the declarations rather than use the
3999 First_Entity / Next_Entity scheme.
4000
ed32b82e
ES
40012011-09-02 Ed Schonberg <schonberg@adacore.com>
4002
4003 * sem_attr.adb: (Analyze_Attribute, case 'Range): when expanding
4004 X'range (N) into X'First (N) .. X'Last (N), do not share the
4005 dimension indicator N, if present. Even though it is a static
4006 constant, its source location may be modified when printing
4007 expanded code under -gnatDL, and node sharing will lead to chaos
4008 in Sprint on large files, by generating a sloc value that does
4009 not correspond to any source file.
4010
f7bb41af
AC
40112011-09-02 Bob Duff <duff@adacore.com>
4012
4013 * einfo.adb: (Has_Xref_Entry): Do not call
4014 Implementation_Base_Type. Lib.Xref has been
4015 rewritten to avoid the need for it, and it was costly.
4016 * s-htable.ads,s-htable.adb: (Present,Set_If_Not_Present): New
4017 functions in support of efficient xref.
4018 * lib-xref-alfa.adb: Misc changes related to Key component of
4019 type Xref_Entry.
4020 * lib-xref.adb: (Add_Entry,etc): Speed improvement.
4021 (New_Entry): Call Implementation_Base_Type, because Has_Xref_Entry
4022 no longer does. This is the one place where it is needed.
4023
40242011-09-02 Johannes Kanig <kanig@adacore.com>
4025
4026 * g-comlin.adb (Getopt): New optional argument Concatenate to have
4027 similar interface as the other Getopt function.
4028
40292011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
4030
4031 * exp_ch4.adb: (Expand_Allocator_Expression): Do not generate
4032 a call to Set_Finalize_Address if there is no allocator available.
4033 * exp_util.adb: (Build_Allocate_Deallocate_Proc): Account for
4034 a case of allocator expansion where the allocator is not expanded but
4035 needs a custom allocate routine. Code reformatting.
4036 (Is_Finalizable_Transient): Remove local variables Has_Rens and
4037 Ren_Obj. Code reformatting.
4038 (Is_Renamed): Renamed to Is_Aliased. Add code to detect aliasing
4039 through the use of 'reference.
4040 * sem_ch4.adb: (Analyze_Allocator): Detect allocators generated
4041 as part of build-in-place expansion. They are intentionally marked as
4042 coming from source, but their parents are not.
4043
bd0bc43e
AC
40442011-09-02 Ed Schonberg <schonberg@adacore.com>
4045
4046 * sem_ch10.adb (Analyze_With_Clause): If the library unit
4047 is the generated subprogram declaration for a child unit body
4048 that acts as spec, use the original body in the with_clause,
4049 to prevent binding errors.
4050
40512011-09-02 Vincent Celier <celier@adacore.com>
4052
4053 * gnat_ugn.texi: Adapt documentation of -gnateInnn to new VMS
4054 qualifier /MULTI_UNIT_INDEX=
4055
40562011-09-02 Johannes Kanig <kanig@adacore.com>
4057
4058 * g-comlin.adb (Getopt): Return when switch is dealt with automatically,
4059 instead of calling the callback function
4060
9fdb5d21
RD
40612011-09-02 Robert Dewar <dewar@adacore.com>
4062
4063 * prj-proc.adb, prj.ads, sem_util.adb, s-taprop-linux.adb,
4064 prj-nmsc.adb, prj-util.ads, prj-env.adb: Minor reformatting.
4065
c6d5d1ac
AC
40662011-09-02 Vincent Celier <celier@adacore.com>
4067
4068 * prj-nmsc.adb: (Find_Sources): When the list of sources is
4069 explicitly declared in an extending project, do not warn if a source
4070 for an inherited naming exception is not found.
4071
40722011-09-02 Gary Dismukes <dismukes@adacore.com>
4073
4074 * exp_ch6.adb: (Is_Build_In_Place_Function_Call): Return False if
4075 expansion is inactive.
4076
40772011-09-02 Ed Schonberg <schonberg@adacore.com>
4078
4079 * sem_util.adb (Note_Possible_Modification): If the entity
4080 being modified is the renaming generated for an Ada2012 iterator
4081 element, the enclosing container or array is modified as well.
4082
2ba1a7c7
AC
40832011-09-02 Jose Ruiz <ruiz@adacore.com>
4084
4085 * s-taprop-linux.adb (Initialize_Lock, Initialize_TCB,
4086 Initialize): Define and initialize the
4087 mutex attributes and condition variable attributes locally.
4088
40892011-09-02 Vincent Celier <celier@adacore.com>
4090
4091 * prj-nmsc.adb (Check_File): Mark as Locally_Removed a naming
4092 exception replaced in an extending project.
4093 (Check_Object): No error when the other source is locally removed.
4094
40952011-09-02 Yannick Moy <moy@adacore.com>
4096
4097 * exp_ch6.adb (Is_Build_In_Place_Function_Call): in Alfa mode, allow
4098 unresolved calls.
4099
d51813db
AC
41002011-08-31 Arnaud Charlet <charlet@adacore.com>
4101
4102 * gcc-interface/Makefile.in: Clean up handling of x86 and x86-64
4103 run-time files.
4104 * gcc-interface/Make-lang.in: Update dependencies.
4105
9f55bc62
AC
41062011-09-01 Robert Dewar <dewar@adacore.com>
4107
4108 * sem_ch3.adb, s-taprop-linux.adb, gnatls.adb: Minor reformatting.
4109
41102011-09-01 Jose Ruiz <ruiz@adacore.com>
4111
4112 * adaint.h (__gnat_cpu_free): Fix the name of this profile.
4113 * adaint.c (__gnat_cpu_alloc, __gnat_cpu_alloc_size, __gnat_cpu_free,
4114 __gnat_cpu_zero, __gnat_cpu_set): Create version of these subprograms
4115 specific for systems where their glibc version does not define the
4116 routines to handle dynamically allocated CPU sets.
4117
41182011-09-01 Vincent Celier <celier@adacore.com>
4119
4120 * prj-proc.adb, prj.ads, prj-nmsc.adb, prj-util.adb, prj-util.ads,
4121 prj-env.adb: Implement inheritance of naming exceptions in extending
4122 projects.
4123
d7386a7a
AC
41242011-09-01 Romain Berrendonner <berrendo@adacore.com>
4125
4126 * gnatls.adb: Display simple message instead of content of
4127 gnatlic.adl.
4128
41292011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
4130
4131 * sem_ch3.adb: (Build_Derived_Record_Type) Remove the kludgy update of
4132 access discriminant and anonymous access component scopes.
4133 (Inherit_Component): Reuse the itype of an access discriminant
4134 or anonymous access component by copying it in order to set the proper
4135 scope. This is done only when the parent and the derived type
4136 are in different scopes.
4137 (Set_Anonymous_Etype): New routine.
4138
41392011-09-01 Robert Dewar <dewar@adacore.com>
4140
4141 * a-convec.adb: Minor reformatting throughout.
4142
9d1e0e72
JR
41432011-09-01 Jose Ruiz <ruiz@adacore.com>
4144
4145 * adaint.c, adaint.h (__gnat_cpu_alloc, __gnat_cpu_alloc_size,
4146 __gnat_cpu_set_free): Create these wrappers around the CPU_ALLOC,
4147 CPU_ALLOC_SIZE and CPU_FREE linux macros.
4148 (__gnat_cpu_zero, __gnat_cpu_set): Use the CPU_ZERO_S and
4149 CPU_SET_S respectively because we are now using dynamically allocated
4150 CPU sets which are more portable across different glibc versions.
4151 * s-osinte-linux.ads (cpu_set_t_ptr, CPU_ALLOC, CPU_ALLOC_SIZE,
4152 CPU_FREE): Add this type and subprograms to be able to create cpu_set_t
4153 masks dynamically according to the number of processors in the target
4154 platform.
4155 (CPU_ZERO, CPU_SET): They are now mapped to the CPU_ZERO_S and CPU_SET_S
4156 respectively, so we need to pass the size of the masks as
4157 parameters.
4158 * s-taprop-linux.adb (Create_Task, Set_Task_Affinity): Use dynamically
4159 created cpu_set_t masks
4160 with the number of processors available in the target platform,
4161 instead of static bit arrays. It enhances portability because
4162 it uses the information from the target platform.
4163 * sem_ch8.adb: (Attribute_Renaming): When checking whether we
4164 are using a restricted run-time library, use the flag
4165 Configurable_Run_Time_Mode instead of Restricted_Profile.
4166
a95be2d4
AC
41672011-09-01 Vincent Celier <celier@adacore.com>
4168
4169 * ug_words: Add /MULTI_UNIT_INDEX= -> -gnateI
4170 * vms_data.ads: Add new VMS qualifier equivalent for -gnateInnn
4171
41722011-09-01 Nicolas Roche <roche@adacore.com>
4173
4174 * adaint.c (__gnat_tmp_name): Don't use tmpnam function from the system
4175 on VxWorks in kernel mode.
4176
6b81741c
AC
41772011-09-01 Jose Ruiz <ruiz@adacore.com>
4178
4179 * s-taprop-linux.adb (Create_Task, Set_Task_Affinity): Use the linux
4180 macros for handling CPU sets (CPU_ZERO, CPU_SET) instead of modifying
4181 directly the bit array.
4182 * s-osinte-linux.ads (CPU_ZERO, CPU_SET): Import these wrappers around
4183 the linux macros with the same name.
4184 * adaint.h, adaint.c (__gnat_cpu_zero, __gnat_cpu_set): Create these
4185 wrappers around the CPU_ZERO and CPU_SET linux macros.
4186
41872011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
4188
4189 * exp_ch7.adb (Find_Insertion_List): Removed.
4190 (Process_Transient_Objects): Insert the declarations of the hook
4191 access type and the hook object before the associated transient object.
4192
41932011-09-01 Jose Ruiz <ruiz@adacore.com>
4194
4195 * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
4196 package System.Aux_Dec when using restricted run-time libraries which
4197 do not have this package.
4198
41992011-09-01 Tristan Gingold <gingold@adacore.com>
4200
4201 * s-vaflop-vms-alpha.adb: Remove pragma optimize, useless.
4202
42032011-09-01 Bob Duff <duff@adacore.com>
4204
4205 * sem_attr.adb (Analyze_Access_Attribute): Do not call
4206 Kill_Current_Values for P'Unrestricted_Access, where P is library level
4207
42082011-09-01 Thomas Quinot <quinot@adacore.com>
4209
4210 * exp_ch5.adb: Minor reformatting
4211 * gnat_ugn.texi: Fix minor typos.
4212 * gcc-interface/Make-lang.in: Update dependencies.
4213
8256c1bf
AC
42142011-09-01 Robert Dewar <dewar@adacore.com>
4215
4216 * inline.adb, sem_aggr.adb: Minor reformatting.
4217
42182011-09-01 Ed Schonberg <schonberg@adacore.com>
4219
4220 * a-convec.adb: Proper handling of cursors for Ada2012 iterators.
4221
d1c5f424
AC
42222011-09-01 Robert Dewar <dewar@adacore.com>
4223
4224 * prj-proc.adb, exp_ch6.adb, prj-env.adb: Minor reformatting.
4225
42262011-09-01 Bob Duff <duff@adacore.com>
4227
4228 * sem_aggr.adb (Resolve_Aggregate): Need to treat "in instance
4229 body" the same as "in inlined body", because visibility shouldn't
4230 apply there.
4231
42322011-09-01 Eric Botcazou <ebotcazou@adacore.com>
4233
4234 * inline.adb (Add_Inlined_Body): Refine previous change.
4235
1bb6e262
AC
42362011-09-01 Gary Dismukes <dismukes@adacore.com>
4237
4238 * exp_ch6.ads (Needs_BIP_Alloc_Form): New utility function.
4239 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
4240 Test for case where call
4241 initializes an object of a return statement before testing for
4242 a constrained call, to ensure that all such cases get handled
4243 by simply passing on the caller's parameters. Also, in that
4244 case call Needs_BIP_Alloc_Form to determine whether to pass on
4245 the BIP_Alloc_Form parameter of the enclosing function rather
4246 than testing Is_Constrained. Add similar tests for the return
4247 of a BIP call to later processing to ensure consistent handling.
4248 (Needs_BIP_Alloc_Form): New utility function.
4249 * sem_ch6.adb: (Create_Extra_Formals): Replace test for adding
4250 a BIP_Alloc_Form formal with call to new utility function
4251 Needs_BIP_Alloc_Form.
4252
42532011-09-01 Pascal Obry <obry@adacore.com>
4254
4255 * prj-part.adb: Minor reformatting.
4256
42572011-09-01 Vincent Celier <celier@adacore.com>
4258
4259 * prj-env.adb (Create_Mapping_File.Process): Encode the upper
4260 half character in the unit name.
4261
db15225a
AC
42622011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
4263
4264 * exp_ch4.adb: Minor code and comment reformatting.
4265
42662011-09-01 Thomas Quinot <quinot@adacore.com>
4267
4268 * exp_ch6.adb (Expand_Inlined_Call): Remove redundant tests
4269 for Is_Limited_Type and Is_Tagged_Type in condition checking
4270 for by-reference type.
4271 * inline.adb (Add_Inlined_Body): Only exclude init_procs. Other
4272 subprograms may have a completion because of a previous
4273 Inline_Always clause, but the enclosing package must be marked
4274 inlined for the subprogram body to become visible to the backend.
4275
9d641fc0
TQ
42762011-09-01 Thomas Quinot <quinot@adacore.com>
4277
4278 * sem_aux.adb, exp_ch4.adb: Minor reformatting
4279
dbe36d67
AC
42802011-09-01 Pascal Obry <obry@adacore.com>
4281
4282 * prj-proc.adb, prj.ads, sinput-p.adb: Minor reformatting.
4283
42842011-09-01 Ed Schonberg <schonberg@adacore.com>
4285
4286 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Generate references to
4287 the formals of a subprogram stub that acts as a spec.
4288
42892011-09-01 Ed Schonberg <schonberg@adacore.com>
4290
4291 * exp_ch6.adb (Expand_Inlined_Call): If an actual is a by_reference
4292 type, declare a renaming for it, not an object declaration.
4293
f5037886
AC
42942011-09-01 Yannick Moy <moy@adacore.com>
4295
4296 * ali-util.adb, ali-util.ads (Read_Withed_ALIs): Add parameter
4297 Ignore_Errors to ignore failures to read ALI files when True.
4298
42992011-09-01 Javier Miranda <miranda@adacore.com>
4300
4301 * exp_ch3.adb (Expand_N_Object_Declaration): Handle non-default
4302 constructor calls associated with non-tagged record types.
4303
43042011-09-01 Robert Dewar <dewar@adacore.com>
4305
4306 * g-socthi-vms.adb: Minor reformatting.
4307
43082011-09-01 Nicolas Roche <roche@adacore.com>
4309
4310 * sysdep.c: Don't use macro functions for stdio functions on VxWorks
4311 in order to avoid impact of imcompatible changes.
4312 * cstreams.c: Likewise
4313 * cio.c: Likewise
4314 * aux-io.c: Likewise
4315
43162011-09-01 Yannick Moy <moy@adacore.com>
4317
4318 * lib-writ.adb (Write_With_Lines): Always output complete information
4319 on "with" line in Alfa mode, as this is required by formal verification
4320 back-end.
4321
549e4558
AC
43222011-09-01 Tristan Gingold <gingold@adacore.com>
4323
4324 * g-socthi-vms.adb: Add comments.
4325
43262011-09-01 Pascal Obry <obry@adacore.com>
4327
4328 * prj.ads: Minor reformatting.
4329
70c0422d
AC
43302011-09-01 Vincent Celier <celier@adacore.com>
4331
4332 * prj-env.adb (Create_Config_Pragmas_File.Check): Put all naming
4333 exceptions in the config pragmas file.
4334
43352011-09-01 Tristan Gingold <gingold@adacore.com>
4336
4337 * gnat_ugn.texi: Document GNAT_STACK_SIZE on IVMS.
4338
8c5b03a0
AC
43392011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
4340
4341 * exp_ch7.adb (Find_Insertion_List): New routine.
4342 (Process_Transient_Objects): Add code to handle the abnormal
4343 finalization of a controlled transient associated with a subprogram
4344 call. Since transients are cleaned up right after the associated
4345 context, an exception raised during a subprogram call may bypass the
4346 finalization code.
4347
43482011-09-01 Robert Dewar <dewar@adacore.com>
4349
4350 * exp_ch6.adb (Expand_Call): Check actual for aliased parameter is
4351 aliased.
4352
3040dbd4
RD
43532011-09-01 Robert Dewar <dewar@adacore.com>
4354
4355 * exp_ch4.adb, a-exexda.adb: Minor reformatting.
4356
fecbd779
AC
43572011-09-01 Robert Dewar <dewar@adacore.com>
4358
4359 * s-taskin.ads, s-tassta.adb, sem_ch13.adb: Minor reformatting.
4360
43612011-09-01 Thomas Quinot <quinot@adacore.com>
4362
4363 * Makefile.rtl: Move s-oscons.o from GNATRTL_TASKING_OBJS to
4364 GNATRTL_NONTASKING_OBJS.
4365
43662011-09-01 Robert Dewar <dewar@adacore.com>
4367
4368 * einfo.ads (Is_Aliased): Fix existing documentation and add note on
4369 possibility of this flag being set for formals in Ada 2012 mode.
4370 * par-ch6.adb (P_Formal_Part): Handle aliased for parameters for Ada
4371 2012.
4372 * sem_ch6.adb (Process_Formals): Handle aliased parameters in Ada 2012
4373 mode.
4374 * sinfo.adb (Aliased_Present): Allowed in N_Parameter_Specification for
4375 Ada 2012.
4376 * sinfo.ads (Aliased_Present): Allowed in N_Parameter_Specification for
4377 Ada 2012.
4378
43792011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
4380
4381 * exp_ch4.adb (Find_Insertion_Node): New routine. Determines the proper
4382 insertion node in a tree of nested Expression_With_Actions nodes.
4383 (Process_Transient_Object): In the case where a complex if statement
4384 has been converted into nested Expression_With_Actions nodes, the
4385 "hook" object and the associated access type must be inserted before
4386 the top most Expression_With_Actions.
4387
516f608f
AC
43882011-09-01 Robert Dewar <dewar@adacore.com>
4389
4390 * a-cbprqu.adb, a-cbprqu.ads, a-cuprqu.adb, a-cuprqu.ads,
4391 a-cbsyqu.adb, a-cbsyqu.ads: Minor reformatting.
4392
43932011-09-01 Ed Schonberg <schonberg@adacore.com>
4394
4395 * sem_attr.adb: Conditionalize aliasing predicates to Ada2012.
4396
43972011-09-01 Jose Ruiz <ruiz@adacore.com>
4398
4399 * aspects.ads (Aspect_Id, Aspect_Argument, Aspect_Names): Add the CPU
4400 aspect.
4401 * aspects.adb (Canonical_Aspect): Add entry for the CPU aspect.
4402 * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze the CPU aspect
4403 in a similar way as we do for the Priority or Dispatching_Domain aspect.
4404 * s-mudido-affinity.adb (Dispatching_Domain_Tasks,
4405 Dispatching_Domains_Frozen): Move this local data to package
4406 System.Tasking because with the CPU aspect we need to have access
4407 to this data when creating the task in System.Tasking.Stages.Create_Task
4408 * s-taskin.ads (Dispatching_Domain_Tasks, Dispatching_Domains_Frozen):
4409 Move these variables from the body of
4410 System.Multiprocessors.Dispatching_Domains because with the CPU aspect
4411 we need to have access to this data when creating the task in
4412 System.Tasking.Stages.Create_Task.
4413 * s-taskin.adb (Initialize): Signal the allocation of the environment
4414 task to a CPU, if any, so that we know whether the CPU can be
4415 transferred to a different dispatching domain.
4416 * s-tassta.adb (Create_Task): Check whether the CPU to which this task
4417 is being allocated belongs to the dispatching domain where the task
4418 lives. Signal the allocation of the task to a CPU, if any, so that we
4419 know whether the CPU can be transferred to a different dispatching
4420 domain.
4421
2d42e881
ES
44222011-09-01 Ed Schonberg <schonberg@adacore.com>
4423
4424 * exp_attr.adb, sem_attr.adb, snames.ads-tmpl: Implementation of
4425 attributes Same_Storage and Overlaps_Storage.
4426
579fda56
AC
44272011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
4428
4429 * exp_strm.adb: Remove with and use clause for Opt.
4430 (Build_Array_Input_Function): Remove the version-dependent generation
4431 of the return statement. The Ada 2005 tree is now the default.
4432
44332011-09-01 Yannick Moy <moy@adacore.com>
4434
4435 * put_alfa.adb: Unconditionnally write files in Alfa section, so that
4436 it is never empty when compiling in Alfa mode.
4437
44382011-09-01 Robert Dewar <dewar@adacore.com>
4439
4440 * sem_aggr.adb, sem_ch3.adb, a-direct.adb, s-taprop-vxworks.adb,
4441 comperr.adb, exp_ch9.adb, exp_pakd.adb, sem_ch12.adb, freeze.adb,
4442 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
4443 gnat1drv.adb, a-rbtgbo.adb, exp_dist.adb: Minor reformatting
4444
44452011-09-01 Matthew Heaney <heaney@adacore.com>
4446
4447 * Makefile.rtl, impunit.adb: Add a-csquin.ads, a-cusyqu.ad[sb],
4448 a-cuprqu.ad[sb], a-cbsyqu.ad[sb], a-cbprqu.ad[sb]
4449 * a-csquin.ads: New Ada 2012 unit that specifies the queue interface
4450 * a-cusyqu.ads, a-cusyqu.adb: New Ada 2012 unit that specifies the
4451 unbounded queue container.
4452 * a-cbsyqu.ads, a-cbsyqu.adb: New Ada 2012 unit that specifies the
4453 bounded queue container.
4454 * a-cuprqu.ads, a-cuprqu.adb: New Ada 2012 unit that specifies the
4455 unbounded priority queue container.
4456 * a-cbprqu.ads, a-cbprqu.adb: New Ada 2012 unit that specifies the
4457 bounded priority queue container.
4458
24c34107
AC
44592011-08-31 Pascal Obry <obry@adacore.com>
4460
4461 * a-direct.adb: Do not try to create an UNC path on Windows.
4462 (Create_Path): Skip leading computer name in UNC path if any.
4463
44642011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
4465
4466 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): Remove the
4467 version-dependent generation of the return statement. The Ada 2005 tree
4468 is now the default.
4469
44702011-08-31 Thomas Quinot <quinot@adacore.com>
4471
4472 * rtsfind.ads, exp_dist.adb (Find_Numeric_Representation): Predefined
4473 types Stream_Element_Offset and Storage_Offset have a different native
4474 type depending on whether the platform is 32 or 64 bits. When
4475 exchanging them, always convert to 64 bits.
4476
44772011-08-31 Yannick Moy <moy@adacore.com>
4478
4479 * debug.adb: Reserve debug option -gnatd.E for passing gnatprove option
4480 --force-alfa to gnat2why.
4481
44822011-08-31 Ed Schonberg <schonberg@adacore.com>
4483
4484 * sem_ch12.adb (Save_References): If the node has aspects, save
4485 references within the corresponding expressions in a separate step,
4486 because the aspects are not directly in the tree for the declaration
4487 to which they belong.
4488
44892011-08-31 Arnaud Charlet <charlet@adacore.com>
4490
4491 * freeze.adb (Freeze_Record_Type): Omit test on variable size component
4492 in CodePeer mode, since representation clauses are partially ignored.
4493 * gcc-interface/Make-lang.in: Update dependencies.
4494
702d2020
AC
44952011-08-31 Jose Ruiz <ruiz@adacore.com>
4496
4497 * s-taprop-vxworks.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
4498 s-taprop-solaris.adb (Create_Task): Not_A_Specific_CPU can be assigned
4499 to any dispatching domain.
4500
45012011-08-31 Thomas Quinot <quinot@adacore.com>
4502
4503 * exp_ch4.adb: Minor reformatting.
4504
45052011-08-31 Bob Duff <duff@adacore.com>
4506
4507 * sem_ch6.adb (Get_Generic_Parent_Type): Don't query Subtype_Indication
4508 on nodes for which it is not defined.
4509 (Is_Non_Overriding_Operation): Exit the loop when we find a generic
4510 parent type.
4511
45122011-08-31 Bob Duff <duff@adacore.com>
4513
4514 * sem_ch3.adb (Process_Full_View): Disable legality check if
4515 In_Instance, to avoid spurious errors.
4516 * sem_ch12.adb (Validate_Derived_Type_Instance): Disable legality check
4517 if In_Instance, to avoid spurious errors.
4518
45192011-08-31 Pascal Obry <obry@adacore.com>
4520
4521 * a-direct.adb: Use Dir_Seps everywhere to properly handle all
4522 directory speparators.
4523 (Compose): Use Dir_Seps to handle both forms.
4524 (Create_Path): Use Dir_Seps instead of explicit check, no semantic
4525 changes.
4526 (Extension): Use Dir_Seps to handle both forms.
4527
45282011-08-31 Pascal Obry <obry@adacore.com>
4529
4530 * prj-conf.adb: Minor reformatting.
4531
67645bde
AC
45322011-08-31 Jose Ruiz <ruiz@adacore.com>
4533
4534 * aspects.ads (Aspect_Id, Aspect_Argument, Aspect_Names): Add the
4535 dispatching domain aspect.
4536 * aspects.adb (Canonical_Aspect): Add entry for the dispatching domain
4537 aspect.
4538 * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze the
4539 Dispatching_Domain aspect in a similar way as we do for the Priority
4540 aspect.
4541 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add the
4542 Dispatching_Domain component if a Dispatching_Domain pragma or aspect
4543 is present.
4544 (Make_Task_Create_Call): Add the Dispatching_Domain when creating a task
4545 * par-prag.adb (Prag): Add Pragma_Dispatching_Domain as a known pragma.
4546 * sem_prag.adb (Analyze_Pragma): Check the correctness of a pragma
4547 Dispatching_Domain and add it to the task definition.
4548 (Sig_Flags): Add Pragma_Dispatching_Domain.
4549 * rtsfind.ads, rtsfind.adb (RTU_Id, RE_Id, Get_Unit_Name): Add the
4550 support to find the types Dispatching_Domain and
4551 Dispatching_Domain_Access.
4552 * sinfo.ads, sinfo.adb (Has_Pragma_Dispatching_Domain,
4553 Set_Has_Pragma_Dispatching_Domain): Add these subprograms to set and
4554 query the availability of a pragma Dispatching_Domain.
4555 * snames.ads-tmpl (Name_uDispatching_Domain): Add this name required by
4556 the expander to pass the Dispatching_Domain when creating a task.
4557 (Name_Dispatching_Domain): Add this new name for a pragma.
4558 (Pragma_Id): Add the new Pragma_Dispatching_Domain.
4559 * s-tassta.ads, s-tassta.adb (Create_Task): Set the domain to which the
4560 task has been allocated at creation time.
4561 * s-tarest.adb (Create_Restricted_Task): The dispatching domain using
4562 Ravenscar is always null.
4563 * s-taskin.ads, s-taskin.adb (Initialize_ATCB): Set the domain to which
4564 the task has been allocated at creation time.
4565 * s-tporft.adb (Register_Foreign_Thread): A foreign task will not have
4566 a specific dispatching domain.
4567 * s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-vxworks.adb,
4568 s-taprop-mingw.adb (Create_Task): Check whether both Dispatching_Domain
4569 and CPU are specified for the task, and the CPU value is not contained
4570 within the range of processors for the domain.
4571
45722011-08-31 Vincent Celier <celier@adacore.com>
4573
4574 * make.adb (Original_Gcc) : New constant String_Access.
4575 (Gnatmake): For VM targets, do not use VM version of the compiler if
4576 --GCC= has been specified.
4577
45782011-08-31 Thomas Quinot <quinot@adacore.com>
4579
4580 * sem_ch5.adb: Minor reformatting.
4581
45822011-08-31 Ed Schonberg <schonberg@adacore.com>
4583
4584 * exp_pakd.adb (Convert_To_PAT_Type): If prefix is a function call, do
4585 not reanalyze it.
4586
45872011-08-31 Bob Duff <duff@adacore.com>
4588
4589 * exp_ch4.adb (Expand_N_Selected_Component): Use the full type, in case
4590 the access type is private; we don't care about privacy in expansion.
4591
45922011-08-31 Ed Schonberg <schonberg@adacore.com>
4593
4594 * sem_aggr.adb (Resolve_Aggregate): In an instance, ignore aggregate
4595 subcomponents tnat may be limited, because they originate in view
4596 conflicts. If the original aggregate is legal and the actuals are
4597 legal, the aggregate itself is legal.
4598
b8789727
AC
45992011-08-31 Matthew Heaney <heaney@adacore.com>
4600
4601 * a-rbtgbo.adb (Clear_Tree): Assert representation invariant for lock
4602 status.
4603
46042011-08-31 Ed Schonberg <schonberg@adacore.com>
4605
4606 * sem_ch5.adb: Set kind of loop parameter properly, to preserve all
4607 errors in B tests.
4608
46092011-08-31 Jose Ruiz <ruiz@adacore.com>
4610
4611 * sem_ch13.adb (Analyze_Aspect_Specifications): For the Priority and
4612 Interrupt_Priority aspects, force the analysis of the aspect expression
4613 (when building the equivalent pragma). Otherwise, its analysis is done
4614 too late, after the task or protected object has been created.
4615 * sem_ch9.adb (Analyze_Single_Protected_Declaration,
4616 Analyze_Single_Task_Declaration): Remove the code to move the aspects
4617 to the object declaration because they are needed in the type
4618 declaration.
4619
e0c32166
AC
46202011-08-31 Robert Dewar <dewar@adacore.com>
4621
4622 * exp_ch5.adb, exp_ch7.ads, sem_ch5.adb, put_scos.adb, s-rannum.adb,
4623 a-rbtgbo.adb, exp_intr.adb, a-cbdlli.adb, a-cbdlli.ads: Minor
4624 reformatting.
4625
46262011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
4627
4628 * exp_util.adb (Find_Protection_Type): Do not look for fields _object
4629 if the corresponding type is malformed due to restriction violations.
4630
46312011-08-31 Robert Dewar <dewar@adacore.com>
4632
4633 * s-ransee.ads, s-ransee.adb: Minor reformatting.
4634
46352011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
4636
4637 * exp_ch4.adb (Expand_N_Allocator): Correct faulty condition which
4638 would cause the generation of Set_Finalize_Address if the target is a
4639 VM and the designated type is not derived from [Limited_]Controlled.
4640
46412011-08-31 Arnaud Charlet <charlet@adacore.com>
4642
4643 * comperr.adb, comperr.ads, gnat1drv.adb (Delete_SCIL_Files): New
4644 subprogram.
4645 (Compiler_Abort, Gnat1drv): Call Delete_SCIL_Files in codepeer mode in
4646 case of a compilation error.
4647
46482011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
4649
4650 * init.c (__gnat_error_handler): Standardize the stack overflow or
4651 erroneous memory access message.
4652 * seh_init.c (__gnat_SEH_error_handler): Standardize the stack overflow
4653 or erroneous memory access message.
4654
11bc76df
AC
46552011-08-31 Robert Dewar <dewar@adacore.com>
4656
4657 * sem_ch4.adb: Minor reformatting.
4658 * sem_ch6.adb: Minor code reorganization (use Ekind_In).
4659
46602011-08-31 Thomas Quinot <quinot@adacore.com>
4661
4662 * scos.ads: Minor documentation clarification.
4663 * put_scos.adb: Do not generate SCO unit header line for a unit that
4664 has no SCO lines.
4665
876d4394
RD
46662011-08-31 Robert Dewar <dewar@adacore.com>
4667
4668 * a-rbtgbo.adb, alfa_test.adb: Minor reformatting.
4669
36b8f95f
AC
46702011-08-31 Tristan Gingold <gingold@adacore.com>
4671
4672 * exp_ch7.ads, exp_ch7.adb (Finalization_Exception_Data): New type to
4673 hold variables between these following subprograms.
4674 (Build_Exception_Handler, Build_Object_Declarations,
4675 Build_Raise_Statement): Use the above type as parameter.
4676 Make the above adjustments.
4677 * exp_intr.adb (Expand_Unc_Deallocation): Adjust.
4678
46792011-08-31 Pascal Obry <obry@adacore.com>
4680
4681 * projects.texi: Minor reformatting.
4682
46832011-08-31 Tristan Gingold <gingold@adacore.com>
4684
4685 * s-ransee.ads, s-ransee.adb: Add system.random_seed unit.
4686 * s-rannum.adb (Reset): Use Get_Seed from s-ransee.
4687
46882011-08-31 Ed Schonberg <schonberg@adacore.com>
4689
4690 * exp_ch5.adb: Minor code cleanup.
4691 * sem_ch5.adb (Analyze_Iteration_Scheme): Set ekind of loop variable to
4692 prevent cascaded errors.
4693 (Analyze_Loop_Statement): In semantics-only mode, introduce loop
4694 variable of an iterator specification in current scope.
4695 * sem_ch6.adb (Analyze_Return_Statement, Find_what_It_Apples_To): Skip
4696 postconditions on the stack, as they contain no return statements.
4697
46982011-08-31 Yannick Moy <moy@adacore.com>
4699
4700 * exp_alfa.adb (Expand_Alfa_N_Package_Declaration,
4701 Expand_Alfa_N_Subprogram_Body): Remove useless procedures which simply
4702 call Qualify_Entity_Names.
4703 (Expand_Alfa): call Qualify_Entity_Names in more cases
4704 * lib-xref-alfa.adb: Take into account system package.
4705 * sem_prag.adb Take into account restrictions in Alfa mode, contrary to
4706 CodePeer mode in which we are interested in finding bugs even if
4707 compiler cannot compile source.
4708 * sem_util.adb, sem_util.ads (Unique_Entity): Take into account case of
4709 deferred constant.
4710
47112011-08-31 Gary Dismukes <dismukes@adacore.com>
4712
4713 * sem_ch3.adb (Constrain_Concurrent): Retrieve Base_Type of the subtype
4714 denoted by the subtype mark to ensure getting the concurrent type in
4715 the case where the subtype mark denotes a private subtype of a
4716 concurrent type (needed when using -gnatc).
4717 (Process_Subtype): For the processing specific to type kinds, case on
4718 the Base_Type kind of the Subtype_Mark_Id, to handle cases where the
4719 subtype denotes a private subtype whose base type is nonprivate (needed
4720 for subtypes of private fulfilled by task types when compiling with
4721 -gnatc).
4722
47232011-08-31 Gary Dismukes <dismukes@adacore.com>
4724
4725 * sem_disp.adb (Check_Dispatching_Operation): Bypass registration of
4726 late primitives that override interface operations when the full
4727 expander is not active, to avoid blowups in Register_Primitive when
4728 types don't have associated secondary dispatch tables.
4729
47302011-08-31 Yannick Moy <moy@adacore.com>
4731
4732 * alfa_test.adb: Code clean up.
4733
47342011-08-31 Marc Sango <sango@adacore.com>
4735
4736 * restrict.adb (Check_SPARK_Restriction): Change Comes_From_Source (N)
4737 by Comes_From_Source (Original_Node (N)) in order to treat also the
4738 nodes which have been rewritten.
4739 * sem_ch4.adb (Analyze_Explicit_Dereference, Analyze_Slice): Guard the
4740 explicit dereference and slice violation in spark mode on the nodes
4741 coming only from the source code.
4742
8cf23b91
AC
47432011-08-31 Robert Dewar <dewar@adacore.com>
4744
4745 * exp_ch5.adb, exp_alfa.ads, prj.ads, sem_attr.adb,
4746 lib-xref-alfa.adb: Minor reformatting.
4747
47482011-08-31 Matthew Heaney <heaney@adacore.com>
4749
4750 * a-crbltr.ads (Tree_Type): Default-initialize the Nodes component.
4751
47522011-08-31 Javier Miranda <miranda@adacore.com>
4753
4754 * sem_ch4.adb (Try_Object_Operation): Addition of one formal to search
4755 only for class-wide subprograms conflicting with entities of concurrent
4756 tagged types.
4757
47582011-08-31 Matthew Heaney <heaney@adacore.com>
4759
4760 * a-rbtgbo.adb (Generic_Allocate): Initialize pointer components of
4761 node to null value.
4762
47632011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
4764
4765 * sem_ch12.adb (Insert_Freeze_Node_For_Instance): Provide a more
4766 general description of the routine.
4767
47682011-08-31 Ed Schonberg <schonberg@adacore.com>
4769
4770 * a-cbdlli.adb, a-cbdlli.ads: Add iterator machinery to bounded
4771 doubly-linked lists.
4772
0bb3bfb8
GD
47732011-08-31 Gary Dismukes <dismukes@adacore.com>
4774
4775 * exp_ch5.adb (Expand_N_Assignment_Statement): When a discriminant
4776 check is needed for a left-hand side that is a dereference, and the
4777 base type is private without discriminants (whereas the full type does
4778 have discriminants), an extra retrieval of the underlying type may be
4779 needed in the case where the subtype is a record subtype whose base
4780 type is private. Update comments.
4781
11fa950b
AC
47822011-08-31 Javier Miranda <miranda@adacore.com>
4783
4784 * sem_ch4.adb (Try_Object_Operation): When a dispatching primitive is
4785 found check if there is a class-wide subprogram covering the primitive.
4786
47872011-08-31 Yannick Moy <moy@adacore.com>
4788
4789 * sem_res.adb: Further cases where full expansion test is needed,
4790 rather than expansion test.
4791
47922011-08-31 Pascal Obry <obry@adacore.com>
4793
4794 * prj-attr.adb: Fix Source_File_Switches attribute kind (must be a list)
4795
47962011-08-31 Ed Schonberg <schonberg@adacore.com>
4797
4798 * exp_ch5.adb: Handle iterators over derived container types.
4799
48002011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
4801
4802 * einfo.ads, einfo.adb: Add new flag Has_Anonymous_Master.
4803 (Has_Anonymous_Master): New routine.
4804 (Set_Has_Anonymous_Master): New routine.
4805 (Write_Entity_Flags): Add an entry for Has_Anonymous_Master.
4806 * exp_ch4.adb: Add with and use clause for Sem_Ch8.
4807 (Current_Anonymous_Master): New routine.
4808 (Current_Unit_First_Declaration): Removed.
4809 (Current_Unit_Scope): Removed.
4810 (Expand_N_Allocator): Anonymous access-to-controlled types now chain
4811 their objects on a per-unit heterogeneous finalization master.
4812
48132011-08-31 Matthew Heaney <heaney@adacore.com>
4814
4815 * a-cbhama.adb, a-cbhase.adb (Insert): Check for zero-length buckets
4816 array.
4817
48182011-08-31 Jose Ruiz <ruiz@adacore.com>
4819
4820 * s-taprop-linux.adb (Create_Task): Avoid changing the affinity mask
4821 when not needed.
4822
48232011-08-31 Gary Dismukes <dismukes@adacore.com>
4824
4825 * sem_disp.adb (Propagate_Tag): Return without propagating in the case
4826 where the actual is an unexpanded call to 'Input.
4827
d2b4b3da
AC
48282011-08-31 Yannick Moy <moy@adacore.com>
4829
4830 * sem_ch4.adb: Code clean up.
4831
48322011-08-31 Yannick Moy <moy@adacore.com>
4833
4834 * exp_alfa.adb, exp_alfa.ads: Minor correction of copyright notice.
4835
48362011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
4837
4838 * exp_ch7.adb (Build_Array_Deep_Procs): Do not generate Deep_Finalize
4839 and TSS primitive Finalize_Address if finalization is suppressed.
4840 (Build_Record_Deep_Procs): Do not generate Deep_Finalize and TSS
4841 primitive Finalize_Address if finalization is suppressed.
4842
48432011-08-31 Jose Ruiz <ruiz@adacore.com>
4844
4845 * s-mudido-affinity.adb, s-taprop-linux.adb, s-taprop-mingw.adb,
4846 s-taprop-solaris.adb, s-taprop-vxworks.adb (Set_Task_Affinity): Make
4847 sure that the underlying task has already been created before trying
4848 to change its affinity.
4849 (Set_CPU): Use the term processor instead of CPU, as we do in
4850 Assign_Task.
4851
48522011-08-31 Vincent Celier <celier@adacore.com>
4853
4854 * prj-attr.adb: New Compiler attribute Source_File_Switches.
4855 * prj-nmsc.adb (Process_Compiler): Process attribute
4856 Source_File_Switches.
4857 * prj.ads (Language_Config): New name list component
4858 Name_Source_File_Switches.
4859 * snames.ads-tmpl (Name_Source_File_Switches): New standard name.
4860
48612011-08-31 Ed Schonberg <schonberg@adacore.com>
4862
4863 * sem_attr.adb (Analyze_Attribute, case 'Old): If prefix may be a
4864 discriminated component of an actual, expand at once to prevent
4865 ouf-of-order references with generated subtypes.
4866
48672011-08-31 Yannick Moy <moy@adacore.com>
4868
4869 * lib-xref-alfa.adb (Add_Alfa_Xrefs): Do not take into account read
4870 reference to operator in Alfa xrefs.
4871
48722011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
4873
4874 * sem_ch12.adb (Freeze_Subprogram_Body): Add code to handle the case
4875 where the parent instance was frozen before the current instance due to
4876 the presence of a source body. Update calls to Insert_After_Last_Decl.
4877 (Insert_After_Last_Decl): Renamed to Insert_Freeze_Node_For_Instance.
4878 Update the comment which illustrates the purpose of the routine.
4879 Package instances are now frozen by source bodies which appear after
4880 the instance. This ensures that entities coming from within the
4881 instance are available for use in the said bodies.
4882 (Install_Body): Add code to handle the case where the parent instance
4883 was frozen before the current instance due to the presence of a source
4884 body. Update calls to Insert_After_Last_Decl.
4885
56812278
AC
48862011-08-31 Jose Ruiz <ruiz@adacore.com>
4887
4888 * s-taprop-linux.adb (Set_Task_Affinity): Avoid the use of anonymous
4889 access types.
4890 * affinity.c (__gnat_set_affinity_mask): Declare index variable.
4891
48922011-08-31 Yannick Moy <moy@adacore.com>
4893
4894 * sem_ch8.adb (Analyze_Subprogram_Renaming): Refine expander test in
4895 full-expander test.
16c3301a
AC
4896 * alfa.adb, alfa.ads, alfa_test.adb, ali.adb, debug.adb, errout.adb,
4897 errout.ads, erroutc.adb, expander.adb, exp_ch4.adb, exp_ch7.adb,
4898 freeze.adb, get_alfa.adb, get_alfa.ads, gnat1drv.adb, lib-writ.adb,
4899 lib-writ.ads, lib-xref.adb, lib-xref.ads, lib-xref-alfa.adb, opt.adb,
4900 opt.ads, put_alfa.adb, put_alfa.ads, restrict.adb, sem_ch12.adb,
4901 sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4902 sem_prag.adb, sem_res.adb, sem_util.adb: Minor reformatting, renaming
4903 ALFA in Alfa (we dropped acronym).
56812278
AC
4904 * einfo.adb (Primitive_Operations): Correctly return list of primitive
4905 operations in a case where it returned previously No_Elist.
4906
7cda9727
RD
49072011-08-31 Robert Dewar <dewar@adacore.com>
4908
4909 * s-taprop-vxworks.adb, sem_ch5.adb, s-taprop-tru64.adb, exp_alfa.adb,
4910 s-taprop-vms.adb, bindgen.adb, s-mudido.adb, s-mudido.ads,
4911 sem_res.adb, expander.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
4912 s-taprop-solaris.adb, s-mudido-affinity.adb, vms_conv.adb,
4913 s-taprop-irix.adb, s-taprop.ads, s-taskin.adb, s-taskin.ads,
4914 s-taprop-hpux-dce.adb, a-chtgbo.adb, s-taprop-posix.adb: Minor
4915 reformatting.
4916
0a190dfd
AC
49172011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
4918
4919 * sem_ch12 (Check_Private_View): Revert previous change.
4920 * sem_res.adb (Conversion_Check): Do not emit the error message if the
4921 conversion is in a generic instance.
4922
49232011-08-31 Matthew Heaney <heaney@adacore.com>
4924
4925 * a-cbhase.adb (Symmetric_Difference): Dereference correct node array.
4926 * a-chtgbo.adb (Free): Allow 0 as index value.
4927
49282011-08-31 Matthew Heaney <heaney@adacore.com>
4929
4930 * a-cborma.adb (Insert): Add comment to explain why no element
4931 assignment.
4932
49332011-08-31 Gary Dismukes <dismukes@adacore.com>
4934
4935 * sem_util.adb (Find_Body_Discriminal): Test whether the scope of the
4936 spec discriminant is already a concurrent type, in which case just use
4937 it, otherwise fetch the Corresponding_Concurrent_Type as before.
4938
7d266442
EB
49392011-08-30 Eric Botcazou <ebotcazou@adacore.com>
4940
4941 * system-irix-n64.ads, system-linux-armeb.ads, system-linux-armel.ads,
4942 system-linux-mips.ads, system-linux-mipsel.ads,
4943 system-linux-mips64el.ads, system-linux-ppc64.ads,
4944 system-linux-sparcv9.ads, system-rtems.ads: Remove GCC_ZCX_Support.
4945
4f1a975c
EB
49462011-08-30 Eric Botcazou <ebotcazou@adacore.com>
4947
4948 * gcc-interface/ada-tree.h (TYPE_EXTRA_SUBTYPE_P): Add internal check.
4949 * gcc-interface/utils2.c (build_binary_op): Tighten condition.
4950 (build_unary_op): Likewise.
4951
f2991b48
EB
49522011-08-30 Eric Botcazou <ebotcazou@adacore.com>
4953
4954 * raise-gcc.c: Do not include coretypes.h and tm.h.
4955 (setup_to_install): Remove test for compiler macro.
4956 * targext.c: Document use for the library.
4957 * gcc-interface/Makefile.in: Fix comment on the use of IN_GCC.
4958
10a22f43
EB
49592011-08-30 Eric Botcazou <ebotcazou@adacore.com>
4960
4961 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not convert
4962 the expression to the nominal type if the latter is a record type with
4963 a variant part and the type of the former is a record type without one.
4964
bfa2e39d
AC
49652011-08-30 Yannick Moy <moy@adacore.com>
4966
4967 * exp_aggr.adb, exp_ch11.adb, exp_prag.adb: Remove early exit during
4968 expansion in Alfa mode.
4969 * exp_ch6.adb, exp_ch6.ads (Expand_Actuals): Make subprogram public
4970 * exp_alfa.adb, exp_alfa.ads: New package defining light expansion for
4971 Alfa mode.
4972 * gnat1drv.adb (Adjust_Global_Switches): Update Comment.
4973 * sem_res.adb: Ditto.
bd34109a 4974 * gcc-interface/Make-lang.in: Update dependencies.
bfa2e39d
AC
4975
49762011-08-30 Thomas Quinot <quinot@adacore.com>
4977
4978 * g-socket.ads: Minor documentation adjustment.
4979
a0347839
AC
49802011-08-30 Robert Dewar <dewar@adacore.com>
4981
4982 * exp_ch9.adb, s-tassta.adb, s-secsta.adb: Minor reformatting.
4983
49842011-08-30 Yannick Moy <moy@adacore.com>
4985
4986 * exp_ch6_light.adb, exp_ch6_light.ads, exp_attr_light.adb,
4987 exp_attr_light.ads, exp_ch7_light.adb, exp_ch7_light.ads,
4988 exp_light.adb, exp_light.ads, exp_prag.adb, expander.adb,
4989 gnat1drv.adb, exp_ch11.adb, exp_ch6.adb, exp_ch6.ads, exp_aggr.adb:
4990 Revert change which introduced files for "light"
4991 expansion, to be replaced by a single file for Alfa expansion.
4992
3597c0e9
RD
49932011-08-30 Robert Dewar <dewar@adacore.com>
4994
4995 * opt.ads, s-soflin.adb, exp_ch9.adb, sem_res.adb: Update comment.
4996 Minor code reorg/reformatting.
4997
da94696d
AC
49982011-08-30 Yannick Moy <moy@adacore.com>
4999
5000 * opt.adb, opt.ads (Full_Expander_Active): New function defines a
5001 common shorthand for (Expander_Active and not ALFA_Mode) that can be
5002 used for testing full expansion, that is active expansion not in the
5003 reduced mode for Alfa
5004 * exp_ch4.adb, exp_ch9.adb, exp_disp.adb, sem_ch10.adb, sem_ch12.adb,
5005 sem_ch6.adb, sem_ch9.adb, sem_res.adb: Use newly defined "flag" instead
5006 of the verbose (Expander_Active and not ALFA_Mode)
5007
50082011-08-30 Tristan Gingold <gingold@adacore.com>
5009
5010 * s-parame-vms-alpha.ads, s-parame-hpux.ads, s-tassta.adb,
5011 s-tarest.adb, s-parame-vms-ia64.ads, s-soflin.adb, s-secsta.adb,
5b8ca141
TG
5012 s-secsta.ads, s-parame.ads, s-parame-vxworks.ads, s-parame-ae653.ads:
5013 Renames Ratio to Percentage, and Sec_Stack_Ratio to Sec_Stack_Percentage
da94696d 5014
c199ccf7
AC
50152011-08-30 Gary Dismukes <dismukes@adacore.com>
5016
5017 * sem_res.adb (Valid_Conversion): Revise test for implicit anonymous
5018 access conversions to check that the conversion is a rewritten node,
5019 rather than just having Comes_From_Source set to False, which wasn't
5020 sufficient.
5021
50222011-08-30 Robert Dewar <dewar@adacore.com>
5023
5024 * exp_ch9.adb, sem_ch9.adb, sem_ch6.adb, exp_disp.adb,
5025 g-socket.ads: Minor reformatting.
5026
50272011-08-30 Thomas Quinot <quinot@adacore.com>
5028
5029 * sem_util.adb: Minor reformatting.
5030
50312011-08-30 Tristan Gingold <gingold@adacore.com>
5032
5033 * raise-gcc.c: Never catch exception if _UA_FORCE_UNWIND flag is set,
5034 to be compliant with the ABI.
5035
dff99e1a
AC
50362011-08-30 Hristian Kirtchev <kirtchev@adacore.com>
5037
5038 * sem_ch12.adb (Check_Private_View): Exchange the private and full view
5039 of a designated type when the related access type is an actual in an
5040 instance. This ensures that the full view of designated type is
5041 available when inside the body of the instance.
5042
50432011-08-30 Ed Schonberg <schonberg@adacore.com>
5044
5045 * sem_util.adb (May_Be_Lvalue): To determine whether a reference may be
5046 in a position to be modified, a slice is treated like an indexed
5047 component.
5048
63be2a5a
AC
50492011-08-30 Thomas Quinot <quinot@adacore.com>
5050
5051 * s-oscons-tmplt.c, g-socket.ads: Adjust maximum allowed value for
5052 field tv_sec in struct timeval.
5053
50542011-08-30 Yannick Moy <moy@adacore.com>
5055
5056 * exp_ch9.adb, exp_disp.adb, sem_ch9.adb, sem_res.adb: Protect several
5057 blocks of code doing full expansion, previously only guarded by
5058 Expander_Active, by anding the test that ALFA_Mode is not set
5059
50602011-08-30 Ed Schonberg <schonberg@adacore.com>
5061
5062 * sem_ch6.adb (Analyze_Return_Type): If the return type is incomplete,
5063 add the function to the list of private dependents, for subsequent
5064 legality check on Taft amendment types.
5065 * sem_ch12.adb (Analyze_Formal_Incomplete_Type): Initialize
5066 Private_Dependents, as for other incomplete types.
5067 * sem_util.adb (Wrong_Type): Avoid cascaded errors when a
5068 Taft-amendment type is used as the return type of a function.
5069
dd54644b
JM
50702011-08-30 Javier Miranda <miranda@adacore.com>
5071
5072 * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup: replace code
5073 which emits an error by a call to a new routine which report the error.
5074 * exp_ch9.adb (Build_Wrapper_Spec): Build the wrapper even if the
5075 entity does not cover an existing interface.
5076 * errout.ads, errout.adb (Error_Msg_PT): New routine. Used to factorize
5077 code.
5078 * sem_ch6.adb (Check_Conformance): Add specific error for wrappers of
5079 protected procedures or entries whose mode is not conformant.
5080 (Check_Synchronized_Overriding): Code cleanup: replace code which emits
5081 an error by a call to a new routine which report the error.
5082
d3ba478e
AC
50832011-08-30 Robert Dewar <dewar@adacore.com>
5084
5085 * gnat_rm.texi: Minor change.
5086 * exp_attr_light.adb: Minor reformatting.
5087
50882011-08-30 Ed Schonberg <schonberg@adacore.com>
5089
5090 * sem_ch3.adb: Patch inheritance of aspects in
5091 Complete_Private_Subtype, to avoid infinite loop.
5092
c01817d2
AC
50932011-08-30 Javier Miranda <miranda@adacore.com>
5094
5095 * sem_ch3.adb (Add_Internal_Interface_Entities): If serious errors have
5096 been reported and a subprogram covering an interface primitive is not
5097 found then skip generating the internal entity. Done to avoid crashing
5098 the frontend.
5099 (Check_Abstract_Overriding): Change text of error of wrong formal of
5100 protected subprogram or entry. Done for consistency to emit exactly the
5101 same error reported by Check_Synchronized_Overriding. In addition, the
5102 error is restricted to protected types (bug found working on AI05-0090)
5103
51042011-08-30 Yannick Moy <moy@adacore.com>
5105
5106 * exp_aggr.adb, exp_ch11.adb, exp_prag.adb: Remove early exit during
5107 expansion in Alfa mode.
5108 * exp_ch6.adb, exp_ch6.ads (Expand_Actuals): Make subprogram public.
5109 * exp_light.adb, exp_light.ads: New package defining light expansion.
5110 * expander.adb (Expand): Call light expansion in Alfa mode
5111 * exp_ch6_light.adb, exp_ch6_light.ads: Light expansion of chapter 6
5112 constructs.
5113 * exp_ch7_light.adb, exp_ch7_light.ads: Light expansion of chapter 7
5114 constructs.
5115 * exp_attr_light.adb, exp_attr_light.ads: Light expansion of attributes
5116 * gnat1drv.adb (Adjust_Global_Switches): Comment
5117
51182011-08-30 Yannick Moy <moy@adacore.com>
5119
5120 * lib-xref-alfa.adb: Minor refactoring.
5121
51222011-08-30 Yannick Moy <moy@adacore.com>
5123
5124 * exp_ch9.adb (Expand_Entry_Barrier): Do not perform expansion in Alfa
5125 mode.
5126 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not perform
5127 expansion in Alfa mode.
5128 * sem_ch9.adb (Analyze_Entry_Body): Do not perform expansion in Alfa
5129 mode.
5130
51312011-08-30 Robert Dewar <dewar@adacore.com>
5132
5133 * debug_a.adb: Update comment.
5134
996c8821
RD
51352011-08-30 Robert Dewar <dewar@adacore.com>
5136
5137 * exp_ch5.adb, sem_ch3.adb, sem_ch5.adb, einfo.adb, checks.adb,
5138 sem_util.adb, sem_util.ads, sem_res.adb, s-stposu.adb, sem_attr.adb,
5139 exp_ch4.adb, exp_ch6.adb, lib-xref-alfa.adb,
5140 sem_ch8.adb, sem_disp.adb, exp_ch3.adb: Minor reformatting
5141
51422011-08-30 Robert Dewar <dewar@adacore.com>
5143
5144 * gnat_rm.texi: Add section on C.6(16) implementation advice for pragma
5145 volatile.
5146
3647ca26
HK
51472011-08-30 Hristian Kirtchev <kirtchev@adacore.com>
5148
5149 * exp_ch3.adb (Expand_Freeze_Array_Type): Correct the call to
5150 Build_Finalization_Master by supplying an insertion node and enclosing
5151 scope. In its old version, the call did not generate a finalization
5152 master.
5153 (Expand_Freeze_Record_Type): Add local variable Has_AACC. Add code to
5154 recognize anonymous access-to-controlled components. Rewrite the
5155 machinery which creates finalization masters to service anonymous
5156 access-to-controlled components of a record type. In its current state,
5157 only one heterogeneous master is necessary to handle multiple anonymous
5158 components.
5159 (Freeze_Type): Comment reformatting.
5160 * rtsfind.ads: Add RE_Set_Is_Heterogeneous to tables RE_Id and
5161 RE_Unit_Table.
5162 * s-stposu.adb (Allocate_Any_Controlled): Rewrite the machinery which
5163 associates TSS primitive Finalize_Address with either the master itself
5164 or with the internal hash table depending on the mode of operation of
5165 the master.
5166
6d4e4fbc
JM
51672011-08-30 Javier Miranda <miranda@adacore.com>
5168
5169 * exp_ch3.adb (Make_Eq_If): If the etype of the _parent component is an
5170 interface type then do not generate code to compare this component.
5171 Required since they have no components and their equality operator is
5172 abstract.
5173
d15f9422
AC
51742011-08-30 Steve Baird <baird@adacore.com>
5175
5176 * sem_util.ads (Deepest_Type_Access_Level): New function; for the type
5177 of a saooaaat (i.e, a stand-alone object of an anonymous access type),
5178 returns the (static) accessibility level of the object. Otherwise, the
5179 same as Type_Access_Level.
5180 (Dynamic_Accessibility_Level): New function; given an expression which
5181 could occur as the rhs of an assignment to a saooaaat (i.e., an
5182 expression of an access-to-object type), return the new value for the
5183 saooaaat's associated Extra_Accessibility object.
5184 (Effective_Extra_Accessibility): New function; same as
5185 Einfo.Extra_Accessibility except that object renames are looked through.
5186 * sem_util.adb
5187 (Deepest_Type_Access_Level): New function; see sem_util.ads description.
5188 (Dynamic_Accessibility_Level): New function; see sem_util.ads
5189 description.
5190 (Effective_Extra_Accessibility): New function; see sem_util.ads
5191 description.
5192 * einfo.ads (Is_Local_Anonymous_Access): Update comments.
5193 (Extra_Accessibility): Update comments.
5194 (Init_Object_Size_Align): New procedure; same as Init_Size_Align
5195 except RM_Size field (which is only for types) is unaffected.
5196 * einfo.adb
5197 (Extra_Accessibility): Expand domain to allow objects, not just formals.
5198 (Set_Extra_Accessibility): Expand domain to allow objects, not just
5199 formals.
5200 (Init_Size): Add assertion that we are not trashing the
5201 Extra_Accessibility attribute of an object.
5202 (Init_Size_Align): Add assertion that we are not trashing the
5203 Extra_Accessibility attribute of an object.
5204 (Init_Object_Size_Align): New procedure; see einfo.ads description.
5205 * sem_ch3.adb (Find_Type_Of_Object): Set Is_Local_Anonymous_Access
5206 differently for the type of a (non-library-level) saooaaat depending
5207 whether Ada_Version < Ada_2012. This is the only point where Ada_Version
5208 is queried in this set of changes - everything else (in particular,
5209 setting of the Extra_Accessibility attribute in exp_ch3.adb) is
5210 driven off of the setting of the Is_Local_Anonymous_Access attribute.
5211 The special treatment of library-level saooaaats is an optimization,
5212 not required for correctnesss. This is based on the observation that the
5213 Ada2012 rules (static and dynamic) for saooaaats turn out to be
5214 equivalent to the Ada2005 rules in the case of a library-level saooaaat.
5215 * exp_ch3.adb
5216 (Expand_N_Object_Declaration): If Is_Local_Anonymous_Access is
5217 false for the type of a saooaaat, declare and initialize its
5218 accessibility level object and set the Extra_Accessibility attribute
5219 of the saooaaat to refer to this object.
5220 * checks.adb (Apply_Accessibility_Check): Add Ada 2012 saooaaat support.
5221 * exp_ch4.adb (Expand_N_In): Replace some Extra_Accessibility calls with
5222 calls to Effective_Extra_Accessibility in order to support
5223 renames of saooaaats.
5224 (Expand_N_Type_Conversion): Add new local function,
5225 Has_Extra_Accessibility, and call it when determining whether an
5226 accessibility check is needed.
5227 It returns True iff Present (Effective_Extra_Accessibility (Id)) would
5228 evaluate to True (without raising an exception).
5229 * exp_ch5.adb
5230 (Expand_N_Assignment_Statement): When assigning to an Ada2012
5231 saooaaat, update its associated Extra_Accessibility object (if
5232 it has one). This includes an accessibility check.
5233 * exp_ch6.adb (Add_Call_By_Copy_Code): When parameter copy-back updates
5234 a saooaaat, update its Extra_Accessibility object too (if it
5235 has one).
5236 (Expand_Call): Replace a couple of calls to Type_Access_Level
5237 with calls to Dynamic_Access_Level to handle cases where
5238 passing a literal (any literal) is incorrect.
5239 * sem_attr.adb (Resolve_Attribute): Handle the static accessibility
5240 checks associated with "Saooaat := Some_Object'Access;"; this must
5241 be rejected if Some_Object is declared in a more nested scope
5242 than Saooaat.
5243 * sem_ch5.adb (Analyze_Assignment): Force accessibility checking for an
5244 assignment to a saooaaat even if Is_Local_Anonymous_Access
5245 returns False for its type (indicating a 2012-style saooaaat).
5246 * sem_ch8.adb
5247 (Analyze_Object_Renaming): Replace a call to Init_Size_Align
5248 (which is only appropriate for objects, not types) with a call
5249 of Init_Object_Size_Align in order to avoid trashing the
5250 Extra_Accessibility attribute of a rename (the two attributes
5251 share storage).
5252 * sem_res.adb
5253 (Valid_Conversion) Replace six calls to Type_Access_Level with
5254 calls to Deepest_Type_Access_Level. This is a bit tricky. For an
5255 Ada2012 non-library-level saooaaat, the former returns library level
5256 while the latter returns the (static) accessibility level of the
5257 saooaaat. A type conversion to the anonymous type of a saooaaat
5258 can only occur as part of an assignment to the saooaaat, so we
5259 know that such a conversion must be in a lhs context, so Deepest
5260 yields the result that we need. If such a conversion could occur,
5261 say, as the operand of an equality operator, then this might not
5262 be right. Also add a test so that static accessibilty checks are
5263 performed for converting to a saooaaat's type even if
5264 Is_Local_Anonymous_Access yields False for the type.
5265
52662011-08-30 Javier Miranda <miranda@adacore.com>
5267
5268 * sem_disp.adb (Check_Dispatching_Operation): Complete condition that
5269 controls generation of a warning associated with late declaration of
5270 dispatching functions. Required to avoid generating spurious
5271 warnings.
5272
6cce2156
GD
52732011-08-30 Gary Dismukes <dismukes@adacore.com>
5274
5275 * sem_ch6.adb (Check_Return_Subtype_Indication): Issue error if the
5276 return object has an anonymous access type and the function's type is
5277 a named access type.
5278 * sem_ch8.adb (Analyze_Object_Renaming): Suppress error about renaming
5279 conversions on implicit conversions, since such conversions can occur
5280 for anonymous access cases due to expansion. Issue error for attempt
5281 to rename an anonymous expression as an object of a named access type.
5282 * sem_res.ads (Valid_Conversion): Add defaulted parameter Report_Errs,
5283 to indicate whether this function should report errors on invalid
5284 conversions.
5285 * sem_res.adb (Resolve): For Ada 2012, in the case where the type of
5286 the expression is of an anonymous access type and the expected type is
5287 a named general access type, rewrite the expression as a type
5288 conversion, unless this is an expression of a membership test.
5289 (Valid_Conversion.Error_Msg_N): New procedure that conditions the
5290 calling of Error_Msg_N on new formal Report_Errs.
5291 (Valid_Conversion.Error_Msg_NE): New procedure that conditions the
5292 calling of Error_Msg_NE on new formal Report_Errs.
5293 (Valid_Conversion): Move declaration of this function to the package
5294 spec, to allow calls from membership test processing. For Ada 2012,
5295 enforce legality restrictions on implicit conversions of anonymous
5296 access values to general access types, disallowing such conversions in
5297 cases where the expression has a dynamic accessibility level (access
5298 parameters, stand-alone anonymous access objects, or a component of a
5299 dereference of one of the first two cases).
5300 * sem_type.adb (Covers): For Ada 2012, allow an anonymous access type
5301 in the context of a named general access expected type.
5302 * exp_ch4.adb Add with and use of Exp_Ch2.
5303 (Expand_N_In): Add processing for membership tests applied to
5304 expressions of an anonymous access type. First, Valid_Conversion is
5305 called to check whether the test is statically False, and then the
5306 conversion is expanded to test that the expression's accessibility
5307 level is no deeper than that of the tested type. In the case of
5308 anonymous access-to-tagged types, a tagged membership test is applied
5309 as well.
5310 (Tagged_Membership): Extend to handle access type cases, applying the
5311 test to the designated types.
5312 * exp_ch6.adb (Expand_Call): When creating an extra actual for an
5313 accessibility level, and the actual is a 'Access applied to a current
5314 instance, pass the accessibility level of the type of the current
5315 instance rather than applying Object_Access_Level to the prefix. Add a
5316 ??? comment, since this level isn't quite right either (will eventually
5317 need to pass an implicit level parameter to init procs).
5318
747de90b
AC
53192011-08-30 Bob Duff <duff@adacore.com>
5320
5321 * s-taskin.ads: Minor comment fix.
5322
53232011-08-30 Ed Schonberg <schonberg@adacore.com>
5324
5325 * sem_res.adb (Check_Parameterless_Call): If the node is a selected
5326 component and the selector is a dispatching operation, check if it is
5327 a prefixed call before rewriting as a parameterless function call.
5328
cdc4cc65
JJ
53292011-08-29 Jakub Jelinek <jakub@redhat.com>
5330
5331 * gcc-interface/Makefile.in (../stamp-gnatlib1-$(RTSDIR)): Copy
5332 tsystem.h into $(RTSDIR) instead of rts.
5333
226a7fa4
AC
53342011-08-29 Robert Dewar <dewar@adacore.com>
5335
5336 * sem_ch10.adb, a-coorse.adb, exp_dist.adb, exp_ch3.adb: Minor
5337 reformatting.
5338 * gcc-interface/Make-lang.in: Update dependencies.
5339
53402011-08-29 Yannick Moy <moy@adacore.com>
5341
5342 * alfa.ads (Name_Of_Heap_Variable): New constant name.
5343 * lib-xref-alfa.adb, lib-xref.adb, lib-xref.ads (Drefs): New global
5344 table to hold dereferences.
5345 (Add_ALFA_Xrefs): Take into account dereferences as special
5346 reads/writes to the variable "HEAP".
5347 (Enclosing_Subprogram_Or_Package): Move subprogram here.
5348 (Generate_Dereference): New procedure to store a read/write dereferencew
5349 in the table Drefs.
5350 * put_alfa.adb (Put_ALFA): Use different default than (0,0) used for
5351 the special "HEAP" var.
5352 * sem_ch4.adb (Analyze_Explicit_Dereference): Store read dereference
5353 in ALFA mode.
5354 * sem_util.adb (Note_Possible_Modification): Store write dereference
5355 in ALFA mode.
5356
dfbcb149
HK
53572011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5358
5359 * exp_ch3.adb (Freeze_Type): Generate an accessibility check which
5360 ensures that the level of the subpool access type is not deeper than
5361 that of the pool object.
5362 * sem_util.adb (Object_Access_Level): Expand to handle defining
5363 identifiers.
5364 * sem_res.adb (Resolve_Allocator): Add a guard to avoid examining the
5365 subpool handle name of a rewritten allocator.
5366
1df4f514
AC
53672011-08-29 Robert Dewar <dewar@adacore.com>
5368
5369 * impunit.adb, exp_ch4.adb, s-finmas.adb: Minor reformatting.
5370
53712011-08-29 Thomas Quinot <quinot@adacore.com>
5372
5373 * exp_dist.adb (TC_Rec_Add_Process_Element): For a choice with multiple
5374 values, we generate multiple triples of parameters in the TypeCode.
5375 Bump Choice_Index for each such triple so that a subsequent default
5376 choice is associated with the correct index in the typecode.
5377
53782011-08-29 Ed Schonberg <schonberg@adacore.com>
5379
5380 * a-cdlili.adb (Iterate): Initialize properly an iterator over a null
5381 container.
5382 (First, Last): Handle properly an iterator over a null container.
5383
53842011-08-29 Bob Duff <duff@adacore.com>
5385
5386 * sem_ch10.adb (Analyze_With_Clause,Install_Withed_Unit): Abandon
5387 processing if we run across a node with no Scope. This can happen if
5388 we're with-ing an library-level instance, and that instance got errors
5389 that caused "instantiation abandoned".
5390 * sem_util.adb (Unit_Declaration_Node): Make it more robust, by raising
5391 an exception instead of using Assert, so it won't go into an infinite
5392 loop, even when assertions are turned off.
5393
53942011-08-29 Ed Schonberg <schonberg@adacore.com>
5395
5396 * a-coorse.adb: Proper handling of empty ordered sets.
5397
14f0f659
AC
53982011-08-29 Johannes Kanig <kanig@adacore.com>
5399
5400 * debug.adb: Add comments.
5401
8027b455
AC
54022011-08-29 Thomas Quinot <quinot@adacore.com>
5403
5404 * a-except.adb, a-except-2005.adb: Minor comment rewording and
5405 reformatting.
5406
54072011-08-29 Yannick Moy <moy@adacore.com>
5408
5409 * sem_ch3.adb (Array_Type_Declaration): Remove insertion of
5410 declaration for Itypes in Alfa mode.
5411
d85fd922
AC
54122011-08-29 Robert Dewar <dewar@adacore.com>
5413
5414 * a-cdlili.ads, a-coinve.ads, a-coorma.adb, a-coorma.ads, s-tassta.adb,
5415 a-cborma.adb, a-cborma.ads, a-cohama.ads, a-coorse.ads, a-cbhama.ads,
5416 a-cborse.ads, a-cobove.adb, a-cobove.ads, a-cbhase.ads: Minor
5417 reformatting.
5418
54192011-08-29 Tristan Gingold <gingold@adacore.com>
5420
5421 * exp_ch7.adb, exp_ch7.ads (Build_Exception_Handler): Move its spec to
5422 package spec.
5423 * exp_intr.adb (Expand_Unc_Deallocation): Use Build_Exception_Handler.
5424 * a-except.adb, a-except-2005.adb (Rcheck_22): Do not defer aborts
5425 while raising PE.
5426
fd3d2680
AC
54272011-08-29 Robert Dewar <dewar@adacore.com>
5428
5429 * a-cbhama.adb, a-cbhama.ads: Minor reformatting.
5430
54312011-08-29 Javier Miranda <miranda@adacore.com>
5432
5433 * sem_ch8.adb (Analyze_Subprogram_Renaming): Complete support for
5434 renamings of formal subprograms when the actual for a formal type is
5435 class-wide.
5436
dfbf013f
MH
54372011-08-29 Matthew Heaney <heaney@adacore.com>
5438
5439 * a-cbhama.ads, a-cbhase.ads (Move): Clear Source following assignment
5440 to Target.
5441
54422011-08-29 Matthew Heaney <heaney@adacore.com>
5443
5444 * a-cborma.ads, a-cborse.ads (Cursor): Default-initialize all
5445 components of record type.
5446 * a-cborma.adb, a-cborse.adb (Move): Clear Source following assignmentw
5447 to Target.
5448
a6dd3a54
ES
54492011-08-29 Ed Schonberg <schonberg@adacore.com>
5450
5451 * a-cbhama.adb, a-cbhama.ads, a-cborma.adb, a-cborma.ads, a-cobove.adb,
5452 a-cobove.ads, a-coorma.adb, a-coorma.ads: Add iterator machinery to
5453 container packages.
5454
c54796e0
AC
54552011-08-29 Robert Dewar <dewar@adacore.com>
5456
5457 * sem_ch3.adb, sem_util.adb, gnat1drv.adb, s-parint.ads: Minor
5458 reformatting.
5459
54602011-08-29 Matthew Heaney <heaney@adacore.com>
5461
5462 * a-cbhama.ads, a-cbhase.ads (Cursor): Default-initialize all
5463 components of record type.
5464
54652011-08-29 Bob Duff <duff@adacore.com>
5466
5467 * s-tassta.adb (Task_Wrapper): Handle and ignore exceptions propagated
5468 by the termination handler.
5469
9fd9d2be
AC
54702011-08-29 Yannick Moy <moy@adacore.com>
5471
5472 * sem_ch3.adb (Array_Type_Declaration): Create declarations for Itypes
5473 created in Alfa mode, instead of inserting artificial declarations of
5474 non-Itypes in the tree.
5475 * sem_util.adb, sem_util.ads (Itype_Has_Declaration): New function to
5476 know if an Itype has a corresponding declaration, as defined in
5477 itypes.ads.
5478
54792011-08-29 Yannick Moy <moy@adacore.com>
5480
5481 * gnat1drv.adb: Minor rewrite.
5482
54832011-08-29 Bob Duff <duff@adacore.com>
5484
5485 * s-tasuti.adb (Make_Passive): Work around race condition in
5486 Make_Independent, which can cause Wait_Count to be zero. So instead of
5487 asserting that Wait_Count > 0, and then decrementing it, decrement it
5488 only if Wait_Count > 0.
5489 * s-taskin.ads (Wait_Count, Alive_Count, Awake_Count): All of these
5490 should be nonnegative, so declare them Natural instead of Integer.
5491
833eaa8a
AC
54922011-08-29 Robert Dewar <dewar@adacore.com>
5493
5494 * exp_ch5.adb, sem_ch3.adb, a-cihama.adb, a-cihama.ads, exp_ch7.adb,
5495 sem_ch5.adb, a-ciorse.adb, a-ciorse.ads, sem_ch12.adb, a-cidlli.adb,
5496 a-cidlli.ads, sem_util.adb, sem_res.adb, gnat1drv.adb, a-except.adb,
5497 a-except.ads, a-except-2005.ads, sem_ch4.adb, exp_disp.adb,
5498 exp_aggr.adb, sem_ch13.adb, par-ch3.adb: Minor reformatting.
5499
55002011-08-29 Tristan Gingold <gingold@adacore.com>
5501
5502 * s-auxdec-vms-alpha.adb: Add comments, remove some HT before labels.
5503
55042011-08-29 Vadim Godunko <godunko@adacore.com>
5505
5506 * s-parint.ads: Minor comment clarification.
5507
55082011-08-29 Vincent Celier <celier@adacore.com>
5509
5510 * prj.adb (Initialize): Make sure that new reserved words after Ada 95
5511 may be used as identifiers.
5512
55132011-08-29 Ed Schonberg <schonberg@adacore.com>
5514
5515 * a-coinho.ads: Minor reformating.
5516
3a613a36
AC
55172011-08-29 Ed Schonberg <schonberg@adacore.com>
5518
5519 * exp_ch5.adb (Expand_Iterator_Loop): Handle properly a loop over a
5520 container of a derived type.
5521
3a613a36
AC
55222011-08-29 Ed Schonberg <schonberg@adacore.com>
5523
5524 * a-cidlli.adb, a-cidlli.ads, a-cihama.adb, a-cihama.ads,
5525 a-ciorse.adb, a-ciorse.ads: Add iterator machinery to containers.
5526
14848f57
AC
55272011-08-29 Pascal Obry <obry@adacore.com>
5528
5529 * exp_disp.adb: Minor comment fix.
5530 (Make_Disp_Asynchronous_Select_Body): Properly initialize out parameters
5531 to avoid warnings when compiling with -Wall.
5532 (Make_Disp_Conditional_Select_Body): Likewise.
5533 (Make_Disp_Timed_Select_Body): Likewise.
5534
55352011-08-29 Ed Schonberg <schonberg@adacore.com>
5536
5537 * sem_ch12.adb (Analyze_Formal_Subprogram_Declaration): If default is
5538 an entity name, generate reference for it.
5539
55402011-08-29 Ed Schonberg <schonberg@adacore.com>
5541
5542 * exp_ch5.adb (Expand_Iterator_Loop): Uniform handling of "X of S"
5543 iterator form.
5544 * sem_util.adb (Is_Iterator, Is_Reversible_Iterator): Yield True for
5545 the class-wide type.
5546 * sem_ch5.adb: Move some rewriting to the expander, where it belongs.
5547
55482011-08-29 Ed Schonberg <schonberg@adacore.com>
5549
5550 * sem_ch8.adb (Check_Constrained_Object): Do not create an actual
5551 subtype for an object whose type is an unconstrained union.
5552
55532011-08-29 Ed Schonberg <schonberg@adacore.com>
5554
5555 * par-ch3.adb (P_Array_Type_Definiation, P_Component_Items): "aliased"
5556 is allowed in a component definition, by AI95-406.
5557
55582011-08-29 Matthew Heaney <heaney@adacore.com>
5559
5560 * a-chtgbo.adb (Generic_Iteration): Use correct overloading of Next.
5561
55622011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5563
5564 * a-except-2005.adb: Alphabetize all routines.
5565 (Triggered_By_Abort): New routine.
5566 * a-except-2005.ads (Triggered_By_Abort): New routine.
5567 * a-except.adb Alphabetize all routines.
5568 (Triggered_By_Abort): New routine.
5569 * a-except.ads (Triggered_By_Abort): New routine.
5570 * exp_ch7.adb: Update all comments involving the detection of aborts in
5571 finalization code.
5572 (Build_Object_Declarations): Do not generate code to detect the
5573 presence of an abort at the start of finalization code, use a runtime
5574 routine istead.
5575 * rtsfind.ads: Add RE_Triggered_By_Abort to tables RE_Id and
5576 RE_Unit_Table.
5577 * sem_res.adb (Resolve_Allocator): Emit a warning when attempting to
5578 allocate a task on a subpool.
5579 * s-stposu.adb: Add library-level flag Finalize_Address_Table_In_Use.
5580 The flag disables all actions related to the maintenance of
5581 Finalize_Address_Table when subpools are not in use.
5582 (Allocate_Any_Controlled): Signal the machinery that subpools are in
5583 use.
5584 (Deallocate_Any_Controlled): Do not call Delete_Finalize_Address which
5585 performs costly task locking when subpools are not in use.
5586
57a8057a
AC
55872011-08-29 Yannick Moy <moy@adacore.com>
5588
5589 * gnat1drv.adb (Adjust_Global_Switches): Restore expansion of tagged
5590 types and dispatching calls in Alfa mode.
5591 * lib-xref-alfa.adb (Collect_ALFA): Rewrite computation of
5592 correspondance between body and spec scopes, to reuse utility functions
5593 (Traverse_Declarations_Or_Statements): Protect access to body for stub
5594 by testing the presence of the library unit for the body
5595 * sem_ch6.adb (Set_Actual_Subtypes): take into account that in Alfa
5596 mode the expansion of accept statements is skipped
5597 * sem_util.adb, sem_util.ads (Unique_Entity): New function returning
5598 the unique entity corresponding to the one returned by
5599 Unique_Defining_Entity applied to the enclosing declaration of the
5600 argument.
5601
56022011-08-29 Bob Duff <duff@adacore.com>
5603
5604 * treepr.ads: Improve debugging facilities. pn(x) no longer crashes in
5605 gdb when x is not a node (it can be a node list, name_id, etc). pp is
5606 an alias for pn. ppp is an alias for pt.
5607
56082011-08-29 Javier Miranda <miranda@adacore.com>
5609
5610 * exp_aggr.adb (Expand_Record_Aggregate): Use the top-level enclosing
5611 aggregate to take a consistent decision on the need to convert into
5612 assignments aggregates that initialize constant objects.
5613
56142011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5615
5616 * exp_ch4.adb (Expand_Allocator_Expression): Add a call to
5617 Build_Allocate_Deallocate_Proc in order to handle allocation of
5618 non-controlled objects on subpools.
5619 * impunit.adb: Remove s-finmas and s-spsufi since they were never meant
5620 to be end-user visible.
5621 * s-finmas.adb: Add with and use clause for System.HTable.
5622 Add an instantiation of Simple_HTable which provides a mapping between
5623 the address of a controlled object and the corresponding
5624 Finalize_Address used to clean up the object. The table is used when a
5625 master is operating in heterogeneous mode.
5626 (Attach): Explain why the input node is not verified on being already
5627 attached.
5628 (Delete_Finalize_Address): New routine.
5629 (Detach): Add pragma Assert which ensures that a node is already
5630 attached.
5631 (Finalize): Add local variable Cleanup. Rewrite the iteration scheme
5632 since nodes are no longer removed on traversal. Explain why node
5633 detachment is undesirable in this case.
5634 (Get_Finalize_Address): New routine.
5635 (Hash): New routine.
5636 (Is_Empty_List): Removed.
5637 (pm): Renamed to Print_Master. Add output for discriminant
5638 Is_Homogeneous.
5639 Comment reformatting.
5640 (Set_Finalize_Address (Address, Finalize_Address_Ptr)): New routine.
5641 * s-finmas.ads: Various comments additions / improvements.
5642 Type Finalization_Master has a discriminant which determines the mode of
5643 operation.
5644 (Delete_Finalize_Address): New routine.
5645 (Get_Finalize_Address): New routine.
5646 (pm): Renamed to Print_Master.
5647 (Set_Finalize_Address (Address, Finalize_Address_Ptr)): New routine.
5648 * s-stposu.adb: Add with clause for System.Address_Image; Add with and
5649 use clause for System.IO.
5650 (Allocate_Any_Controlled): Add machinery to set TSS primitive
5651 Finalize_Address depending on the mode of allocation and the mode of
5652 the master.
5653 (Deallocate_Any_Controlled): Remove the relation pair object -
5654 Finalize_Address regardless of the master mode. Add comment explaining
5655 the reason.
5656 (Detach): Ensure that fields Prev and Next are null after detachment.
5657 (Finalize_Pool): Remove local variable Next_Ptr. Rewrite the iteration
5658 scheme to check whether the list of subpools is empty. There is no
5659 longer need to store the next subpool or advance the current pointer.
5660 (Is_Empty_List): New routine.
5661 (Print_Pool): New routine.
5662 (Print_Subpool): New routine.
5663 * s-stposu.ads: Various comments additions / improvements.
5664 Field Master of type Root_Subpool is now a heterogeneous collection.
5665 (Print_Pool): New routine.
5666 (Print_Subpool): New routine.
5667
56682011-08-29 Ed Schonberg <schonberg@adacore.com>
5669
5670 * exp_ch5.adb (Expand_N_Iterator_Loop): Implement Ada2012 loop iterator
5671 forms, using aspects of container types.
5672 * sem_ch3.adb (Find_Type_Name): Preserve Has_Delayed_Aspects and
5673 Has_Implicit_Dereference flags, that may be set on the partial view.
5674 * sem_ch4.adb (Process_Overloaded_Indexed_Component): Prefix may be a
5675 container type with an indexing aspect.
5676 (Analyze_Quantified_Expression): Analyze construct with expansion
5677 disabled, because it will be rewritten as a loop during expansion.
5678 (Try_Container_Indexing): The prefix itself may be a container type
5679 with an indexing aspect, as with a vector of vectors.
5680 * sem_ch5.adb (Analyze_Iteration_Scheme): In a generic context, analyze
5681 the original doamin of iteration, for name capture.
5682 (Analyze_Iterator_Specification): If the domain is an expression that
5683 needs finalization, create a separate declaration for it.
5684 For an iterator with "of" retrieve default iterator info from aspect of
5685 container type. For "in" iterator, retrieve type of Iterate function.
5686 * sem_ch13.adb (Check_Iterator_Function): Fix typo.
5687 (Check_Aspect_At_End_Of_Declaration): Make type unfrozen before
5688 analysis, to prevent spurious errors about late attributes.
5689 * sprint.adb: Handle quantified expression with either loop or iterator
5690 specification.
5691 * a-convec.ads, a-convec.adb: Iterate function returns a reversible
5692 iterator.
5693
ddf67a1d
AC
56942011-08-29 Vincent Celier <celier@adacore.com>
5695
5696 * make.adb (Scan_Make_Arg): Take any option as is in packages Compiler,
5697 Binder or Linker of the main project file.
5698
56992011-08-29 Ed Schonberg <schonberg@adacore.com>
5700
5701 * inline.adb (Add_Scopes_To_Clean): Exclude any entity within a generic
5702 unit.
5703
57042011-08-29 Yannick Moy <moy@adacore.com>
5705
5706 * exp_ch9.adb: Partial revert of previous change for Alfa mode
5707
57082011-08-29 Yannick Moy <moy@adacore.com>
5709
5710 * exp_ch11.adb: Minor expansion of comment.
5711
57122011-08-29 Yannick Moy <moy@adacore.com>
5713
5714 * lib-xref-alfa.adb (Add_ALFA_Scope): Treat generic entities.
5715
57162011-08-29 Ed Schonberg <schonberg@adacore.com>
5717
5718 * sem_res.adb (Resolve_Arithmetic_Op): If the node has a universal
5719 interpretation, set the type before resolving the operands, because
5720 legality checks on an exponention operand need to know the type of the
5721 context.
5722
57232011-08-29 Ed Schonberg <schonberg@adacore.com>
5724
5725 * sem_ch12.adb (Analyze_Package_Instantiation): Do not set delayed
5726 cleanups on a master if the instance is within a generic unit.
5727 Complement to the corresponding fix to inline.adb for K520-030.
5728
57292011-08-29 Tristan Gingold <gingold@adacore.com>
5730
5731 * exp_ch7.adb (Build_Raise_Statement): Raise PE instead of the current
5732 occurrence.
5733 * exp_intr.adb: Minor comment fix.
5734
57352011-08-29 Bob Duff <duff@adacore.com>
5736
5737 * sem_ch13.adb (Analyze_Aspect_Specifications): Fix cases where
5738 Delay_Required was used as an uninitialized variable.
5739
690943fc
RD
57402011-08-29 Robert Dewar <dewar@adacore.com>
5741
5742 * a-cdlili.adb, a-cdlili.ads, a-coinve.adb, a-coinve.ads,
5743 sem_util.adb, sem_util.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb,
5744 a-coorse.ads, aspects.ads, sem_ch8.adb: Minor reformatting.
5745
9f0ee988
TQ
57462011-08-29 Thomas Quinot <quinot@adacore.com>
5747
5748 * system-freebsd-x86_64.ads (Backend_Overflow_Checks): Set true True.
5749 Remove unused variables.
5750
3e24afaa
AC
57512011-08-29 Ed Schonberg <schonberg@adacore.com>
5752
5753 * sem_res.adb: Remove Build_Explicit_Dereference.
5754 * sem_util.adb, sem_util.ads (Build_Explicit_Dereference): Moved here
5755 from sem_res.adb, used in analysis of additional constructs.
5756 (Is_Iterator, Is_Reversible_Iterator): New predicates for Ada2012
5757 expansion of iterators.
5758 (Is_Object_Reference): Recognize variables rewritten as explicit
5759 dereferences in Ada2012.
5760 * snames.ads-tmpl: Add Has_Element, Forward_Iterator,
5761 Reversible_Iterator names, for expansion of Ada2012 iterators.
5762 * aspects.ads, aspects.adb (Find_Aspect): Utility.
5763 * a-cdlili.ads, a-cdlili.adb: Add new iterator machinery to doubly
5764 linked list container.
5765 * a-coinve.ads, a-coinve.adb: Ditto for indefinite vector containers.
5766 * a-coorse.ads, a-coorse.adb: Ditto for ordered sets.
5767
57682011-08-29 Ed Schonberg <schonberg@adacore.com>
5769
5770 * a-cohama.adb, a-cohama.ads: Add iterator primitives to hashed map
5771 containers.
5772
57732011-08-29 Vincent Celier <celier@adacore.com>
5774
5775 * make.adb (Gnatmake): Get the maximum number of simultaneous
5776 compilation processes after the Builder switches has been scanned, as
5777 there may include -jnn.
5778
57792011-08-29 Matthew Heaney <heaney@adacore.com>
5780
5781 * a-chtgbo.adb (Generic_Equal): Use correct overloading of Next.
5782
57832011-08-29 Tristan Gingold <gingold@adacore.com>
5784
5785 * gnatcmd.adb (GNATCmd): On OpenVMS, truncate the length of
5786 GNAT_DRIVER_COMMAND_LINE to 255.
5787
57882011-08-29 Pascal Obry <obry@adacore.com>
5789
5790 * freeze.adb, sem_ch8.adb, a-convec.adb, a-convec.ads: Minor
5791 reformatting and style fix (class attribute casing).
5792
57932011-08-29 Yannick Moy <moy@adacore.com>
5794
5795 * exp_ch11.adb: Yet another case where expansion should be common
5796 between CodePeer and Alfa.
5797
57982011-08-29 Yannick Moy <moy@adacore.com>
5799
5800 * exp_ch9.adb: Partial revert of previous change for Alfa mode.
5801
58022011-08-29 Ed Schonberg <schonberg@adacore.com>
5803
5804 * sem_ch6.adb (Matches_Limited_With_View): The limited views of an
5805 incomplete type and its completion match.
5806
3ddd922e
AC
58072011-08-29 Yannick Moy <moy@adacore.com>
5808
5809 * exp_ch13.adb: Adjust previous change.
5810
58112011-08-29 Robert Dewar <dewar@adacore.com>
5812
5813 * sem_prag.adb, prj.adb, sem_util.adb, sem_res.adb, gnat1drv.adb,
5814 exp_ch4.adb, sem_ch8.adb: Minor code reorganization
5815 Minor reformatting.
5816
444acbdd
AC
58172011-08-29 Emmanuel Briot <briot@adacore.com>
5818
5819 * make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Also
5820 initialize aggregated projects.
5821
58222011-08-29 Ed Schonberg <schonberg@adacore.com>
5823
5824 * sem_ch8.adb (Find_Renamed_Entity): Within an instance, use scope
5825 depth of candidates to resolve a potentially spurious ambiguity between
5826 two visible subprograms.
5827
e0296583
AC
58282011-08-29 Yannick Moy <moy@adacore.com>
5829
5830 * sem_prag.adb (Analyze_Pragma): Allow Test_Case pragma without
5831 Requires/Ensures.
5832 * sem_util.adb (Get_Ensures_From_Test_Case_Pragma,
5833 Get_Requires_From_Test_Case_Pragma): Allow Test_Case pragma without
5834 Requires/Ensures.
5835
58362011-08-29 Arnaud Charlet <charlet@adacore.com>
5837
5838 * gnat1drv.adb (Adjust_Global_Switches): Improve previous change.
5839 Add comment.
5840
58412011-08-29 Thomas Quinot <quinot@adacore.com>
5842
5843 * sem_res.adb: Minor reformatting.
5844
69794413
JK
58452011-08-29 Johannes Kanig <kanig@adacore.com>
5846
5847 * exp_ch4.adb (Expand_Quantified_Expression): Do not expand in ALFA
5848 mode.
5849 * gnat1drv.adb (Adjust_Global_Switches): Set
5850 Use_Expressions_With_Actions to False in ALFA mode.
5851 * sem_res.adb (Resolve_Quantified_Expression): Simpler treatment in
5852 ALFA mode.
5853
59e6b23c
AC
58542011-08-29 Yannick Moy <moy@adacore.com>
5855
5856 * exp_ch13.adb (Expand_N_Freeze_Entity): Do nothing in Alfa mode.
5857 * exp_ch9.adb: Do not expand tasking constructs in Alfa mode.
5858 * gnat1drv.adb (Adjust_Global_Switches): Suppress the expansion of
5859 tagged types and dispatching calls in Alfa mode.
5860
58612011-08-29 Javier Miranda <miranda@adacore.com>
5862
5863 * sem_ch3.adb (Process_Discriminants): Add missing check to ensure that
5864 we do not report an error on an Empty node.
5865
58662011-08-29 Geert Bosch <bosch@adacore.com>
5867
5868 * Makefile.rtl (GNATRTL_NONTASKING_OBJECTS): Add a-nllrar.o,
5869 a-nlrear.o and a-nurear.o.
5870
58712011-08-29 Robert Dewar <dewar@adacore.com>
5872
5873 * freeze.adb: Minor code reorganization.
5874 Minor reformatting.
5875 * sem_util.adb, errout.adb, exp_ch11.adb, a-ngrear.adb, s-gearop.adb,
5876 sem_ch6.adb: Minor reformatting
5877
58782011-08-29 Tristan Gingold <gingold@adacore.com>
5879
5880 * s-except.ads, s-except.adb: Provide dummy body.
5881
58822011-08-29 Yannick Moy <moy@adacore.com>
5883
5884 * sem_warn.adb (Within_Postcondition): Take into account the case of
5885 an Ensures component in a Test_Case.
5886
4d792549
AC
58872011-08-29 Tristan Gingold <gingold@adacore.com>
5888
5889 * s-excdeb.ads, s-excdeb.adb: New files, created from s-except.
5890 * rtsfind.ads (RTU_Id): Replaces System_Exceptions by
5891 System_Exceptions_Debug
5892 (RE_Unit_Table): Search RE_Local_Raise in System_Exceptions_Debug
5893 * a-except.adb: With and use System.Exceptions_Debug instead of
5894 System.Exceptions.
5895 * a-except-2005.adb: Likewise.
5896 * s-assert.adb: Likewise.
5897 * s-except.adb, s-except.ads: Move debugging hooks to s-excdeb.
5898 * Makefile.rtl: Add s-excdeb. Adjust compilation rule.
5899 * gcc-interfaces/Makefile.in, gcc-interface/Make-lang.in: Add
5900 s-excdeb. Update dependencies.
5901 (GNATRTL_LINEARALGEBRA_OBJS): Remove a-nlrear.o a-nurear.o a-nllrar.o
5902 as these no longer need external libraries.
5903
59042011-08-29 Ed Schonberg <schonberg@adacore.com>
5905
5906 * sem_res.adb (Resolve_Op_Expon): Additional check to reject an
5907 exponentiation operator on universal values in a context that requires
5908 a fixed-point type.
5909
59102011-08-29 Tristan Gingold <gingold@adacore.com>
5911
5912 * raise-gcc.c (personnality_routine): Fix thinko. Set Ada occurrence
5913 before calling notify_handled_exception.
5914 * a-exextr.adb: Fix comment.
5915
b254da66
AC
59162011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5917
5918 * exp_ch4.adb (Expand_Allocator_Expression): Add code to set attribute
5919 Finalize_Address of the access type's finalization master.
5920 (Expand_N_Allocator): Add code to set attribute Finalize_Address of the
5921 access type's finalization master. Add a guard to prevent
5922 Associated_Storage_Pool from being set on .NET/JVM.
5923 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Add code to set
5924 attribute Finalize_Address of the access type's finalization master.
5925 * exp_ch7.adb (Make_Finalize_Address_Call): New routine.
5926 * exp_ch7.ads (Make_Finalize_Address_Call): New routine.
5927 * rtsfind.ads: Add RE_Set_Finalize_Address to tables RE_Id and
5928 RE_Unit_Table.
5929 * s-finmas.adb: Add with clause for System.Address_Image. Add with and
5930 use clause for System.IO
5931 (Detach): Relax the assertion, to be reinstated later.
5932 (Finalize): Rewrite the iteration loop to avoid pointer comparison.
5933 Relax the assertion on Finalize_Address, to be reinstated later.
5934 (Is_Empty_List): New routine.
5935 (pm): New debug routine.
5936 (Set_Finalize_Address): New routine.
5937 * s-finmas.ads (pm): New debug routine.
5938 (Set_Finalize_Address): New routine.
5939 * s-stposu.adb (Allocate_Any_Controlled): Code reformatting.
5940
59412011-08-29 Tristan Gingold <gingold@adacore.com>
5942
5943 * a-exexpr-gcc.adb (GCC_Exception_Access, GNAT_GCC_Exception_Access):
5944 Remove convention C.
5945
59462011-08-29 Tristan Gingold <gingold@adacore.com>
5947
5948 * s-taprop-vms.adb (Get_Exc_Stack_Addr): Remove.
5949 (Initialize_TCB): Remove Exc_Stack_Ptr initialization.
5950 (Finalize_TCB): Remove its finalization.
5951 (Initialize): Remove assignment of GET_Exc_Stack_Addr
5952 * s-soflin.adb (NT_Exc_Stack): Remove
5953 (Get_Exc_Stack_Addr_NT): Likewise.
5954 (Get_Exc_Stack_Addr_Soft): Likewise.
5955 * s-soflin.ads (Get_Exc_Stack_Addr_NT): Remove.
5956 (Get_Exc_Stack_Addr): Likewise.
5957 (Get_Exc_Stack_Addr_Soft): Likewise
5958 * s-taspri-vms.ads (Exc_Stack_T): Remove.
5959 (Exc_Stack_Ptr_T): Likewise.
5960 (Private_Data): Remove Exc_Stack_Ptr component.
5961
59622011-08-29 Tristan Gingold <gingold@adacore.com>
5963
5964 * raise-gcc.c (get_ip_from_context): New function. Factorize code.
5965
59662011-08-29 Tristan Gingold <gingold@adacore.com>
5967
5968 * gnat_ugn.texi: Fix aix and x86-solaris info for run-time.
5969
59702011-08-29 Geert Bosch <bosch@adacore.com>
5971
5972 * s-gearop.ads (Back_Substitute, Diagonal, Forward_Eliminate,
5973 L2_Norm, Swap_Column): New generic subprograms
5974 * s-gearop.adb (Back_Substitute, Diagonal, Forward_Eliminate,
5975 L2_Norm, Swap_Column): Implement new subprograms in order to
5976 eliminate dependency on BLAS and LAPACK libraries in
5977 Ada.Numerics.Generic_Real_Arrays and eventually also the complex
5978 version. Forward_Eliminate/Back_Substitute can be used to put a
5979 matrix in row echelon or reduced row echelon form using partial
5980 pivoting.
5981 * a-ngrear.adb: (Back_Substitute, Diagonal, Forward_Eleminate,
5982 Swap_Column): Instantiate from System.Generic_Array_Operations.
5983 ("*", "abs"): Implement by instantiation from Generic_Array_Operations.
5984 (Sqrt): Local function for simple computation of square root without
5985 adding dependencies on Generic_Elementary_Functions.
5986 (Swap): New subprogram to exchange floating point numbers.
5987 (Inverse): Reimplement using Jordan-Gauss elimination.
5988 (Jacobi): New procedure implementing Jacobi's method for computation
5989 of eigensystems, based on Rutishauser's implementation.
5990 (L2_Norm): Implement directly using the inner product.
5991 (Sort_Eigensystem): Sort eigenvalue/eigenvector pairs in order of
5992 decreasing eigenvalue as required by the Ada RM.
5993 (Swap_Column): New helper procedure for Sort_Eigensystem.
5994 Remove with of System.Generic_Real_BLAS and System.Generic_Real_LAPACK.
5995 Add with of Ada.Containers.Generic_Anonymous_Array_Sort, for
5996 Sort_Eigensystems.
5997
59982011-08-29 Thomas Quinot <quinot@adacore.com>
5999
6000 * put_scos.adb (Put_SCOs): Do not emit a newline for an empty
6001 statements line.
6002
60370fb1
AC
60032011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6004
6005 * s-finmas.adb (Finalize): Check Finalize_Address of the master rather
6006 than the current node.
6007 * s-finmas.ads: Move field Finalize_Address from type FM_Node to
6008 Finalization_Master. The list headers have two fields instead of three.
6009 This should fix alignment issue but subpool allocations are now
6010 unusable. Alphabetize subprograms.
6011 * s-stposu.adb (Allocate_Any_Controlled): Use the offset rather than
6012 the size of the header when converting the beginning of the object to
6013 a FM_Node. Set the master's Finalize_Address attribute if not already
6014 set.
6015 (Deallocate_Any_Controlled): Use the offset rather than the size of the
6016 header when converting the beginning of the object to a FM_Node.
6017
60182011-08-29 Gary Dismukes <dismukes@adacore.com>
6019
6020 * exp_ch11.adb (Expand_N_Raise_Statement): Don't suppress expansion of
6021 reraise when compiling for CodePeer.
6022
60232011-08-29 Arnaud Charlet <charlet@adacore.com>
6024
6025 * a-iteint.ads, Makefile.rtl: Add missing compilation of a-iteint.ads,
6026 now needed by a-convec.adb. Fix warning.
6027
60282011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6029
6030 * exp_util.adb (Build_Allocate_Deallocate_Proc): Add a guard for the
6031 processing of TSS routine Finalize_Address when compiling in
6032 CodePeer_Mode.
6033
60342011-08-29 Thomas Quinot <quinot@adacore.com>
6035
6036 * a-strunb.ads, einfo.ads, g-comlin.ads, sem_ch6.adb,
6037 sem_warn.adb: Minor reformatting.
6038
60392011-08-29 Emmanuel Briot <briot@adacore.com>
6040
6041 * prj-conf.adb (Get_Config_Switches): Also collect the list of
6042 languages from aggregated projects.
6043
60442011-08-29 Yannick Moy <moy@adacore.com>
6045
6046 * lib-xref-alfa.adb, lib-xref.ads (Traverse_Declarations_Or_Statements,
6047 Traverse_Handled_Statement_Sequence, Traverse_Package_Body,
6048 Traverse_Package_Declaration, Traverse_Subprogram_Body,
6049 Traverse_Compilation_Unit): Add a parameter Inside_Stubs so that bodies
6050 for stubs are traversed too when parameter is set
6051 (Traverse_All_Compilation_Units): Traverse without going inside stubs
6052 (Traverse_Declarations_Or_Statements): Do the special traversing for
6053 stubs when required.
6054 * sem_util.adb, sem_util.ads (Get_Body_From_Stub): New function to
6055 return subprogram or package body from stub.
6056 (Is_Subprogram_Stub_Without_Prior_Declaration): New function to detect
6057 stubs without prior subprogram decl.
6058
60592011-08-29 Vasiliy Fofanov <fofanov@adacore.com>
6060
6061 * gnat_ugn.texi: Fix typo.
6062
e9c9d122
HK
60632011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6064
6065 * s-stposu.adb (Allocate_Any_Controlled): Reimplement the mechanism
6066 which accounts for size vs alignment issues and calculates the size of
6067 the list header.
6068 (Deallocate_Any_Controlled): Ditto.
6069 (Nearest_Multiple_Rounded_Up): New routine.
6070
25ebc085
AC
60712011-08-29 Tristan Gingold <gingold@adacore.com>
6072
6073 * a-exstat.adb (String_To_EO): Do no set Cleanup_Flag.
6074 * a-exexda.adb (Set_Exception_C_Msg): Ditto.
6075 (Set_Exception_Msg): Ditto.
6076 * a-exexpr-gcc.adb (Setup_Current_Excep): Ditto. Do not set
6077 Private_Data.
6078 * a-except.adb, a-except-2005.adb (Save_Occurrence_No_Private): Remove.
6079 Use Save_Occurrence instead of Save_Occurrence_No_Private.
6080 (Raise_With_Msg): Remove Cleanup_Flag.
6081 * a-except.ads, a-except-2005.ads (Exception_Occurrence): Remove
6082 Clean_Flag and Private_Data components.
6083
60842011-08-29 Yannick Moy <moy@adacore.com>
6085
6086 * freeze.adb (Freeze_Record_Type): Ignore packing in Alfa mode, like
6087 in CodePeer mode.
6088 * sem_ch3.adb (Signed_Integer_Type_Declaration): Correct the generation
6089 of an explicitly declared type, so that the base types of the original
6090 type and this generated type are the same, and a "type" (not a subtype
6091 like previously).
6092 * errout.adb (Special_Msg_Delete): Do not issue messages "Size too
6093 small" in Alfa mode, like in CodePeer mode.
6094 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore rep
6095 clauses in Alfa mode.
6096
60972011-08-29 Javier Miranda <miranda@adacore.com>
6098
6099 * exp_ch6.ads, exp_ch6.adb (Is_Null_Procedure): Move the spec of this
6100 function to the package spec.
6101 * sem_ch6.adb (Find_Corresponding_Spec, New_Overloaded_Entity): For
6102 internally generated bodies of null procedures locate the internally
6103 generated spec enforcing mode conformance.
6104 (Is_Interface_Conformant): Ensure that the controlling formal of the
6105 primitives match.
6106
61072011-08-29 Ed Schonberg <schonberg@adacore.com>
6108
6109 * sem_prag.adb (Analyze_Pragma, case Inline): In an instance, do not
6110 reject the pragma if it appears to apply to a formal subprogram.
6111
61122011-08-29 Ed Schonberg <schonberg@adacore.com>
6113
6114 * exp_ch4.adb (Expand_Allocator_Expression): Use consistent name for
6115 inner expression, to prevent double evaluation.
6116
590549fb
AC
61172011-08-29 Tristan Gingold <gingold@adacore.com>
6118
6119 * a-exexpr.adb (Propagate_Exception): Remove all the parameters as
6120 they were unused.
6121 * a-exexpr-gcc.adb (Propagate_Exception): Ditto.
6122 * a-except-2005.adb (Propagate_Exception): Adjust spec.
6123 (Raise_Current_Excep): Adjust call.
6124 (Raise_From_Signal_Handler): Call now simply call Raise_Current_Excep.
6125
61262011-08-29 Thomas Quinot <quinot@adacore.com>
6127
6128 * exp_disp.adb: Minor reformatting.
6129
62380e66
TG
61302011-08-29 Tristan Gingold <gingold@adacore.com>
6131
6132 * a-exexpr.adb (Setup_Exception): Removed.
6133 * a-exexpr-gcc.adb (Setup_Exception): Removed.
6134 * a-except.adb (Exception_Propagation): Removed.
6135 * a-except-2005.adb (Setup_Exception): Removed.
6136 (Reraise): Remove call to Setup_Exception.
6137 (Reraise_Occurrence): Ditto.
6138 (Reraise_Occurrence_Always): Ditto.
6139 (Reraise_Occurrence_No_Defer): Ditto.
6140 (Transfer_Occurrence): Ditto.
6141 * a-exexda.adb (Set_Exception_C_Msg): Remove call to Setup_Exception.
6142 (Set_Exception_Msg): Ditto.
6143
c95aa61c
AC
61442011-08-29 Robert Dewar <dewar@adacore.com>
6145
6146 * a-convec.adb, exp_disp.adb: Minor reformatting.
6147
61482011-08-29 Tristan Gingold <gingold@adacore.com>
6149
6150 * a-exexpr-gcc.adb (GNAT_GCC_Exception_Access): Set to convention C.
6151
624e1688
AC
61522011-08-29 Gary Dismukes <dismukes@adacore.com>
6153
6154 * exp_ch3.adb (Build_Record_Init_Proc.Build_Init_Procedure): Set
6155 Exception_Handlers to No_List instead of Empty_List in the case where
6156 there are no handlers.
6157
61582011-08-29 Tristan Gingold <gingold@adacore.com>
6159
6160 * gcc-interface/gigi.h (enum standard_datatypes): Add
6161 ADT_reraise_zcx_decl
6162 (reraise_zcx_decl): New macro.
6163 * gcc-interface/trans.c (gnu_incoming_exc_ptr): New variable.
6164 (gigi): Set reraise_zcx_decl.
6165 (Exception_Handler_to_gnu_zcx): Save and restore gnu_incoming_exc_ptr.
6166 (gnat_to_gnu): Handle N_Raise_Statement.
6167
7134062a
AC
61682011-08-29 Robert Dewar <dewar@adacore.com>
6169
6170 * sem_ch6.adb, exp_ch3.adb, s-stposu.adb, a-undesu.ads,
6171 a-undesu.adb: Minor reformatting.
6172
61732011-08-29 Ed Schonberg <schonberg@adacore.com>
6174
6175 * exp_disp.adb (Check_Premature_Freezing): When building a dispatch
6176 table, accept an unfrozen untagged component if it is an actual for a
6177 formal incomplete type.
6178 * a-convec.ads, a-convec.adb: Instantiate Ada.Iterator_Interfaces to
6179 provide new iterator forms over vectors.
6180 Introduce type Iterator in package body to implement operations of
6181 Reversible_Iterator interface.
6182 * a-iteint.ads: Make package pure so it is usable with new container
6183 packages, that are categorized Remote_Types.
6184
ca5af305
AC
61852011-08-29 Robert Dewar <dewar@adacore.com>
6186
6187 * a-exexpr-gcc.adb, a-synbar.adb, sem_ch13.adb: Minor reformatting.
6188
61892011-08-29 Bob Duff <duff@adacore.com>
6190
6191 * sem_aggr.adb (Resolve_Aggr_Expr): Call this routine even in the case
6192 of <>, because this is the routine that checks for dimensionality
6193 errors (for example, for a two-dimensional array, (others => <>) should
6194 be (others => (others => <>)).
6195
61962011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6197
6198 * impunit.adb: Add new run-time units.
6199 * freeze.adb, exp_ch7.ads, exp_ch7.adb, exp_util.ads, exp_util.adb,
6200 s-stposu.ads, s-stposu.adb: Code clean up.
6201 Handle protected class-wide or task class-wide types
6202 Handle C/C++/CIL/Java types.
6203 * s-spsufi.adb, s-spsufi.ads: New files.
6204
5accd7b6
AC
62052011-08-29 Yannick Moy <moy@adacore.com>
6206
6207 * sem_ch13.adb (Analyze_Aspect_Specifications): Reject test-case on
6208 library-level subprogram.
6209 * sem_prag.adb (Check_Test_Case): Stricter rules for test-case
6210 placement.
6211 (Analyze_Pragma): Change name "Normal" for "Nominal" in test-case
6212 component.
6213 * snames.ads-tmpl: Change name "Normal" for "Nominal" in test-case
6214 component.
6215 * gnat_rm.texi: Update doc for Test_Case pragma.
6216
62172011-08-29 Tristan Gingold <gingold@adacore.com>
6218
6219 * a-exexpr-gcc.adb (Unwind_Exception): Remove default value, made it
6220 convention C.
6221 (GCC_Exception_Access): New type.
6222 (Unwind_DeleteException): New imported procedure
6223 (Foreign_Exception): Import it.
6224 (GNAT_GCC_Exception): Simply have the occurrence inside.
6225 (To_GCC_Exception): New function.
6226 (To_GNAT_GCC_Exception): New function.
6227 (GNAT_GCC_Exception_Cleanup): New procedure..
6228 (Propagate_GCC_Exception): New procedure.
6229 (Reraise_GCC_Exception): New procedure.
6230 (Setup_Current_Excep): New procedure.
6231 (CleanupUnwind_Handler): Change type of UW_Exception parameter.
6232 (Unwind_RaiseException): Ditto.
6233 (Unwind_ForcedUnwind): Ditto.
6234 (Remove): Removed.
6235 (Begin_Handler): Change type of parameter.
6236 (End_Handler): Ditto. Now delete the exception if still present.
6237 (Setup_Key): Removed.
6238 (Is_Setup_And_Not_Propagated): Removed.
6239 (Set_Setup_And_Not_Propagated): Ditto.
6240 (Clear_Setup_And_Not_Propagated): Ditto.
6241 (Save_Occurrence_And_Private): Ditto.
6242 (EID_For): Add 'not null' constraint on parameter.
6243 (Setup_Exception): Does nothing.
6244 (Propagate_Exception): Simplified.
6245 * exp_ch11.adb (Expand_N_Raise_Statement): In back-end exception model,
6246 re-raise is not expanded anymore.
6247 * s-except.ads (Foreign_Exception): New exception - placeholder for
6248 non Ada exceptions.
6249 * raise-gcc.c (__gnat_setup_current_excep): Declare
6250 (CXX_EXCEPTION_CLASS): Define (not yet used)
6251 (GNAT_EXCEPTION_CLASS): Define.
6252 (is_handled_by): Handle foreign exceptions.
6253 (PERSONALITY_FUNCTION): Call __gnat_setup_current_excep.
6254
62552011-08-29 Jose Ruiz <ruiz@adacore.com>
6256
6257 * a-synbar.adb (Synchronous_Barrier): Some additional clarification.
6258
2ef48385
AC
62592011-08-29 Thomas Quinot <quinot@adacore.com>
6260
6261 * a-synbar-posix.adb: Minor reformatting.
6262
62632011-08-29 Jose Ruiz <ruiz@adacore.com>
6264
6265 * a-exetim-posix.adb, a-exetim-mingw.adb, a-exetim-mingw.ads,
6266 a-exetim-default.ads (Interrupt_Clocks_Supported,
6267 Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these
6268 definitions to be compliant with AI-0171. The target systems do not
6269 support separate account for the execution time of interrupt handlers.
6270
62712011-08-29 Jose Ruiz <ruiz@adacore.com>
6272
6273 * a-synbar.adb (Wait): Change the order of evaluation of the conditions
6274 in the barrier to put first the easiest to evaluate (and the one which
6275 will be True more often). More efficient.
6276
62772011-08-29 Eric Botcazou <ebotcazou@adacore.com>
6278
6279 * s-atocou-x86.adb: Fix constraint in machine code insertion.
6280
62812011-08-29 Bob Duff <duff@adacore.com>
6282
6283 * aspects.ads, aspects.adb: Add new aspects for various pragmas and
6284 attributes that are now aspects, as specified by AI05-0229-1.
6285 * sem_ch13.adb (Analyze_Aspect_Specifications,
6286 Check_Aspect_At_Freeze_Point): Analyze the new aspects. Turn them into
6287 pragmas or attribute references, as appropriate.
6288
0db16b1e
AC
62892011-08-29 Robert Dewar <dewar@adacore.com>
6290
6291 * a-synbar.ads, a-synbar.adb, a-synbar-posix.adb,
6292 a-synbar-posix.ads: Minor reformatting.
6293
62942011-08-29 Yannick Moy <moy@adacore.com>
6295
6296 * snames.ads-tmpl: Add name Force.
6297
978ffe02
AC
62982011-08-29 Pascal Obry <obry@adacore.com>
6299
6300 * prj-nmsc.adb: Minor reformatting.
6301
63022011-08-29 Jose Ruiz <ruiz@adacore.com>
6303
6304 * a-exetim.ads (Interrupt_Clocks_Supported,
6305 Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these
6306 definitions to be compliant with AI-0171.
6307
63082011-08-29 Robert Dewar <dewar@adacore.com>
6309
6310 * a-ngelfu.adb: Add comments.
6311
718f39dc
AC
63122011-08-29 Geert Bosch <bosch@adacore.com>
6313
6314 * a-ngelfu.adb (Tan): Do not raise Constraint_Error if the argument is
6315 the closest machine number to Pi / 2.0.
6316
63172011-08-29 Jose Ruiz <ruiz@adacore.com>
6318
6319 * impunit.adb (Non_Imp_File_Names_12): Add a-synbar for new Ada 2012
6320 package Ada.Synchronous_Barriers.
6321 * a-synbar.ads, a-synbar.adb, a-synbar-posix.ads, a-synbar-posix.adb:
6322 Add new specs and bodies for Ada.Synchronous_Barriers. There is a
6323 default implementation using protected objects and another one
6324 a-synbar-posix using POSIX barriers as the underlying support.
6325 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for Linux (x86,
6326 x86_64, ia64) and MIPS IRIX): Use the a-synbar-posix implementation of
6327 Ada.Synchronous_Barriers which uses POSIX barriers (more efficient).
6328 Clean up dependencies.
6329 * Makefile.rtl (GNATRTL_TASKING_OBJS): Add a-synbar.o
6330
ee2e3f6b
AC
63312011-08-29 Robert Dewar <dewar@adacore.com>
6332
6333 * sem_ch7.adb, make.adb, sem_res.adb, exp_intr.adb,
6334 exp_dist.adb: Minor code reorganization.
6335 Minor reformatting.
6336
63372011-08-29 Thomas Quinot <quinot@adacore.com>
6338
6339 * sem_cat.adb (Validate_RACW_Primitive): The return type of an RACW
6340 primitive operation must support external streaming if it is not a
6341 controlling access result.
6342
646e2823
AC
63432011-08-29 Thomas Quinot <quinot@adacore.com>
6344
6345 * sinfo.ads, sem_ch7.adb: Minor reformatting.
6346
63472011-08-29 Bob Duff <duff@adacore.com>
6348
6349 * sem_ch4.adb (Analyze_Allocator): Check No_Nested_Finalization
6350 restriction on allocators, as required by AI05-0013-1.
6351 * restrict.ads: Minor comment fix.
6352
5d59eef2
AC
63532011-08-29 Tristan Gingold <gingold@adacore.com>
6354
6355 * a-exexpr.adb, a-except-2005.ads (Jmpbuf_Address): Move to a-exexpr.adb
6356 (To_Jmpbuf_Address): Ditto
6357 (builtin_longjmp): Ditto
6358
63592011-08-29 Thomas Quinot <quinot@adacore.com>
6360
6361 * sem_res.adb: Minor reformatting.
6362
63632011-08-29 Vincent Celier <celier@adacore.com>
6364
6365 * make.adb (Gnatmake): Move special processing for VM targets after the
6366 call to Get_Target_Parameters.
6367
63682011-08-29 Thomas Quinot <quinot@adacore.com>
6369
6370 * sem_ch12.adb, par-ch12.adb: Minor reformatting.
6371
949a18cc
AC
63722011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6373
6374 * sem_res.adb (Resolve_Allocator): Implement Ada2012-B052. Detect cases
6375 where an anonymous access discriminant of a limited designated type
6376 appears in a non-immutably limited discriminated type and issue an
6377 error message. Add local variable Desig_T and replace all occurrences
6378 of Designated_Type.
6379
63802011-08-29 Jose Ruiz <ruiz@adacore.com>
6381
6382 * a-rttiev.adb (Set_Handler): Update comment to indicate that our
6383 implementation is compliant to RM D.15(15/2) after the modification
6384 imposed by AI05-0094-1 (binding interpretation).
6385
cb25faf8
AC
63862011-08-29 Robert Dewar <dewar@adacore.com>
6387
6388 * exp_ch9.adb, s-tasren.adb, exp_sel.adb, exp_sel.ads, exp_ch11.adb,
6389 s-interr-hwint.adb, s-tpobop.adb, sem_ch13.adb: Minor reformatting.
6390
63912011-08-29 Thomas Quinot <quinot@adacore.com>
6392
6393 * par-endh.adb (Check_End): For an END where it is mandatory to repeat
6394 the scope name, do not report a missing label as a style violation (it
6395 will be diagnosed as an illegality).
6396 * exp_dist.adb (Add_Params_For_Variant_Components): Fix handling of
6397 variant records: Get_Enum_Lit_From_Pos already returns a usage
6398 occurrence of the literal, no need to use New_Occurrence_Of. Set Etype
6399 on Expr in Integer_Literal case so that it can be used by
6400 Build_To_Any_Call.
6401
1d10f669
AC
64022011-08-29 Tristan Gingold <gingold@adacore.com>
6403
6404 * exp_sel.ads (Build_Abort_BLock_Handler): New function spec.
6405 Adjust comment.
6406 * exp_sel.adb (Build_Abort_Block): Use Build_Abort_Block_Handler.
6407 (Build_Abort_Block_Handler): New function to build an Abort_Signal
6408 exception handler.
6409 * exp_ch9.adb (Expand_N_Asynchronous_Select): Call
6410 Build_Abort_Block_Handler to build the exception handler. Do not
6411 undefer aborts for the Abort_Signal exception handler if back-end
6412 exception mechanism.
6413 * exp_ch11.adb (Expand_Exception_Handlers): Do not undefer aborts if
6414 back_end exceptions for all others and abort_signal.
6415 * s-except.ads (ZCX_By_Default): New constant.
6416 * a-except-2005.adb (Raise_Exception): Do not defer abort if ZCX.
6417 (Raise_Exception_Always): Ditto.
6418 (Raise_From_Signal_Handler): Ditto.
6419 (Raise_With_Location_And_Msg): Ditto.
6420 (Raise_With_Msg): Ditto.
6421 (Reraise): Ditto.
6422 (Reraise_Occurence): Ditto.
6423 (Reraise_Occurrence_Always): Ditto.
6424 * s-tasren.adb (Exceptional_Complete_Rendezvous): Defer aborts if ZCX.
6425 * s-tpobop.adb: (Exceptional_Complete_Body): Undefer abort if ZCX.
1d10f669
AC
6426
64272011-08-29 Thomas Quinot <quinot@adacore.com>
6428
6429 * sem_util.ads (Get_Enum_Lit_From_Pos): Clarify documentation.
6430
d986066d
AC
64312011-08-29 Robert Dewar <dewar@adacore.com>
6432
6433 * snames.adb-tmpl, sem_ch13.adb: Minor reformatting
6434 Minor code reorganization.
6435
64362011-08-29 Bob Duff <duff@adacore.com>
6437
6438 * usage.adb (-gnatwy): Fix documentation: this switch applies to Ada
6439 2012, not just Ada 2005.
6440
64412011-08-29 Vincent Celier <celier@adacore.com>
6442
6443 * gnat_ugn.texi: Indicate that when the compiler is called by gnatmake
6444 with a project file or with gprbuid, if -gnatep= is specified, the
6445 builder may need to be invoked with -x.
6446
64472011-08-29 Tristan Gingold <gingold@adacore.com>
6448
6449 * a-exexpr-gcc.adb: Minor comment fix.
6450
ff4f0ed0
AC
64512011-08-29 Robert Dewar <dewar@adacore.com>
6452
6453 * sem_ch8.adb: Minor reformatting.
6454
64552011-08-29 Bob Duff <duff@adacore.com>
6456
6457 * par-ch2.adb (P_Identifier): Warn that "some" is reserved in Ada 2012.
6458 * par-ch4.adb (P_Quantified_Expression): Remove unnecessary code for
6459 treating "some" as unreserved in earlier Ada versions. This is now
6460 handled in Snames.Is_Keyword_Name. Parse "for some" using Tok_Some,
6461 rather than Name_Some, since Tok_Some is now recognized as reserved.
6462 * scans.adb (Initialize_Ada_Keywords): Handle Tok_Some like any other
6463 reserved word.
6464 * scans.ads: Minor comment fixes.
6465 * snames.adb-tmpl (Is_Keyword_Name): Handle Ada 2012 reserved words as
6466 for other language versions.
6467 * scn.adb (Scan_Reserved_Identifier): Remove unnecessary code for
6468 treating "some" as unreserved in earlier Ada versions. This is now
6469 handled in Snames.Is_Keyword_Name.
6470 * par-ch3.adb (P_Defining_Identifier): Warn that "some" is reserved in
6471 Ada 2012.
6472 (P_Subtype_Mark_Resync): Remove unnecessary code for treating "some" as
6473 unreserved in earlier Ada versions. This is now handled in
6474 Snames.Is_Keyword_Name.
6475 * snames.ads-tmpl (Ada_2012_Reserved_Words): Handle Ada 2012 reserved
6476 words as for other language versions.
6477 * gnat_ugn.texi (-gnatwy): Fix documentation: this switch applies to
6478 Ada 2012, not just Ada 2005.
6479
d941cee6
AC
64802011-08-29 Ed Schonberg <schonberg@adacore.com>
6481
6482 * sem_ch13.adb: Additional semantic checks for aspects involved in
6483 iterators.
6484
64852011-08-29 Matthew Heaney <heaney@adacore.com>
6486
6487 * a-comutr.ads, a-comutr.adb, a-cimutr.ads, a-cimutr.adb,
6488 a-cbmutr.ads, a-cbmutr.adb (Find_In_Subtree): Remove superfluous
6489 Container parameter.
6490 (Ancestor_Find): ditto.
6491
b970af39
TQ
64922011-08-29 Thomas Quinot <quinot@adacore.com>
6493
6494 * par-endh.adb: Minor reformatting.
d941cee6 6495
92db5dee
AC
64962011-08-29 Tristan Gingold <gingold@adacore.com>
6497
6498 * a-exexpr-gcc.adb (Unwind_Action) Rewrite as an integer with constants.
6499 (GNAT_GCC_Exception): Remove N_Cleanups_To_Trigger component.
6500 (Adjust_N_CLeanups_For): Remove.
6501 (CleanupUnwind_Handler): Call Unhandled_Exception_Terminate when end of
6502 stack is reached.
6503 (Propgate_Exception): Adjust.
6504 * raise-gcc.c: Add a few static/const.
6505 (Adjust_N_Cleanups_For): Remove declaration.
6506 (PERSONALITY_FUNCTION): Remove code dealing with N_Cleanups_To_Trigger.
6507
65082011-08-29 Ed Schonberg <schonberg@adacore.com>
6509
6510 * sem_ch8.adb: Use type of function return when rewriting as object
6511 declaration.
6512
1378bf10
AC
65132011-08-29 Gary Dismukes <dismukes@adacore.com>
6514
6515 * sem_type.adb: Minor reformatting.
6516
65172011-08-29 Robert Dewar <dewar@adacore.com>
6518
6519 * makeutl.adb: Minor reformatting.
6520
65212011-08-29 Ed Schonberg <schonberg@adacore.com>
6522
6523 * sem_ch8.adb (Analyze_Object_Renaming): If the renamed object is a
6524 function call of a limited type, the expansion of the renaming is
6525 complicated by the presence of various temporaries and subtypes that
6526 capture constraints of the renamed object.
6527 Rewrite node as an object declaration, whose expansion is simpler.
6528 Given that the object is limited there is no copy involved and no
6529 performance hit.
6530
164e06c6
AC
65312011-08-29 Robert Dewar <dewar@adacore.com>
6532
6533 * exp_ch5.adb, sinfo.ads, make.adb, s-pooglo.adb, sem_ch12.adb,
6534 freeze.adb, sem_ch6.adb, par-ch12.adb: Minor reformatting.
6535
65362011-08-29 Tristan Gingold <gingold@adacore.com>
6537
6538 * system-darwin-x86.ads, system-linux-s390x.ads, system-linux-alpha.ads,
6539 system-tru64.ads, system-irix-n32.ads, system-vxworks-arm.ads,
6540 system-linux-hppa.ads, system-linux-s390.ads,
6541 system-solaris-sparcv9.ads, system-mingw.ads, system-linux-ia64.ads,
6542 system-vms_64.ads, system-vxworks-sparcv9.ads, system-linux-ppc.ads,
6543 system-aix64.ads, system-lynxos-ppc.ads, system-linux-sh4.ads,
6544 system-solaris-x86.ads, system-linux-x86_64.ads, system-linux-x86.ads,
6545 system-vxworks-ppc.ads, system-hpux.ads, system-darwin-ppc.ads,
6546 system-solaris-sparc.ads, system-lynxos-x86.ads,
6547 system-vxworks-m68k.ads, system-hpux-ia64.ads, system-irix-o32.ads,
6548 system-solaris-x86_64.ads, system-mingw-x86_64.ads,
6549 system-vxworks-mips.ads, system-linux-sparc.ads, system-vms-ia64.ads,
6550 system-freebsd-x86.ads, system-aix.ads, system-darwin-x86_64.ads,
7d266442 6551 system-vxworks-x86.ads: Remove GCC_ZCX_Support.
164e06c6
AC
6552 * s-taprop-posix.adb, s-taprop-irix.adb, s-taprop-vxworks.adb,
6553 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb: Ditto.
6554 * opt.ads: Adjust comment.
6555 * targparm.ads, targparm.adb: Remove GCC_ZCX_Support_On_Target.
6556 * gnat1drv.adb: Do not check for GCC_ZCX_Support_On_Target.
6557 * system.ads: Move GCC_ZCX_Support to obsolete entries.
6558
65592011-08-29 Emmanuel Briot <briot@adacore.com>
6560
6561 * makeutl.adb (Do_Complete): Resolve symbolic links when a relative
6562 file name is specified on the gnatmake or gprbuild command line, and
6563 before we search for that file in the project.
6564
65652011-08-29 Ed Schonberg <schonberg@adacore.com>
6566
6567 * sem_type.adb (Within_Instance): New predicate in Collect_Interps,
6568 used to determine whether a possible interpretation for an overloadable
6569 entity is declared within the current instantiation and should be
6570 included in the candidate set.
6571
65722011-08-29 Vasiliy Fofanov <fofanov@adacore.com>
6573
6574 * gnat_rm.texi, gnat_ugn.texi: Clean ups.
6575
97216ca8
ES
65762011-08-29 Ed Schonberg <schonberg@adacore.com>
6577
6578 * sem_res.adb (Resolve_Actuals): Use base type to determine whether an
6579 access subtype is access_to_subprogram, when applying checks for
6580 RM 3.10.2 (27).
6581
d3cb4cc0
AC
65822011-08-29 Matthew Heaney <heaney@adacore.com>
6583
6584 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Splice_Subtree): Only check
6585 for sibling when common parent.
6586
65872011-08-29 Thomas Quinot <quinot@adacore.com>
6588
6589 * get_scos.adb: Literals of Pragma_Id are pragma names prefixed with
6590 "pragma_".
6591
65922011-08-29 Ed Schonberg <schonberg@adacore.com>
6593
6594 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Enable freeze actions
6595 for the return type when in ASIS mode.
6596
65972011-08-29 Vincent Celier <celier@adacore.com>
6598
6599 * make.adb (Gnatmake): Get the default search dirs, then the target
6600 parameters after getting the Builder switches, as the Builder switches
6601 may include --RTS= and that could change the default search dirs.
6602
66032011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6604
6605 * exp_ch7.adb (Make_Adjust_Call): Rewrite to mimic the structure of
6606 Make_Final_Call. Move the processing for class-wide types before the
6607 processing for derivations from [Limited_]Controlled.
6608 (Make_Final_Call): Move the processing for class-wide types before the
6609 processing for derivations from [Limited_]Controlled.
6610 * s-stposu.adb (Allocate_Any_Controlled): Correct the membership check.
6611 Add code to account for alignments larger than the list header. Add a
6612 comment illustrating the structure of the allocated object + padding +
6613 header.
6614 (Deallocate_Any_Controlled): Add code to account for alignments larger
6615 than the list header.
6616
66172011-08-29 Ed Schonberg <schonberg@adacore.com>
6618
6619 * sinfo.ads, sinfo.adb: New node kind
6620 N_Formal_Incomplete_Type_Definition, related flags.
6621 par-ch12.adb (P_Formal_Type_Declaration, G_Formal_Type_Definition):
6622 Parse formal incomplete types.
6623 * sem.adb (Analyze): Formal_Incomplete_Type_Definitions are handled in
6624 sem_ch12.
6625 * sem_ch7.adb (Analyze_Package_Specification, Unit_Requires_Body):
6626 Formal incomplete types do not need completion.
6627 * sem_ch12.adb (Analyze_Formal_Incomplete_Type,
6628 Validate_Incomplete_Type_Instance): New procedures to handle formal
6629 incomplete types.
6630 * freeze.adb (Freeze_Entity): Do not freeze the subtype of an actual
6631 that corresponds to a formal incomplete type.
6632 * sprint.adb: Handle formal incomplete type declarations.
6633 * exp_util.adb (Insert_Actions): An incomplete_type_definition is not
6634 an insertion point.
6635
d3f70b35
AC
66362011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6637
6638 * a-fihema.ads, a-fihema.adb: Unit removed.
6639 * a-undesu.ads, a-undesu.adb: New unit implementing
6640 Ada.Unchecked_Deallocate_Subpool.
6641 * einfo.adb: Remove Associated_Collection from the node usage.
6642 Add Finalization_Master to the node usage.
6643 (Associated_Collection): Removed.
6644 (Finalization_Master): New routine.
6645 (Set_Associated_Collection): Removed.
6646 (Set_Finalization_Master): New routine.
6647 (Write_Field23_Name): Remove Associated_Collection from the output. Add
6648 Finalization_Master to the output.
6649 * einfo.ads: Remove attribute Associated_Collection and its uses in
6650 entities.
6651 Add new attribute Finalization_Master along with its uses in entitites.
6652 (Associated_Collection): Removed along with its pragma import.
6653 (Finalization_Master): New routine along with a pragma import.
6654 (Set_Associated_Collection): Removed along with its pragma import.
6655 (Set_Finalization_Master): New routine along with a pragma import.
6656 * exp_ch3.adb (Expand_Freeze_Array_Type): Replace call to
6657 Build_Finalization_Collection with Build_Finalization_Master.
6658 (Expand_Freeze_Record_Type): Move the generation of Finalize_Address
6659 before the bodies of the predefined routines. Add comment explaining
6660 this. Replace call to Build_Finalization_Collection with
6661 Build_Finalization_Master.
6662 (Freeze_Type): Replace call to Build_Finalization_Collection with
6663 Build_Finalization_Master.
6664 (Make_Finalize_Address_Body): Comment reformatting.
6665 (Make_Predefined_Primitive_Specs): Code reformatting.
6666 (Stream_Operation_OK): Update comment mentioning finalization
6667 collections. Replace RE_Finalization_Collection with
6668 RE_Finalization_Master.
6669 * exp_ch4.adb (Complete_Controlled_Allocation): Replace call to
6670 Associated_Collection with Finalization_Master. Replace call to
6671 Build_Finalization_Collection with Build_Finalization_Master.
6672 (Expand_Allocator_Expression): Replace call to Associated_Collection
6673 with Finalization_Master. Replace call to Set_Associated_Collection with
6674 Set_Finalization_Master. Remove the generation of
6675 Set_Finalize_Address_Ptr.
6676 (Expand_N_Allocator): Replace call to Associated_Collection with
6677 Finalization_Master. Remove the generation of Set_Finalize_Address_Ptr.
6678 * exp_ch6.adb (Add_Collection_Actual_To_Build_In_Place_Call): Renamed to
6679 Add_Finalization_Master_Actual_To_Build_In_Place_Call. Update the
6680 comment on usage. Replace call to Needs_BIP_Collection with
6681 Needs_BIP_Finalization_Master Remplace BIP_Collection with
6682 BIP_Finalization_Master. Update all comments which mention finalization
6683 collections. Replace Associated_Collection with
6684 Finalization_Master. Replace Build_Finalization_Collection with
6685 Build_Finalization_Master.
6686 (BIP_Formal_Suffix): Update BIP_Collection's case.
6687 (Build_Heap_Allocator): Update the related comment. Rename local
6688 variable Collect to Fin_Mas_Id and update its occurrences. Update
6689 comments which mention finalization collections. Replace
6690 Set_Associated_Collection with Set_Finalization_Master.
6691 (Expand_Call): Update the code which detects a special piece of library
6692 code for .NET/JVM.
6693 (Make_Build_In_Place_Call_In_Allocator): Replace the call to
6694 Add_Collection_Actual_To_Build_In_Place_Call with
6695 Add_Finalization_Master_Actual_To_Build_In_Place_Call. Remove the code
6696 which generates a call to Make_Set_Finalize_Address_Ptr_Call.
6697 (Make_Build_In_Place_Call_In_Anonymous_Context): Replace call to
6698 Add_Collection_Actual_To_Build_In_Place_Call with
6699 Add_Finalization_Master_Actual_To_Build_In_Place_Call.
6700 (Make_Build_In_Place_Call_In_Assignment): Replace call to
6701 Add_Collection_Actual_To_Build_In_Place_Call with
6702 Add_Finalization_Master_Actual_To_Build_In_Place_Call.
6703 (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master.
6704 * exp_ch6.ads: Rename BIP_Collection to BIP_Finalization_Master.
6705 (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master.
6706 * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Update comment on usage.
6707 Rename local variable Collect to Fin_Mas_Id and update its occurrences.
6708 Replace call to Set_Associated_Collection with Set_Finalization_Master.
6709 (Build_Finalization_Collection): Renamed to Build_Finalization_Master.
6710 Replace the call to Associated_Collection with Finalization_Master.
6711 Rename local variable Coll_Id to Fin_Mas_Id and update its occurrences.
6712 Update the way finalization master names are generated. Update the
6713 retrieval of the correct access type which will carry the pool and
6714 master attributes.
6715 (Make_Final_Call): Reimplement the way [Deep_]Finalize is retrieved.
6716 (Make_Finalize_Address_Body): Abstract types do not need
6717 Finalize_Address. Code reformatting.
6718 (Make_Finalize_Address_Stmts): Update comment on usage.
6719 (Make_Set_Finalize_Address_Ptr_Call): Removed.
6720 (Process_Declarations): Update comments.
6721 * exp_ch7.ads (Build_Finalization_Collection): Renamed to
6722 Build_Finalization_Master. Update associated comment.
6723 (Make_Set_Finalize_Address_Ptr_Call): Removed.
6724 * exp_ch13.adb: Update comments which mention finalization collections.
6725 (Expand_N_Free_Statement): Replace the call to Associated_Collection
6726 with Finalization_Master.
6727 * exp_util.adb (Build_Allocate_Deallocate_Proc): Reimplemented to
6728 create calls to routines Allocate_Any_Controlled and
6729 Deallocate_Any_Controlled.
6730 (Find_Finalize_Address): New routine.
6731 (Is_Allocate_Deallocate_Proc): Update the RTE entities used in the
6732 comparison.
6733 (Requires_Cleanup_Actions): Update the comment on freeze node
6734 inspection.
6735 * exp_util.ads: Remove comment on generated code for
6736 Build_Allocate_Deallocate_Proc. The code is now quite complex and it
6737 is better to simply look in the body.
6738 * freeze.adb (Freeze_All): Update the comment of finalization
6739 collections. Replace the call to Associated_Collection with
6740 Finalization_Master. Replace the call to Build_Finalization_Collection
6741 with Build_Finalization_Master.
6742 * impunit.adb: Add a-undesu and s-stposu to the list of units.
6743 * Makefile.rtl: Add files a-undesu, s-finmas and s-stposu. Remove file
6744 a-fihema.
6745 * rtsfind.adb (Get_Unit_Name): Remove the processing for children of
6746 Ada.Finalization. Add processing for children of System.Storage_Pools.
6747 * rtsfind.ads: Remove the naming of second level children of
6748 Ada.Finalization.
6749 Remove Ada_Finalization_Heap_Management from the list of units.
6750 Remove subtype Ada_Finalization_Child.
6751 Remove the following subprogram entities:
6752
6753 RE_Allocate
6754 RE_Deallocate
6755 RE_Finalization_Collection
6756 RE_Finalization_Collection_Ptr
6757 RE_Set_Finalize_Address_Ptr
6758
6759 Add the naming of second level children of System.Storage_Pools.
6760 Add System_Finalization_Masters and System_Storage_Pools_Subpools to
6761 the list of units.
6762 Add subtype System_Storage_Pools_Child.
6763 Add the following subprogram entities to System.Finalization_Masters:
6764
6765 RE_Finalization_Master
6766 RE_Finalization_Master_Ptr
6767
6768 Add the following subprogram entities to System.Storage_Pools.Subpools:
6769
6770 RE_Allocate_Any_Controlled
6771 RE_Deallocate_Any_Controlled
6772 RE_Root_Storage_Pool_With_Subpools
6773 RE_Root_Subpool
6774 RE_Subpool_Handle
6775
6776 Move the following subprogram entities from
6777 Ada.Finalization.Heap_Management to System.Finalization_Masters:
6778
6779 RE_Add_Offset_To_Address
6780 RE_Attach
6781 RE_Base_Pool
6782 RE_Detach
6783
6784 * sem_ch3.adb (Access_Type_Declaration): Replace the call to
6785 Set_Associated_Collection with Set_Finalization_Master.
6786 * sem_ch6.adb (Create_Extra_Formals): Update the way extra formal
6787 BIP_Finalization_Master is created.
6788 * s-finmas.adb: New unit System.Finalization_Masters.
6789 * s-finmas.ads: New unit System.Finalization_Masters.
6790 * s-stopoo.ads, s-stopoo.adb: Minor code reformatting.
6791 * s-stposu.ads, s-stposu.adb: New unit implementing
6792 System.Storage_Pools.Subpools.
6793
67942011-08-29 Bob Duff <duff@adacore.com>
6795
6796 * tbuild.adb: Add assertion.
6797
8c889ae4
AC
67982011-08-29 Thomas Quinot <quinot@adacore.com>
6799
6800 * s-pooglo.adb: Minor reformatting.
6801
68022011-08-29 Ed Schonberg <schonberg@adacore.com>
6803
6804 * exp_ch5.adb (Expand_N_Assignment_Statement): if the left-hand side is
6805 an indexed component of a packed array whose element type is a record
6806 with a representation clause different from that of the right-hand
6807 side, generate a temporary to minimuze the number of bit-field
6808 operations generated.
6809
68102011-08-29 Ed Schonberg <schonberg@adacore.com>
6811
6812 * exp_util.adb (Insert_Actions): Use clauses can be part of lists of
6813 declarations, and thus are likely insertion points for actions.
6814
68152011-08-29 Bob Duff <duff@adacore.com>
6816
6817 * einfo.ads: Minor comment fix.
6818
1a07a71a
AC
68192011-08-29 Robert Dewar <dewar@adacore.com>
6820
6821 * frontend.adb, gnat1drv.adb: Minor reformatting.
6822
68232011-08-29 Tristan Gingold <gingold@adacore.com>
6824
6825 * s-pooglo.adb (Allocate, Deallocate): Take into account the alignment.
6826 * a-fihema.adb (Allocate, Deallocate): Ditto. Possibly add padding
6827 space in front of the header.
6828
4bcd6411
JK
68292011-08-29 Johannes Kanig <kanig@adacore.com>
6830
6831 * frontend.adb (Frontend): Exit after creating Standard package when
6832 -gnatd.H is present.
6833 * gnat1drv.adb (Gnat1drv): Call Backend right away when -gnatd.H is
6834 present.
6835
f0f88eb6
RD
68362011-08-29 Robert Dewar <dewar@adacore.com>
6837
6838 * exp_ch9.adb, mlib-prj.adb, prj.adb, prj.ads, ttypes.ads, sem_ch4.adb,
6839 makeutl.adb, makeutl.ads, atree.ads, snames.adb-tmpl,
6840 snames.ads-tmpl: Minor reformatting.
6841
3e37be71
PG
68422011-08-29 Philippe Gil <gil@adacore.com>
6843
6844 * prj.adb (Reset_Units_In_Table): New procedure.
6845 Reset units to avoid access to freed memory.
6846
94fb7608
AC
68472011-08-29 Thomas Quinot <quinot@adacore.com>
6848
6849 * get_scos.adb: When reading a P statement SCO without a pragma name
6850 (from an older ALI file), ensure that the Pragma_Name component is set
6851 to Unknown_Pragma (not left uninitialized).
6852
68532011-08-29 Vincent Celier <celier@adacore.com>
6854
6855 * makeutl.adb (Get_Directories): New procedure moved from Buildgpr and
6856 modified to compute correctly the object path of a SAL project that is
6857 extending another library project.
6858 (Write_Path_File): New procedure.
6859 * makeutl.ads (Directories): New table moved from Buildgpr
6860 (Get_Directories): New procedure moved from Buildgpr
6861 (Write_Path_File): New procedure
6862 * mlib-prj.adb (Build_Library): Use Makeutl.Get_Directories to set the
6863 paths before binding SALs, instead of Set_Ada_Paths.
6864 * prj-env.adb (Set_Path_File_Var): Procedure has been moved to package
6865 Prj.
6866 * prj.adb (Set_Path_File_Var): New procedure moved from Prj.Env
6867 (Current_Source_Path_File_Of): New function
6868 (Set_Current_Object_Path_File_Of): New procedure
6869 (Current_Source_Object_File_Of): New function
6870 (Set_Current_Object_Path_File_Of): New procedure
6871 * prj.ads (Set_Path_File_Var): New procedure moved from Prj.Env
6872 (Current_Source_Path_File_Of): New function
6873 (Set_Current_Object_Path_File_Of): New procedure
6874 (Current_Source_Object_File_Of): New function
6875 (Set_Current_Object_Path_File_Of): New procedure
6876
68772011-08-29 Ed Schonberg <schonberg@adacore.com>
6878
6879 * exp_ch5.adb (Expand_N_Assignment_Statement): For an assignment to a
6880 packed entity, use a bit-field assignment only if there is no change of
6881 representation.
6882
c5ecd6b7
AC
68832011-08-29 Thomas Quinot <quinot@adacore.com>
6884
6885 * rtsfind.ads, exp_ch3.adb (In_Runtime): Minor code improvement, use
6886 Is_RTU instead of using Chars comparisons.
6887
68882011-08-29 Thomas Quinot <quinot@adacore.com>
6889
6890 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do not create a
6891 temporary object if the actual is constrained, and the discriminants
6892 read from the stream don't match.
6893
68942011-08-29 Tristan Gingold <gingold@adacore.com>
6895
6896 * sem_attr.adb, exp_attr.adb: Add handling of
6897 Attribute_System_Allocator_Alignment
6898 * snames.ads-tmpl: Add Name_System_Allocator_Alignment and
6899 Attribute_System_Allocator_Alignment.
6900 * ttypes.ads, get_targ.ads: Add Get_System_Allocator_Alignment.
6901 * gcc-interface/targtyps.c, gcc-interface/utils2.c,
6902 gcc-interface/gigi.h: Renames get_target_default_allocator_alignment to
6903 get_target_system_allocator_alignment.
6904
69052011-08-29 Arnaud Charlet <charlet@adacore.com>
6906
6907 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
6908 dependencies.
6909
8abdac29
AC
69102011-08-29 Arnaud Charlet <charlet@adacore.com>
6911
6912 * exp_ch3.adb (In_Runtime): Fix typo.
6913
df170605
AC
69142011-08-29 Bob Duff <duff@adacore.com>
6915
6916 * sem_ch4.adb (Analyze_Allocator): Analyze the subpool specification.
6917
69182011-08-29 Ed Schonberg <schonberg@adacore.com>
6919
6920 * exp_ch3.adb (Expand_N_Object_Declaration): If the entity is tagged
6921 and a separate tag assignment is generated, ensure that the tag
6922 assignment is analyzed.
6923
864a4236
ES
69242011-08-29 Ed Schonberg <schonberg@adacore.com>
6925
6926 * atree.ads, atree.adb (Copy_Separate_List): New function that applies
6927 Copy_Separate_Tree to a list of nodes. Used to create disjoint copies
6928 of statement lists that may contain local declarations.
df170605
AC
6929 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Use Copy_Separate_List to
6930 duplicate the triggering statements needed for the expansion of this
6931 construct, when the trigger is a dispatching call to a synchronized
6932 primitive.
864a4236 6933
7f394c1d
AC
69342011-08-29 Arnaud Charlet <charlet@adacore.com>
6935
6936 * gnat_rm.texi: Add doc for 'Elab_Subp_Body.
6937 * bindgen.adb: Add comments.
6938 * snames.adb-tmpl (Is_Attribute_Name): Only recognize 'Elab_Subp_Body
6939 in CodePeer mode.
6940
2c1a2cf3
RD
69412011-08-29 Robert Dewar <dewar@adacore.com>
6942
6943 * exp_attr.adb: Minor reformatting.
6944 Minor code reorganization and commenting.
6945 * par_sco.adb, checks.adb, sem_attr.adb, get_scos.adb: Minor
6946 reformatting.
6947
0bfc9a64
AC
69482011-08-29 Thomas Quinot <quinot@adacore.com>
6949
6950 * get_scos.adb: Ignore chaining indicators not currently supported
6951 by Ada.
6952
69532011-08-29 Arnaud Charlet <charlet@adacore.com>
6954
6955 * system.ads: Minor editing.
6956
69572011-08-29 Arnaud Charlet <charlet@adacore.com>
6958
6959 * bindgen.adb (Gen_Elab_Calls): Generate calls to subp'Elab_Subp_Body in
6960 CodePeer mode.
6961 * sem_attr.ads, sem_attr.adb, exp_Attr.adb, sem_ch6.adb: Add handling of
6962 Attribute_Elab_Subp_Body.
6963 * snames.ads-tmpl (Attribute_Elab_Subp_Body, Name_Elab_Subp_Body): New.
6964 * sem_util.adb: Update comments.
6965
828d4cf0
TQ
69662011-08-29 Thomas Quinot <quinot@adacore.com>
6967
6968 * par_sco.adb, scos.adb, scos.ads, put_scos.adb, get_scos.adb: Record
6969 pragma name for each SCO statement corresponding to a pragma.
6970
5cd7bb15
AC
69712011-08-29 Arnaud Charlet <charlet@adacore.com>
6972
6973 * opt.ads: Minor editing.
6974
69752011-08-29 Yannick Moy <moy@adacore.com>
6976
6977 * gnat1drv.adb (Adjust_Global_Switches): Remove options for ALFA mode
6978 that only made sense for CodePeer mode.
6979
69802011-08-29 Jose Ruiz <ruiz@adacore.com>
6981
6982 * targparm.ads (Support_64_Bit_Divides_On_Target): Remove this flag
6983 which is no longer used.
6984 * targparm.adb (S64, S64_Str, Get_Target_Parameters): Remove the
6985 handling of the 64-bit division check.
6986 * exp_ch4.adb (Expand_N_Op_Divide): Remove the check for 64-bit
6987 division available.
6988 * system*.ads (Support_64_Bit_Divides): Remove this flag which is no
6989 longer used.
6990
69912011-08-29 Thomas Quinot <quinot@adacore.com>
6992
6993 * get_scos.adb: Minor reformatting.
6994
25b589cb
AC
69952011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6996
6997 * exp_util.adb (Process_Statements_For_Controlled_Objects): Whenever a
6998 statement list is wrapped in a block, the block is explicitly analyzed
6999 in order to properly redecorate the entities and create a servicing
7000 finalizer.
7001
70022011-08-29 Tristan Gingold <gingold@adacore.com>
7003
7004 * sinfo.ads, sinfo.adb (Zero_Cost_Handling): Remove.
7005 (Set_Zero_Cost_Handling): Remove.
7006
70072011-08-29 Thomas Quinot <quinot@adacore.com>
7008
7009 * par_sco.adb, scos.ads, put_scos.adb, get_scos.adb: Minor reformatting
7010
1197ddb1
AC
70112011-08-29 Geert Bosch <bosch@adacore.com>
7012
7013 * s-vaflop-vms-alpha.adb (Neg_F): Use subtraction instead of negation
7014 instruction, as the latter may produce -0.0, which is not a valid VAX
7015 F float number.
7016 (Neg_G): Likewise for VAX F float.
7017
70182011-08-29 Robert Dewar <dewar@adacore.com>
7019
7020 * exp_util.adb: Minor reformatting.
7021
70222011-08-29 Yannick Moy <moy@adacore.com>
7023
7024 * sem_ch3.adb: Minor comment update.
7025
70262011-08-29 Thomas Quinot <quinot@adacore.com>
7027
7028 * checks.adb (Apply_Type_Conversion_Checks): Use the Underlying_Type of
7029 the operand type.
7030
70312011-08-29 Thomas Quinot <quinot@adacore.com>
7032
7033 * par_sco.adb (Traverse_Declarations_Or_Statements): Do not flush
7034 current statement sequence on a generic instantiation or a subprogram
7035 declaration.
7036
8f66cda7
AC
70372011-08-29 Robert Dewar <dewar@adacore.com>
7038
7039 * sem_type.adb, einfo.ads, freeze.adb, exp_ch4.adb, sem_ch13.adb:
7040 Minor reformatting.
7041
70422011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
7043
7044 * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)):
7045 Correct the check which involves the freeze node of a controlled or
7046 access-to-controlled type.
7047
70482011-08-29 Geert Bosch <bosch@adacore.com>
7049
7050 * sem_warn.adb (Check_Code_Statement): Remove check for consecutive Asm
7051 statements.
7052 * s-vaflop-vms-alpha.adb: Remove bogus Volatile => True arguments from
7053 Asm statements.
7054
cf161d66
AC
70552011-08-29 Yannick Moy <moy@adacore.com>
7056
7057 * sem_ch3.adb (Array_Type_Declaration): Insert a subtype declaration
7058 for every index type and component type that is not a subtype_mark.
7059 (Process_Subtype): Set Etype of subtype.
7060
70612011-08-29 Robert Dewar <dewar@adacore.com>
7062
7063 * a-cbmutr.adb, a-cimutr.adb, a-comutr.adb, prj-nmsc.adb: Minor code
7064 reorganization. Minor reformatting.
7065
7cc83cd8
AC
70662011-08-29 Steve Baird <baird@adacore.com>
7067
7068 * exp_ch4.adb (Expand_N_Op_Expon): Suppress N_Op_Expon node expansion
7069 for CodePeer and ALFA modes.
7070
70712011-08-29 Ed Schonberg <schonberg@adacore.com>
7072
7073 * sem_type.adb (Collect_Interps): Within an instance, collect a homonym
7074 that comes from an enclosing scope if it is not the renaming of an
7075 actual, to handle properly a spurious ambiguity in an instance.
7076
76af4137
AC
70772011-08-29 Eric Botcazou <ebotcazou@adacore.com>
7078
7079 * sem_ch13.adb (Alignment_Check_For_Esize_Change): Rename to...
7080 (Alignment_Check_For_Size_Change): ...this. Add SIZE parameter and
7081 use it instead of the Esize of the first parameter.
7082 (Analyze_Attribute_Definition_Clause) <Object_Size>: Adjust call to
7083 above change.
7084 <Size>: Likewise. Call it for composite types on the RM size.
7085
70862011-08-29 Yannick Moy <moy@adacore.com>
7087
7088 * exp_ch4.adb (Expand_N_Op_Not): Do not expand not on array.
7089 * sem_util.adb (Unique_Name): Correct behaviour for names of
7090 compilation units.
7091
9b20e59b
AC
70922011-08-29 Yannick Moy <moy@adacore.com>
7093
7094 * sem_prag.adb (Check_Precondition_Postcondition): In formal
7095 verification mode, analyze pragma expression for correctness, for
7096 pre/post on library-level subprogram, as it is not expanded later.
7097
70982011-08-29 Yannick Moy <moy@adacore.com>
7099
7100 * exp_aggr.adb (Expand_Array_Aggregate): Do not expand array aggregates
7101 in formal verification.
7102
71032011-08-29 Thomas Quinot <quinot@adacore.com>
7104
7105 * sem_util.adb: Minor reformatting.
7106 * freeze.adb, sem_ch13.adb: Fix comment: Bit_Order is an attribute,
7107 there's no pragma.
7108 * par_sco.ads, par_sco.adb: Update comments.
7109
71102011-08-29 Yannick Moy <moy@adacore.com>
7111
7112 * einfo.adb, einfo.ads: Remove flag Is_Postcondition_Proc and
7113 associated getter/setter.
7114 * sem_ch6.adb: Remove reference to Is_Postcondition_Proc.
7115
71162011-08-29 Vincent Celier <celier@adacore.com>
7117
7118 * prj-attr.adb: New Compiler attribute Dependency_Kind and Language_Kind
7119 * prj-conf.adb: Add_Default_GNAT_Naming_Scheme: Add a package Compiler
7120 with declarations for Language_Kind and Dependency_Kind for Ada.
7121 * prj-nmsc.adb (Check_Unit_Name): New name of procedure Check_Ada_Name
7122 (Process_Compiler): Take into account the new attributes Dependency_Kind
7123 and Language_Kind.
7124 (Check_Configuration): Check if language kind is unit based, not if the
7125 language name is Ada.
7126 (Process_Exceptions_Unit_Based): Ditto
7127 (Add_Language): Remove default additions of language and dependency kind
7128 * prj.ads: Minor comment change
7129 * snames.ads-tmpl: New standard names Dependency_Kind and Language_Kind
7130
71312011-08-29 Johannes Kanig <kanig@adacore.com>
7132
7133 * debug.adb: Update comments.
7134
c5bc3df6
JM
71352011-08-24 Joseph Myers <joseph@codesourcery.com>
7136
7137 * gcc-interface/Make-lang.in (CFLAGS-ada/tracebak.o)
7138 (CFLAGS-ada/targext.o, CFLAGS-ada/cio.o, CFLAGS-ada/init.o)
7139 (CFLAGS-ada/initialize.o, CFLAGS-ada/raise.o): New.
7140 (ada/tracebak.o, ada/targext.o, ada/cio.o, ada/init.o)
7141 (ada/initialize.o, ada/raise.o): Remove explicit compilation rules.
7142
e3aa9eba
RO
71432011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7144
7145 * gcc-interface/Makefile.in (PICFLAG_FOR_TARGET): New.
7146 (GNATLIBCFLAGS_FOR_C): Replace
7147 TARGET_LIBGCC2_CFLAGS by PICFLAG_FOR_TARGET.
7148 (gnatlib-shared-default, gnatlib-shared-dual-win32)
7149 (gnatlib-shared-win32, gnatlib-shared-darwin, gnatlib-shared)
7150 (gnatlib-sjlj, gnatlib-zcx): Likewise.
7151
f446d60e
EB
71522011-08-07 Eric Botcazou <ebotcazou@adacore.com>
7153
7154 * gcc-interface/Makefile.in (raise-gcc.o): Fix previous change.
7155
588c8f48
EB
7156 * gcc-interface/gigi.h (enumerate_modes): Fix formatting.
7157
7158 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Revert latest change.
7159
28d711bf
NR
71602011-08-05 Nicolas Roche <roche@adacore.com>
7161
7162 * gcc-interface/Makefile.in: Don't use directly ../xgcc to build shared
7163 libgnat. Use rather the value of GCC_FOR_TARGET. Fix issue with
7164 canadian cross.
7165 * gcc-interface/Make-lang.in: Add support for canadian cross setting.
7166
993f8920
AC
71672011-08-05 Matthew Heaney <heaney@adacore.com>
7168
7169 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Child_Count, Child_Depth):
7170 subprogram bodies declared out-of-order.
7171
71722011-08-05 Yannick Moy <moy@adacore.com>
7173
7174 * sem_util.adb (Unique_Name): only prefix with "standard" the names of
7175 entities directly in package Standard, otherwise skip the standard
7176 prefix.
7177
9b3956dd
RD
71782011-08-05 Robert Dewar <dewar@adacore.com>
7179
7180 * a-cbmutr.adb: Minor reformatting
7181 (Allocate_Node): refactor node allocation algorithm
7182
71832011-08-05 Robert Dewar <dewar@adacore.com>
7184
7185 * opt.ads, opt.adb (Debug_Pragmas_Disabled): New switch.
7186 * sem_prag.adb (Analyze_Pragma, case Debug_Policy): Implement Disable
7187 mode.
7188 (Analyze_Pragma, case Check_Policy): Ditto.
7189 * sem_prag.ads (Check_Disabled): New function
7190 * snames.ads-tmpl: Add Name_Disable.
7191
71922011-08-05 Robert Dewar <dewar@adacore.com>
7193
7194 * gnat_rm.texi: Document implementation-defined policy DISABLE for
7195 pragmas Assertion_Policy, Check_Policy, Debug_Policy.
7196
79e705d6
AC
71972011-08-05 Ed Schonberg <schonberg@adacore.com>
7198
7199 * sem_prag.adb (Analyze_Pragma, case Inline): reject an Inline pragma
7200 that appears in a generic formal part and applies to a formal
7201 subprogram.
7202
72032011-08-05 Robert Dewar <dewar@adacore.com>
7204
7205 * a-cbmutr.ads: Minor reformatting.
7206
23b6deca
AC
72072011-08-05 Matthew Heaney <heaney@adacore.com>
7208
7209 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Read): do not use T'Valid
7210 to check count, check sign of value instead.
7211 * a-comutr.adb, a-cimutr.adb (Write): return immediately if tree empty
7212 (Copy_Subtree): allocate copy of source element
7213 (Equal_Subtree): compare elements, not access objects
7214
72152011-08-05 Vincent Celier <celier@adacore.com>
7216
7217 * gnat_ugn.texi: Fix VMS alternative.
7218
a2773bd3
AC
72192011-08-05 Thomas Quinot <quinot@adacore.com>
7220
7221 * sem_ch11.adb: Add comment.
7222
72232011-08-05 Robert Dewar <dewar@adacore.com>
7224
7225 * exp_util.adb: Minor comment fix.
7226
72272011-08-05 Robert Dewar <dewar@adacore.com>
7228
7229 * scng.adb (Error_Unterminated_String): Improve flag position when
7230 comma present.
7231
72322011-08-05 Matthew Heaney <heaney@adacore.com>
7233
7234 * Makefile.rtl, impunit.adb: Added a-cbmutr.ad[sb] (bounded multiway
7235 tree containers).
7236 * a-cbmutr.ads, a-cbmutr.adb: This is the new Ada 2012 unit for bounded
7237 multiway tree containers.
7238
72392011-08-05 Robert Dewar <dewar@adacore.com>
7240
7241 * styleg.adb (Check_Comment): Implement comment spacing of 1 or 2
7242 * stylesw.adb: Implement -gnatyC to control comment spacing
7243 * stylesw.ads (Style_Check_Comments_Spacing): New switch (set by
7244 -gnatyc/C).
7245 * usage.adb: Add line for -gnatyC.
7246
72472011-08-05 Robert Dewar <dewar@adacore.com>
7248
f446d60e 7249 * gnat_ugn.texi: Document -gnatyC.
a2773bd3
AC
7250 * vms_data.ads: Implement COMMENTS1/COMMENTS2 (retaining COMMENTS as a
7251 synonym for COMMENTS2).
7252
dedac3eb
RD
72532011-08-05 Robert Dewar <dewar@adacore.com>
7254
7255 * par_sco.adb, sem_ch3.adb, scos.ads, a-iteint.ads, sem_ch12.adb,
7256 a-cimutr.adb, a-cimutr.ads, sem_util.ads, sem_res.adb, a-fihema.adb,
7257 sem_ch4.adb, lib-xref-alfa.adb, exp_disp.adb, a-comutr.adb,
7258 a-comutr.ads, lib-xref.adb: Minor reformatting.
7259
72602011-08-05 Robert Dewar <dewar@adacore.com>
7261
7262 * sem_ch11.adb (Analyze_Raise_Statement): Kill assignment to formal
7263 warning if there is an exception handler present.
7264
7c62a85a
AC
72652011-08-05 Pascal Obry <obry@adacore.com>
7266
7267 * a-iteint.ads: Fix copyright year.
7268
72692011-08-05 Thomas Quinot <quinot@adacore.com>
7270
7271 * par_sco.adb (Traverse_Declarations_Or_Statements): Do not generate a
7272 statement SCO for a USE clause or a representation clause.
7273
72742011-08-05 Yannick Moy <moy@adacore.com>
7275
7276 * lib-xref-alfa.adb (Collect_ALFA): generate the proper relation
7277 between body and spec for stub.
7278 (Detect_And_Add_ALFA_Scope): take into account subprogram stub
7279 * lib-xref.adb (Enclosing_Subprogram_Or_Package): in the case of a
7280 pragma precondition or postcondition, for which the enclosing
7281 subprogram or package in the AST is not the desired one, return empty.
7282
e49208a9
AC
72832011-08-05 Thomas Quinot <quinot@adacore.com>
7284
7285 * g-expect.adb: Minor reformatting.
7286
72872011-08-05 Bob Duff <duff@adacore.com>
7288
7289 * a-fihema.adb: Comment out OS_Lib.
7290
72912011-08-05 Matthew Heaney <heaney@adacore.com>
7292
7293 * Makefile.rtl, impunit.adb: Added a-c[oi]mutr.ad[sb]
7294 (unbounded multiway tree containers) and a-iteint.ads.
7295 * a-comutr.ads, a-comutr.adb:
7296 This is the new Ada 2012 unit for unbounded multiway tree containers
7297 * a-cimutr.ads, a-cimutr.adb
7298 This is the new Ada 2012 unit for indefinite multiway tree containers
7299 * a-iteint.ads: New file.
7300
201cdb74
RO
73012011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7302
f446d60e 7303 * gcc-interface/Makefile.in (raise-gcc.o): Search $(srcdir)/../libgcc.
201cdb74 7304
d50f4827
AC
73052011-08-05 Bob Duff <duff@adacore.com>
7306
7307 * sinfo.ads, sinfo.adb (Subpool_Handle_Name): New attribute for
7308 subpools.
7309 * par-ch4.adb (P_Allocator): Parse new subpool specification syntax.
7310
73112011-08-05 Ed Schonberg <schonberg@adacore.com>
7312
7313 * sem_ch4.adb (Try_Container_Indexing): New procedure to implement the
7314 general indexing aspects of Ada2012. Called when analyzing indexed
7315 components when other interpretations fail.
7316 * sem_ch8.adb (Find_Direct_Name): check for implicit dereference only
7317 in an expression context where overloading is meaningful. This excludes
7318 the occurrence in an aspect specification (efficiency only).
7319 * sem_attr.adb (Analyze_Attribute): indicate that the attributes
7320 related to iterators can be set by an attribute specification, but
7321 cannot be queried.
7322 * sem_ch13.adb (Analyze_Aspect_Specifications): handle
7323 Constant_Indexing and Variable_Indexing.
7324 (Check_Indexing_Functions): New procedure to perform legality checks.
7325 Additional semantic checks at end of declarations.
7326
efe05dfc
AC
73272011-08-05 Sergey Rybin <rybin@adacore.com>
7328
7329 * tree_io.ads: Update ASIS_Version_Number because of the change of the
7330 order of calling Tree_Write/Tree_Read routines made for aspects.
7331
73322011-08-05 Bob Duff <duff@adacore.com>
7333
7334 * a-fihema.adb (Finalize): Fix race condition.
7335
5f9cdefe
AC
73362011-08-05 Yannick Moy <moy@adacore.com>
7337
7338 * sem_ch12.adb (Analyze_Package_Instantiation,
7339 Need_Subprogram_Instance_Body): do not generate instance bodies in ALFA
7340 mode.
7341
73422011-08-05 Ed Schonberg <schonberg@adacore.com>
7343
7344 * sem_type.adb (Specific_Type): in an instance, the type-specific
7345 operand of an equality check that involves null may have a private
7346 type. Use full view to determine legality of construct.
7347
822868aa
AC
73482011-08-05 Vincent Celier <celier@adacore.com>
7349
7350 * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to
7351 delete or close the file when the call to gnatmake was successful.
7352
73532011-08-05 Yannick Moy <moy@adacore.com>
7354
7355 * gnat1drv.adb (Adjust_Global_Switches): in ALFA mode, set
7356 Global_Discard_Names.
7357
73582011-08-05 Ed Schonberg <schonberg@adacore.com>
7359
7360 * sinfo.ads: comments on use of entity field for aspect specifications.
7361
73622011-08-05 Ed Schonberg <schonberg@adacore.com>
7363
7364 * sem_ch12.adb (Reset_Entity): If the entity field of the associated
7365 node is not itself an entity but a selected component, it is a
7366 rewritten parameterless call to an en enclosing synchronized operation,
7367 and this expansion will be performed again in the instance, so there is
7368 no global information to preserve.
7369
44a10091
AC
73702011-08-05 Javier Miranda <miranda@adacore.com>
7371
7372 * exp_disp.adb (Set_All_DT_Position): Cleanup code and improve support
7373 for renamings of predefined primitives.
7374 (In_Predef_Prims_DT): New subprogram.
7375
73762011-08-05 Ed Schonberg <schonberg@adacore.com>
7377
7378 * sem_util.adb, sem_util.ads (Check_Implicit_Dereference): If a
7379 possible interpretation of name is a reference type, add an
7380 interpretation that is the designated type of the reference
7381 discriminant of that type.
7382 * sem_res.adb (resolve): If the interpretation imposed by context is an
7383 implicit dereference, rewrite the node as the deference of the
7384 reference discriminant.
7385 * sem_ch3.adb (Analyze_Subtype_Declaration, Build_Derived_Record_Type,
7386 Build_Discriminated_Subtype): Inherit Has_Implicit_Dereference from
7387 parent type or base type.
7388 * sem_ch4.adb (Process_Indexed_Component,
7389 Process_Overloaded_Indexed_Component, Indicate_Name_And_Type,
7390 Analyze_Overloaded_Selected_Component, Analyze_Selected_Component):
7391 Check for implicit dereference.
7392 (List_Operand_Interps): Indicate when an implicit dereference is
7393 ambiguous.
7394 * sem_ch8.adb (Find_Direct_Name): Check for implicit dereference.
7395
73962011-08-05 Thomas Quinot <quinot@adacore.com>
7397
7398 * scos.ads: Update documentation of SCO table. Pragma statements can now
7399 be marked as disabled (using 'p' instead of 'P' as the statement kind).
7400 * par_sco.ads, par_sco.adb: Implement the above change.
7401 (Process_Decisions_Defer): Generate a P decision for the first parameter
7402 of a dyadic pragma Debug.
7403 * sem_prag.adb (Analyze_Pragma, case Debug): Mark pragma as enabled if
7404 necessary.
7405 * put_scos.adb: Code simplification based on above change.
7406
bb3c784c
AC
74072011-08-05 Robert Dewar <dewar@adacore.com>
7408
7409 * sem_ch3.adb, gnatcmd.adb, switch-c.adb, exp_attr.adb, make.adb,
7410 bindgen.adb, einfo.adb, sem_ch12.adb, sem_attr.adb, a-fihema.adb,
7411 a-fihema.ads, sem_elab.adb, sem_elab.ads, aspects.adb, opt.ads,
7412 prj-conf.adb, sem_ch13.adb, s-ficobl.ads: Minor reformatting
7413
74142011-08-05 Bob Duff <duff@adacore.com>
7415
7416 * a-stunau.ads, g-spipat.adb: Update comments.
7417
36f686f9
BD
74182011-08-05 Bob Duff <duff@adacore.com>
7419
7420 * a-fihema.ads: Minor comment fix.
7421 * a-fihema.adb (Allocate, Deallocate): Assert that the alignment is
7422 correct.
7423 (Attach, Detach): Remove some unnecessary code.
7424 (Finalize): Remove Node_Ptr_To_Address, replace with a constant.
7425
7882673f
BD
74262011-08-05 Bob Duff <duff@adacore.com>
7427
7428 * a-fihema.ads, a-fihema.adb (Finalization_Collection): Avoid heap
7429 allocation for Objects component. This simplifies the code somewhat. It
7430 is also a little more efficient in the not-so-unusual case where there
7431 are no controlled objects allocated.
7432 Make Finalization_Started flag atomic.
7433 (Finalize): Avoid unnecessary detachment of items from the list.
7434 (pcol): Minor cleanup.
7435
d34cd274
AC
74362011-08-05 Ed Schonberg <schonberg@adacore.com>
7437
7438 * sem_ch12.adb (Analyze_Formal_Package_Declaration): reject a formal
7439 package whose name is the same as that of the generic unit, or its
7440 ultimate prefix.
7441
74422011-08-05 Bob Duff <duff@adacore.com>
7443
7444 * a-fihema.adb, a-fihema.ads: Minor comment improvements.
7445 * sem_ch3.adb, exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb:
7446 Minor comment fixes.
7447
00332244
AC
74482011-08-05 Arnaud Charlet <charlet@adacore.com>
7449
7450 * make.adb (Linking_Phase): No longer need to set source search path
7451 before calling gnatlink in CodePeer mode.
7452 * gnatlink.adb (Gnatlink): No longer pass -gnat83/95/05/12 switch to
7453 gcc in CodePeer mode, since the binder generated file no longer has a
7454 'with Main'.
7455 * switch.ads, switch.adb (Is_Language_Switch): Removed.
7456 * switch-c.adb: Update comment.
7457
74582011-08-05 Thomas Quinot <quinot@adacore.com>
7459
7460 * exp_strm.adb, bindgen.adb, s-ficobl.ads: Minor reformatting.
7461
74622011-08-05 Nicolas Roche <roche@adacore.com>
7463
7464 * gnat_ugn.texi: Fix minor syntax error issue.
7465
74662011-08-05 Vincent Celier <celier@adacore.com>
7467
7468 * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to
7469 delete or close the file when the call to gnatmake returns a non
7470 successful return code.
7471
74722011-08-05 Ed Schonberg <schonberg@adacore.com>
7473
7474 * exp_ch4.adb (Expand_N_Type_Conversion): When expanding a predicate
7475 check, indicate that the copy of the original node does not come from
7476 source, to prevent an infinite recursion of the expansion.
7477
74782011-08-05 Johannes Kanig <kanig@adacore.com>
7479
7480 * debug.adb: document switch -gnatd.G for gnat2why, which deactivates
7481 VC generation for subprogram bodies.
7482
74832011-08-05 Yannick Moy <moy@adacore.com>
7484
7485 * einfo.ads: Typo.
7486 * sem_ch3.adb (Signed_Integer_Type_Declaration): in ALFA mode, define
7487 the base type with the smallest allowed base type.
7488
74892011-08-05 Sergey Rybin <rybin@adacore.com>
7490
7491 * tree_gen.adb, tree_in.adb, aspects.adb: Fix tree read-write for
7492 aspects.
7493
74942011-08-05 Ed Schonberg <schonberg@adacore.com>
7495
7496 * sem_ch12.ads: minor comment updates.
7497
74982011-08-05 Ed Schonberg <schonberg@adacore.com>
7499
7500 * sem_ch12.adb (Analyze_Formal_Package_Declaration): in an
7501 instantiation and a formal package the compiler generates a package
7502 renaming declaration so that the generic name within the declaration
7503 is interpreted as a renaming of the instance. At the end of a formal
7504 package declaration, this renaming must become invisible.
7505
0da80d7d
AC
75062011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
7507
7508 * exp_ch7.adb (Is_Init_Call): Reimplemented to avoid character
7509 comparison and rely on concrete entities instead.
7510
75112011-08-05 Ed Schonberg <schonberg@adacore.com>
7512
7513 * einfo.ads, einfo.adb (Has_Implicit_Dereference): new flag on types
7514 and discriminants, to indicate that the type has an access discriminant
7515 that supports implicit dereference.
7516 * snames.ads-tmpl: Add names of aspects and attributes related to
7517 Ada2012 iterators: constant_indexing, default_iterator,
7518 iterator_element, implicit_dereference, variable_indexing.
7519 * aspects.ads, aspects.adb: entries for iterator-related aspects.
7520 * sem_ch13.adb (Analyze_aspect_specifications): dummy entries for
7521 iterator-related aspects.
7522 * sem_attr.adb, exp_attr.adb Dummy entries for iterator-related aspects.
7523
75242011-08-05 Sergey Rybin <rybin@adacore.com>
7525
7526 * gnat_ugn.texi, vms_data.ads: Extend the subsection about coupling
7527 metrics in gnatmetric to cover new kinds of coupling mentrics.
7528
75292011-08-05 Steve Baird <baird@adacore.com>
7530
7531 * bindgen.adb (Gen_CodePeer_Wrapper): Call Ada_Main_Program instead
2c7f9cc0 7532 of calling the user-defined main subprogram.
0da80d7d
AC
7533 (Gen_Main): Declare Ada_Main_Program and (if CodePeer_Mode
7534 is set) Call_Main_Subprogram ahead of, as opposed to
7535 inside of, Main.
7536 (Gen_Output_File_Ada): Remove CodePeer_Mode-conditional
7537 generation of a "with" of the user-defined main subprogram.
7538 Remove CodePeer_Mode-conditional call to Gen_CodePeer_Wrapper
7539 (which is now called from Gen_Main instead).
7540
73242473
AC
75412011-08-05 Emmanuel Briot <briot@adacore.com>
7542
7543 * projects.texi: Added reference to the Makefile package.
7544
75452011-08-05 Thomas Quinot <quinot@adacore.com>
7546
7547 * exp_ch7.adb: Minor comment rewording.
7548
75492011-08-05 Ed Falis <falis@adacore.com>
7550
7551 * env.c: Fix comment.
7552
75532011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
7554
7555 * sem_elab.adb (Is_Finalization_Procedure): Reimplemented to avoid
7556 character comparison and rely on concrete entities instead.
7557
97ed5872
AC
75582011-08-05 Ed Schonberg <schonberg@adacore.com>
7559
7560 * sem_ch3.adb: (Check_Private_Overriding): better error message,
7561 suggested by AI95-0068.
7562
75632011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
7564
7565 * exp_ch7.adb (Find_Last_Init): Use Next_Suitable_Statement to retrieve
7566 the two potential initialization calls. This accounts for any
7567 access-before-elaboration checks which may precede the initialization
7568 calls.
7569 (Next_Suitable_Statement): New routine. Returns the next real statement
7570 after the input node while skipping generated checks.
7571 * sem_elab.adb (Check_A_Call): New formal parameter In_Init_Proc along
7572 with comment on usage.
7573 Do not generate Elaborate_All when the trigger is a finalization call
7574 coming from a type init proc.
7575 (Check_Elab_Call): Propagate the initialization procedure context to
7576 subsequent calls to Check_A_Call.
7577 (Check_Internal_Call_Continue): Propagate the initialization procedure
7578 context to subsequent calls to Check_Elab_Call.
7579 (Is_Finalization_Procedure): New routine. Returns True if the input
7580 entity denotes a [Deep_]Finalize routine.
7581 * sem_elab.ads (Check_Elab_Call): New formal parameter In_Init_Proc
7582 along with comment on usage.
7583
75842011-08-05 Vadim Godunko <godunko@adacore.com>
7585
7586 * s-atocou.ads: Add list of supported platforms.
7587
75882011-08-05 Yannick Moy <moy@adacore.com>
7589
7590 * sem_prag.adb, restrict.adb: Correct style for or'ing Boolean variables
7591
7592 * opt.ads (Disable_ALI_File): new Boolean flag
7593 * lib-writ.adb (Write_ALI): when Disable_ALI_File is set, do nothing
7594
75952011-08-05 Ed Falis <falis@adacore.com>
7596
7597 * env.c (__gnat_environ): Fix includes for RTPs and VTHREADS so that
7598 environ is properly defined.
7599
76002011-08-05 Vincent Celier <celier@adacore.com>
7601
7602 * make.adb (Compilation_Phase): Exit immediately when all objects have
7603 been found up to date, to avoid multiple exit messages.
7604 * prj-nmsc.adb (Add_Source): Allow duplicate source file names in the
7605 same project for languages with no compiler.
7606 * gnat_ugn.texi: Document compiler switch -gnateI and gnatmake switch
7607 -eI.
9aff36e9
RD
76082011-08-05 Robert Dewar <dewar@adacore.com>
7609
7610 * exp_ch7.ads, sem_type.adb, make.adb, sem_prag.adb, sem_util.adb,
7611 sem_util.ads, sem_attr.adb, restrict.ads, sem_ch6.adb, prj-conf.adb,
7612 prj-conf.ads, s-atocou.ads, s-atocou.adb, s-atocou-x86.adb,
7613 s-atocou-builtin.adb: Minor reformatting.
7614
406935b6
AC
76152011-08-05 Yannick Moy <moy@adacore.com>
7616
7617 * exp_ch7.adb (Establish_Transient_Scope): in formal verification mode,
7618 if the node to wrap is a pragma check, this node and enclosed
7619 expression are not expanded, so do not apply any transformations here.
7620 * exp_prag.adb (Expand_Pragma_Check): document the need to avoid
7621 introducing transient scopes.
7622
76232011-08-05 Jose Ruiz <ruiz@adacore.com>
7624
7625 * adaint.c (__gnat_set_writable, __gnat_set_readable,
7626 __gnat_set_executable, __gnat_set_non_writable, __gnat_set_non_readable,
7627 __gnat_copy_attribs): On VxWorks 6.x and later, the required chmod
7628 routine is available, so we use the default implementation of these
7629 functions.
7630 * s-os_lib.ads (Copy_File, Copy_Time_Stamps): Document that there is
7631 support for copying attributes on VxWorks 6.
7632
76332011-08-05 Yannick Moy <moy@adacore.com>
7634
7635 * debug.adb: Remove use of -gnatd.D.
7636 * gnat1drv.adb (Adjust_Global_Switches): adjust switches for ALFA mode
7637 * opt.ads: Simplify variables for ALFA mode, to keep one only
7638 * restrict.adb, sem_prag.adb: Adapt treatment done for CodePeer mode
7639 to ALFA mode.
7640
76412011-08-05 Vincent Celier <celier@adacore.com>
7642
7643 * prj-conf.adb (Do_Autoconf): Look also for --RTS in
7644 Builder'Default_Switches.
7645
76462011-08-05 Vincent Celier <celier@adacore.com>
7647
7648 * makeusg.adb: Add lines for --create-map-file switches.
7649
76502011-08-05 Ed Schonberg <schonberg@adacore.com>
7651
7652 * freeze.adb (Freeze_Entity): For a subprogram, if a type in the
7653 profile is incomplete and the full view is available, replace it with
7654 the full view.
7655 * sem_ch6.adb (Possible_Freeze): if a type in the profile is
7656 incomplete, freezing the subprogram is delayed until the full view is
7657 frozen.
7658 * sem_type.adb (Disambiguate): an ambiguity between a user-defined
7659 fixed-point multiplication operator and the predefined operator is
7660 resolved in favor of the user-defined one.
7661
96c891b3
RO
76622011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7663
7664 * init.c [__alpha__ && __osf__] (__gnat_error_handler): Use
7665 CONST_CAST.
7666
276e7ed0
AC
76672011-08-04 Ed Schonberg <schonberg@adacore.com>
7668
7669 * sem_util.ads, sem_unit.adb (Type_Without_Stream_Operation): determine
7670 whether a type lacks user-defined Read or Write operations, or has a
7671 component that lacks them.
7672 * sem_attr.adb (Check_Stream_Attribute): if restriction
7673 No_Default_Stream_Attributes is active, verify that all subcomponent
7674 types of the target have user-defined stream operations, and report
7675 error otherwise.
7676 * exp_ch3.adb (Stream_Operqtion_OK): use Type_Without_Stream_Operation.
7677 * exp_strm.adb: Build_Elementary_Input_Call,
7678 Build_Elementary_Write_Call): remove checks for restriction
7679 No_Default_Stream_Attributes, now checked in semantics.
7680
76812011-08-04 Vincent Celier <celier@adacore.com>
7682
7683 * prj-conf.ads, prj-conf.adb (Do_Autoconf): If there is no --RTS
7684 switches on the command line, look for all valid --RTS switches in the
7685 Builder switches and for each language use the first runtime name found
7686 to invoke gprconfig.
7687 (Get_Or_Create_Configuration_File): Warn if --RTS is specified on the
7688 command line and there is no auto-configuration.
7689 (Runtime_Name_Set_For): New function.
7690
76912011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7692
7693 * exp_ch7.adb (Build_Object_Declarations): Do not generate the
7694 elaborate initialization expression for variable Abort when processing
7695 a package body or a declaration.
7696 (Create_Finalizer): Propagate the package context when creating the
7697 exception-related variables.
7698 * exp_ch7.ads (Build_Object_Declarations): New formal parameter
7699 For_Package along with usage comment.
7700
19172ae9
AC
77012011-08-04 Arnaud Charlet <charlet@adacore.com>
7702
7703 * gcc-interface/Makefile.in: Clean up targets.
7704 Enable new package for atomic counters and copy-on-write implementation
7705 of unbounded strings on x86 platforms.
7706 * gcc-interface/Make-lang.in: Update dependencies.
7707
0319cacc
AC
77082011-08-04 Robert Dewar <dewar@adacore.com>
7709
7710 * exp_ch7.adb: Minor reformatting.
7711
77122011-08-04 Robert Dewar <dewar@adacore.com>
7713
7714 * exp_strm.adb: Minor reformatting.
7715
77162011-08-04 Vadim Godunko <godunko@adacore.com>
7717
7718 * s-atocou.adb: Replace by dummy version and use on targets where atomic
7719 operations are not supported.
7720 * s-atocou-builtin.adb: Renamed from s-atocou.adb.
7721 * s-atocou-x86.adb: New file.
7722 * Makefile.rtl: Add s-atocou.o file
7723
77242011-08-04 Arnaud Charlet <charlet@adacore.com>
7725
7726 * make.adb (Compile): Move setting of CodePeer_Mode to ...
7727 (Compilation_Phase): ... here.
7728 (Scan_Make_Arg): Now bind and link by default in CodePeer mode.
7729
77302011-08-04 Thomas Quinot <quinot@adacore.com>
7731
7732 * Make-generated.in: Fix minor typo in comment.
7733
26e7e1a0
AC
77342011-08-04 Thomas Quinot <quinot@adacore.com>
7735
7736 * gnatls.adb: Use Prj.Env.Initialize_Default_Project_Path to retrieve
7737 the project path.
7738
77392011-08-04 Robert Dewar <dewar@adacore.com>
7740
7741 * a-coinho.adb: Minor reformatting.
7742
77432011-08-04 Robert Dewar <dewar@adacore.com>
7744
7745 * a-coinho.ads: Minor reformatting.
7746
77472011-08-04 Vadim Godunko <godunko@adacore.com>
7748
7749 * s-atocou.ads, s-atocou.adb: New files.
7750 * a-strunb-shared.ads, a-strunb-shared.adb, a-stwiun-shared.ads,
7751 a-stwiun-shared.adb, a-stzunb-shared.ads, a-stzunb-shared.adb: Remove
7752 direct use of GCC's atomic builtins and replace them by use of new
7753 atomic counter package.
7754
77552011-08-04 Ed Schonberg <schonberg@adacore.com>
7756
7757 * exp_strm.adb: better error message for No_Default_Stream_Attributes.
7758
77592011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7760
7761 * a-tags.adb (Unregister_Tag): Replace the complex address arithmetic
7762 with a call to Get_External_Tag.
7763 * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on
7764 subprogram usage. Remove the guard against package declarations and
7765 bodies since Build_Cleanup_Statements is no longer invoked in that
7766 context.
7767 (Build_Components): Initialize Tagged_Type_Stmts when the context
7768 contains at least one library-level tagged type.
7769 (Build_Finalizer): New local variables Has_Tagged_Types and
7770 Tagged_Type_Stmts along with associated comments on usage. Update the
7771 logic to include tagged type processing.
7772 (Create_Finalizer): Insert all library-level tagged type unregistration
7773 code before the jump block circuitry.
7774 (Expand_N_Package_Body): Remove the call to Build_Cleanup_Statements.
7775 (Expand_N_Package_Declaration): Remove the call to
7776 Build_Cleanup_Statements.
7777 (Process_Tagged_Type_Declaration): New routine. Generate a call to
7778 unregister the external tag of a tagged type.
7779 (Processing_Actions): Reimplemented to handle tagged types.
7780 (Process_Declarations): Detect the declaration of a library-level
7781 tagged type and carry out the appropriate actions.
7782 (Unregister_Tagged_Types): Removed. The machinery has been directly
7783 merged with Build_Finalizer.
7784
7483c888
AC
77852011-08-04 Robert Dewar <dewar@adacore.com>
7786
7787 * bindgen.ads, gnatlink.adb, sem_ch4.adb, gnatbind.adb, put_alfa.adb,
7788 gnatls.adb, exp_ch3.adb: Minor reformatting.
7789
77902011-08-04 Marc Sango <sango@adacore.com>
7791
7792 * sem_attr.adb (Analyze_Attribute): Replace the message
7793 "invisible attribute of}" of the spark restriction violation in
7794 attribute reference by the simple message "invisible attribute of type".
7795 Indeed, the node value Error_Msg_Node_1 used is in conflit with the
7796 two insertion characters: '&' and '}'.
7797
77982011-08-04 Vadim Godunko <godunko@adacore.com>
7799
7800 * impunit.adb (Non_Imp_File_Names_12): Add "a-coinho".
7801 * a-coinho.ads, a-coinho.adb: New file.
7802 * Makefile.rtl: Add Ada.Containers.Indefinite_Holders.
7803
5207696c
AC
78042011-08-04 Nicolas Roche <roche@adacore.com>
7805
7806 * alfa_test.adb: Not all ali files are containing alfa information even
7807 if compiled with -gnatd.F. So suppress warning about missing ALFA
7808 information.
7809
78102011-08-04 Yannick Moy <moy@adacore.com>
7811
7812 * lib-xref-alfa.adb (Add_ALFA_Scope): use non-empty unique name for
7813 scope.
7814 * put_alfa.adb: Check that scope name is not empty.
7815
78162011-08-04 Ed Schonberg <schonberg@adacore.com>
7817
7818 * exp_ch3.adb (Stream_Operation_Ok): new predicate
7819 Needs_Elementary_Stream_Operation, to determine whether user-defined
7820 Read and Write attributes are available for the elementary components
7821 of the given type. If only the predefined attributes are available,
7822 then when restriction No_Default_Stream_Attributes is active the
7823 predefined stream attributes for the composite type cannot be created.
7824
78252011-08-04 Robert Dewar <dewar@adacore.com>
7826
7827 * bindgen.adb: Fix obsolete comments and names from Ada/C days.
7828 Put routines in alpha order
7829
2bd2d858
JR
78302011-08-04 Jose Ruiz <ruiz@adacore.com>
7831
7832 * gcc-interface/Makefile.in: Remove xenomai specific versions of system.
7833 * gcc-interface/Make-lang.in: Update dependencies.
7834
8fae6016
AC
78352011-08-04 Arnaud Charlet <charlet@adacore.com>
7836
7837 * gcc-interface/lang.opt: Add AdaWhy language, simimlar to Ada.
7838 * gcc-interface/lang-specs.h: Add handling of AdaWhy specs (calls
7839 gnat1why).
7840
a54d0eb4
AC
78412011-08-04 Robert Dewar <dewar@adacore.com>
7842
7843 * sem_ch3.adb, make.adb, a-cohata.ads, sem_prag.adb, makeutl.adb,
7844 lib-xref-alfa.adb: Minor reformatting.
7845
78462011-08-04 Marc Sango <sango@adacore.com>
7847
7848 * sem_ch12.adb (Analyze_Generic_Package_Declaration,
7849 Analyze_Generic_Subprogram_Declaration, Analyze_Package_Instantiation,
7850 Analyze_Subprogram_Instantiation): Check absence of generic in SPARK
7851 mode.
7852
78532011-08-04 Tristan Gingold <gingold@adacore.com>
7854
7855 * bindgen.adb (Gen_Adainit_C): Remove.
7856 (Gen_Adafinal_C): Ditto.
7857 (Gen_Elab_Externals_C): Ditto.
7858 (Gen_Elab_Calls_C): Ditto.
7859 (Gen_Elab_Order_C): Ditto.
7860 (Gen_Elab_Defs_C): Ditto.
7861 (Gen_Finalize_Library_C): Ditto.
7862 (Gen_Finalize_Library_Defs_C): Ditto.
7863 (Gen_Main_C): Ditto.
7864 (Gen_Output_File_C): Ditto.
7865 (Gen_Restrictions_C): Ditto.
7866 (Gen_Versions_C): Ditto.
7867 (Write_Info_Ada_C): Ditto.
7868 (Gen_Object_Files_Options): Call WBI instead of Write_Info_Ada_C
7869 (Gen_Output_File): Do not force Ada_Bind_File anymore.
7870 Always call Gen_Output_File_Ada.
7871 * gnatlink.adb (Begin_Info): Now a constant.
7872 (End_Info): Ditto.
7873 (Ada_Bind_File): Remove
7874 (Process_Args): Do not handle -A/-C. Remove not Ada_Bind_File cases.
7875 * switch-b.adb (Scan_Binder_Switches): Do not handle -C.
7876 * gnatbind.adb (Gnatbind): Remove not Ada_Bind_File cases.
7877 * opt.ads (Ada_Bind_File): Remove.
7878
78792011-08-04 Thomas Quinot <quinot@adacore.com>
7880
7881 * projects.texi: Document target-specific directory in default project
7882 path for gnatmake.
7883
78842011-08-04 Thomas Quinot <quinot@adacore.com>
7885
7886 * gnatls.adb, prj-env.adb: Add $prefix/share/gpr to default project
7887 path in all cases .
7888
24558db8
AC
78892011-08-04 Yannick Moy <moy@adacore.com>
7890
7891 * sem_ch3.adb, sem_ch5.adb, sem_util.adb, sem_ch4.adb, sem_ch8.adb,
7892 opt.ads, lib-xref.ads: Code clean up.
7893
78942011-08-04 Yannick Moy <moy@adacore.com>
7895
7896 * gnat_rm.texi: Update description of Test_Case
7897 * gnat_ugn.texi: Typo.
7898
78992011-08-04 Ed Falis <falis@adacore.com>
7900
7901 * adaint.c (__gnat_get_number_of_cpus): fix typo in last checkin.
7902
79032011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7904
7905 * exp_ch4.adb (Suitable_Element): Skip field _parent on .NET/JVM when
7906 it is of type Root_Controlled. This action eliminates fields Prev and
7907 Next from type equality.
7908
79092011-08-04 Yannick Moy <moy@adacore.com>
7910
7911 * lib-xref-alfa.adb: Correct typo.
7912
79132011-08-04 Matthew Heaney <heaney@adacore.com>
7914
7915 * a-cohata.ads (Hash_Table_Type): default-initialize the Nodes
7916 component.
7917
1f9939b5
AC
79182011-08-04 Yannick Moy <moy@adacore.com>
7919
7920 * sem_prag.adb (Check_Arg_Is_String_Literal): remove useless procedure
7921 (Analyze_Pragma): allow static string expression for name of Test_Case,
7922 instead of simply string literals.
7923 * sem_util.adb (Get_Name_From_Test_Case_Pragma): adapt to static string
7924 expressions.
7925
79262011-08-04 Vincent Celier <celier@adacore.com>
7927
7928 * makeutl.adb (Complete_Mains.Find_File_Add_Extension): Use canonical
7929 case suffixes to find truncated main sources.
7930
79312011-08-04 Tristan Gingold <gingold@adacore.com>
7932
7933 * impunit.adb (Non_Imp_File_Names_95): Add g-tastus.
7934 s-stusta.adb (Compute_All_Task): Use Put_Line instead of Put.
7935 (Compute_Current_Task): Ditto.
7936
79372011-08-04 Tristan Gingold <gingold@adacore.com>
7938
7939 * gnat_ugn.texi: Mention GNAT.Task_Stack_Usage.
7940
79412011-08-04 Yannick Moy <moy@adacore.com>
7942
7943 * lib-xref-alfa.adb (Is_Global_Constant): new function that detects
7944 library-level constant.
7945 (Add_ALFA_Xrefs): ignore global constants in ALFA xref.
7946 * sem_res.adb (Resolve_Actuals): do not add cross-reference to Formal
7947 used as selector of parameter association, in ALFA mode.
7948
15d8a51d
AC
79492011-08-04 Robert Dewar <dewar@adacore.com>
7950
7951 * exp_ch5.adb, exp_ch7.adb, exp_util.adb, bindgen.adb, sem_prag.adb,
7952 s-tassta.adb, exp_ch4.adb, exp_disp.adb, s-stausa.adb: Minor
7953 reformatting.
7954
79552011-08-04 Arnaud Charlet <charlet@adacore.com>
7956
7957 * make.adb (Linking_Phase): Set source search path before calling
7958 gnatlink in CodePeer mode.
7959
f46faa08
AC
79602011-08-04 Javier Miranda <miranda@adacore.com>
7961
7962 * exp_ch7.adb (Expand_N_Package_Body, Expand_N_Package_Declaration):
7963 Remove code which takes care of building TSDs.
7964 * rtsfind.ads (RE_Check_Interface_Conversion): New entity.
7965 * exp_ch4.adb (Apply_Accessibility_Check): Add support for generating
7966 the accessibility check in VM targets.
7967 * exp_disp.adb (Make_VM_TSD): Spec moved to exp_disp.ads
7968 (Building_Static_DT): Now returns false for VM targets.
7969 (Build_VM_TSDs): Removed.
7970 (Expand_Interface_Conversion): Generate missing runtime check for
7971 conversions to interface types whose target type is unknown at compile
7972 time.
7973 (Make_VM_TSD): Add missing code to disable the generation of calls to
7974 Check_TSD if the tagged type is not defined at library level, or not
7975 has a representation clause specifying its external tag, or -gnatdQ is
7976 active.
7977 * exp_disp.ads (Build_VM_TSDs): Removed.
7978 (Make_VM_TSDs): Spec relocated from exp_disp.adb
7979 * sem_disp.adb (Check_Dispatching_Operation): No code required to
7980 register primitives in the dispatch tables in VM targets.
7981 * exp_ch3.adb (Expand_N_Object_Declaration): Remove wrong expansion of
7982 initialization of class-wide interface objects in VM targets.
7983 (Expand_Freeze_Record_Type): For VM targets call Make_VM_TSD (instead
7984 of Make_DT).
7985
79862011-08-04 Jerome Lambourg <lambourg@adacore.com>
7987
7988 * gnatlink.adb (Gnatlink): Correct missleading error message displayed
7989 when dotnet-ld cannot be found.
7990
79912011-08-04 Arnaud Charlet <charlet@adacore.com>
7992
7993 * bindgen.adb: Simplify significantly generation of binder body file in
7994 CodePeer mode.
7995 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Prevent assert failure
7996 when compiling binder generated file in CodePeer mode (xxx'Elab_Spec
7997 not expanded).
7998
2ba7e31e
AC
79992011-08-04 Yannick Moy <moy@adacore.com>
8000
8001 * sem_prag.adb, sem.ads: Code cleanup.
8002
80032011-08-04 Tristan Gingold <gingold@adacore.com>
8004
8005 * s-tassta.adb (Task_Wrapper): Rewrite the dynamic stack usage part.
8006 * s-stausa.adb, s-stausa.ads: Major rewrite. Now provides accurate
8007 results if possible.
8008 * s-stusta.adb (Print): Adjust after changes in s-stausa.
8009 * gnat_ugn.texi: Update dynamic stack usage section.
8010
80112011-08-04 Steve Baird <baird@adacore.com>
8012
8013 * bindgen.adb (Gen_CodePeer_Wrapper): new procedure.
8014 Generate (if CodePeer_Mode is set) a "wrapper" subprogram which
8015 contains only a call to the user-defined main subprogram.
8016 (Gen_Main_Ada) - If CodePeer_Mode is set, then
8017 call the "wrapper" subprogram instead of directly
8018 calling the user-defined main subprogram.
8019
80202011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8021
8022 * exp_ch5.adb (Expand_N_Case_Statement): Check the statements of all
8023 alternatives of a case statement for controlled objects. Rename local
8024 variable A to Dead_Alt.
8025 (Expand_N_If_Statement): Check the then and else statements of an if
8026 statement for controlled objects. Check the then statements of all
8027 elsif parts of an if statement for controlled objects.
8028 (Expand_N_Loop_Statement): Check the statements of a loop for controlled
8029 objects.
8030 * exp_ch7.adb (Process_Transient_Objects): Rewrite the condition which
8031 detects a loop associated with the expansion of an array object.
8032 Augment the processing of the loop statements to account for a possible
8033 wrap done by Process_Statements_For_Controlled_Objects.
8034 * exp_ch9.adb (Expand_N_Asynchronous_Select): Check the triggering
8035 statements and abortable part of an asynchronous select for controlled
8036 objects.
8037 (Expand_N_Conditional_Entry_Call): Check the else statements of a
8038 conditional entry call for controlled objects.
8039 (Expand_N_Selective_Accept): Check the alternatives of a selective
8040 accept for controlled objects.
8041 (Expand_N_Timed_Entry_Call): Check the entry call and delay
8042 alternatives of a timed entry call for controlled objects.
8043 * exp_ch11.adb (Expand_Exception_Handlers): Check the statements of an
8044 exception handler for controlled objects.
8045 * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)):
8046 Add formal parameter Nested_Constructs along with its associated
8047 comment.
8048 (Requires_Cleanup_Actions (Node_Id)): Update all calls to
8049 Requires_Cleanup_Actions.
8050 (Process_Statements_For_Controlled_Objects): New routine.
8051 * exp_util.ads (Process_Statements_For_Controlled_Objects): New
8052 routine. Inspect a node which contains a non-handled sequence of
8053 statements for controlled objects. If such an object is found, the
8054 statements are wrapped in a block.
8055
1bf773bb
AC
80562011-08-04 Bob Duff <duff@adacore.com>
8057
8058 * sem_type.adb (Covers): If T2 is a subtype of a class-wide type, we
8059 need to compare with Class_Wide_Type (T2), in order to get at the
8060 original class-wide type node.
8061 * sem_type.ads (Covers): Improve the comment.
8062 * einfo.ads (Class_Wide_Type): Improve the comment.
8063 * exp_intr.adb (Expand_Unc_Deallocation): Remove unnecessary setting of
8064 the type of the Deref.
8065
80662011-08-04 Yannick Moy <moy@adacore.com>
8067
8068 * gnat_rm.texi: Document that Test_Case pragma can only appear on
8069 separate declarations.
8070 * sem_prag.adb (procedure Check_Identifier_Is_One_Of): new procedure to
8071 check identifier of pragma argument.
8072 (Chain_TC): check that no other test case associated to the same entity
8073 share the same name.
8074 (Check_Test_Case): disallow test case inside subprogram body
8075 (Analyze_Pragma): correct call to check identifier and not argument
8076 * sem_util.adb, sem_util.ads (Get_Name_From_Test_Case_Pragma): new
8077 function gets name from test case pragma.
8078
dac3bede
YM
80792011-08-04 Yannick Moy <moy@adacore.com>
8080
8081 * gnat_rm.texi: Document new pragma and aspect.
8082 * aspects.adb, aspects.ads (Aspect_Id): new value Aspect_Test_Case
8083 (No_Duplicates_Allowed): new constant array defining whether duplicates
8084 aspects of each kind can appear on the same declaration.
8085 * einfo.adb, einfo.ads (Spec_PPC_List): replace field with Contract
8086 field, which points to a node holding the previous Spec_PPC_List.
8087 * exp_ch9.adb, sem_ch6.adb, sem_prag.adb: Reach to Spec_PPC_List
8088 through the indirection with Contract.
8089 * exp_util.adb (Insert_Actions): raise Program_Error on N_Contract node
8090 * par-prag.adb (Prag): do nothing on Test_Case pragma
8091 * sem.adb (Analyze): abort on N_Contract, on which Analyze should not
8092 be called directly.
8093 * sem_attr.adb (Analyze_Attribute): allow attribute 'Result in
8094 component Ensures of Test_Case.
8095 * sem_ch12.adb, sem_ch6.adb, sem_ch9.adb
8096 (Analyze_Generic_Subprogram_Declaration,
8097 Analyze_Subprogram_Instantiation,
8098 Analyze_Abstract_Subprogram_Declaration,
8099 Analyze_Subprogram_Body_Helper,
8100 Analyze_Subprogram_Specification, Analyze_Entry_Declaration):
8101 insert contract in subprogram node at point of definition
8102 * sem_ch13.adb
8103 (Aspect_Loop): do not raise error on duplicate Test_Case aspect
8104 (Analyze_Aspect_Specifications): analyze Test_Case aspect and create
8105 corresponding pragma
8106 (Check_Aspect_At_Freeze_Point): raise Program_Error on Test_Case aspect
8107 * sem_ch3.adb (Analyze_Declarations): insert analysis of test-cases,
8108 similar to the analysis of pre/post
8109 (Derive_Subprogram): insert contract in subprogram node at point of
8110 derivation.
8111 * sem_prag.adb, sem_prag.ads
8112 (Check_Arg_Is_String_Literal, Check_Identifier):
8113 new checking procedures to be called in treatment of pragmas
8114 (Check_Test_Case): new procedure to check that a Test_Case aspect or
8115 pragma is well-formed. This does not check currently that 'Result is
8116 used only in the Ensures component of a Test_Case.
8117 (Analyze_Pragma): add case for Test_Case
8118 (Analyze_TC_In_Decl_Part): pre-analyze the Requires and Ensures
8119 components of a Test_Case.
8120 (Preanalyze_TC_Args): new procedure to preanalyze the boolean
8121 expressions in the 3rd (and 4th if present) arguments of a Test_Case
8122 pragma, treated as spec expressions.
8123 (Sig_Flags): add value -1 for Test_Case.
8124 * sem_util.adb, sem_util.ads (Get_Ensures_From_Test_Case_Pragma,
8125 Get_Requires_From_Test_Case_Pragma): getters for both expression
8126 components of a Test_Case.
8127 * sinfo.adb, sinfo.ads (N_Contract): new kind of node used as
8128 indirection between an entry or [generic] subprogram entity and its
8129 pre/post + test-cases.
8130 (Spec_PPC_List, Spec_TC_List, Set_Spec_PPC_List, Set_Spec_TC_List):
8131 get/set for fields of an N_Contract node.
8132 * snames.ads-tmpl (Name_Test_Case, Name_Ensures, Name_Mode,
8133 Name_Normal, Name_Requires, Name_Robustness, Pragma_Test_Case): new
8134 names and pragma for Test_Case.
8135 * sprint.adb (Sprint_Node): raise Program_Error on N_Contract node
8136
6a2e5d0f
AC
81372011-08-04 Vincent Celier <celier@adacore.com>
8138
8139 * gnat_ugn.texi: Improve documentation of gnatmake switch
8140 --source-info-file=.
8141
81422011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8143
8144 * exp_ch7.adb (Make_Final_Call): Add local variable Atyp (assertion
8145 type). Initialize Atyp to the appropriate type which is later checked
8146 for completion. Rewrite the assertion associated with private type
8147 completion.
8148
81492011-08-04 Ed Falis <falis@adacore.com>
8150
8151 * adaint.c: Add call to vxCpuConfiguredGet for VxWorks SMP to
8152 initialize the number of CPUs.
8153
81542011-08-04 Ed Schonberg <schonberg@adacore.com>
8155
8156 * sem_type.adb (Disambiguate): New subsidiary routine
8157 In_Same_Declaration_List, to implement AI05-0020: a user-defined
8158 equality on an anonymous access type whose designated type is private
8159 does not lead to an ambiguity with the universal access equality
8160 operator in the body or child units of the defining package. The same
8161 is true for a multiplication operator on a private type completed with
8162 a fixed-point-type.
8163
81642011-08-04 Javier Miranda <miranda@adacore.com>
8165
8166 * opt.ads (Init_Or_Norm_Scalars_Config): Removed.
8167 (Normalize_Scalars_Config): Removed.
8168 * opt.adb
8169 (Register_Opt_Config_Switches): Remove registering config values of
8170 Init_Or_Norm_Scalars_Config and Normalize_Scalars_Config.
8171 (Restore_Opt_Config_Switches): Remove code which restores the values of
8172 Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of
8173 Init_Or_Norm_Scalars.
8174 (Save_Opt_Config_Switches): Remove code which saves values of
8175 Init_Or_Norm_Scalars and Normalize_Scalars.
8176 (Set_Opt_Config_Switches): Remove code which restores config values of
8177 Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of
8178 Init_Or_Norm_Scalars.
8179
81802011-08-04 Yannick Moy <moy@adacore.com>
8181
8182 * frontend.adb (Frontend): remove previous patch to avoid full
8183 qualification in ALFA mode.
8184 * lib-xref-alfa.adb (Add_ALFA_Xrefs): use unique name for variables.
8185 * sem_util.adb, sem_util.ads (Unique_Name): new function to define a
8186 unique name for an entity, which could be used to identify the entity
8187 across compilation units.
8188
81892011-08-04 Thomas Quinot <quinot@adacore.com>
8190
8191 * prj-env.adb
8192 (Initialize_Default_Project_Path): Add target specific directory
8193 ($prefix/$target/lib/gnat) in front of project path in all cases
8194 (making gnatmake's behaviour consistent with gprbuild).
8195 * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb:
8196 Pass target name from Sdefault to project subsystem.
8197 * gnatls.adb: Show new target specific default project directory.
8198
81992011-08-04 Johannes Kanig <kanig@adacore.com>
8200
8201 * cstand.adb: Add Information to Identifier in Standard
8202 (Identifer_For): Set Entity to the corresponding entity
8203
483361a6
AC
82042011-08-04 Sergey Rybin <rybin@adacore.com>
8205
8206 * gnat_ugn.texi: Update doc on gnatcheck.
8207
82082011-08-04 Yannick Moy <moy@adacore.com>
8209
8210 * lib-xref-alfa.adb (Add_ALFA_Xrefs): correct definition of ranges of
8211 xrefs in a scope.
8212
82132011-08-04 Yannick Moy <moy@adacore.com>
8214
8215 * exp_prag.adb (Expand_Pragma_Check): in ALFA mode, return without
8216 performing expansion.
8217 * sem_ch6.adb (Analyze_Subprogram_Body_Helper,
8218 Analyze_Generic_Subprogram_Body): protect call to Process_PCCs so that
8219 it is not called in ALFA mode.
8220
ef5569c6
AC
82212011-08-04 Emmanuel Briot <briot@adacore.com>
8222
8223 * make.adb, osint.adb, osint.ads (Reset_Command_Line_Files): not used
8224 after all, so removed.
8225
82262011-08-04 Sergey Rybin <rybin@adacore.com>
8227
8228 * vms_data.ads: Add missing VMS qualifiers.
8229
1ab4a286
EB
82302011-08-04 Emmanuel Briot <briot@adacore.com>
8231
8232 * make.adb, makeutl.adb, osint.adb, osint.ads (Check_Mains): rebuild
8233 the list of files on the command line after processing it through
8234 Complete_Mains.
8235
7ae0d98c
AC
82362011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8237
8238 * exp_ch7.adb (Build_Raise_Statement): Remove the specialized
8239 processing for .NET/JVM. These targets can now benefit from
8240 Raise_From_Controlled_Operation and they share the same processing with
8241 standard targets.
8242 (Establish_Transient_Scope): Remove the restriction for .NET/JVM.
8243 These targets need transient scopes in order to properly finalize short
8244 lived controlled objects.
8245 (Make_Handler_For_Ctrl_Operation): Remove the specialized processing for
8246 NET/JVM. These targets can now benefit from
8247 Raise_From_Controlled_Operation and they share the same processing with
8248 standard targets.
8249
82502011-08-04 Geert Bosch <bosch@adacore.com>
8251
8252 * tracebak.c (STOP_FRAME): Stop at any next pointer outside the stack
8253
82542011-08-04 Ed Schonberg <schonberg@adacore.com>
8255
8256 * exp_aggr.adb (Has_Visible_Private_Ancestor): subsidiary routine to
8257 Expand_Record_Aggregate, to determine whether aggregate must be
8258 expanded into assignments. This is the case if the ancestor part is
8259 private, regarless of the setting of the flag Has_Private_Ancestor.
8260
82612011-08-04 Ed Falis <falis@adacore.com>
8262
8263 * vxaddr2line.adb: Add support for e500v2 and for Linux hosts
8264
82652011-08-04 Bob Duff <duff@adacore.com>
8266
8267 * sinfo.ads: Fix comment.
8268
82692011-08-04 Steve Baird <baird@adacore.com>
8270
8271 * bindgen.adb (Get_Ada_Main_Name): If CodePeer_Mode is set, then
8272 choose a package name in much the same way as is
8273 done for JGNAT when VM_Target /= No_VM, except that
8274 a slightly more distinctive prefix string is used.
8275
82762011-08-04 Emmanuel Briot <briot@adacore.com>
8277
8278 * makeutl.adb (Complete_Mains): no longer accept unit names on the
8279 gnatmake command line.
8280 This behavior was never documented (and was supported only because of
8281 an early bug in the code). This case might lead to ambiguous cases
8282 (between unit names and truncated base names without suffixes).
8283
87729e5a
AC
82842011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8285
8286 * a-tags.ads, a-tags.adb (Unregister_Tag): New routine.
8287 Remove the external tag of a tagged type from the internal hash table.
8288 * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on the
8289 expanded usage of the routine. Strenghten the check for Is_Master. Add
8290 processing for tagged types.
8291 (Build_Finalizer): Create all the necessary lists used in finalizer
8292 creation when the processed context is a package that may contain
8293 tagged types.
8294 (Expand_Cleanup_Actions): Rename the call to Has_Controlled_Objects to
8295 Requires_Cleanup_Actions.
8296 (Expand_N_Package_Body): Package bodies may need clean up code
8297 depending on whether they contain tagged types.
8298 (Expand_N_Package_Declaration): Package declarations may need clean up
8299 code depending on whether they contain tagged types.
8300 (Unregister_Tagged_Types): New routine. Search through a list of
8301 declarations or statements, looking for non-abstract Ada tagged types.
8302 For each such type, generate code to unregister the external tag.
8303 * exp_util.adb (Has_Controlled_Objects (Node_Id)): Renamed to
8304 Requires_Cleanup_Actions.
8305 (Requires_Cleanup_Actions (List_Id, Boolean)): New routine. Search
8306 through a list of declarations or statements looking for non-abstract
8307 Ada tagged types or controlled objects.
8308 * exp_util.ads (Has_Controlled_Objects (Node_Id)): Renamed to
8309 Requires_Cleanup_Actions.
8310 (Has_Controlled_Objects (List_Id, Boolean)): Removed.
8311 * rtsfind.ads: Add entry RE_Unregister_Tag to tables RE_Id and
8312 RE_Unit_Table.
8313
83142011-08-04 Vincent Celier <celier@adacore.com>
8315
8316 * prj-env.adb (For_All_Source_Dirs.For_Project): Check if project Prj
8317 has Ada sources, not project Project, because if the root project
8318 Project has no sources of its own, all projects will be deemed without
8319 sources.
8320
83212011-08-04 Gary Dismukes <dismukes@adacore.com>
8322
8323 * bindgen.adb (Gen_Adainit_Ada): Move the generation of the declaration
8324 of the No_Param_Proc acc-to-subp type used for initialization of
8325 __gnat_finalize_library_objects so that it's declared at library level
8326 rather than nested inside of the adainit routine.
8327
83282011-08-04 Javier Miranda <miranda@adacore.com>
8329
8330 * exp_disp.adb (Make_DT): Generate code to check the external tag ONLY
8331 if the tagged type has a representation clause which specifies its
8332 external tag.
8333
83342011-08-04 Ed Schonberg <schonberg@adacore.com>
8335
8336 * einfo.ads, einfo.adb (Has_Private_Ancestor): now a flag on types.
8337 Remove previous procedure with that name.
8338 * sem_ch3.adb (Build_Derived_Record_Type): set Has_Private_Ancestor
8339 when appropriate.
8340 * sem_aggr.adb (Resolve_Extension_Aggregate): if the ancestor part is a
8341 subtype mark, the ancestor cannot have unknown discriminants.
8342 (Resolve_Record_Aggregate): if the type has invisible components
8343 because of a private ancestor, the aggregate is illegal.
8344
83452011-08-04 Vincent Celier <celier@adacore.com>
8346
8347 * switch-m.adb (Normalize_Compiler_Switches): Recognize and take into
8348 account switches -gnat2005, -gnat12 and -gnat2012.
8349
83502011-08-04 Bob Duff <duff@adacore.com>
8351
8352 * s-tasdeb.ads: Minor comment fix.
8353
83542011-08-04 Arnaud Charlet <charlet@adacore.com>
8355
8356 * gnatlink.adb (Gnatlink): Pass -gnat83/95/05/12 switch to gcc in
8357 CodePeer mode.
8358 * switch.ads, switch.adb (Is_Language_Switch): New function.
8359
83602011-08-04 Vincent Celier <celier@adacore.com>
8361
8362 * switch-c.adb: Minor comment addition.
8363
83642011-08-04 Vincent Celier <celier@adacore.com>
8365
8366 * vms_conv.adb (Process_Argument): Fail graciously when qualifier
8367 ending with '=' is followed by a space (missing file name).
8368
83692011-08-04 Pascal Obry <obry@adacore.com>
8370
8371 * g-regist.ads: Fix size of HKEY on x86_64-windows.
8372
83732011-08-04 Ed Schonberg <schonberg@adacore.com>
8374
8375 * sem_ch12.adb (Analyze_Associations): New routine
8376 Check_Overloaded_Formal_Subprogram to reject a formal package when
8377 there is a named association or a box initialisation for an overloaded
8378 formal subprogram of the corresponding generic.
8379
83802011-08-04 Yannick Moy <moy@adacore.com>
8381
8382 * alfa.ads (ALFA_Xref_Record): add component for type of entity
8383 * get_alfa.adb, put_alfa.adb: Read and write new component of
8384 cross-reference.
8385 * lib-xref-alfa.adb (Collect_ALFA): generate new component.
8386
88f47280
AC
83872011-08-04 Pascal Obry <obry@adacore.com>
8388
8389 * urealp.adb: Minor reformatting.
8390
83912011-08-04 Tristan Gingold <gingold@adacore.com>
8392
8393 * exp_ch7.adb (build_finalizer.process_declarations.processing_actions):
8394 Handle the case when Cleanup_Protected_Object returns Empty.
8395
83962011-08-04 Yannick Moy <moy@adacore.com>
8397
8398 * frontend.adb (Frontend): only qualify names in non-ALFA mode
8399
84002011-08-04 Ed Schonberg <schonberg@adacore.com>
8401
8402 * sem_ch4.adb (Try_Class_Wide_Operation): if the context is a procedure
8403 call, ignore functions.
8404
05c53a69
GB
84052011-08-04 Geert Bosch <bosch@adacore.com>
8406
8407 * urealp.adb (Equivalent_Decimal_Exponent): Avoid the use of floating
8408 point.
8409
23cc1ace
EB
84102011-08-04 Emmanuel Briot <briot@adacore.com>
8411
8412 * makeutl.adb (Compute_Builder_Switches): no longer accept a unit name
8413 as an index for Builder'Switches. This conforms to the documentation.
8414 * make.adb (Insert_Project_Sources): avoid duplicate code
8415
cef14201
AC
84162011-08-04 Emmanuel Briot <briot@adacore.com>
8417
8418 * makeutl.adb (Complete_Mains): if the user has passed a relative file
8419 name on the command line (for instance "../dummy"), never assume it can
8420 be a unit name.
8421
84222011-08-04 Tristan Gingold <gingold@adacore.com>
8423
8424 * bindgen.adb: Remove code the reference or create the
8425 Break_Start/__gnat_break_start procedure.
8426 * s-stalib.adb (Break_Start): Removed.
8427
e2fee30d
EB
84282011-08-04 Emmanuel Briot <briot@adacore.com>
8429
8430 * make.adb, makeutl.adb, makeutl.ads (Compute_Builder_Switches): now
8431 shared with gprbuild.
8432
2d395256
AC
84332011-08-04 Yannick Moy <moy@adacore.com>
8434
8435 * par-ch4.adb (P_Primary): preferentially issue an error message about
8436 a missing parenthesis arount a conditional or case expression in Ada
8437 2012 mode, if we detect that the alignment is not correct for a
8438 statement.
8439
84402011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8441
8442 * exp_ch7.adb (Process_Declarations): Do not consider the result of a
8443 tag-to-class-wide conversion as needing finalization actions.
8444 * exp_util.adb (Has_Controlled_Objects): Do not consider the result of
8445 a tag-to-class-wide conversion as needing finalization actions.
8446 (Is_Finalizable_Transient): The result of a tag-to-class-wide
8447 conversion does not need finalization actions.
8448 (Is_Tag_To_CW_Conversion): New routine.
8449 * exp_util.ads (Is_Tag_To_CW_Conversion): New routine. Determines
8450 whether an object is the result of a tag-to-class-wide conversion.
8451
84522011-08-04 Yannick Moy <moy@adacore.com>
8453
8454 * sem_ch13.adb (Analyze_Aspect_Specifications): correct order in which
8455 the left-hand-side and right-hand-side of a conjunct are inserted when
8456 translating a pre- or postcondition
8457 * sem_ch6.adb: Correct typo in comment
8458
84592011-08-04 Ed Schonberg <schonberg@adacore.com>
8460
8461 * gnat_rm.texi: Ravenscar does not prohibit dependence on
8462 Unchecked_Conversion and Unchecked_Deallocation.
8463
84642011-08-04 Thomas Quinot <quinot@adacore.com>
8465
8466 * make.adb: Minor reformatting.
8467
767ab2fd
EB
84682011-08-04 Emmanuel Briot <briot@adacore.com>
8469
8470 * prj.adb, prj.ads, makeutl.adb (Complete_Mains): search for the
8471 sources in the project and its imported projects, but not in the whole
8472 tree.
8473
8fb3f5df
AC
84742011-08-04 Emmanuel Briot <briot@adacore.com>
8475
8476 * make.adb: Remove debug trace.
8477
84782011-08-04 Vincent Celier <celier@adacore.com>
8479
8480 * makeutl.adb (Do_Complete): Get the absolute path name of a relative
8481 path in canonical form, to be able to compare path names on platforms
8482 such as Windows or Darwin.
8483
84842011-08-04 Thomas Quinot <quinot@adacore.com>
8485
8486 * par_sco.adb (Traverse_Declarations_Or_Statements.Set_Statement_Entry):
8487 For a pragma (statement with C1 = 'P'), record the sloc of the pragma.
8488 * scos.ads: Update documentation accordingly.
8489 * put_scos.adb (Output_SCO_Line): Omit statement SCOs for disabled
8490 pragmas.
8491
9515740f
AC
84922011-08-04 Ed Schonberg <schonberg@adacore.com>
8493
8494 * sem_attr.adb (Bad_Attribute_For_Predicate): flag illegal use of
8495 attribute only if prefix type is scalar.
8496
84972011-08-04 Emmanuel Briot <briot@adacore.com>
8498
8499 * make.adb, makeutl.adb, prj-env.adb (Check_Mains): put back support
8500 in gnatmake for specifying mains on the command line that do not belong
8501 to the main project. These mains must currently all belong to the same
8502 project, though.
8503 (Ultimate_Extension_Of): removed, since duplicated
8504 Ultimate_Extending_Project.
8505
92966893
AC
85062011-08-04 Arnaud Charlet <charlet@adacore.com>
8507
8508 * make.adb (Do_Codepeer_Globalize_Step): Removed. Use CodePeer_Mode
8509 instead.
8510 (CodePeer_Mode_String): New.
8511 (Linking_Phase, Binding_Phase): Call gnatlink with -P switch in
8512 CodePeer mode.
8513 (Scan_Make_Arg): Do not disable binding/linking phase in CodePeer mode.
8514 * bindgen.adb (Gen_Elab_Calls_Ada): Ignore subprograms in CodePeer
8515 mode, since no useful elaboration subprogram is needed by CodePeer.
8516 * gnatlink.adb (Gnatlink): Add support for -P switch (CodePeer mode).
8517 In this mode, compile binder file with -gnatC and do stop after this
8518 step.
8519
85202011-08-04 Vincent Celier <celier@adacore.com>
8521
8522 * exp_ch7.adb: Minor comment fix.
8523
5969611f
RD
85242011-08-04 Robert Dewar <dewar@adacore.com>
8525
8526 * exp_ch7.adb, make.adb, sem_ch10.adb, bindgen.adb, sem_res.adb,
8527 exp_ch4.adb, makeutl.adb: Minor reformatting.
8528
6367dd30
AC
85292011-08-04 Emmanuel Briot <briot@adacore.com>
8530
8531 * make.adb, makeutl.adb, makeutl.ads (Make): major refactoring.
8532 Create several new subprograms to move code out of Make. This makes the
8533 code more readable, removes code duplication, and is a preparation work
8534 for adding support for aggregate projects.
8535
85362011-08-04 Tristan Gingold <gingold@adacore.com>
8537
8538 * s-po32gl.ads, s-po32gl.adb: New files.
8539 * exp_ch7.ads (Get_Global_Pool_For_Access_Type): New function.
8540 * exp_ch7.adb (Get_Global_Pool_For_Access_Type): New function.
8541 (Build_Finalization_Collection): Use it.
8542 * exp_ch4.adb (Complete_Controlled_Allocation): Ditto.
8543 * rtsfind.ads: System_Pool_32_Global, Re_Global_Pool_32_Object: New
8544 literals.
8545 * gcc-interface/Makefile.in: Use s-po32gl.o on VMS.
8546 * gcc-interface/Make-lang.in: Update dependencies.
8547
cd8bfe35
EB
85482011-08-04 Emmanuel Briot <briot@adacore.com>
8549
8550 * makeutl.adb (Complete_Mains): add support for specs with no suffix on
8551 the command line.
8552
7db29ea7
EB
85532011-08-04 Emmanuel Briot <briot@adacore.com>
8554
8555 * make.adb, makeutl.adb (Complete_Mains): if a main specified on the
8556 command line is not a file name, also check whether it could be a unit
8557 name.
8558
d9b056ea
AC
85592011-08-04 Eric Botcazou <ebotcazou@adacore.com>
8560
8561 * bindgen.adb (Gen_Finalize_Library_Ada): Factor out code to generate
8562 the header of the finalization routine.
8563 If the unit has no finalizer but is a body whose spec has one, then
8564 generate the decrement of the elaboration entity only.
8565 If the unit has a finalizer and is a spec, then do not generate the
8566 decrement of the elaboration entity.
8567 (Gen_Finalize_Library_C): Likewise.
8568
85692011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8570
8571 * exp_ch7.adb (Alignment_Of): New subsidiary routine.
8572 (Bounds_Size_Expression): Removed.
8573 (Double_Alignment_Of): New subsidiary routine.
8574 (Make_Finalize_Address_Stmts): New local variable Index_Typ. Account
8575 for a hole in the dope vector of unconstrained arrays due to different
8576 index and element alignments.
8577
85782011-08-04 Ed Schonberg <schonberg@adacore.com>
8579
8580 * sem_res.adb (Resolve_Allocator): diagnose task allocator that will
8581 raise program_error because body has not been seen yet.
8582
85832011-08-04 Ed Schonberg <schonberg@adacore.com>
8584
8585 * sem_ch10.adb (Analyze_With_Clause): Protect against child unit with
8586 an unresolved name.
8587
85882011-08-04 Vincent Celier <celier@adacore.com>
8589
8590 * makeutl.adb (Do_Complete): Check absolute paths in canonical forms
8591
85922011-08-04 Yannick Moy <moy@adacore.com>
8593
8594 * alfa.adb, alfa.ads (Unique_Defining_Entity): move function from here
8595 * sem_util.adb, sem_util.ads (Unique_Defining_Entity): ...to here
8596
85972011-08-04 Thomas Quinot <quinot@adacore.com>
8598
8599 * sem_ch12.adb (Analyze_Package_Instantiation): Do not omit body for
8600 instantiation in RCI.
8601
86022011-08-04 Emmanuel Briot <briot@adacore.com>
8603
8604 * make.adb: Share more code with gprbuild
8605
f5fc5b9d
AC
86062011-08-04 Emmanuel Briot <briot@adacore.com>
8607
8608 * projects.texi: Added documentation for the IDE'Gnat project file
8609 attribute.
8610
86112011-08-04 Nicolas Roche <roche@adacore.com>
8612
8613 * gnat_rm.texi: Minor editing.
8614
86152011-08-04 Javier Miranda <miranda@adacore.com>
8616
8617 * bindgen.adb (Gen_Adafinal_Ada): Do not differentiate the main case
8618 and the library case for VM targets.
8619 (Gen_Adainit_Ada): Likewise.
8620
86212011-08-04 Robert Dewar <dewar@adacore.com>
8622
8623 * g-altive.ads: Minor comment updates.
8624 * prj-nmsc.adb: Minor reformatting.
8625
86262011-08-04 Javier Miranda <miranda@adacore.com>
8627
8628 * opt.ads
8629 (Normalize_Scalars_Config): Value of the configuration switch set by
8630 pragma Normalize_Scalars when it appears in the gnat.adc file.
8631 (Normalize_Scalars): New field for record Config_Switches_Type. Used
8632 to save and restore settings of this pragma.
8633 * opt.adb
8634 (Register_Opt_Config_Switches, Save_Opt_Config_Switches,
8635 Restore_Opt_Config_Switches): Add missing support for Normalize_Scalars.
8636
86372011-08-04 Vincent Celier <celier@adacore.com>
8638
8639 * gnat_ugn.texi: Document gnatlink options -M and -M=mapfile
8640
0c4683cf
AC
86412011-08-04 Arnaud Charlet <charlet@adacore.com>
8642
8643 * makeutl.adb: Minor reformatting.
8644
86452011-08-04 Olivier Hainque <hainque@adacore.com>
8646
8647 * g-altive.ads: Update comments to reflect that only the soft
8648 binding is available today.
8649
2598ee6d
RD
86502011-08-04 Robert Dewar <dewar@adacore.com>
8651
8652 * bindgen.adb, einfo.adb, sem_ch12.adb, s-tasren.adb, sem_res.adb,
8653 makeutl.adb, prj-nmsc.adb, opt.ads, prj-env.adb: Minor reformatting
8654 * gcc-interface/Make-lang.in: Update dependencies.
8655
c2db4b32
AC
86562011-08-04 Arnaud Charlet <charlet@adacore.com>
8657
8658 * prj-env.adb: Remove local debug traces.
8659
86602011-08-04 Yannick Moy <moy@adacore.com>
8661
8662 * checks.adb (Apply_Float_Conversion_Check): correct a typo where Lo_OK
8663 was used instead of Hi_OK, which could cause a read of an uninitialized
8664 value later on. Detected while working on the new warning.
8665 * exp_ch9.adb (Expand_N_Entry_Declaration): remove useless assignment
8666 to local variable.
8667 * sem_ch5.adb (Analyze_Assignment): set the last assignment component
8668 in more cases, in order to detect more unreferenced values.
8669 * sem_util.adb, sem_util.ads (Get_Enclosing_Object): return enclosing
8670 object for expression, if any.
8671
86722011-08-04 Eric Botcazou <ebotcazou@adacore.com>
8673
8674 * exp_intr.adb (Expand_Binary_Operator_Call): Look at the RM size of
8675 the operand types instead of the Esize.
8676
86772011-08-04 Steve Baird <baird@adacore.com>
8678
8679 * switch-b.adb (Scan_Binder_Switches): Add -P binder switch, used to
8680 enable CodePeer_Mode.
8681 * bindusg.adb (Display): Add help message describing -P binder switch.
8682 * gnat_ugn.texi: Document -P binder switch.
8683 * bindgen.adb (Gen_Main_Ada): If CodePeer_Mode is set, then call the
8684 user-defined main program directly.
8685 (Gen_Output_File_Ada): If CodePeer_Mode is set, generate a with of the
8686 user-defined main program in the context clause of the package body.
8687
ad05f2e9
AC
86882011-08-04 Yannick Moy <moy@adacore.com>
8689
8690 * alfa.adb, alfa.ads (Get_Entity_For_Decl): remove function, partial
8691 duplicate of Defining_Entity
8692 (Get_Unique_Entity_For_Decl): rename function into
8693 Unique_Defining_Entity
8694 * einfo.adb, einfo.ads (Is_In_ALFA, Body_Is_In_ALFA): remove flags
8695 (Formal_Proof_On): remove synthesized flag
8696 * cstand.adb, sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb,
8697 sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_res.adb, sem_util.adb,
8698 sem_util.ads, stand.ads: Remove treatment associated to entities in ALFA
8699 * sem_prag.adb (Analyze_Pragma): remove special treatment for pragma
8700 Annotate (Formal_Proof)
8701
87022011-08-04 Emmanuel Briot <briot@adacore.com>
8703
8704 * prj-env.adb (Create_Config_Pragmas_File): fix handling of multi-unit
8705 source files with non-standard naming schemes, in imported projects
8706
756ef2a0
AC
87072011-08-04 Emmanuel Briot <briot@adacore.com>
8708
8709 * makeutl.adb (Complete_Mains): when a multi-unit source file is
8710 specified on the gprbuild command line, we need to compile all units
8711 within that file, not just the first one we find
8712 Fix error message for mains that are not found.
8713
87142011-08-04 Thomas Quinot <quinot@adacore.com>
8715
8716 * sem_ch6.adb: Update comment.
8717 * sem_ch12.adb: Minor reformatting.
8718
87192011-08-04 Bob Duff <duff@adacore.com>
8720
8721 * s-tasren.adb (Task_Do_Or_Queue): Previous code was reading
8722 Acceptor.Terminate_Alternative without locking Acceptor, which causes a
8723 race condition whose symptom is to fail to lock Parent. That, in turn,
8724 causes Parent.Awake_Count to be accessed without locking Parent, which
8725 causes another race condition whose symptom is that Parent.Awake_Count
8726 can be off by 1 (either too high or too low). The solution is to lock
8727 Parent unconditionally, and then lock Acceptor, before reading
8728 Acceptor.Terminate_Alternative.
8729
4fdebd93
AC
87302011-08-04 Arnaud Charlet <charlet@adacore.com>
8731
8732 * debug.adb: Update comment.
8733
87342011-08-04 Robert Dewar <dewar@adacore.com>
8735
8736 * par_sco.adb, exp_util.adb, make.adb, a-tags.adb, sem_prag.adb,
8737 sem_util.adb, sem_attr.adb, exp_ch4.adb, g-comlin.adb, g-comlin.ads,
8738 exp_ch6.adb: Minor reformatting.
8739
87402011-08-04 Gary Dismukes <dismukes@adacore.com>
8741
8742 * gnat_ugn.texi: Add sentence about the case of compile-time-detected
8743 checks for -gnateE.
8744
87452011-08-04 Ed Schonberg <schonberg@adacore.com>
8746
8747 * gnat_rm.texi: update Ravenscar desription to reflect Ada2012 RM.
8748
87492011-08-04 Thomas Quinot <quinot@adacore.com>
8750
8751 * sinfo.ads: Minor reformatting.
8752
87532011-08-04 Emmanuel Briot <briot@adacore.com>
8754
8755 * makeutl.adb, makeutl.ads, prj-nmsc.adb (Complete_Mains): report error
8756 even if there is no location.
8757
6aaa0587
ES
87582011-08-04 Ed Schonberg <schonberg@adacore.com>
8759
8760 * sem_res.adb, sem_ch4.adb: move check for restriction
8761 No_Task_Hierarchy to resolve_allocator.
8762
35a1c212
AC
87632011-08-04 Thomas Quinot <quinot@adacore.com>
8764
8765 * sinfo.adb, sinfo.ads, sem_prag.adb, sem_ch12.adb (Pragma_Enabled):
8766 This flag of N_Pragma nodes is not used, remove it as well as all of
8767 the associated circuitry.
8768
87692011-08-04 Javier Miranda <miranda@adacore.com>
8770
8771 * exp_disp.adb (Make_DT): Switch -gnatdQ disables the generation of the
8772 runtime check on duplicated externa tags
8773 * debug.adb Document switch -gnatdQ.
8774
87752011-08-04 Gary Dismukes <dismukes@adacore.com>
8776
8777 * a-fihema.ads: Minor typo fix.
8778
87792011-08-04 Yannick Moy <moy@adacore.com>
8780
8781 * sem_ch10.adb: Minor comment update.
8782
87832011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8784
8785 * einfo.adb: Update the node field usage to reflect the renaming of
8786 Return_Flag to Return_ Flag_Or_Transient_Decl.
8787 (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl.
8788 (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl.
8789 (Write_Field15_Name): Change Return_Flag to
8790 Return_Flag_Or_Transient_Decl.
8791 * einfo.ads: Rename node field Return_Flag to
8792 Return_Flag_Or_Transient_Decl. Update the associated comment and all
8793 occurrences in entities.
8794 (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. Update
8795 associated Inline pragma.
8796 (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. Update
8797 associated Inline pragma.
8798 * exp_ch4.ads, exp_ch4.adb (Expand_N_Expression_With_Actions): New
8799 routine.
8800 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Update the calls to
8801 Return_Flag and Set_Return_Flag.
8802 * exp_ch7.adb (Process_Declarations): Add code to recognize hook
8803 objects generated for controlled transients declared inside an
8804 Exception_With_Actions. Update the calls to Return_Flag.
8805 (Process_Object_Declaration): Add code to add a null guard for hook
8806 objects generated for controlled transients declared inside an
8807 Exception_With_Actions. Update related comment.
8808 * exp_util.adb (Has_Controlled_Objects): Add code to recognize hook
8809 objects generated for controlled transients declared inside an
8810 Exception_With_Actions. Update the calls to Return_Flag.
8811 * expander.adb (Expand): Add new case for N_Expression_With_Actions.
8812
88132011-08-04 Ed Schonberg <schonberg@adacore.com>
8814
8815 * sem_util.adb:(Wrong_Type): Improve error message on a one-element
8816 positional aggregate.
8817
88182011-08-04 Vincent Celier <celier@adacore.com>
8819
8820 * par_sco.adb (Process_Decisions.Output_Header): Check and record pragma
8821 SLOC only for pragmas.
8822
88232011-08-04 Emmanuel Briot <briot@adacore.com>
8824
8825 * projects.texi: Minor typo fix.
8826
88272011-08-04 Emmanuel Briot <briot@adacore.com>
8828
8829 * prj-nmsc.adb (Check_File): Minor change to traces, to help debugging
8830 on case-sensitive file systems.
8831
c2873f74
TQ
88322011-08-04 Thomas Quinot <quinot@adacore.com>
8833
8834 * put_scos.adb (Put_SCOs): Do not emit decision SCO for an X decision
8835 nested in a disabled pragma.
8836 * scos.ads, scos.adb, par_sco.ads, par_sco.adb: Record sloc of
8837 enclosing pragma, if any, for X decisions.
8838
88392011-08-04 Thomas Quinot <quinot@adacore.com>
8840
8841 * sem_prag.adb: Minor reformatting.
8842
46414266
VC
88432011-08-04 Vincent Celier <celier@adacore.com>
8844
8845 * a-tags.adb (Check_TSD): Avoid concatenation of strings, as it is not
8846 allowed in no run time mode.
8847
88482011-08-04 Vincent Celier <celier@adacore.com>
8849
8850 * make.adb (Check): When -gnatc is used, check for the source file
8851 inside the ALI file with a canonical case file name.
8852
afab164f
EB
88532011-08-04 Emmanuel Briot <briot@adacore.com>
8854
8855 * g-comlin.adb, g-comlin.ads (Add_Switch): Put back support for
8856 overriding the separator.
8857
fe0ec02f
AC
88582011-08-04 Robert Dewar <dewar@adacore.com>
8859
8860 * sem_aggr.adb, par_sco.adb, sem_type.adb, exp_util.adb, exp_ch9.adb,
8861 prj-nmsc.adb, sem_ch13.adb, exp_strm.adb: Minor reformatting.
8862
88632011-08-04 Robert Dewar <dewar@adacore.com>
8864
8865 * gnat_rm.texi: Minor documentation fix for pragma Annotate.
8866
88672011-08-04 Yannick Moy <moy@adacore.com>
8868
8869 * sem_attr.adb (Analyze_Attribute): add check during pre-analysis that
8870 'Result only appears in postcondition of function.
8871
88722011-08-04 Thomas Quinot <quinot@adacore.com>
8873
8874 * a-tags.adb (Check_TSD): When raising PROGRAM_ERROR for a duplicated
8875 external tag, include the value of the external tag in the exception
8876 message.
8877
0180fd26
AC
88782011-08-04 Yannick Moy <moy@adacore.com>
8879
8880 * sem_attr.adb (Result): modify error message for misplaced 'Result
8881
88822011-08-04 Sergey Rybin <rybin@adacore.com>
8883
8884 * gnat_rm.texi (pragma Annotate): Fix syntax description to make it
8885 clear that the second argument must be an identifier.
8886
88872011-08-04 Thomas Quinot <quinot@adacore.com>
8888
8889 * exp_ch9.adb (Build_Barrier_Function): When compiling with
8890 -fpreserve-control-flow, insert an IF statement on the barrier
8891 condition to ensure that a conditional branch instruction is generated.
8892
88932011-08-04 Emmanuel Briot <briot@adacore.com>
8894
8895 * prj-part.adb, prj.adb, prj.ads, prj-tree.ads
8896 (Processing_Flags.Ignore_Missing_With): new flag.
8897
88982011-08-04 Emmanuel Briot <briot@adacore.com>
8899
8900 * prj-nmsc.adb (Find_Sources, Path_Name_Of): Fix handling of
8901 Source_List_File on case-insensitive systems where the file is actually
8902 on a case-sensitive file system (NFS,...).
8903
89042011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8905
8906 * sem_ch6.adb (Analyze_Function_Return): In a rare case where a
8907 function return contains a controlled [extension] aggregate and the
8908 return statement is not part of a handled sequence of statements, wrap
8909 the return in a block. This ensures that all controlled temporaries
8910 generated during aggregate resolution will be picked up by the
8911 finalization machinery.
8912
89132011-08-04 Ed Schonberg <schonberg@adacore.com>
8914
8915 * sem_aggr.adb (Resolve_Aggregate): If aggregate has box-initialized
8916 components, freeze type before resolution, to ensure that default
8917 initializations are present for all components.
8918 * sem_res.adb (Resolve_Actuals): the designated object of an
8919 accces-to-constant type is a legal actual in a call to an
8920 initialization procedure.
8921
89222011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8923
8924 * exp_util.adb (Extract_Renamed_Object): Add N_Type_Conversion and
8925 N_Unchecked_Type_Conversion to the possible containers of a renamed
8926 transient variable.
8927
78efd712
AC
89282011-08-04 Yannick Moy <moy@adacore.com>
8929
8930 * par-ch13.adb (Aspect_Specifications_Present): recognize
8931 "with Identifier'Class =>" as an aspect, so that a meaningful warning
8932 is issued in Strict mode.
8933 * par.adb: Fix typos in comments.
8934
89352011-08-04 Yannick Moy <moy@adacore.com>
8936
8937 * sem_attr.adb (Result): modify error message to take into account Post
8938 aspect when compiling Ada 2012 (or newer) code.
8939
89402011-08-04 Nicolas Roche <roche@adacore.com>
8941
8942 * env.c (__gnat_clearenv): Avoid use of dynamic size array in order to
2c7f9cc0 8943 remove need for GCC exceptions.
78efd712
AC
8944
89452011-08-04 Vincent Celier <celier@adacore.com>
8946
8947 * makeutl.adb (Do_Complete): Call Debug_Output with the name of the
8948 project, not the source file name.
8949 * prj.adb (Find_Sources.Look_For_Sources): If the source has been
8950 excluded, continue looking. This excluded source will only be returned
8951 if there is no other source with the same base name that is not locally
8952 removed.
8953
89542011-08-04 Ed Schonberg <schonberg@adacore.com>
8955
8956 * sem_res.adb (Resolve_Intrinsic_Operator): if the result type is
8957 private and one of the operands is a real literal, use a qualified
8958 expression rather than a conversion which is not meaningful to the
8959 back-end.
8960
0170a691
AC
89612011-08-04 Yannick Moy <moy@adacore.com>
8962
8963 * sem_ch13.adb (Aspect_Loop): when an aspect X and its classwise
8964 corresponding aspect X'Class are allowed, proceed with analysis of the
8965 aspect instead of skipping it.
8966
89672011-08-04 Tristan Gingold <gingold@adacore.com>
8968
8969 * s-flocon.adb, s-flocon.ads: Add a body for s-flocon.ads
8970 This will allow to have an Ada implementation for the subprogram.
8971
deb4f5ba
ES
89722011-08-04 Ed Schonberg <schonberg@adacore.com>
8973
8974 * sem_ch3.adb (Analyze_Full_Type_Declaration): If the declaration is a
8975 completion and aspects are present, apply them to the entity for the
8976 type which is currently the partial view, but which is the one that
8977 will be frozen.
8978 * sem_ch13.adb (Analyze_Aspect_Specifications): if the predicate
8979 applies to a partial view, indicate that the full view has predicates
8980 and delayed aspects.
8981 (Replace_Type_Reference): Handle properly predicates that apply to the
8982 full view of a private completion.
8983
fc893455
AC
89842011-08-04 Eric Botcazou <ebotcazou@adacore.com>
8985
8986 * layout.adb (Layout_Type): For composite types, do not set Esize.
8987 * freeze.adb (Set_Small_Size): Remove test on alignment and do not
8988 set Esize.
8989 (Size_Known): Look at the RM size of components instead of the Esize.
8990 (Freeze_Record_Type): Look at the RM size instead of the Esize to
8991 issue warning and activate Implicit_Packing.
8992 (Freeze_Entity): Likewise. Do not issue a warning for alias/atomic
8993 if the Esize is not known.
8994 * sem_ch13.adb (Analyze_Attribute_Definition_Clause) <Size>: Set Esize
8995 for elementary types only.
8996 (Analyze_Record_Representation_Clause): Look at the RM size instead
8997 of the Esize to issue errors.
8998 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set Esize if it
8999 is not known.
9000 <E_Record_Type>: Look at the RM size instead of the Esize. Remove
2c7f9cc0 9001 obsolete block.
fc893455
AC
9002 Look at the RM size instead of the Esize for types if the latter is
9003 not known.
9004 (gnat_to_gnu_field): Use Known_Esize instead of Known_Static_Esize.
9005
90062011-08-04 Ed Schonberg <schonberg@adacore.com>
9007
9008 * sem_type.adb: proper handling of equality not involving anonymous
9009 access types.
9010
b37d5bc6
AC
90112011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9012
9013 * exp_ch7.adb (Create_Finalizer): Remove local variables Spec_Nod and
9014 Vis_Decls. When creating a library-level finalizer for a package spec,
9015 both the declaration and body of the finalizer are inserted either in
9016 the visible or private declarations of the package spec.
9017
90182011-08-04 Javier Miranda <miranda@adacore.com>
9019
9020 * sem_ch3.adb (Derive_Subprograms): Complete assertion to request the
9021 use of the full-view of a type when invoking Is_Ancestor.
9022 * sem_type.adb (Is_Ancestor): For consistency, when the traversal of
9023 the full-view of private parents is requested, then use also the
9024 full-view of the parent of the first derivation.
9025
7ab4d95a
AC
90262011-08-04 Tristan Gingold <gingold@adacore.com>
9027
9028 * s-taprop-vxworks.adb (Enter_Task): Use System.Float_Control.Reset
9029 instead of the locally imported procedure.
9030 * s-taprop-mingw.adb (Enter_Task): Ditto.
9031 * s-valrea.adb (Scan_Real): Ditto.
9032 * s-imgrea.adb (Set_Image_Real): Ditto.
9033 * s-flocon.ads: Make the package pure.
9034
90352011-08-04 Thomas Quinot <quinot@adacore.com>
9036
9037 * sinfo.ads, sinfo.adb (Debug_Statement, Set_Debug_Statement): Remove.
9038 * tbuild.ads, tbuild.adb (Make_Pragma): Adjust accordingly.
9039 * sinfo-cn.ads, sinfo-cn.adb (Change_Name_To_Procedure_Call_Statement):
9040 New subprogram, moved here from...
9041 * par.adb, par-ch5.adb (P_Statement_Name): ... here.
9042 * par-prag.adb (Par.Prag, case Pragma_Debug): Do not perform any
9043 rewriting of the last argument into a procedure call statement here...
9044 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): ...do it there
9045 instead.
9046
90472011-08-04 Thomas Quinot <quinot@adacore.com>
9048
9049 * par_sco.adb: Minor reformatting.
9050
51c400f5
AC
90512011-08-04 Robert Dewar <dewar@adacore.com>
9052
9053 * erroutc.adb: Minor reformatting.
9054
90552011-08-04 Thomas Quinot <quinot@adacore.com>
9056
9057 * par_sco.adb: Comment update.
9058
90592011-08-04 Tristan Gingold <gingold@adacore.com>
9060
9061 * s-flocon.ads: New file.
9062 * g-flocon.ads: Now a renaming of s-flocon.
9063 * Makefile.rtl: Add s-flocon.o
9064
6a49f110
AC
90652011-08-04 Javier Miranda <miranda@adacore.com>
9066
9067 * exp_strm.adb (Build_Array_Input_Function): if the array type is
9068 constrained, do not attempt to build a subtype of it.
9069
90702011-08-04 Yannick Moy <moy@adacore.com>
9071
9072 * errout.ads Change comments: remove 'R'M as an example where quotes
9073 are needed; add ALFA as another case where quotes are not needed
9074 * erroutc.adb (Set_Msg_Insertion_Reserved_Word): add ALFA as another
9075 case where quotes are not needed.
9076 * sem_ch11.adb, sem_ch13.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb,
9077 sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_prag.adb, sem_res.adb:
9078 Remove all occurrences of 'A'L'F'A
9079
90802011-08-04 Ed Schonberg <schonberg@adacore.com>
9081
9082 * sem_ch13.adb: check legality of invariant pragma.
9083
a4640a39
AC
90842011-08-04 Eric Botcazou <ebotcazou@adacore.com>
9085
9086 * bindgen.adb: Add comments.
9087
90882011-08-04 Yannick Moy <moy@adacore.com>
9089
9090 * einfo.adb, einfo.ads: Free Flag254 and make Formal_Proof_On a
9091 synthesized flag.
9092 * sem_prag.adb (Analyze_Pragma): record the pragma Annotate
9093 (Formal_Proof, On/Off) in the Rep_Item list of the current subprogram.
9094
90952011-08-04 Robert Dewar <dewar@adacore.com>
9096
9097 * exp_ch7.adb, exp_ch6.adb, sem_ch3.adb, layout.adb, sem_ch5.adb,
9098 osint-c.ads, sem_util.ads, gnat1drv.adb, targparm.ads, sem_ch6.adb,
9099 sem_ch13.adb, s-pooloc.adb: Minor reformatting.
9100
39ade2f9
AC
91012011-08-04 Thomas Quinot <quinot@adacore.com>
9102
9103 * s-pooloc.ads, s-pooglo.ads: Minor reformatting
9104
91052011-08-04 Thomas Quinot <quinot@adacore.com>
9106
9107 PR ada/47880
9108 * s-pooloc.adb (Deallocate): Fix the case of deallocating the only
9109 allocated object.
9110
91112011-08-04 Robert Dewar <dewar@adacore.com>
9112
9113 * einfo.ads, exp_ch4.adb: Minor reformatting.
9114
91152011-08-04 Jerome Lambourg <lambourg@adacore.com>
9116
9117 * back_end.ads (Gen_Or_Update_Object_File): Add more comments.
9118
7efc3f2d
AC
91192011-08-04 Ed Schonberg <schonberg@adacore.com>
9120
9121 * exp_ch4.adb (Expand_Composite_Equality): code cleanup: use component
9122 type in all cases to compute list of primitive operations, because full
9123 view may be an itype that is not attached to the list of declarations.
9124
91252011-08-04 Eric Botcazou <ebotcazou@adacore.com>
9126
9127 * bindgen.adb (Gen_Adafinal_Ada): Generate an early return if the
9128 library has already been finalized.
9129 (Gen_Adafinal_C): Likewise.
9130 (Gen_Adainit_Ada): Generate an early return if the library has
9131 already been elaborated.
9132 (Gen_Adainit_C): Likewise.
9133 (Gen_Output_File_Ada): Generate an elaboration flag.
9134 (Gen_Output_File_C): Likewise.
9135
f65df609
HK
91362011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9137
9138 * exp_ch4.adb (Expand_Allocator_Expression): Disable the generation of
9139 Set_Finalize_Address_Ptr for CodePeer because Finalize_Address was not
9140 built in the first place.
9141 (Expand_N_Allocator): Disable the generation of Set_Finalize_Address_Ptr
9142 for CodePeer because Finalize_Address was not built to begin with.
9143 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Ditto.
9144
a0fb8fe8
AC
91452011-08-04 Pascal Obry <obry@adacore.com>
9146
9147 * adaint.c (__gnat_tmp_name): Use current process id to create temp
9148 filenames, this ensures unicity of filenames across processes.
9149
91502011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9151
9152 * bindgen.adb (Gen_Finalize_Library_Ada): Rename generated routine
9153 Raise_Controlled to Raise_From_Controlled_Operation. Update the
9154 signature of Raise_From_Controlled_Operation by adding flag From_Abort.
9155 Add False as the actual to From_Abort in the generated call to
9156 Raise_From_Controlled_Operation.
9157
91582011-08-04 Jerome Lambourg <lambourg@adacore.com>
9159
9160 * osint-c.ads, osint-c.adb (Set_Library_Info_Name): Move to declaration
9161 so that the ali file name can be retrieved from outside of this package.
9162 * back_end.ads, back_end.adb (Gen_Or_Update_Object_File): New method
9163 doing nothing in the general case, but used to update the object file
9164 timestamp if directly generated by the backend.
9165 * gnat1drv.adb (Gnat1drv): Make sure the object file's timestamp is set
9166 to a later time than the ali file one.
9167
9534ab17
AC
91682011-08-04 Yannick Moy <moy@adacore.com>
9169
9170 * einfo.adb, einfo.ads (Formal_Proof_On): new flag set on subprogram
9171 entities whose body contains an Annotate pragma which forces formal
9172 proof on this body.
9173 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
9174 sem_ch6.adb, sem_ch9.adb, sem_res.adb: Adapt call to
9175 Mark_Non_ALFA_Subprogram to pass in a message and node.
9176 * sem_prag.adb (Analyze_Pragma): add treatment of pragma Annotate
9177 (Forma_Proof, On) which sets the flag Formal_Proof_On in the
9178 surrounding subprogram.
9179 * sem_util.adb, sem_util.ads (Mark_Non_ALFA_Subprogram,
9180 Mark_Non_ALFA_Subprogram_Unconditional): if the subprogram being marked
9181 as not in ALFA is annotated with Formal_Proof being On, then an error
9182 is issued based on the additional parameters for message and node.
9183 * snames.ads-tmpl (Name_Formal_Proof): new name for annotation.
9184 * gcc-interface/Make-lang.in: Update dependencies.
9185
91862011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9187
9188 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not generate
9189 Finalize_Address when CodePeer is enabled.
9190
91912011-08-04 Pascal Obry <obry@adacore.com>
9192
9193 * adaint.c (__gnat_tmp_name): Use _tempnam() instead of tempnam() as
9194 the latter returns a pointer to a static buffer which is deallocated
9195 at the end of the routine.
9196
5c0e97dd
AC
91972011-08-04 Yannick Moy <moy@adacore.com>
9198
9199 * sem_ch3.adb (Array_Type_Declaration): move test for type in ALFA
9200 after index creation; mark unconstrained base array type generated as
9201 being in/not in ALFA as well
9202 (Make_Index): mark subtype created as in/not in ALFA
9203 * sem_ch5.adb (Analyze_Iteration_Scheme): mark entity for iterating
9204 over a loop as in/not in ALFA, depending on its type and form of loop
9205 iteration.
9206
92072011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9208
9209 * exp_ch7.adb (Build_Object_Declarations): Initialize flag Abort
9210 directly to False on .NET and JVM.
9211
7a93c64b
YM
92122011-08-04 Yannick Moy <moy@adacore.com>
9213
9214 * sem_ch3.adb (Constrain_Enumeration, Constrain_Integer): remove
9215 constraint that subtype must come from source code to be in ALFA, so
9216 that anonymous subtypes can be in ALFA too.
9217
e9a1ed9b
YM
92182011-08-04 Yannick Moy <moy@adacore.com>
9219
9220 * sem_ch3.adb (Analyze_Object_Declaration): remove obsolete addition of
9221 reference for ALFA mode.
9222 * lib-xref-alfa.adb, lib-xref.ads (Traverse_Compilation_Unit): make
9223 procedure public so as to use it from formal verification back-end.
9224
8e293fbd
AC
92252011-08-04 Jerome Lambourg <lambourg@adacore.com>
9226
9227 * g-comlin.adb (For_Each_Simple_Switch.Is_In_Config): Remove the
9228 invalid checks of the Parameter, making Remove_Switch not working
9229 correctly.
9230
92312011-08-04 Arnaud Charlet <charlet@adacore.com>
9232
9233 * targparm.ads: Update header: no run-time exception is needed on this
9234 file.
9235
92362011-08-04 Vincent Celier <celier@adacore.com>
9237
9238 * a-fihema.adb: Use System.IO instead of GNAT.IO
9239
92402011-08-04 Thomas Quinot <quinot@adacore.com>
9241
9242 * sem_ch3.adb (Access_Definition): Anonymous access to subprogram types
9243 are forbidden in Compiler_Unit mode.
9244
cfae2bed
AC
92452011-08-04 Robert Dewar <dewar@adacore.com>
9246
9247 * sem_util.adb: Minor reformatting.
9248
92492011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9250
9251 * bindgen.adb (Gen_Finalize_Library_Ada): Update the import string for
9252 library-level finalizers.
9253 (Gen_Finalize_Library_C): Update the import string for library-level
9254 finalizers.
9255 (Gen_Finalize_Library_Defs_C): Update the definition name of a
9256 library-level finalizer.
9257 * exp_ch7.adb: Remove with and use clauses for Stringt.
9258 (Create_Finalizer): Remove local variables Conv_Name, Prag_Decl,
9259 Spec_Decl. Add local variable Body_Id. The names of library-level
9260 finalizers are now manually fully qualified and are no longer external.
9261 A single name is now capable of servicing .NET, JVM and non-VM targets.
9262 Pragma Export is no longer required to provide visibility for the name.
9263 (Create_Finalizer_String): Removed.
9264 (New_Finalizer_Name): New routine which mimics New_..._Name.
9265
01f0729a
AC
92662011-08-04 Eric Botcazou <ebotcazou@adacore.com>
9267
9268 * sem_elab.adb (Check_Internal_Call_Continue): Change the type of the
9269 elaboration counter to Standard_Short_Integer.
9270 * sem_util.adb (Build_Elaboration_Entity): Likewise.
9271 * bindgen.adb (Gen_Elab_Externals_Ada): Adjust to above change.
9272 (Gen_Elab_Externals_C): Likewise.
9273
92742011-08-04 Ed Falis <falis@adacore.com>
9275
9276 * system-vxworks-arm.ads, system-vxworks-sparcv9.ads,
9277 system-vxworks-ppc.ads, system-vxworks-m68k.ads,
9278 system-vxworks-mips.ads, system-vxworks-x86.ads
9279 (Always_Compatible_Rep): set to False for all VxWorks targets.
9280
2c1b72d7
AC
92812011-08-04 Robert Dewar <dewar@adacore.com>
9282
9283 * par_sco.adb, prj-proc.adb, make.adb, bindgen.adb, prj.adb, prj.ads,
9284 makeutl.adb, makeutl.ads, prj-nmsc.adb, exp_ch5.adb, exp_ch12.adb,
9285 exp_ch7.ads, exp_util.ads, sem_util.ads, g-comlin.ads, exp_ch6.adb,
9286 exp_ch6.ads, lib-xref.ads, exp_ch7.adb, exp_util.adb, exp_dist.adb,
9287 exp_strm.adb, gnatcmd.adb, freeze.adb, g-comlin.adb, lib-xref-alfa.adb,
9288 sem_attr.adb, sem_prag.adb, sem_util.adb, sem_elab.adb, sem_ch8.adb,
9289 sem_ch11.adb, sem_eval.adb, sem_ch13.adb, sem_disp.adb, a-fihema.adb:
9290 Minor reformatting and code reorganization.
9291
92922011-08-04 Emmanuel Briot <briot@adacore.com>
9293
9294 * projects.texi: Added doc for aggregate projects.
9295
824e9320
AC
92962011-08-04 Emmanuel Briot <briot@adacore.com>
9297
9298 * prj-proc.adb, prj-nmsc.adb, prj-env.adb (Process_Declarative_Items):
9299 Add support for overriding the Project_Path in aggregate projects.
9300
93012011-08-04 Robert Dewar <dewar@adacore.com>
9302
9303 * a-cofove.ads: Minor reformatting.
9304
93052011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9306
9307 * exp_ch7.adb (Build_Adjust_Or_Finalize_Statements): Update the comment
9308 on the generated code.
9309 (Build_Finalize_Statements): Update the comment on the generated code.
9310 (Build_Initialize_Statements): Update the comment on the generated code.
9311 (Build_Object_Declarations): Add local variable Result. The object
9312 declarations are now built in sequence.
9313 * rtsfind.ads: Add RE_Exception_Occurrence_Access to tables RE_Id and
9314 RE_Unit_Table.
9315
93162011-08-04 Robert Dewar <dewar@adacore.com>
9317
9318 * checks.adb, alfa.adb, alfa.ads: Minor reformatting.
9319
93202011-08-04 Eric Botcazou <ebotcazou@adacore.com>
9321
9322 * einfo.ads (Elaboration_Entity): Document new definition and use.
9323 (Elaboration_Entity_Required): Adjust to above change.
9324 * exp_attr.adb (Expand_N_Attribute_Reference): Likewise.
9325 * exp_ch12.adb: And with and use for Snames.
9326 (Expand_N_Generic_Instantiation): Test 'Elaborated attribute.
9327 * exp_util.adb (Set_Elaboration_Flag): Likewise.
9328 * sem_attr.adb (Analyze_Attribute) <Check_Library_Unit>: Delete.
9329 <Check_Unit_Name>: Deal with N_Expanded_Name.
9330 <Attribute_Elaborated>: Extend to all unit names.
9331 * sem_elab.adb: And with and use for Uintp.
9332 (Check_Internal_Call_Continue): Adjust to Elaboration_Entity change.
9333 * sem_util.ads (Build_Elaboration_Entity): Adjust comment.
9334 * sem_util.adb (Build_Elaboration_Entity): Change type to Integer.
9335 * bindgen.adb (Gen_Elab_Externals_Ada): New local subprogram taken
9336 from Gen_Adainit_Ada.
9337 (Gen_Elab_Externals_C): Likewise, but taken from Gen_Adainit_C.
9338 (Gen_Adafinal_Ada): Remove redundant test. In the non-main program
9339 case, do not call System.Standard_Library.Adafinal; instead call
9340 finalize_library if needed.
9341 (Gen_Adafinal_C): Likewise.
9342 (Gen_Adainit_Ada): Do not set SSL.Finalize_Library_Objects in the
9343 non-main program case.
9344 (Gen_Adainit_C): Generate a couple of external declarations here.
9345 In the main program case, set SSL.Finalize_Library_Objects.
9346 (Gen_Elab_Calls_Ada): Adjust to Elaboration_Entity change.
9347 (Gen_Elab_Calls_C): Likewise.
9348 (Gen_Finalize_Library_Ada): Likewise. Skip SAL interface units.
9349 (Gen_Finalize_Library_C): Likewise. Generate a full function.
9350 (Gen_Main_C): Put back call to Ada_Final and don't finalize library
9351 objects here.
9352 (Gen_Output_File_Ada): Generate pragma Linker_Destructor for Ada_Final
9353 if -a is specified. Call Gen_Elab_Externals_Ada. Move around call to
9354 Gen_Adafinal_Ada.
9355 (Gen_Output_File_C): Generate __attribute__((destructor)) for Ada_Final
9356 if -a is specified. Call Gen_Elab_Externals_C. Remove useless couple
2c7f9cc0 9357 of external declarations. Call Gen_Finalize_Library_C.
824e9320 9358
316d9d4f
EB
93592011-08-04 Emmanuel Briot <briot@adacore.com>
9360
9361 * prj.adb, prj.ads, makeutl.adb, makeutl.ads (Complete_Mains,
9362 Compute_Compilation_Phases): new subprogram.
9363 (Builder_Data, Builder_Project_Tree_Data): new subprogram and type
9364 The number of mains as well as the various compilation phases that
9365 need to be run are now project tree specific, since various
9366 aggregated trees might have different requirements. In particular,
9367 they do not all require bind or link phases.
9368
9434c32e
EB
93692011-08-04 Emmanuel Briot <briot@adacore.com>
9370
9371 * prj.adb, prj.ads, makeutl.adb, makeutl.ads, prj-env.adb
9372 (Project_Tree_Appdata): New type.
9373 It is now possible to associate application-specific data to a project
9374 tree. In particular, this is used in the gprbuild builder to avoid a
9375 number of global tables and htables, especially now that there can be
9376 several project trees loaded at once because of aggregate projects.
9377 (Debug_Name): new procedure.
9378 * projects.texi: Clarify syntax of "**" for Source_Dirs
9379
41ba34db
EB
93802011-08-03 Emmanuel Briot <briot@adacore.com>
9381
9382 * prj.ads, makeutl.adb, makeutl.ads (Queue.Insert): now also inserts
9383 the "roots" for a main.
9384 (Fill_From_Project): add support for aggregate projects. Main units
9385 in aggregated projects are now automatically added in the list of
9386 files to build (although this fails later on in gprbuild, because
9387 these files are not using the root proejct tree, so this needs
9388 further cleanup)
9389 * gcc-interface/Make-lang.in: Update dependencies.
9390
fccd42a9
AC
93912011-08-03 Yannick Moy <moy@adacore.com>
9392
9393 * sem_ch4.adb (Analyze_Conditional_Expression): only allow boolean
9394 conditional expression in ALFA.
9395 * sem_res.adb (Resolve_Conditional_Expression): mark non-boolean
9396 expressions as not in ALFA.
9397
93982011-08-03 Robert Dewar <dewar@adacore.com>
9399
9400 * a-cofove.adb: Minor reformatting.
9401
94022011-08-03 Emmanuel Briot <briot@adacore.com>
9403
9404 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads
9405 (Insert_Project_Sources, Insert_withed_Sources_For): moved from the
9406 gprbuild sources.
9407 These packages are more logically placed in the Queue package, since
9408 they manipulate the queue. It is also likely that they can be adapted
9409 for gnatmake, thus sharing more code.
9410 (Finish_Program, Fail_Program): moved from the gprbuild sources, so
9411 that we could move the above.
9412
94132011-08-03 Emmanuel Briot <briot@adacore.com>
9414
9415 * errutil.adb (Finalize): clean up the list of error messages on exit.
9416 Calling this subprogram multiple times will no longer show duplicate
9417 error messages on stderr.
9418
94192011-08-03 Emmanuel Briot <briot@adacore.com>
9420
9421 * g-comlin.adb, g-comlin.ads (Set_Command_Line): ignore the parameter
9422 Getopt_Switches when we have already define a command line
9423 configuration.
9424
5e8c8e44
YM
94252011-08-03 Yannick Moy <moy@adacore.com>
9426
9427 * sem_ch11.adb (Analyze_Raise_xxx_Error): do not mark such nodes as not
9428 in ALFA. Instead, they are considered as assertions to prove.
9429 * sem_ch4.adb (Analyze_Conditional_Expression): do not always mark such
9430 nodes as not in ALFA. Instead, include conditional expressions in ALFA
9431 if they have no ELSE part, or if they occur in pre- and postconditions,
9432 where the Condition cannot have side-effects in ALFA
9433 (Analyze_Membership_Op): do not mark such nodes as not in ALFA
9434 (Analyze_Type_Conversion): do not always mark such nodes as not in ALFA.
9435 Instead, include type conversion between scalar types in ALFA.
9436 * sem_ch6.adb (Process_Formals): correctly mark a parameter in ALFA
9437 if-and-only-if its type is in ALFA.
9438
5ffe0bab
AC
94392011-08-03 Thomas Quinot <quinot@adacore.com>
9440
9441 * scos.adb, get_scos.adb, put_scos.adb
9442 New code letter for decisions: G (entry guard)
9443 * par_sco.adb
9444 (Traverse_Subprogram_Body): Rename to...
9445 (Traverse_Subprogram_Or_Task_Body): New subrpogram.
9446 (Traverse_Protected_Body): New subprogram
9447 (Traverse_Declarations_Or_Statements): Add traversal of task bodies,
9448 protected bodies and entry bodies.
9449
94502011-08-03 Yannick Moy <moy@adacore.com>
9451
9452 * einfo.adb, einfo.ads (Is_Postcondition_Proc): new flag for procedure
9453 entities with get/set subprograms, which is set on procedure entities
9454 generated by the compiler for a postcondition.
9455 * sem_ch6.adb (Process_PPCs): set new flag on postcondition procedures
9456 * alfa.adb, alfa.ads (Get_Entity_For_Decl): new function returning the
9457 entity for a declaration
9458 (Get_Unique_Entity_For_Decl): new function returning an entity which
9459 represents a declaration, so that matching spec and body have the same
9460 entity.
9461
94622011-08-03 Robert Dewar <dewar@adacore.com>
9463
9464 * a-except-2005.adb, a-cfhama.adb, a-cfhase.adb, a-cfhase.ads,
9465 a-cforma.adb, a-cforse.ads, a-cforse.adb: Minor reformatting
9466
94672011-08-03 Yannick Moy <moy@adacore.com>
9468
9469 * lib-xref-alfa.adb (Detect_And_Add_ALFA_Scope): make the subprogram
9470 library-level because retriction No_Implicit_Dynamic_Code in the
9471 front-end prevents its definition as a local subprogram
9472 (Traverse_Compilation_Unit): extract new procedure from Add_ALFA_File,
9473 for reuse in other contexts
9474 (Traverse_Declarations_Or_Statements,
9475 Traverse_Handled_Statement_Sequence, Traverse_Package_Body,
9476 Traverse_Package_Declaration, Traverse_Subprogram_Body): make all these
9477 procedures take a callback parameter to be called on all declarations
9478 * lib-xref.ads
9479 (Traverse_All_Compilation_Units): new generic function to traverse a
9480 compilation unit and call a callback parameter on all declarations
9481
f9ad6b62
AC
94822011-08-03 Javier Miranda <miranda@adacore.com>
9483
9484 * sem_prag.adb (Process_Interface_Name): Allow duplicated export names
9485 in Java since they are always enclosed in a namespace that
9486 differentiates them, and overloaded entities are supported by the VM.
9487
94882011-08-03 Ed Schonberg <schonberg@adacore.com>
9489
9490 * checks.adb (Determine_Range): If a computed bound of an operation is
9491 outside the range of the base type of the expression, and overflow
9492 checks are enabled, the result is unknown and cannot be used for any
9493 subsequent constant folding.
9494 * sem_eval.adb (Compile_Time_Compare): if the bounds of one operand are
9495 unknown, so is the result of the comparison.
9496
94972011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
9498
9499 * a-except-2005.adb (Raise_From_Controlled_Operation): Add new formal
9500 From_Abort. When finalization was triggered by an abort, propagate
9501 Standard'Abort_Signal rather than Program_Error.
9502 * a-except-2005.ads (Raise_From_Controlled_Operation): Add new formal
9503 From_Abort.
9504 * a-except.adb (Raise_From_Controlled_Operation): Add new formal
9505 From_Abort. When finalization was triggered by an abort, propagate
9506 Standard'Abort_Signal rather than Program_Error.
9507 * a-except.ads:(Raise_From_Controlled_Operation): Add new formal
9508 From_Abort.
9509 * exp_ch7.adb:(Build_Adjust_Or_Finalize_Statements): New local variable
9510 Abort_Id. Update the calls to Build_Object_Declarations and
9511 Build_Raise_Statement to include Abort_Id.
9512 (Build_Adjust_Statements): New local variable Abort_Id. Update the
9513 calls to Build_Object_Declarations and Build_Raise_Statement to include
9514 Abort_Id.
9515 (Build_Finalize_Statements): New local variable Abort_Id. Update the
9516 calls to Build_Object_Declarations and Build_Raise_Statement to include
9517 Abort_Id.
9518 (Build_Components): Create an entity for Abort_Id when exceptions are
9519 allowed on the target.
9520 (Build_Finalizer): New local variable Abort_Id.
9521 (Build_Initialize_Statements): New local variable Abort_Id. Update the
9522 calls to Build_Object_Declarations and Build_Raise_Statement to include
9523 Abort_Id.
9524 (Build_Object_Declarations): Add new formal Abort_Id. Create the
9525 declaration of flag Abort_Id to preserve the original abort status
9526 before finalization code is executed.
9527 (Build_Raise_Statement): Add new formal Abort_Id. Pass Abort_Id to
9528 runtime routine Raise_From_Controlled_Operation.
9529 (Create_Finalizer): Update the call to Build_Raise_Statement to include
9530 Abort_Id. Update the call to Build_Object_Declarations to include
9531 Abort_Id. Update the layout of the finalizer body.
9532 (Make_Handler_For_Ctrl_Operation): Add an actual for From_Abort.
9533 (Process_Transient_Objects): New local variable Abort_Id. Remove the
9534 clunky code to create all flags and objects related to
9535 exception propagation and replace it with a call to
9536 Build_Object_Declarations. Update the call to Build_Raise_Statement to
9537 include Abort_Id.
9538 * exp_ch7.ads (Build_Object_Declarations): Moved from body to spec.
9539 Add new formal Abort_Id and associated comment on its use.
9540 (Build_Raise_Statement): Add new formal Abort_Id and associated comment
9541 on its use.
9542 * exp_intr.adb (Expand_Unc_Deallocation): New local variable Abort_Id.
9543 Remove the clunky code to create all flags and objects related to
9544 exception propagation and replace it with a call to
9545 Build_Object_Declarations. Update the call to Build_Raise_Statement.
9546
95472011-08-03 Eric Botcazou <ebotcazou@adacore.com>
9548
9549 * s-tassta.adb: Fix minor typos.
9550
95512011-08-03 Robert Dewar <dewar@adacore.com>
9552
9553 * rtsfind.ads, makeutl.ads, prj.ads, prj.adb, make.adb,
9554 lib-writ.adb, makeutl.adb, s-soflin.ads, clean.adb: Minor reformatting.
9555
1cdfa9be
AC
95562011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
9557
9558 * exp_ch7.adb (Create_Finalizer): Treat freeze nodes in similar fashion
9559 to packages. This ensures that the finalizer body will not end up
9560 inside the freeze node.
9561 (Process_Declarations): Add code to detect whether a freeze node has a
9562 nested finalization collection.
9563
95642011-08-03 Pascal Obry <obry@adacore.com>
9565
9566 * g-awk.adb, g-awk.ads: Make GNAT.AWK API compatible with Ada 2005.
9567 (Current_Session): Return a not null access to Session_Type.
9568 (Default_Session): Likewise.
9569
243cae0a
AC
95702011-08-03 Robert Dewar <dewar@adacore.com>
9571
9572 * a-cfdlli.adb, bindgen.adb, exp_ch4.adb, exp_ch13.adb, sem_warn.adb,
9573 exp_ch3.adb, exp_ch3.ads: Minor reformatting.
9574
95752011-08-03 Pascal Obry <obry@adacore.com>
9576
9577 * g-awk.ads: Minor comment fix.
9578
95792011-08-03 Sergey Rybin <rybin@adacore.com>
9580
9581 * tree_io.ads (ASIS_Version_Number): Update because of the changes in
9582 the tree structure related to discriminant constraints.
9583 Original_Discriminant cannot be used any more for computing the
9584 defining name for the reference to a discriminant.
9585
95862011-08-03 Ed Schonberg <schonberg@adacore.com>
9587
9588 * sem_disp.adb (Is_Tag_Indeterminate): If the return type of the
9589 function is not visibly tagged, this is not a dispatching call and
9590 therfore is not Tag_Indeterminate, even if the function is marked as
9591 dispatching on result.
9592
f553e7bc
AC
95932011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
9594
9595 * exp_ch13.adb: Add with and use clauses for Restrict and Rident.
9596 (Expand_N_Free_Statement): Add a guard to protect against run-times
9597 which do not support controlled types.
9598 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Add a guard to protect
9599 against run-times which do not support controlled types.
9600 * exp_ch4.adb (Complete_Controlled_Allocation): Add a guard to protect
9601 against run-times which do not support controlled types.
9602 * exp_ch7.adb (Build_Finalization_Collection): Add a guard to protect
9603 against run-times which do not support controlled types.
9604 * exp_util.adb (Needs_Finalization): Code reformatting. Add a guard to
9605 protect against run-times which do not support controlled types.
9606
96072011-08-03 Eric Botcazou <ebotcazou@adacore.com>
9608
9609 * exp_intr.adb: Put back with and use clauses for Exp_Ch11.
9610 (Expand_Unc_Deallocation): Expand the AT_END handler at the very end.
9611
e4982b64
AC
96122011-08-03 Ed Schonberg <schonberg@adacore.com>
9613
9614 * exp_ch5.adb (Expand_Iterator_Loop): indicate that the cursor is
9615 modified in the source, to prevent spurious warnings when compiling
9616 with -gnatg.
9617
96182011-08-03 Thomas Quinot <quinot@adacore.com>
9619
9620 * a-except-2005.adb: Minor reformatting.
9621
96222011-08-03 Ed Schonberg <schonberg@adacore.com>
9623
9624 * sem_warn.adb (Check_One_Unit): if the only mention of a withed unit
9625 is a renaming declaration in the private part of a package, do not emit
9626 a warning that the with_clause could be moved because the renaming may
9627 be used in the body or in a child unit.
9628
96292011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
9630
9631 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
9632 Propagate the Comes_From_Source attribute from the original return
9633 object to the renaming.
9634
96352011-08-03 Jose Ruiz <ruiz@adacore.com>
9636
9637 * exp_ch7.adb (Build_Raise_Statement): Do not call
9638 Raise_From_Controlled_Operation when this routine is not present in
9639 the run-time library.
9640 (Cleanup_Protected_Object, Cleanup_Task): For restricted run-time
9641 libraries (Ravenscar), tasks are non-terminating, and protected objects
9642 and tasks can only appear at library level, so we do not want
9643 finalization of protected objects nor tasks.
9644 * exp_intr.adb: Minor clarification in comment.
9645 bindgen.adb (Gen_Adainit_Ada, Gen_Main_C, Gen_Output_File_Ada,
9646 Gen_Output_File_C): Remove references to finalization of library-level
9647 objects when using restricted run-time libraries.
9648
96492011-08-03 Ed Schonberg <schonberg@adacore.com>
9650
9651 * sem_ch3.adb (Build_Discriminant_Constraints): Set
9652 Original_Discriminant only if the parent type is a generic formal.
9653
deb8dacc
HK
96542011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
9655
9656 * exp_ch13.adb: Add with and use clause for Targparm;
9657 (Expand_N_Free_Statement): Prevent the generation of a custom
9658 Deallocate on .NET/JVM targets since this requires pools and address
9659 arithmetic.
9660 * exp_ch4.adb (Expand_Allocator_Expression): When compiling for
9661 .NET/JVM targets, attach the newly allocated object to the access
9662 type's finalization collection. Do not generate a call to
9663 Set_Finalize_Address_Ptr on .NET/JVM because this routine does not
9664 exist in the runtime.
9665 (Expand_N_Allocator): When compiling for .NET/JVM targets, do not
9666 create a custom Allocate for object that do not require initialization.
9667 Attach a newly allocated object to the access type's finalization
9668 collection on .NET/JVM.
9669 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add special processing for
9670 assignment of controlled types on .NET/JVM. The two hidden pointers
9671 Prev and Next and stored and later restored after the assignment takes
9672 place.
9673 * exp_ch6.adb (Expand_Call): Add local constant Curr_S. Add specialized
9674 kludge for .NET/JVM to recognize a particular piece of code coming from
9675 Heap_Management and change the call to Finalize into Deep_Finalize.
9676 * exp_ch7.adb (Build_Finalization_Collection): Allow the creation of
9677 finalization collections on .NET/JVM only for types derived from
9678 Controlled. Separate the association of storage pools with a collection
9679 and only allow it on non-.NET/JVM targets.
9680 (Make_Attach_Call): New routine.
9681 (Make_Detach_Call): New routine.
9682 (Process_Object_Declarations): Suppress the generation of
9683 build-in-place return object clean up code on .NET/JVM since it uses
9684 pools.
9685 * exp_ch7.ads (Make_Attach_Call): New routine.
9686 (Make_Detach_Call): New routine.
9687 * exp_intr.adb Add with and use clause for Targparm.
9688 (Expand_Unc_Deallocation): Detach a controlled object from a collection
9689 on .NET/JVM targets.
9690 * rtsfind.ads: Add entries RE_Attach, RE_Detach and
9691 RE_Root_Controlled_Ptr to tables RE_Id and RE_Unit_Table.
9692 * snames.ads-tmpl: Add name Name_Prev. Move Name_Prev to the special
9693 names used in finalization.
9694
96952011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
9696
9697 * a-fihema.adb: Add with and use clauses for System.Soft_Links.
9698 (Attach, Detach): Lock the current task when chaining an object onto a
9699 collection.
9700
df3e68b1
HK
97012011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
9702
9703 * a-except.adb, a-except-2005.adb (Raise_From_Controlled_Operation):
9704 Rewritten to create the message strings when the exception is not
9705 raised by an abort during finalization.
9706 * a-except.ads, a-except-2005.ads: Add pragma Export for procedure
9707 Raise_From_Controlled_Operation and update its associated comment.
9708 * a-fihema.ads, a-fihema.adb: New GNAT unit.
9709 Ada.Finalization.Heap_Management provides key functionality
9710 associated with controlled objects on the heap, their creation,
9711 finalization and reclamation. Type Finalization_Collection is
9712 effectively a wrapper which sits ontop of a storage pool and performs
9713 all necessary bookkeeping for all the objects it contains. Each
9714 access-to-controlled or access-to-class-wide type receives a collection
9715 as part of its expansion. The compiler generates buffer code and
9716 invokes Allocate / Deallocate to create and destroy allocated
9717 controlled objects.
9718 * a-finali.adb ("="): Removed.
9719 * a-finali.ads ("="): Removed. Controlled types no longer carry hidden
9720 fields Prev and Next.
9721 * ali.adb (Scan_ALI): Add parsing code to process PF / Has_Finalizer.
9722 A library unit with at least one controlled object on the library level
9723 has a special finalizer which is invoked by the binder. To signal this,
9724 ali files carry field PF.
9725 * ali.ads: New field in type Unit_Record called Has_Finalizer. Add
9726 associated comment on field usage.
9727 * a-tags.adb (Get_RC_Offset): Removed.
9728 (Needs_Finalization): New routine.
9729 * a-tags.ads: Update the structure of the GNAT dispatch tables.
9730 Dispatch tables now carry field Needs_Finalization which provides
9731 runtime indication whether a type is controlled or has controlled
9732 components or both. Remove field RC_Offset.
9733 (Get_RC_Offset): Removed along with its associated pragma Export.
9734 Since tagged types with controlled components no longer carry hidden
9735 field _controller, the special mechanism to retrieve its location is no
9736 longer needed.
9737 (Needs_Finalization): New routine.
9738 * atree.ads, atree.adb (Elist24): New routine.
9739 (Set_Elist24): New routine.
9740 * atree.h: Add a define clause for Elist24.
9741 * bindgen.adb New library-level variable Lib_Final_Built.
9742 (Gen_Adafinal_Ada): Reimplemented. Depending on the restrictions or the
9743 presence of a VM target, the routine generates calls to the proper
9744 library finalization routine.
9745 (Gen_Adainit_Ada): Import Finalize_Library_Objects only on non-VM
9746 targets. Set the correct library finalization routine depending on
9747 whether the library has controlled objects or this is a VM compilation.
9748 (Gen_Finalize_Library_Ada): New routine. This procedure generates calls
9749 to library-level finalizers of compiled units in reverse order of
9750 elaboration. It also produces exception management code and reraises a
9751 potential exception after all units have been finalized.
9752 (Gen_Finalize_Library_C): New routine. This procedure generates calls to
9753 library-level finalizers of compiled units in reverse order of
9754 elaboration.
9755 (Gen_Finalize_Library_Defs_C): New routine. This procedure generates the
9756 definitions of all library-level finalizers available to the compilation
9757 (Gen_Main_Ada): Directly call Adafinal which now contails all target
9758 dependent code.
9759 (Gen_Main_C): Add new local constant Needs_Library_Finalization. Call
9760 System.Standard_Library.Adafinal directly. If the library needs
9761 finalization actions, create the sequence of finalization calls.
9762 (Gen_Output_File_Ada): Alphabetize local variables and constants.
9763 Generate a with clause for System.Soft_Links when compiling for a VM.
9764 Remove the code which imports System.Standard_Library.Adafinal as
9765 Do_Finalize. Generate the library finalization routine.
9766 (Gen_Output_File_C): Add new local constant Needs_Library_Finalization.
9767 If the library needs finalization actions, create all the definitions
9768 of library- level finalizers.
9769 (Has_Finalizer): New routine. Determines whether at least one compiled
9770 unit has a library-level finalizer.
9771 Add type Qualification_Mode.
9772 (Set_Unit_Name): Add a formal which controls the replacement of a dot.
9773 * einfo.adb: New usage of field 15 as Return_Flag.
9774 Remove Finalization_Chain_Entity from the usages of field 19.
9775 Remove Associated_Final_Chain from the usages of field 23.
9776 New usage of field 23 as Associated_Collection.
9777 New usage of field 24 as Finalizer.
9778 New usage of flag 252 as Is_Processed_Transient.
9779 (Associated_Final_Chain): Removed.
9780 (Associated_Collection): New routine.
9781 (Finalization_Chain_Entity): Removed.
9782 (Finalizer): New routine.
9783 (Is_Finalizer): New routine.
9784 (Is_Processed_Transient): New routine.
9785 (Return_Flag): New routine.
9786 (Set_Associated_Final_Chain): Removed.
9787 (Set_Associated_Collection): New routine.
9788 (Set_Finalization_Chain_Entity): Removed.
9789 (Set_Finalizer): New routine.
9790 (Set_Is_Processed_Transient): New routine.
9791 (Set_Return_Flag): New routine.
9792 (Write_Entity_Flags): Include Is_Processed_Transient to the list of
9793 displayed flags.
9794 (Write_Field8_Name): Alphabetize the output.
9795 (Write_Field11_Name): Alphabetize the output.
9796 (Write_Field12_Name): Alphabetize the output.
9797 (Write_Field13_Name): Alphabetize the output.
9798 (Write_Field14_Name): Alphabetize the output.
9799 (Write_Field15_Name): Alphabetize the output.
9800 (Write_Field16_Name): Alphabetize the output.
9801 (Write_Field17_Name): Alphabetize the output.
9802 (Write_Field18_Name): Alphabetize the output.
9803 (Write_Field19_Name): Alphabetize the output. Remove the output of
9804 Finalization_Chain_Entity.
9805 (Write_Field20_Name): Alphabetize the output.
9806 (Write_Field21_Name): Alphabetize the output.
9807 (Write_Field22_Name): Alphabetize the output.
9808 (Write_Field23_Name): Alphabetize the output. Remove the output of
9809 Associated_Final_Chain. Add output for Associated_Collection.
9810 (Write_Field24_Name): Alphabetize the output.
9811 (Write_Field25_Name): Add output for Finalizer.
9812 (Write_Field26_Name): Alphabetize the output.
9813 (Write_Field27_Name): Alphabetize the output.
9814 (Write_Field28_Name): Alphabetize the output.
9815 * einfo.ads: Add new field description for Associated_Collection and
9816 its uses in nodes.
9817 Remove Associated_Final_Chain and its uses in nodes.
9818 Remove Finalization_Chain_Entity and its uses in nodes.
9819 Add new field description for Finalizer and its uses in nodes.
9820 Add new synthesized attribute Is_Finalizer.
9821 Add new flag description for Is_Processed_Transient and its uses in
9822 nodes.
9823 Add new field description for Return_Flag and its uses in nodes.
9824 (Associated_Final_Chain): Removed along with its pragma Inline.
9825 (Associated_Collection): New routine and pragma Inline.
9826 (Finalization_Chain_Entity): Removed along with its pragma Inline.
9827 (Finalizer): New routine and pragma Inline.
9828 (Is_Finalizer): New routine and pragma Inline.
9829 (Is_Processed_Transient): New routine and pragma Inline.
9830 (Return_Flag): New routine and pragma Inline.
9831 (Set_Associated_Final_Chain): Removed along with its pragma Inline.
9832 (Set_Associated_Collection): New routine and pragma Inline.
9833 (Set_Finalization_Chain_Entity): Removed along with its pragma Inline.
9834 (Set_Finalizer): New routine and pragma Inline.
9835 (Set_Is_Processed_Transient): New routine and pragma Inline.
9836 (Set_Return_Flag): New routine and pragma Inline.
9837 * exp_aggr.adb: Alphabetize subprograms.
9838 (Build_Array_Aggr_Code): Remove formal Flist and its associated comment.
9839 (Build_Record_Aggr_Code): Remove formals Flist and Obj along with their
9840 associated comments. Remove local variables External_Final_List and
9841 Attach.
9842 Rename Ctrl_Stuff_Done to Finalization_Done. Rename local variable A to
9843 Ancestor. Remove the retrieval of finalization lists. Update the call to
9844 Make_Adjust_Call.
9845 (Convert_Aggr_In_Allocator): Remove the retrieval of finalization
9846 lists. Update the call to Late_Expansion.
9847 (Convert_Aggr_In_Assignment): Update the call to Late_Expansion.
9848 (Convert_Aggr_In_Object_Decl): Update the call to Late_Expansion.
9849 (Gen_Assign): Remove the retrieval of the finalization list used to
9850 build the assignment. Update the calls to Make_Init_Call and
9851 Make_Adjust_Call.
9852 (Gen_Ctrl_Actions_For_Aggr): Renamed to Generate_Finalization_Actions.
9853 Remove the mechanism to determine attachment levels and finalization
9854 list retrieval. Remove the processing for coextensions.
9855 (Init_Controller): Removed. Controllers no longer exist.
9856 (Late_Expansion): Remove formals Flist and Obj along with their
9857 associated comments. Update the calls to Build_Record_Aggr_Code and
9858 Build_Array_Aggr_Code.
9859 * exp_ch13.adb (Expand_N_Free_Statement): New routine.
9860 (Expand_N_Freeze_Entity): Add special processing for finalizers which
9861 appear in entry bodies, protected subprograms and task bodies.
9862 * exp_ch13.ads (Expand_N_Free_Statement): New routine.
9863 * exp_ch3.adb (Add_Final_Chain): Removed.
9864 (Build_Array_Init_Proc): Alphabetize local variables.
9865 (Build_Assignment): Alphabetize local variables. Update the call to
9866 Maked_Adjust_Call.
9867 (Build_Class_Wide_Master): Rename local variables to better reflect
9868 their role.
9869 (Build_Discriminant_Assignments): Code reformatting.
9870 (Build_Init_Call_Thru): Code reformatting.
9871 (Build_Init_Procedure): Code reformatting. Generate a special version
9872 of Deep_Finalize which is capable of finalizing all initialized
9873 components and ignore the rest.
9874 (Build_Init_Statements): Rename local variables to better reflect their
9875 role.
9876 Reimplement the mechanism to include the creation and update of an index
9877 variable called a "counter". It is used as a bookmark for tracing
9878 initialized and non-initialized components.
9879 (Build_Initialization_Call): Remove local variable Controller_Typ.
9880 Alphabetize all local variables. Remove the initialization of the
9881 record controller and update the call to Make_Init_Call.
9882 (Build_Record_Init_Proc): Rename formal Pe to Rec_Ent.
9883 New local variable Counter.
9884 (Constrain_Array): Alphabetize.
9885 (Expand_Freeze_Array_Type): Create a collection instead of a
9886 finalization list.
9887 (Expand_Freeze_Class_Wide_Type): New routine. Creates TSS primitive
9888 Finalize_Address which is used in conjunction with allocated controlled
9889 objects.
9890 (Expand_N_Object_Declaration): Remove the creation of a finalization
9891 list for anonymous access types. Update the calls to Make_Init_Call and
9892 Make_Adjust_Call.
9893 (Expand_Freeze_Record_Type): Remove local variable Flist. Remove the
9894 retrieval of finalization lists. Remove the expansion of the record
9895 controller. Create TSS primitive Finalize_Address used in conjunction
9896 with controlled objects on the heap. Create finalization collections
9897 for access-to-controlled record components.
9898 (Expand_Record_Controller): Removed.
9899 (Freeze_Type): Remove the freezing of record controllers. Freezing of
9900 class-wide types now requires additional processing. Create
9901 finalization collections for access-to-controlled types.
9902 (Increment_Counter): New routine.
9903 (Make_Counter): New routine.
9904 (Make_Eq_If): Remove the mention of Name_uController.
9905 (Make_Predefined_Primitive_Specs): There is no longer need to skip
9906 types coming from System.Finalization_Root.
9907 (Predef_Deep_Spec): Reimplemented to reflect the new parameter profiles.
9908 (Predefined_Primitive_Bodies): There is no longer need to skip types
9909 coming from System.Finalization_Root.
9910 (Stream_Operation_OK): Do not generate stream routines for
9911 type Ada.Finalization.Heap_Management.Finalization_Collection.
9912 * exp_ch3.ads: Alphabetize subprograms.
9913 * exp_ch4.adb: Remove with and use clause for Sem_Ch8.
9914 Add with and use clause for Lib.
9915 (Complete_Coextension_Finalization): Removed.
9916 (Complete_Controlled_Allocation): New routine. Create a finalization
9917 collection for anonymous access-to-controlled types. Create a custom
9918 Allocate which interfaces with the back end and the machinery in
9919 Heap_Management.
9920 (Expand_Allocator_Expression): Add necessary calls to
9921 Complete_Controlled_Allocation. Remove the retrieval of finalization
9922 lists. Update the calls to Make_Adjust_Call. Generate a call to
9923 Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate
9924 the associated collection.
9925 (Expand_N_Allocator): Remove the processing for dynamic coextensions.
9926 Code clean up. Remove the retrieval of finalization lists and
9927 attachment levels.
9928 Update the call to Make_Init_Call. Generate a call to
9929 Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate
9930 the associated collection.
9931 (Get_Allocator_Final_List): Removed. Finalization lists are not
9932 available.
9933 (Suitable_Element): Remove the mention of Name_uController.
9934 * exp_ch5.adb: Remove with and use clauses for Ttypes and Uintp.
9935 (Make_Tag_Ctrl_Assignment): Rewritten to simply do a finalization of
9936 the left hand side, carry out the assignment and adjust the left hand
9937 side.
9938 * exp_ch6.adb (Add_Final_List_Actual_To_Build_In_Place_Call): Removed.
9939 (Add_Collection_Actual_To_Build_In_Place_Call): New routine.
9940 (BIP_Formal_Suffix): Rename BIP_Final_List and BIPfinallist to
9941 BIP_Collection and BIPcollection.
9942 (Build_Heap_Allocator): New routine used to allocate the return object
9943 of a build-in-place function onto a collection.
9944 (Expand_Ctrl_Function_Call): Moved from Exp_Ch7.
9945 (Expand_Call): Do not replace direct calls to Deep routines with their
9946 aliases.
9947 (Expand_N_Extended_Return_Statement): Give all variables shorter names
9948 and update their occurrences. Add a special return flag to monitor the
9949 [ab]normal execution of the function. The flag is set right before the
9950 return statement.
9951 Rewrite the mechanism used to allocate a build-in-place return object
9952 on the heap or on a storage pool.
9953 (Is_Direct_Deep_Call): New routine.
9954 (Make_Build_In_Place_Call_In_Allocator): Add a collection to a
9955 build-in-place function call instead of a final list. Build a call to
9956 Set_Finalize_Address_Ptr to decorate the associated collection.
9957 (Make_Build_In_Place_Call_In_Anonymous_Context): Create a temporary in
9958 order to name the build-in-place function call's result for later
9959 finalization. Add a collection to a build-in-place function call
9960 instead of a final list.
9961 (Make_Build_In_Place_Call_In_Assignment): Add a collection to a
9962 build-in-place function call instead of a final list. Remove the code
9963 which moves one final list and transforms it into the actual in a
9964 nested build-in-place call.
9965 (Make_Build_In_Place_Call_In_Object_Declaration): Add a collection to a
9966 build-in-place function call instead of a final list.
9967 (Move_Final_List): Removed.
9968 (Needs_BIP_Collection): New routine.
9969 (Needs_BIP_Final_List): Removed.
9970 * exp_ch6.ads: Replace BIP_Final_List with BIP_Collection in
9971 enumeration type BIP_Formal_Kind.
9972 Update the related comment.
9973 (Needs_BIP_Collection): New routine.
9974 (Needs_BIP_Final_List): Removed.
9975 * exp_ch7.adb: Add with and use clauses for Elists, Exp_Ch6, Stringt
9976 and Ttypes. Remove with and use clauses for Sem_Type. Alphabetize the
9977 majority of subprograms in this unit. Add Name_Finalize_Address to
9978 array Name_Of and TSS_Finalize_Address to array Deep_Name_Of.
9979 (Build_Adjust_Or_Finalize_Statements): Create the adjust or finalization
9980 statements for an array type.
9981 (Build_Adjust_Statements): Create the adjust statements for a record
9982 type.
9983 (Build_Cleanup_Statements): New routine. A procedure which given any
9984 construct containing asynchronous calls, references to _master, or is a
9985 task body, a task allocation or a protected body produces the necessary
9986 runtime calls to clean up these constructs.
9987 (Build_Exception_Handler): New routine.
9988 (Build_Final_List): Removed.
9989 (Build_Finalization_Collection): New routine. A core procedure which
9990 creates a collection to service heap allocated controlled objects
9991 associated with an access-to-controlled type.
9992 (Build_Finalize_Statements): Create the finalization statements for a
9993 record types.
9994 (Build_Finalizer): New routine. A core procedure which given any
9995 construct with declarations and/or statements detects all objects which
9996 need any type of clean up (controlled objects, protected objects) and
9997 generates all necessary code to clean up the said objects in the proper
9998 order.
9999 (Build_Finalizer_Call): New routine.
10000 (Build_Initialize_Statements): Create the initialization statements for
10001 an array type. The generated routine contains code to finalize partially
10002 initialized arrays.
10003 (Build_Object_Declarations): New routine.
10004 (Build_Raise_Statement): New routine.
10005 (Clean_Simple_Protected_Objects): Removed.
10006 (Controller_Component): Removed.
10007 (Enclosing_Function): New routine.
10008 (Expand_Cleanup_Actions): Create a finalizer for a construct which has
10009 either declarations or statements or both.
10010 (Expand_N_Package_Body): Create a finalizer for a non-generic package.
10011 (Expand_N_Package_Declaration): Create a finalizer for a non-generic
10012 package.
10013 (Find_Final_List): Removed.
10014 (Global_Flist_Ref): Removed.
10015 (In_Finalization_Root): Removed.
10016 (Insert_Actions_In_Scope_Around): Determine the range of the transient
10017 scope in terms of tree nodes. Process all transient variables within
10018 that range.
10019 (Make_Adjust_Call): Rewritten. There is no longer an attach call
10020 generated after the adjust.
10021 (Make_Attach_Call): Removed.
10022 (Make_Call): New routine.
10023 (Make_Clean): Removed.
10024 (Make_Deep_Array_Body): Rewritten to simply invoke the appropriate
10025 build routines.
10026 (Make_Deep_Proc): Rewritten to generate the new profile signature used
10027 in Deep routines.
10028 (Make_Deep_Record_Body): Rewritten to simply invoke the appropriate
10029 build routines.
10030 (Make_Final_Call): Modified to simply create a call to either
10031 Deep_Finalize or Finalize.
10032 (Make_Finalize_Address_Body): New routine.
10033 (Make_Finalize_Address_Stmts): New routine. A function which produces
10034 TSS primitive Finalize_Address used in conjunction with heap allocated
10035 controlled objects.
10036 (Make_Handler_For_Ctrl_Operation): Add specialized code for .NET/JVM.
10037 (Make_Init_Call): Rewritten. There is no longer an attach call
10038 generated after initialization.
10039 (Make_Local_Deep_Finalize): New routine.
10040 (Make_Set_Finalize_Address_Ptr_Call): New routine.
10041 (Make_Transient_Block): Remove the finalization list retrieval and
10042 manipulation.
10043 (Needs_Finalization): Moved to Exp_Util.
10044 (Parent_Field_Type): New routine.
10045 (Preprocess_Components): New routine.
10046 (Process_Transient_Objects): New routine.
10047 (Wrap_HSS_In_Block): New routine.
10048 (Wrap_Transient_Declaration): Remove finalization list management and
10049 controller insertion.
10050 (Wrap_Transient_Expression): Code reformatting.
10051 (Wrap_Transient_Statement): Code reformatting.
10052 * exp_ch7.ads (Build_Final_List): Removed.
10053 (Build_Finalization_Collection): New routine.
10054 (Build_Raise_Statement): New routine.
10055 (Controller_Component): Removed.
10056 (Expand_Ctrl_Function_Call): Moved to Exp_Ch6.
10057 (Find_Final_List): Removed.
10058 (In_Finalization_Root): Removed.
10059 (Is_Simple_Protected_Type): Update related comment.
10060 (Make_Adjust_Call): New parameter profile and associated comments.
10061 (Make_Attach_Call): Removed.
10062 (Make_Final_Call): New parameter profile and associated comments.
10063 (Make_Finalize_Address_Body): New routine.
10064 (Make_Init_Call): New parameter profile and associated comments.
10065 (Make_Local_Deep_Finalize): New routine.
10066 (Make_Set_Finalize_Address_Ptr_Call): New routine.
10067 (Needs_Finalization): Moved to Exp_Util.
10068 * exp_ch9.adb (Add_Object_Pointer): Code reformatting.
10069 (Expand_N_Protected_Body): Remove the handling of finalization lists.
10070 (Find_Protection_Type): Moved to Exp_Util.
10071 * exp_disp.adb: Remove with and use clauses for Exp_Ch7.
10072 (Make_DT): Update sequence of dispatch table initialization. Remove the
10073 initialization of field RC_Offset. Add initialization of field Needs_
10074 Finalization.
10075 * exp_intr.adb (Expand_Unc_Deallocation): Code reformatting.
10076 Reimplement how an object is first finalized, then deallocated.
10077 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function):
10078 Code reformatting.
10079 * exp_tss.ads: Add special suffix for TSS primitive Finalize_Address.
10080 Register TSS_Finalize_Address with type TSS_Names.
10081 * exp_util.adb (Build_Allocate_Deallocate_Proc): New routine. This core
10082 procedure provides the interface between an allocation / deallocation
10083 and the support machinery in Ada.Finalization.Heap_Management.
10084 (Find_Init_Call): Code reformatting.
10085 (Find_Init_Call_In_List): Code reformatting.
10086 (Find_Protection_Type): Moved from Exp_Ch9.
10087 (Find_Prim_Op): Reimplement to add preference of recovered primitive.
10088 (Has_Controlled_Coextensions): Removed.
10089 (Has_Controlled_Objects): New routine.
10090 (In_Library_Level_Package_Body): New routine.
10091 (Insert_Action_After): New routine.
10092 (Is_Finalizable_Transient): New routine. This predicate determines
10093 whether an object declaration is one of the many variants of controlled
10094 transients.
10095 (Is_Null_Access_BIP_Func_Call): New routine.
10096 (Is_Non_BIP_Func_Call): New routine.
10097 (Is_Related_To_Func_Return): New routine.
10098 (Needs_Finalization): Moved from Exp_Ch7.
10099 * exp_util.ads (Build_Allocate_Deallocate_Proc): New routine.
10100 (Find_Protection_Type): Moved from Exp_Ch9.
10101 (Has_Controlled_Coextensions): Removed.
10102 (Has_Controlled_Objects): New routine.
10103 (In_Library_Level_Package_Body): New routine.
10104 (Insert_Action_After): New routine.
10105 (Is_Finalizable_Transient): New routine.
10106 (Is_Null_Access_BIP_Func_Call): New routine.
10107 (Is_Non_BIP_Func_Call): New routine.
10108 (Is_Related_To_Func_Return): New routine.
10109 (Needs_Finalization): Moved from Exp_ch7.
10110 * expander.adb (Expand): Add a case for N_Free_Statement.
10111 * freeze.adb (Freeze_All): Replace the generation of a finalization
10112 list with a collection for access-to-controlled types.
10113 (Freeze_Entity): Code reformatting.
10114 (Freeze_Record_Type): Remove the freezing of a record controller
10115 component.
10116 (Freeze_Subprogram): Code reformatting.
10117 * inline.adb (Cleanup_Scopes): Remove the reset of the scope
10118 finalization list.
10119 * lib-writ.adb (Write_Unit_Information): Output "PF" when a package
10120 has a library-level finalizer.
10121 * lib-writ.ads: Add "PF" to the sequence of unit attributes.
10122 * a-filico.ads, a-filico.adb, s-finimp.ads, s-finimp.adb: Removed.
10123 * Makefile.rtl: Remove a-filico and s-finimp from the list of object
10124 files. Add a-fihema to the list of object files.
10125 * par-ch4.adb:
10126 Alphabetize the associations in type Is_Parameterless_Attribute.
10127 * rtsfind.ads: Ada.Finalization_List.Controller and
10128 System.Finalization_Implementation are no longer a GNAT unit.
10129 Update the range of type Ada_Finalization_Child. Remove the following
10130 recoverable entities:
2c7f9cc0 10131
df3e68b1
HK
10132 RE_Attach_To_Final_List
10133 RE_Deep_Tag_Attach
10134 RE_Finalize_List
10135 RE_Finalize_One
10136 RE_Finalizable_Ptr_Ptr
10137 RE_Global_Final_List
10138 RE_Limited_Record_Controller
10139 RE_List_Controller
10140 RE_Move_Final_List
10141 RE_Record_Controller
10142 RE_Simple_List_Controller
2c7f9cc0 10143
df3e68b1 10144 Add the following recoverable entities:
2c7f9cc0 10145
df3e68b1
HK
10146 RE_Add_Offset_To_Address
10147 RE_Allocate
10148 RE_Base_Pool
10149 RE_Deallocate
10150 RE_Exception_Identity
10151 RE_Finalization_Collection
10152 RE_Finalization_Collection_Ptr
10153 RE_Needs_Finalization
10154 RE_Save_Library_Occurrence
10155 RE_Set_Finalize_Address_Ptr
10156 RE_Set_Storage_Pool_Ptr
10157 RE_Storage_Count
10158 * sem_aggr.adb (Resolve_Record_Aggregate): Remove mention of
10159 Name_uController.
10160 * sem_aux.adb (First_Discriminant): Remove mention of Name_uController.
10161 (First_Stored_Discriminant): Remove the mention of Name_uController.
10162 * sem_aux.ads: Comment reformatting.
10163 * sem_ch10.adb (Build_Chain): Signal the class-wide creation machinery
10164 to redecorate an already existing class-wide type.
10165 (Decorate_Tagged_Type): New parameter profile and associated comment.
10166 Create a "shadow class-wide type" for a shadow entity.
10167 * sem_ch11.adb (Analyze_Exception_Handlers): Remove the dubious setting
10168 of the final chain along with the associated comment.
10169 * sem_ch3.adb (Access_Type_Declaration): Add new local variable
10170 Full_Desig and set it to the full view of the designated type.
10171 Initialize the finalization collection to empty.
10172 (Build_Derived_Record_Type): Alphabetize local variables. Code
10173 reformatting.
10174 (Collect_Fixed_Components): Remove the mention of Name_uController.
10175 (Create_Constrained_Components): Remove the mention of Name_uController.
10176 (Make_Class_Wide_Type): Add specialized code to redecorate an existing
10177 class-wide type of a shadow entity.
10178 (Process_Full_View): Update the machinery which marks type
10179 Limited_Controlled's entity as limited.
10180 * sem_ch4.adb (Analyze_One_Call): Code reformatting.
10181 * sem_ch6.adb (Create_Extra_Formals): Do not generate a finalization
10182 list, instead make a collection build-in-place formal.
10183 * sem_ch8.adb (Analyze_Object_Renaming): Look at the available view of
10184 a designated type in order to establish a match between the renaming
10185 and the renamed entity.
10186 (Find_Selected_Component): Add guard to prevent spurious exceptions
10187 from being raised on .NET/JVM.
10188 * sem_disp.adb (Check_Dispatching_Operation): Include Finalize_Address
10189 to the list of primitive that need special processing. Update arrays
10190 C_Names and D_Names.
10191 (Replace_Types): Handle class-wide types.
10192 * sem_elab.adb (Check_A_Call): Since Deep_Initialize now has a
10193 different parameter profile, look at the first formal.
10194 * sem_prag.adb: Remove with and use clauses for Exp_Ch7. Add with and
10195 use clauses for Exp_Util.
10196 * sem_res.adb: Remove with and use clauses for Elists.
10197 (Propagate_Coextensions): Removed.
10198 (Resolve_Allocator): Do not propagate the list of coextensions from one
10199 allocator to another.
10200 * sem_util.adb (Build_Actual_Subtype_Of_Component): Rename variable
10201 Deaccessed_T to Desig_Typ.
10202 (Enter_Name): Remove the mention of Name_uController.
10203 (Gather_Components): Remove the mention of Name_uController.
10204 (Incomplete_Or_Private_View): New routine.
10205 (Is_Coextension_Root): Removed.
10206 (Is_Fully_Initialized_Type): Remove the mention of Name_uController.
10207 * sem_util.ads (Incomplete_Or_Private_View): New routine.
10208 (Is_Coextension_Root): Removed.
10209 * s-finroo.ads: Remove with clause for Ada.Unchecked_Conversion.
10210 Controlled types are now derived from a null tagged record. Remove
10211 types Finalizable_Ptr, Finalizable and Empty_Root_Controlled.
10212 * sinfo.adb (Coextensions): Removed.
10213 (Set_Coextensions): Removed.
10214 * sinfo.ads: Remove Coextensions from the explanation of node fields
10215 and its uses in nodes.
10216 Update the field usage of N_Allocator.
10217 (Coextensions): Removed along with its pragma Inline.
10218 (Set_Coextensions): Removed along with its pragma Inline.
10219 * snames.ads-tmpl: Remove names
2c7f9cc0 10220
df3e68b1
HK
10221 Name_uClean
10222 Name_uController
10223 Name_uFinal_List
10224 Name_uLocal_Final_List
10225 Name_Finalization_Root
10226 Name_Next
10227 Name_Prev
2c7f9cc0 10228
df3e68b1 10229 Add names
2c7f9cc0 10230
df3e68b1
HK
10231 Name_uFinalizer
10232 Name_Finalize_Address
10233 * s-pooglo.adb (Allocate): Add overriding indicator.
10234 (Deallocate): Add overriding indicator.
10235 (Storage_Size): Add overriding indicator.
10236 * s-soflin.adb (Adafinal_NT): Invoke Finalize_Library_Objects rather
10237 than Finalize_Global_List.
10238 (Null_Finalize_Global_List): Removed.
10239 (Save_Library_Occurrence): New routine.
10240 * s-soflin.ads: Remove variable Finalize_Global_List along with its
10241 initialization. Add variable Finalize_Library_Objects along with its
10242 pragma Export. Add variables Library_Exception and
10243 Library_Exception_Set along with their pragma Export.
10244 (Null_Finalize_Global_List): Removed.
10245 (Save_Library_Occurrence): New routine.
10246 * s-tassta.adb (Finalize_Global_Tasks): Call Finalize_Library_Objects
10247 rather than Finalize_Global_List.
10248 * tbuild.adb (Unchecked_Convert_To): Capture and set the parent field
10249 of the constructed node.
10250
2ee06322
RO
102512011-08-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10252
10253 * link.c: Include "auto-host.h" before system headers.
10254
f77b022b
VC
102552011-08-03 Vincent Celier <celier@adacore.com>
10256
10257 * make.adb (Gnatmake): Add to table Library_Projs only library projects
10258 that are not extended. Do not check if a library project that is
10259 extended should be regenerated. Do not add to table Library_Paths the
10260 libraries that are in extended projects. Link only with libraries that
10261 are in libray projects that are not extended.
10262 * prj-nmsc.adb (Check_Library_Attributes): Do not reset flag Library
10263 for a library project that is extended.
10264
0187b60e
AC
102652011-08-03 Gary Dismukes <dismukes@adacore.com>
10266
10267 * sem_ch6.adb (Find_Corresponding_Spec): When in an instance, skip
10268 conforming subprogram renamings that appear to be completions if they
10269 are not fully conformant.
10270 Such renamings are homographs but not completions.
10271 * sem_type.adb (Disambiguate): Handle disambiguation of overloaded
10272 names in a subprogram renaming that appears in an instance.
10273
102742011-08-03 Ed Schonberg <schonberg@adacore.com>
10275
10276 * exp_util.adb (Expand_Subtype_From_Expr): if the type is limited but
10277 not immutably limited, build actual subtype from expression to provide
10278 proper bounds to caller.
10279
102802011-08-03 Gary Dismukes <dismukes@adacore.com>
10281
10282 * sem_ch8.adb: Minor comment correction.
10283
102842011-08-03 Thomas Quinot <quinot@adacore.com>
10285
10286 * exp_strm.adb (Build_Array_Input_Function): In Ada 2005 mode, when
10287 returning a limited array, use an extended return statement.
10288
102892011-08-03 Vincent Celier <celier@adacore.com>
10290
10291 * make.adb (Initialize): If --subdirs= is used, but no project file is
10292 specified, attempt to create the specify subdir if it does not already
10293 exist and use it as the object directory as if -D had been specified.
10294
102952011-08-03 Arnaud Charlet <charlet@adacore.com>
10296
10297 * s-tpopsp-vms.adb: New file.
10298 * s-taprop-vms.adb: Put back ATCB_Key, since needed by this file on VMS.
10299 * gcc-interfaces/Makefile.in: Use s-taprop-vms.adb on VMS.
10300
e280f981
AC
103012011-08-03 Emmanuel Briot <briot@adacore.com>
10302
10303 * make.adb, makeutl.adb, makeutl.ads, clean.adb (Makeutl.Queue): new
10304 package.
10305
103062011-08-03 Yannick Moy <moy@adacore.com>
10307
10308 * cstand.adb (Create_Standard): select Universal_Integer as an ALFA type
10309 * sem_ch3.adb (Array_Type_Declaration): detect array types in ALFA
10310 * sem_util.adb, sem_util.ads (Has_Static_Array_Bounds): new function to
10311 detect that an array has static bounds.
10312
98c99a5a
AC
103132011-08-03 Thomas Quinot <quinot@adacore.com>
10314
10315 * exp_dist.adb: Minor reformatting.
10316
103172011-08-03 Arnaud Charlet <charlet@adacore.com>
10318
10319 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-vms.adb
10320 (ATCB_Key): Removed, not always used.
10321
103222011-08-03 Emmanuel Briot <briot@adacore.com>
10323
10324 * gnatcmd.adb, make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads,
10325 clean.adb, prj-conf.adb, prj-env.adb, prj-env.ads (Makeutl): remove
10326 most remaining global variables.
10327
686d0984
AC
103282011-08-03 Robert Dewar <dewar@adacore.com>
10329
10330 * gnatcmd.adb, prj-proc.adb, mlib-prj.adb, prj.adb, makeutl.ads,
10331 prj-util.adb, prj-util.ads, prj-conf.adb, prj-env.adb: Minor
10332 reformatting.
10333
103342011-08-03 Javier Miranda <miranda@adacore.com>
10335
10336 * exp_util.adb (Is_VM_By_Copy_Actual): Include N_Slide nodes as actuals
10337 that must be passed by copy in VM targets.
10338
103392011-08-03 Emmanuel Briot <briot@adacore.com>
10340
10341 * prj.ads, prj-nmsc.adb (Files_Htable): removed this htable, which
10342 duplicates a similar htable now in the project tree.
10343
103442011-08-03 Claire Dross <dross@adacore.com>
10345
10346 * a-cfdlli.adb, a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb,
10347 a-cofove.adb ("=", Length, Is_Empty, Clear, Assign, Copy, Element,
10348 Replace_Element, Query_Element, Update_Element, Move, Insert, Prepend,
10349 Append, Delete, Delete_First, Delete_Last, Reverse_Element, Swap,
10350 Splice, First, First_Element, Last, Last_Element, Next, Previous, Find,
10351 Reverse_Find, Contains, Has_Element, Iterate, Reverse_Iterate, Capacity,
10352 Reserve_Length, Length, Strict_Equal, Left, Right): Data-structure
10353 update.
10354
103552011-08-03 Arnaud Charlet <charlet@adacore.com>
10356
10357 * s-taprop-posix.adb, s-taprop-linux.adb, s-taprop-tru64.adb
10358 (ATCB_Key): Removed, not always used.
10359 * s-tpopsp-posix.adb, s-tpopsp-posix-foreign.adb (ATCB_Key): Moved from
10360 s-taprop-posix.adb.
10361 * s-tpopsp-tls.adb: New file.
10362 * gcc-interface/Makefile.in: Use TLS implementation of s-tpopsp.adb on
10363 x86/x64/ia64/powerpc/sparc Linux.
10364
103652011-08-03 Arnaud Charlet <charlet@adacore.com>
10366
10367 * system-aix.ads, system-aix64.ads: Set ZCX_By_Default to True.
10368 * gcc-interface/Makefile.in: Switch to ZCX by default on AIX ports.
10369
103702011-08-03 Thomas Quinot <quinot@adacore.com>
10371
10372 * rtsfind.ads, exp_dist.adb, exp_dist.ads
10373 (Build_From_Any_Call, Build_To_Any_Call, Build_TypeCode_Call):
10374 Fix type selection for mapping integer types to PolyORB types.
10375
103762011-08-03 Bob Duff <duff@adacore.com>
10377
10378 * sem_ch7.adb: Minor comment clarification.
10379
103802011-08-03 Bob Duff <duff@adacore.com>
10381
10382 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): If we get
10383 an error analyzing a choice, skip further processing. Further
10384 processing could cause a crash or cascade errors.
10385
40ecf2f5
EB
103862011-08-03 Emmanuel Briot <briot@adacore.com>
10387
10388 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, mlib-prj.adb,
10389 prj.adb, prj.ads, makeutl.adb, makeutl.ads, clean.adb, prj-nmsc.adb,
10390 prj-util.adb, prj-util.ads, prj-conf.adb, prj-conf.ads, prj-env.adb,
10391 prj-env.ads (Shared_Project_Tree_Data): new type
10392 An aggregate project and its aggregated trees need to share the common
10393 data structures used for lists of strings, packages,... This makes the
10394 code simpler since otherwise we have to pass the root tree (also used
10395 for the configuration file data) in addition to the current project
10396 tree. This also avoids ambiguities as to which tree should be used.
10397 And finally this saves a bit of memory.
10398 (For_Every_Project_Imported): new parameter Tree.
10399 Since aggregated projects are using a different tree, we need to let
10400 the caller know which tree to use to manipulate the returned project.
10401
9fde638d
RD
104022011-08-03 Robert Dewar <dewar@adacore.com>
10403
10404 * prj-proc.adb, exp_util.ads, exp_ch9.adb, make.adb, prj-ext.adb,
10405 prj-ext.ads, alfa.ads, sem_ch4.adb, makeutl.adb, makeutl.ads,
10406 lib-xref-alfa.adb, sem_cat.adb, exp_dist.adb, get_alfa.adb,
10407 prj-env.adb, prj-env.ads, prj-tree.adb, alfa.ads: Minor reformatting.
10408
95eb8b69
AC
104092011-08-03 Javier Miranda <miranda@adacore.com>
10410
10411 * exp_util.adb, sem_aux.adb, exp_util.ads, sem_aux.ads:
10412 Move routine Is_VM_By_Copy_Actual from sem_aux to exp_util.
10413
104142011-08-03 Bob Duff <duff@adacore.com>
10415
10416 * sem_ch8.adb (Is_Primitive_Operator_In_Use): Always check In_Use on
10417 the Base_Type.
10418
104192011-08-03 Joel Brobecker <brobecker@adacore.com brobecker>
10420
10421 * g-sha256.ads, g-sha512.ads, g-sha1.ads, g-sha224.ads, g-sha384.ads,
10422 g-sehash.ads: Fix typo. Update header.
10423
104242011-08-03 Thomas Quinot <quinot@adacore.com>
10425
10426 * exp_ch6.adb (Expand_Actuals): Remove Ada_2005 guard on build-in-place
10427 expansion.
10428
104292011-08-03 Gary Dismukes <dismukes@adacore.com>
10430
10431 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): Consider
10432 prefixes of private types along with records, since the selector may be
10433 a discriminant.
10434 * sem_res.adb (Resolve_Selected_Component): Consider prefixes of
10435 private types along with records, since the selector may be a
10436 discriminant.
10437
92e77027
AC
104382011-08-03 Emmanuel Briot <briot@adacore.com>
10439
b2f7ebc1 10440 * prj-pp.adb (Pretty_Print): Remove trailing blank line.
92e77027
AC
10441
104422011-08-03 Javier Miranda <miranda@adacore.com>
10443
10444 * sem_aux.adb (Is_VM_By_Copy_Actual): Fix wrong use of
10445 Tagged_Type_Expansion.
10446
104472011-08-03 Yannick Moy <moy@adacore.com>
10448
b2f7ebc1
GP
10449 * sem_res.adb (Resolve_Op_Concat_Arg): Do not issue a SPARK
10450 violation when the argument of concatenation is the name of a
10451 constant.
92e77027 10452
ab29a348
EB
104532011-08-03 Emmanuel Briot <briot@adacore.com>
10454
10455 * prj-proc.adb, prj-ext.adb, prj-ext.ads, prj-env.adb, prj-env.ads,
10456 prj-tree.adb, prj-tree.ads (Initialize_And_Copy, Copy): new subprograms
10457 (Process_Declarative_Items): new parameter Child_Env.
10458
9466892f
AC
104592011-08-03 Yannick Moy <moy@adacore.com>
10460
589ef536
GP
10461 * alfa.ads: Update format of ALFA section in ALI file in order to
10462 add a mapping from bodies to specs when both are present.
10463 (ALFA_Scope_Record): Add components for spec file/scope.
10464 * get_alfa.adb (Get_ALFA): Read the new file/scope for spec when
10465 present.
10466 * lib-xref-alfa.adb (Collect_ALFA): After all scopes have been
10467 collected, fill in the spec information when relevant.
10468 * put_alfa.adb (Put_ALFA): Write the new file/scope for spec when
9466892f
AC
10469 present.
10470
104712011-08-03 Eric Botcazou <ebotcazou@adacore.com>
10472
10473 * inline.adb (Add_Inlined_Subprogram): Do not consider the enclosing
10474 code unit to decide whether to add internally generated subprograms.
2c7f9cc0 10475
9466892f
AC
104762011-08-03 Javier Miranda <miranda@adacore.com>
10477
10478 * sem_aux.ads, sem_aux.adb (Is_VM_By_Copy_Actual): New subprogram.
589ef536
GP
10479 * exp_ch9.adb (Build_Simple_Entry_Call): Handle actuals that must
10480 be handled by copy in VM targets.
9466892f
AC
10481
104822011-08-03 Emmanuel Briot <briot@adacore.com>
10483
589ef536 10484 * make.adb, makeutl.adb, makeutl.ads (Make.Switches_Of): Share
9466892f
AC
10485 code with Makeutl.Get_Switches.
10486 * prj-tree.adb: Update comment.
10487
b5ea9143
AC
104882011-08-03 Thomas Quinot <quinot@adacore.com>
10489
10490 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Reject a remote
10491 subprogram with a limited formal that does not support external
10492 streaming.
10493
104942011-08-03 Yannick Moy <moy@adacore.com>
10495
10496 * get_alfa.adb (Get_ALFA): add missing Skip_Spaces at start of
10497 continuation line
10498 * lib-xref-alfa.adb (Add_ALFA_File): split removal of scopes that are
10499 not from current unit in two phases, because it is not possible to
10500 change the table while iterating over its content.
10501 * put_alfa.adb (Put_ALFA): reset current file/scope at each new entity
10502
105032011-08-03 Sergey Rybin <rybin@adacore.com>
10504
10505 * vms_data.ads: Add qualifier for gnatmetric --no-static-loop option
10506 * gnat_ugn.texi: Update description of complexity metrics (gnatmetric)
10507
668a19bc
ES
105082011-08-03 Ed Schonberg <schonberg@adacore.com>
10509
10510 * sem_res.adb (Resolve_Op_Concat_Arg): if the argument is an aggregate
10511 and the component type is composite, this is ambiguous for predefined
10512 concatenation, but if the node is not overloaded and the entity is a use
10513 -defined function its profile can be used to resolve that aggregate.
10514
170b2989
AC
105152011-08-03 Robert Dewar <dewar@adacore.com>
10516
10517 * exp_ch4.adb: Minor code cleanup.
10518
105192011-08-03 Thomas Quinot <quinot@adacore.com>
10520
10521 * exp_dist.adb: Do not generate distribution stubs if serious errors
10522 have been diagnosed.
10523
105242011-08-03 Ed Schonberg <schonberg@adacore.com>
10525
10526 * sem_ch4.adb (Try_Primitive_Operation): when checking the validity of
10527 the first formal of a primitive operation, go to the base type to
10528 handle properly an access to a derived type with constrained
10529 discriminants.
10530 * sem_type.adb (Disambiguate): an immediately visible operator hides a
10531 user-defined function that is only use-visible.
170b2989 10532
e917aec2
RD
105332011-08-03 Robert Dewar <dewar@adacore.com>
10534
10535 * sem_aggr.adb, sem_ch3.adb, lib.ads, gnatcmd.adb, prj-proc.adb,
10536 make.adb, lib-writ.adb, prj-part.adb, prj-part.ads, prj-ext.adb,
10537 fname-uf.adb, prj-ext.ads, prj.adb, prj.ads, sem_attr.adb, alfa.adb,
10538 prj-makr.adb, errout.adb, makeutl.adb, makeutl.ads, restrict.ads,
10539 sem_ch6.adb, g-pehage.adb, clean.adb, put_alfa.adb, lib-xref-alfa.adb,
10540 prj-nmsc.adb, prj-nmsc.ads, sem_ch8.adb, prj-pars.ads, exp_aggr.adb,
10541 prj-attr.ads, sem_ch13.adb, get_alfa.adb, prj-env.adb, prj-env.ads,
10542 alfa_test.adb, prj-tree.adb, prj-tree.ads, einfo.ads: Minor reformatting
10543
105442011-08-03 Robert Dewar <dewar@adacore.com>
10545
10546 * repinfo.adb (List_Mechanism): Add handling of
10547 Convention_Ada_Pass_By_XXX.
10548 * sem_mech.adb (Set_Mechanism): Ditto.
10549 * sem_prag.adb (Process_Convention): Add entries for
10550 Convention_Ada_Pass_By_XXX.
10551 * snames.adb-tmpl, snames.ads-tmpl: Ditto.
10552
49bfcf43
AC
105532011-08-03 Pascal Obry <obry@adacore.com>
10554
10555 * makeutl.adb: Minor reformatting.
10556
105572011-08-03 Vincent Celier <celier@adacore.com>
10558
10559 * fname-uf.adb
10560 (Get_File_Name) If the file cannot be found when there are no config
10561 pragmas file and May_Fail is True, return No_File instead of the file
10562 name, to be consistent.
10563
105642011-08-03 Pascal Obry <obry@adacore.com>
10565
10566 * adaint.c (__gnat_is_executable_file_attr): Avoid access
10567 to null pointer.
10568
105692011-08-03 Javier Miranda <miranda@adacore.com>
10570
10571 * sem_ch13.adb
10572 (Same_Representation): In VM targets the representation of arrays with
10573 aliased components differs from arrays with non-aliased components.
10574
34798441
EB
105752011-08-03 Emmanuel Briot <briot@adacore.com>
10576
10577 * prj-proc.adb, prj-attr.adb, prj-attr.ads (Get_Attribute_Index): do
10578 not systematically lower case attribute indexes that contain no "."
10579 Fix definition of several Naming attributes, which take
10580 a unit name as index and therefore should be case insensitive.
10581 Minor refactoring (reduce length of variable names).
10582
105832011-08-03 Emmanuel Briot <briot@adacore.com>
10584
10585 * makeutl.adb, makeutl.ads (Get_Switches): new subprogram.
10586
4437a530
EB
105872011-08-03 Emmanuel Briot <briot@adacore.com>
10588
10589 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
10590 prj-part.ads, switch-m.adb, switch-m.ads, prj-makr.adb, clean.adb,
10591 prj-pars.adb, prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
10592 prj-tree.ads (Prj.Tree.Environment): new type.
10593
804fe3c4
EB
105942011-08-03 Emmanuel Briot <briot@adacore.com>
10595
10596 * prj-proc.adb, prj.ads, makeutl.adb, makeutl.ads, prj-conf.adb,
10597 prj-tree.adb, prj-tree.ads (Environment): new type.
10598
c565bc66
AC
105992011-08-03 Emmanuel Briot <briot@adacore.com>
10600
10601 * prj-tree.ads: Remove unused variable.
10602
106032011-08-03 Yannick Moy <moy@adacore.com>
10604
10605 * restrict.adb (Restriction_Msg): set "SPARK" all in upper case for
10606 issuing messages related to SPARK restriction violation.
10607
4ee646da
AC
106082011-08-03 Ed Schonberg <schonberg@adacore.com>
10609
10610 * sem_ch6.adb: guard against error nodes in return statements.
10611
106122011-08-03 Arnaud Charlet <charlet@adacore.com>
10613
10614 * errout.adb (Error_Msg_Internal): the main unit has not been read yet,
10615 a warning can only appear on a configuration file, so emit warning
10616 without further checks.
10617
106182011-08-03 Arnaud Charlet <charlet@adacore.com>
10619
10620 * s-interr.ads: add overriding keyword.
10621
106222011-08-03 Geert Bosch <bosch@adacore.com>
10623
10624 * exp_attr.adb: Fix minor typo.
10625
106262011-08-03 Ed Schonberg <schonberg@adacore.com>
10627
10628 * par-ch4.adb: improve error recovery.
10629
c0e538ad
AC
106302011-08-03 Emmanuel Briot <briot@adacore.com>
10631
10632 * prj-part.adb, prj-part.ads, prj-makr.adb, prj-pars.adb, prj-conf.adb,
10633 prj-env.adb (Prj.Part.Parse): change parameter Always_Errout_Finalize
10634 to Errout_Handling.
10635
106362011-08-03 Emmanuel Briot <briot@adacore.com>
10637
10638 * prj-dect.adb (Parse_Attribute_Declaration): make sure we can use
10639 "external" as an attribute name in aggregate projects.
10640
106412011-08-03 Jose Ruiz <ruiz@adacore.com>
10642
10643 * s-taprop-vxworks.adb: (Create_Task, Initialize): Ada 2012 pragma CPU
10644 uses CPU numbers starting 1, while VxWorks uses CPU numbers starting
10645 from 0, so we need to adjust.
10646
106472011-08-03 Emmanuel Briot <briot@adacore.com>
10648
10649 * prj-proc.adb, prj-ext.adb, prj-ext.ads, makeutl.adb, prj-tree.adb,
10650 prj-tree.ads, gnatcmd.adb, clean.adb (External_References): new type.
10651
c4d67e2d
AC
106522011-08-03 Yannick Moy <moy@adacore.com>
10653
10654 * sem_ch6.adb (New_Overloaded_Entity): only issue error for SPARK
10655 restriction on overloaded entity if the entity is not an operator.
10656
106572011-08-03 Yannick Moy <moy@adacore.com>
10658
10659 * sem_ch7.adb, sem_res.adb, sem_attr.adb, restrict.adb,
10660 restrict.ads: Rename remaining Check_Formal_Restriction* into
10661 Check_SPARK_Restriction*.
10662
106632011-08-03 Emmanuel Briot <briot@adacore.com>
10664
10665 * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb,
10666 prj-nmsc.ads, prj-err.adb (Project_Data): now discriminated on its
10667 qualifier.
10668 (Project_Empty): removed
10669 (Empty_Project): new parameter Qualifier
10670 This is used to have fields specific to aggregate projects, cleaner
10671 New field to store the list of aggregated projects.
10672 (Check_Aggregate_Project): removed
10673 (Process_Aggregated_Projects, Free): new subprograms.
10674
3f5a8fee
AC
106752011-08-03 Olivier Hainque <hainque@adacore.com>
10676
10677 * tracebak.c (STOP_FRAME ppc AIX): Stop at null return address as well.
10678
106792011-08-03 Ed Schonberg <schonberg@adacore.com>
10680
10681 * sem_ch8.adb (Analyze_Object_Renaming): if the renamed object is an
10682 explicit dereference of an unconstrained type, create a constrained
10683 subtype for it, as is done for function calls that return an
10684 unconstrained type.
10685
106862011-08-03 Thomas Quinot <quinot@adacore.com>
10687
10688 * g-pehage.adb (Finalize): Avoid possible double-free.
10689
106902011-08-03 Steve Baird <baird@adacore.com>
10691
10692 * exp_attr.adb (Expand_N_Attribute_Reference): Don't expand
10693 Elab_Spec/Body attrs in CodePeer_Mode.
10694
106952011-08-03 Javier Miranda <miranda@adacore.com>
10696
10697 * exp_aggr.adb (Flatten): Convert to positional form aggregates whose
10698 low bound is not known at compile time but they have no others choice.
10699 Done because in this case the bounds can be obtained directly from the
10700 aggregate.
10701
107022011-08-03 Ed Falis <falis@adacore.com>
10703
10704 * s-tasinf-vxworks.ads: Update comment to reflect 0 indexing of CPUs
10705 on VxWorks SMP. Remove unusable constant ANY_CPU.
10706
a96ca600
EB
107072011-08-03 Emmanuel Briot <briot@adacore.com>
10708
10709 * gnatcmd.adb, make.adb, prj-part.adb, prj-part.ads, prj-makr.adb,
10710 clean.adb, prj-nmsc.adb, prj-pars.adb, prj-conf.adb, prj-env.adb,
10711 prj-env.ads (Prj.Env.Initialize_Default_Project_Path,
10712 Prj.Env.Initialize_Empty): new subprograms
10713 (Get_Env, Find_Project): remove parameter Target_Name.
10714
3e582869
AC
107152011-08-03 Gary Dismukes <dismukes@adacore.com>
10716
10717 * sem_ch3.adb (Build_Derived_Record_Type): Test the Derive_Subps formal
10718 as a condition for the delayed call to Derived_Subprograms done for the
10719 case of the rewriting of a derived type that constrains the
10720 discriminants of its parent type.
10721 Avoids redundant subprogram derivations for private subtype derivations.
10722
107232011-08-03 Javier Miranda <miranda@adacore.com>
10724
10725 * exp_aggr.adb (Init_Hidden_Discriminants): New subprogram of
10726 Build_Record_Aggr_Code.
10727 (Build_Record_Aggr_Code): Add missing support to initialize hidden
10728 discriminants in extension aggregates.
10729
107302011-08-03 Emmanuel Briot <briot@adacore.com>
10731
10732 * prj-pp.adb (Print): also output project qualifiers, since in
10733 particular "aggregate" is mandatory in an aggregate project.
10734
107352011-08-03 Emmanuel Briot <briot@adacore.com>
10736
10737 * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb:
10738 (Debug_Output): new function.
10739
56e94186
AC
107402011-08-03 Eric Botcazou <ebotcazou@adacore.com>
10741
10742 * gnat_ugn.texi: Document -Wstack-usage.
10743 * gcc-interface/misc.c (enumerate_modes): Add guard for ghost FP modes.
10744
107452011-08-03 Thomas Quinot <quinot@adacore.com>
10746
10747 * sem_prag.adb Issue an error (not a warning) when a C++ type does not
10748 have keyword LIMITED.
10749
107502011-08-03 Yannick Moy <moy@adacore.com>
10751
10752 * alfa.adb, alfa.ads, alfa_test.adb: New files.
10753 * ali.adb (Known_ALI_Lines): add 'C' lines (SCO) and 'F' lines (ALFA)
10754 (Scan_ALI): do not issue a fatal error if parsing known lines after Xref
10755 section (does not happen in compiler, only if code directly calls
10756 Scan_ALI).
10757 * get_alfa.adb, get_alfa.ads: New files.
10758 * lib-writ.adb, lib-writ.ads (Write_ALI): output ALFA information if
10759 needed.
10760 * lib-xref-alfa.adb: New file.
10761 * lib-xref.adb, lib-xref.ads
10762 (Xref_Entry): redefine information needed in cross-references for ALFA.
10763 Push ALFA treatments in separated local package.
10764 (Enclosing_Subpragram_Or_Package): treat specially subprogram
10765 identifiers. Return entity of package body instead of spec. Return
10766 Empty for a scope with no location.
10767 (Generate_Reference): adapt to new components for ALFA information.
10768 Remove the need for D references on definitions.
10769 (Is_Local_Reference): moved to ALFA local package
10770 (Output_References): extract subfunction as Extract_Source_Name
10771 (Output_Local_References): remove procedure, replaced by filtering of
10772 cross-references in package ALFA and printing in Put_ALFA.
10773 (Write_Entity_Name): remove procedure
10774 * lib.adb, lib.ads (Extract_Source_Name): extract here function to
10775 print exact name of entity as it appears in source file
10776 (Unit_Ref_Table): make type public for use in Lib.Xref.ALFA
10777 * put_alfa.adb, put_alfa.ads: New files.
10778 * xref_lib.adb (Search_Xref): protect read of cross-references against
10779 reading other sections of the ALI file, in gnatxref
10780 (Search): protect read of cross-references against reading other
10781 sections of the ALI file, in gnatfind.
10782 * gcc-interface/Make-lang.in: Update dependencies.
10783
107842011-08-03 Thomas Quinot <quinot@adacore.com>
10785
10786 * sem_ch3.adb: Minor reformatting.
10787
107882011-08-03 Jose Ruiz <ruiz@adacore.com>
10789
10790 * s-inmaop-vxworks.adb (Setup_Interrupt_Mask): Do nothing instead of
10791 raising an exception.
10792
107932011-08-03 Ed Schonberg <schonberg@adacore.com>
10794
10795 * sem_res.adb (Set_String_Literal_Subtype): if index type is an integer
10796 type, always use 1 as the lower bound or string, even if lower bound of
10797 context is not static, to handle properly null strings in a non-static
10798 context.
10799
108002011-08-03 Bob Duff <duff@adacore.com>
10801
10802 * sem_prag.adb (Resolve_Aggregate): An array aggregate with 'others' is
10803 always legal on the right-hand side of an assignment statement; there
10804 is always an applicable index constraint in this case. Therefore, the
10805 check for Pkind = N_Assignment_Statement is now unconditional -- it
10806 doesn't depend on whether Is_Constrained (Typ).
10807
4317e442
AC
108082011-08-03 Robert Dewar <dewar@adacore.com>
10809
10810 * exp_ch5.adb, sem_prag.adb, exp_ch4.adb: Minor reformatting.
10811
108122011-08-03 Ed Schonberg <schonberg@adacore.com>
10813
10814 * sem_ch3.adb (Build_Itype_Reference): do not create an itype reference
10815 for an itype created within a generic unit.
10816
108172011-08-03 Eric Botcazou <ebotcazou@adacore.com>
10818
10819 * gnat_ugn.texi (Switches for gcc): Make it clearer that -fno-inline
10820 suppresses all inlining.
10821
53f29d4f
AC
108222011-08-03 Robert Dewar <dewar@adacore.com>
10823
10824 * sem_ch3.adb, sem_res.adb, exp_ch13.adb, exp_disp.adb,
10825 exp_aggr.adb: Minor reformatting.
10826
108272011-08-03 Thomas Quinot <quinot@adacore.com>
10828
10829 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not force inlining of
10830 tagged assignment when discriminant checks are suppressed. This is
10831 useless and extremely costly in terms of static stack usage.
10832
108332011-08-03 Bob Duff <duff@adacore.com>
10834
10835 * sem_prag.adb (Get_Base_Subprogram): Do not follow Alias for instances
10836 of generics, because this leads to the wrong entity in the wrong scope,
10837 causing (e.g.) pragma Export_Procedure to get an error if the entity is
10838 an instance.
10839 (Process_Interface_Name): Follow Alias for instances of generics, to
10840 correct for the above change.
10841
108422011-08-03 Ed Schonberg <schonberg@adacore.com>
10843
10844 * exp_ch4.adb (Expand_N_Selected_Component): If the discriminant value
10845 is an integer literal it is always safe to replace the reference. In
10846 addition, if the reference appears in the generated code for an object
10847 declaration it is necessary to copy because otherwise the reference
10848 might be to the uninitilized value of the discriminant of the object
10849 itself.
10850
108512011-08-03 Pascal Obry <obry@adacore.com>
10852
10853 * adaint.c (__gnat_is_executable_file_attr): Fix Win32 circuitry when no
10854 ACL used, in this case we want to check for ending .exe, not .exe
10855 anywhere in the path.
10856
108572011-08-03 Sergey Rybin <rybin@adacore.com>
10858
10859 * tree_io.ads (ASIS_Version_Number): Update because of the changes in
10860 the tree structure (semantic decoration of references to record
10861 discriminants).
10862
c0b11850
AC
108632011-08-03 Gary Dismukes <dismukes@adacore.com>
10864
10865 * sem_aggr.adb (Analyze_Array_Aggregate): When checking the discrete
10866 choices of a named array aggregate, bail out when any choices are
10867 marked as Errors_Posted.
10868
108692011-08-03 Ed Schonberg <schonberg@adacore.com>
10870
10871 * exp_ch13.adb (Expand_N_Freeze_Entity): cleanup determination of scope
10872 in which entity is frozen, to handle properly loop variables in
10873 iterators.
10874
108752011-08-03 Ed Schonberg <schonberg@adacore.com>
10876
10877 * sem_res.adb (Set_String_Literal_Subtype): if the lower bound of the
10878 subtype is not static, compute the upper bound using attributes, to
10879 handle properly index types that are not integer types.
10880
108812011-08-03 Bob Duff <duff@adacore.com>
10882
10883 * gnat_rm.texi, gnat_ugn.texi: Fix some dangling URLs.
10884 Update copyright notice.
10885
108862011-08-03 Ed Schonberg <schonberg@adacore.com>
10887
10888 * sem_ch3.adb (Build_Discriminant_Constraints): Only use
10889 Original_Discriminant if within an instance.
10890 * sem_ch4.adb (Analyze_Selected_Component): Ditto.
10891
108922011-08-03 Thomas Quinot <quinot@adacore.com>
10893
10894 * einfo.ads: Minor reformatting.
10895
108962011-08-03 Ed Schonberg <schonberg@adacore.com>
10897
10898 * exp_disp.adb (Check_Premature_Freezing): diagnose the presence of a
10899 composite type with an unfrozen subcomponent, in the profile of a
10900 primitive operation.
10901
5c34e9cd
AC
109022011-08-03 Robert Dewar <dewar@adacore.com>
10903
10904 * sem_util.ads, exp_aggr.adb, exp_ch3.adb: Minor reformatting.
10905
109062011-08-03 Ed Schonberg <schonberg@adacore.com>
10907
10908 * sem_ch3.adb (Analyze_Object_Declaration): if a constant object of an
10909 unconstrained type with discriminants is initialized with an aggregate,
10910 use the constrained subtype of the aggregate as the type of the object,
10911 because it is immutable, and this allows the back-end to generate no
10912 code for the object declaration.
10913
abcd9db2
AC
109142011-08-03 Robert Dewar <dewar@adacore.com>
10915
10916 * exp_ch4.adb (Optimize_Length_Check): Fix bad handling of case where
10917 comparison operand is variable, and turns out to be zero or negative.
10918
109192011-08-03 Javier Miranda <miranda@adacore.com>
10920
10921 * exp_intr.adb
10922 (Expand_Dispatching_Constructor_Call): Disable expansion of
10923 code required for native targets. Done to avoid generating
10924 references to unavailable runtime entities in VM targets.
10925 * exp_ch3.adb
10926 (Expand_N_Object_Declaration): Add missing support to handle
10927 the explicit initialization of class-wide interface objects.
10928 Fix documentation.
10929
109302011-08-03 Matthew Heaney <heaney@adacore.com>
10931
7089ef0f
GP
10932 * a-cobove.adb (Merge): Move source onto target, instead of using
10933 Assign.
abcd9db2
AC
10934
109352011-08-03 Matthew Heaney <heaney@adacore.com>
10936
7089ef0f 10937 * a-cbdlli.adb (Splice): Move source items from first to last.
abcd9db2
AC
10938
109392011-08-03 Yannick Moy <moy@adacore.com>
10940
7089ef0f 10941 * sem_util.ads: Add comment.
abcd9db2
AC
10942
109432011-08-03 Javier Miranda <miranda@adacore.com>
10944
10945 * exp_aggr.adb
10946 (Expand_Record_Aggregate): In VM targets disable the expansion into
10947 assignments of aggregates whose type is not known at compile time.
10948
b474d6c3
ES
109492011-08-03 Ed Schonberg <schonberg@adacore.com>
10950
10951 * exp_ch9.adb (Build_Renamed_Formal_Declaration): common procedure for
10952 protected entries and task entries, to build the proper renaming
10953 declaration for entry formals, used in debugging.
10954 * exp_ch2.adb (Expand_Entry_Parameter): handle task and entry
10955 parameters in the same way.
10956
0580d807
AC
109572011-08-02 Robert Dewar <dewar@adacore.com>
10958
10959 * a-direct.adb, sinfo.ads, exp_ch9.adb, scng.adb, sem_util.adb,
10960 sem_util.ads, restrict.ads, par-prag.adb: Minor reformatting and/or
10961 code reorganization.
10962
109632011-08-02 Robert Dewar <dewar@adacore.com>
10964
10965 * debug.adb: Debug flag d.P to suppress length comparison optimization
10966 * exp_ch4.adb (Optimize_Length_Comparison): New routine to optimize
10967 comparison of Length by comparing First/Last instead.
10968
109692011-08-02 Matthew Heaney <heaney@adacore.com>
10970
10971 * a-cobove.ads: Code clean up.
10972
b191a125
AC
109732011-08-02 Vincent Celier <celier@adacore.com>
10974
10975 * adaint.c (file_names_case_sensitive_cache): New static int.
10976 (__gnat_get_file_names_case_sensitive): Cache the return value in
10977 file_names_case_sensitive_cache at the first invocation, to avoid
10978 multiple calls to getenv.
10979
109802011-08-02 Bob Duff <duff@adacore.com>
10981
10982 * sem_ch12.adb (Validate_Derived_Type_Instance): Implement AI05-0218-1.
10983
316a0661
AC
109842011-08-02 Yannick Moy <moy@adacore.com>
10985
10986 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem.ads,
10987 sem_util.adb, sem_util.ads, sem_res.adb, sem_ch2.adb, sem_ch4.adb,
10988 sem_ch6.adb, sem_ch11.adb: Add semantic flag In_Pre_Post_Expression to
10989 indicate that we are in a precondition or postcondition. This is used in
10990 Mark_Non_ALFA_Subprogram (renaming of Mark_Non_ALFA_Subprogram_Body) to
10991 decide whether to flag the spec or body of the current subprogram as
10992 not in ALFA.
10993
109942011-08-02 Fabien Chouteau <chouteau@adacore.com>
10995
10996 * impunit.adb: Add Ada.Execution_Time.Interrupts in the Ada2012 package
10997 list.
10998 * a-extiin.ads: New file.
10999
110002011-08-02 Bob Duff <duff@adacore.com>
11001
11002 * a-direct.adb (Rename): Implement AI05-0231-1. In particular, Rename
11003 now raises Name_Error instead of Use_Error in certain cases. The other
11004 parts of this AI were already implemented properly.
11005
f9adb9d4
AC
110062011-08-02 Vincent Celier <celier@adacore.com>
11007
11008 * link.c: Only import "auto-host.h" when building the gnattools.
11009
110102011-08-02 Yannick Moy <moy@adacore.com>
11011
11012 * sem_util.adb: Inter-unit inlining does not work for a subprogram
11013 which calls a local subprogram, so extract subprogram
11014 from Mark_Non_ALFA_Subprogram_Body.
11015
110162011-08-02 Javier Miranda <miranda@adacore.com>
11017
11018 * exp_ch9.adb
11019 (Extract_Dispatching_Call): If the type of the dispatching object is an
11020 access type then return an explicit dereference in the Object out-mode
11021 parameter.
11022
110232011-08-02 Gary Dismukes <dismukes@adacore.com>
11024
11025 * sem_ch3.adb (Analyze_Subtype_Declaration): Generate range
11026 compatibility checks for all indexes of an array subtype, not just the
11027 first. Reset Has_Dynamic_Range_Check on the subtype before each
11028 potential check to ensure that Insert_Range_Checks will not elide any
11029 of the dynamic checks.
11030
110312011-08-02 Yannick Moy <moy@adacore.com>
11032
11033 * par-prag.ad (Process_Restrictions_Or_Restriction_Warnings): recognize
11034 SPARK restriction at parsing time.
11035 * scng.adb (Scan): Generate a token Tok_SPARK_Hide for a SPARK HIDE
11036 directive only if the SPARK restriction is set for this unit.
11037
83f33150
YM
110382011-08-02 Yannick Moy <moy@adacore.com>
11039
11040 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb, sem_util.ads,
11041 sem_res.adb, sem_ch2.adb, sem_ch4.adb, sem_ch6.adb,
11042 sem_ch11.adb: Protect call to Current_Subprogram which might be costly
11043 when repeated. Rename Current_Subprogram_Is_Not_In_ALFA into
11044 Mark_Non_ALFA_Subprogram_Body.
11045 Split body of Mark_Non_ALFA_Subprogram_Body to get body small and
11046 inlined.
11047
7b98672f
YM
110482011-08-02 Yannick Moy <moy@adacore.com>
11049
11050 * sem_res.adb: Protect calls to Matching_Static_Array_Bounds which
11051 might be costly.
11052
052e0603
AC
110532011-08-02 Robert Dewar <dewar@adacore.com>
11054
11055 * exp_ch9.adb, exp_sel.adb, restrict.ads, exp_disp.adb, erroutc.ads,
11056 exp_ch3.adb: Minor reformatting.
11057
110582011-08-02 Emmanuel Briot <briot@adacore.com>
11059
11060 * adaint.c (__gnat_locate_exec_on_path): only returns executable
11061 files, not any regular file.
11062 (__gnat_locate_file_with_predicate): new subprogram.
11063
110642011-08-02 Yannick Moy <moy@adacore.com>
11065
11066 * sinfo.adb, sinfo.ads: Restrict the use of flags
11067 Has_Dynamic_Length_Check and Has_Dynamic_Range_Check to expression
11068 nodes, plus N_Subtype_Declaration for the 2nd one.
11069
4fbad0ba
AC
110702011-08-02 Sergey Rybin <rybin@adacore.com>
11071
11072 * gnat_rm.texi: Ramification of pragma Eliminate documentation
11073 - fix bugs in the description of Source_Trace;
11074 - get rid of UNIT_NAME;
11075
052e0603
AC
110762011-08-02 Javier Miranda <miranda@adacore.com>
11077
11078 * exp_ch9.adb
11079 (Build_Dispatching_Requeue): Adding support for VM targets
11080 since we cannot directly reference the Tag entity.
11081 * exp_sel.adb (Build_K): Adding support for VM targets.
11082 (Build_S_Assignment): Adding support for VM targets.
11083 * exp_disp.adb
11084 (Default_Prim_Op_Position): In VM targets do not restrict availability
11085 of predefined interface primitives to compiling in Ada 2005 mode.
11086 (Is_Predefined_Interface_Primitive): In VM targets this service is not
11087 restricted to compiling in Ada 2005 mode.
11088 (Make_VM_TSD): Generate code that declares and initializes the OSD
11089 record. Needed to support dispatching calls through synchronized
11090 interfaces.
11091 * exp_ch3.adb
11092 (Make_Predefined_Primitive_Specs): Enable generation of predefined
11093 primitives associated with synchronized interfaces.
11094 (Make_Predefined_Primitive_Bodies): Enable generation of predefined
11095 primitives associated with synchronized interfaces.
11096
110972011-08-02 Yannick Moy <moy@adacore.com>
11098
11099 * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of
11100 statements hidden in SPARK if preceded by the HIDE directive
11101 (Parse_Exception_Handlers): mark each exception handler in a sequence of
11102 exception handlers as hidden in SPARK if preceded by the HIDE directive
11103 * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK
11104 if starting with the HIDE directive
11105 * par-ch7.adb (P_Package): mark a package body hidden in SPARK if
11106 starting with the HIDE directive; mark the declarations in a private
11107 part as hidden in SPARK if the private part starts with the HIDE
11108 directive
11109 * restrict.adb, restrict.ads
11110 (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK
11111 (Is_In_Hidden_Part_In_SPARK): new function which returns whether its
11112 argument node belongs to a part which is hidden in SPARK
11113 (Check_SPARK_Restriction): do not issue violations on nodes in hidden
11114 parts in SPARK; protect the possibly costly call to
11115 Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on
11116 * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration
11117 * scng.adb (Accumulate_Token_Checksum_GNAT_6_3,
11118 Accumulate_Token_Checksum_GNAT_5_03): add case for new token
11119 Tok_SPARK_Hide.
11120 (Scan): recognize special comment starting with '#' and followed by
11121 SPARK keyword "hide" as a HIDE directive.
11122
111232011-08-02 Yannick Moy <moy@adacore.com>
11124
11125 * types.ads, erroutc.ads: Minor reformatting.
11126
111272011-08-02 Vincent Celier <celier@adacore.com>
11128
11129 * link.c: Add response file support for cross platforms.
11130
111312011-08-02 Ed Schonberg <schonberg@adacore.com>
11132
11133 * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression
11134 in an association, set parent field of copy before partial analysis.
11135 * sem_res.adb (Resolve_Slice): create reference to itype only when
11136 expansion is enabled.
11137
111382011-08-02 Yannick Moy <moy@adacore.com>
11139
11140 * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set
11141 for new flag denoting which subprogram bodies are in ALFA
11142 * restrict.adb, sem_ch7.adb: Update comment
11143 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
11144 sem_ch9.adb, sem_res.adb: Add calls to
11145 Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs.
11146 * sem_ch6.adb (Analyze_Function_Return): add calls to
11147 Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the
11148 middle of the body, and extended return.
11149 (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument
11150 False when missing return.
11151 (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA
11152 to True for subprograms whose spec is in ALFA. Remove later on the flag
11153 on the entity used for a subprogram body when there exists a separate
11154 declaration.
11155 * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA):
11156 if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to
11157 False, otherwise do nothing.
11158
111592011-08-02 Robert Dewar <dewar@adacore.com>
11160
11161 * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
11162
111632011-08-02 Yannick Moy <moy@adacore.com>
11164
11165 * sem_ch4.ads: minor formatting.
11166
111672011-08-02 Yannick Moy <moy@adacore.com>
11168
11169 * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb,
11170 debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb,
11171 errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb,
11172 restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb,
11173 opt.ads: cleanup of SPARK mode
11174
111752011-08-02 Yannick Moy <moy@adacore.com>
11176
11177 * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard
11178 types.
11179 * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities
11180 (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA
11181 * sem_ch3.adb
11182 (Analyze_Object_Declaration): set Is_In_ALFA flag for objects
11183 (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes
11184 (Constrain_Integer): set Is_In_ALFA flag for integer subtypes
11185 (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration
11186 types.
11187 (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with
11188 non-static range.
11189 * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for
11190 functions whose return type is not in ALFA.
11191 (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram
11192 specifications.
11193 (Process_Formals): unset Is_In_ALFA flag for subprograms if a
11194 parameter's type is not in ALFA.
11195 * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard
11196 types are in ALFA.
11197
111982011-08-02 Ed Schonberg <schonberg@adacore.com>
11199
11200 * sem_ch6 (Analyze_Expression_Function): treat the function as
11201 Inline_Always, and introduce a subprogram declaration for it when it is
11202 not a completion.
11203 * inline.adb (Add_Inlined_Body): recognize bodies that come from
11204 expression functions, so that the back-end can determine whether they
11205 can in fact be inlined.
11206 * sem_util.adb (Is_Expression_Function): predicate to determine whether
11207 a function body comes from an expression function.
11208
112092011-08-02 Gary Dismukes <dismukes@adacore.com>
11210
11211 * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming
11212 null exclusions to test Can_Never_Be_Null on the anonymous access types
11213 of the formals rather than testing the formals themselves. Exclude this
11214 check in cases where the Old_Formal is marked as a controlling formal,
11215 to avoid issuing spurious errors for bodies completing dispatching
11216 operations (due to the flag not getting set on controlling access
11217 formals in body specs).
11218 (Find_Corresponding_Spec): When checking full and subtype conformance of
11219 subprogram bodies in instances, pass Designated and E in that order, for
11220 consistency with the expected order of the formals (New_Id followed by
11221 Old_Id).
11222
112232011-08-02 Robert Dewar <dewar@adacore.com>
11224
11225 * sem_ch8.adb: Minor reformatting.
11226
112272011-08-02 Ed Schonberg <schonberg@adacore.com>
11228
11229 * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure
11230 Check_Class_Wide_Actual, to implement AI05-0071, on defaulted
11231 primitive operations of class-wide actuals.
11232
112332011-08-02 Javier Miranda <miranda@adacore.com>
11234
11235 * exp_atag.ads, exp_atag.adb
11236 (Build_Common_Dispatching_Select_Statements): Remove argument Loc
11237 since its value is implicitly passed in argument Typ.
11238 * exp_disp.adb (Make_Disp_Conditional_Select_Body,
11239 Make_Disp_Timed_Select_Body): Remove Loc in calls to routine
11240 Build_Common_Dispatching_Select_Statements.
11241
112422011-08-02 Robert Dewar <dewar@adacore.com>
11243
11244 * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads,
11245 exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments.
11246 Minor reformatting.
11247
112482011-08-02 Robert Dewar <dewar@adacore.com>
11249
11250 * sem_res.adb: Minor reformatting.
11251 * sem_prag.adb: Minor reformatting.
11252
112532011-08-02 Javier Miranda <miranda@adacore.com>
11254
11255 * exp_atag.adb, exp_atags.ads
11256 (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr
11257 by the tagged type Entity. Required to use this routine in the VM
11258 targets since we do not have available the Tag entity in the VM
11259 platforms.
11260 * exp_ch6.adb
11261 (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package
11262 Ada.Tags has not been previously loaded.
11263 * exp_ch7.adb
11264 (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke
11265 Build_VM_TSDs if package Ada.Tags has not been previously loaded.
11266 * sem_aux.adb
11267 (Enclosing_Dynamic_Scope): Add missing support to handle the full
11268 view of enclosing scopes. Required to handle enclosing scopes that
11269 are synchronized types whose full view is a task type.
11270 * exp_disp.adb
11271 (Build_VM_TSDs): Minor code improvement to avoid generating and
11272 analyzing lists with empty nodes.
11273 (Make_Disp_Asynchronous_Select_Body): Add support for VM targets.
11274 (Make_Disp_Conditional_Select_Body): Add support for VM targets.
11275 (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets.
11276 (Make_Disp_Timed_Select_Body): Add support for VM targets.
11277 (Make_Select_Specific_Data_Table): Add support for VM targets.
11278 (Make_VM_TSD): Generate code to initialize the SSD structure of
11279 the TSD.
11280
112812011-08-02 Yannick Moy <moy@adacore.com>
11282
11283 * lib-writ.adb (Write_ALI): when ALFA mode is set, write local
11284 cross-references section in ALI.
11285 * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub
11286 (enclosing subprogram), Slc (location of Sub) and Sun (unit number of
11287 Sub).
11288 (Enclosing_Subprogram_Or_Package): new function to return the enclosing
11289 subprogram or package entity of a node
11290 (Is_Local_Reference_Type): new function returns True for references
11291 selected in local cross-references.
11292 (Lt): function extracted from Lt in Output_References
11293 (Write_Entity_Name): function extracted from Output_References
11294 (Generate_Definition): generate reference with type 'D' for definition
11295 of objects (object declaration and parameter specification), with
11296 appropriate locations and units, for use in local cross-references.
11297 (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created
11298 references of type 'I' for initialization in object definition.
11299 (Output_References): move part of function Lt and procedure
11300 Write_Entity_Name outside of the body. Ignore references of types 'D'
11301 and 'I' introduced for local cross-references.
11302 (Output_Local_References): new procedure to output the local
11303 cross-references sections.
11304 (Lref_Entity_Status): new array defining whether an entity is a local
11305 * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference
11306 with 'I' type when initialization expression is present.
11307 * get_scos.adb, get_scos.ads: Correct comments and typos
11308
113092011-08-02 Javier Miranda <miranda@adacore.com>
11310
11311 * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in
11312 the JVM target.
11313 * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in
11314 the JVM target.
11315 * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no
11316 TSD support.
11317
113182011-08-02 Vincent Celier <celier@adacore.com>
11319
11320 * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line
11321 (No_Space_Img): New function
11322 (Find_Excluded_Sources): When reading from a file, record the file name
11323 and the line number for each excluded source.
11324 (Mark_Excluded_Sources): When reporting an error, if the excluded
11325 sources were read from a file, include file name and line number in
11326 the error message.
11327
113282011-08-02 Ed Schonberg <schonberg@adacore.com>
11329
11330 * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2).
11331
113322011-08-02 Robert Dewar <dewar@adacore.com>
11333
11334 * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting
11335
113362011-08-02 Javier Miranda <miranda@adacore.com>
11337
11338 * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
11339 generation of TSDs to the DOTNET compiler.
11340 * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
11341 generation of TSDs to the DOTNET compiler.
11342
113432011-08-02 Javier Miranda <miranda@adacore.com>
11344
11345 * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
11346 record of all the tagged types declared inside library level package
11347 declarations, library level package bodies or library level subprograms.
11348 * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD
11349 associated with a given tagged type.
11350 (Build_VM_TSDs): New subprogram.
11351 * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main
11352 compilation units that are subprograms.
11353 * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main
11354 compilation units that are package bodies.
11355 (Expand_N_Package_Declaration): Generate TSDs of the main compilation
11356 units that are a package declaration or a package instantiation.
11357 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code
11358 reorganization to improve the error generated by the frontend when the
11359 function Ada.Tags.Secondary_Tag is not available.
11360 * rtsfind.ads (RE_Register_TSD): New runtime entity.
11361 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup.
11362
113632011-08-02 Javier Miranda <miranda@adacore.com>
11364
11365 * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode.
11366
113672011-08-02 Robert Dewar <dewar@adacore.com>
11368
11369 * s-imenne.ads: Minor reformatting.
11370
113712011-08-02 Robert Dewar <dewar@adacore.com>
11372
11373 * a-stunau.ads: Add pragma Suppress_Initialization for Big_String
11374 * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed
11375 * s-stalib.ads: Add pragma Suppress_Initialization for Big_String
11376
113772011-08-02 Robert Dewar <dewar@adacore.com>
11378
11379 * einfo.ads (Materialize_Entity): Document this is only for renamings
11380 * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate
11381 required debug information in the case where we transform the object
11382 declaration into a renaming declaration.
11383 * exp_ch4.adb (Expand_Concatenate): Generate debug info for result
11384 object
11385 * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of
11386 Materialize_Entity.
11387
113882011-08-02 Robert Dewar <dewar@adacore.com>
11389
11390 * einfo.ads, einfo.adb (Suppress_Initialization): Replaces
11391 Suppress_Init_Procs.
11392 * exp_ch3.adb, exp_disp.adb, freeze.adb: Use
11393 Suppress_Initialization/Initialization_Suppressed.
11394 * gnat_rm.texi: New documentation for pragma Suppress_Initialization
11395 * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function
11396 * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed
11397 * sem_prag.adb: New processing for pragma Suppress_Initialization.
11398
113992011-08-02 Robert Dewar <dewar@adacore.com>
11400
11401 * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb:
11402 Minor reformatting.
11403
114042011-08-02 Ed Schonberg <schonberg@adacore.com>
11405
11406 * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can
11407 only have inheritable classwide pre/postconditions.
11408
114092011-08-02 Javier Miranda <miranda@adacore.com>
11410
11411 * a-tags.ads, a-tags.adb (Check_TSD): New subprogram.
11412 * rtsfind.ads (RE_Check_TSD): New runtime entity.
11413 * exp_disp.adb (Make_DT): Generate call to the new runtime routine that
11414 checks if the external tag of a type is the same as the external tag
11415 of some other declaration.
11416
114172011-08-02 Thomas Quinot <quinot@adacore.com>
11418
11419 * s-taskin.ads: Minor reformatting.
11420
114212011-08-02 Emmanuel Briot <briot@adacore.com>
11422
11423 * g-comlin.adb (Display_Help): swap the order in which it prints the
11424 short help and the general usage.
11425
114262011-08-02 Ed Schonberg <schonberg@adacore.com>
11427
11428 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly
11429 the aspect declarations and attach them to the generic copy for
11430 subsequent analysis.
11431 (Analyze_Subprogram_Instantiation): copy explicitly the aspect
11432 declarations of the generic tree to the new subprogram declarations.
11433 * sem_attr.adb (Check_Precondition_Postcondition): recognize
11434 conditions that apply to a subprogram instance.
11435
114362011-08-02 Robert Dewar <dewar@adacore.com>
11437
11438 * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project].
11439
114402011-08-02 Ed Schonberg <schonberg@adacore.com>
11441
11442 * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged
11443 private type with a tagged full view is not derived in the immediate
11444 scope of the partial view, (RM 7.3 (7)) use the scope of the base type.
11445
114462011-08-02 Robert Dewar <dewar@adacore.com>
11447
11448 * exp_ch4.adb: Minor reformatting.
11449
114502011-08-02 Ed Schonberg <schonberg@adacore.com>
11451
11452 * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an
11453 Ada2012 iterator, the loop will be rewritten during expansion into a
11454 while loop with a cursor and an element declaration. Do not analyze the
11455 body in this case, because if the container is for indefinite types the
11456 actual subtype of the elements will only be determined when the cursor
11457 declaration is analyzed.
11458
114592011-08-02 Arnaud Charlet <charlet@adacore.com>
11460
11461 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore
11462 size/alignment related attributes in CodePeer_Mode.
11463
114642011-08-02 Gary Dismukes <dismukes@adacore.com>
11465
11466 * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to
11467 Prepend_Element, since this can result in the operation getting the
11468 wrong slot in the full type's dispatch table if the full type has
11469 inherited operations. The incomplete type's operation will get added
11470 to the proper position in the full type's primitives
11471 list later in Sem_Disp.Check_Operation_From_Incomplete_Type.
11472 (Process_Incomplete_Dependents): Add Is_Primitive test when checking for
11473 dispatching operations, since there are cases where nonprimitive
11474 subprograms can get added to the list of incomplete dependents (such
11475 as subprograms in nested packages).
11476 * sem_ch6.adb (Process_Formals): First, remove test for being in a
11477 private part when determining whether to add a primitive with a
11478 parameter of a tagged incomplete type to the Private_Dependents list.
11479 Such primitives can also occur in the visible part, and should not have
11480 been excluded from being private dependents.
11481 * sem_ch7.adb (Uninstall_Declarations): When checking the rule of
11482 RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents
11483 list of a Taft-amendment incomplete type is a primitive before issuing
11484 an error that the full type must appear in the same unit. There are
11485 cases where nonprimitives can be in the list (such as subprograms in
11486 nested packages).
11487 * sem_disp.adb (Derives_From): Use correct condition for checking that
11488 a formal's type is derived from the type of the corresponding formal in
11489 the parent subprogram (the condition was completely wrong). Add
11490 checking that was missing for controlling result types being derived
11491 from the result type of the parent operation.
11492
114932011-08-02 Yannick Moy <moy@adacore.com>
11494
11495 * errout.adb (First_Node): minor renaming
11496 * restrict.adb (Check_Formal_Restriction): put restriction warning on
11497 first node.
11498
114992011-08-02 Yannick Moy <moy@adacore.com>
11500
11501 * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator
11502 before accessing operands.
11503 * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to
11504 decide whether an initialization expression respects SPARK rules, as
11505 the plain node is the expanded one. This allows for more valid warnings
11506 to be issued.
11507 * gnat_rm.texi: Minor update.
11508
115092011-08-02 Arnaud Charlet <charlet@adacore.com>
11510
11511 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert
11512 previous change.
11513
115142011-08-02 Robert Dewar <dewar@adacore.com>
11515
11516 * sem_ch3.adb, sem_ch4.adb: Minor reformatting.
11517
115182011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
11519
11520 * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original
11521 loop statements and the element renaming declaration with a block when
11522 the element type is controlled.
11523
115242011-08-02 Yannick Moy <moy@adacore.com>
11525
11526 * sinfo.ads: Minor formatting.
11527
115282011-08-02 Ed Schonberg <schonberg@adacore.com>
11529
11530 * sem_aggr.adb (Add_Association): if the association has a box and no
11531 expression, use the Sloc of the aggregate itself for the new
11532 association.
11533 * errout.adb (First_Node): Exclude nodes with no Sloc, and always use
11534 the Original_Node.
11535
115362011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
11537
11538 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring.
11539 When a container is provided via a function call, generate a renaming
11540 of the function result. This avoids the creation of a transient scope
11541 and the premature finalization of the container.
11542 * exp_ch7.adb (Is_Container_Cursor): Removed.
11543 (Wrap_Transient_Declaration): Remove the supression of the finalization
11544 of the list controller when the declaration denotes a container cursor,
11545 it is not needed.
11546
115472011-08-02 Yannick Moy <moy@adacore.com>
11548
11549 * restrict.adb (Check_Formal_Restriction): only issue a warning if the
11550 node is from source, instead of the original node being from source.
11551 * sem_aggr.adb
11552 (Resolve_Array_Aggregate): refine the check for a static expression, to
11553 recognize also static ranges
11554 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration,
11555 Array_Type_Declaration): postpone the test for the type being a subtype
11556 mark after the type has been resolved, so that component-selection and
11557 expanded-name are discriminated.
11558 (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm
11559 to distinguish the case of an iteration scheme, so that an error is
11560 issed on a non-static range in SPARK except in an iteration scheme.
11561 * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with
11562 In_Iter_Schm = True.
11563 * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for
11564 user-defined operators so that they are allowed in renaming
11565 * sem_ch8.adb
11566 (Find_Selected_Component): refine the check for prefixing of operators
11567 so that they are allowed in renaming. Move the checks for restrictions
11568 on selector name after analysis discriminated between
11569 component-selection and expanded-name.
11570 * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on
11571 concatenation argument of string type if it is static.
11572 * sem_util.adb, sem_util.ads
11573 (Check_Later_Vs_Basic_Declarations): add a new function
11574 Is_Later_Declarative_Item to decice which declarations are allowed as
11575 later items, in the two different modes Ada 83 and SPARK. In the SPARK
11576 mode, add that renamings are considered as later items.
11577 (Enclosing_Package): new function to return the enclosing package
11578 (Enter_Name): correct the rule for homonyms in SPARK
11579 (Is_SPARK_Initialization_Expr): default to returning True on nodes not
11580 from source (result of expansion) to avoid issuing wrong warnings.
11581
115822011-08-02 Ed Schonberg <schonberg@adacore.com>
11583
11584 * errout.adb: On anything but an expression First_Node returns its
11585 argument.
11586
115872011-08-02 Pascal Obry <obry@adacore.com>
11588
11589 * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting.
11590
115912011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
11592
11593 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization.
11594 Set the associated loop as the related expression of internally
11595 generated cursors.
11596 * exp_ch7.adb (Is_Container_Cursor): New routine.
11597 (Wrap_Transient_Declaration): Supress the finalization of the list
11598 controller when the declaration denotes a container cursor.
11599
116002011-08-02 Yannick Moy <moy@adacore.com>
11601
11602 * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through
11603 command line now.
11604 * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the
11605 expression is a simple expression. This check cannot be performed in
11606 the semantics, so just drop it.
11607 (P_Index_Or_Discriminant_Constraint): move check that the index or
11608 discriminant is a subtype mark to Analyze_Subtype_Declaration in the
11609 semantics. Other cases were previously checked in the semantics.
11610 * par-ch4.adb (P_Name): move checks that a selector name is not
11611 character literal or an operator symbol to Find_Selected_Component in
11612 the semantics
11613 * par-ch5.adb (Parse_Decls_Begin_End): move check that basic
11614 declarations are not placed after later declarations in a separate
11615 procedure in Sem_Util (possibly not the best choice?), to be used both
11616 during parsing, for Ada 83 mode, and during semantic analysis, for
11617 SPARK mode.
11618 * par-endh.adb (Check_End): move check that end label is not missing
11619 to Process_End_Label in the semantics
11620 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove
11621 the special case for SPARK restriction
11622 * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End
11623 * restrict.adb, restrict.ads (Check_Formal_Restriction): add a
11624 parameter Force to issue the error message even on internal node (used
11625 for generated end label). Call Check_Restriction to check when an error
11626 must be issued. In SPARK mode, issue an error message even if the
11627 restriction is not set.
11628 (Check_Restriction): new procedure with an additional out parameter to
11629 inform the caller that a message has been issued
11630 * sem_aggr.adb: Minor modification of message
11631 * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction
11632 instead of issuing an error message directly
11633 * sem_ch3.adb (Analyze_Declarations): move here the check that basic
11634 declarations are not placed after later declarations, by calling
11635 Check_Later_Vs_Basic_Declarations
11636 (Analyze_Subtype_Declaration): move here the check that an index or
11637 discriminant constraint must be a subtype mark. Change the check that
11638 a subtype of String must start at one so that it works on subtype marks.
11639 * sem_ch4.adb (Analyze_Call): move here the check that a named
11640 association cannot follow a positional one in a call
11641 * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction
11642 instead of issuing an error message directly
11643 * sem_ch8.adb (Find_Selected_Component): move here the check that a
11644 selector name is not a character literal or an operator symbol. Move
11645 here the check that the prefix of an expanded name cannot be a
11646 subprogram or a loop statement.
11647 * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new
11648 procedure called from parsing and semantics to check that basic
11649 declarations are not placed after later declarations
11650 (Process_End_Label): move here the check that end label is not missing
11651
116522011-08-02 Arnaud Charlet <charlet@adacore.com>
11653
11654 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum
11655 representation clause in codepeer mode, since it confuses CodePeer and
11656 does not bring useful info.
11657
116582011-08-02 Ed Falis <falis@adacore.com>
11659
11660 * init.c: initialize fp hw on MILS.
11661
116622011-08-02 Ed Schonberg <schonberg@adacore.com>
11663
11664 * errout.adb (First_Node): for bodies, return the node itself (small
11665 optimization). For other nodes, do not check source_unit if the node
11666 comes from Standard.
11667
116682011-08-02 Robert Dewar <dewar@adacore.com>
11669
11670 * exp_ch3.adb: Minor comment additions.
11671 * sem_ch13.adb: Minor reformatting.
11672
116732011-08-02 Pascal Obry <obry@adacore.com>
11674
11675 * make.adb, makeutl.adb: Removes some superfluous directory separator.
11676
116772011-08-02 Robert Dewar <dewar@adacore.com>
11678
11679 * sem_attr.adb: Minor reformatting.
11680
116812011-08-02 Robert Dewar <dewar@adacore.com>
11682
11683 * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value
11684 (Has_Default_Component_Value): Removed
11685 * einfo.ads Comment updates
11686 (Has_Default_Aspect): Replaces Has_Default_Value
11687 (Has_Default_Component_Value): Removed
11688 * exp_ch13.adb
11689 (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects
11690 * exp_ch3.adb
11691 (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects
11692 (Get_Simple_Init_Val): Handle Default_Value aspect
11693 (Needs_Simple_Initialization): Handle Default_Value aspect
11694 * exp_ch3.ads: Needs_Simple_Initialization
11695 * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect
11696 * par-prag.adb (Pragma_Default[_Component]Value) Removed
11697 * sem_ch13.adb
11698 (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects
11699 * sem_prag.adb (Pragma_Default[_Component]Value) Removed
11700 * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed
11701
117022011-08-02 Ed Schonberg <schonberg@adacore.com>
11703
11704 * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate
11705 package containing iteration primitives.
11706 exp_ch5.adb (Expand_Iterator_Loop): ditto.
11707
117082011-08-02 Ed Schonberg <schonberg@adacore.com>
11709
11710 * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with
11711 "of", pre-analyze expression in case it is a function call with
11712 finalization actions that must be placed ahead of the loop.
11713 * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present
11714 on an Ada2012 iterator, insert them ahead of the rewritten loop.
11715
117162011-08-02 Geert Bosch <bosch@adacore.com>
11717
11718 * cstand.adb (Create_Float_Types): Only consider C's long double for
11719 Long_Long_Float, in addition to double.
11720
117212011-08-02 Robert Dewar <dewar@adacore.com>
11722
11723 * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads,
11724 sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads,
11725 prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb:
11726 Minor reformatting.
11727
117282011-08-02 Ed Schonberg <schonberg@adacore.com>
11729
11730 * sem_attr.adb: handle properly 'Result when it is a prefix of an
11731 indexed component.
11732
117332011-08-02 Javier Miranda <miranda@adacore.com>
11734
11735 * einfo.ads, einfo.adb
11736 (Original_Access_Type): Move this attribute to Node26 since there was
11737 an undocumented use of Node21 in E_Access_Subprogram_Type entities
11738 which causes conflicts and breaks the generation of the .NET compiler.
11739 (Interface_Name): Add missing documentation on JGNAT only uses of
11740 this attribute.
11741
117422011-08-02 Geert Bosch <bosch@adacore.com>
11743
11744 * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist
11745 (Find_Back_End_Float_Type): Likewise
11746 (Create_Back_End_Float_Types): Likewise
11747 (Create_Float_Types): Likewise
11748 (Register_Float_Type): Likewise
11749 * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of
11750 Nlist and split out type selection in new local Find_Base_Type function.
11751 * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of
11752 Nlist
11753 * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist
11754
117552011-08-02 Robert Dewar <dewar@adacore.com>
11756
11757 * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in
11758 alpha order).
11759 * opt.ads: Minor comment change.
11760 * sem_ch12.adb: Minor code reorganization.
11761
117622011-08-02 Gary Dismukes <dismukes@adacore.com>
11763
11764 * sem_ch3.adb (Complete_Private_Subtype): Don't append the private
11765 subtype's list of rep items to the list on the full subtype in the case
11766 where the lists are the same.
11767
117682011-08-02 Geert Bosch <bosch@adacore.com>
11769
11770 * switch-c.adb (Free): New deallocation procedure to avoid implicitly
11771 using the one from System.Strings, which also deallocates all strings.
11772
117732011-08-02 Geert Bosch <bosch@adacore.com>
11774
11775 * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New
11776 function.
11777 * gcc-interface/Make-lang.in: Update dependencies.
11778
117792011-08-02 Olivier Hainque <hainque@adacore.com>
11780
11781 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function
11782 end_locus.
11783
117842011-08-02 Javier Miranda <miranda@adacore.com>
11785
11786 * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals
11787 associated with anonymous access to subprograms.
11788
117892011-08-02 Geert Bosch <bosch@adacore.com>
11790
11791 * opt.ads
11792 (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions.
11793 (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition.
11794 * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads
11795 (Add_Symbol_Definition): Move to switch-c.adb
11796 (Process_Command_Line_Symbol_Definitions): Adjust references to above.
11797 * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation.
11798 (Add_Symbol_Definition): Move to switch-c.adb.
11799 * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw.
11800 * sem_warn.adb
11801 (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
11802 Move to warnsw.adb.
11803 * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size,
11804 Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
11805 Move to warnsw.adb.
11806 * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw.
11807 (Add_Symbol_Definition): Moved from Prepcomp.
11808 * switch-c.ads: Update copyright notice. Use String_List instead of
11809 Argument_List, removing dependency on System.OS_Lib.
11810
118112011-08-02 Yannick Moy <moy@adacore.com>
11812
11813 * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal
11814 mode on initialization expression which does not respect SPARK
11815 restrictions.
11816 * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines
11817 if the tree referenced by its argument represents an initialization
11818 expression in SPARK, suitable for initializing an object in an object
11819 declaration.
11820
118212011-08-02 Javier Miranda <miranda@adacore.com>
11822
11823 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the
11824 internally generated access to subprogram with its associated protected
11825 subprogram type.
11826 * einfo.ads, einfo.adb (Original_Access_Type): New attribute.
11827
118282011-08-02 Geert Bosch <bosch@adacore.com>
11829
11830 * cstand.adb (Register_Float_Type): Print information about type to
11831 register, if the Debug_Flag_Dot_B is set.
11832 * debug.adb (Debug_Flag_Dot_B): Document d.b debug option.
11833 * rtsfind.ads (RE_Max_Base_Digits): New run time entity.
11834 * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations
11835 with a requested precision of more than Max_Digits digits and no more
11836 than Max_Base_Digits digits, if a range specification is present and the
11837 Predefined_Float_Types list has a suitable type to derive from.
11838 * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the
11839 case of type completion with pragma Import
11840 * sem_prag.adb
11841 (Process_Import_Predefined_Type): Processing to complete a type
11842 with pragma Import. Currently supports floating point types only.
11843 (Set_Convention_From_Pragma): Do nothing without underlying type.
11844 (Process_Convention): Guard against absence of underlying type,
11845 which may happen when importing incomplete types.
11846 (Process_Import_Or_Interface): Handle case of importing predefined
11847 types. Tweak error message.
11848
118492011-08-02 Eric Botcazou <ebotcazou@adacore.com>
11850
11851 * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined
11852 functions to previous change. Reorganize code slightly.
11853
118542011-08-02 Geert Bosch <bosch@adacore.com>
11855
11856 * back_end.ads (Register_Type_Proc): New call back procedure type for
11857 allowing the back end to provide information about available types.
11858 (Register_Back_End_Types): New procedure to register back end types.
11859 * back_end.adb (Register_Back_End_Types): Call the back end to enumerate
11860 available types.
11861 * cstand.adb (Back_End_Float_Types): New list for floating point types
11862 supported by the back end.
11863 (Build_Float_Type): Add extra parameter for Float_Rep_Kind.
11864 (Copy_Float_Type): New procedure to make new copies of predefined types.
11865 (Register_Float_Type): New call back procedure to populate the BEFT list
11866 (Find_Back_End_Float_Type): New procedure to find a BEFT by name
11867 (Create_Back_End_Float_Types): New procedure to populate the BEFT list.
11868 (Create_Float_Types): New procedure to create entities for floating
11869 point types predefined in Standard, and put these and any remaining
11870 BEFTs on the Predefined_Float_Types list.
11871 * stand.ads (Predefined_Float_Types): New list for predefined floating
11872 point types that do not have declarations in package Standard.
11873
118742011-08-02 Eric Botcazou <ebotcazou@adacore.com>
11875
11876 * inline.adb (Get_Code_Unit_Entity): New local function. Returns the
11877 entity node for the unit containing the parameter.
11878 (Add_Inlined_Body): Use it to find the unit containing the subprogram.
11879 (Add_Inlined_Subprogram): Likewise.
11880 * gcc-interface/Make-lang.in: Update dependencies.
11881
118822011-08-02 Thomas Quinot <quinot@adacore.com>
11883
11884 * s-stusta.adb (Print): Make sure Pos is always initialized to a
11885 suitable value.
11886
118872011-08-02 Geert Bosch <bosch@adacore.com>
11888
11889 * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image.
11890
118912011-08-02 Eric Botcazou <ebotcazou@adacore.com>
11892
11893 * sem_type.adb (Covers): Move trivial case to the top and reuse the
11894 computed value of Base_Type.
11895
118962011-08-02 Yannick Moy <moy@adacore.com>
11897
11898 * restrict.adb (Check_Restriction): issue an error for any use of
11899 class-wide, even if the No_Dispatch restriction is not set.
11900 * sem_aggr.adb: Correct typos in comments and messages in formal mode
11901 * sem_ch3.adb (Process_Full_View): issue an error in formal mode is,
11902 when completing a private extension, the type named in the private part
11903 is not the same as that named in the visible part.
11904 * sem_res.adb (Resolve_Call): issue an error in formal mode on the use
11905 of an inherited primitive operations of a tagged type or type extension
11906 that returns the tagged type.
11907 * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new
11908 function which returns True for an implicit operation inherited by the
11909 derived type declaration for the argument type.
11910 (Is_SPARK_Object_Reference): move to appropriate place in alphabetic
11911 order.
11912
119132011-08-02 Ed Schonberg <schonberg@adacore.com>
11914
11915 * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from
11916 Process_Bounds, to perform analysis with expansion of a range or an
11917 expression that is the iteration scheme for a loop.
11918 (Analyze_Iterator_Specification): If domain of iteration is given by a
11919 function call with a controlled result, as is the case if call returns
11920 a predefined container, ensure that finalization actions are properly
11921 generated.
11922 * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range.
11923
119242011-08-02 Javier Miranda <miranda@adacore.com>
11925
11926 * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo.
11927 * gcc-interface/Make-lang.in: Update dependencies.
11928
119292011-08-02 Javier Miranda <miranda@adacore.com>
11930
11931 * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to
11932 determine if the analysis is performed using N or Original_Node (N).
11933 * exp_util.adb (Side_Effect_Free): Code cleanup since the new
11934 functionality of routine Is_Variable avoids code duplication.
11935 * checks.adb (Determine_Range): Handle temporaries generated by
11936 Remove_Side_Effects.
11937
119382011-08-02 Javier Miranda <miranda@adacore.com>
11939
11940 * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and
11941 expansion of the condition. Required since the previous analysis was
11942 done with expansion disabled (see Resolve_Quantified_Expression) and
11943 hence checks were not inserted and record comparisons have not been
11944 expanded.
11945
119462011-08-02 Ed Falis <falis@adacore.com>
11947
11948 * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads:
11949 Update header.
11950
119512011-08-02 Bob Duff <duff@adacore.com>
11952
11953 * opt.ads: Minor comment fix.
11954
119552011-08-02 Bob Duff <duff@adacore.com>
11956
11957 * sem_ch12.adb (Analyze_Package_Instantiation,
11958 Analyze_Subprogram_Instantiation): Turn off style checking while
11959 analyzing an instance. Whatever style checks that apply to the generic
11960 unit should apply, so it makes no sense to apply them in an instance.
11961 This was causing trouble when compiling an instance of a runtime
11962 unit that violates the -gnatyO switch.
11963 * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from
11964 one of the two case statements, causing spurious errors.
11965
119662011-08-02 Robert Dewar <dewar@adacore.com>
11967
11968 * uname.adb: Minor reformatting.
11969 * gnatcmd.adb: Minor reformatting.
11970 * exp_attr.adb: Minor reformatting.
11971
119722011-08-02 Ed Schonberg <schonberg@adacore.com>
11973
11974 * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction
11975 No_Dispatching_Calls, do not look for the Assign primitive, because
11976 predefined primitives are not created in this case.
11977
119782011-08-02 Bob Duff <duff@adacore.com>
11979
11980 * stylesw.ads: Minor comment fixes.
11981
119822011-08-02 Robert Dewar <dewar@adacore.com>
11983
11984 * freeze.adb (Add_To_Result): New procedure.
11985
119862011-08-02 Jose Ruiz <ruiz@adacore.com>
11987
11988 * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run
11989 time, if the specific run-time routines for handling streams of strings
11990 are not available, use the default mechanism.
11991
119922011-08-02 Arnaud Charlet <charlet@adacore.com>
11993
11994 * s-regpat.ads: Fix typo.
11995
119962011-08-02 Vincent Celier <celier@adacore.com>
11997
11998 * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is
11999 not null, call it to create the in memory config project file without
12000 parsing an existing default config project file.
12001
120022011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12003
12004 * atree.adb (Allocate_Initialize_Node): Remove useless temporaries.
12005
120062011-08-02 Ed Schonberg <schonberg@adacore.com>
12007
12008 * sem_elim.adb: an abstract subprogram does not need an eliminate
12009 pragma for its descendant to be eliminable.
12010
120112011-08-02 Ed Falis <falis@adacore.com>
12012
12013 * init.c: revert to handling before previous checkin for VxWorks
12014 * s-intman-vxworks.adb: delete unnecessary declarations related to
12015 using Ada interrupt facilities for handling signals.
12016 Delete Initialize_Interrupts. Use __gnat_install_handler instead.
12017 * s-intman-vxworks.ads: Import __gnat_install_handler as
12018 Initialize_Interrupts.
12019 * s-taprop-vxworks.adb: Delete Signal_Mask.
12020 (Abort_Handler): change construction of mask to unblock exception
12021 signals.
12022
120232011-08-02 Jerome Guitton <guitton@adacore.com>
12024
12025 * a-except-2005.adb (Raise_From_Signal_Handler): Call
12026 Debug_Raise_Exception before propagation starts.
12027
120282011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12029
12030 * exp_ch6.adb (Expand_Call): Guard restriction checks with a call
12031 to Restriction_Check_Required.
12032 * sem_ch3.adb (Analyze_Object_Declaration): Likewise.
12033 * sem_res.adb (Resolve_Call): Likewise.
12034 * sem_attr.adb (Check_Stream_Attribute): Likewise.
12035
120362011-08-02 Bob Duff <duff@adacore.com>
12037
12038 * stylesw.ads: Update comment.
12039 * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
12040 * errout.ads: Remove obsolete comment.
12041
120422011-08-02 Javier Miranda <miranda@adacore.com>
12043
12044 * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
12045 (Set_Is_Safe_To_Reevaluate): new procedure.
12046 * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
12047 assignment is allowed on safe-to-reevaluate variables.
12048 (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
12049 temporary created to remove side effects in expressions that use
12050 the secondary stack as safe-to-reevaluate.
12051 * exp_util.adb (Side_Effect_Free): Add missing code to handle well
12052 variables that are not true constants.
12053
120542011-08-02 Robert Dewar <dewar@adacore.com>
12055
12056 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
12057 sem_res.adb, sem_ch6.adb: Minor reformatting.
12058
120592011-08-02 Jerome Guitton <guitton@adacore.com>
12060
12061 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
12062
120632011-08-02 Ed Schonberg <schonberg@adacore.com>
12064
12065 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
12066 not set Overridden_Operation if subprogram is an initialization
12067 procedure.
12068
120692011-08-02 Yannick Moy <moy@adacore.com>
12070
12071 * par-ch6.adb: Correct obsolete name in comments
12072 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
12073 which takes two message arguments (existing function takes one), with
12074 second message used for continuation.
12075 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
12076 block statements that originate from a source block statement, not
12077 generated block statements
12078 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
12079 symmetry with procedure case
12080 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
12081 function to issue an error in formal mode if a package specification
12082 contains more than one tagged type or type extension.
12083 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
12084 parameters matching formals of tagged types are objects (or ancestor
12085 type conversions of objects), not general expressions. Issue an error
12086 on view conversions that are not involving ancestor conversion of an
12087 extended type.
12088 (Resolve_Type_Conversion): in formal mode, issue an error on the
12089 operand of an ancestor type conversion which is not an object
12090 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
12091 procedure so that it works also for actuals of function calls
12092 (Is_Actual_Tagged_Parameter): new function which determines if its
12093 argument is an actual parameter of a formal of tagged type in a
12094 subprogram call
12095 (Is_SPARK_Object_Reference): new function which determines if the tree
12096 referenced by its argument represents an object in SPARK
12097
120982011-08-02 Robert Dewar <dewar@adacore.com>
12099
12100 * sem_ch3.adb: Minor reformatting
12101 Minor comment addition
12102 Minor error msg text change
12103
121042011-08-02 Javier Miranda <miranda@adacore.com>
12105
12106 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
12107 function. Used to be more precise when we generate a variable plus one
12108 assignment to remove side effects in the evaluation of the Bound
12109 expressions.
12110 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
12111 of the bound expression to force its re-analysis and thus expand the
12112 associated transient scope (if required). Code cleanup replacing the
12113 previous code that declared the constant entity by an invocation to
12114 routine Force_Evaluation which centralizes this work in the frontend.
12115
121162011-08-02 Robert Dewar <dewar@adacore.com>
12117
12118 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
12119 (Base_Type): Now uses improved Is_Base_Type function
12120 * einfo.ads (Base_Type): Inline this function
12121
121222011-08-02 Robert Dewar <dewar@adacore.com>
12123
12124 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
12125 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
12126
121272011-08-02 Arnaud Charlet <charlet@adacore.com>
12128
12129 * gcc-interface/Make-lang.in: Update dependencies.
12130 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
12131 targets.
12132
121332011-08-02 Yannick Moy <moy@adacore.com>
12134
12135 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
12136 non-simple expression used in delta constraint
12137 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
12138 index constraint which is not a subtype mark
12139 * par.adb: With and use Restrict
12140 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
12141 mode on component type which is not a subtype mark and default
12142 expression on component
12143 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
12144 of string which does not have a lower index bound equal to 1
12145 (Array_Type_Declaration): issue an error in formal mode on index or
12146 component type which is not a subtype mark, and on aliased keyword on
12147 component
12148 (Derived_Type_Declaration): issue an error in formal mode on interface,
12149 limited or abstract type
12150 (Record_Type_Declaration): issue an error in formal mode on interface
12151 (Record_Type_Definition): issue an error in formal mode on tagged types
12152 and type extensions not declared in the specification of a library unit
12153 package; on null non-tagged record; on variant part
12154
121552011-08-02 Vincent Celier <celier@adacore.com>
12156
12157 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
12158 not declared for qualified library project when Library_Name is not
12159 declared, but Library_Dir is.
12160
121612011-08-02 Robert Dewar <dewar@adacore.com>
12162
12163 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
12164 pragmas (affects aspects [Component_]Default_Value
12165 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
12166 component type for the resolution
12167
121682011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12169
12170 * einfo.adb (Base_Type): Tune implementation for speed.
12171
121722011-08-02 Robert Dewar <dewar@adacore.com>
12173
12174 * freeze.adb: Minor reformatting.
12175
121762011-08-02 Thomas Quinot <quinot@adacore.com>
12177
12178 * scos.ads: Update comments.
12179
121802011-08-02 Ed Schonberg <schonberg@adacore.com>
12181
12182 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
12183 base type, because the parent may be a subtype of a private type whose
12184 convention is established in a private part.
12185
121862011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
12187
12188 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
12189 statement in a block when the expansion of the return expression has
12190 created a finalization chain.
12191 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
12192 with the parent node.
12193 Add N_Extended_Return_Statement to handle the case where a transient
12194 object declaration appears in the Return_Object_Declarations list of
12195 an extended return statement.
12196
121972011-08-02 Matthew Gingell <gingell@adacore.com>
12198
12199 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
12200 unused parameter 'name'.
12201
122022011-08-02 Ed Schonberg <schonberg@adacore.com>
12203
12204 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
12205 inherited operation, check whether its alias, which is the source
12206 operastion that it renames, has been marked eliminated.
12207
122082011-08-02 Javier Miranda <miranda@adacore.com>
12209
12210 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
12211 in-mode parameter whose type is an access type since it can be used to
12212 modify its designated object. Enforce code that handles as safe an
12213 access type that is not access-to-constant but it is the result of a
12214 previous removal of side-effects.
12215 (Remove_Side_Effects): Minor code reorganization of cases which require
12216 no action. Done to incorporate documentation on new cases uncovered
12217 working in this ticket: no action needed if this routine was invoked
12218 too early and the nodes are not yet decorated.
12219 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
12220 to routine Remove_Side_Effects by calls to Force_Evaluation since they
12221 were issued with actuals that are implicitly provided by
12222 Force_Evaluation.
12223
122242011-08-02 Robert Dewar <dewar@adacore.com>
12225
12226 * sem_ch3.adb, sem_res.adb: Minor reformatting.
12227
122282011-08-02 Yannick Moy <moy@adacore.com>
12229
12230 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
12231 to issue an error in formal mode on attribute not supported in this mode
12232 (Analyze_Attribute): issue errors on standard attributes not supported
12233 in formal mode.
12234 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
12235 comment, and issue error in formal mode on modulus which is not a power
12236 of 2.
12237 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
12238 range.
12239 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
12240 subtype mark.
12241 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
12242 operator on modular type (except 'not').
12243
122442011-08-02 Robert Dewar <dewar@adacore.com>
12245
12246 * gnat_rm.texi: Minor reformatting.
12247
122482011-08-02 Arnaud Charlet <charlet@adacore.com>
12249
12250 * s-osinte-linux.ads: Minor comment update and reformatting.
12251 * i-cexten.ads: Make this unit pure, as for its parent.
12252 Will allow its usage in more contexts if needed.
12253
122542011-08-02 Robert Dewar <dewar@adacore.com>
12255
12256 * s-utf_32.ads: Minor comment fix.
12257
122582011-08-02 Ed Schonberg <schonberg@adacore.com>
12259
12260 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
12261 operation of a tagged synchronized type, handle the case where the
12262 controlling argument is overloaded.
12263
122642011-08-02 Yannick Moy <moy@adacore.com>
12265
12266 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
12267 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
12268 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
12269 SPARK mode and formal verification mode on processing SPARK restriction
12270 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
12271 requiring consistency checking.
12272
122732011-08-02 Robert Dewar <dewar@adacore.com>
12274
12275 * sem_res.adb: Minor reformatting.
12276
122772011-08-02 Robert Dewar <dewar@adacore.com>
12278
12279 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
12280 a-cforse.ads: Remove unneeded with of Ada.Containers
12281 Remove commented out pragma Inline's
12282 Move specifications of new subprograms to the actual specs
12283
122842011-08-02 Yannick Moy <moy@adacore.com>
12285
12286 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
12287 a-cforse.ads: Update comments.
12288
122892011-08-02 Ed Schonberg <schonberg@adacore.com>
12290
12291 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
12292
122932011-08-02 Robert Dewar <dewar@adacore.com>
12294
12295 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
12296 a-cforse.ads, a-cofove.ads: Minor reformatting.
12297
122982011-08-02 Claire Dross <dross@adacore.com>
12299
12300 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
12301 a-cofove.ads: Add comments.
12302
123032011-08-02 Yannick Moy <moy@adacore.com>
12304
12305 * gnat_rm.texi: Document formal containers.
12306
123072011-08-02 Emmanuel Briot <briot@adacore.com>
12308
12309 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
12310 are empty sections.
12311
123122011-08-02 Robert Dewar <dewar@adacore.com>
12313
12314 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
12315 reformatting.
12316
123172011-08-02 Robert Dewar <dewar@adacore.com>
12318
12319 * aspects.adb: New aspects Default_Value and Default_Component_Value
12320 New format of Aspect_Names table checks for omitted entries
12321 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
12322 handling of boolean aspects for derived types.
12323 New aspects Default_Value and Default_Component_Value
12324 New format of Aspect_Names table checks for omitted entries
12325 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
12326 (Has_Default_Value): New flag
12327 (Has_Default_Component_Value): New flag
12328 (Has_Default_Value): New flag
12329 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
12330 table.
12331 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
12332 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
12333 Default_Value and Default_Component_Value
12334 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
12335 New aspects Default_Value and Default_Component_Value
12336 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
12337 * sprint.adb: Print N_Aspect_Specification node when called from gdb
12338
123392011-08-02 Vincent Celier <celier@adacore.com>
12340
12341 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
12342 inherit library kind.
12343
123442011-08-02 Ed Schonberg <schonberg@adacore.com>
12345
12346 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
12347 Minor reformatting.
12348
123492011-08-02 Robert Dewar <dewar@adacore.com>
12350
12351 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
12352
123532011-08-02 Yannick Moy <moy@adacore.com>
12354
12355 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
12356
123572011-08-02 Robert Dewar <dewar@adacore.com>
12358
12359 * impunit.adb: Add comment.
12360
123612011-08-02 Yannick Moy <moy@adacore.com>
12362
12363 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
12364 qualification of aggregates in formal mode
12365 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
12366 another aggregate
12367 (Resolve_Aggregate): complete the test that an aggregate is adequately
12368 qualified in formal mode
12369
123702011-08-02 Pascal Obry <obry@adacore.com>
12371
12372 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
12373 * mlib-prj.adb: Supress warning when compiling binder generated file.
12374 (Build_Library): Supress all warnings when compiling the binder
12375 generated file.
12376
123772011-08-02 Yannick Moy <moy@adacore.com>
12378
12379 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
12380 from here...
12381 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
12382 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
12383 Add with/use clauses to make Check_Formal_Restriction visible
12384
123852011-08-02 Ed Schonberg <schonberg@adacore.com>
12386
12387 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
12388 in-parameters when type of the generic formal is private in the generic
12389 spec and non-private in the body.
12390
123912011-08-02 Claire Dross <dross@adacore.com>
12392
12393 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
12394 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
12395 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
12396 * impunit.adb, Makefile.rtl: Take new files into account.
12397
123982011-08-02 Robert Dewar <dewar@adacore.com>
12399
12400 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
12401 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
12402
124032011-08-02 Yannick Moy <moy@adacore.com>
12404
12405 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
12406 formal mode
12407 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
12408 matching static array bounds, taking into account the special case of
12409 string literals
12410 * sem_ch3.adb: Typo in comment.
12411
124122011-08-02 Yannick Moy <moy@adacore.com>
12413
12414 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
12415 which issues an error in formal mode if its argument node is originally
12416 from source
12417 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
12418 has a discriminant specification so that it does not include the case
12419 of derived types
12420 (Derived_Type_Declaration): move here the test that a derived type has a
12421 discriminant specification
12422 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
12423 first element of a component association before accessing its choices
12424 (presence of component association is not enough)
12425 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
12426 declaration is a library item before accessing the next element in a
12427 list, as library items are not member of lists
12428 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
12429 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
12430 Check_Formal_Restriction whenever possible.
12431
124322011-08-02 Ed Schonberg <schonberg@adacore.com>
12433
12434 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
12435 reference when needed.
12436
124372011-08-02 Bob Duff <duff@adacore.com>
12438
12439 * gnat_ugn.texi: Fix typo.
12440
124412011-08-02 Vincent Celier <celier@adacore.com>
12442
12443 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
12444 archive file name. Do not use the full path name of archives for Open
12445 VMS.
12446
124472011-08-02 Robert Dewar <dewar@adacore.com>
12448
12449 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
12450 Analyze_Aspect_Specifications
12451 * sem_ch13.adb
12452 (Analyze_Aspect_Specifications): New handling for boolean aspects
12453 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
12454 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
12455 sequence for Analyze_Aspect_Specifications
12456 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
12457 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
12458
124592011-08-02 Robert Dewar <dewar@adacore.com>
12460
12461 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
12462 aspects, since these no longer exist.
12463
124642011-08-02 Robert Dewar <dewar@adacore.com>
12465
12466 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
12467 semicolon, do not try to see if there are aspects following it.
12468 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
12469 aspect spec.
12470
124712011-08-02 Robert Dewar <dewar@adacore.com>
12472
12473 * sem_ch8.adb, aspects.ads: Minor reformatting.
12474
124752011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12476
12477 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
12478 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
12479 extracted from...
12480 (Analyze_Aspect_Specifications): ...here. Call above procedure.
12481
124822011-08-02 Yannick Moy <moy@adacore.com>
12483
12484 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
12485 mode on subprogram declaration outside of package specification, unless
12486 it is followed by a pragma Import
12487 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
12488 Access_Type_Declaration): issue error in formal mode on access type
12489 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
12490 incomplete type
12491 (Analyze_Object_Declaration): issue error in formal mode on object
12492 declaration which does not respect SPARK restrictions
12493 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
12494 declaration which does not respect SPARK restrictions
12495 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
12496 error in formal mode on digits or delta constraint
12497 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
12498 decimal fixed point type
12499 (Derived_Type_Declaration): issue error in formal mode on derived type
12500 other than type extensions of tagged record types
12501 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
12502 with check on access definition
12503 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
12504 mode on protected definition.
12505 (Analyze_Task_Definition): issue error in formal mode on task definition
12506
125072011-08-02 Robert Dewar <dewar@adacore.com>
12508
12509 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
12510
125112011-08-02 Javier Miranda <miranda@adacore.com>
12512
12513 * sem_ch6.adb (Can_Override_Operator): New function.
12514 (Verify_Overriding_Indicator): Add missing code to check overriding
12515 indicator in operators. Fixes regression.
12516 (Check_Overriding_Indicator): Minor reformating after replacing the
12517 code that evaluates if the subprogram can override an operator by
12518 invocations to the above new function.
12519 * einfo.adb
12520 (Write_Field26_Name): Add missing code to ensure that, following
12521 the documentation in einfo.ads, this field is not shown as attribute
12522 "Static_Initialization" on non-dispatching functions.
12523
125242011-08-02 Jose Ruiz <ruiz@adacore.com>
12525
12526 * sem_res.adb (Resolve_Call): A call to
12527 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
12528 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
12529 i.e., when the second parameter is of type Time_Span.
12530
125312011-08-02 Vincent Celier <celier@adacore.com>
12532
12533 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
12534 with an archive instead of -L<library dir> -l<library name>.
12535
125362011-08-02 Ed Schonberg <schonberg@adacore.com>
12537
12538 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
12539 mark the base types In_Use in addition to making the operations
12540 use_visible.
12541
125422011-08-02 Ed Falis <falis@adacore.com>
12543
12544 * init.c: add and setup __gnat_signal_mask for the exception signals
12545 * s-inmaop-vxworks.adb: new file.
12546 * s-intman-vxworks.adb: remove unnecessary initializations and
12547 simplify remaining
12548 * s-intman-vxworks.ads: remove unnecessary variable
12549 * s-taprop-vxworks.adb: simplify signal initialization
12550
125512011-08-02 Robert Dewar <dewar@adacore.com>
12552
12553 * sem_ch8.adb: Minor code reorganization, comment updates.
12554
125552011-08-02 Robert Dewar <dewar@adacore.com>
12556
12557 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
12558 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
12559 here from Sem_Res.
12560 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
12561 (Matching_Static_Array_Bounds): Moved here from Sem_Res
12562
125632011-08-02 Ed Schonberg <schonberg@adacore.com>
12564
12565 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
12566 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
12567 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
12568 use_type_clauses, to handle more efficiently use_type and use_all_type
12569 constructs.
12570 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
12571 Ada2012 Use_All_Type clause.
12572 (Use_Class_Wide_Operations): new procedure.
12573
125742011-08-02 Robert Dewar <dewar@adacore.com>
12575
12576 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
12577 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
12578 expression to expression function.
12579
125802011-08-02 Ed Schonberg <schonberg@adacore.com>
12581
12582 * sem_ch4.adb: transform simple Ada2012 membership into equality only
12583 if types are compatible.
12584
125852011-08-02 Yannick Moy <moy@adacore.com>
12586
12587 * sem_res.adb (Matching_Static_Array_Bounds): new function which
12588 returns True if its argument array types have same dimension and same
12589 static bounds at each index.
12590 (Resolve_Actuals): issue an error in formal mode on actuals passed as
12591 OUT or IN OUT paramaters which are not view conversions in SPARK.
12592 (Resolve_Arithmetic_Op): issue an error in formal mode on
12593 multiplication or division with operands of fixed point types which are
12594 not qualified or explicitly converted.
12595 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
12596 Boolean or array type (except String) operands.
12597 (Resolve_Equality_Op): issue an error in formal mode on equality
12598 operators for array types other than String with non-matching static
12599 bounds.
12600 (Resolve_Logical_Op): issue an error in formal mode on logical operators
12601 for array types with non-matching static bounds. Factorize the code in
12602 Matching_Static_Array_Bounds.
12603 (Resolve_Qualified_Expression): issue an error in formal mode on
12604 qualified expressions for array types with non-matching static bounds.
12605 (Resolve_Type_Conversion): issue an error in formal mode on type
12606 conversion for array types with non-matching static bounds
12607
126082011-08-02 Robert Dewar <dewar@adacore.com>
12609
12610 * par-ch10.adb: Minor code reorganization (use Nkind_In).
12611
126122011-08-02 Ed Schonberg <schonberg@adacore.com>
12613
12614 * par-ch9.adb: save location of entry for proper error message.
12615
126162011-08-02 Javier Miranda <miranda@adacore.com>
12617
12618 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
12619 (Use_Full_View) which permits this routine to climb through the
12620 ancestors using the full-view of private parents.
12621 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
12622 Use_Full_View to true in calls to Is_Ancestor.
12623 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
12624 true in call to Is_Ancestor.
12625 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
12626 Use_Full_View to true in call to Is_Ancestor.
12627 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
12628 call to Is_Ancestor.
12629 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
12630 Use_Full_View to true in calls to Is_Ancestor.
12631 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
12632 Make_Select_Specific_Data_Table, Register_Primitive,
12633 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
12634 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
12635 to true in call to Is_Ancestor.
12636 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
12637 Use_Full_View to true in calls to Is_Ancestor.
12638 * exp_cg.adb
12639 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
12640 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
12641
126422011-08-02 Robert Dewar <dewar@adacore.com>
12643
12644 * gnat_rm.texi: Minor reformatting.
12645 * sem_prag.adb: Minor reformatting.
12646
126472011-08-02 Tristan Gingold <gingold@adacore.com>
12648
12649 * vms_data.ads: Add VMS qualifier for -gnateP.
12650
126512011-08-02 Robert Dewar <dewar@adacore.com>
12652
12653 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
12654 * par-ch7.adb (P_Package): Proper placement of aspects for package
12655 decl/instantiation.
12656 * par-endh.adb (Check_End): Ad Is_Sloc parameter
12657 (End_Statements): Add Is_Sloc parameterr
12658 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
12659 (Check_End): Ad Is_Sloc parameter
12660 (End_Statements): Add Is_Sloc parameterr
12661
126622011-08-02 Vincent Celier <celier@adacore.com>
12663
12664 * ug_words: Add VMS qualifier equivalent to -gnateP:
12665 /SYMBOL_PREPROCESSING.
12666
126672011-08-02 Jose Ruiz <ruiz@adacore.com>
12668
12669 * gnat-style.texi: For hexadecimal numeric literals the typical
12670 grouping of digits is 4 to represent 2 bytes.
12671 A procedure spec which is split into several lines is indented two
12672 characters.
12673
126742011-08-02 Yannick Moy <moy@adacore.com>
12675
12676 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
12677 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
12678 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
12679 properly qualified
12680 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
12681 choice in array aggregate
12682 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
12683 mark as ancestor
12684 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
12685 positional and named aggregate for record, or others in record
12686 aggregate, or multiple choice in record aggregate
12687 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
12688 array operands to logical operations AND, OR and XOR do not have the
12689 same static lower and higher bounds
12690 * sem_ch5.adb, sinfo.ads: Correct typos in comments
12691
126922011-08-01 Robert Dewar <dewar@adacore.com>
12693
12694 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
12695 Replaces Last_Source_Node_In_Sequence.
12696 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
12697 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
12698 parens and blank in string (this was inconsistently implemented).
12699 * errout.ads
12700 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
12701 blank in string (this was inconsistently implemented).
12702 * gnat1drv.adb
12703 (Set_Global_Switches): Set formal mode switches appropriately
12704 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
12705 * par-prag.adb
12706 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
12707 call Set_Error_Msg_Lang to set "spark" as language name.
12708 * par.adb: Remove unnecessary call to set formal language for errout
12709 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
12710 appropriately and call Set_Error_Msg_Lang to set "spark" as language
12711 name.
12712 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
12713 calls to it, moved after resolution so that types are known
12714 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
12715 result of concatenation is not of type String
12716 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
12717 concatenation is not properly restricted
12718 * gnat_rm.texi: Add doc on pragma Spark_95.
12719 * gcc-interface/Makefile.in: Remove obsolete target pairs for
12720 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
12721 * gcc-interface/Make-lang.in: Update dependencies.
12722
127232011-08-01 Javier Miranda <miranda@adacore.com>
12724
12725 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
12726 condition that detects if the overridden operation must replace an
12727 existing entity.
12728
127292011-08-01 Javier Miranda <miranda@adacore.com>
12730
12731 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
12732 code declarations inserted by Insert_Actions in each alternative of the
12733 N_Case_Expression node.
12734
127352011-08-01 Robert Dewar <dewar@adacore.com>
12736
12737 * sem_ch6.adb: Minor code reorganization.
12738 * sem_util.adb: Minor reformatting.
12739
127402011-08-01 Pascal Obry <obry@adacore.com>
12741
12742 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
12743 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
12744
127452011-08-01 Yannick Moy <moy@adacore.com>
12746
12747 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
12748 literal or operator symbol which is prefixed
12749 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
12750 mode on access attributes.
12751 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
12752 that concatenation operands are properly restricted in formal mode
12753 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
12754 Analyze_Concatenation_Operand. Issue an error in formal mode if the
12755 result of the concatenation has a type different from String.
12756 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
12757 Analyze_Quantified_Expression, Analyze_Slice,
12758 Analyze_Null): issue an error in formal mode on unsupported constructs
12759 * sem_ch5.adb
12760 (Analyze_Block_Statement): only issue error on source block statement
12761 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
12762 function which returns the last node in a list of nodes for which
12763 Comes_From_Source returns True, if any
12764 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
12765 Last_Source_Node_In_Sequence
12766 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
12767 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
12768 mode on unsupported constructs
12769 * sem_ch9.adb Do not return after issuing error in formal mode, as the
12770 rest of the actions may be needed later on since the error is marked as
12771 not serious.
12772 * sinfo.ads: Typos in comments.
12773
127742011-08-01 Pascal Obry <obry@adacore.com>
12775
12776 * projects.texi: Minor editing.
12777
127782011-08-01 Yannick Moy <moy@adacore.com>
12779
12780 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
12781 insertion character ~~
12782 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
12783 (Set_Error_Msg_Lang): new procedure which fixes the language for use
12784 with insertion character ~~
12785 (Set_Msg_Text): treat insertion character ~~
12786 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
12787 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
12788 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
12789 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
12790 errors related to the formal language restriction not serious
12791 (insertion character |).
12792 * par.adb (Par): set formal language for error messages if needed
12793 * sem_ch6.adb (Check_Missing_Return): take into account possible
12794 generated statements at the end of the function
12795 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
12796 enumeration value to define a new pragma SPARK_95
12797 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
12798 SPARK_Version): new type and variables to store the SPARK version
12799 (none by default).
12800 (SPARK_Mode): return True when SPARK_Version is set
12801 * par-prag.adb: Correct indentation
12802 (Prag): take Pragma_SPARK_95 into account
12803 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
12804 into account.
12805
128062011-08-01 Robert Dewar <dewar@adacore.com>
12807
12808 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
12809 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
12810 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
12811
128122011-08-01 Pascal Obry <obry@adacore.com>
12813
12814 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
12815 Target_Name to Get_Path call.
12816 (Parse_Single_Project): Likewise.
12817 (Post_Parse_Context_Clause): Likewise.
12818 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
12819 Call Initialise_Project_Path with the proper Target_Name.
12820 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
12821 search path.
12822 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
12823 with the proper Target_Name.
12824 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
12825 Part.Parse routine.
12826 (Parse_Project_And_Apply_Config): Likewise.
12827 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
12828 This is fine as this part of the code is supporting only native
12829 compilation.
12830 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
12831 is fine as this part of the code is supporting only native compilation.
12832
128332011-08-01 Yannick Moy <moy@adacore.com>
12834
12835 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
12836 of homonym, unless the homonym is one of the cases allowed in SPARK
12837 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
12838 package declaration occurring after a body.
12839
128402011-08-01 Robert Dewar <dewar@adacore.com>
12841
12842 * checks.adb, exp_ch4.adb: Minor reformatting.
12843
128442011-08-01 Javier Miranda <miranda@adacore.com>
12845
12846 * einfo.ads (Access_Disp_Table): Fix documentation.
12847 (Dispatch_Table_Wrappers): Fix documentation.
12848
128492011-08-01 Pascal Obry <obry@adacore.com>
12850
12851 * prj-env.adb, prj-env.ads: Minor reformatting.
12852
128532011-08-01 Yannick Moy <moy@adacore.com>
12854
12855 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
12856 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
12857 procedures out of these packages.
2c7f9cc0 12858 * errout.ads, errout.adb
052e0603
AC
12859 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
12860 procedures in of this package
12861 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
12862 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
12863 on misplaced later vs initial declarations, like in Ada 83
12864 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
12865 formal mode on attribute of private type whose full type declaration
12866 is not visible
12867 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
12868 package declaration inside a package specification
12869 (Analyze_Full_Type_Declaration): issue error in formal mode on
12870 controlled type or discriminant type
12871 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
12872 user-defined operator means that it should come from the source
12873 (New_Overloaded_Entity): issue error in formal mode on overloaded
12874 entity.
12875 * sem_ch6.ads, sem_ch13.ads: typos in comments.
12876
128772011-08-01 Thomas Quinot <quinot@adacore.com>
12878
12879 * atree.adb: Minor reformatting.
12880 * checks.adb: Minor reformatting.
12881
128822011-08-01 Vincent Celier <celier@adacore.com>
12883
12884 * s-parame-vms-ia64.ads: Fix typo in comment
12885 Minor reformatting
12886 * s-parame-vms-restrict.ads: Removed, unused.
12887
128882011-08-01 Javier Miranda <miranda@adacore.com>
12889
12890 * exp_ch3.adb
12891 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
12892 * sem_ch3.adb
12893 (Constrain_Index): Remove side effects in the evaluation of the bounds.
12894 * sem_ch3.ads, sem_ch3.adb
12895 (Is_Constant_Bound): New extended version of the subprogram that was
12896 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
12897 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
12898 * sem_aux.ads (Constant_Value): Fix typo in comment.
12899 * checks.adb (Generate_Index_Checks): New implementation which, for
12900 array objects with constant bounds, generates the runtime check
12901 referencing the bounds of the array type. For other cases this routine
12902 provides its previous behavior obtaining such values from the array
12903 object.
12904 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
12905 parent type.
12906 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
12907 we cannot have semantic interpretations of the new node.
12908
129092011-08-01 Ed Schonberg <schonberg@adacore.com>
12910
12911 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
12912 expressions.
12913
129142011-08-01 Arnaud Charlet <charlet@adacore.com>
12915
12916 * sem_ch8.adb: Minor code editing.
12917 * s-vxwext.adb: Remove trailing space.
12918 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
12919 consistency with other files.
12920
129212011-08-01 Thomas Quinot <quinot@adacore.com>
12922
12923 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
12924
129252011-08-01 Ed Schonberg <schonberg@adacore.com>
12926
12927 * par-ch10.adb: reject parameterized expressions as compilation unit.
12928 * sem_ch4.adb: handle properly conditional expression with overloaded
12929 then_clause and no else_clause.
12930
129312011-08-01 Tristan Gingold <gingold@adacore.com>
12932
12933 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
12934 like done by System.Aux_DEC.
12935 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
12936
129372011-08-01 Yannick Moy <moy@adacore.com>
12938
12939 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
12940 missing label at end of declaration (subprogram or package)
12941 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
12942 of positional and named parameter association
12943 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
12944 Error_Msg_SP which adds a prefix to the error message giving the name
12945 of the formal language analyzed
12946 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
12947 access result type in subprogram, unconstrained array as result type,.
12948 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
12949 procedure
12950 * sem_ch8.adb: Code clean up.
12951
129522011-08-01 Javier Miranda <miranda@adacore.com>
12953
12954 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
12955 * einfo.ads (Access_Disp_Table): Fix documentation.
12956 (Dispatch_Table_Wrappers): Fix documentation.
12957 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
12958 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
12959 to enforce the documentation of this attribute.
12960 (Set_Is_Interface): Cleanup the assertion.
12961 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
12962 the Underlying_Type entity before reading attribute Access_Disp_Table.
12963 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
12964 Locate the Underlying_Type before reading attribute Access_Disp_Table.
12965 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
12966 the Underlying_Type entity before reading attribute Access_Disp_Table.
12967 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
12968 Locate the Underlying_Type entity before reading attribute
12969 Access_Disp_Table.
12970
129712011-08-01 Ed Schonberg <schonberg@adacore.com>
12972
12973 * s-poosiz.ads: Additional overriding indicators.
12974
129752011-08-01 Yannick Moy <moy@adacore.com>
12976
12977 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
12978 formal mode.
12979 (Analyze_Iteration_Scheme): issue error in formal mode when loop
12980 parameter specification does not include a subtype mark.
12981 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
12982 formal mode on abstract subprogram.
12983 (Analyze_Subprogram_Specification): issue error in formal mode on
12984 user-defined operator.
12985 (Process_Formals): issue error in formal mode on access parameter and
12986 default expression.
12987 * sem_ch9.adb (Analyze_Abort_Statement,
12988 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
12989 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
12990 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
12991 Analyze_Requeue, Analyze_Selective_Accept,
12992 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
12993 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
12994 issue error in formal mode on user-defined raise statement.
12995
129962011-08-01 Thomas Quinot <quinot@adacore.com>
12997
12998 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
12999 declaration being hidden when overriding an implicit inherited
13000 subprogram.
13001 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
13002 (-gnats), do not complain about a source file that contains only a
13003 pragma No_Body.
13004
130052011-08-01 Ed Schonberg <schonberg@adacore.com>
13006
13007 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
13008 variable if already set.
13009
130102011-08-01 Arnaud Charlet <charlet@adacore.com>
13011
13012 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
13013 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
13014 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
13015 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
13016 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
13017 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
13018 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
13019 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
13020 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
13021 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
13022 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
13023 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
13024 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
13025 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
13026 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
13027 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
13028 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
13029 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
13030 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
13031 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
13032 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
13033 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
13034 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
13035 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
13036 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
13037 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
13038 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
13039 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
13040 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
13041 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
13042 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
13043 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
13044 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
13045 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
13046 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
13047 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
13048 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
13049 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
13050 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
13051 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
13052 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
13053 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
13054 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
13055 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
13056 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
13057 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
13058 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
13059 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
13060 s-osinte-mingw.ads: Update to GPLv3 run-time license.
13061 Use GNAT instead of GNARL.
13062
130632011-08-01 Bob Duff <duff@adacore.com>
13064
13065 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
13066 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
13067 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
13068 reformatting.
13069
130702011-08-01 Yannick Moy <moy@adacore.com>
13071
13072 * debug.adb (d.D) reverve flag for the SPARK mode
13073 (d.E) reverve flag for SPARK generation mode
13074 (d.F) reverve flag for Why generation mode
2c7f9cc0 13075 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
052e0603
AC
13076 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
13077 functions which return True when the corresponding modes are set
13078 (Formal_Language): return "spark" or "alfa" when in formal verification
13079 mode.
13080 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
13081 Error_Msg to prefix the error message with a tag giving the formal
13082 language
13083 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
13084 message with a tag giving the formal language
13085 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
13086 block statement
13087 (Analyze_Case_Statement): issue error in formal mode on case statement
13088 with a single "others" case alternative
13089 (Analyze_Exit_Statement): issue errors in formal mode on exit
13090 statements which do not respect SPARK restrictions
13091 (Analyze_Goto_Statement): issue error in formal mode on goto statement
13092 (Check_Unreachable_Code): always issue an error (not a warning) in
13093 formal mode on unreachable code (concerns both code after an infinite
13094 loop and after an unconditional jump, both not allowed in SPARK)
13095 * sem_ch6.adb (Analyze_Return_Statement): add call to
13096 Set_Return_Present for a procedure containing a return statement
13097 (already done for functions in Analyze_Function_Return)
13098 (Analyze_Function_Return): issue error in formal mode on extended
13099 return or if return is not last statement in function
13100 (Check_Missing_Return): issue error in formal mode if function does
13101 not end with return or if procedure contains a return
13102 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
13103 function to detect if there is an inner scope of its parameter S which
13104 is a loop.
13105
131062011-08-01 Thomas Quinot <quinot@adacore.com>
13107
13108 * sem_ch6.ads: Minor reformatting.
13109
131102011-08-01 Javier Miranda <miranda@adacore.com>
13111
13112 * sem_util.adb (Abstract_Interface_List): Complete condition when
13113 processing private type declarations to avoid reading unavailable
13114 attribute.
13115 (Is_Synchronized_Tagged_Type): Complete condition when processing
13116 private extension declaration nodes to avoid reading unavailable
13117 attribute.
13118
131192011-08-01 Thomas Quinot <quinot@adacore.com>
13120
13121 * sem_ch3.adb: Minor reformatting.
13122
131232011-08-01 Thomas Quinot <quinot@adacore.com>
13124
13125 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
13126 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
13127 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
13128 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
13129 for VMS, instead parametrize the common implementation with
13130 System.Parameters declarations.
13131
131322011-08-01 Eric Botcazou <ebotcazou@adacore.com>
13133
13134 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
13135
131362011-08-01 Tristan Gingold <gingold@adacore.com>
13137
13138 * seh_init.c: Fix SEH handler installation on win64.
13139
131402011-08-01 Ed Schonberg <schonberg@adacore.com>
13141
13142 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
13143 double analysis of an anonymous access to subprogram, because it can
13144 lead to improper sharing of profiles and a back-end crash.
13145
131462011-08-01 Robert Dewar <dewar@adacore.com>
13147
13148 * make.adb, sem_ch4.adb: Minor reformatting.
13149 * gcc-interface/Make-lang.in: Update dependencies.
13150 * sem_util.adb, exp_ch5.adb: Minor reformatting.
13151
131522011-08-01 Arnaud Charlet <charlet@adacore.com>
13153
13154 * gnat_rm.texi: Fix definition of Long_Integer.
13155
131562011-08-01 Ed Schonberg <schonberg@adacore.com>
13157
13158 * exp_aggr.adb: check limit size of static aggregate unconditionally,
13159 to prevent storage exhaustion.
13160 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
13161 finalized is a function body, insert the cleanup code before the final
13162 return statement, to prevent spurious warnings.
13163 * s-pooglo.ads: add overriding indicator.
13164
131652011-08-01 Ed Schonberg <schonberg@adacore.com>
13166
13167 * sem_ch4.adb (Operator_Check): improve error message when both a
13168 with_clause and a use_clause are needed to make operator usage legal.
13169 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
13170 determine whether a compilation unit is visible within an other,
13171 either through a with_clause in the current unit, or a with_clause in
13172 its library unit or one one of its parents.
13173
131742011-08-01 Ed Schonberg <schonberg@adacore.com>
13175
13176 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
13177 over an arbitrary expression of an array or container type.
13178 * lib-xref.adb: clarify comment.
13179
131802011-08-01 Bob Duff <duff@adacore.com>
13181
13182 * einfo.ads: Minor reformatting.
13183 * debug.adb: Minor comment improvement.
13184
131852011-08-01 Javier Miranda <miranda@adacore.com>
13186
13187 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
13188 consider hidden subprograms as valid candidates.
13189
131902011-08-01 Arnaud Charlet <charlet@adacore.com>
13191
13192 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
13193
131942011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
13195
13196 * gnat_ugn.texi: Fix typo.
13197
131982011-08-01 Robert Dewar <dewar@adacore.com>
13199
13200 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
13201 lib-xref.adb: Minor reformatting
13202
132032011-08-01 Gary Dismukes <dismukes@adacore.com>
13204
13205 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
13206 when to generate a call to Move_Final_List.
13207 (Has_Controlled_Parts): Remove this function.
13208
132092011-08-01 Geert Bosch <bosch@adacore.com>
13210
13211 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
13212 "," in choice list.
13213
132142011-08-01 Thomas Quinot <quinot@adacore.com>
13215
13216 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
13217 explicit raise of a predefined exception as Comes_From_Source if the
13218 original N_Raise_Statement comes from source.
13219
132202011-08-01 Robert Dewar <dewar@adacore.com>
13221
13222 * sinfo.ads: Add comment.
13223 * sem_ch6.adb: Minor reformatting.
13224
132252011-08-01 Robert Dewar <dewar@adacore.com>
13226
13227 * freeze.adb (Freeze_Entity): Refine check for bad component size
13228 clause to avoid rejecting confirming clause when atomic/aliased present.
13229
132302011-08-01 Ed Schonberg <schonberg@adacore.com>
13231
13232 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
13233 better determine whether an entity reference is a write.
13234 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
13235 subcomponent.
13236 * lib-xref.adb (Output_References): Do no suppress a read reference at
13237 the same location as an immediately preceeding modify-reference, to
13238 handle properly in-out actuals.
13239
132402011-08-01 Tristan Gingold <gingold@adacore.com>
13241
13242 * env.c (__gnat_setenv) [VMS]: Refine previous change.
13243
132442011-08-01 Quentin Ochem <ochem@adacore.com>
13245
13246 * i-cstrin.adb (New_String): Changed implementation, now uses only the
13247 heap to compute the result.
13248
132492011-08-01 Robert Dewar <dewar@adacore.com>
13250
13251 * atree.ads: Minor reformatting.
13252
132532011-08-01 Emmanuel Briot <briot@adacore.com>
13254
13255 * g-expect.adb (Get_Command_Output): Fix memory leak.
13256
132572011-08-01 Geert Bosch <bosch@adacore.com>
13258
13259 * cstand.adb (P_Float_Type): New procedure to print the definition of
13260 predefined fpt types.
13261 (P_Mixed_Name): New procedure to print a name using mixed case
13262 (Print_Standard): Use P_Float_Type for printing floating point types
13263 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
13264 precision IEEE float.
13265
132662011-08-01 Thomas Quinot <quinot@adacore.com>
13267
13268 * sem_ch3.adb: Minor reformatting.
13269
132702011-08-01 Ed Schonberg <schonberg@adacore.com>
13271
13272 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
13273 the completion of a generic function, insert the new body rather than
13274 rewriting the original.
13275
132762011-08-01 Yannick Moy <moy@adacore.com>
13277
13278 * sinfo.ads, errout.ads: Typos in comments.
13279
132802011-08-01 Robert Dewar <dewar@adacore.com>
13281
13282 * par-endh.adb: Minor reformatting.
13283
132842011-08-01 Robert Dewar <dewar@adacore.com>
13285
13286 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
13287 (Pre_Post_Aspects): New subtype.
13288 * par-ch12.adb (P_Generic): New syntax for aspects in packages
13289 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
13290 * par-ch7.adb (P_Package): Remove Decl parameter
13291 (P_Package): Handle new syntax for aspects (before IS)
13292 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
13293 new aspect syntax
13294 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
13295 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
13296 (P_Package): Remove Decl parameter
13297 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
13298 aspects
13299 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
13300 specs
13301 * sem_util.ads, sem_util.adb (Static_Boolean): New function
13302 * sinfo.ads: Document new syntax for aspects in packages etc.
13303 * sprint.adb: Handle new syntax of aspects before IS in package
13304
133052011-08-01 Thomas Quinot <quinot@adacore.com>
13306
13307 * atree.ads: Minor reformatting.
13308 * sem_prag.adb: Minor reformatting.
13309
133102011-08-01 Robert Dewar <dewar@adacore.com>
13311
13312 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
13313 case expr alternative.
13314
133152011-08-01 Ed Schonberg <schonberg@adacore.com>
13316
13317 * sem_ch12.adb: Fix typo.
13318
133192011-08-01 Geert Bosch <bosch@adacore.com>
13320
13321 * sem_prag.adb (Check_No_Link_Name): New procedure.
13322 (Process_Import_Or_Interface): Use Check_No_Link_Name.
13323 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
13324 instead of Standard_Long_Long_Float_Size global. Preparation for
13325 eventual removal of per type constants.
13326 * exp_util.ads (Get_Stream_Size): New function returning the stream
13327 size value of subtype E.
13328 * exp_util.adb (Get_Stream_Size): Implement new function.
13329 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
13330 function.
13331 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
13332 * einfo.adb:
13333 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
13334
133352011-08-01 Geert Bosch <bosch@adacore.com>
13336
13337 * cstand.adb: Fix comments.
13338 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
13339 count of arguments.
13340
133412011-08-01 Robert Dewar <dewar@adacore.com>
13342
13343 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
13344
133452011-08-01 Geert Bosch <bosch@adacore.com>
13346
13347 * atree.ads: Fix comment.
13348
133492011-08-01 Robert Dewar <dewar@adacore.com>
13350
13351 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
13352 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
13353 * par.adb: Add with for Namet.Sp.
13354 * par-tchk.adb: Minor reformatting.
13355
133562011-08-01 Vincent Celier <celier@adacore.com>
13357
13358 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
13359 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
13360 of the init procedure of a SAL.
13361 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
13362 New procedure.
13363
133642011-08-01 Thomas Quinot <quinot@adacore.com>
13365
13366 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
13367 reformatting.
13368
133692011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13370
13371 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
13372
133732011-08-01 Thomas Quinot <quinot@adacore.com>
13374
13375 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
13376 conformant with its spec (return True only for types that have
13377 an overriding Initialize primitive operation that prevents them from
13378 having preelaborable initialization).
13379 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
13380 initialization for controlled types in Ada 2005 or later mode.
13381
133822011-08-01 Robert Dewar <dewar@adacore.com>
13383
13384 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
13385 Postcondition.
13386 (Same_Aspect): New function.
13387 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
13388 Type_Invariant, Precondition, Postcondition.
13389 * snames.ads-tmpl: Add Name_Type_Invariant.
13390
133912011-08-01 Robert Dewar <dewar@adacore.com>
13392
13393 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
13394 here.
13395 (Freeze_All_Ent): Fix error in handling inherited aspects.
13396 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
13397 already analyzed, but don't skip entire processing of a declaration,
13398 that's wrong in some cases of declarations being rewritten.
13399 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
13400 Don't delay for integer, string literals
13401 Treat predicates in usual manner for delay, remove special case code,
13402 not needed.
13403 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
13404 (Build_Predicate_Function): Update saved expression in aspect
13405 (Build_Invariant_Procedure): Update saved expression in aspect
13406 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
13407 of replacement of discriminant references if the reference is simple.
13408
134092011-08-01 Robert Dewar <dewar@adacore.com>
13410
13411 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
13412 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
13413 Static_Predicate and Dynamic_Predicate.
13414 (Build_Predicate_Function): Add processing for Static_Predicate
13415 and Dynamic_Predicate.
13416 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
13417 (From_Static_Predicate): New flag
13418 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
13419
134202011-08-01 Robert Dewar <dewar@adacore.com>
13421
13422 * usage.adb: Documentation cleanup for Ada version modes in usage.
13423 * expander.adb: Minor reformatting.
13424
134252011-08-01 Robert Dewar <dewar@adacore.com>
13426
13427 * atree.ads: Minor comment fix.
13428 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
13429 a-witeio.ads, sem_prag.adb: Minor reformatting.
13430
134312011-08-01 Doug Rupp <rupp@adacore.com>
13432
13433 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
13434 pointers. Use descrip.h header file for convenience. Add some
13435 comments.
13436
134372011-08-01 Robert Dewar <dewar@adacore.com>
13438
13439 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
13440 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
13441 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
13442 New procedure.
13443 (Check_Aspect_At_End_Of_Declarations): New procedure
13444 (Analye_Aspect_Specification): Minor changes for above procedures
13445 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
13446 specification node as well.
13447
134482011-08-01 Pascal Obry <obry@adacore.com>
13449
13450 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
13451 Windows files. Use GetFilesAttributes() in this case to check for file
13452 existence instead of returning with an error code.
13453
134542011-08-01 Vincent Celier <celier@adacore.com>
13455
13456 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
13457 High is above Source length.
13458
134592011-08-01 Robert Dewar <dewar@adacore.com>
13460
13461 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
13462
134632011-08-01 Robert Dewar <dewar@adacore.com>
13464
13465 * aspects.ads (Boolean_Aspects): New subtype.
13466 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
13467 for derived types in cases where the parent type and derived type have
13468 aspects.
13469 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
13470 with aspects when parent type also has aspects.
13471 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
13472 boolean expression at this point).
13473 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
13474 accordance with final decision on the Ada 2012 feature.
13475 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
13476
134772011-08-01 Matthew Heaney <heaney@adacore.com>
13478
13479 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
13480
134812011-08-01 Pascal Obry <obry@adacore.com>
13482
13483 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
13484 Fix Replace_Slice when High is above current string size.
13485 (Replace_Slice): Fix DL computation when High is above current
13486 string length.
13487
134882011-08-01 Gary Dismukes <dismukes@adacore.com>
13489
13490 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
13491
134922011-08-01 Matthew Heaney <heaney@adacore.com>
13493
13494 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
13495 of node.
13496
134972011-08-01 Pascal Obry <obry@adacore.com>
13498
13499 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
13500 reformatting.
13501
135022011-08-01 Ed Schonberg <schonberg@adacore.com>
13503
13504 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
13505 access to protected subprograms in generic bodies.
13506 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
13507 protected type, indicate that the convention of the subprogram is
13508 Convention_Protected, because it may be used in subsequent declarations
13509 within the protected declaration.
13510
135112011-08-01 Vincent Celier <celier@adacore.com>
13512
13513 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
13514 and "final" procedures when the name of the library is "ada", to avoid
13515 duplicate symbols "adainit" and "adafinal" in executables.
13516
135172011-08-01 Ed Schonberg <schonberg@adacore.com>
13518
13519 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
13520 quantified expression that appears within a postcondition and uses the
13521 Ada2012 'Result attribute.
13522
135232011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13524
13525 * init.c (__gnat_error_handler): Cast reason to int.
13526 (__gnat_install_handler): Explain sa_sigaction use.
13527
135282011-07-24 Eric Botcazou <ebotcazou@adacore.com>
13529
13530 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
13531 subprogram has copy-in copy-out parameters, try to promote the mode of
13532 the return type if it is passed in registers.
13533
135342011-07-24 Eric Botcazou <ebotcazou@adacore.com>
13535
13536 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
13537 left operand as addressable.
13538
135392011-07-24 Eric Botcazou <ebotcazou@adacore.com>
13540
13541 * gcc-interface/gigi.h (build_function_stub): Remove.
13542 (build_return_expr): Likewise.
13543 (convert_vms_descriptor): Declare.
13544 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
13545 (build_function_stub): Move to...
13546 * gcc-interface/utils2.c (build_return_expr): Move to...
13547 * gcc-interface/trans.c (build_function_stub): ...here.
13548 (build_return_expr): ...here.
13549 (Subprogram_Body_to_gnu): Add local variable for language_function.
13550 Disconnect the parameter attributes cache, if any, once done with it.
13551 Call end_subprog_body only after setting the end_locus.
13552 Build the stub associated with the function, if any, at the very end.
13553 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
13554 variables and streamline control flow.
13555
135562011-07-23 Arnaud Charlet <charlet@adacore.com>
13557
13558 PR ada/49819
13559 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
13560 g-trasym-dwarf.adb.
13561
135622011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13563
13564 PR bootstrap/49794
13565 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
13566 Assign to act.sa_sigaction.
13567 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
13568 current->return_address to char * before arithmetic.
13569
135702011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13571
13572 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
13573 Correct argument types.
13574 Extract code from reason.
13575 (__gnat_install_handler): Assign to act.sa_sigaction.
13576
135772011-07-21 Eric Botcazou <ebotcazou@adacore.com>
13578
13579 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
13580 (GNAT1_OBJS): ...here.
13581
135822011-07-15 Eric Botcazou <ebotcazou@adacore.com>
13583
13584 PR ada/48711
13585 * g-socthi-mingw.adb (Fill): Fix formatting.
13586
13587 * gcc-interface/gigi.h: Move around comment.
13588
135892011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13590
13591 PR ada/46350
13592 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
13593
135942011-07-14 Florian Weimer <fw@deneb.enyo.de>
13595
13596 PR ada/48711
13597 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
13598
135992011-07-13 Eric Botcazou <ebotcazou@adacore.com>
13600
13601 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
13602 range comparison if Pmode is SImode.
13603
136042011-07-12 Laurent GUERBY <laurent@guerby.net>
13605 Eric Botcazou <ebotcazou@adacore.com>
13606
13607 * adadecode.c: Wrap up in extern "C" block.
13608 * adadecode.h: Likewise.
13609 * adaint.c: Likewise. Remove 'const' keyword.
13610 * adaint.h: Likewise.
13611 * argv.c: Likewise.
13612 * atree.h: Likewise.
13613 * cio.c: Likewise.
13614 * cstreams.c: Likewise.
13615 * env.c: Likewise.
13616 * exit.c: Likewise.
13617 * fe.h: Likewise.
13618 * final.c: Likewise.
13619 * init.c: Likewise.
13620 * initialize.c: Likewise.
13621 * link.c: Likewise.
13622 * namet.h: Likewise.
13623 * nlists.h: Likewise.
13624 * raise.c: Likewise.
13625 * raise.h: Likewise.
13626 * repinfo.h: Likewise.
13627 * seh_init.c: Likewise.
13628 * targext.c: Likewise.
13629 * tracebak.c: Likewise.
13630 * uintp.h: Likewise.
13631 * urealp.h: Likewise.
13632 * xeinfo.adb: Wrap up generated C code in extern "C" block.
13633 * xsinfo.adb: Likewise.
13634 * xsnamest.adb: Likewise.
13635 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
13636 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
13637 * gcc-interface/misc.c: Likewise.
13638 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
13639 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
13640 ada/targext.o here...
13641 (GNAT_ADA_OBJS): ...and not here.
13642 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
13643 (GNATBIND_OBJS): Reorder.
13644
136452011-07-07 Richard Henderson <rth@redhat.com>
13646
13647 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
13648 dwarf2out_frame_init.
13649
136502011-07-07 Eric Botcazou <ebotcazou@adacore.com>
13651
13652 * gcc-interface/misc.c (gnat_init): Tweak previous change.
13653
136542011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13655
13656 PR target/39150
13657 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
13658
136592011-07-06 Richard Guenther <rguenther@suse.de>
13660
13661 * gcc-interface/misc.c (gnat_init): Merge calls to
13662 build_common_tree_nodes and build_common_tree_nodes_2.
13663 Re-initialize boolean_false_node.
13664
136652011-07-02 Eric Botcazou <ebotcazou@adacore.com>
13666 Olivier Hainque <hainque@adacore.com>
13667 Nicolas Setton <setton@adacore.com>
13668
13669 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
13670 the type according to the ARTIFICIAL_P parameter.
13671 (create_type_decl): Likewise.
13672 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
13673
136742011-07-01 Eric Botcazou <ebotcazou@adacore.com>
13675
13676 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
13677 (gnatbind): Likewise.
13678
136792011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13680
13681 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
13682
136832011-06-18 Eric Botcazou <ebotcazou@adacore.com>
13684
13685 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
13686 local variable throughout. Remove useless call to Base_Type.
13687 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
13688 Take it also into account for the volatileness of the field. Set the
13689 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
13690
136912011-06-18 Eric Botcazou <ebotcazou@adacore.com>
13692
13693 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
13694 on a dereference built for a by-ref object if it has an address clause.
13695
136962011-06-18 Eric Botcazou <ebotcazou@adacore.com>
13697
13698 * einfo.ads (Address_Taken): Document use for the second argument of
13699 Asm_Input and Asm_Output attributes.
13700 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
13701 argument is an entity name, then set Address_Taken on it.
13702 <Attribute_Asm_Output>: Likewise.
13703 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
13704 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
13705 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
13706 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
13707
137082011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
13709
13710 PR middle-end/46500
13711 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
13712
137132011-06-14 Joseph Myers <joseph@codesourcery.com>
13714
13715 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
13716 (ada/utils.o): Update dependencies.
13717 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
13718 ../../../libcpp/libcpp.a.
13719 * gcc-interface/utils.c: Include common/common-target.h.
13720 (process_attributes): Use targetm_common.have_named_sections.
13721
137222011-06-07 Richard Guenther <rguenther@suse.de>
13723
13724 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
13725 set_sizetype.
13726
137272011-06-06 Eric Botcazou <ebotcazou@adacore.com>
13728
13729 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
13730 TREE_THIS_NOTRAP flag.
13731
137322011-06-06 Eric Botcazou <ebotcazou@adacore.com>
13733
13734 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
13735 Fix thinko.
13736
137372011-06-06 Eric Botcazou <ebotcazou@adacore.com>
13738
13739 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
13740 constants whose full view has discriminants specially.
13741
137422011-06-06 Eric Botcazou <ebotcazou@adacore.com>
13743
13744 * gcc-interface/utils.c: Include diagnostic.h.
13745 (gnat_write_global_declarations): Output debug information for all
13746 global type declarations before finalizing the compilation unit.
13747 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
13748
137492011-05-25 Jakub Jelinek <jakub@redhat.com>
13750
13751 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
13752
137532011-05-25 Kai Tietz <ktietz@redhat.com>
13754
13755 * adaint.c (__gnat_to_canonical_file_list_next): Use array
13756 initialization instead of const/none-const pointer assignment.
13757
137582011-05-24 Joseph Myers <joseph@codesourcery.com>
13759
13760 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
13761 $(EXTRA_GNAT1_OBJS).
13762 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
13763 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
13764 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
13765 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
13766 libcommon-target.a instead of prefix.o.
13767
137682011-05-21 Joseph Myers <joseph@codesourcery.com>
13769
13770 PR ada/49097
13771 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
13772
137732011-05-20 Joseph Myers <joseph@codesourcery.com>
13774
13775 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
13776 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
13777 instead of version.o.
13778
2d0dd51a 137792011-05-18 Kai Tietz <ktietz@redhat.com>
052e0603
AC
13780
13781 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
13782 boolean_false_node instead of integer_zero_node.
13783 (convert_with_check): Likewise.
13784 * gcc-interface/decl.c (choices_to_gnu): Likewise.
13785
137862011-05-12 Eric Botcazou <ebotcazou@adacore.com>
13787
13788 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
13789 type of the parameter is an unconstrained array, convert the actual to
13790 the type of the formal in the In Out and Out cases as well.
13791
137922011-05-11 Nathan Froyd <froydnj@codesourcery.com>
13793
13794 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
13795 call build_function_type_array or build_varargs_function_type_array
13796 instead.
13797 (create_subprog_type): Don't call build_function_type; call
13798 build_function_type_vec instead.
13799
138002011-05-11 Nathan Froyd <froydnj@codesourcery.com>
13801
13802 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
13803 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
13804 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
13805
138062011-05-07 Eric Botcazou <ebotcazou@adacore.com>
13807
13808 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
13809
13810 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
13811 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
13812
138132011-05-05 Nathan Froyd <froydnj@codesourcery.com>
13814
13815 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
13816
138172011-05-05 Nathan Froyd <froydnj@codesourcery.com>
13818
13819 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
13820 instead of accessing TYPE_ARG_TYPES directly.
13821 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
13822
138232011-05-05 Eric Botcazou <ebotcazou@adacore.com>
13824
13825 PR ada/48844
13826 * gcc-interface/gigi.h (get_variant_part): Declare.
13827 * gcc-interface/decl.c (get_variant_part): Make global.
13828 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
13829 types have the same constant size, are record types and T1 has a
13830 variant part while T2 doesn't.
13831
138322011-05-05 Eric Botcazou <ebotcazou@adacore.com>
13833
13834 * gcc-interface/utils.c (begin_subprog_body): Do not call
13835 get_pending_sizes.
13836 (end_subprog_body): Likewise.
13837
138382011-05-04 Richard Guenther <rguenther@suse.de>
13839
13840 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
13841 int_const_binop.
13842 (pos_to_constructor): Likewise.
13843
138442011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2c7f9cc0 13845 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
13846
13847 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
13848 of build_function_type. Adjust calls to...
13849 (build_raise_check): ...this. Do not take a void_tree parameter.
13850 Call build_function_type_list instead of build_function_type.
13851 Fix head comment and swap couple of conditional blocks.
13852
138532011-04-30 Eric Botcazou <ebotcazou@adacore.com>
13854
13855 * gnatvsn.ads (Library_Version): Bump to 4.7.
13856 (Current_Year): Bump to 2011.
13857
138582011-04-29 Michael Matz <matz@suse.de>
13859
13860 * gcc-interface/misc.c (gnat_handle_option): Set
13861 warn_maybe_uninitialized.
13862
138632011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
13864
13865 * gnat_ugn.texi (Complexity Metrics Control): Update link to
13866 the Watson/McCabe paper.
13867
138682011-04-23 Jim Meyering <meyering@redhat.com>
13869
13870 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
13871
138722011-04-22 Eric Botcazou <ebotcazou@adacore.com>
13873
13874 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
13875 onto the new type.
13876
138772011-04-22 Eric Botcazou <ebotcazou@adacore.com>
13878
13879 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
13880 parameter.
13881 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
13882 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
13883 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
13884 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
13885 <all>: Do not set flags on the reused DECL node coming from an alias.
13886 Set DECL_IGNORED_P on the DECL node built for subprograms if they
13887 don't need debug info here...
13888 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
13889 (gigi): Adjust calls to create_subprog_decl.
13890 (build_raise_check): Likewise.
13891 (establish_gnat_vms_condition_handler): Likewise.
13892 (Compilation_Unit_to_gnu): Likewise.
13893 (gnat_to_gnu): Likewise.
13894
138952011-04-21 Eric Botcazou <ebotcazou@adacore.com>
13896
13897 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
13898 (NO_REORDER_ADAFLAGS): New variable.
13899 (EXTRA_GNATTOOLS): Always define.
13900 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
13901 Clean up and adjust list of files compiled with special options.
13902 * gcc-interface/Make-lang.in: Likewise.
13903 (ada/decl.o): Cosmetical change.
13904 (ada/misc.o): Remove dependency on $(PLUGIN_H).
13905
139062011-04-20 Jim Meyering <meyering@redhat.com>
13907
13908 * initialize.c (__gnat_initialize): Remove useless if-before-free.
13909
139102011-04-17 Eric Botcazou <ebotcazou@adacore.com>
13911
13912 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
13913 $(CFLAGS) on the link line.
13914
139152011-04-17 Eric Botcazou <ebotcazou@adacore.com>
13916
13917 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
13918 padded type built for the return type if it is unconstrained.
13919
139202011-04-14 Nathan Froyd <froydnj@codesourcery.com>
13921
13922 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
13923
139242011-04-12 Nathan Froyd <froydnj@codesourcery.com>
13925
13926 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
13927 before calling TREE_CHAIN.
13928 * gcc-interface/misc.c (gnat_init_ts): New function.
13929 (LANG_HOOKS_INIT_TS): Define.
13930
139312011-04-12 Martin Jambor <mjambor@suse.cz>
13932
13933 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
13934 instead of cgraph_node.
13935
139362011-04-08 Eric Botcazou <ebotcazou@adacore.com>
13937
13938 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
13939 alignment on fields of the RETURN type built for the Copy-In Copy-Out
13940 mechanism.
13941
139422011-04-08 Eric Botcazou <ebotcazou@adacore.com>
13943
13944 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
13945 of aggregate types that contain a placeholder.
13946
139472011-04-08 Nathan Froyd <froydnj@codesourcery.com>
13948
13949 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
13950 TYPE_ARG_TYPES.
13951 (handle_type_generic_attribute): Likewise.
13952
139532011-04-04 Eric Botcazou <ebotcazou@adacore.com>
13954
13955 PR ada/47163
13956 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
13957
139582011-04-04 Kai Tietz <ktietz@redhat.com>
13959
13960 PR ada/47163
13961 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
13962 to flag value.
13963
139642011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13965
13966 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
13967 type case, do not strip a padding type around the array type.
13968
139692011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13970
13971 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
13972 types.
13973
139742011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13975
13976 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
13977 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
13978 code for -feliminate-unused-debug-types.
13979 (gnat_post_options): Likewise.
13980
139812011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13982
13983 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
13984 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
13985 distinct copy.
13986
139872011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13988
13989 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
13990 DECL_ARTIFICIAL flag on enumeration types.
13991
139922011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13993
13994 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
13995 fat pointer types artificial unconditionally.
13996 <E_Array_Subtype>: Attach the base array type as a parallel type if it
13997 isn't artificial.
13998
139992011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14000
14001 * gcc-interface/gigi.h (get_dummy_type): Declare.
14002 (build_dummy_unc_pointer_types): Likewise.
14003 (finish_fat_pointer_type): Likewise.
14004 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
14005 fat pointer type has been built, complete it in place.
14006 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
14007 and thin pointers. Remove useless variable.
14008 (finish_fat_pointer_type): Make global and move to...
14009 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
14010 (get_dummy_type): New function.
14011 (build_dummy_unc_pointer_types): Likewise.
14012 (gnat_pushdecl): Propage the name to the anonymous variants only.
14013 (update_pointer_to): Only adjust the pointer types in the unconstrained
14014 array case.
14015
140162011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14017
14018 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
14019 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
14020 if this is a Taft amendment type and the full declaration is available.
14021 * gcc-interface/trans.c (process_type): Likewise.
14022 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
14023 (process_freeze_entity): Likewise.
14024 * gcc-interface/utils.c (dummy_global): New static variable.
14025 (gnat_write_global_declarations): If there are types declared as used
14026 at the global level, insert them in the global hash table.
14027
140282011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14029
14030 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
14031 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
14032 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
14033 copy.
14034 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
14035 flag of the type accordingly.
14036 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
14037
140382011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14039
14040 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
14041 finalizing types when updating the pointers to the designated type.
14042 <all>: Finalize the deferred types even if we didn't defer processing
14043 of incomplete types in this invocation.
14044
140452011-04-01 Olivier Hainque <hainque@adacore.com>
2c7f9cc0
AS
14046 Nicolas Setton <setton@adacore.com>
14047 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
14048
14049 * gcc-interface/misc.c (gnat_descriptive_type): New function.
14050 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
14051
140522011-03-28 Kai Tietz <ktietz@redhat.com>
14053
14054 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
14055 Windows targets.
14056 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
14057 * system-mingw.ads (System): Change ZCX_By_Default default to True.
14058
14059 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
14060
140612011-03-28 Tristan Gingold <gingold@adacore.com>
14062
14063 PR ada/44431
14064 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
14065 Use ada output of gnatbind.
14066 (ada/b_gnatb.adb): Ditto.
14067 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
14068 (ada.mostlyclean, ada.stage1)
14069 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
14070 (ada.stagefeedback): Adjust.
14071 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
14072 Use ada output of gnatbind.
14073 (b_gnatm.adb): Ditto.
14074 (b_gnatl.o, b_gnatm.o): New rules.
14075
140762011-03-26 Eric Botcazou <ebotcazou@adacore.com>
14077
14078 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
14079 for the padded type built to support a specified size or alignment.
14080
140812011-03-26 Eric Botcazou <ebotcazou@adacore.com>
14082
14083 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
14084 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
14085 unconditionally to the end of the unit when the designated type is
14086 limited_with'ed.
14087 <all>: Rename local variable. Attempt to un-defer types only and do it
14088 for limited_with'ed types as well.
14089 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
14090 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
14091 consistently and remove redundant call to finalize_from_with_types.
14092
140932011-03-26 Eric Botcazou <ebotcazou@adacore.com>
14094
14095 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
14096 subprograms without a previous spec declared in the same unit.
14097 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
14098 subprograms at the end of the unit instead of at the beginning.
14099 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
14100 isn't public for the special handling of non-inline functions nested
14101 inside inline external functions.
14102
141032011-03-25 Jeff Law <law@redhat.com>
14104
14105 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
14106
141072011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14108
14109 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
14110 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
14111 to compute Set_Size_Depends_On_Discriminant.
14112 (Layout_Type): Call it on array types in back-end layout mode.
14113 * sem_util.adb (Requires_Transient_Scope): Return true for array
14114 types only if the size depends on the value of discriminants.
14115 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
14116 type if the RHS is a call to a function that returns an unconstrained
14117 type with default discriminant.
14118
141192011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14120
14121 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
14122 non-conversion to the nominal result type at the end.
14123
141242011-03-23 Eric Botcazou <ebotcazou@adacore.com>
14125
14126 * gcc-interface/trans.c (create_temporary): New function taken from...
14127 (create_init_temporary): ...here. Call it.
14128 (call_to_gnu): Create the temporary for the return value early, if any.
14129 Create it for a function with copy-in/copy-out parameters if there is
14130 no target; in other cases of copy-in/copy-out, use another temporary.
14131 Push the new binding level lazily. Add and rename local variables.
14132
141332011-03-23 Eric Botcazou <ebotcazou@adacore.com>
14134
14135 * gcc-interface/decl.c (validate_size): Improve comments and tweak
14136 error message.
14137 (set_rm_size): Likewise.
14138
141392011-03-23 Eric Botcazou <ebotcazou@adacore.com>
14140
14141 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
14142 for the padded type built in order to support a specified alignment.
14143 Fix incorrect formatting.
14144
141452011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14146
14147 PR bootstrap/48216
14148 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
14149
141502011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14151
14152 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
14153 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
14154 to the end of the list. Adjust recursive call. Rename local variable.
14155 If REORDER is true, reorder components of the record type.
14156 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
14157 components_to_record and adjust the parameter list.
14158
141592011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14160
14161 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
14162 disabled, use the variable for bounds of loop iteration scheme.
14163
141642011-03-21 Kai Tietz <ktietz@redhat.com>
14165
14166 PR target/12171
14167 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
14168
141692011-03-17 Eric Botcazou <ebotcazou@adacore.com>
14170
14171 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
14172 out whether the expression is read-only. Short-circuit placeholder
14173 case and rename a couple of local variables.
14174
141752011-03-17 Eric Botcazou <ebotcazou@adacore.com>
14176
14177 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
14178 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
14179 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
14180 (convert): Deal with conversions from a smaller form type specially.
14181
141822011-02-14 Eric Botcazou <ebotcazou@adacore.com>
14183
14184 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
14185 its argument, except for the special -I- switch.
14186
141872011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
14188
14189 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
14190 "Ada Issues".
14191
141922011-02-08 Eric Botcazou <ebotcazou@adacore.com>
14193
14194 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
14195
141962011-02-03 Eric Botcazou <ebotcazou@adacore.com>
14197
14198 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
14199 GNAT_FORMAL.
14200 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
14201 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
14202 instead of GNAT_FORMAL. Protect the expression against multiple uses.
14203 Do not generate the check directly, instead instantiate the template
14204 check present in the descriptor.
14205 (make_descriptor_field): Move around.
14206 (build_vms_descriptor32): Build a template check in the POINTER field.
14207 (build_vms_descriptor): Remove useless suffixes.
14208 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
14209
142102011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14211
14212 PR bootstrap/47467
14213 * targext.c: Include target files if IN_RTS is defined.
14214
142152011-01-26 Richard Guenther <rguenther@suse.de>
14216
14217 PR bootstrap/47467
14218 * targext.c: Include config.h.
14219 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
14220 dependency.
14221
142222011-01-04 Pascal Obry <obry@adacore.com>
2c7f9cc0 14223 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
14224
14225 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
14226
142272011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14228
14229 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
14230 end-of-case on the end label and its associated gotos, if any.
14231
142322011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14233
14234 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
14235 expressions of the parameter cache within the statement group of
14236 the CICO mechanism.
14237
142382011-01-04 Olivier Hainque <hainque@adacore.com>
2c7f9cc0 14239 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
14240
14241 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
14242 (set_end_locus_from_node): New function.
14243 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
14244 make and the function end_locus.
14245 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
14246 for the elaboration subprogram.
14247 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
14248 set the end_locus of the expression as well.
14249
142502011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14251
14252 PR ada/47131
14253 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
14254 variables that are referenced in exception handlers volatile.
14255
14256
14257\f
14258Copyright (C) 2011 Free Software Foundation, Inc.
14259
14260Copying and distribution of this file, with or without modification,
14261are permitted in any medium without royalty provided the copyright
14262notice and this notice are preserved.
14263
14264 * gnat_rm.texi: Ramification of pragma Eliminate documentation
14265 - fix bugs in the description of Source_Trace;
14266 - get rid of UNIT_NAME;
14267
4fbad0ba
AC
142682011-08-02 Javier Miranda <miranda@adacore.com>
14269
14270 * exp_ch9.adb
14271 (Build_Dispatching_Requeue): Adding support for VM targets
14272 since we cannot directly reference the Tag entity.
14273 * exp_sel.adb (Build_K): Adding support for VM targets.
14274 (Build_S_Assignment): Adding support for VM targets.
14275 * exp_disp.adb
14276 (Default_Prim_Op_Position): In VM targets do not restrict availability
14277 of predefined interface primitives to compiling in Ada 2005 mode.
14278 (Is_Predefined_Interface_Primitive): In VM targets this service is not
14279 restricted to compiling in Ada 2005 mode.
14280 (Make_VM_TSD): Generate code that declares and initializes the OSD
14281 record. Needed to support dispatching calls through synchronized
14282 interfaces.
14283 * exp_ch3.adb
14284 (Make_Predefined_Primitive_Specs): Enable generation of predefined
14285 primitives associated with synchronized interfaces.
14286 (Make_Predefined_Primitive_Bodies): Enable generation of predefined
14287 primitives associated with synchronized interfaces.
14288
142892011-08-02 Yannick Moy <moy@adacore.com>
14290
14291 * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of
14292 statements hidden in SPARK if preceded by the HIDE directive
14293 (Parse_Exception_Handlers): mark each exception handler in a sequence of
14294 exception handlers as hidden in SPARK if preceded by the HIDE directive
14295 * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK
14296 if starting with the HIDE directive
14297 * par-ch7.adb (P_Package): mark a package body hidden in SPARK if
14298 starting with the HIDE directive; mark the declarations in a private
14299 part as hidden in SPARK if the private part starts with the HIDE
14300 directive
14301 * restrict.adb, restrict.ads
14302 (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK
14303 (Is_In_Hidden_Part_In_SPARK): new function which returns whether its
14304 argument node belongs to a part which is hidden in SPARK
14305 (Check_SPARK_Restriction): do not issue violations on nodes in hidden
14306 parts in SPARK; protect the possibly costly call to
14307 Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on
14308 * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration
14309 * scng.adb (Accumulate_Token_Checksum_GNAT_6_3,
14310 Accumulate_Token_Checksum_GNAT_5_03): add case for new token
14311 Tok_SPARK_Hide.
14312 (Scan): recognize special comment starting with '#' and followed by
14313 SPARK keyword "hide" as a HIDE directive.
14314
143152011-08-02 Yannick Moy <moy@adacore.com>
14316
14317 * types.ads, erroutc.ads: Minor reformatting.
14318
143192011-08-02 Vincent Celier <celier@adacore.com>
14320
14321 * link.c: Add response file support for cross platforms.
14322
6ff6152d
ES
143232011-08-02 Ed Schonberg <schonberg@adacore.com>
14324
14325 * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression
14326 in an association, set parent field of copy before partial analysis.
14327 * sem_res.adb (Resolve_Slice): create reference to itype only when
14328 expansion is enabled.
14329
975c6896
YM
143302011-08-02 Yannick Moy <moy@adacore.com>
14331
14332 * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set
14333 for new flag denoting which subprogram bodies are in ALFA
14334 * restrict.adb, sem_ch7.adb: Update comment
14335 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
14336 sem_ch9.adb, sem_res.adb: Add calls to
14337 Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs.
14338 * sem_ch6.adb (Analyze_Function_Return): add calls to
14339 Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the
14340 middle of the body, and extended return.
14341 (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument
14342 False when missing return.
14343 (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA
14344 to True for subprograms whose spec is in ALFA. Remove later on the flag
14345 on the entity used for a subprogram body when there exists a separate
14346 declaration.
14347 * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA):
14348 if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to
14349 False, otherwise do nothing.
14350
afc8324d
AC
143512011-08-02 Robert Dewar <dewar@adacore.com>
14352
14353 * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
14354
143552011-08-02 Yannick Moy <moy@adacore.com>
14356
14357 * sem_ch4.ads: minor formatting.
14358
2ba431e5
YM
143592011-08-02 Yannick Moy <moy@adacore.com>
14360
14361 * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb,
14362 debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb,
14363 errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb,
14364 restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb,
14365 opt.ads: cleanup of SPARK mode
14366
0f853035
YM
143672011-08-02 Yannick Moy <moy@adacore.com>
14368
14369 * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard
14370 types.
14371 * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities
14372 (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA
14373 * sem_ch3.adb
14374 (Analyze_Object_Declaration): set Is_In_ALFA flag for objects
14375 (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes
14376 (Constrain_Integer): set Is_In_ALFA flag for integer subtypes
14377 (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration
14378 types.
14379 (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with
14380 non-static range.
14381 * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for
14382 functions whose return type is not in ALFA.
14383 (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram
14384 specifications.
14385 (Process_Formals): unset Is_In_ALFA flag for subprograms if a
14386 parameter's type is not in ALFA.
14387 * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard
14388 types are in ALFA.
14389
d2b10647
ES
143902011-08-02 Ed Schonberg <schonberg@adacore.com>
14391
14392 * sem_ch6 (Analyze_Expression_Function): treat the function as
14393 Inline_Always, and introduce a subprogram declaration for it when it is
14394 not a completion.
14395 * inline.adb (Add_Inlined_Body): recognize bodies that come from
14396 expression functions, so that the back-end can determine whether they
14397 can in fact be inlined.
14398 * sem_util.adb (Is_Expression_Function): predicate to determine whether
14399 a function body comes from an expression function.
14400
c7b9d548
AC
144012011-08-02 Gary Dismukes <dismukes@adacore.com>
14402
14403 * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming
14404 null exclusions to test Can_Never_Be_Null on the anonymous access types
14405 of the formals rather than testing the formals themselves. Exclude this
14406 check in cases where the Old_Formal is marked as a controlling formal,
14407 to avoid issuing spurious errors for bodies completing dispatching
14408 operations (due to the flag not getting set on controlling access
14409 formals in body specs).
14410 (Find_Corresponding_Spec): When checking full and subtype conformance of
14411 subprogram bodies in instances, pass Designated and E in that order, for
14412 consistency with the expected order of the formals (New_Id followed by
14413 Old_Id).
14414
144152011-08-02 Robert Dewar <dewar@adacore.com>
14416
14417 * sem_ch8.adb: Minor reformatting.
14418
1138cf59
AC
144192011-08-02 Ed Schonberg <schonberg@adacore.com>
14420
14421 * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure
14422 Check_Class_Wide_Actual, to implement AI05-0071, on defaulted
14423 primitive operations of class-wide actuals.
14424
144252011-08-02 Javier Miranda <miranda@adacore.com>
14426
14427 * exp_atag.ads, exp_atag.adb
14428 (Build_Common_Dispatching_Select_Statements): Remove argument Loc
14429 since its value is implicitly passed in argument Typ.
14430 * exp_disp.adb (Make_Disp_Conditional_Select_Body,
14431 Make_Disp_Timed_Select_Body): Remove Loc in calls to routine
14432 Build_Common_Dispatching_Select_Statements.
14433
7b9db926
RD
144342011-08-02 Robert Dewar <dewar@adacore.com>
14435
14436 * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads,
14437 exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments.
14438 Minor reformatting.
14439
e8374e7a
AC
144402011-08-02 Robert Dewar <dewar@adacore.com>
14441
14442 * sem_res.adb: Minor reformatting.
14443 * sem_prag.adb: Minor reformatting.
14444
144452011-08-02 Javier Miranda <miranda@adacore.com>
14446
14447 * exp_atag.adb, exp_atags.ads
14448 (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr
14449 by the tagged type Entity. Required to use this routine in the VM
14450 targets since we do not have available the Tag entity in the VM
14451 platforms.
14452 * exp_ch6.adb
14453 (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package
14454 Ada.Tags has not been previously loaded.
14455 * exp_ch7.adb
14456 (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke
14457 Build_VM_TSDs if package Ada.Tags has not been previously loaded.
14458 * sem_aux.adb
14459 (Enclosing_Dynamic_Scope): Add missing support to handle the full
14460 view of enclosing scopes. Required to handle enclosing scopes that
14461 are synchronized types whose full view is a task type.
14462 * exp_disp.adb
14463 (Build_VM_TSDs): Minor code improvement to avoid generating and
14464 analyzing lists with empty nodes.
14465 (Make_Disp_Asynchronous_Select_Body): Add support for VM targets.
14466 (Make_Disp_Conditional_Select_Body): Add support for VM targets.
14467 (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets.
14468 (Make_Disp_Timed_Select_Body): Add support for VM targets.
14469 (Make_Select_Specific_Data_Table): Add support for VM targets.
14470 (Make_VM_TSD): Generate code to initialize the SSD structure of
14471 the TSD.
14472
144732011-08-02 Yannick Moy <moy@adacore.com>
14474
14475 * lib-writ.adb (Write_ALI): when ALFA mode is set, write local
14476 cross-references section in ALI.
14477 * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub
14478 (enclosing subprogram), Slc (location of Sub) and Sun (unit number of
14479 Sub).
14480 (Enclosing_Subprogram_Or_Package): new function to return the enclosing
14481 subprogram or package entity of a node
14482 (Is_Local_Reference_Type): new function returns True for references
14483 selected in local cross-references.
14484 (Lt): function extracted from Lt in Output_References
14485 (Write_Entity_Name): function extracted from Output_References
14486 (Generate_Definition): generate reference with type 'D' for definition
14487 of objects (object declaration and parameter specification), with
14488 appropriate locations and units, for use in local cross-references.
14489 (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created
14490 references of type 'I' for initialization in object definition.
14491 (Output_References): move part of function Lt and procedure
14492 Write_Entity_Name outside of the body. Ignore references of types 'D'
14493 and 'I' introduced for local cross-references.
14494 (Output_Local_References): new procedure to output the local
14495 cross-references sections.
14496 (Lref_Entity_Status): new array defining whether an entity is a local
14497 * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference
14498 with 'I' type when initialization expression is present.
14499 * get_scos.adb, get_scos.ads: Correct comments and typos
14500
1f6439e3
AC
145012011-08-02 Javier Miranda <miranda@adacore.com>
14502
14503 * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in
14504 the JVM target.
14505 * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in
14506 the JVM target.
14507 * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no
14508 TSD support.
14509
145102011-08-02 Vincent Celier <celier@adacore.com>
14511
14512 * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line
14513 (No_Space_Img): New function
14514 (Find_Excluded_Sources): When reading from a file, record the file name
14515 and the line number for each excluded source.
14516 (Mark_Excluded_Sources): When reporting an error, if the excluded
14517 sources were read from a file, include file name and line number in
14518 the error message.
14519
145202011-08-02 Ed Schonberg <schonberg@adacore.com>
14521
14522 * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2).
14523
ab027d28
RD
145242011-08-02 Robert Dewar <dewar@adacore.com>
14525
14526 * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting
14527
b3b28b0c
JM
145282011-08-02 Javier Miranda <miranda@adacore.com>
14529
14530 * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
14531 generation of TSDs to the DOTNET compiler.
14532 * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
14533 generation of TSDs to the DOTNET compiler.
14534
9732e886
JM
145352011-08-02 Javier Miranda <miranda@adacore.com>
14536
14537 * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
14538 record of all the tagged types declared inside library level package
14539 declarations, library level package bodies or library level subprograms.
14540 * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD
14541 associated with a given tagged type.
14542 (Build_VM_TSDs): New subprogram.
14543 * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main
14544 compilation units that are subprograms.
14545 * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main
14546 compilation units that are package bodies.
14547 (Expand_N_Package_Declaration): Generate TSDs of the main compilation
14548 units that are a package declaration or a package instantiation.
14549 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code
14550 reorganization to improve the error generated by the frontend when the
14551 function Ada.Tags.Secondary_Tag is not available.
14552 * rtsfind.ads (RE_Register_TSD): New runtime entity.
14553 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup.
14554
e526d0c7
AC
145552011-08-02 Javier Miranda <miranda@adacore.com>
14556
14557 * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode.
14558
145592011-08-02 Robert Dewar <dewar@adacore.com>
14560
14561 * s-imenne.ads: Minor reformatting.
14562
145632011-08-02 Robert Dewar <dewar@adacore.com>
14564
14565 * a-stunau.ads: Add pragma Suppress_Initialization for Big_String
14566 * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed
14567 * s-stalib.ads: Add pragma Suppress_Initialization for Big_String
14568
145692011-08-02 Robert Dewar <dewar@adacore.com>
14570
14571 * einfo.ads (Materialize_Entity): Document this is only for renamings
14572 * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate
14573 required debug information in the case where we transform the object
14574 declaration into a renaming declaration.
14575 * exp_ch4.adb (Expand_Concatenate): Generate debug info for result
14576 object
14577 * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of
14578 Materialize_Entity.
14579
5b1e6aca
RD
145802011-08-02 Robert Dewar <dewar@adacore.com>
14581
14582 * einfo.ads, einfo.adb (Suppress_Initialization): Replaces
14583 Suppress_Init_Procs.
14584 * exp_ch3.adb, exp_disp.adb, freeze.adb: Use
14585 Suppress_Initialization/Initialization_Suppressed.
14586 * gnat_rm.texi: New documentation for pragma Suppress_Initialization
14587 * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function
14588 * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed
14589 * sem_prag.adb: New processing for pragma Suppress_Initialization.
14590
5ad4969d
RD
145912011-08-02 Robert Dewar <dewar@adacore.com>
14592
14593 * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb:
14594 Minor reformatting.
14595
8c4ee6f5
AC
145962011-08-02 Ed Schonberg <schonberg@adacore.com>
14597
14598 * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can
14599 only have inheritable classwide pre/postconditions.
14600
146012011-08-02 Javier Miranda <miranda@adacore.com>
14602
14603 * a-tags.ads, a-tags.adb (Check_TSD): New subprogram.
14604 * rtsfind.ads (RE_Check_TSD): New runtime entity.
14605 * exp_disp.adb (Make_DT): Generate call to the new runtime routine that
14606 checks if the external tag of a type is the same as the external tag
14607 of some other declaration.
14608
0b3d16c0
AC
146092011-08-02 Thomas Quinot <quinot@adacore.com>
14610
14611 * s-taskin.ads: Minor reformatting.
14612
146132011-08-02 Emmanuel Briot <briot@adacore.com>
14614
14615 * g-comlin.adb (Display_Help): swap the order in which it prints the
14616 short help and the general usage.
14617
146182011-08-02 Ed Schonberg <schonberg@adacore.com>
14619
14620 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly
14621 the aspect declarations and attach them to the generic copy for
14622 subsequent analysis.
14623 (Analyze_Subprogram_Instantiation): copy explicitly the aspect
14624 declarations of the generic tree to the new subprogram declarations.
14625 * sem_attr.adb (Check_Precondition_Postcondition): recognize
14626 conditions that apply to a subprogram instance.
14627
146282011-08-02 Robert Dewar <dewar@adacore.com>
14629
14630 * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project].
14631
146322011-08-02 Ed Schonberg <schonberg@adacore.com>
14633
14634 * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged
14635 private type with a tagged full view is not derived in the immediate
14636 scope of the partial view, (RM 7.3 (7)) use the scope of the base type.
14637
4637729f
AC
146382011-08-02 Robert Dewar <dewar@adacore.com>
14639
14640 * exp_ch4.adb: Minor reformatting.
14641
146422011-08-02 Ed Schonberg <schonberg@adacore.com>
14643
14644 * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an
14645 Ada2012 iterator, the loop will be rewritten during expansion into a
14646 while loop with a cursor and an element declaration. Do not analyze the
14647 body in this case, because if the container is for indefinite types the
14648 actual subtype of the elements will only be determined when the cursor
14649 declaration is analyzed.
14650
146512011-08-02 Arnaud Charlet <charlet@adacore.com>
14652
14653 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore
14654 size/alignment related attributes in CodePeer_Mode.
14655
146562011-08-02 Gary Dismukes <dismukes@adacore.com>
14657
14658 * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to
14659 Prepend_Element, since this can result in the operation getting the
14660 wrong slot in the full type's dispatch table if the full type has
14661 inherited operations. The incomplete type's operation will get added
14662 to the proper position in the full type's primitives
14663 list later in Sem_Disp.Check_Operation_From_Incomplete_Type.
14664 (Process_Incomplete_Dependents): Add Is_Primitive test when checking for
14665 dispatching operations, since there are cases where nonprimitive
14666 subprograms can get added to the list of incomplete dependents (such
14667 as subprograms in nested packages).
14668 * sem_ch6.adb (Process_Formals): First, remove test for being in a
14669 private part when determining whether to add a primitive with a
14670 parameter of a tagged incomplete type to the Private_Dependents list.
14671 Such primitives can also occur in the visible part, and should not have
14672 been excluded from being private dependents.
14673 * sem_ch7.adb (Uninstall_Declarations): When checking the rule of
14674 RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents
14675 list of a Taft-amendment incomplete type is a primitive before issuing
14676 an error that the full type must appear in the same unit. There are
14677 cases where nonprimitives can be in the list (such as subprograms in
14678 nested packages).
14679 * sem_disp.adb (Derives_From): Use correct condition for checking that
14680 a formal's type is derived from the type of the corresponding formal in
14681 the parent subprogram (the condition was completely wrong). Add
14682 checking that was missing for controlling result types being derived
14683 from the result type of the parent operation.
14684
4c60de0c
YM
146852011-08-02 Yannick Moy <moy@adacore.com>
14686
14687 * errout.adb (First_Node): minor renaming
14688 * restrict.adb (Check_Formal_Restriction): put restriction warning on
14689 first node.
14690
f5afb270
AC
146912011-08-02 Yannick Moy <moy@adacore.com>
14692
14693 * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator
14694 before accessing operands.
14695 * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to
14696 decide whether an initialization expression respects SPARK rules, as
14697 the plain node is the expanded one. This allows for more valid warnings
14698 to be issued.
14699 * gnat_rm.texi: Minor update.
14700
147012011-08-02 Arnaud Charlet <charlet@adacore.com>
14702
14703 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert
14704 previous change.
14705
147062011-08-02 Robert Dewar <dewar@adacore.com>
14707
14708 * sem_ch3.adb, sem_ch4.adb: Minor reformatting.
14709
147102011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
14711
14712 * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original
14713 loop statements and the element renaming declaration with a block when
14714 the element type is controlled.
14715
147162011-08-02 Yannick Moy <moy@adacore.com>
14717
14718 * sinfo.ads: Minor formatting.
14719
147202011-08-02 Ed Schonberg <schonberg@adacore.com>
14721
14722 * sem_aggr.adb (Add_Association): if the association has a box and no
14723 expression, use the Sloc of the aggregate itself for the new
14724 association.
14725 * errout.adb (First_Node): Exclude nodes with no Sloc, and always use
14726 the Original_Node.
14727
db72f10a
AC
147282011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
14729
14730 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring.
14731 When a container is provided via a function call, generate a renaming
14732 of the function result. This avoids the creation of a transient scope
14733 and the premature finalization of the container.
14734 * exp_ch7.adb (Is_Container_Cursor): Removed.
14735 (Wrap_Transient_Declaration): Remove the supression of the finalization
14736 of the list controller when the declaration denotes a container cursor,
14737 it is not needed.
14738
147392011-08-02 Yannick Moy <moy@adacore.com>
14740
14741 * restrict.adb (Check_Formal_Restriction): only issue a warning if the
14742 node is from source, instead of the original node being from source.
14743 * sem_aggr.adb
14744 (Resolve_Array_Aggregate): refine the check for a static expression, to
14745 recognize also static ranges
14746 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration,
14747 Array_Type_Declaration): postpone the test for the type being a subtype
14748 mark after the type has been resolved, so that component-selection and
14749 expanded-name are discriminated.
14750 (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm
14751 to distinguish the case of an iteration scheme, so that an error is
14752 issed on a non-static range in SPARK except in an iteration scheme.
14753 * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with
14754 In_Iter_Schm = True.
14755 * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for
14756 user-defined operators so that they are allowed in renaming
14757 * sem_ch8.adb
14758 (Find_Selected_Component): refine the check for prefixing of operators
14759 so that they are allowed in renaming. Move the checks for restrictions
14760 on selector name after analysis discriminated between
14761 component-selection and expanded-name.
14762 * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on
14763 concatenation argument of string type if it is static.
14764 * sem_util.adb, sem_util.ads
14765 (Check_Later_Vs_Basic_Declarations): add a new function
14766 Is_Later_Declarative_Item to decice which declarations are allowed as
14767 later items, in the two different modes Ada 83 and SPARK. In the SPARK
14768 mode, add that renamings are considered as later items.
14769 (Enclosing_Package): new function to return the enclosing package
14770 (Enter_Name): correct the rule for homonyms in SPARK
14771 (Is_SPARK_Initialization_Expr): default to returning True on nodes not
14772 from source (result of expansion) to avoid issuing wrong warnings.
14773
147742011-08-02 Ed Schonberg <schonberg@adacore.com>
14775
14776 * errout.adb: On anything but an expression First_Node returns its
14777 argument.
14778
23685ae6
AC
147792011-08-02 Pascal Obry <obry@adacore.com>
14780
14781 * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting.
14782
147832011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
14784
14785 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization.
14786 Set the associated loop as the related expression of internally
14787 generated cursors.
14788 * exp_ch7.adb (Is_Container_Cursor): New routine.
14789 (Wrap_Transient_Declaration): Supress the finalization of the list
14790 controller when the declaration denotes a container cursor.
14791
147922011-08-02 Yannick Moy <moy@adacore.com>
14793
14794 * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through
14795 command line now.
14796 * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the
14797 expression is a simple expression. This check cannot be performed in
14798 the semantics, so just drop it.
14799 (P_Index_Or_Discriminant_Constraint): move check that the index or
14800 discriminant is a subtype mark to Analyze_Subtype_Declaration in the
14801 semantics. Other cases were previously checked in the semantics.
14802 * par-ch4.adb (P_Name): move checks that a selector name is not
14803 character literal or an operator symbol to Find_Selected_Component in
14804 the semantics
14805 * par-ch5.adb (Parse_Decls_Begin_End): move check that basic
14806 declarations are not placed after later declarations in a separate
14807 procedure in Sem_Util (possibly not the best choice?), to be used both
14808 during parsing, for Ada 83 mode, and during semantic analysis, for
14809 SPARK mode.
14810 * par-endh.adb (Check_End): move check that end label is not missing
14811 to Process_End_Label in the semantics
14812 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove
14813 the special case for SPARK restriction
14814 * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End
14815 * restrict.adb, restrict.ads (Check_Formal_Restriction): add a
14816 parameter Force to issue the error message even on internal node (used
14817 for generated end label). Call Check_Restriction to check when an error
14818 must be issued. In SPARK mode, issue an error message even if the
14819 restriction is not set.
14820 (Check_Restriction): new procedure with an additional out parameter to
14821 inform the caller that a message has been issued
14822 * sem_aggr.adb: Minor modification of message
14823 * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction
14824 instead of issuing an error message directly
14825 * sem_ch3.adb (Analyze_Declarations): move here the check that basic
14826 declarations are not placed after later declarations, by calling
14827 Check_Later_Vs_Basic_Declarations
14828 (Analyze_Subtype_Declaration): move here the check that an index or
14829 discriminant constraint must be a subtype mark. Change the check that
14830 a subtype of String must start at one so that it works on subtype marks.
14831 * sem_ch4.adb (Analyze_Call): move here the check that a named
14832 association cannot follow a positional one in a call
14833 * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction
14834 instead of issuing an error message directly
14835 * sem_ch8.adb (Find_Selected_Component): move here the check that a
14836 selector name is not a character literal or an operator symbol. Move
14837 here the check that the prefix of an expanded name cannot be a
14838 subprogram or a loop statement.
14839 * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new
14840 procedure called from parsing and semantics to check that basic
14841 declarations are not placed after later declarations
14842 (Process_End_Label): move here the check that end label is not missing
14843
148442011-08-02 Arnaud Charlet <charlet@adacore.com>
14845
14846 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum
14847 representation clause in codepeer mode, since it confuses CodePeer and
14848 does not bring useful info.
14849
148502011-08-02 Ed Falis <falis@adacore.com>
14851
14852 * init.c: initialize fp hw on MILS.
14853
148542011-08-02 Ed Schonberg <schonberg@adacore.com>
14855
14856 * errout.adb (First_Node): for bodies, return the node itself (small
14857 optimization). For other nodes, do not check source_unit if the node
14858 comes from Standard.
14859
d2d9cc22
AC
148602011-08-02 Robert Dewar <dewar@adacore.com>
14861
14862 * exp_ch3.adb: Minor comment additions.
14863 * sem_ch13.adb: Minor reformatting.
14864
148652011-08-02 Pascal Obry <obry@adacore.com>
14866
14867 * make.adb, makeutl.adb: Removes some superfluous directory separator.
14868
a01b9df6
AC
148692011-08-02 Robert Dewar <dewar@adacore.com>
14870
14871 * sem_attr.adb: Minor reformatting.
14872
148732011-08-02 Robert Dewar <dewar@adacore.com>
14874
14875 * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value
14876 (Has_Default_Component_Value): Removed
14877 * einfo.ads Comment updates
14878 (Has_Default_Aspect): Replaces Has_Default_Value
14879 (Has_Default_Component_Value): Removed
14880 * exp_ch13.adb
14881 (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects
14882 * exp_ch3.adb
14883 (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects
14884 (Get_Simple_Init_Val): Handle Default_Value aspect
14885 (Needs_Simple_Initialization): Handle Default_Value aspect
14886 * exp_ch3.ads: Needs_Simple_Initialization
14887 * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect
14888 * par-prag.adb (Pragma_Default[_Component]Value) Removed
14889 * sem_ch13.adb
14890 (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects
14891 * sem_prag.adb (Pragma_Default[_Component]Value) Removed
14892 * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed
14893
148942011-08-02 Ed Schonberg <schonberg@adacore.com>
14895
14896 * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate
14897 package containing iteration primitives.
14898 exp_ch5.adb (Expand_Iterator_Loop): ditto.
14899
75c90775
AC
149002011-08-02 Ed Schonberg <schonberg@adacore.com>
14901
14902 * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with
14903 "of", pre-analyze expression in case it is a function call with
14904 finalization actions that must be placed ahead of the loop.
14905 * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present
14906 on an Ada2012 iterator, insert them ahead of the rewritten loop.
14907
149082011-08-02 Geert Bosch <bosch@adacore.com>
14909
14910 * cstand.adb (Create_Float_Types): Only consider C's long double for
14911 Long_Long_Float, in addition to double.
14912
ded8909b
AC
149132011-08-02 Robert Dewar <dewar@adacore.com>
14914
14915 * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads,
14916 sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads,
14917 prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb:
14918 Minor reformatting.
14919
149202011-08-02 Ed Schonberg <schonberg@adacore.com>
14921
14922 * sem_attr.adb: handle properly 'Result when it is a prefix of an
14923 indexed component.
14924
149252011-08-02 Javier Miranda <miranda@adacore.com>
14926
14927 * einfo.ads, einfo.adb
14928 (Original_Access_Type): Move this attribute to Node26 since there was
14929 an undocumented use of Node21 in E_Access_Subprogram_Type entities
14930 which causes conflicts and breaks the generation of the .NET compiler.
14931 (Interface_Name): Add missing documentation on JGNAT only uses of
14932 this attribute.
14933
70c34e1c
AC
149342011-08-02 Geert Bosch <bosch@adacore.com>
14935
14936 * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist
14937 (Find_Back_End_Float_Type): Likewise
14938 (Create_Back_End_Float_Types): Likewise
14939 (Create_Float_Types): Likewise
14940 (Register_Float_Type): Likewise
14941 * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of
14942 Nlist and split out type selection in new local Find_Base_Type function.
14943 * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of
14944 Nlist
14945 * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist
14946
149472011-08-02 Robert Dewar <dewar@adacore.com>
14948
14949 * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in
14950 alpha order).
14951 * opt.ads: Minor comment change.
14952 * sem_ch12.adb: Minor code reorganization.
14953
b715bc59
AC
149542011-08-02 Gary Dismukes <dismukes@adacore.com>
14955
14956 * sem_ch3.adb (Complete_Private_Subtype): Don't append the private
14957 subtype's list of rep items to the list on the full subtype in the case
14958 where the lists are the same.
14959
149602011-08-02 Geert Bosch <bosch@adacore.com>
14961
14962 * switch-c.adb (Free): New deallocation procedure to avoid implicitly
14963 using the one from System.Strings, which also deallocates all strings.
14964
002bdd68
AC
149652011-08-02 Geert Bosch <bosch@adacore.com>
14966
14967 * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New
14968 function.
14969 * gcc-interface/Make-lang.in: Update dependencies.
14970
149712011-08-02 Olivier Hainque <hainque@adacore.com>
14972
14973 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function
14974 end_locus.
14975
499769ec
AC
149762011-08-02 Javier Miranda <miranda@adacore.com>
14977
14978 * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals
14979 associated with anonymous access to subprograms.
14980
149812011-08-02 Geert Bosch <bosch@adacore.com>
14982
14983 * opt.ads
14984 (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions.
14985 (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition.
14986 * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads
14987 (Add_Symbol_Definition): Move to switch-c.adb
14988 (Process_Command_Line_Symbol_Definitions): Adjust references to above.
14989 * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation.
14990 (Add_Symbol_Definition): Move to switch-c.adb.
14991 * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw.
14992 * sem_warn.adb
14993 (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
14994 Move to warnsw.adb.
14995 * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size,
14996 Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
14997 Move to warnsw.adb.
14998 * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw.
14999 (Add_Symbol_Definition): Moved from Prepcomp.
15000 * switch-c.ads: Update copyright notice. Use String_List instead of
15001 Argument_List, removing dependency on System.OS_Lib.
15002
aa1e353a
AC
150032011-08-02 Yannick Moy <moy@adacore.com>
15004
15005 * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal
15006 mode on initialization expression which does not respect SPARK
15007 restrictions.
15008 * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines
15009 if the tree referenced by its argument represents an initialization
15010 expression in SPARK, suitable for initializing an object in an object
15011 declaration.
15012
150132011-08-02 Javier Miranda <miranda@adacore.com>
15014
15015 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the
15016 internally generated access to subprogram with its associated protected
15017 subprogram type.
15018 * einfo.ads, einfo.adb (Original_Access_Type): New attribute.
15019
15b682ca
GB
150202011-08-02 Geert Bosch <bosch@adacore.com>
15021
15022 * cstand.adb (Register_Float_Type): Print information about type to
15023 register, if the Debug_Flag_Dot_B is set.
15024 * debug.adb (Debug_Flag_Dot_B): Document d.b debug option.
15025 * rtsfind.ads (RE_Max_Base_Digits): New run time entity.
15026 * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations
15027 with a requested precision of more than Max_Digits digits and no more
15028 than Max_Base_Digits digits, if a range specification is present and the
15029 Predefined_Float_Types list has a suitable type to derive from.
15030 * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the
15031 case of type completion with pragma Import
15032 * sem_prag.adb
15033 (Process_Import_Predefined_Type): Processing to complete a type
15034 with pragma Import. Currently supports floating point types only.
15035 (Set_Convention_From_Pragma): Do nothing without underlying type.
15036 (Process_Convention): Guard against absence of underlying type,
15037 which may happen when importing incomplete types.
15038 (Process_Import_Or_Interface): Handle case of importing predefined
15039 types. Tweak error message.
15040
f8726f2b
AC
150412011-08-02 Eric Botcazou <ebotcazou@adacore.com>
15042
15043 * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined
15044 functions to previous change. Reorganize code slightly.
15045
150462011-08-02 Geert Bosch <bosch@adacore.com>
15047
15048 * back_end.ads (Register_Type_Proc): New call back procedure type for
15049 allowing the back end to provide information about available types.
15050 (Register_Back_End_Types): New procedure to register back end types.
15051 * back_end.adb (Register_Back_End_Types): Call the back end to enumerate
15052 available types.
15053 * cstand.adb (Back_End_Float_Types): New list for floating point types
15054 supported by the back end.
15055 (Build_Float_Type): Add extra parameter for Float_Rep_Kind.
15056 (Copy_Float_Type): New procedure to make new copies of predefined types.
15057 (Register_Float_Type): New call back procedure to populate the BEFT list
15058 (Find_Back_End_Float_Type): New procedure to find a BEFT by name
15059 (Create_Back_End_Float_Types): New procedure to populate the BEFT list.
15060 (Create_Float_Types): New procedure to create entities for floating
15061 point types predefined in Standard, and put these and any remaining
15062 BEFTs on the Predefined_Float_Types list.
15063 * stand.ads (Predefined_Float_Types): New list for predefined floating
15064 point types that do not have declarations in package Standard.
15065
feecad68
AC
150662011-08-02 Eric Botcazou <ebotcazou@adacore.com>
15067
15068 * inline.adb (Get_Code_Unit_Entity): New local function. Returns the
15069 entity node for the unit containing the parameter.
15070 (Add_Inlined_Body): Use it to find the unit containing the subprogram.
15071 (Add_Inlined_Subprogram): Likewise.
15072 * gcc-interface/Make-lang.in: Update dependencies.
15073
150742011-08-02 Thomas Quinot <quinot@adacore.com>
15075
15076 * s-stusta.adb (Print): Make sure Pos is always initialized to a
15077 suitable value.
15078
12f0c50c
AC
150792011-08-02 Geert Bosch <bosch@adacore.com>
15080
15081 * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image.
15082
150832011-08-02 Eric Botcazou <ebotcazou@adacore.com>
15084
15085 * sem_type.adb (Covers): Move trivial case to the top and reuse the
15086 computed value of Base_Type.
15087
150882011-08-02 Yannick Moy <moy@adacore.com>
15089
15090 * restrict.adb (Check_Restriction): issue an error for any use of
15091 class-wide, even if the No_Dispatch restriction is not set.
15092 * sem_aggr.adb: Correct typos in comments and messages in formal mode
15093 * sem_ch3.adb (Process_Full_View): issue an error in formal mode is,
15094 when completing a private extension, the type named in the private part
15095 is not the same as that named in the visible part.
15096 * sem_res.adb (Resolve_Call): issue an error in formal mode on the use
15097 of an inherited primitive operations of a tagged type or type extension
15098 that returns the tagged type.
15099 * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new
15100 function which returns True for an implicit operation inherited by the
15101 derived type declaration for the argument type.
15102 (Is_SPARK_Object_Reference): move to appropriate place in alphabetic
15103 order.
15104
fb86fe11
ES
151052011-08-02 Ed Schonberg <schonberg@adacore.com>
15106
15107 * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from
15108 Process_Bounds, to perform analysis with expansion of a range or an
15109 expression that is the iteration scheme for a loop.
15110 (Analyze_Iterator_Specification): If domain of iteration is given by a
15111 function call with a controlled result, as is the case if call returns
15112 a predefined container, ensure that finalization actions are properly
15113 generated.
15114 * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range.
15115
62be5d0a
JM
151162011-08-02 Javier Miranda <miranda@adacore.com>
15117
15118 * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo.
15119 * gcc-interface/Make-lang.in: Update dependencies.
15120
151212011-08-02 Javier Miranda <miranda@adacore.com>
15122
15123 * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to
15124 determine if the analysis is performed using N or Original_Node (N).
15125 * exp_util.adb (Side_Effect_Free): Code cleanup since the new
15126 functionality of routine Is_Variable avoids code duplication.
15127 * checks.adb (Determine_Range): Handle temporaries generated by
15128 Remove_Side_Effects.
15129
151302011-08-02 Javier Miranda <miranda@adacore.com>
15131
15132 * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and
15133 expansion of the condition. Required since the previous analysis was
15134 done with expansion disabled (see Resolve_Quantified_Expression) and
15135 hence checks were not inserted and record comparisons have not been
15136 expanded.
15137
a20f4389
AC
151382011-08-02 Ed Falis <falis@adacore.com>
15139
15140 * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads:
15141 Update header.
15142
151432011-08-02 Bob Duff <duff@adacore.com>
15144
15145 * opt.ads: Minor comment fix.
15146
151472011-08-02 Bob Duff <duff@adacore.com>
15148
15149 * sem_ch12.adb (Analyze_Package_Instantiation,
15150 Analyze_Subprogram_Instantiation): Turn off style checking while
15151 analyzing an instance. Whatever style checks that apply to the generic
15152 unit should apply, so it makes no sense to apply them in an instance.
15153 This was causing trouble when compiling an instance of a runtime
15154 unit that violates the -gnatyO switch.
15155 * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from
15156 one of the two case statements, causing spurious errors.
15157
151582011-08-02 Robert Dewar <dewar@adacore.com>
15159
15160 * uname.adb: Minor reformatting.
15161 * gnatcmd.adb: Minor reformatting.
15162 * exp_attr.adb: Minor reformatting.
15163
90878b12
AC
151642011-08-02 Ed Schonberg <schonberg@adacore.com>
15165
15166 * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction
15167 No_Dispatching_Calls, do not look for the Assign primitive, because
15168 predefined primitives are not created in this case.
15169
151702011-08-02 Bob Duff <duff@adacore.com>
15171
15172 * stylesw.ads: Minor comment fixes.
15173
151742011-08-02 Robert Dewar <dewar@adacore.com>
15175
15176 * freeze.adb (Add_To_Result): New procedure.
15177
151782011-08-02 Jose Ruiz <ruiz@adacore.com>
15179
15180 * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run
15181 time, if the specific run-time routines for handling streams of strings
15182 are not available, use the default mechanism.
15183
151842011-08-02 Arnaud Charlet <charlet@adacore.com>
15185
15186 * s-regpat.ads: Fix typo.
15187
151882011-08-02 Vincent Celier <celier@adacore.com>
15189
15190 * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is
15191 not null, call it to create the in memory config project file without
15192 parsing an existing default config project file.
15193
151942011-08-02 Eric Botcazou <ebotcazou@adacore.com>
15195
15196 * atree.adb (Allocate_Initialize_Node): Remove useless temporaries.
15197
151982011-08-02 Ed Schonberg <schonberg@adacore.com>
15199
15200 * sem_elim.adb: an abstract subprogram does not need an eliminate
15201 pragma for its descendant to be eliminable.
15202
152032011-08-02 Ed Falis <falis@adacore.com>
15204
15205 * init.c: revert to handling before previous checkin for VxWorks
15206 * s-intman-vxworks.adb: delete unnecessary declarations related to
15207 using Ada interrupt facilities for handling signals.
15208 Delete Initialize_Interrupts. Use __gnat_install_handler instead.
15209 * s-intman-vxworks.ads: Import __gnat_install_handler as
15210 Initialize_Interrupts.
15211 * s-taprop-vxworks.adb: Delete Signal_Mask.
15212 (Abort_Handler): change construction of mask to unblock exception
15213 signals.
15214
273adcdf
AC
152152011-08-02 Jerome Guitton <guitton@adacore.com>
15216
15217 * a-except-2005.adb (Raise_From_Signal_Handler): Call
15218 Debug_Raise_Exception before propagation starts.
15219
152202011-08-02 Eric Botcazou <ebotcazou@adacore.com>
15221
15222 * exp_ch6.adb (Expand_Call): Guard restriction checks with a call
15223 to Restriction_Check_Required.
15224 * sem_ch3.adb (Analyze_Object_Declaration): Likewise.
15225 * sem_res.adb (Resolve_Call): Likewise.
15226 * sem_attr.adb (Check_Stream_Attribute): Likewise.
15227
152282011-08-02 Bob Duff <duff@adacore.com>
15229
15230 * stylesw.ads: Update comment.
15231 * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
15232 * errout.ads: Remove obsolete comment.
15233
152342011-08-02 Javier Miranda <miranda@adacore.com>
15235
15236 * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
15237 (Set_Is_Safe_To_Reevaluate): new procedure.
15238 * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
15239 assignment is allowed on safe-to-reevaluate variables.
15240 (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
15241 temporary created to remove side effects in expressions that use
15242 the secondary stack as safe-to-reevaluate.
15243 * exp_util.adb (Side_Effect_Free): Add missing code to handle well
15244 variables that are not true constants.
15245
6320f5e1
AC
152462011-08-02 Robert Dewar <dewar@adacore.com>
15247
15248 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
15249 sem_res.adb, sem_ch6.adb: Minor reformatting.
15250
152512011-08-02 Jerome Guitton <guitton@adacore.com>
15252
15253 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
15254
2fe829ae
ES
152552011-08-02 Ed Schonberg <schonberg@adacore.com>
15256
15257 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
15258 not set Overridden_Operation if subprogram is an initialization
15259 procedure.
15260
e24329cd
YM
152612011-08-02 Yannick Moy <moy@adacore.com>
15262
15263 * par-ch6.adb: Correct obsolete name in comments
15264 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
15265 which takes two message arguments (existing function takes one), with
15266 second message used for continuation.
15267 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
15268 block statements that originate from a source block statement, not
15269 generated block statements
15270 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
15271 symmetry with procedure case
15272 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
15273 function to issue an error in formal mode if a package specification
15274 contains more than one tagged type or type extension.
15275 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
15276 parameters matching formals of tagged types are objects (or ancestor
15277 type conversions of objects), not general expressions. Issue an error
15278 on view conversions that are not involving ancestor conversion of an
15279 extended type.
15280 (Resolve_Type_Conversion): in formal mode, issue an error on the
15281 operand of an ancestor type conversion which is not an object
15282 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
15283 procedure so that it works also for actuals of function calls
15284 (Is_Actual_Tagged_Parameter): new function which determines if its
15285 argument is an actual parameter of a formal of tagged type in a
15286 subprogram call
15287 (Is_SPARK_Object_Reference): new function which determines if the tree
15288 referenced by its argument represents an object in SPARK
15289
176dadf6
AC
152902011-08-02 Robert Dewar <dewar@adacore.com>
15291
15292 * sem_ch3.adb: Minor reformatting
15293 Minor comment addition
15294 Minor error msg text change
15295
152962011-08-02 Javier Miranda <miranda@adacore.com>
15297
15298 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
15299 function. Used to be more precise when we generate a variable plus one
15300 assignment to remove side effects in the evaluation of the Bound
15301 expressions.
15302 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
15303 of the bound expression to force its re-analysis and thus expand the
15304 associated transient scope (if required). Code cleanup replacing the
15305 previous code that declared the constant entity by an invocation to
15306 routine Force_Evaluation which centralizes this work in the frontend.
15307
d8b962d8
AC
153082011-08-02 Robert Dewar <dewar@adacore.com>
15309
15310 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
15311 (Base_Type): Now uses improved Is_Base_Type function
15312 * einfo.ads (Base_Type): Inline this function
15313
153142011-08-02 Robert Dewar <dewar@adacore.com>
15315
15316 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
15317 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
15318
153192011-08-02 Arnaud Charlet <charlet@adacore.com>
15320
15321 * gcc-interface/Make-lang.in: Update dependencies.
15322 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
15323 targets.
15324
153252011-08-02 Yannick Moy <moy@adacore.com>
15326
15327 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
15328 non-simple expression used in delta constraint
15329 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
15330 index constraint which is not a subtype mark
15331 * par.adb: With and use Restrict
15332 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
15333 mode on component type which is not a subtype mark and default
15334 expression on component
15335 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
15336 of string which does not have a lower index bound equal to 1
15337 (Array_Type_Declaration): issue an error in formal mode on index or
15338 component type which is not a subtype mark, and on aliased keyword on
15339 component
15340 (Derived_Type_Declaration): issue an error in formal mode on interface,
15341 limited or abstract type
15342 (Record_Type_Declaration): issue an error in formal mode on interface
15343 (Record_Type_Definition): issue an error in formal mode on tagged types
15344 and type extensions not declared in the specification of a library unit
15345 package; on null non-tagged record; on variant part
15346
153472011-08-02 Vincent Celier <celier@adacore.com>
15348
15349 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
15350 not declared for qualified library project when Library_Name is not
15351 declared, but Library_Dir is.
15352
153532011-08-02 Robert Dewar <dewar@adacore.com>
15354
15355 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
15356 pragmas (affects aspects [Component_]Default_Value
15357 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
15358 component type for the resolution
15359
f96b2d85
AC
153602011-08-02 Eric Botcazou <ebotcazou@adacore.com>
15361
15362 * einfo.adb (Base_Type): Tune implementation for speed.
15363
153642011-08-02 Robert Dewar <dewar@adacore.com>
15365
15366 * freeze.adb: Minor reformatting.
15367
8b3c6430
AC
153682011-08-02 Thomas Quinot <quinot@adacore.com>
15369
15370 * scos.ads: Update comments.
15371
153722011-08-02 Ed Schonberg <schonberg@adacore.com>
15373
15374 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
15375 base type, because the parent may be a subtype of a private type whose
15376 convention is established in a private part.
15377
153782011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
15379
15380 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
15381 statement in a block when the expansion of the return expression has
15382 created a finalization chain.
15383 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
15384 with the parent node.
15385 Add N_Extended_Return_Statement to handle the case where a transient
15386 object declaration appears in the Return_Object_Declarations list of
15387 an extended return statement.
15388
153892011-08-02 Matthew Gingell <gingell@adacore.com>
15390
15391 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
15392 unused parameter 'name'.
15393
153942011-08-02 Ed Schonberg <schonberg@adacore.com>
15395
15396 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
15397 inherited operation, check whether its alias, which is the source
15398 operastion that it renames, has been marked eliminated.
15399
cae81f17
JM
154002011-08-02 Javier Miranda <miranda@adacore.com>
15401
15402 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
15403 in-mode parameter whose type is an access type since it can be used to
15404 modify its designated object. Enforce code that handles as safe an
15405 access type that is not access-to-constant but it is the result of a
15406 previous removal of side-effects.
15407 (Remove_Side_Effects): Minor code reorganization of cases which require
15408 no action. Done to incorporate documentation on new cases uncovered
15409 working in this ticket: no action needed if this routine was invoked
15410 too early and the nodes are not yet decorated.
15411 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
15412 to routine Remove_Side_Effects by calls to Force_Evaluation since they
15413 were issued with actuals that are implicitly provided by
15414 Force_Evaluation.
15415
218e6dee
RD
154162011-08-02 Robert Dewar <dewar@adacore.com>
15417
15418 * sem_ch3.adb, sem_res.adb: Minor reformatting.
15419
7a489a2b
AC
154202011-08-02 Yannick Moy <moy@adacore.com>
15421
15422 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
15423 to issue an error in formal mode on attribute not supported in this mode
15424 (Analyze_Attribute): issue errors on standard attributes not supported
15425 in formal mode.
15426 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
15427 comment, and issue error in formal mode on modulus which is not a power
15428 of 2.
15429 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
15430 range.
15431 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
15432 subtype mark.
15433 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
15434 operator on modular type (except 'not').
15435
154362011-08-02 Robert Dewar <dewar@adacore.com>
15437
15438 * gnat_rm.texi: Minor reformatting.
15439
cb7fa356
AC
154402011-08-02 Arnaud Charlet <charlet@adacore.com>
15441
15442 * s-osinte-linux.ads: Minor comment update and reformatting.
15443 * i-cexten.ads: Make this unit pure, as for its parent.
15444 Will allow its usage in more contexts if needed.
15445
154462011-08-02 Robert Dewar <dewar@adacore.com>
15447
15448 * s-utf_32.ads: Minor comment fix.
15449
154502011-08-02 Ed Schonberg <schonberg@adacore.com>
15451
15452 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
15453 operation of a tagged synchronized type, handle the case where the
15454 controlling argument is overloaded.
15455
154562011-08-02 Yannick Moy <moy@adacore.com>
15457
15458 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
15459 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
15460 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
15461 SPARK mode and formal verification mode on processing SPARK restriction
15462 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
15463 requiring consistency checking.
15464
5cc9353d
RD
154652011-08-02 Robert Dewar <dewar@adacore.com>
15466
15467 * sem_res.adb: Minor reformatting.
15468
e51537ff
RD
154692011-08-02 Robert Dewar <dewar@adacore.com>
15470
15471 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
15472 a-cforse.ads: Remove unneeded with of Ada.Containers
15473 Remove commented out pragma Inline's
15474 Move specifications of new subprograms to the actual specs
15475
83fa09c5
AC
154762011-08-02 Yannick Moy <moy@adacore.com>
15477
15478 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
15479 a-cforse.ads: Update comments.
15480
154812011-08-02 Ed Schonberg <schonberg@adacore.com>
15482
15483 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
15484
d11cfaf8
RD
154852011-08-02 Robert Dewar <dewar@adacore.com>
15486
15487 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
15488 a-cforse.ads, a-cofove.ads: Minor reformatting.
15489
300b98bb
AC
154902011-08-02 Claire Dross <dross@adacore.com>
15491
15492 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
15493 a-cofove.ads: Add comments.
15494
154952011-08-02 Yannick Moy <moy@adacore.com>
15496
15497 * gnat_rm.texi: Document formal containers.
15498
154992011-08-02 Emmanuel Briot <briot@adacore.com>
15500
15501 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
15502 are empty sections.
15503
19fb051c
AC
155042011-08-02 Robert Dewar <dewar@adacore.com>
15505
15506 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
15507 reformatting.
15508
155092011-08-02 Robert Dewar <dewar@adacore.com>
15510
15511 * aspects.adb: New aspects Default_Value and Default_Component_Value
15512 New format of Aspect_Names table checks for omitted entries
15513 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
15514 handling of boolean aspects for derived types.
15515 New aspects Default_Value and Default_Component_Value
15516 New format of Aspect_Names table checks for omitted entries
15517 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
15518 (Has_Default_Value): New flag
15519 (Has_Default_Component_Value): New flag
15520 (Has_Default_Value): New flag
15521 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
15522 table.
15523 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
15524 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
15525 Default_Value and Default_Component_Value
15526 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
15527 New aspects Default_Value and Default_Component_Value
15528 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
15529 * sprint.adb: Print N_Aspect_Specification node when called from gdb
15530
155312011-08-02 Vincent Celier <celier@adacore.com>
15532
15533 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
15534 inherit library kind.
15535
155362011-08-02 Ed Schonberg <schonberg@adacore.com>
15537
15538 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
15539 Minor reformatting.
15540
155412011-08-02 Robert Dewar <dewar@adacore.com>
15542
15543 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
15544
5f7747af
AC
155452011-08-02 Yannick Moy <moy@adacore.com>
15546
15547 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
15548
155492011-08-02 Robert Dewar <dewar@adacore.com>
15550
15551 * impunit.adb: Add comment.
15552
a5fe697b
AC
155532011-08-02 Yannick Moy <moy@adacore.com>
15554
15555 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
15556 qualification of aggregates in formal mode
15557 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
15558 another aggregate
15559 (Resolve_Aggregate): complete the test that an aggregate is adequately
15560 qualified in formal mode
15561
155622011-08-02 Pascal Obry <obry@adacore.com>
15563
15564 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
15565 * mlib-prj.adb: Supress warning when compiling binder generated file.
15566 (Build_Library): Supress all warnings when compiling the binder
15567 generated file.
15568
bd65a2d7 155692011-08-02 Yannick Moy <moy@adacore.com>
d4487611 15570
bd65a2d7
AC
15571 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
15572 from here...
15573 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
15574 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
15575 Add with/use clauses to make Check_Formal_Restriction visible
15576
155772011-08-02 Ed Schonberg <schonberg@adacore.com>
15578
15579 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
15580 in-parameters when type of the generic formal is private in the generic
15581 spec and non-private in the body.
15582
155832011-08-02 Claire Dross <dross@adacore.com>
15584
15585 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
15586 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
15587 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
15588 * impunit.adb, Makefile.rtl: Take new files into account.
d4487611
AC
15589
155902011-08-02 Robert Dewar <dewar@adacore.com>
15591
15592 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
15593 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
15594
bd434b3f
YM
155952011-08-02 Yannick Moy <moy@adacore.com>
15596
15597 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
15598 formal mode
15599 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
15600 matching static array bounds, taking into account the special case of
15601 string literals
15602 * sem_ch3.adb: Typo in comment.
15603
fe5d3068
YM
156042011-08-02 Yannick Moy <moy@adacore.com>
15605
15606 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
15607 which issues an error in formal mode if its argument node is originally
15608 from source
15609 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
15610 has a discriminant specification so that it does not include the case
15611 of derived types
15612 (Derived_Type_Declaration): move here the test that a derived type has a
15613 discriminant specification
15614 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
15615 first element of a component association before accessing its choices
15616 (presence of component association is not enough)
15617 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
15618 declaration is a library item before accessing the next element in a
15619 list, as library items are not member of lists
15620 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
15621 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
15622 Check_Formal_Restriction whenever possible.
15623
b60a3f26
AC
156242011-08-02 Ed Schonberg <schonberg@adacore.com>
15625
15626 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
15627 reference when needed.
15628
156292011-08-02 Bob Duff <duff@adacore.com>
15630
15631 * gnat_ugn.texi: Fix typo.
15632
156332011-08-02 Vincent Celier <celier@adacore.com>
15634
15635 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
15636 archive file name. Do not use the full path name of archives for Open
15637 VMS.
15638
eaba57fb
RD
156392011-08-02 Robert Dewar <dewar@adacore.com>
15640
15641 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
15642 Analyze_Aspect_Specifications
15643 * sem_ch13.adb
15644 (Analyze_Aspect_Specifications): New handling for boolean aspects
15645 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
15646 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
15647 sequence for Analyze_Aspect_Specifications
15648 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
15649 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
15650
156512011-08-02 Robert Dewar <dewar@adacore.com>
15652
15653 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
15654 aspects, since these no longer exist.
15655
156562011-08-02 Robert Dewar <dewar@adacore.com>
15657
15658 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
15659 semicolon, do not try to see if there are aspects following it.
15660 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
15661 aspect spec.
15662
8830d1d2
AC
156632011-08-02 Robert Dewar <dewar@adacore.com>
15664
15665 * sem_ch8.adb, aspects.ads: Minor reformatting.
15666
156672011-08-02 Eric Botcazou <ebotcazou@adacore.com>
15668
15669 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
15670 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
15671 extracted from...
15672 (Analyze_Aspect_Specifications): ...here. Call above procedure.
15673
7ff2d234
AC
156742011-08-02 Yannick Moy <moy@adacore.com>
15675
15676 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
15677 mode on subprogram declaration outside of package specification, unless
15678 it is followed by a pragma Import
15679 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
15680 Access_Type_Declaration): issue error in formal mode on access type
15681 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
15682 incomplete type
15683 (Analyze_Object_Declaration): issue error in formal mode on object
15684 declaration which does not respect SPARK restrictions
15685 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
15686 declaration which does not respect SPARK restrictions
15687 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
15688 error in formal mode on digits or delta constraint
15689 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
15690 decimal fixed point type
15691 (Derived_Type_Declaration): issue error in formal mode on derived type
15692 other than type extensions of tagged record types
15693 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
15694 with check on access definition
15695 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
15696 mode on protected definition.
15697 (Analyze_Task_Definition): issue error in formal mode on task definition
15698
156992011-08-02 Robert Dewar <dewar@adacore.com>
15700
15701 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
15702
806f6d37
AC
157032011-08-02 Javier Miranda <miranda@adacore.com>
15704
15705 * sem_ch6.adb (Can_Override_Operator): New function.
15706 (Verify_Overriding_Indicator): Add missing code to check overriding
15707 indicator in operators. Fixes regression.
15708 (Check_Overriding_Indicator): Minor reformating after replacing the
15709 code that evaluates if the subprogram can override an operator by
15710 invocations to the above new function.
15711 * einfo.adb
15712 (Write_Field26_Name): Add missing code to ensure that, following
15713 the documentation in einfo.ads, this field is not shown as attribute
15714 "Static_Initialization" on non-dispatching functions.
15715
157162011-08-02 Jose Ruiz <ruiz@adacore.com>
15717
15718 * sem_res.adb (Resolve_Call): A call to
15719 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
15720 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
15721 i.e., when the second parameter is of type Time_Span.
15722
157232011-08-02 Vincent Celier <celier@adacore.com>
15724
15725 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
15726 with an archive instead of -L<library dir> -l<library name>.
15727
157282011-08-02 Ed Schonberg <schonberg@adacore.com>
15729
15730 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
15731 mark the base types In_Use in addition to making the operations
15732 use_visible.
15733
157342011-08-02 Ed Falis <falis@adacore.com>
15735
15736 * init.c: add and setup __gnat_signal_mask for the exception signals
15737 * s-inmaop-vxworks.adb: new file.
15738 * s-intman-vxworks.adb: remove unnecessary initializations and
15739 simplify remaining
15740 * s-intman-vxworks.ads: remove unnecessary variable
15741 * s-taprop-vxworks.adb: simplify signal initialization
15742
780d052e
RD
157432011-08-02 Robert Dewar <dewar@adacore.com>
15744
15745 * sem_ch8.adb: Minor code reorganization, comment updates.
15746
157472011-08-02 Robert Dewar <dewar@adacore.com>
15748
15749 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
15750 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
15751 here from Sem_Res.
15752 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
15753 (Matching_Static_Array_Bounds): Moved here from Sem_Res
15754
29efbb8c
ES
157552011-08-02 Ed Schonberg <schonberg@adacore.com>
15756
15757 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
15758 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
15759 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
15760 use_type_clauses, to handle more efficiently use_type and use_all_type
15761 constructs.
15762 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
15763 Ada2012 Use_All_Type clause.
15764 (Use_Class_Wide_Operations): new procedure.
15765
b0186f71
AC
157662011-08-02 Robert Dewar <dewar@adacore.com>
15767
15768 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
15769 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
15770 expression to expression function.
15771
157722011-08-02 Ed Schonberg <schonberg@adacore.com>
15773
15774 * sem_ch4.adb: transform simple Ada2012 membership into equality only
15775 if types are compatible.
15776
157772011-08-02 Yannick Moy <moy@adacore.com>
15778
15779 * sem_res.adb (Matching_Static_Array_Bounds): new function which
15780 returns True if its argument array types have same dimension and same
15781 static bounds at each index.
15782 (Resolve_Actuals): issue an error in formal mode on actuals passed as
15783 OUT or IN OUT paramaters which are not view conversions in SPARK.
15784 (Resolve_Arithmetic_Op): issue an error in formal mode on
15785 multiplication or division with operands of fixed point types which are
15786 not qualified or explicitly converted.
15787 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
15788 Boolean or array type (except String) operands.
15789 (Resolve_Equality_Op): issue an error in formal mode on equality
15790 operators for array types other than String with non-matching static
15791 bounds.
15792 (Resolve_Logical_Op): issue an error in formal mode on logical operators
15793 for array types with non-matching static bounds. Factorize the code in
15794 Matching_Static_Array_Bounds.
15795 (Resolve_Qualified_Expression): issue an error in formal mode on
15796 qualified expressions for array types with non-matching static bounds.
15797 (Resolve_Type_Conversion): issue an error in formal mode on type
15798 conversion for array types with non-matching static bounds
15799
767bb4e8
AC
158002011-08-02 Robert Dewar <dewar@adacore.com>
15801
15802 * par-ch10.adb: Minor code reorganization (use Nkind_In).
15803
158042011-08-02 Ed Schonberg <schonberg@adacore.com>
15805
15806 * par-ch9.adb: save location of entry for proper error message.
15807
4ac2477e
JM
158082011-08-02 Javier Miranda <miranda@adacore.com>
15809
15810 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
15811 (Use_Full_View) which permits this routine to climb through the
15812 ancestors using the full-view of private parents.
15813 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
15814 Use_Full_View to true in calls to Is_Ancestor.
15815 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
15816 true in call to Is_Ancestor.
15817 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
15818 Use_Full_View to true in call to Is_Ancestor.
15819 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
15820 call to Is_Ancestor.
15821 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
15822 Use_Full_View to true in calls to Is_Ancestor.
15823 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
15824 Make_Select_Specific_Data_Table, Register_Primitive,
15825 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
15826 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
15827 to true in call to Is_Ancestor.
15828 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
15829 Use_Full_View to true in calls to Is_Ancestor.
15830 * exp_cg.adb
15831 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
15832 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
15833
9f90d123
AC
158342011-08-02 Robert Dewar <dewar@adacore.com>
15835
15836 * gnat_rm.texi: Minor reformatting.
15837 * sem_prag.adb: Minor reformatting.
15838
158392011-08-02 Tristan Gingold <gingold@adacore.com>
15840
15841 * vms_data.ads: Add VMS qualifier for -gnateP.
15842
158432011-08-02 Robert Dewar <dewar@adacore.com>
15844
15845 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
15846 * par-ch7.adb (P_Package): Proper placement of aspects for package
15847 decl/instantiation.
15848 * par-endh.adb (Check_End): Ad Is_Sloc parameter
15849 (End_Statements): Add Is_Sloc parameterr
15850 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
15851 (Check_End): Ad Is_Sloc parameter
15852 (End_Statements): Add Is_Sloc parameterr
15853
158542011-08-02 Vincent Celier <celier@adacore.com>
15855
15856 * ug_words: Add VMS qualifier equivalent to -gnateP:
15857 /SYMBOL_PREPROCESSING.
15858
158592011-08-02 Jose Ruiz <ruiz@adacore.com>
15860
15861 * gnat-style.texi: For hexadecimal numeric literals the typical
15862 grouping of digits is 4 to represent 2 bytes.
15863 A procedure spec which is split into several lines is indented two
15864 characters.
15865
158662011-08-02 Yannick Moy <moy@adacore.com>
15867
15868 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
15869 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
15870 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
15871 properly qualified
15872 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
15873 choice in array aggregate
15874 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
15875 mark as ancestor
15876 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
15877 positional and named aggregate for record, or others in record
15878 aggregate, or multiple choice in record aggregate
15879 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
15880 array operands to logical operations AND, OR and XOR do not have the
15881 same static lower and higher bounds
15882 * sem_ch5.adb, sinfo.ads: Correct typos in comments
15883
2933b16c
RD
158842011-08-01 Robert Dewar <dewar@adacore.com>
15885
15886 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
15887 Replaces Last_Source_Node_In_Sequence.
15888 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
15889 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
15890 parens and blank in string (this was inconsistently implemented).
15891 * errout.ads
15892 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
15893 blank in string (this was inconsistently implemented).
15894 * gnat1drv.adb
15895 (Set_Global_Switches): Set formal mode switches appropriately
15896 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
15897 * par-prag.adb
15898 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
15899 call Set_Error_Msg_Lang to set "spark" as language name.
15900 * par.adb: Remove unnecessary call to set formal language for errout
15901 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
15902 appropriately and call Set_Error_Msg_Lang to set "spark" as language
15903 name.
15904 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
15905 calls to it, moved after resolution so that types are known
15906 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
15907 result of concatenation is not of type String
15908 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
15909 concatenation is not properly restricted
15910 * gnat_rm.texi: Add doc on pragma Spark_95.
15911 * gcc-interface/Makefile.in: Remove obsolete target pairs for
15912 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
15913 * gcc-interface/Make-lang.in: Update dependencies.
15914
05dbd302
AC
159152011-08-01 Javier Miranda <miranda@adacore.com>
15916
15917 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
15918 condition that detects if the overridden operation must replace an
15919 existing entity.
15920
159212011-08-01 Javier Miranda <miranda@adacore.com>
15922
15923 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
15924 code declarations inserted by Insert_Actions in each alternative of the
15925 N_Case_Expression node.
15926
159272011-08-01 Robert Dewar <dewar@adacore.com>
15928
15929 * sem_ch6.adb: Minor code reorganization.
15930 * sem_util.adb: Minor reformatting.
15931
af9e051f
PO
159322011-08-01 Pascal Obry <obry@adacore.com>
15933
15934 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
15935 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
15936
1d801f21
AC
159372011-08-01 Yannick Moy <moy@adacore.com>
15938
15939 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
15940 literal or operator symbol which is prefixed
15941 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
15942 mode on access attributes.
15943 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
15944 that concatenation operands are properly restricted in formal mode
15945 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
15946 Analyze_Concatenation_Operand. Issue an error in formal mode if the
15947 result of the concatenation has a type different from String.
15948 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
15949 Analyze_Quantified_Expression, Analyze_Slice,
15950 Analyze_Null): issue an error in formal mode on unsupported constructs
15951 * sem_ch5.adb
15952 (Analyze_Block_Statement): only issue error on source block statement
15953 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
15954 function which returns the last node in a list of nodes for which
15955 Comes_From_Source returns True, if any
15956 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
15957 Last_Source_Node_In_Sequence
15958 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
15959 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
15960 mode on unsupported constructs
15961 * sem_ch9.adb Do not return after issuing error in formal mode, as the
15962 rest of the actions may be needed later on since the error is marked as
15963 not serious.
15964 * sinfo.ads: Typos in comments.
15965
159662011-08-01 Pascal Obry <obry@adacore.com>
15967
15968 * projects.texi: Minor editing.
15969
53beff22
YM
159702011-08-01 Yannick Moy <moy@adacore.com>
15971
15972 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
15973 insertion character ~~
15974 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
15975 (Set_Error_Msg_Lang): new procedure which fixes the language for use
15976 with insertion character ~~
15977 (Set_Msg_Text): treat insertion character ~~
15978 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
15979 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
15980 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
15981 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
15982 errors related to the formal language restriction not serious
15983 (insertion character |).
15984 * par.adb (Par): set formal language for error messages if needed
15985 * sem_ch6.adb (Check_Missing_Return): take into account possible
15986 generated statements at the end of the function
15987 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
15988 enumeration value to define a new pragma SPARK_95
15989 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
15990 SPARK_Version): new type and variables to store the SPARK version
15991 (none by default).
15992 (SPARK_Mode): return True when SPARK_Version is set
15993 * par-prag.adb: Correct indentation
15994 (Prag): take Pragma_SPARK_95 into account
15995 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
15996 into account.
15997
8d606a78
RD
159982011-08-01 Robert Dewar <dewar@adacore.com>
15999
16000 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
16001 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
16002 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
16003
1982d5a8
PO
160042011-08-01 Pascal Obry <obry@adacore.com>
16005
16006 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
16007 Target_Name to Get_Path call.
16008 (Parse_Single_Project): Likewise.
16009 (Post_Parse_Context_Clause): Likewise.
16010 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
16011 Call Initialise_Project_Path with the proper Target_Name.
16012 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
16013 search path.
16014 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
16015 with the proper Target_Name.
16016 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
16017 Part.Parse routine.
16018 (Parse_Project_And_Apply_Config): Likewise.
16019 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
16020 This is fine as this part of the code is supporting only native
16021 compilation.
16022 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
16023 is fine as this part of the code is supporting only native compilation.
16024
0d53d36b
AC
160252011-08-01 Yannick Moy <moy@adacore.com>
16026
16027 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
16028 of homonym, unless the homonym is one of the cases allowed in SPARK
16029 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
16030 package declaration occurring after a body.
16031
160322011-08-01 Robert Dewar <dewar@adacore.com>
16033
16034 * checks.adb, exp_ch4.adb: Minor reformatting.
16035
160362011-08-01 Javier Miranda <miranda@adacore.com>
16037
16038 * einfo.ads (Access_Disp_Table): Fix documentation.
16039 (Dispatch_Table_Wrappers): Fix documentation.
16040
160412011-08-01 Pascal Obry <obry@adacore.com>
16042
16043 * prj-env.adb, prj-env.ads: Minor reformatting.
16044
8ed68165
AC
160452011-08-01 Yannick Moy <moy@adacore.com>
16046
16047 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
16048 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
16049 procedures out of these packages.
2c7f9cc0 16050 * errout.ads, errout.adb
8ed68165
AC
16051 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
16052 procedures in of this package
16053 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
16054 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
16055 on misplaced later vs initial declarations, like in Ada 83
16056 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
16057 formal mode on attribute of private type whose full type declaration
16058 is not visible
16059 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
16060 package declaration inside a package specification
16061 (Analyze_Full_Type_Declaration): issue error in formal mode on
16062 controlled type or discriminant type
16063 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
16064 user-defined operator means that it should come from the source
16065 (New_Overloaded_Entity): issue error in formal mode on overloaded
16066 entity.
16067 * sem_ch6.ads, sem_ch13.ads: typos in comments.
16068
160692011-08-01 Thomas Quinot <quinot@adacore.com>
16070
16071 * atree.adb: Minor reformatting.
16072 * checks.adb: Minor reformatting.
16073
4230bdb7
AC
160742011-08-01 Vincent Celier <celier@adacore.com>
16075
16076 * s-parame-vms-ia64.ads: Fix typo in comment
16077 Minor reformatting
16078 * s-parame-vms-restrict.ads: Removed, unused.
16079
160802011-08-01 Javier Miranda <miranda@adacore.com>
16081
16082 * exp_ch3.adb
16083 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
16084 * sem_ch3.adb
16085 (Constrain_Index): Remove side effects in the evaluation of the bounds.
16086 * sem_ch3.ads, sem_ch3.adb
16087 (Is_Constant_Bound): New extended version of the subprogram that was
16088 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
16089 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
16090 * sem_aux.ads (Constant_Value): Fix typo in comment.
16091 * checks.adb (Generate_Index_Checks): New implementation which, for
16092 array objects with constant bounds, generates the runtime check
16093 referencing the bounds of the array type. For other cases this routine
16094 provides its previous behavior obtaining such values from the array
16095 object.
16096 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
16097 parent type.
16098 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
16099 we cannot have semantic interpretations of the new node.
16100
2010d078
AC
161012011-08-01 Ed Schonberg <schonberg@adacore.com>
16102
16103 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
16104 expressions.
16105
161062011-08-01 Arnaud Charlet <charlet@adacore.com>
16107
16108 * sem_ch8.adb: Minor code editing.
16109 * s-vxwext.adb: Remove trailing space.
16110 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
16111 consistency with other files.
16112
161132011-08-01 Thomas Quinot <quinot@adacore.com>
16114
16115 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
16116
161172011-08-01 Ed Schonberg <schonberg@adacore.com>
16118
16119 * par-ch10.adb: reject parameterized expressions as compilation unit.
16120 * sem_ch4.adb: handle properly conditional expression with overloaded
16121 then_clause and no else_clause.
16122
161232011-08-01 Tristan Gingold <gingold@adacore.com>
16124
16125 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
16126 like done by System.Aux_DEC.
16127 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
16128
daec8eeb
YM
161292011-08-01 Yannick Moy <moy@adacore.com>
16130
16131 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
16132 missing label at end of declaration (subprogram or package)
16133 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
16134 of positional and named parameter association
16135 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
16136 Error_Msg_SP which adds a prefix to the error message giving the name
16137 of the formal language analyzed
16138 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
16139 access result type in subprogram, unconstrained array as result type,.
16140 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
16141 procedure
16142 * sem_ch8.adb: Code clean up.
16143
38171f43
AC
161442011-08-01 Javier Miranda <miranda@adacore.com>
16145
16146 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
16147 * einfo.ads (Access_Disp_Table): Fix documentation.
16148 (Dispatch_Table_Wrappers): Fix documentation.
16149 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
16150 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
16151 to enforce the documentation of this attribute.
16152 (Set_Is_Interface): Cleanup the assertion.
16153 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
16154 the Underlying_Type entity before reading attribute Access_Disp_Table.
16155 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
16156 Locate the Underlying_Type before reading attribute Access_Disp_Table.
16157 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
16158 the Underlying_Type entity before reading attribute Access_Disp_Table.
16159 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
16160 Locate the Underlying_Type entity before reading attribute
16161 Access_Disp_Table.
16162
161632011-08-01 Ed Schonberg <schonberg@adacore.com>
16164
16165 * s-poosiz.ads: Additional overriding indicators.
16166
161672011-08-01 Yannick Moy <moy@adacore.com>
16168
16169 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
16170 formal mode.
16171 (Analyze_Iteration_Scheme): issue error in formal mode when loop
16172 parameter specification does not include a subtype mark.
16173 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
16174 formal mode on abstract subprogram.
16175 (Analyze_Subprogram_Specification): issue error in formal mode on
16176 user-defined operator.
16177 (Process_Formals): issue error in formal mode on access parameter and
16178 default expression.
16179 * sem_ch9.adb (Analyze_Abort_Statement,
16180 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
16181 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
16182 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
16183 Analyze_Requeue, Analyze_Selective_Accept,
16184 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
16185 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
16186 issue error in formal mode on user-defined raise statement.
16187
1f250383
AC
161882011-08-01 Thomas Quinot <quinot@adacore.com>
16189
16190 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
16191 declaration being hidden when overriding an implicit inherited
16192 subprogram.
16193 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
16194 (-gnats), do not complain about a source file that contains only a
16195 pragma No_Body.
16196
161972011-08-01 Ed Schonberg <schonberg@adacore.com>
16198
16199 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
16200 variable if already set.
16201
607d0635
AC
162022011-08-01 Arnaud Charlet <charlet@adacore.com>
16203
16204 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
16205 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
16206 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
16207 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
16208 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
16209 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
16210 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
16211 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
16212 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
16213 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
16214 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
16215 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
16216 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
16217 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
16218 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
16219 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
16220 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
16221 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
16222 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
16223 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
16224 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
16225 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
16226 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
16227 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
16228 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
16229 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
16230 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
16231 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
16232 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
16233 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
16234 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
16235 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
16236 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
16237 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
16238 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
16239 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
16240 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
16241 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
16242 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
16243 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
16244 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
16245 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
16246 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
16247 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
16248 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
16249 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
16250 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
16251 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
16252 s-osinte-mingw.ads: Update to GPLv3 run-time license.
16253 Use GNAT instead of GNARL.
16254
162552011-08-01 Bob Duff <duff@adacore.com>
16256
16257 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
16258 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
16259 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
16260 reformatting.
16261
162622011-08-01 Yannick Moy <moy@adacore.com>
16263
16264 * debug.adb (d.D) reverve flag for the SPARK mode
16265 (d.E) reverve flag for SPARK generation mode
16266 (d.F) reverve flag for Why generation mode
2c7f9cc0 16267 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
607d0635
AC
16268 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
16269 functions which return True when the corresponding modes are set
16270 (Formal_Language): return "spark" or "alfa" when in formal verification
16271 mode.
16272 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
16273 Error_Msg to prefix the error message with a tag giving the formal
16274 language
16275 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
16276 message with a tag giving the formal language
16277 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
16278 block statement
16279 (Analyze_Case_Statement): issue error in formal mode on case statement
16280 with a single "others" case alternative
16281 (Analyze_Exit_Statement): issue errors in formal mode on exit
16282 statements which do not respect SPARK restrictions
16283 (Analyze_Goto_Statement): issue error in formal mode on goto statement
16284 (Check_Unreachable_Code): always issue an error (not a warning) in
16285 formal mode on unreachable code (concerns both code after an infinite
16286 loop and after an unconditional jump, both not allowed in SPARK)
16287 * sem_ch6.adb (Analyze_Return_Statement): add call to
16288 Set_Return_Present for a procedure containing a return statement
16289 (already done for functions in Analyze_Function_Return)
16290 (Analyze_Function_Return): issue error in formal mode on extended
16291 return or if return is not last statement in function
16292 (Check_Missing_Return): issue error in formal mode if function does
16293 not end with return or if procedure contains a return
16294 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
16295 function to detect if there is an inner scope of its parameter S which
16296 is a loop.
16297
162982011-08-01 Thomas Quinot <quinot@adacore.com>
16299
16300 * sem_ch6.ads: Minor reformatting.
16301
d8b3ccb9
AC
163022011-08-01 Javier Miranda <miranda@adacore.com>
16303
16304 * sem_util.adb (Abstract_Interface_List): Complete condition when
16305 processing private type declarations to avoid reading unavailable
16306 attribute.
16307 (Is_Synchronized_Tagged_Type): Complete condition when processing
16308 private extension declaration nodes to avoid reading unavailable
16309 attribute.
16310
163112011-08-01 Thomas Quinot <quinot@adacore.com>
16312
16313 * sem_ch3.adb: Minor reformatting.
16314
163152011-08-01 Thomas Quinot <quinot@adacore.com>
16316
16317 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
16318 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
16319 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
16320 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
16321 for VMS, instead parametrize the common implementation with
16322 System.Parameters declarations.
16323
0bb9276c
AC
163242011-08-01 Eric Botcazou <ebotcazou@adacore.com>
16325
16326 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
16327
163282011-08-01 Tristan Gingold <gingold@adacore.com>
16329
16330 * seh_init.c: Fix SEH handler installation on win64.
16331
163322011-08-01 Ed Schonberg <schonberg@adacore.com>
16333
16334 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
16335 double analysis of an anonymous access to subprogram, because it can
16336 lead to improper sharing of profiles and a back-end crash.
16337
6a2e4f0b
AC
163382011-08-01 Robert Dewar <dewar@adacore.com>
16339
16340 * make.adb, sem_ch4.adb: Minor reformatting.
16341 * gcc-interface/Make-lang.in: Update dependencies.
16342 * sem_util.adb, exp_ch5.adb: Minor reformatting.
16343
163442011-08-01 Arnaud Charlet <charlet@adacore.com>
16345
16346 * gnat_rm.texi: Fix definition of Long_Integer.
16347
163482011-08-01 Ed Schonberg <schonberg@adacore.com>
16349
16350 * exp_aggr.adb: check limit size of static aggregate unconditionally,
16351 to prevent storage exhaustion.
16352 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
16353 finalized is a function body, insert the cleanup code before the final
16354 return statement, to prevent spurious warnings.
16355 * s-pooglo.ads: add overriding indicator.
16356
4561baf7
ES
163572011-08-01 Ed Schonberg <schonberg@adacore.com>
16358
16359 * sem_ch4.adb (Operator_Check): improve error message when both a
16360 with_clause and a use_clause are needed to make operator usage legal.
16361 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
16362 determine whether a compilation unit is visible within an other,
16363 either through a with_clause in the current unit, or a with_clause in
16364 its library unit or one one of its parents.
16365
383e179e
AC
163662011-08-01 Ed Schonberg <schonberg@adacore.com>
16367
16368 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
16369 over an arbitrary expression of an array or container type.
16370 * lib-xref.adb: clarify comment.
16371
163722011-08-01 Bob Duff <duff@adacore.com>
16373
16374 * einfo.ads: Minor reformatting.
16375 * debug.adb: Minor comment improvement.
16376
163772011-08-01 Javier Miranda <miranda@adacore.com>
16378
16379 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
16380 consider hidden subprograms as valid candidates.
16381
163822011-08-01 Arnaud Charlet <charlet@adacore.com>
16383
16384 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
16385
163862011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
16387
16388 * gnat_ugn.texi: Fix typo.
16389
61c161b2
AC
163902011-08-01 Robert Dewar <dewar@adacore.com>
16391
16392 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
16393 lib-xref.adb: Minor reformatting
16394
163952011-08-01 Gary Dismukes <dismukes@adacore.com>
16396
16397 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
16398 when to generate a call to Move_Final_List.
16399 (Has_Controlled_Parts): Remove this function.
16400
84df40f7
AC
164012011-08-01 Geert Bosch <bosch@adacore.com>
16402
16403 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
16404 "," in choice list.
16405
164062011-08-01 Thomas Quinot <quinot@adacore.com>
16407
16408 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
16409 explicit raise of a predefined exception as Comes_From_Source if the
16410 original N_Raise_Statement comes from source.
16411
164122011-08-01 Robert Dewar <dewar@adacore.com>
16413
16414 * sinfo.ads: Add comment.
16415 * sem_ch6.adb: Minor reformatting.
16416
164172011-08-01 Robert Dewar <dewar@adacore.com>
16418
16419 * freeze.adb (Freeze_Entity): Refine check for bad component size
16420 clause to avoid rejecting confirming clause when atomic/aliased present.
16421
164222011-08-01 Ed Schonberg <schonberg@adacore.com>
16423
16424 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
16425 better determine whether an entity reference is a write.
16426 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
16427 subcomponent.
16428 * lib-xref.adb (Output_References): Do no suppress a read reference at
16429 the same location as an immediately preceeding modify-reference, to
16430 handle properly in-out actuals.
16431
164322011-08-01 Tristan Gingold <gingold@adacore.com>
16433
16434 * env.c (__gnat_setenv) [VMS]: Refine previous change.
16435
164362011-08-01 Quentin Ochem <ochem@adacore.com>
16437
16438 * i-cstrin.adb (New_String): Changed implementation, now uses only the
16439 heap to compute the result.
16440
c7f0d2c0
AC
164412011-08-01 Robert Dewar <dewar@adacore.com>
16442
16443 * atree.ads: Minor reformatting.
16444
164452011-08-01 Emmanuel Briot <briot@adacore.com>
16446
16447 * g-expect.adb (Get_Command_Output): Fix memory leak.
16448
164492011-08-01 Geert Bosch <bosch@adacore.com>
16450
16451 * cstand.adb (P_Float_Type): New procedure to print the definition of
16452 predefined fpt types.
16453 (P_Mixed_Name): New procedure to print a name using mixed case
16454 (Print_Standard): Use P_Float_Type for printing floating point types
16455 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
16456 precision IEEE float.
16457
164582011-08-01 Thomas Quinot <quinot@adacore.com>
16459
16460 * sem_ch3.adb: Minor reformatting.
16461
164622011-08-01 Ed Schonberg <schonberg@adacore.com>
16463
16464 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
16465 the completion of a generic function, insert the new body rather than
16466 rewriting the original.
16467
164682011-08-01 Yannick Moy <moy@adacore.com>
16469
16470 * sinfo.ads, errout.ads: Typos in comments.
16471
1c54829e
AC
164722011-08-01 Robert Dewar <dewar@adacore.com>
16473
16474 * par-endh.adb: Minor reformatting.
16475
164762011-08-01 Robert Dewar <dewar@adacore.com>
16477
16478 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
16479 (Pre_Post_Aspects): New subtype.
16480 * par-ch12.adb (P_Generic): New syntax for aspects in packages
16481 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
16482 * par-ch7.adb (P_Package): Remove Decl parameter
16483 (P_Package): Handle new syntax for aspects (before IS)
16484 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
16485 new aspect syntax
16486 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
16487 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
16488 (P_Package): Remove Decl parameter
16489 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
16490 aspects
16491 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
16492 specs
16493 * sem_util.ads, sem_util.adb (Static_Boolean): New function
16494 * sinfo.ads: Document new syntax for aspects in packages etc.
16495 * sprint.adb: Handle new syntax of aspects before IS in package
16496
164972011-08-01 Thomas Quinot <quinot@adacore.com>
16498
16499 * atree.ads: Minor reformatting.
16500 * sem_prag.adb: Minor reformatting.
16501
165022011-08-01 Robert Dewar <dewar@adacore.com>
16503
16504 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
16505 case expr alternative.
16506
165072011-08-01 Ed Schonberg <schonberg@adacore.com>
16508
16509 * sem_ch12.adb: Fix typo.
16510
9eea4346
GB
165112011-08-01 Geert Bosch <bosch@adacore.com>
16512
16513 * sem_prag.adb (Check_No_Link_Name): New procedure.
16514 (Process_Import_Or_Interface): Use Check_No_Link_Name.
16515 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
16516 instead of Standard_Long_Long_Float_Size global. Preparation for
16517 eventual removal of per type constants.
16518 * exp_util.ads (Get_Stream_Size): New function returning the stream
16519 size value of subtype E.
16520 * exp_util.adb (Get_Stream_Size): Implement new function.
16521 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
16522 function.
16523 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
16524 * einfo.adb:
16525 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
16526
3d6c3bd7
GB
165272011-08-01 Geert Bosch <bosch@adacore.com>
16528
16529 * cstand.adb: Fix comments.
16530 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
16531 count of arguments.
16532
e7d897b8
AC
165332011-08-01 Robert Dewar <dewar@adacore.com>
16534
16535 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
16536
165372011-08-01 Geert Bosch <bosch@adacore.com>
16538
16539 * atree.ads: Fix comment.
16540
c228a069
AC
165412011-08-01 Robert Dewar <dewar@adacore.com>
16542
16543 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
16544 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
16545 * par.adb: Add with for Namet.Sp.
16546 * par-tchk.adb: Minor reformatting.
16547
165482011-08-01 Vincent Celier <celier@adacore.com>
16549
16550 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
16551 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
16552 of the init procedure of a SAL.
16553 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
16554 New procedure.
16555
165562011-08-01 Thomas Quinot <quinot@adacore.com>
16557
16558 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
16559 reformatting.
16560
165612011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16562
16563 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
16564
165652011-08-01 Thomas Quinot <quinot@adacore.com>
16566
16567 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
16568 conformant with its spec (return True only for types that have
16569 an overriding Initialize primitive operation that prevents them from
16570 having preelaborable initialization).
16571 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
16572 initialization for controlled types in Ada 2005 or later mode.
16573
857ade1b
RD
165742011-08-01 Robert Dewar <dewar@adacore.com>
16575
16576 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
16577 Postcondition.
16578 (Same_Aspect): New function.
16579 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
16580 Type_Invariant, Precondition, Postcondition.
16581 * snames.ads-tmpl: Add Name_Type_Invariant.
16582
bd949ee2
RD
165832011-08-01 Robert Dewar <dewar@adacore.com>
16584
16585 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
16586 here.
16587 (Freeze_All_Ent): Fix error in handling inherited aspects.
16588 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
16589 already analyzed, but don't skip entire processing of a declaration,
16590 that's wrong in some cases of declarations being rewritten.
16591 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
16592 Don't delay for integer, string literals
16593 Treat predicates in usual manner for delay, remove special case code,
16594 not needed.
16595 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
16596 (Build_Predicate_Function): Update saved expression in aspect
16597 (Build_Invariant_Procedure): Update saved expression in aspect
16598 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
16599 of replacement of discriminant references if the reference is simple.
16600
f1c952af
RD
166012011-08-01 Robert Dewar <dewar@adacore.com>
16602
16603 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
16604 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
16605 Static_Predicate and Dynamic_Predicate.
16606 (Build_Predicate_Function): Add processing for Static_Predicate
16607 and Dynamic_Predicate.
16608 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
16609 (From_Static_Predicate): New flag
16610 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
16611
166122011-08-01 Robert Dewar <dewar@adacore.com>
16613
16614 * usage.adb: Documentation cleanup for Ada version modes in usage.
16615 * expander.adb: Minor reformatting.
16616
47e11d08
AC
166172011-08-01 Robert Dewar <dewar@adacore.com>
16618
16619 * atree.ads: Minor comment fix.
16620 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
16621 a-witeio.ads, sem_prag.adb: Minor reformatting.
16622
166232011-08-01 Doug Rupp <rupp@adacore.com>
16624
16625 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
16626 pointers. Use descrip.h header file for convenience. Add some
16627 comments.
16628
166292011-08-01 Robert Dewar <dewar@adacore.com>
16630
16631 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
16632 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
16633 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
16634 New procedure.
16635 (Check_Aspect_At_End_Of_Declarations): New procedure
16636 (Analye_Aspect_Specification): Minor changes for above procedures
16637 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
16638 specification node as well.
16639
166402011-08-01 Pascal Obry <obry@adacore.com>
16641
16642 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
16643 Windows files. Use GetFilesAttributes() in this case to check for file
16644 existence instead of returning with an error code.
16645
a3a16b21
VC
166462011-08-01 Vincent Celier <celier@adacore.com>
16647
16648 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
16649 High is above Source length.
16650
ff58cc69
RD
166512011-08-01 Robert Dewar <dewar@adacore.com>
16652
16653 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
16654
6bb88533
AC
166552011-08-01 Robert Dewar <dewar@adacore.com>
16656
16657 * aspects.ads (Boolean_Aspects): New subtype.
16658 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
16659 for derived types in cases where the parent type and derived type have
16660 aspects.
16661 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
16662 with aspects when parent type also has aspects.
16663 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
16664 boolean expression at this point).
16665 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
16666 accordance with final decision on the Ada 2012 feature.
16667 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
16668
166692011-08-01 Matthew Heaney <heaney@adacore.com>
16670
16671 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
16672
060a3f28
AC
166732011-08-01 Pascal Obry <obry@adacore.com>
16674
16675 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
16676 Fix Replace_Slice when High is above current string size.
16677 (Replace_Slice): Fix DL computation when High is above current
16678 string length.
16679
166802011-08-01 Gary Dismukes <dismukes@adacore.com>
16681
16682 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
16683
e7f567a3
AC
166842011-08-01 Matthew Heaney <heaney@adacore.com>
16685
16686 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
16687 of node.
16688
166892011-08-01 Pascal Obry <obry@adacore.com>
16690
16691 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
16692 reformatting.
16693
1a265e78
AC
166942011-08-01 Ed Schonberg <schonberg@adacore.com>
16695
16696 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
16697 access to protected subprograms in generic bodies.
16698 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
16699 protected type, indicate that the convention of the subprogram is
16700 Convention_Protected, because it may be used in subsequent declarations
16701 within the protected declaration.
16702
167032011-08-01 Vincent Celier <celier@adacore.com>
16704
16705 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
16706 and "final" procedures when the name of the library is "ada", to avoid
16707 duplicate symbols "adainit" and "adafinal" in executables.
16708
67e28ef8
ES
167092011-08-01 Ed Schonberg <schonberg@adacore.com>
16710
16711 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
16712 quantified expression that appears within a postcondition and uses the
16713 Ada2012 'Result attribute.
16714
6da2ca7d
RO
167152011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16716
16717 * init.c (__gnat_error_handler): Cast reason to int.
16718 (__gnat_install_handler): Explain sa_sigaction use.
16719
7d5997c6
EB
167202011-07-24 Eric Botcazou <ebotcazou@adacore.com>
16721
16722 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
16723 subprogram has copy-in copy-out parameters, try to promote the mode of
16724 the return type if it is passed in registers.
16725
4b4cfdd5
EB
167262011-07-24 Eric Botcazou <ebotcazou@adacore.com>
16727
16728 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
16729 left operand as addressable.
16730
f3d34576
EB
167312011-07-24 Eric Botcazou <ebotcazou@adacore.com>
16732
16733 * gcc-interface/gigi.h (build_function_stub): Remove.
16734 (build_return_expr): Likewise.
16735 (convert_vms_descriptor): Declare.
16736 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
16737 (build_function_stub): Move to...
16738 * gcc-interface/utils2.c (build_return_expr): Move to...
16739 * gcc-interface/trans.c (build_function_stub): ...here.
16740 (build_return_expr): ...here.
16741 (Subprogram_Body_to_gnu): Add local variable for language_function.
16742 Disconnect the parameter attributes cache, if any, once done with it.
16743 Call end_subprog_body only after setting the end_locus.
16744 Build the stub associated with the function, if any, at the very end.
16745 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
16746 variables and streamline control flow.
16747
0a6ecc08
AC
167482011-07-23 Arnaud Charlet <charlet@adacore.com>
16749
16750 PR ada/49819
16751 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
16752 g-trasym-dwarf.adb.
16753
5b6d595b
RO
167542011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16755
16756 PR bootstrap/49794
16757 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
16758 Assign to act.sa_sigaction.
16759 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
16760 current->return_address to char * before arithmetic.
16761
94017021
RO
167622011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16763
16764 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
16765 Correct argument types.
16766 Extract code from reason.
16767 (__gnat_install_handler): Assign to act.sa_sigaction.
16768
52fd02bb
EB
167692011-07-21 Eric Botcazou <ebotcazou@adacore.com>
16770
16771 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
16772 (GNAT1_OBJS): ...here.
16773
f39a9ca2
EB
167742011-07-15 Eric Botcazou <ebotcazou@adacore.com>
16775
16776 PR ada/48711
16777 * g-socthi-mingw.adb (Fill): Fix formatting.
16778
9e36aa23
EB
16779 * gcc-interface/gigi.h: Move around comment.
16780
e3aca522
JDA
167812011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16782
16783 PR ada/46350
16784 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
16785
696b1960
FW
167862011-07-14 Florian Weimer <fw@deneb.enyo.de>
16787
16788 PR ada/48711
16789 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
16790
f542c405
EB
167912011-07-13 Eric Botcazou <ebotcazou@adacore.com>
16792
16793 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
16794 range comparison if Pmode is SImode.
16795
9e9bd455
LG
167962011-07-12 Laurent GUERBY <laurent@guerby.net>
16797 Eric Botcazou <ebotcazou@adacore.com>
16798
16799 * adadecode.c: Wrap up in extern "C" block.
16800 * adadecode.h: Likewise.
16801 * adaint.c: Likewise. Remove 'const' keyword.
16802 * adaint.h: Likewise.
16803 * argv.c: Likewise.
16804 * atree.h: Likewise.
16805 * cio.c: Likewise.
16806 * cstreams.c: Likewise.
16807 * env.c: Likewise.
16808 * exit.c: Likewise.
16809 * fe.h: Likewise.
16810 * final.c: Likewise.
16811 * init.c: Likewise.
16812 * initialize.c: Likewise.
16813 * link.c: Likewise.
16814 * namet.h: Likewise.
16815 * nlists.h: Likewise.
16816 * raise.c: Likewise.
16817 * raise.h: Likewise.
16818 * repinfo.h: Likewise.
16819 * seh_init.c: Likewise.
16820 * targext.c: Likewise.
16821 * tracebak.c: Likewise.
16822 * uintp.h: Likewise.
16823 * urealp.h: Likewise.
16824 * xeinfo.adb: Wrap up generated C code in extern "C" block.
16825 * xsinfo.adb: Likewise.
16826 * xsnamest.adb: Likewise.
16827 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
16828 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
16829 * gcc-interface/misc.c: Likewise.
16830 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
16831 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
16832 ada/targext.o here...
16833 (GNAT_ADA_OBJS): ...and not here.
16834 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
16835 (GNATBIND_OBJS): Reorder.
16836
7644b3c7
RH
168372011-07-07 Richard Henderson <rth@redhat.com>
16838
16839 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
16840 dwarf2out_frame_init.
16841
8384ac41
EB
168422011-07-07 Eric Botcazou <ebotcazou@adacore.com>
16843
16844 * gcc-interface/misc.c (gnat_init): Tweak previous change.
16845
fbdd5d87
RO
168462011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16847
16848 PR target/39150
16849 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
16850
1a072294
RG
168512011-07-06 Richard Guenther <rguenther@suse.de>
16852
8384ac41
EB
16853 * gcc-interface/misc.c (gnat_init): Merge calls to
16854 build_common_tree_nodes and build_common_tree_nodes_2.
1a072294
RG
16855 Re-initialize boolean_false_node.
16856
bc712852
EB
168572011-07-02 Eric Botcazou <ebotcazou@adacore.com>
16858 Olivier Hainque <hainque@adacore.com>
16859 Nicolas Setton <setton@adacore.com>
16860
16861 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
16862 the type according to the ARTIFICIAL_P parameter.
16863 (create_type_decl): Likewise.
16864 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
16865
2eb22389
EB
168662011-07-01 Eric Botcazou <ebotcazou@adacore.com>
16867
16868 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
16869 (gnatbind): Likewise.
16870
4bdaaf2f
RO
168712011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16872
16873 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
16874
c020c92b
EB
168752011-06-18 Eric Botcazou <ebotcazou@adacore.com>
16876
16877 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
16878 local variable throughout. Remove useless call to Base_Type.
16879 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
16880 Take it also into account for the volatileness of the field. Set the
16881 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
16882
96769d32
EB
168832011-06-18 Eric Botcazou <ebotcazou@adacore.com>
16884
16885 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
16886 on a dereference built for a by-ref object if it has an address clause.
16887
7e4680c1
EB
168882011-06-18 Eric Botcazou <ebotcazou@adacore.com>
16889
16890 * einfo.ads (Address_Taken): Document use for the second argument of
16891 Asm_Input and Asm_Output attributes.
16892 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
16893 argument is an entity name, then set Address_Taken on it.
16894 <Attribute_Asm_Output>: Likewise.
16895 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
16896 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
16897 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
16898 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
16899
169002011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
16901
16902 PR middle-end/46500
16903 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
16904
677f3fa8
JM
169052011-06-14 Joseph Myers <joseph@codesourcery.com>
16906
16907 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
16908 (ada/utils.o): Update dependencies.
16909 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
16910 ../../../libcpp/libcpp.a.
16911 * gcc-interface/utils.c: Include common/common-target.h.
16912 (process_attributes): Use targetm_common.have_named_sections.
16913
009db074
RG
169142011-06-07 Richard Guenther <rguenther@suse.de>
16915
0bad0e23
EB
16916 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
16917 set_sizetype.
009db074 16918
3bfc61cf
EB
169192011-06-06 Eric Botcazou <ebotcazou@adacore.com>
16920
0bad0e23 16921 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
3bfc61cf
EB
16922 TREE_THIS_NOTRAP flag.
16923
5c4a1c7b
EB
169242011-06-06 Eric Botcazou <ebotcazou@adacore.com>
16925
16926 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
16927 Fix thinko.
16928
e9f57686
EB
169292011-06-06 Eric Botcazou <ebotcazou@adacore.com>
16930
16931 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
16932 constants whose full view has discriminants specially.
16933
10e4d056
EB
169342011-06-06 Eric Botcazou <ebotcazou@adacore.com>
16935
16936 * gcc-interface/utils.c: Include diagnostic.h.
16937 (gnat_write_global_declarations): Output debug information for all
16938 global type declarations before finalizing the compilation unit.
16939 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
16940
0957c029
JJ
169412011-05-25 Jakub Jelinek <jakub@redhat.com>
16942
16943 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
16944
52d0a7ac
KT
169452011-05-25 Kai Tietz <ktietz@redhat.com>
16946
16947 * adaint.c (__gnat_to_canonical_file_list_next): Use array
16948 initialization instead of const/none-const pointer assignment.
16949
1ed1641d
JM
169502011-05-24 Joseph Myers <joseph@codesourcery.com>
16951
16952 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
16953 $(EXTRA_GNAT1_OBJS).
16954 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
16955 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
16956 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
16957 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
16958 libcommon-target.a instead of prefix.o.
16959
9fe72ebd
JM
169602011-05-21 Joseph Myers <joseph@codesourcery.com>
16961
16962 PR ada/49097
0bad0e23 16963 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
9fe72ebd 16964
2691e6d7
JM
169652011-05-20 Joseph Myers <joseph@codesourcery.com>
16966
0bad0e23
EB
16967 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
16968 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
16969 instead of version.o.
2691e6d7 16970
2d0dd51a 169712011-05-18 Kai Tietz <ktietz@redhat.com>
bf6490b5
KT
16972
16973 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
16974 boolean_false_node instead of integer_zero_node.
16975 (convert_with_check): Likewise.
16976 * gcc-interface/decl.c (choices_to_gnu): Likewise.
16977
7bf9a5ac
EB
169782011-05-12 Eric Botcazou <ebotcazou@adacore.com>
16979
16980 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
16981 type of the parameter is an unconstrained array, convert the actual to
16982 the type of the formal in the In Out and Out cases as well.
16983
e5b00edf
NF
169842011-05-11 Nathan Froyd <froydnj@codesourcery.com>
16985
16986 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
16987 call build_function_type_array or build_varargs_function_type_array
16988 instead.
16989 (create_subprog_type): Don't call build_function_type; call
16990 build_function_type_vec instead.
16991
51545682
NF
169922011-05-11 Nathan Froyd <froydnj@codesourcery.com>
16993
16994 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
16995 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
16996 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
16997
c99c0026
EB
169982011-05-07 Eric Botcazou <ebotcazou@adacore.com>
16999
f620bd21
EB
17000 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
17001
c99c0026
EB
17002 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
17003 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
17004
3d528853
NF
170052011-05-05 Nathan Froyd <froydnj@codesourcery.com>
17006
c99c0026 17007 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
3d528853 17008
d7d058c5
NF
170092011-05-05 Nathan Froyd <froydnj@codesourcery.com>
17010
17011 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
17012 instead of accessing TYPE_ARG_TYPES directly.
17013 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
17014
805e60a0
EB
170152011-05-05 Eric Botcazou <ebotcazou@adacore.com>
17016
17017 PR ada/48844
17018 * gcc-interface/gigi.h (get_variant_part): Declare.
17019 * gcc-interface/decl.c (get_variant_part): Make global.
17020 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
17021 types have the same constant size, are record types and T1 has a
17022 variant part while T2 doesn't.
17023
907a08d9
EB
170242011-05-05 Eric Botcazou <ebotcazou@adacore.com>
17025
17026 * gcc-interface/utils.c (begin_subprog_body): Do not call
17027 get_pending_sizes.
17028 (end_subprog_body): Likewise.
17029
d35936ab
RG
170302011-05-04 Richard Guenther <rguenther@suse.de>
17031
17032 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
17033 int_const_binop.
17034 (pos_to_constructor): Likewise.
17035
c1fd8753 170362011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2c7f9cc0 17037 Eric Botcazou <ebotcazou@adacore.com>
c1fd8753
NF
17038
17039 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
17040 of build_function_type. Adjust calls to...
17041 (build_raise_check): ...this. Do not take a void_tree parameter.
17042 Call build_function_type_list instead of build_function_type.
17043 Fix head comment and swap couple of conditional blocks.
17044
4fb87d2b
EB
170452011-04-30 Eric Botcazou <ebotcazou@adacore.com>
17046
17047 * gnatvsn.ads (Library_Version): Bump to 4.7.
17048 (Current_Year): Bump to 2011.
17049
fa5e5a76
MM
170502011-04-29 Michael Matz <matz@suse.de>
17051
17052 * gcc-interface/misc.c (gnat_handle_option): Set
17053 warn_maybe_uninitialized.
17054
8d6a2f69
GP
170552011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
17056
17057 * gnat_ugn.texi (Complexity Metrics Control): Update link to
17058 the Watson/McCabe paper.
17059
770937fd
JM
170602011-04-23 Jim Meyering <meyering@redhat.com>
17061
17062 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
17063
eb601ae1
EB
170642011-04-22 Eric Botcazou <ebotcazou@adacore.com>
17065
17066 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
17067 onto the new type.
17068
7d7fcb08
EB
170692011-04-22 Eric Botcazou <ebotcazou@adacore.com>
17070
17071 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
17072 parameter.
17073 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
17074 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
17075 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
17076 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
17077 <all>: Do not set flags on the reused DECL node coming from an alias.
17078 Set DECL_IGNORED_P on the DECL node built for subprograms if they
17079 don't need debug info here...
17080 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
17081 (gigi): Adjust calls to create_subprog_decl.
17082 (build_raise_check): Likewise.
17083 (establish_gnat_vms_condition_handler): Likewise.
17084 (Compilation_Unit_to_gnu): Likewise.
17085 (gnat_to_gnu): Likewise.
17086
e1876cac
EB
170872011-04-21 Eric Botcazou <ebotcazou@adacore.com>
17088
17089 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
17090 (NO_REORDER_ADAFLAGS): New variable.
17091 (EXTRA_GNATTOOLS): Always define.
17092 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
17093 Clean up and adjust list of files compiled with special options.
17094 * gcc-interface/Make-lang.in: Likewise.
17095 (ada/decl.o): Cosmetical change.
17096 (ada/misc.o): Remove dependency on $(PLUGIN_H).
17097
04695783
JM
170982011-04-20 Jim Meyering <meyering@redhat.com>
17099
17100 * initialize.c (__gnat_initialize): Remove useless if-before-free.
17101
23399579
EB
171022011-04-17 Eric Botcazou <ebotcazou@adacore.com>
17103
17104 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
17105 $(CFLAGS) on the link line.
17106
51c5169c
EB
171072011-04-17 Eric Botcazou <ebotcazou@adacore.com>
17108
17109 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
17110 padded type built for the return type if it is unconstrained.
17111
61e46a7d
NF
171122011-04-14 Nathan Froyd <froydnj@codesourcery.com>
17113
17114 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
17115
81f653d6
NF
171162011-04-12 Nathan Froyd <froydnj@codesourcery.com>
17117
b4867846
EB
17118 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
17119 before calling TREE_CHAIN.
81f653d6
NF
17120 * gcc-interface/misc.c (gnat_init_ts): New function.
17121 (LANG_HOOKS_INIT_TS): Define.
17122
a358e188
MJ
171232011-04-12 Martin Jambor <mjambor@suse.cz>
17124
b4867846
EB
17125 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
17126 instead of cgraph_node.
a358e188 17127
29b1c5a4
EB
171282011-04-08 Eric Botcazou <ebotcazou@adacore.com>
17129
17130 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
17131 alignment on fields of the RETURN type built for the Copy-In Copy-Out
17132 mechanism.
17133
88872b00
EB
171342011-04-08 Eric Botcazou <ebotcazou@adacore.com>
17135
17136 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
17137 of aggregate types that contain a placeholder.
17138
dcf0c47e
NF
171392011-04-08 Nathan Froyd <froydnj@codesourcery.com>
17140
17141 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
b4867846 17142 TYPE_ARG_TYPES.
dcf0c47e
NF
17143 (handle_type_generic_attribute): Likewise.
17144
53e3000c
EB
171452011-04-04 Eric Botcazou <ebotcazou@adacore.com>
17146
17147 PR ada/47163
17148 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
17149
ab380bb4
KT
171502011-04-04 Kai Tietz <ktietz@redhat.com>
17151
17152 PR ada/47163
0bad0e23
EB
17153 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
17154 to flag value.
ab380bb4 17155
8ffac116
EB
171562011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17157
17158 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
17159 type case, do not strip a padding type around the array type.
17160
de9528f0
EB
171612011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17162
17163 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
17164 types.
17165
d9d7a26c
EB
171662011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17167
17168 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
17169 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
de9528f0 17170 code for -feliminate-unused-debug-types.
d9d7a26c
EB
17171 (gnat_post_options): Likewise.
17172
4cb12a90
EB
171732011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17174
17175 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
17176 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
17177 distinct copy.
17178
acccc61c
EB
171792011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17180
17181 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
17182 DECL_ARTIFICIAL flag on enumeration types.
17183
583eb0c9
EB
171842011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17185
17186 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
17187 fat pointer types artificial unconditionally.
17188 <E_Array_Subtype>: Attach the base array type as a parallel type if it
17189 isn't artificial.
17190
e3edbd56
EB
171912011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17192
17193 * gcc-interface/gigi.h (get_dummy_type): Declare.
17194 (build_dummy_unc_pointer_types): Likewise.
17195 (finish_fat_pointer_type): Likewise.
17196 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
17197 fat pointer type has been built, complete it in place.
17198 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
17199 and thin pointers. Remove useless variable.
17200 (finish_fat_pointer_type): Make global and move to...
17201 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
17202 (get_dummy_type): New function.
17203 (build_dummy_unc_pointer_types): Likewise.
17204 (gnat_pushdecl): Propage the name to the anonymous variants only.
17205 (update_pointer_to): Only adjust the pointer types in the unconstrained
17206 array case.
17207
65444786
EB
172082011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17209
17210 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
17211 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
17212 if this is a Taft amendment type and the full declaration is available.
17213 * gcc-interface/trans.c (process_type): Likewise.
17214 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
17215 (process_freeze_entity): Likewise.
17216 * gcc-interface/utils.c (dummy_global): New static variable.
17217 (gnat_write_global_declarations): If there are types declared as used
17218 at the global level, insert them in the global hash table.
17219
1aeb40dd
EB
172202011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17221
17222 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
17223 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
17224 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
17225 copy.
17226 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
17227 flag of the type accordingly.
17228 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
17229
80ec8b4c
EB
172302011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17231
17232 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
17233 finalizing types when updating the pointers to the designated type.
17234 <all>: Finalize the deferred types even if we didn't defer processing
17235 of incomplete types in this invocation.
17236
2a9d769a 172372011-04-01 Olivier Hainque <hainque@adacore.com>
2c7f9cc0
AS
17238 Nicolas Setton <setton@adacore.com>
17239 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
17240
17241 * gcc-interface/misc.c (gnat_descriptive_type): New function.
17242 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
17243
2438d7a6
KT
172442011-03-28 Kai Tietz <ktietz@redhat.com>
17245
333d8aff 17246 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
80ec8b4c
EB
17247 Windows targets.
17248 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
17249 * system-mingw.ads (System): Change ZCX_By_Default default to True.
333d8aff 17250
80ec8b4c 17251 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
2438d7a6 17252
8ad150f6
TG
172532011-03-28 Tristan Gingold <gingold@adacore.com>
17254
17255 PR ada/44431
80ec8b4c
EB
17256 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
17257 Use ada output of gnatbind.
8ad150f6
TG
17258 (ada/b_gnatb.adb): Ditto.
17259 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
17260 (ada.mostlyclean, ada.stage1)
17261 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
17262 (ada.stagefeedback): Adjust.
80ec8b4c 17263 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
8ad150f6
TG
17264 Use ada output of gnatbind.
17265 (b_gnatm.adb): Ditto.
17266 (b_gnatl.o, b_gnatm.o): New rules.
17267
51c7954d
EB
172682011-03-26 Eric Botcazou <ebotcazou@adacore.com>
17269
17270 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
17271 for the padded type built to support a specified size or alignment.
17272
6ddf9843
EB
172732011-03-26 Eric Botcazou <ebotcazou@adacore.com>
17274
17275 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
17276 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
17277 unconditionally to the end of the unit when the designated type is
17278 limited_with'ed.
17279 <all>: Rename local variable. Attempt to un-defer types only and do it
17280 for limited_with'ed types as well.
17281 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
17282 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
17283 consistently and remove redundant call to finalize_from_with_types.
17284
5daed84a
EB
172852011-03-26 Eric Botcazou <ebotcazou@adacore.com>
17286
17287 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
17288 subprograms without a previous spec declared in the same unit.
17289 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
17290 subprograms at the end of the unit instead of at the beginning.
17291 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
17292 isn't public for the special handling of non-inline functions nested
17293 inside inline external functions.
17294
0edf1bb2
JL
172952011-03-25 Jeff Law <law@redhat.com>
17296
5daed84a 17297 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
0edf1bb2 17298
e3c4580e
EB
172992011-03-24 Eric Botcazou <ebotcazou@adacore.com>
17300
17301 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
17302 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
17303 to compute Set_Size_Depends_On_Discriminant.
17304 (Layout_Type): Call it on array types in back-end layout mode.
17305 * sem_util.adb (Requires_Transient_Scope): Return true for array
17306 types only if the size depends on the value of discriminants.
17307 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
17308 type if the RHS is a call to a function that returns an unconstrained
17309 type with default discriminant.
17310
abbc8c7b
EB
173112011-03-24 Eric Botcazou <ebotcazou@adacore.com>
17312
17313 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
17314 non-conversion to the nominal result type at the end.
17315
ddb5a105
EB
173162011-03-23 Eric Botcazou <ebotcazou@adacore.com>
17317
17318 * gcc-interface/trans.c (create_temporary): New function taken from...
17319 (create_init_temporary): ...here. Call it.
17320 (call_to_gnu): Create the temporary for the return value early, if any.
17321 Create it for a function with copy-in/copy-out parameters if there is
17322 no target; in other cases of copy-in/copy-out, use another temporary.
17323 Push the new binding level lazily. Add and rename local variables.
17324
0d853156
EB
173252011-03-23 Eric Botcazou <ebotcazou@adacore.com>
17326
17327 * gcc-interface/decl.c (validate_size): Improve comments and tweak
17328 error message.
17329 (set_rm_size): Likewise.
17330
4184ef1b
EB
173312011-03-23 Eric Botcazou <ebotcazou@adacore.com>
17332
17333 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
17334 for the padded type built in order to support a specified alignment.
17335 Fix incorrect formatting.
17336
bf7eefab
EB
173372011-03-21 Eric Botcazou <ebotcazou@adacore.com>
17338
17339 PR bootstrap/48216
17340 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
17341
ef0feeb2
EB
173422011-03-21 Eric Botcazou <ebotcazou@adacore.com>
17343
17344 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
17345 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
17346 to the end of the list. Adjust recursive call. Rename local variable.
17347 If REORDER is true, reorder components of the record type.
17348 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
17349 components_to_record and adjust the parameter list.
17350
646f9414
EB
173512011-03-21 Eric Botcazou <ebotcazou@adacore.com>
17352
17353 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
17354 disabled, use the variable for bounds of loop iteration scheme.
17355
62d784f7
KT
173562011-03-21 Kai Tietz <ktietz@redhat.com>
17357
17358 PR target/12171
0bad0e23 17359 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
62d784f7 17360
f230d759
EB
173612011-03-17 Eric Botcazou <ebotcazou@adacore.com>
17362
17363 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
17364 out whether the expression is read-only. Short-circuit placeholder
17365 case and rename a couple of local variables.
17366
bb1f7929
EB
173672011-03-17 Eric Botcazou <ebotcazou@adacore.com>
17368
17369 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
17370 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
17371 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
17372 (convert): Deal with conversions from a smaller form type specially.
17373
400a2d24
EB
173742011-02-14 Eric Botcazou <ebotcazou@adacore.com>
17375
17376 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
17377 its argument, except for the special -I- switch.
17378
c26bc3ad
GP
173792011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
17380
0bad0e23
EB
17381 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
17382 "Ada Issues".
c26bc3ad 17383
07b8e910
EB
173842011-02-08 Eric Botcazou <ebotcazou@adacore.com>
17385
17386 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
17387
31a5a547
EB
173882011-02-03 Eric Botcazou <ebotcazou@adacore.com>
17389
17390 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
17391 GNAT_FORMAL.
17392 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
17393 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
17394 instead of GNAT_FORMAL. Protect the expression against multiple uses.
17395 Do not generate the check directly, instead instantiate the template
17396 check present in the descriptor.
17397 (make_descriptor_field): Move around.
17398 (build_vms_descriptor32): Build a template check in the POINTER field.
17399 (build_vms_descriptor): Remove useless suffixes.
17400 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
17401
dcf25f59
EB
174022011-01-26 Eric Botcazou <ebotcazou@adacore.com>
17403
17404 PR bootstrap/47467
17405 * targext.c: Include target files if IN_RTS is defined.
17406
0418e131
RG
174072011-01-26 Richard Guenther <rguenther@suse.de>
17408
17409 PR bootstrap/47467
17410 * targext.c: Include config.h.
17411 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
17412 dependency.
17413
c6eecbd8 174142011-01-04 Pascal Obry <obry@adacore.com>
2c7f9cc0 17415 Eric Botcazou <ebotcazou@adacore.com>
c6eecbd8
PO
17416
17417 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
17418
2d3c7e4f
EB
174192011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17420
17421 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
17422 end-of-case on the end label and its associated gotos, if any.
17423
0394741f
EB
174242011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17425
17426 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
17427 expressions of the parameter cache within the statement group of
17428 the CICO mechanism.
17429
2a02d090 174302011-01-04 Olivier Hainque <hainque@adacore.com>
2c7f9cc0 17431 Eric Botcazou <ebotcazou@adacore.com>
2a02d090
OH
17432
17433 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
17434 (set_end_locus_from_node): New function.
17435 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
17436 make and the function end_locus.
17437 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
17438 for the elaboration subprogram.
17439 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
17440 set the end_locus of the expression as well.
17441
89f5e978
EB
174422011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17443
17444 PR ada/47131
17445 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
17446 variables that are referenced in exception handlers volatile.
17447
17448
ad41bd84 17449\f
797103eb 17450Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
17451
17452Copying and distribution of this file, with or without modification,
17453are permitted in any medium without royalty provided the copyright
17454notice and this notice are preserved.