sem_res.adb (Resolve_Allocator): Warning on allocation of tasks on a subpool and...
[gcc.git] / gcc / ada / ChangeLog
1 2011-12-20 Hristian Kirtchev <kirtchev@adacore.com>
2
3 * sem_res.adb (Resolve_Allocator): Warning on allocation
4 of tasks on a subpool and rewrite the allocator into a raise
5 Program_Error statement.
6 * s-stposu.ads, s-stposu.adb: Code reformatting.
7 (Create_Subpool): Remove formal parameter Storage_Size.
8 (Default_Subpool_For_Pool): Add the default implementation of this
9 routine.
10 (Set_Pool_Of_Subpool): Rename formal parameter Pool to To. Update
11 all the uses of the parameter.
12
13 2011-12-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14
15 * gcc-interface/Makefile.in (%86 linux%):
16 (LIBGNAT_TARGET_PAIRS_32): Split off from LIBGNAT_TARGET_PAIRS.
17 (LIBGNAT_TARGET_PAIRS_64): New.
18 (LIBGNAT_TARGET_PAIRS): Add either depending on multilib.
19
20 2011-12-18 Eric Botcazou <ebotcazou@adacore.com>
21
22 * gcc-interface/decl.c (gnat_to_gnu_param): Add comment about double
23 reference and DECL_POINTS_TO_READONLY_P.
24 * gcc-interface/trans.c (Identifier_to_gnu) <by_ref>: Always set the
25 TREE_READONLY flag on the first dereference of a double dereference.
26
27 2011-12-15 Arnaud Charlet <charlet@adacore.com>
28
29 * a-numaux-vms.ads, s-asthan-vms-ia64.adb, s-auxdec-vms-ia64.adb,
30 s-memory-vms_64.adb, s-memory-vms_64.ads, s-osinte-vms-ia64.adb,
31 s-osinte-vms-ia64.ads, s-tasdeb-vms.adb: New files.
32
33 2011-12-15 Vincent Pucci <pucci@adacore.com>
34
35 * aspects.adb, aspects.ads Aspect_Dimension and
36 Aspect_Dimension_System added
37 * exp_ch6.adb (Expand_Call): Expand_Put_Call_With_Dimension_String
38 case added
39 * gcc-interface/Make-lang.in: s-llflex, sem_dim added.
40 * impunit.adb :s-diflio and s-diinio defined as GNAT Defined
41 Additions to System.
42 * Makefile.rtl: s-diflio, s-diinio and s-llflex added
43 * par-prag.adb, sem_prag.adb: Pragma_Dimension removed
44 * rtsfind.ads: Expon_LLF added
45 * sem_aggr.adb (Resolve_Aggregate): handles aggregate for
46 Aspect_Dimension case
47 * sem_attr.adb (Resolve_Attribute): analyze dimension for
48 attribute
49 * sem_ch10.adb (Analyze_With_Clause): Avoid the warning messages
50 due to the use of a GNAT library for Dimension packages
51 * sem_ch13.adb (Analyze_Aspect_Specifications):
52 Aspect_Dimension and Aspect_Dimension_System cases added
53 (Check_Aspect_At_Freeze_Point): Aspect_Dimension and
54 Aspect_Dimension_System cases added
55 * sem_ch2.adb (Analyze_Identifier): analyze dimension for
56 identifier
57 * sem_ch3.adb (Analyze_Component_Declaration): analyze dimension
58 for component declaration (Analyze_Object_Declaration): analyze
59 dimension for object declaration (Analyze_Subtype_Declaration):
60 analyze dimension for subtype declaration
61 * sem_ch4.adb (Operator_Check): checks exponent is a rational
62 for dimensioned operand for a N_Op_Expon
63 * sem_ch5.adb (Analyze_Assignment): analyze dimension for
64 assignment (Analyze_Statements): removal of dimensions in all
65 statements
66 * sem_ch6.adb (Analyze_Return_Statement): analyze dimension for
67 return statement
68 * sem_ch8.adb (Analyze_Object_Renaming): analyze dimension for
69 object renaming
70 * sem_dim.adb, sem_dim.ads (Analyze_Aspect_Dimension):
71 analyze the expression for aspect dimension and store the
72 values in a Htable.
73 (Analyze_Aspect_Dimension_System): analyze
74 the expression for aspect dimension system and store the new
75 system in a Table.
76 (Analyze_Dimension): propagates dimension
77 (Expand_Put_Call_With_Dimension_String): add the dimension
78 string as a suffix of the numeric value in the output
79 (Has_Dimension): return True if the node has a dimension
80 (Remove_Dimension_In_Declaration): removal of dimension in the
81 expression of the declaration.
82 (Remove_Dimension_In_Statement): removal of dimension in statement
83 * sem_res.adb (Resolve): analyze dimension if the node
84 has already been analyzed.
85 (Resolve_Arithmetic_Op): analyze
86 dimension for arithmetic op.
87 (Resolve_Call): analyze dimension for function call.
88 (Resolve_Comparison_Op): analyze dimension for comparison op.
89 (Resolve_Equality_Op): analyze dimension for equality op.
90 (Resolve_Indexed_Component): analyze dimension for indexed component.
91 (Resolve_Op_Expon): analyze dimension for op expon.
92 (Resolve_Selected_Component): analyze dimension
93 for selected component.
94 (Resolve_Slice): analyze dimension for slice.
95 (Resolve_Unary_Op): analyze dimension for unary op
96 (Resolve_Type_Conversion): analyze dimension for type conversion
97 (Resolve_Unchecked_Type_Conversion): analyze dimension for
98 unchecked type conversion
99 * snames.ads-tmpl Name_Dimension, Name_Dimension_System,
100 Name_Dim_Float_IO, Name_Dim_Integer_IO,
101 Name_Generic_Elementary_Functions, Name_Sqrt added.
102 Pragma_Dimension removed
103 * s-diflio.adb, s-diflio.ads New GNAT library generic package
104 for dimensioned float type IO
105 * s-diinio.adb, s-diinio.ads New GNAT library generic package
106 for dimensioned integer type IO
107 * s-llflex.ads (Expon_LLF): exponentiation routine for long long
108 floats operand and exponent
109
110 2011-12-15 Robert Dewar <dewar@adacore.com>
111
112 * sem_aggr.adb: Minor comment addition.
113
114 2011-12-15 Bob Duff <duff@adacore.com>
115
116 * s-tasren.adb (Task_Count): Do not call Yield; E'Count is not a
117 task dispatching point.
118 * s-taprop-mingw.adb (Yield): Do not yield if Do_Yield is False.
119
120 2011-12-15 Robert Dewar <dewar@adacore.com>
121
122 * sigtramp-ppcvxw.c, sigtramp.h: Fix header.
123
124 2011-12-15 Javier Miranda <miranda@adacore.com>
125
126 * exp_attr.adb (Expand_N_Attribute_Reference): For 'alignment
127 applied to a class-wide type under VM targets generate code which
128 invokes the function Get_Alignment to retrieve the value of the
129 alignment from the TSD.
130 * rtsfind.ads (RE_Get_Alignment): New entity.
131
132 2011-12-15 Robert Dewar <dewar@adacore.com>
133
134 * g-comlin.adb: Fix header.
135
136 2011-12-15 Tristan Gingold <gingold@adacore.com>
137
138 * gnatls.adb: Fix typo.
139
140 2011-12-15 Ed Falis <falis@adacore.com>
141
142 * s-tpopsp-vxworks.adb: Update comment.
143
144 2011-12-15 Ed Schonberg <schonberg@adacore.com>
145
146 * sem_aggr.adb (Resolve_Array_Aggregate, Resolve_Aggr_Expr); If
147 the component type has predicates, generate corresponding check.
148 (Resolve_Record_Aggregate, Resolve_Aggr_Expr): Ditto.
149
150 2011-12-13 Cesar Strauss <cestrauss@gmail.com>
151 Eric Botcazou <ebotcazou@adacore.com>
152
153 PR ada/49084
154 * types.h (Byte): Change typedef to 'unsigned char'.
155 * atree.h (struct Flag_Word): Use Byte for 'convention' field.
156
157 2011-12-12 Robert Dewar <dewar@adacore.com>
158
159 * s-taprop-mingw.adb: Minor reformatting.
160
161 2011-12-12 Nicolas Roche <roche@adacore.com>
162
163 * gcc-interface/Make-lang.in: Update dependencies.
164 Add gnattools4 target when building tools in canadian mode
165
166 2011-12-12 Javier Miranda <miranda@adacore.com>
167
168 * exp_disp.adb (Make_VM_TSD): Complete previous patch.
169
170 2011-12-12 Bob Duff <duff@adacore.com>
171
172 * s-tpobop.adb: Use named notation.
173 * g-bytswa.ads, s-taprop.ads: Minor comment fix.
174
175 2011-12-12 Arnaud Charlet <charlet@adacore.com>
176
177 * make.adb: Minor comment update.
178
179 2011-12-12 Robert Dewar <dewar@adacore.com>
180
181 * freeze.adb, s-taprop-mingw.adb, exp_disp.adb, sem_ch13.adb: Minor
182 reformatting.
183
184 2011-12-12 Robert Dewar <dewar@adacore.com>
185
186 * sem_ch6.adb, gnatls.adb: Minor reformatting.
187
188 2011-12-12 Ed Schonberg <schonberg@adacore.com>
189
190 * freeze.adb (Freeze_Entity): If a type declared in a generic
191 context has predicates, generate a freeze node for it.
192 * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): If expression
193 has not been analyzed yet, entity has not been frozen, so analyze
194 it now.
195
196 2011-12-12 Javier Miranda <miranda@adacore.com>
197
198 * exp_disp.adb (Make_VM_TSD): Generate code to store the value of
199 'alignment in the TSD.
200
201 2011-12-12 Bob Duff <duff@adacore.com>
202
203 * s-taprop-mingw.adb (Yield): Do not delay 1 millisecond in Annex D
204 mode.
205
206 2011-12-12 Hristian Kirtchev <kirtchev@adacore.com>
207
208 * exp_ch4.adb (Expand_N_Allocator): Update the master of an
209 anonymous access-to-controlled type to utilize the heterogeneous
210 master associated with the current unit.
211
212 2011-12-12 Ed Schonberg <schonberg@adacore.com>
213
214 * sem_ch6.adb (Analyze_Expression_Function): If the function
215 is not a completion, pre-analyze the expression now to prevent
216 spurious visibility on later entities. The body is inserted at
217 the end of the current declaration list or package to prevent
218 early freezing, but the visibility is established at the point
219 of definition.
220
221 2011-12-12 Bob Duff <duff@adacore.com>
222
223 * sem.adb, sem.ads: Add debugging routines.
224
225 2011-12-12 Tristan Gingold <gingold@adacore.com>
226
227 * gnatls.adb: (gnatls): Also add the objects dir in search list.
228
229 2011-12-12 Robert Dewar <dewar@adacore.com>
230
231 * exp_atag.adb, exp_atag.ads, exp_util.adb, exp_attr.adb,
232 sem_ch13.adb: Minor reformatting.
233
234 2011-12-12 Gary Dismukes <dismukes@adacore.com>
235
236 * sem_ch7.adb (Uninstall_Declarations): Don't
237 apply check for incomplete types used as a result type for an
238 access-to-function type when compiling for Ada 2012 or later.
239 * sem_ch6.adb (Analyze_Subprogram_Declaration):
240 Specialize error message for interface subprograms that are
241 not declared abstract nor null (functions can't be declared as
242 null). Also, remove "(Ada 2005)" from message.
243
244 2011-12-12 Robert Dewar <dewar@adacore.com>
245
246 * sem_prag.adb (GNAT_Pragma): Check comes from source.
247
248 2011-12-12 Robert Dewar <dewar@adacore.com>
249
250 * gnatls.adb: Minor reformatting.
251
252 2011-12-12 Javier Miranda <miranda@adacore.com>
253
254 * a-tags.ads (Alignment): New TSD field.
255 (Max_Predef_Prims): Value lowered to 15 (or 9 in case of
256 configurable runtime) Update documentation of predefined
257 primitives since Alignment has been removed.
258 * exp_disp.ads Update documentation of slots of dispatching
259 primitives.
260 * exp_disp.adb (Default_Prim_Op_Position): Update slot
261 values since alignment is no longer a predefined primitive.
262 (Is_Predefined_Dispatch_Operation): Remove _alignment.
263 (Is_Predefined_Internal_Operation): Remove _alignment.
264 (Make_DT): Update static test on the value stored in a-tags.ads
265 for Max_Predef_Prims; store the value of 'alignment in the TSD.
266 * exp_atag.ads, exp_atag.adb (Build_Get_Alignment): New subprogram
267 that retrieves the alignment from the TSD
268 * exp_util.adb (Build_Allocated_Deallocate_Proc): For deallocation
269 of class-wide types obtain the value of alignment from the TSD.
270 * exp_attr.adb (Expand_N_Attribute_Reference): For 'alignment
271 applied to a class-wide type invoke Build_Get_Alignment to
272 generate code which retrieves the value of the alignment from
273 the TSD.
274 * rtsfind.ads (RE_Alignment): New Ada.Tags entity
275 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): For tagged
276 types if the value of the alignment is bigger than the Maximum
277 alignment then set the value of the alignment to the Maximum
278 alignment and report a warning.
279 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate
280 spec of _alignment.
281 (Predefined_Primitive_Bodies): Do not generate body of _alignment.
282
283 2011-12-12 Gary Dismukes <dismukes@adacore.com>
284
285 * freeze.adb (Freeze_Expression): Allow freezing of static
286 scalar subtypes that are prefixes of an attribute, even if not
287 yet marked static. Such attributes will get marked as static
288 later in Eval_Attribute (as called from Resolve_Attribute).
289 * sem_attr.adb (Eval_Attribute): Remove wrong code that does an
290 early return for attribute prefixes that are unfrozen source-level
291 types. This code was incorrectly bypassing folding of unfrozen
292 static subtype attributes in default expressions (the executable
293 example in the now-deleted comment was in fact illegal).
294
295 2011-12-12 Robert Dewar <dewar@adacore.com>
296
297 * a-coinve.adb, sem_res.adb, prj-nmsc.adb, a-cobove.adb, a-convec.adb,
298 gnatls.adb, sem_ch13.adb, prj-env.adb, prj-env.ads: Minor reformatting.
299
300 2011-12-12 Tristan Gingold <gingold@adacore.com>
301
302 * gsocket.h: Adjust previous patch.
303
304 2011-12-12 Thomas Quinot <quinot@adacore.com>
305
306 * exp_disp.adb: Minor reformatting.
307
308 2011-12-12 Tristan Gingold <gingold@adacore.com>
309
310 * gnatls.adb (Search_RTS): New procedure.
311 (Scan_Ls_Arg): Move code that search the RTS.
312 (Gnatls): search the RTS later.
313 * prj-env.ads, prj-env.adb (Get_Runtime_Path): New function.
314
315 2011-12-12 Ed Falis <falis@adacore.com>
316
317 * sysdep.c: Fix treatment of VxWorks task options so that run-times
318 built with __SPE__ get option VX_SPE_TASK while others get VX_FP_TASK.
319
320 2011-12-12 Bob Duff <duff@adacore.com>
321
322 * sem_type.adb, sem_type.ads, sem_ch4.adb, treepr.adb, treepr.ads:
323 Minor cleanup and fiddling with debug printouts.
324
325 2011-12-12 Vincent Celier <celier@adacore.com>
326
327 * prj-nmsc.adb (Get_Directories): For a non extending project,
328 always get a declared object and/or exec directory if it already
329 exists, even when there are no sources, but do not create them.
330
331 2011-12-12 Bob Duff <duff@adacore.com>
332
333 * sem_res.adb (Resolve): Deal with the case where an abstract
334 operator is called with operands of type universal_integer.
335
336 2011-12-12 Thomas Quinot <quinot@adacore.com>
337
338 * par_sco.adb: Minor fix to dominance marker referencing WHILE
339 decision.
340
341 2011-12-12 Tristan Gingold <gingold@adacore.com>
342
343 * mlib-tgt-specific-xi.adb: (Get_Target_Prefix): Simplify code.
344
345 2011-12-12 Thomas Quinot <quinot@adacore.com>
346
347 * par_sco.adb: Adjust dominant marker for branches of CASE
348 statements.
349
350 2011-12-12 Thomas Quinot <quinot@adacore.com>
351
352 * gsocket.h, s-oscons-tmplt.c: Ensure we do not include any system
353 header file prior to redefining FD_SETSIZE.
354
355 2011-12-12 Ed Schonberg <schonberg@adacore.com>
356
357 * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): In
358 a generic context the aspect expressions may not have been
359 preanalyzed if there was no previous freeze point, so the
360 expressions must be preanalyzed now, and there is no conformance
361 to check for visibility changes.
362
363 2011-12-12 Matthew Heaney <heaney@adacore.com>
364
365 * a-convec.adb, a-coinve.adb, a-cobove.adb (Iterator): Use
366 subtype Index_Type'Base for Index component (Finalize): Remove
367 unnecessary access check (First, Last): Cursor return value
368 depends on iterator index value (Iterate): Use start position as
369 iterator index value (Next, Previous): Forward to corresponding
370 cursor-based operation.
371 * a-cborma.adb (Iterate): Properly initialize iterator object (with 0
372 as node index).
373
374 2011-12-12 Robert Dewar <dewar@adacore.com>
375
376 * par_sco.adb, scos.ads, put_scos.adb, get_scos.adb: Minor reformatting.
377
378 2011-12-12 Steve Baird <baird@adacore.com>
379
380 * sem_ch3.adb (Check_Completion): Improve a comment.
381
382 2011-12-12 Tristan Gingold <gingold@adacore.com>
383
384 * cstand.adb: Minor comment fix.
385
386 2011-12-11 Eric Botcazou <ebotcazou@adacore.com>
387
388 * gcc-interface/utils2.c (gnat_build_constructor): Test the TREE_STATIC
389 flag of elements to compute that of the constructor.
390
391 2011-12-11 Eric Botcazou <ebotcazou@adacore.com>
392
393 * gcc-interface/decl.c (gnat_to_gnu_param): Set the restrict qualifier
394 on references built for parameters which aren't specifically by-ref.
395
396 2011-12-11 Eric Botcazou <ebotcazou@adacore.com>
397
398 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: If there is an
399 alignment set on a renaming, assert that the renamed object is aligned
400 enough as to make it possible to honor it.
401
402 2011-12-11 Eric Botcazou <ebotcazou@adacore.com>
403
404 * gcc-interface/trans.c (gigi): Initialize the linemap earlier.
405
406 2011-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
407
408 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS [windows targets]):
409 Correctly detect cygwin, which no longer has the '32' suffix, and use
410 appropriate implementations of the sockets and memory packages.
411 * sysdep.c (WIN_SETMODE): New define to choose the correct spelling of
412 setmode/_setmode for MinGW and Cygwin, respectively.
413 (__gnat_set_binary_mode [windows targets]): Use the above, and enable
414 the windows version for Cygwin as well as MinGW.
415 (__gnat_set_text_mode [windows targets]): Likewise.
416 (__gnat_ttyname [windows targets]): Provide a Cygwin implementation
417 in addition to the MinGW version.
418 (__gnat_is_windows_xp): Make available to Cygwin as well as MinGW.
419 (__gnat_get_stack_bounds): Likewise.
420
421 2011-12-05 Bob Duff <duff@adacore.com>
422
423 * sem_ch4.adb: Minor comment fix.
424
425 2011-12-05 Robert Dewar <dewar@adacore.com>
426
427 * gnat_ugn.texi: Add documentation for -gnatw.e.
428
429 2011-12-05 Bob Duff <duff@adacore.com>
430
431 * treepr.adb (pn): Print something useful for
432 Elmt_Ids. Add Write_Eol to 'when others' case, so the output
433 will be seen immediately in gdb.
434
435 2011-12-05 Ed Schonberg <schonberg@adacore.com>
436
437 * lib-writ.adb (Output_Main_Program_Line): A generic subprogram
438 is never a main program.
439
440 2011-12-05 Thomas Quinot <quinot@adacore.com>
441
442 * par_sco.adb: Various minor adjustments to dominance markers
443 generation.
444
445 2011-12-05 Ed Schonberg <schonberg@adacore.com>
446
447 * sem_ch6.adb (Analyze_Expression_Function): If the function is
448 a completion, generate a body reference for its defining entity,
449 before rewriting the node as a body.
450 * sem_util.adb (Defining_Entity): Add entry for expression
451 function.
452
453 2011-12-05 Bob Duff <duff@adacore.com>
454
455 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add Ultimate_Alias
456 to the Comes_From_Source check, to deal properly with the case
457 of indirect inheritance of "=".
458
459 2011-12-05 Thomas Quinot <quinot@adacore.com>
460
461 PR ada/51307
462 * s-oscons-tmplt.c: On HP-UX, CLOCK_REALTIME is an enum literal,
463 not a macro.
464
465 2011-12-05 Thomas Quinot <quinot@adacore.com>
466
467 * par_sco.adb, scos.ads, put_scos.adb, get_scos.adb: Generate dominance
468 information in SCOs.
469
470 2011-12-02 Eric Botcazou <ebotcazou@adacore.com>
471 Thomas Quinot <quinot@adacore.com>
472
473 * gcc-interface/Makefile.in (INCLUDES): Remove $(srcdir)/config.
474 (INCLUDES_FOR_SUBDIR): Add $(fsrcdir) except for VxWorks.
475 Add thread.c to LIBGNAT_SRCS so that a symlink is created in ada/rts,
476 which allows the file to be installed in adainclude.
477 * gcc-interface/Make-lang.in: Update dependencies.
478
479 2011-12-02 Javier Miranda <miranda@adacore.com>
480
481 * sem_ch3.adb (Constrain_Access): Undo previous
482 patch for this routine. Required since the RM rule 3.7.1(7/3)
483 applies to all access types.
484
485 2011-12-02 Bob Duff <duff@adacore.com>
486
487 * sem_ch6.adb: Minor comment fix.
488
489 2011-12-02 Joel Sherrill <joel.sherrill@oarcorp.com>
490
491 * s-tpopsp-rtems.adb: Use ATCB_Key rather than RTEMS_Ada_Self variable
492 for consistency with other ports.
493 * s-osinte-rtems.adb: Add body for dummy implementation of
494 pthread_rwlockattr_setkind_np().
495 * s-osinte-rtems.ads: Add missing clock and rwlock bindings.
496 * terminals.c: Add __rtems__ conditionals to account for differences
497 in termios implementation.
498
499 2011-12-02 Robert Dewar <dewar@adacore.com>
500
501 * sem_ch3.adb, sem_attr.adb, a-comutr.adb, a-cbmutr.adb,
502 a-cbmutr.ads: Minor reformatting.
503
504 2011-12-02 Hristian Kirtchev <kirtchev@adacore.com>
505
506 * exp_dbug.adb: Comment reformatting.
507 (Get_External_Name): Use Reset_Buffers to reset the contents of
508 Name_Buffer and Homonym_Numbers.
509 (Qualify_All_Entity_Names): Reset the contents of Name_Buffer and
510 Homonym_Numbers before creating a new qualified name for a particular
511 entity.
512 (Reset_Buffers): New routine.
513
514 2011-12-02 Matthew Heaney <heaney@adacore.com>
515
516 * a-cbmutr.ads (No_Node): Moved declaration from body to spec
517 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Iterator): Derives
518 from Root_Iterator.
519 (Child_Iterator): Derives from Root_Iterator.
520 (Finalize): Implemented as an override operation for Root_Iterator.
521 (First): Return value depends on Subtree component.
522 (Last): Component was renamed from Parent to Subtree.
523 (Next): Checks parameter value, and uses simplified loop.
524 (Iterate): Forwards to Iterate_Subtree.
525 (Iterate_Children): Component was renamed from Parent to Subtree.
526 (Iterate_Subtree): Checks parameter value
527
528 2011-12-02 Robert Dewar <dewar@adacore.com>
529
530 * usage.adb: Add lines for -gnatw.n and -gnatw.N
531 (atomic sync info msgs).
532
533 2011-12-02 Steve Baird <baird@adacore.com>
534
535 * sem_ch3.adb (Check_Completion): An Ada 2012
536 generic formal type doesn't require a completion.
537
538 2011-12-02 Eric Botcazou <ebotcazou@adacore.com>
539
540 * sem_util.adb (Set_Debug_Info_Needed): Also set the flag on the
541 packed array type if it is to be set on the array type used to
542 represent it.
543
544 2011-12-02 Robert Dewar <dewar@adacore.com>
545
546 * gnat_rm.texi: Eliminate confusing use of type name.
547
548 2011-12-02 Thomas Quinot <quinot@adacore.com>
549
550 * sem_ch10.adb (Analyze_Compilation_Unit): For a library subprogram
551 body that acts as spec, do not create a shallow copy of the context
552 clause for the synthetized spec (instead, use the same list as
553 in the body).
554
555 2011-12-02 Bob Duff <duff@adacore.com>
556
557 * gnat_ugn.texi: Clarify usage of -p binder switch.
558
559 2011-12-02 Javier Miranda <miranda@adacore.com>
560
561 * sem_util.ads, sem_util.adb, sem_aux.ads, sem_aux.adb
562 (Effectively_Has_Constrained_Partial_View): Moved to sem_aux
563 (In_Generic_Body): Moved to sem_aux.
564 (Unit_Declaration_Node): Moved to sem_aux.
565 * einfo.ads (Effectively_Has_Constrained_Partial_View): Complete
566 documentation.
567 * exp_attr.adb, live.adb, sem_ch10.adb, checks.adb, sem.adb,
568 rtsfind.adb, sem_attr.adb, sem_elab.adb, exp_ch4.adb, sem_ch4.adb,
569 exp_ch13.adb: Add with-clause on Sem_Aux.
570
571 2011-12-02 Yannick Moy <moy@adacore.com>
572
573 * sem_util.adb (Unique_Name): Reach through Unique_Entity to
574 get the name of the entity.
575 (Unique_Entity): Correct case for subprogram stubs.
576
577 2011-12-02 Yannick Moy <moy@adacore.com>
578
579 * sem_ch3.adb (Check_Initialization): Do not emit warning on
580 initialization of limited type object in Alfa mode.
581
582 2011-12-02 Robert Dewar <dewar@adacore.com>
583
584 * sinfo.ads: Minor reformatting.
585 * gnat_ugn.texi: Fix confusion in use of term "type name".
586
587 2011-12-02 Robert Dewar <dewar@adacore.com>
588
589 * sem_ch6.adb: Minor change in error message.
590
591 2011-12-02 Robert Dewar <dewar@adacore.com>
592
593 * sem_ch9.adb, prj-part.adb, vms_data.ads, sem_ch8.adb: Minor
594 reformatting.
595
596 2011-12-02 Javier Miranda <miranda@adacore.com>
597
598 * sem_ch3.adb (Constrain_Access): Enable on Ada 2005 mode the
599 static check of the rule of general access types whose designated
600 type has discriminants.
601 * sem_util.ads, sem_util.adb
602 (Effectively_Has_Constrained_Partial_View): New subprogram.
603 (In_Generic_Body): New subprogram.
604 * einfo.ads (Has_Constrained_Partial_View): Adding documentation.
605 * sem_prag.adb (Inside_Generic_Body): Removed. Replaced by new
606 subprogram In_Generic_Body.
607 * exp_attr.adb, checks.adb, sem_attr.adb, exp_ch4.adb,
608 sem_ch4.adb: In addition, this patch replaces the occurrences of
609 Has_Constrained_Partial_View by
610 Effectively_Has_Constrained_Partial_View.
611
612 2011-12-02 Matthew Heaney <heaney@adacore.com>
613
614 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Iterator): Rename
615 Position component.
616 (Finalize): Remove unnecessary access check.
617 (First): Forward to First_Child.
618 (Last): Forward to Last_Child.
619 (Iterate): Check preconditions for parent node parameter.
620 (Next): Forward to Next_Sibling.
621 (Previous): Forward to Previous_Sibling.
622
623 2011-12-02 Robert Dewar <dewar@adacore.com>
624
625 * a-coinve.adb, a-coorma.adb, freeze.adb, a-coorse.adb, a-comutr.adb,
626 a-coormu.adb, a-convec.adb: Minor reformatting.
627
628 2011-12-02 Matthew Heaney <heaney@adacore.com>
629
630 * a-coormu.ads, a-ciormu.ads: Declare iterator factory function.
631 * a-ciormu.adb, a-ciormu.adb (Iterator): Declare concrete
632 Iterator type.
633 (Finalize): Decrement busy counter.
634 (First, Last): Cursor return value depends on iterator node value.
635 (Iterate): Use start position as iterator node value.
636 (Next, Previous): Forward to corresponding cursor-based operation.
637
638 2011-12-02 Robert Dewar <dewar@adacore.com>
639
640 * a-cborma.adb, a-cbhama.adb, a-cbdlli.adb, a-cbmutr.adb,
641 a-cbhase.adb, a-cdlili.adb, a-cihama.adb, a-ciorse.adb, a-cidlli.adb,
642 a-cimutr.adb, a-cihase.adb, a-cohama.adb, a-cborse.adb,
643 a-ciorma.adb, a-cobove.adb: Minor reformatting.
644
645 2011-12-01 Jakub Jelinek <jakub@redhat.com>
646
647 PR bootstrap/51201
648 * gcc-interface/Make-lang.in: Initialize RTS_DIR with = instead of :=.
649
650 2011-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
651
652 * s-taprop-tru64.adb (Create_Task): Use Unrestricted_Access.
653
654 2011-11-23 Thomas Quinot <quinot@adacore.com>
655
656 * thread.c, s-oscons-tmplt.c: Generate __gnat_pthread_condattr_setup
657 only on platforms where this is required, as determined by
658 s-oscons.h.
659
660 2011-11-23 Ed Schonberg <schonberg@adacore.com>
661
662 * sem_ch9.adb: No check on entry index if error on index.
663
664 2011-11-23 Gary Dismukes <dismukes@adacore.com>
665
666 * sem_ch6.adb (Analyze_Return_Statement): Improve error messages for
667 return statements nested inside an extended_return_statement.
668 * gcc-interface/Make-lang.in: Update dependencies.
669 * gcc-interface/Makefile.in (MISCLIB): Add -lutil for BSD targets.
670
671 2011-11-23 Ed Schonberg <schonberg@adacore.com>
672
673 * freeze.adb (Freeze_All_Ent): An incomplete type is not
674 frozen by a subprogram body that does not come from source.
675
676 2011-11-23 Pascal Obry <obry@adacore.com>
677
678 * s-oscons-tmplt.c: Add PTY_Library constant. It contains
679 the library for pseudo terminal support.
680 * g-exptty.ads: Add pseudo-terminal library into a Linker_Options
681 pragma.
682
683 2011-11-23 Ed Schonberg <schonberg@adacore.com>
684
685 * sem_ch9.adb: No check on entry family index if generic.
686
687 2011-11-23 Thomas Quinot <quinot@adacore.com>
688
689 * sem_ch9.adb, s-taprop.ads, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
690 s-taprop-posix.adb, s-taprop-rtx.adb, s-taprop-solaris.adb,
691 s-taprop-tru64.adb, s-taprop-vxworks.adb: Move dependency on
692 System.OS_Constants from shared spec of
693 System.Tasking.Primitive_Operations to the specific body variants
694 that really require this dependency.
695
696 2011-11-23 Ed Schonberg <schonberg@adacore.com>
697
698 * sem_ch8.adb (Analyze_Subprogram_Renaming_Declaration):
699 If the declaration has aspects, analyze them so they can be
700 properly rejected.
701
702 2011-11-23 Hristian Kirtchev <kirtchev@adacore.com>
703
704 * a-comutr.adb, a-coorma.adb, a-coorse.adb, a-convec.adb, a-cihase.adb,
705 a-cimutr.adb, a-coinve.adb, a-ciorma.adb, a-ciorse.adb, a-cobove.adb,
706 a-cohama.adb, a-cihama.adb, a-cidlli.adb, a-cdlili.adb, a-cbhama.adb,
707 a-cbhase.adb, a-cbmutr.adb, a-cborma.adb, a-cborse.adb, a-cbdlli.adb:
708 Add with and use clause for Ada.Finalization. Type
709 Iterator and Child_Iterator are now derived from Limited_Controlled.
710 (Finalize): New routine.
711 (Iterate): Add a renaming of counter Busy and
712 increment it. Update the return aggregate.
713 (Iterate_Children): Add a renaming of
714 counter Busy and increment it. Update the return aggregate.
715 (Iterate_Subtree): Add a renaming of counter Busy and increment
716 it. Update the return aggregate.
717 * a-cdlili.ads, a-cidlli.ads: Type List_Access is now a general access
718 type.
719 * a-cihama.ads: Type Map_Access is now a general access type.
720 * a-comutr.ads, a-cimutr.ads: Use type Natural for the two locks
721 associated with the tree.
722 * a-cohama.ads: Type Map_Access is now a general access type.
723 * a-coinve.ads, a-convec.ads: Type Vector_Access is now a general
724 access type.
725 * exp_ch5.adb (Expand_Iterator_Loop): Do not create a block
726 to wrap the loop as this is done at an earlier step, during
727 analysis. The declarations of the iterator and the cursor use
728 the usual Insert_Action mechanism when added into the tree.
729 * sem_ch5.adb (Analyze_Loop_Statement): Remove local constant
730 Loop_Statement and replace all respective uses by N. Add local
731 constant Loc. Preanalyze the loop iterator to discover whether
732 it is a container iterator and if it is, wrap the loop in a
733 block. This ensures that any controlled temporaries produced
734 by the iteration scheme share the same lifetime of the loop.
735 (Is_Container_Iterator): New routine.
736 (Is_Wrapped_In_Block): New routine.
737 (Pre_Analyze_Range): Move spec and body to the library level.
738
739 2011-11-23 Sergey Rybin <rybin@adacore.com frybin>
740
741 * gnat_ugn.texi, vms_data.ads: Add documentation for new gnatpp option
742 that controls casing of type and subtype names.
743
744 2011-11-23 Yannick Moy <moy@adacore.com>
745
746 * sem_ch3.adb: Minor addition of comments.
747
748 2011-11-23 Thomas Quinot <quinot@adacore.com>
749
750 * prj-part.adb (Extension_Withs): New global variable,
751 contains the head of the list of WITH clauses from the EXTENDS
752 ALL projects for which virtual packages are being created.
753 (Look_For_Virtual_Projects_For): When recursing through
754 an EXTENDS ALL, add the WITH clauses of the extending
755 project to Extension_Withs. When adding a project to the
756 Virtual_Hash, record the associated Extension_Withs list.
757 (Create_Virtual_Extending_Project): Add a copy of the appropriate
758 Extension_Withs to the virtual project.
759
760 2011-11-23 Thomas Quinot <quinot@adacore.com>
761
762 * mlib-tgt-specific-vxworks.adb: Minor reformatting.
763
764 2011-11-23 Thomas Quinot <quinot@adacore.com>
765
766 * Make-generated.in (Sdefault.Target_Name): Set to
767 $(target_noncanonical) instead of $(target) for consistency.
768
769 2011-11-23 Matthew Heaney <heaney@adacore.com>
770
771 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb (Iterator): Declared
772 Iterator type as limited (First, Last): Cursor return value
773 depends on iterator node value (Iterate): Use start position as
774 iterator node value (Next, Previous): Forward to corresponding
775 cursor-based operation.
776
777 2011-11-23 Matthew Heaney <heaney@adacore.com>
778
779 * a-coorse.ads, a-ciorse.ads, a-cborse.ads (Set_Iterator_Interfaces):
780 Renamed from Ordered_Set_Iterator_Interfaces.
781 * a-coorse.adb, a-ciorse.adb, a-cborse.adb (Iterator): Declared
782 Iterator type as limited (First, Last): Cursor return value
783 depends on iterator node value (Iterate): Use start position as
784 iterator node value (Next, Previous): Forward to corresponding
785 cursor-based operation.
786 * a-cohase.ads, a-cohase.adb: Implemented forward iterator.
787 * a-cihase.adb, a-cbhase.adb (Iterator): Removed unnecessary
788 node component (First, Next): Forward call to corresponding
789 cursor-based operation (Iterate): Representation of iterator no
790 longer has node component
791
792 2011-11-23 Hristian Kirtchev <kirtchev@adacore.com>
793
794 * exp_intr.adb (Expand_Unc_Deallocation): Ensure that the
795 dereference has a proper type before the side effect removal
796 mechanism kicks in.
797 * sem_ch3.adb (Analyze_Subtype_Declaration): Handle a rare case
798 where the base type of the subtype is a private itype created
799 to act as the partial view of a constrained record type. This
800 scenario manifests with equivalent class-wide types for records
801 with unknown discriminants.
802
803 2011-11-23 Jerome Guitton <guitton@adacore.com>
804
805 * s-osprim-vxworks.adb (Clock): Use Clock_RT_Ada.
806
807 2011-11-23 Thomas Quinot <quinot@adacore.com>
808
809 * s-oscons-tmplt.c: Fix unbalanced preprocessor directives Minor
810 reformatting/reorganization.
811
812 2011-11-23 Thomas Quinot <quinot@adacore.com>
813
814 * g-htable.ads: Remove old comments.
815
816 2011-11-23 Thomas Quinot <quinot@adacore.com>
817
818 * exp_imgv.adb: Minor reformatting.
819
820 2011-11-23 Robert Dewar <dewar@adacore.com>
821
822 * sem_ch9.adb (Analyze_Entry_Declaration): Check for entry
823 family bounds out of range.
824
825 2011-11-23 Matthew Heaney <heaney@adacore.com>
826
827 * a-cohama.adb, a-cihama.adb, a-cbhama.adb (Iterator): Declare
828 type as limited, and remove node component.
829 (First, Next): Forward call to corresponding cursor-based operation.
830 (Iterate): Representation of iterator no longer has node component.
831
832 2011-11-23 Yannick Moy <moy@adacore.com>
833
834 * exp_util.adb: Revert previous change to remove side-effects in Alfa
835 mode, which is not the correct thing to do for renamings.
836
837 2011-11-23 Thomas Quinot <quinot@adacore.com>
838
839 * s-osinte-hpux.ads, s-taprop-vxworks.adb, s-taprop-tru64.adb,
840 s-osinte-vxworks.ads, s-osinte-aix.ads, s-osinte-lynxos.ads,
841 s-osinte-solaris-posix.ads, s-taprop-solaris.adb, a-exetim-posix.adb,
842 s-osinte-irix.ads, s-osinte-solaris.ads, s-oscons-tmplt.c,
843 s-taprop-irix.adb, s-osinte-hpux-dce.ads, Makefile.rtl,
844 s-osinte-tru64.ads, s-osinte-darwin.ads, s-taprop.ads,
845 s-osinte-freebsd.ads, s-osinte-lynxos-3.ads, s-taprop-hpux-dce.adb,
846 s-taprop-posix.adb: Remove hard-coded clock ids;
847 instead, generate them in System.OS_Constants.
848 (System.OS_Constants.CLOCK_RT_Ada): New constant denoting the
849 id of the clock providing Ada.Real_Time.Monotonic_Clock.
850 * thread.c: New file.
851 (__gnat_pthread_condattr_setup): New function. For platforms where
852 CLOCK_RT_Ada is not CLOCK_REALTIME, set appropriate condition
853 variable attribute.
854
855 2011-11-23 Yannick Moy <moy@adacore.com>
856
857 * sem_ch3.adb: Restore the use of Expander_Active instead of
858 Full_Expander_Active, so that the evaluation is forced in Alfa
859 mode too. Otherwise, we end up with an unexpected insertion in a
860 place where it is not supposed to happen, on default parameters
861 of a call.
862
863 2011-11-23 Thomas Quinot <quinot@adacore.com>
864
865 * prj-pp.adb, prj-pp.ads: Minor new addition: wrapper procedure "wpr"
866 for Pretty_Print, for use from within gdb.
867
868 2011-11-23 Ed Schonberg <schonberg@adacore.com>
869
870 * exp_ch5.adb (Expand_Iterator_Loop): Wrap the expanded loop
871 and the cursor declarations in a block, so that the loop variable
872 is local to the construct.
873
874 2011-11-23 Matthew Heaney <heaney@adacore.com>
875
876 * a-coorma.ads, a-ciorma.ads, a-cborma.ads (Iterate): Returns
877 type Reversible_Iterator'Class.
878 * a-coorma.adb, a-ciorma.adb, a-cborma.adb (Iterator):
879 Declare type as limited.
880 (First, Last): Return value depends on iterator's start node value.
881 (Next, Previous): Call corresponding Cursor-based operation.
882 (Iterate): Indicate whether complete or partial iteration
883
884 2011-11-23 Robert Dewar <dewar@adacore.com>
885
886 * errout.adb: Minor reformattin (Finalize): Take templates into
887 account for warning suppression.
888 * errout.ads (Set_Specific_Warning_Off): Add Used parameter.
889 * erroutc.adb: Minor reformatting (Finalize): Take generic
890 templates into account for warning suppress.
891 * erroutc.ads (Set_Specific_Warning_Off): Add Used parameter.
892 * sem_prag.adb: Minor reformatting (Analyze_Pragma,
893 case Warnings): Provide Used parameter in call to
894 Set_Specific_Warnings_Off (to deal with generic template case).
895
896 2011-11-23 Pascal Obry <obry@adacore.com>
897
898 * sem_prag.adb (Process_Convention): Better error message for
899 stdcall convention on dispatching calls.
900
901 2011-11-23 Gary Dismukes <dismukes@adacore.com>
902
903 * sem_ch4.adb, sem_ch13.adb: Minor reformatting.
904
905 2011-11-23 Javier Miranda <miranda@adacore.com>
906
907 * exp_ch6.adb (Expand_Simple_Function_Return): Add missing
908 implicit type conversion when the returned object is allocated
909 in the secondary stack and the type of the returned object is
910 an interface. Done to force generation of displacement of the
911 "this" pointer.
912
913 2011-11-23 Pascal Obry <obry@adacore.com>
914
915 * impunit.adb: Add g-exptty and g-tty units.
916
917 2011-11-23 Robert Dewar <dewar@adacore.com>
918
919 * exp_imgv.adb: Minor code reorganization (use Make_Temporary).
920
921 2011-11-23 Robert Dewar <dewar@adacore.com>
922
923 * exp_util.adb, par-ch6.adb, sem_res.adb, par-util.adb: Minor
924 reformatting.
925
926 2011-11-23 Yannick Moy <moy@adacore.com>
927
928 * sem_ch13.adb (Analyze_Aspect_Specifications): Place error on
929 line of precondition/ postcondition/invariant.
930
931 2011-11-23 Pascal Obry <obry@adacore.com>
932
933 * g-exptty.ads, g-exptty.adb, g-tty.ads, g-tty.adb,
934 terminals.c: New files.
935 Makefile.rtl: Add these new files.
936 * gnat_rm.texi: Add documentation for GNAT.Expect.TTY.
937 * gcc-interface/Makefile.in: Add g-exptty, g-tty, terminals.o
938 * gcc-interface/Make-lang.in: Update dependencies.
939
940 2011-11-21 Robert Dewar <dewar@adacore.com>
941
942 * exp_imgv.adb (Expand_Width_Attribute): Handle case of Discard_Names.
943 * sem_attr.adb (Eval_Attribute, case Width): Ditto.
944
945 2011-11-21 Thomas Quinot <quinot@adacore.com>
946
947 * sinfo.ads: Minor reformatting.
948
949 2011-11-21 Yannick Moy <moy@adacore.com>
950
951 * exp_util.adb: Minor reformatting. Update comments.
952
953 2011-11-21 Robert Dewar <dewar@adacore.com>
954
955 * exp_prag.adb, exp_util.adb, sinfo.ads, sem_res.adb, s-stposu.adb,
956 sem_attr.adb, s-stposu.ads, s-taprop-solaris.adb, s-taprop-irix.adb,
957 sem_ch6.adb: Minor reformatting.
958
959 2011-11-21 Arnaud Charlet <charlet@adacore.com>
960
961 * s-taprop-irix.adb, s-taprop-solaris.adb (Create_Task): Use
962 Unrestricted_Access to deal with fact that we properly detect the
963 error if Access is used.
964 * gcc-interface/Make-lang.in: Update dependencies.
965
966 2011-11-21 Yannick Moy <moy@adacore.com>
967
968 * exp_prag.adb (Expand_Pragma_Check): Place error on first character
969 of expression.
970 * sem_res.adb (Resolve_Short_Circuit): Place error on first
971 character of expression.
972
973 2011-11-21 Yannick Moy <moy@adacore.com>
974
975 * exp_util.adb (Remove_Side_Effects): Do nothing in Alfa mode.
976
977 2011-11-21 Hristian Kirtchev <kirtchev@adacore.com>
978
979 * exp_attr.adb (Expand_N_Attribute_Reference, case
980 Max_Size_In_Storage_Elements): Account for the size of the
981 hidden list header which precedes controlled objects allocated
982 on the heap.
983 * rtsfind.ads: Add RE_Header_Size_With_Padding to the runtime
984 tables.
985 * sinfo.adb (Header_Size_Added): New routine.
986 (Set_Header_Size_Added): New routine.
987 * sinfo.ads: Add flag Controlled_Header_Added along with
988 associated comment.
989 (Header_Size_Added): New inlined routine.
990 (Set_Header_Size_Added): New inlined routine.
991 * s-stposu.adb (Allocate_Any_Controlled): Use
992 Header_Size_With_Padding to calculate the proper
993 size of the header.
994 (Deallocate_Any_Controlled): Use
995 Header_Size_With_Padding to calculate the proper size
996 of the header. (Header_Size_With_Padding): New routine.
997 (Nearest_Multiple_Rounded_Up): Removed along with its uses.
998 * s-stposu.ads (Header_Size_With_Padding): New routine.
999
1000 2011-11-21 Ed Schonberg <schonberg@adacore.com>
1001
1002 * aspects.adb: Aspect specifications are allowed on renaming
1003 declarations
1004 * par-ch6.adb (P_Subprogram): Parse aspect specifications in a
1005 subprogram renaming declaration
1006
1007 2011-11-21 Tristan Gingold <gingold@adacore.com>
1008
1009 * env.c: Remove unused declaration.
1010
1011 2011-11-21 Pascal Obry <obry@adacore.com>
1012
1013 * s-os_lib.ads: Minor style fix.
1014
1015 2011-11-21 Pascal Obry <obry@adacore.com>
1016
1017 * adaint.c (__gnat_dup2): When fd are stdout, stdin or stderr and
1018 identical, do nothing on Windows XP.
1019
1020 2011-11-21 Yannick Moy <moy@adacore.com>
1021
1022 * sem_ch3.adb (Constrain_Index, Process_Range_Expr_In_Decl):
1023 Use Full_Expander_Active instead of Expander_Active to control
1024 the forced evaluation of expressions for the sake of generating
1025 checks.
1026
1027 2011-11-21 Thomas Quinot <quinot@adacore.com>
1028
1029 * init.c: On FreeBSD, stack checking failures may raise SIGBUS.
1030
1031 2011-11-21 Tristan Gingold <gingold@adacore.com>
1032
1033 * sysdep.c (mode_read_text, mode_write_text, mode_append_text,
1034 mode_read_binary, mode_write_binary, mode_append_binary,
1035 mode_read_text_plus, mode_write_text_plus, mode_append_text_plus,
1036 mode_read_binary_plus, mode_write_binary_plus,
1037 mode_append_binary_plus): Remove unused declarations.
1038
1039 2011-11-21 Yannick Moy <moy@adacore.com>
1040
1041 * gnat_rm.texi: Minor rewording.
1042
1043 2011-11-21 Hristian Kirtchev <kirtchev@adacore.com>
1044
1045 * exp_imgv.adb (Expand_Width_Attribute): Emit
1046 an error message rather than a warning when pragma Discard_Names
1047 prevents the computation of 'Width. Do not emit an error through
1048 the use of RE_Null.
1049
1050 2011-11-21 Javier Miranda <miranda@adacore.com>
1051
1052 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Add
1053 implicit type conversion when the type of the allocator is an
1054 interface. Done to force generation of displacement of the "this"
1055 pointer when required.
1056
1057 2011-11-21 Ed Schonberg <schonberg@adacore.com>
1058
1059 * sinfo.ads, sinfo.adb: Corresponding_Spec applies to expression
1060 functions, and is set when the expression is a completion of a
1061 previous declaration.
1062 * sem_ch6.adb (Analyze_Expression_Function): To determine properly
1063 whether an expression function completes a previous declaration,
1064 use Find_Corresponding_Spec, as when analyzing a subprogram body.
1065
1066 2011-11-21 Steve Baird <baird@adacore.com>
1067
1068 * sem_util.adb (Deepest_Type_Access_Level): Improve comment.
1069 (Type_Access_Level): Improve comment.
1070
1071 2011-11-21 Eric Botcazou <ebotcazou@adacore.com>
1072
1073 * gcc-interface/Makefile.in (INCLUDES_FOR_SUBDIR): Add $(fsrcdir) by
1074 means of -iquote unconditionally.
1075
1076 2011-11-21 Robert Dewar <dewar@adacore.com>
1077
1078 * sem_ch3.adb, sem_util.adb, sem_res.adb, sem_attr.adb: Minor
1079 reformatting.
1080
1081 2011-11-21 Arnaud Charlet <charlet@adacore.com>
1082
1083 * s-taprop-posix.adb (Create_Task): Use Unrestricted_Access
1084 to deal with fact that we properly detect the error if Access
1085 is used.
1086
1087 2011-11-21 Steve Baird <baird@adacore.com>
1088
1089 * sem_util.ads: Update comment describing function
1090 Deepest_Access_Level.
1091 * sem_util.adb (Deepest_Type_Access_Level): Return Int'Last for a
1092 generic formal type.
1093 (Type_Access_Level): Return library level
1094 for a generic formal type.
1095 * sem_attr.adb (Resolve_Attribute): Replace two Type_Access_Level
1096 calls with calls to Deepest_Type_Access_Level.
1097 * sem_ch3.adb (Analyze_Component_Declaration): replace a
1098 Type_Access_Level call with a call to Deepest_Type_Access_Level.
1099 * sem_res.adb (Resolve_Allocator.Check_Allocator_Discrim_Accessibility):
1100 Replace three Type_Access_Level calls with calls to
1101 Deepest_Type_Access_Level.
1102 (Resolve_Allocator): Replace a Type_Access_Level call with a call to
1103 Deepest_Type_Access_Level.
1104 (Valid_Conversion.Valid_Array_Conversion): Replace a
1105 Type_Access_Level call with a call to Deepest_Type_Access_Level.
1106
1107 2011-11-21 Robert Dewar <dewar@adacore.com>
1108
1109 * sem_ch3.adb, s-taprop-vms.adb, opt.ads: Minor reformatting.
1110
1111 2011-11-21 Robert Dewar <dewar@adacore.com>
1112
1113 * sinput.ads: Minor comment fix.
1114
1115 2011-11-21 Robert Dewar <dewar@adacore.com>
1116
1117 * exp_attr.adb (Expand_N_Attribute_Reference, case First_Bit,
1118 Last_Bit, Position): Handle 2005 case.
1119
1120 2011-11-21 Robert Dewar <dewar@adacore.com>
1121
1122 * s-atocou-builtin.adb (Decrement): Use Unrestricted_Access
1123 to deal with fact that we properly detect the error if Access
1124 is used.
1125 (Increment): Same fix.
1126 * s-taprop-linux.adb (Create_Task): Use Unrestricted_Access
1127 to deal with fact that we properly detect the error if Access
1128 is used.
1129 * sem_util.adb (Is_Volatile_Object): Properly record that A.B is
1130 volatile if the B component is volatile. This affects the check
1131 for passing such a by reference volatile actual to a non-volatile
1132 formal (which should be illegal)
1133
1134 2011-11-21 Robert Dewar <dewar@adacore.com>
1135
1136 * freeze.adb (Freeze_Enumeration_Type): Make sure to set both
1137 size and alignment for foreign convention enumeration types.
1138 * layout.adb (Set_Elem_Alignment): Redo setting of alignment
1139 when size is set.
1140
1141 2011-11-21 Yannick Moy <moy@adacore.com>
1142
1143 * checks.adb (Apply_Access_Check, Apply_Arithmetic_Overflow_Check,
1144 Apply_Discriminant_Check, Apply_Divide_Check,
1145 Apply_Selected_Length_Checks, Apply_Selected_Range_Checks,
1146 Build_Discriminant_Checks, Insert_Range_Checks, Selected_Length_Checks,
1147 Selected_Range_Checks): Replace reference to Expander_Active
1148 with reference to Full_Expander_Active, so that expansion of
1149 checks is not performed in Alfa mode
1150
1151 2011-11-21 Tristan Gingold <gingold@adacore.com>
1152
1153 * s-taprop-vms.adb (Create_Task): Use Unrestricted_Access to deal with
1154 fact that we properly detect the error if Access is used.
1155
1156 2011-11-21 Hristian Kirtchev <kirtchev@adacore.com>
1157
1158 * par-ch4.adb (P_Quantified_Expression): Add an Ada 2012 check.
1159
1160 2011-11-21 Hristian Kirtchev <kirtchev@adacore.com>
1161
1162 * exp_imgv.adb: Add with and use clause for Errout.
1163 (Expand_Width_Attribute): Emit a warning when in
1164 configurable run-time mode to provide a better diagnostic message.
1165
1166 2011-11-21 Hristian Kirtchev <kirtchev@adacore.com>
1167
1168 * s-finmas.adb (Finalize): Add comment concerning double finalization.
1169
1170 2011-11-21 Ed Schonberg <schonberg@adacore.com>
1171
1172 * sem_ch3.adb (Access_Definition): If the access definition
1173 is itself the return type of an access to function definition
1174 which is ultimately the return type of an access to subprogram
1175 declaration, its scope is the enclosing scope of the ultimate
1176 access to subprogram.
1177
1178 2011-11-21 Steve Baird <baird@adacore.com>
1179
1180 * sem_res.adb (Valid_Conversion): If a conversion was legal
1181 in the body of a generic, then the corresponding conversion is
1182 legal in the expanded body of an instance of the generic.
1183
1184 2011-11-21 Robert Dewar <dewar@adacore.com>
1185
1186 * sem_ch3.adb: Minor reformatting.
1187
1188 2011-11-21 Robert Dewar <dewar@adacore.com>
1189
1190 * s-utf_32.adb (Is_UTF_32_Line_Terminator): Recognize NEL as
1191 line terminator.
1192 * sinput.ads: Add section on Handling of Source Line Terminators.
1193 * types.ads (Line_Terminator): Adjust comments.
1194
1195 2011-11-21 Robert Dewar <dewar@adacore.com>
1196
1197 * frontend.adb (Frontend): Capture restrictions from config files
1198 * lib-load.adb (Load_Unit): Save/set/restore restriction pragma
1199 information
1200 * lib-xref.adb (Generate_Reference): Fix handling of obsolescent
1201 references. This was noticed during debugging, but it is not
1202 known if it causes real bugs.
1203 * restrict.ads, restrict.adb: New routines to save/set/restore
1204 non-partition-wide restrictions.
1205 * s-rident.ads: Comment changes for new handling of
1206 No_Elaboration_Code
1207 * sem.adb (Sem): Save/Set/Restore non-partition-wide restrictions
1208 * sem_ch10.adb (Analyze_Compilation_Unit): Remove incomplete
1209 attempt to save/restore non-partition-wide restrictions (now
1210 this work is all done in Sem).
1211 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
1212 Special handling for restriction No_Elaboration_Code.
1213
1214 2011-11-21 Robert Dewar <dewar@adacore.com>
1215
1216 * gnat_ugn.texi: Document new handling of restrictions pragmas.
1217
1218 2011-11-21 Pascal Obry <obry@adacore.com>
1219
1220 * s-taprop-linux.adb (Initialize_Lock): Do not allocate a cond
1221 attribute as not needed.
1222
1223 2011-11-21 Robert Dewar <dewar@adacore.com>
1224
1225 * sem_prag.adb: Minor reformatting.
1226
1227 2011-11-21 Pascal Obry <obry@adacore.com>
1228
1229 * gnat_rm.texi: Document restriction for stdcall convention on
1230 dispatching calls.
1231
1232 2011-11-21 Pascal Obry <obry@adacore.com>
1233
1234 * sem_prag.adb (Process_Convention): A dispatching call cannot
1235 have a stdcall calling convention.
1236
1237 2011-11-21 Pascal Obry <obry@adacore.com>
1238
1239 * s-taprop-linux.adb (Initialize_Lock): Do not allocate a
1240 mutex attribute as not needed.
1241 (Initialize_TCB): Likewise.
1242 (Initialize): Likewise.
1243
1244 2011-11-21 Robert Dewar <dewar@adacore.com>
1245
1246 * sem_ch6.adb (Is_Public_Subprogram_For): New procedure
1247 (Process_PPCs): Invariants only apply to public subprograms.
1248
1249 2011-11-21 Robert Dewar <dewar@adacore.com>
1250
1251 * sem_util.adb, sem_util.ads, sem_attr.adb, restrict.adb,
1252 restrict.ads: Fix for No_Implicit_Aliasing in the renames case.
1253
1254 2011-11-21 Robert Dewar <dewar@adacore.com>
1255
1256 * a-finali.ads: Use pragma Pure_12 for this unit
1257 * aspects.adb: Add aspect Pure_12
1258 * aspects.ads: Add aspect Pure_12
1259 * opt.ads: Add note on Pure_12
1260 * par-prag.adb: Add dummy entry for Pure_12
1261 * sem_prag.adb: Implement Pure_12 pragma
1262 * snames.ads-tmpl: Add Entry for Pure_12
1263
1264 2011-11-21 Sergey Rybin <rybin@adacore.com frybin>
1265
1266 * vms_data.ads: Add qualifiers for new gnatpp options
1267 '--call_threshold' and '--par_threshold".
1268 * gnat_ugn.texi: Add description for new gnatpp options
1269 '--call_threshold' and '--par_threshold".
1270
1271 2011-11-21 Robert Dewar <dewar@adacore.com>
1272
1273 * lib.ads: Minor reformatting.
1274
1275 2011-11-21 Robert Dewar <dewar@adacore.com>
1276
1277 * lib-load.ads: Add comment.
1278
1279 2011-11-21 Gary Dismukes <dismukes@adacore.com>
1280
1281 * sem_elab.adb: Minor reformatting
1282
1283 2011-11-21 Robert Dewar <dewar@adacore.com>
1284
1285 * exp_ch6.adb: Minor reformatting.
1286
1287 2011-11-21 Ed Schonberg <schonberg@adacore.com>
1288
1289 * sem_ch12.adb (Check_Formal_Package_Instance): If a formal
1290 subprogram of the formal package is covered by an others
1291 association with a box initialization, no check is needed
1292 against the actual in the instantiation of the formal package.
1293
1294 2011-11-21 Robert Dewar <dewar@adacore.com>
1295
1296 * sem_elab.adb (Check_Internal_Call_Continue): Suppress junk
1297 elab warning from within precondition/postcondition etc.
1298
1299 2011-11-21 Ed Schonberg <schonberg@adacore.com>
1300
1301 * exp_ch6.adb (Expand_Actuals): In Ada 2012, a function call
1302 with out parameters may generate assignments to force constraint
1303 checks. These checks must be properly placed in the code after the
1304 declaration or statement that contains the call.
1305
1306 2011-11-21 Fedor Rybin <frybin@adacore.com>
1307
1308 * gnat_ugn.texi: Adding info on current gnattest limitations an
1309 support of -X option.
1310
1311 2011-11-21 Robert Dewar <dewar@adacore.com>
1312
1313 * a-cfdlli.adb, a-cbdlli.adb: Minor reformatting.
1314
1315 2011-11-20 Robert Dewar <dewar@adacore.com>
1316
1317 * exp_ch6.adb, exp_util.adb: Minor reformatting
1318
1319 2011-11-20 Eric Botcazou <ebotcazou@adacore.com>
1320
1321 * sinfo.ads (Reference): Document that it is OK to set
1322 Is_Known_Non_Null on a temporary initialized to a N_Reference
1323 node.
1324
1325 2011-11-20 Matthew Heaney <heaney@adacore.com>
1326
1327 * a-cbdlli.adb, a-cfdlli.adb (Move): Set Last component to 0
1328 for Source list.
1329
1330 2011-11-20 Eric Botcazou <ebotcazou@adacore.com>
1331
1332 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment):
1333 Declare NEW_EXPR local variable and attach the
1334 temporary to it. Set Is_Known_Non_Null on the temporary.
1335 (Make_Build_In_Place_Call_In_Object_Declaration): Likewise.
1336 * exp_util.adb (Remove_Side_Effects): Set Is_Known_Non_Null on
1337 the temporary created to hold the 'Reference of the expression,
1338 if any.
1339 * checks.adb (Install_Null_Excluding_Check): Bail out for the
1340 Get_Current_Excep.all.all idiom generated by the expander.
1341
1342 2011-11-20 Eric Botcazou <ebotcazou@adacore.com>
1343
1344 * gcc-interface/trans.c (struct language_function): Add GNAT_RET.
1345 (f_gnat_ret): New macro.
1346 (struct nrv_data): Add GNAT_RET.
1347 (finalize_nrv_unc_r): New helper function.
1348 (finalize_nrv): Add GNAT_RET parameter. Copy it into DATA. If the
1349 function returns unconstrained, use finalize_nrv_unc_r as callback.
1350 (return_value_ok_for_nrv_p): Test the alignment of RET_OBJ only if
1351 RET_OBJ is non-null.
1352 (Subprogram_Body_to_gnu): Pass GNAT_RET to finalize_nrv.
1353 (gnat_to_gnu) <N_Return_Statement>: In the return-unconstrained case,
1354 if optimization is enabled, record candidates for the Named Return
1355 Value optimization.
1356
1357 2011-11-20 Eric Botcazou <ebotcazou@adacore.com>
1358
1359 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Add comment.
1360 (gnat_to_gnu) <N_Return_Statement>: Add 'else' to avoid doing a useless
1361 test. Tweak default case.
1362 <N_Goto_Statement>: Use better formatting.
1363 * gcc-interface/utils2.c (maybe_wrap_malloc): Use INIT_EXPR instead of
1364 MODIFY_EXPR to initialize the storage.
1365 (build_allocator): Likewise.
1366
1367 2011-11-20 Eric Botcazou <ebotcazou@adacore.com>
1368
1369 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Adjust
1370 call to components_to_record.
1371 (components_to_record): Add FIRST_FREE_POS parameter. For the variant
1372 part, reuse enclosing union even if there is a representation clause
1373 on the Unchecked_Union. If there is a variant part, compute the new
1374 first free position, if any. Adjust call to self. Use a single field
1375 directly only if it hasn't got a representation clause or is placed at
1376 offset zero. Create the variant part at offset 0 if all the fields
1377 down to this level have a rep clause. Do not chain the variant part
1378 immediately and adjust downstream.
1379 Do not test ALL_REP before moving the fields without rep clause to the
1380 previous level. Call create_rep_part to create the REP part and force
1381 a minimum size on it if necessary. Do not chain it immediately.
1382 Create a fake REP part if there are fields without rep clause that need
1383 to be laid out starting from FIRST_FREE_POS.
1384 At the end, chain the REP part and then the variant part.
1385 (create_rep_part): New function.
1386 (get_rep_part): Minor tweak.
1387 * gcc-interface/utils.c (tree_code_for_record_type): Minor tweak.
1388
1389 2011-11-18 Iain Sandoe <iains@gcc.gnu.org>
1390
1391 PR target/50678
1392 * init.c (__gnat_error_handler) [Darwin]: Move workaround to the
1393 bug filed as radar #10302855 from __gnat_error_handler to...
1394 (__gnat_adjust_context_for_raise) [Darwin]: ...here. New function.
1395 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE) [Darwin]: Define.
1396
1397 2011-11-18 Tristan Gingold <gingold@adacore.com>
1398 Iain Sandoe <iains@gcc.gnu.org>
1399
1400 PR target/49992
1401 * mlib-tgt-specific-darwin.adb (Archive_Indexer_Options): Remove.
1402 * gcc-interface/Makefile.in (darwin): Remove ranlib special-casing.
1403
1404 2011-11-12 Iain Sandoe <iains@gcc.gnu.org>
1405
1406 * gcc-interface/Makefile.in (stamp-gnatlib-$(RTSDIR)): Don't link
1407 s-oscons.ads.
1408 (OSCONS_CPP, OSCONS_EXTRACT): New.
1409 (./bldtools/oscons/xoscons): New target.
1410 ($(RTSDIR)/s-oscons.ads): Likewise.
1411 (gnatlib): Depend on $(RTSDIR)/s-oscons.ads.
1412 * gcc-interface/Make-lang.in (ada/s-oscons.ads) Remove as dependency.
1413 * Make-generated.in: Remove machinery to generate xoscons and
1414 ada/s-oscons.ads.
1415
1416 2011-11-10 Eric Botcazou <ebotcazou@adacore.com>
1417
1418 * fe.h (Serious_Errors_Detected): New macro.
1419 * gcc-interface/gigi.h (build_atomic_load): Declare.
1420 (build_atomic_store): Likewise.
1421 * gcc-interface/trans.c (atomic_sync_required_p): New predicate.
1422 (call_to_gnu): Add ATOMIC_SYNC parameter. Use local variable.
1423 Build an atomic load for an In or In Out parameter if needed.
1424 Build an atomic store for the assignment of an Out parameter if needed.
1425 Build an atomic store to the target if ATOMIC_SYNC is true.
1426 (present_in_lhs_or_actual_p): New predicate.
1427 (gnat_to_gnu) <N_Identifier>: Build an atomic load if needed.
1428 <N_Explicit_Dereference>: Likewise.
1429 <N_Indexed_Component>: Likewise.
1430 <N_Selected_Component>: Likewise.
1431 <N_Assignment_Statement>: Adjust call to call_to_gnu.
1432 Build an atomic store to the LHS if needed.
1433 <N_Function_Call>: Adjust call to call_to_gnu.
1434 * gcc-interface/utils2.c: Include toplev.h.
1435 (resolve_atomic_size): New static function.
1436 (build_atomic_load): New function.
1437 (build_atomic_store): Likewise.
1438 * gcc-interface/Make-lang.in (ada/utils2.o): Add toplev.h.
1439
1440 2011-11-07 Olivier Hainque <hainque@adacore.com>
1441
1442 * sigtramp-ppcvxw.c: Add general comments.
1443 (CFI_COMMON_REGS): Remove rule for r1, as in other unwinders. Add
1444 rules for r2 to r13, plus CTR and XER.
1445 (CFA_REG): New, register number used to hold the local CFA.
1446 (CFI_DEF_CFA, SIGTRAMP_BODY): Use it.
1447 Make that 15, not 14, with documentation.
1448 (TCR): Undef before definition, preventing conflict with reg number in
1449 VxWorks headers.
1450
1451 2011-11-07 Robert Dewar <dewar@adacore.com>
1452
1453 * exp_util.ads, exp_alfa.adb, a-cohama.adb, a-cohama.ads, sem_ch4.adb,
1454 aspects.ads, exp_ch8.adb, exp_ch8.ads, atree.ads: Minor reformatting.
1455 * gcc-interface/Make-lang.in: Update dependencies.
1456
1457 2011-11-07 Ed Schonberg <schonberg@adacore.com>
1458
1459 * exp_ch6.adb: A tagged type is a legal actual for an aliased
1460 formal.
1461
1462 2011-11-07 Pascal Obry <obry@adacore.com>
1463
1464 * g-socket.adb, g-socket.ads: Minor reformatting.
1465
1466 2011-11-07 Robert Dewar <dewar@adacore.com>
1467
1468 * sem_res.adb (Resolve_Actuals): Minor error message improvement.
1469
1470 2011-11-07 Robert Dewar <dewar@adacore.com>
1471
1472 * gnat_ugn.texi: Add discussion of default mode handling of
1473 source representation with no -gnatW option given, in particular
1474 noting that NEL (next line) is not recognized in this context.
1475
1476 2011-11-07 Yannick Moy <moy@adacore.com>
1477
1478 * sem_util.adb (Note_Possible_Modification): In Alfa mode,
1479 generate a reference for a modification even when the modification
1480 does not come from source.
1481
1482 2011-11-07 Ed Schonberg <schonberg@adacore.com>
1483
1484 * exp_ch5.adb (Expand_Iterator_Loop): For the "of" iterator form,
1485 use the indexing attributes rather than the Element function,
1486 to obtain variable references.
1487 * sem_ch4.adb (Try_Container_Indexing): Code cleanup. Use
1488 Find_Aspect rather than iterating over representation
1489 items. Improve error message.
1490 * a-cohama.adb, a-cohama.ads Update to latest RM, with two versions
1491 of Reference functions.
1492
1493 2011-11-07 Yannick Moy <moy@adacore.com>
1494
1495 * sem_util.adb (Unique_Entity): For a parameter on a subprogram
1496 body that has a corresponding parameter on the subprogram
1497 declaration, define the unique entity as being the declaration
1498 one.
1499
1500 2011-11-07 Ed Schonberg <schonberg@adacore.com>
1501
1502 * sem_ch6.adb (Analyze_Return_Type): In Ada 2012 mode, if the
1503 return type of a function is the class-wide type of an incomplete
1504 type T, T can be a Taft-amendment type and does not have to be
1505 completed in the current private part.
1506
1507 2011-11-07 Ed Schonberg <schonberg@adacore.com>
1508
1509 * aspects.ads (Inherited_Aspect): Map that indicates type aspects
1510 that are inherited by default, and apply to the class-wide type
1511 as well.
1512 * aspects.adb (Find_Aspect): If the entity is class-wide and the
1513 aspect is inherited, use the aspect of the specific type.
1514
1515 2011-11-07 Hristian Kirtchev <kirtchev@adacore.com>
1516
1517 * exp_alfa.adb: Remove with and use clause for
1518 Exp_Ch8. Add with and use clause for Exp_Util.
1519 Remove local constant Disable_Processing_Of_Renamings.
1520 (Expand_Alfa_N_Object_Renaming_Declaration): The expansion of
1521 object renamings has been reenabled.
1522 (Expand_Possible_Renaming):
1523 The expansion of identifier and expanded names has been
1524 reenabled. Perform the substitutions only for entities that
1525 denote an object.
1526 * exp_ch8.ads, exp_ch8.adb (Evaluate_Name): Moved to Exp_Util.
1527 * exp_util.adb (Evaluate_Name): Moved from Exp_Ch8.
1528 (Remove_Side_Effects): Alphabetize local variables. Add a guard
1529 to avoid the infinite expansion of an expression in Alfa mode. Add
1530 processing for function calls in Alfa mode.
1531 * exp_util.ads (Evaliate_Name): Moved from Exp_Ch8.
1532
1533 2011-11-07 Ed Schonberg <schonberg@adacore.com>
1534
1535 * freeze.adb (Freeze_Entity): If the entity is an access to
1536 subprogram whose designated type is itself a subprogram type,
1537 its own return type must be decorated with size information.
1538
1539 2011-11-04 Arnaud Charlet <charlet@adacore.com>
1540
1541 * gcc-interface/Make-lang.in: Update dependencies.
1542
1543 2011-11-04 Robert Dewar <dewar@adacore.com>
1544
1545 * sprint.adb (Sprint_Node_Actual, case Qualified_Expression):
1546 Avoid junk semicolon after argument of machine code Asm operand.
1547
1548 2011-11-04 Robert Dewar <dewar@adacore.com>
1549
1550 * exp_ch11.adb (Generate_Push_Pop): Inhibit push/pop nodes in
1551 CodePeer mode or if restriction No_Exception_Handlers is present.
1552 * exp_ch6.adb (Expand_N_Subprogram_Body): (Inhibit push/pop
1553 nodes in CodePeer mode or if restriction No_Exception_Handlers
1554 is present.
1555
1556 2011-11-04 Robert Dewar <dewar@adacore.com>
1557
1558 * s-tassta.adb, atree.ads, errout.adb, sinput.adb: Minor reformatting.
1559
1560 2011-11-04 Ed Schonberg <schonberg@adacore.com>
1561
1562 * sem_ch6.adb (Analyze_Subprogram_Specification): The
1563 specification is legal if it is a function that returns an
1564 abstract type, if it comes from an attribute renaming of a stream
1565 attribute of an abstract type.
1566
1567 2011-11-04 Gary Dismukes <dismukes@adacore.com>
1568
1569 * exp_util.adb (Is_Possibly_Unaligned_Object): In case of indexed
1570 components, check whether recursively check whether the prefix
1571 denotes an unaligned object.
1572
1573 2011-11-04 Ed Schonberg <schonberg@adacore.com>
1574
1575 * sem_prag.adb (Analyze_Pragma, case Debug): The argument of
1576 the pragma is legal if it is an expanded name that denotes a
1577 procedure that be can called without parameters.
1578
1579 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1580
1581 * gnat_ugn.texi (Performance Considerations) <Vectorization
1582 of loops>: New sub-section. <Other Optimization Switches>:
1583 Minor tweak.
1584
1585 2011-11-04 Robert Dewar <dewar@adacore.com>
1586
1587 * gnat_rm.texi: Minor reformatting.
1588
1589 2011-11-04 Matthew Heaney <heaney@adacore.com>
1590
1591 * a-convec.adb, a-coinve.adb, a-cobove.adb (Merge): Raise PE
1592 when Target and Source denote same non-empty object
1593 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb (Merge): Ditto
1594
1595 2011-11-04 Robert Dewar <dewar@adacore.com>
1596
1597 * exp_attr.adb: Minor reformatting.
1598
1599 2011-11-04 Ed Schonberg <schonberg@adacore.com>
1600
1601 * exp_ch5.adb (Expand_Assign_Record): Do not generate a
1602 discriminant assignment within an initialization proc if the
1603 record is an unchecked union, as it can only come from the
1604 initialization of an unchecked union component.
1605
1606 2011-11-04 Robert Dewar <dewar@adacore.com>
1607
1608 * gnat_ugn.texi: Minor reformatting.
1609
1610 2011-11-04 Robert Dewar <dewar@adacore.com>
1611
1612 * par-labl.adb (Rewrite_As_Loop): Generate info msg rather than
1613 warning message.
1614
1615 2011-11-04 Robert Dewar <dewar@adacore.com>
1616
1617 * exp_ch4.adb: Minor code reorganization (remove junk obsolete
1618 var Save_Space).
1619
1620 2011-11-04 Hristian Kirtchev <kirtchev@adacore.com>
1621
1622 * exp_alfa.adb: Add local constant
1623 Disable_Processing_Of_Renamings;
1624 (Expand_Alfa_N_Object_Renaming_Declaration): Disable
1625 the name evaluation of object renamings for now.
1626 (Expand_Potential_Renaming): Do not perform the substitution
1627 for now.
1628 * exp_util.adb (Remove_Side_Effects): Remove processing for
1629 functions with side effects in Alfa mode.
1630
1631 2011-11-04 Gary Dismukes <dismukes@adacore.com>
1632
1633 * bindgen.adb (Gen_Elab_Calls): In the case
1634 of the AAMP target, set elaboration entities to 1 rather than
1635 incrementing.
1636
1637 2011-11-04 Ed Schonberg <schonberg@adacore.com>
1638
1639 * sem_ch10.adb (Install_Limited_With_Unit): To establish the
1640 proper entities on the ancestors of a child unit that appear
1641 in a limited_with clause, follow the unit links because the
1642 units are not analyzed and scope information is incomplete.
1643
1644 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1645
1646 * exp_ch4.adb (Expand_N_Selected_Component): Refine code
1647 setting the Atomic_Sync_Required flag to detect one more case.
1648 * exp_util.adb (Activate_Atomic_Synchronization): Refine code
1649 setting the Atomic_Sync_Required flag to exclude more cases,
1650 depending on the parent of the node to be examined.
1651
1652 2011-11-04 Bob Duff <duff@adacore.com>
1653
1654 * g-excact.adb: Minor: use named notation.
1655
1656 2011-11-04 Ed Schonberg <schonberg@adacore.com>
1657
1658 * sem_ch5.adb: Improve error messages for illegal iterators.
1659
1660 2011-11-04 Hristian Kirtchev <kirtchev@adacore.com>
1661
1662 * exp_alfa.adb: Add with and use clauses for Exp_Ch8 and
1663 Sem_Util.
1664 (Expand_Alfa): Alphabetize cases on first choice. Add
1665 processing for object renaming declarations, identifiers and
1666 expanded names.
1667 (Expand_Alfa_N_In): Remove useless return.
1668 (Expand_Alfa_N_Object_Renaming_Declaration): New routine.
1669 (Expand_Potential_Renaming): New routine.
1670 * exp_ch8.adb (Evaluate_Name): Moved to the top level.
1671 (Expand_N_Object_Declaration): Alphabetize local variables. Move
1672 Evaluate_Name out to the top level.
1673 * exp_ch8.ads (Evaluate_Name): Moved from body to package spec.
1674 * exp_util.adb (Remove_Side_Effects): Add processing for
1675 functions with side effects in Alfa mode.
1676
1677 2011-11-04 Hristian Kirtchev <kirtchev@adacore.com>
1678
1679 * gnat_rm.texi: Add entries for
1680 restrictions No_Relative_Delay, No_Requeue_Statements and
1681 No_Stream_Optimizations.
1682
1683 2011-11-04 Ed Schonberg <schonberg@adacore.com>
1684
1685 * sem_ch4.adb: Set type of entity in prefixed call, for
1686 completeness in a generic context.
1687
1688 2011-11-04 Yannick Moy <moy@adacore.com>
1689
1690 * sem_prag.adb: Minor refactoring (renaming of a parameter).
1691
1692 2011-11-04 Robert Dewar <dewar@adacore.com>
1693
1694 * atree.ads: Minor reformatting.
1695
1696 2011-11-04 Robert Dewar <dewar@adacore.com>
1697
1698 * checks.adb (Atomic_Synchronization_Disabled): Check -gnatd.d
1699 and -gnatd.e here
1700 * exp_ch2.adb (Expand_Entity_Reference): Use
1701 Activate_Atomic_Synchronization
1702 * exp_ch4.adb (Expand_N_Explicit_Dereference): Use
1703 Activate_Atomic_Synchronization (Expand_N_Indexed_Compoonent):
1704 Activate_Atomic_Synchronization (Expand_N_Selected_Component):
1705 Use Activate_Atomic_Synchronization
1706 * exp_util.ads, exp_util.adb (Activate_Atomic_Synchronization): New
1707 procedure.
1708 * sinfo.ads, sinfo.adb (Atomic_Sync_Required): Can now apply to
1709 N_Selected_Component node
1710
1711 2011-11-04 Robert Dewar <dewar@adacore.com>
1712
1713 * sem_prag.adb, atree.ads, prj-env.adb, prj-env.ads: Minor reformatting.
1714
1715 2011-11-04 Yannick Moy <moy@adacore.com>
1716
1717 * atree.adb, atree.ads (Set_Original_Node): New set procedure.
1718 * sem_ch13.adb (Analyze_Aspect_Specifications/Pre_Post_Aspects):
1719 In ASIS mode, no splitting of aspects between conjuncts.
1720 (Analyze_Aspect_Specifications/Aspect_Test_Case): Make pragma
1721 expressions refer to the original aspect expressions through
1722 the Original_Node link. This is used in semantic analysis for
1723 ASIS mode, so that the original expression also gets analyzed.
1724 * sem_prag.adb (Preanalyze_TC_Args,
1725 Check_Precondition_Postcondition,
1726 Analyze_Pragma/Pragma_Test_Case): In ASIS mode, for a pragma
1727 generated from a source aspect, also analyze the original aspect
1728 expression.
1729 (Check_Expr_Is_Static_Expression): New procedure
1730 similar to existing procedure Check_Arg_Is_Static_Expression,
1731 except called on expression inside pragma.
1732
1733 2011-11-04 Tristan Gingold <gingold@adacore.com>
1734
1735 * prj-env.adb, prj-env.ads (Find_Name_In_Path): New function, from
1736 Find_Project.Try_Path_Name.
1737 (Find_Project): Use Find_Name_In_Path to implement Try_Path_Name.
1738
1739 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1740
1741 * s-atocou.ads (Atomic_Counter): Remove redundant pragma Volatile.
1742
1743 2011-11-04 Pascal Obry <obry@adacore.com>
1744
1745 * projects.texi: Add short description for qualifiers aggregate
1746 and aggregate library.
1747
1748 2011-11-04 Matthew Heaney <heaney@adacore.com>
1749
1750 * Makefile.rtl, impunit.adb: Added a-cogeso.ad[sb]
1751 * a-cgaaso.adb: Replaced implementation with instantiation
1752 of Generic_Sort.
1753 * a-cogeso.ad[sb] This is the new Ada 2012 unit
1754 Ada.Containers.Generic_Sort
1755
1756 2011-11-04 Robert Dewar <dewar@adacore.com>
1757
1758 * exp_ch2.adb (Expand_Entity_Reference): Do not set
1759 Atomic_Sync_Required for the case of a prefix of an attribute.
1760 * exp_ch4.adb (Expand_N_Explicit_Dereference): May require
1761 atomic synchronization
1762 (Expand_N_Indexed_Component): Ditto.
1763 (Expand_B_Selected_Component): Ditto.
1764 * sem_prag.adb (Process_Suppress_Unsuppress):
1765 Disable/Enable_Atomic_Synchronization can now occur for array
1766 types with pragma Atomic_Components.
1767 * sinfo.ads, sinfo.adb (Atomic_Sync_Required): Can now occur on
1768 N_Explicit_Dereference nodes and on N_Indexed_Component nodes.
1769
1770 2011-11-04 Gary Dismukes <dismukes@adacore.com>
1771
1772 * gnat_ugn.texi: Editorial corrections for gnattest section.
1773
1774 2011-11-04 Robert Dewar <dewar@adacore.com>
1775
1776 * sem_prag.adb: Minor reformatting.
1777 * gnat_rm.texi: Update documentation for pragma Warnings (Off,
1778 "***") usage.
1779 * exp_ch2.adb (Expand_Entity_Reference): Only set
1780 Atomic_Sync_Required on entities that are variables. Doesn't
1781 make any sense on anything else.
1782
1783 2011-11-04 Robert Dewar <dewar@adacore.com>
1784
1785 * exp_ch2.adb (Expand_Entity_Reference): Extend handling of
1786 atomic sync to type case.
1787 * sem_prag.adb (Process_Suppress_Unsuppress): Atomic Sync can
1788 apply to types.
1789
1790 2011-11-04 Robert Dewar <dewar@adacore.com>
1791
1792 * sem_warn.adb (Warn_On_Useless_Assignment): More accurate test
1793 for call vs assign.
1794 * gcc-interface/Make-lang.in: Update dependencies.
1795
1796 2011-11-04 Robert Dewar <dewar@adacore.com>
1797
1798 * sem_prag.adb: Detect more cases of Long_Float inconsistencies at
1799 compile time.
1800
1801 2011-11-04 Matthew Heaney <heaney@adacore.com>
1802
1803 * Makefile.rtl, impunit.adb: Added a-sfecin.ads,
1804 * a-sfhcin.ads, a-sflcin.ads, a-sbecin.ad[sb], a-sbhcin.ad[sb],
1805 a-sblcin.ad[sb], a-suecin.ad[sb], a-suhcin.ad[sb], a-sulcin.ad[sb]
1806 * a-sfecin.ads, a-sfhcin.ads, a-sflcin.ads, a-sbecin.ad[sb],
1807 a-sbhcin.ad[sb], a-sblcin.ad[sb], a-suecin.ad[sb], a-suhcin.ad[sb],
1808 a-sulcin.ad[sb]: New files.
1809
1810 2011-11-04 Geert Bosch <bosch@adacore.com>
1811
1812 * i-forbla-unimplemented.ads, s-gecola.adb, s-gecola.ads,
1813 s-gerebl.adb, s-gerebl.ads, i-forbla.adb, i-forbla.ads,
1814 i-forlap.ads, i-forbla-darwin.adb, s-gecobl.adb, s-gecobl.ads,
1815 s-gerela.adb, s-gerela.ads: Remove partial interface to BLAS/LAPACK.
1816 * gcc-interface/Makefile.in: Remove libgnala and related objects.
1817
1818 2011-11-04 Matthew Heaney <heaney@adacore.com>
1819
1820 * a-cdlili.ad[sb], a-cidlli.ad[sb], a-coorse.ad[sb], a-ciorse.ad[sb],
1821 a-coorma.ad[sb], a-ciorma.ad[sb], a-coormu.ad[sb], a-ciormu.ad[sb],
1822 a-cohama.ad[sb], a-cihama.ad[sb], a-cohase.ad[sb], a-cihase.ad[sb],
1823 a-convec.ad[sb], a-coinve.ad[sb] (Assign, Copy): New operations
1824 added to package.
1825
1826 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1827
1828 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Do not assert
1829 that the type of the parameters isn't dummy in type_annotate_only mode.
1830
1831 2011-11-04 Robert Dewar <dewar@adacore.com>
1832
1833 * sem_ch12.adb: Minor reformatting
1834
1835 2011-11-04 Gary Dismukes <dismukes@adacore.com>
1836
1837 * bindgen.adb (Gen_Elab_Calls): In the case of the AAMP target,
1838 initialize elaboration entities to zero when specs are processed.
1839
1840 2011-10-28 Iain Sandoe <iains@gcc.gnu.org>
1841 Eric Botcazou <ebotcazou@adacore.com>
1842
1843 PR target/50678
1844 * init.c (__gnat_error_handler) [Darwin]: Apply a work-around to the
1845 bug filed as radar #10302855 (inconsistent unwind data for sigtramp).
1846
1847 2011-10-28 Eric Botcazou <ebotcazou@adacore.com>
1848
1849 PR ada/50842
1850 * gcc-interface/Makefile.in (SYMDEPS): Delete.
1851 (LIBICONV): New variable.
1852 (LIBICONV_DEP): Likewise.
1853 (LIBS): Add $(LIBICONV).
1854 (LIBDEPS): Add $(LIBICONV_DEP).
1855 (EXTRA_GNATTOOLS_OBJS): Merge into...
1856 (TOOLS_LIBS): ...this. Add $(LIBICONV).
1857
1858 2011-10-26 Eric Botcazou <ebotcazou@adacore.com>
1859
1860 * gcc-interface/decl.c (elaborate_expression_1): Add EXPR_PUBLIC_P local
1861 variable. Always create the elaboration variable, if any, as constant.
1862
1863 2011-10-26 Eric Botcazou <ebotcazou@adacore.com>
1864
1865 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Try to
1866 make a packable type for fields of union types as well.
1867 <is_type>: Use RECORD_OR_UNION_TYPE_P predicate.
1868 (gnat_to_gnu_component_type): Try to make a packable type for fields
1869 of union types as well.
1870 (make_packable_type): Use RECORD_OR_UNION_TYPE_P predicate.
1871 (maybe_pad_type): Try to make a packable type for fields of union types
1872 as well.
1873 (gnat_to_gnu_field): Likewise.
1874 (is_variable_size): Use RECORD_OR_UNION_TYPE_P predicate.
1875 (set_rm_size): Likewise.
1876 (rm_size): Likewise.
1877 * gcc-interface/misc.c (gnat_type_max_size): Likewise.
1878 * gcc-interface/trans.c (add_decl_expr): Likewise.
1879 * gcc-interface/utils.c (finish_record_type): Likewise.
1880 * gcc-interface/utils2.c (build_simple_component_ref): Likewise.
1881
1882 2011-10-26 Eric Botcazou <ebotcazou@adacore.com>
1883
1884 * gcc-interface/decl.c (gnat_to_gnu_field): Always check components
1885 declared as atomic. Move around conditionally executed code.
1886
1887 2011-10-24 Robert Dewar <dewar@adacore.com>
1888
1889 * sem.adb (Initialize): Fix bug that blew up if called a second time.
1890
1891 2011-10-24 Robert Dewar <dewar@adacore.com>
1892
1893 * tb-alvxw.c, tracebak.c, expect.c, initflt.c, tb-alvms.c,
1894 tb-ivms.c, tb-gcc.c: Update headers to GPL 3.
1895
1896 2011-10-24 Robert Dewar <dewar@adacore.com>
1897
1898 * sem_prag.adb (Analyze_Pragma, case Debug): Give proper pragma
1899 name in error msg.
1900
1901 2011-10-24 Hristian Kirtchev <kirtchev@adacore.com>
1902
1903 * gnat_rm.texi: Add an entry for restriction No_Finalization.
1904
1905 2011-10-24 Ed Schonberg <schonberg@adacore.com>
1906
1907 * sem_ch12.adb (Insert_Freeze_Node_For_Instance): If the
1908 current instance is within the one that contains the generic,
1909 the freeze node for the current one must appear in the current
1910 declarative part. Ditto if the current instance is within another
1911 package instance. In both of these cases the freeze node of the
1912 previous instance is not relevant.
1913
1914 2011-10-24 Gary Dismukes <dismukes@adacore.com>
1915
1916 * switch-m.adb (Normalize_Compiler_Switches): Add recognition
1917 of AAMP-specific switches -univ and -aamp_target.
1918
1919 2011-10-24 Robert Dewar <dewar@adacore.com>
1920
1921 * a-tienau.adb (Put): Deal properly with limited line length.
1922
1923 2011-10-24 Robert Dewar <dewar@adacore.com>
1924
1925 * sem_warn.adb, sem_ch12.adb: Minor reformatting.
1926
1927 2011-10-24 Tristan Gingold <gingold@adacore.com>
1928
1929 * gcc-interface/Makefile.in: Use GNU ld switches to generate map files
1930 on AIX.
1931
1932 2011-10-24 Ed Schonberg <schonberg@adacore.com>
1933
1934 * sem_ch12.adb (Earlier): make available globally. If both
1935 nodes have the same sloc, the freeze node that does not come
1936 from source is the later one.
1937 (True_Parent): Make available globally.
1938 (Previous_Instance): Subsidiary of
1939 Insert_Freeze_Node_For_Instance, to check whether the generic
1940 parent of the current instance is declared within a previous
1941 instance in the same unit or declarative part, in which case the
1942 freeze nodes of both instances must appear in order to prevent
1943 elaboration problems in gigi.
1944 * sem_ch12.adb (Insert_Freeze_Node_For_Instance): A stub is a
1945 freeze point, and the freeze node of a preceding instantiation
1946 must be inserted before it.
1947
1948 2011-10-24 Robert Dewar <dewar@adacore.com>
1949
1950 * checks.ads, checks.adb: Add handling of Synchronization_Check
1951 * debug.adb: Add doc for -gnatd.d and -gnatd.e (disable/enable
1952 atomic sync).
1953 * exp_ch2.adb (Expand_Entity_Reference): Set Atomic_Sync_Required
1954 flag Minor code reorganization.
1955 * opt.ads (Warn_On_Atomic_Synchronization): New switch.
1956 * par-prag.adb: Add dummy entries for pragma
1957 Disable/Enable_Atomic_Synchronization.
1958 * sem_prag.adb (Process_Suppress_Unsuppress): Handle
1959 case of Atomic_Synchronization specially (not suppressed
1960 by All_Checks, cannot be set from Source).
1961 (Pragma Disable/Enable_Atomic_Synchronization): Add processing.
1962 * sinfo.ads, sinfo.adb: Add Atomic_Sync_Required flag
1963 * snames.ads-tmpl: Add entry for Atomic_Synchronization Add
1964 entry for pragma Disable/Enable_Atomic_Synchronization
1965 * switch-c.adb: The -gnatp switch does not disable
1966 Atomic_Synchronization Add -gnatep switch to disable
1967 Atomic_Synchronization.
1968 * types.ads: Add entry for Synchronization_Check
1969 * usage.adb: Add line for -gnated switch
1970 * warnsw.adb: Settings for Warn_On_Atomic_Synchronization
1971
1972 2011-10-24 Geert Bosch <bosch@adacore.com>
1973
1974 * s-gearop.adb (Back_Substitute): Avoid overflow if matrix bounds start
1975 at Integer'First.
1976
1977 2011-10-24 Robert Dewar <dewar@adacore.com>
1978
1979 * sem_ch12.adb, s-gearop.adb: Minor reformatting.
1980
1981 2011-10-24 Robert Dewar <dewar@adacore.com>
1982
1983 * warnsw.adb: Add some missing warnings to Set_GNAT_Mode_Warnings.
1984 * warnsw.ads: Add comments to Set_GNAT_Mode_Warnings.
1985
1986 2011-10-24 Emmanuel Briot <briot@adacore.com>
1987
1988 * prj-proc.adb (Process_Expression_Variable_Decl): No special
1989 handling for Project_Path unless it is an attribute.
1990
1991 2011-10-24 Javier Miranda <miranda@adacore.com>
1992
1993 * sem_ch12.adb (Check_Hidden_Primitives): New subprogram.
1994 (Install_Hidden_Primitives): New subprogram.
1995 (Restore_Hidden_Primitives): New subprogram.
1996 (Analyze_Formal_Package_Declaration,
1997 Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
1998 Invoke Check_Hidden_Primitives after every call to
1999 Analyze_Associations, and invoke Restore_Hidden_Primitives to
2000 restore their visibility after processing the instantiation.
2001 (Instantiate_Package_Body): Install visible primitives before
2002 analyzing the instantiation and uninstall them to restore their
2003 visibility when the instantiation has been analyzed.
2004 * sem_util.ads, sem_util.adb (Add_Suffix): New subprogram
2005 (Remove_Suffix): New subprogram
2006 * sem_ch3.adb (Derive_Subprogram): When handling
2007 a derived subprogram for the instantiation of a formal derived
2008 tagged type, inherit the dispatching attributes from the actual
2009 subprogram (not from the parent type).
2010
2011 2011-10-24 Vasiliy Fofanov <fofanov@adacore.com>
2012
2013 * gnat_ugn.texi: Document explicit use of XDECGNAT library.
2014
2015 2011-10-24 Hristian Kirtchev <kirtchev@adacore.com>
2016
2017 * exp_ch3.adb (Build_Assignment): Add local constant N_Loc and
2018 update its uses.
2019 (Build_Discriminant_Assignments): Add local variable D_Loc and update
2020 its uses.
2021 (Build_Init_Statements): Add local variables Comp_Loc, Decl_Loc and
2022 Var_Loc and update their uses.
2023 (Build_Record_Init_Proc): Code reformatting.
2024 (Increment_Counter): Add formal parameter Loc.
2025 (Make_Counter): Add formal parameter Loc.
2026
2027 2011-10-24 Eric Botcazou <ebotcazou@adacore.com>
2028
2029 * sem_disp.adb (Covers_Some_Interface): Fix typo.
2030
2031 2011-10-24 Matthew Heaney <heaney@adacore.com>
2032
2033 * a-cuprqu.adb, a-cbprqu.adb (Dequeue_Only_High_Priority): Fix sense
2034 of predicate.
2035
2036 2011-10-24 Yannick Moy <moy@adacore.com>
2037
2038 * sem_ch13.adb (Analyze_Aspect_Specifications/Aspect_Test_Case):
2039 Translate arguments in positional notation into pragma argument
2040 association arguments for the generated pragma.
2041
2042 2011-10-24 Arnaud Charlet <charlet@adacore.com>
2043
2044 * exp_ch5.adb: Fix minor typo.
2045
2046 2011-10-24 Ed Schonberg <schonberg@adacore.com>
2047
2048 * sem_ch3.adb (Is_Visible_Component): Refine predicate for
2049 the case of a component reference in an instance body, when the
2050 enclosing type is private.
2051
2052 2011-10-24 Sergey Rybin <rybin@adacore.com frybin>
2053
2054 * gnat_ugn.texi: For gnatelim, move the note about using the GNAT
2055 driver for getting the project support into gnatelim section.
2056
2057 2011-10-24 Robert Dewar <dewar@adacore.com>
2058
2059 * gnat_rm.texi: Minor correction to documentation on address clause.
2060
2061 2011-10-24 Hristian Kirtchev <kirtchev@adacore.com>
2062
2063 * s-finmas.adb (Attach): Synchronize and call the unprotected version.
2064 (Attach_Unprotected): New routine.
2065 (Delete_Finalize_Address): Removed.
2066 (Delete_Finalize_Address_Unprotected): New routine.
2067 (Detach): Synchronize and call the unprotected version.
2068 (Detach_Unprotected): Remove locking.
2069 (Finalize): Add various comment on synchronization. Lock the critical
2070 region and call the unprotected versions of routines.
2071 (Finalize_Address): Removed.
2072 (Finalize_Address_Unprotected): New routine.
2073 (Set_Finalize_Address): Synchronize and call
2074 the unprotected version.
2075 (Set_Finalize_Address_Unprotected): New routine.
2076 (Set_Heterogeneous_Finalize_Address): Removed.
2077 (Set_Heterogeneous_Finalize_Address_Unprotected): New routine.
2078 (Set_Is_Heterogeneous): Add comment on synchronization and
2079 locking.
2080 * s-finmas.ads: Flag Finalization_Started is no longer atomic
2081 because synchronization uses task locking / unlocking.
2082 (Attach): Add comment on usage.
2083 (Attach_Unprotected): New routine.
2084 (Delete_Finalize_Address): Renamed to
2085 Delete_Finalize_Address_Unprotected.
2086 (Detach): Add comment on usage.
2087 (Detach_Unprotected): New routine.
2088 (Finalize_Address): Renamed to Finalize_Address_Unprotected.
2089 (Set_Finalize_Address): Add comment on usage.
2090 (Set_Finalize_Address_Unprotected): New routine.
2091 (Set_Heterogeneous_Finalize_Address): Renamed to
2092 Set_Heterogeneous_Finalize_Address_Unprotected.
2093 * s-stposu.adb (Allocate_Any_Controlled): Add local variable
2094 Allocation_Locked. Add various comments on synchronization. Lock
2095 the critical region and call the unprotected version of
2096 routines.
2097 (Deallocate_Any_Controlled): Add various comments on
2098 synchronization. Lock the critical region and call the unprotected
2099 version of routines.
2100
2101 2011-10-24 Ed Schonberg <schonberg@adacore.com>
2102
2103 * sem_ch3.adb (Set_Fixed_Range): The bounds of a fixed point type
2104 are universal and must carry the corresponding type.
2105 * sem_eval.adb (Check_Non_Static_Context): If the type of the
2106 expression is universal real, as may be the case for a fixed point
2107 expression with constant operands in the context of a conversion,
2108 there is nothing to check.
2109 * s-finmas.adb: Minor reformatting
2110
2111 2011-10-23 Eric Botcazou <ebotcazou@adacore.com>
2112
2113 * gcc-interface/decl.c (create_concat_name): Add explicit cast.
2114
2115 2011-10-20 Eric Botcazou <ebotcazou@adacore.com>
2116
2117 * gcc-interface/Make-lang.in (GNATLIBFLAGS, GNATLIBCFLAGS, THREAD_KIND,
2118 TRACE): Reintroduce.
2119 (ada/tracebak.o, ada/targext.o, ada/cio.o, ada/init.o,
2120 ada/initialize.o, ada/raise.o): Reintroduce explicit compilation rules.
2121
2122 2011-10-20 Eric Botcazou <ebotcazou@adacore.com>
2123
2124 * gcc-interface/trans.c (lhs_or_actual_p): New predicate.
2125 (unchecked_conversion_nop): Use it.
2126 (gnat_to_gnu): Likewise.
2127
2128 2011-10-20 Eric Botcazou <ebotcazou@adacore.com>
2129
2130 * back_end.adb (Call_Back_End): Pass the maximum logical line number
2131 instead of the maximum physical line number to gigi.
2132 * gcc-interface/trans.c (Sloc_to_locus): Cope with line zero.
2133
2134 2011-10-16 Tom Tromey <tromey@redhat.com>
2135 Dodji Seketeli <dodji@redhat.com>
2136
2137 * gcc-interface/trans.c (gigi, Sloc_to_locus): Adjust to use the new
2138 public ordinary map interface.
2139
2140 2011-10-16 Tristan Gingold <gingold@adacore.com>
2141
2142 * link.c (_AIX): Add support for GNU ld.
2143
2144 2011-10-16 Fedor Rybin <frybin@adacore.com>
2145
2146 * gnat_ugn.texi: Fixing gnattest example names in the doc.
2147 Adding explanation to additional tests usage.
2148
2149 2011-10-16 Robert Dewar <dewar@adacore.com>
2150
2151 * exp_ch6.adb, sem_ch6.adb: Minor reformatting.
2152
2153 2011-10-16 Eric Botcazou <ebotcazou@adacore.com>
2154
2155 * a-convec.adb: Fix minor inconsistencies.
2156
2157 2011-10-16 Matthew Heaney <heaney@adacore.com>
2158
2159 * a-cusyqu.ads, a-cbsyqu.ads, a-cuprqu.ads, a-cbprqu.ads (package
2160 Implementation): Specify pragma Implementation_Defined.
2161
2162 2011-10-15 Nicolas Roche <roche@adacore.com>
2163
2164 * gcc-interface/lang-specs.h: Ensure -mrtp switch is passed when using
2165 either rtp-smp or ravenscar-cert-rtp runtimes.
2166
2167 2011-10-15 Bob Duff <duff@adacore.com>
2168
2169 * exp_ch6.adb (Add_Unconstrained_Actuals_To_Build_In_Place_Call):
2170 Do not create a pool formal on unless RE_Root_Storage_Pool_Ptr
2171 is available.
2172 (Expand_N_Extended_Return_Statement): Do not create a renaming of the
2173 build-in-place pool parameter unless RE_Root_Storage_Pool_Ptr is
2174 available.
2175 (Make_Build_In_Place_Call_In_Allocator): Add the user-defined
2176 pool only if RE_Root_Storage_Pool_Ptr is available.
2177 (Make_Build_In_Place_Call_In_Object_Declaration): Do not add a
2178 pool actual unless RE_Root_Storage_Pool_Ptr is available.
2179 * sem_ch6.adb (Create_Extra_Formals): Add build-in-place pool
2180 formal only if RE_Root_Storage_Pool_Ptr is available.
2181
2182 2011-10-15 Matthew Heaney <heaney@adacore.com>
2183
2184 * a-cusyqu.ads, a-cbsyqu.ads, a-cuprqu.ads, a-cbprqu.ads (Queue
2185 type): Specify Priority aspect for protected type.
2186
2187 2011-10-14 Ed Schonberg <schonberg@adacore.com>
2188
2189 * exp_disp.adb (Check_Premature_Freezing): If an untagged type
2190 is a generic actual, it is a subtype of a type that was frozen
2191 by the instantiation, and even if not marked frozen it does not
2192 affect the construction of the dispatch table.
2193
2194 2011-10-14 Robert Dewar <dewar@adacore.com>
2195
2196 * make.adb, mlib-utl.adb, sem_util.adb, sem_ch4.adb: Minor code
2197 reformatting.
2198 * s-rident.ads: Add missing Compiler_Unit pragma.
2199
2200 2011-10-14 Gary Dismukes <dismukes@adacore.com>
2201
2202 * sem_res.adb: Minor reformatting.
2203
2204 2011-10-14 Hristian Kirtchev <kirtchev@adacore.com>
2205
2206 * exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call):
2207 Code and comment reformatting. Use BIP_Task_Master
2208 when creating a _master.
2209 (BIP_Formal_Suffix): Code reformatting. Correct the case for
2210 BIP_Task_Master.
2211 (Make_Build_In_Place_Call_In_Object_Declaration): Use
2212 BIP_Task_Master when creating a reference to the enclosing
2213 function's _master formal.
2214 (Move_Activation_Chain): Use BIP_Task_Master when creating a reference
2215 to the _master.
2216 * exp_ch6.ads: Change BIP_Master to BIP_Task_Master.
2217 (Needs_BIP_Finalization_Master): Alphabetized.
2218 * sem_ch6.adb (Create_Extra_Formals): Update the usage of
2219 BIP_Task_Master.
2220
2221 2011-10-14 Ed Schonberg <schonberg@adacore.com>
2222
2223 * par-ch6.adb (P_Return_Object_Declaration): In Ada 2012 mode,
2224 reject an aliased keyword on the object declaration of an extended
2225 return statement. In older versions of the language indicate
2226 that this is illegal in the standard.
2227
2228 2011-10-14 Pascal Obry <obry@adacore.com>
2229
2230 * sem_util.adb, sem_ch4.adb: Minor reformatting.
2231
2232 2011-10-14 Ed Schonberg <schonberg@adacore.com>
2233
2234 * sem_ch13.adb: Recognize properly procedure calls that are
2235 transformed into code statements.
2236
2237 2011-10-14 Vincent Celier <celier@adacore.com>
2238
2239 * projects.texi: Minor fix in project example.
2240
2241 2011-10-14 Ed Schonberg <schonberg@adacore.com>
2242
2243 * sem_util.adb: Return objects are aliased if their type is
2244 immutably limited as per AI05-0053.
2245
2246 2011-10-14 Gary Dismukes <dismukes@adacore.com>
2247
2248 * exp_ch4.adb (Expand_N_Op_And): Remove Short_Circuit_And_Or
2249 expansion code (moved to sem_res) (Expand_N_Op_Or): Remove
2250 Short_Circuit_And_Or expansion code (moved to sem_res).
2251 * sem_res.adb (Resolve_Logical_Op): Add code to rewrite Boolean
2252 "and" and "or" operators as short-circuit "and then" and "or
2253 else", when pragma Short_Circuit_And_Or is active.
2254
2255 2011-10-13 Robert Dewar <dewar@adacore.com>
2256
2257 * sem_ch9.adb, sem_util.adb, sem_util.ads, exp_ch6.adb, sem_ch4.adb,
2258 sem_ch6.adb, exp_ch3.adb: Minor reformatting.
2259
2260 2011-10-13 Arnaud Charlet <charlet@adacore.com>
2261
2262 * Makefile.rtl (GNATRTL_NONTASKING_OBJS): Add a-ngcoar.o.
2263
2264 2011-10-13 Jerome Guitton <guitton@adacore.com>
2265
2266 * sysdep.c (__gnat_get_task_options): Re-enable VX_SPE_TASK on vThreads
2267
2268 2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
2269
2270 * a-convec.ads (Cursor): Minor reformatting.
2271 * a-convec.adb (Next): Fix minor inconsistencies.
2272 (Previous): Likewise.
2273
2274 2011-10-13 Ed Schonberg <schonberg@adacore.com>
2275
2276 * sem_util.ads, sem_util.adb (Available_Full_View_Of_Component):
2277 New predicate to determine whether some operations on an array
2278 type are available when the full view of its component may differ
2279 from the view of the point of the array declaration.
2280 * sem_ch4.adb (Find_Equality_Types): Use
2281 Available_Full_View_Of_Component.
2282 * sem_type.adb (Valid_Boolean_Arg, Valid_Comparison_Arg): Ditto
2283
2284 2011-10-13 Ed Schonberg <schonberg@adacore.com>
2285
2286 * sem_ch9.adb: Analyze aspects while discriminants of protected
2287 type are visible.
2288
2289 2011-10-13 Geert Bosch <bosch@adacore.com>
2290
2291 * Makefile.rtl (GNATRTL_TASKING_OBJECTS): Add
2292 a-nlcoar.o, a-nllcar.o, a-nucoar.o and s-gearop.o, as these no
2293 longer depend on an external library.
2294 * gcc-interface/Makefile.in (GNATRTL_LINEARALGEBRA_OBJS): Remove
2295 a-nlcoar.o, a-nllcar.o, a-nucoar.o and s-gearop.o.
2296 Update dependencies.
2297 * gcc-interface/Make-lang.in: Update dependencies.
2298
2299 2011-10-13 Cyrille Comar <comar@adacore.com>
2300
2301 * gnat_ugn.texi: Minor editing.
2302
2303 2011-10-13 Vincent Celier <celier@adacore.com>
2304
2305 * projects.texi: Add documentation on packages and attributes
2306 that are inherited from a project being extended into the
2307 extended project.
2308
2309 2011-10-13 Hristian Kirtchev <kirtchev@adacore.com>
2310
2311 * exp_ch3.adb (Build_Master): Rewritten.
2312 (Expand_N_Full_Type_Declaration): Reformat the declarative
2313 region. Update the call to Build_Master_Renaming.
2314 (Expand_Previous_Access_Type): Rewritten.
2315 * exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call):
2316 Add local constant Result_Subt and update related usage.
2317 (Expand_N_Extended_Return_Statement): Add local constant
2318 Result_Subt and update related usage.
2319 * exp_ch9.adb (Build_Activation_Chain): Rewritten to use the
2320 new context detection mechanism.
2321 (Build_Class_Wide_Master):
2322 Use Insert_Action to add the renaming into the tree.
2323 (Build_Master_Entity): Rewritten to use the new context detection
2324 mechanism.
2325 (Build_Master_Renaming): Add formal parameter Ins_Nod
2326 and related usage. Use Insert_Action to add the renaming into the
2327 tree.
2328 (Find_Enclosing_Context): New subsidiary routine. Rather
2329 than relying on enclosing scopes, this routine looks at the
2330 tree structure to figure out the proper context for a _master
2331 or a _chain. This approach eliminates the issues with transient
2332 scopes which have not been converted into blocks.
2333 * exp_ch9.ads (Build_Master_Entity): Change parameter profile
2334 to better reflect the new usage. Update the related comment.
2335 (Build_Master_Renaming): Add formal parameter Ins_Nod. Update
2336 the comment on usage.
2337 * sem_ch3.adb (Access_Definition): Update the calls to
2338 Build_Master_Entity and Build_Master_Renaming.
2339 * sem_ch6.adb (Create_Extra_Formals): Add local variable
2340 Full_Subt. Code reformatting.
2341 * sem_util.adb (Is_Iterator): Alphabetized.
2342 (Is_LHS): Alphabetized.
2343 (Is_Limited_Class_Wide_Type): New routine.
2344 * sem_util.ads (Is_Limited_Class_Wide_Type): New routine.
2345
2346 2011-10-13 Geert Bosch <bosch@adacore.com>
2347
2348 * a-ngrear.adb (Solve): Make generic and move to
2349 System.Generic_Array_Operations.
2350 * s-gearop.ads (Matrix_Vector_Solution, Matrix_Matrix_Solution):
2351 New generic solvers to compute a vector resp. matrix Y such
2352 that A * Y = X, approximately.
2353 * s-gearop.adb (Matrix_Vector_Solution, Matrix_Matrix_Solution):
2354 Implement using Forward_Eliminate and Back_Substitute
2355 * a-ngcoar.adb: Reimplement in pure Ada to remove dependencies
2356 on BLAS and LAPACK.
2357 * a-ngcoar.ads ("abs"): Fix return type to be real.
2358
2359 2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
2360
2361 PR ada/50589
2362 * s-linux-alpha.ads: Do not "with" Interfaces.C.
2363 * s-linux-sparc.ads: Likewise.
2364
2365 2011-10-13 Geert Bosch <bosch@adacore.com>
2366
2367 * s-gearop.ads (Forward_Eliminate): Add "abs" formal function
2368 returning a Real.
2369 * s-gearop.adb (Forward_Eliminate): Remove local "abs" function
2370 and use formal.
2371 * a-ngrear.adb (Forward_Eliminate): Adjust instantiation for
2372 new profile.
2373
2374 2011-10-13 Geert Bosch <bosch@adacore.com>
2375
2376 * a-ngrear.adb, s-gearop.adb, s-gearop.ads (Sqrt): Make generic and
2377 move to System.Generic_Array_Operations.
2378
2379 2011-10-13 Geert Bosch <bosch@adacore.com>
2380
2381 * a-ngrear.adb ("abs"): Adjust for modified L2_Norm generic
2382 * s-gearop.ads (L2_Norm): Change profile to be suitable for
2383 Complex_Vector
2384 * s-gearop.adb (L2_Norm): Reimplement using direct definition,
2385 not inner product
2386
2387 2011-10-13 Robert Dewar <dewar@adacore.com>
2388
2389 * exp_ch5.adb, sem_ch3.adb, impunit.adb, impunit.ads, sem_type.adb,
2390 prj-proc.adb, exp_ch9.adb, s-regpat.adb, sem_ch10.adb, sem_prag.adb,
2391 sem_ch12.adb, freeze.adb, sem_attr.adb, sem_attr.ads, gnatlink.adb,
2392 par-ch6.adb, exp_ch6.adb, sem_ch4.adb, sem_ch6.adb, sem_ch8.adb,
2393 par-util.adb, sem_ch13.adb, lib-xref.adb, g-trasym.adb, g-trasym.ads,
2394 exp_aggr.adb, s-taprop-posix.adb: Minor reformatting.
2395
2396 2011-10-13 Geert Bosch <bosch@adacore.com>
2397
2398 * s-gearop.adb: Minor comment additions.
2399
2400 2011-10-13 Fedor Rybin <frybin@adacore.com>
2401
2402 * gnat_ugn.texi: Add gnattest section.
2403
2404 2011-10-13 Ed Schonberg <schonberg@adacore.com>
2405
2406 * freeze.adb: Do not create body of renaming if declaration has
2407 errors.
2408
2409 2011-10-13 Olivier Hainque <hainque@adacore.com>
2410
2411 * init.c (__gnat_error_handler - vxworks case): Restrict sigtramp calls
2412 further, to the ppc+kernel case only.
2413
2414 2011-10-13 Hristian Kirtchev <kirtchev@adacore.com>
2415
2416 * exp_ch4.adb (Expand_N_Allocator): Comment reformatting.
2417 * exp_ch6.adb (Add_Unconstrained_Actuals_To_Build_In_Place_Call):
2418 Do not create a pool formal on .NET/JVM.
2419 (Expand_N_Extended_Return_Statement): Alphabetize local
2420 variables. Do not create a renaming of the build-in-place pool
2421 parameter on .NET/JVM. (Make_Build_In_Place_Call_In_Allocator):
2422 Add the user-defined pool only on non-VM targets.
2423 (Make_Build_In_Place_Call_In_Object_Declaration): Alphabetize
2424 local variables. Do not add a pool actual on .NET/JVM.
2425 * sem_ch6.adb: Add with and use clause for Targparm.
2426 (Create_Extra_Formals): Add build-in-place pool formal only on
2427 non-VM targets.
2428 * rtsfind.ads: Alphabetize entries.
2429
2430 2011-10-13 Sergey Rybin <rybin@adacore.com>
2431
2432 * gnat_ugn.texi: Minor correction.
2433
2434 2011-10-13 Ed Schonberg <schonberg@adacore.com>
2435
2436 * sem_ch8.adb: Minor error message improvement.
2437
2438 2011-10-13 Robert Dewar <dewar@adacore.com>
2439
2440 * a-cbprqu.adb, a-ciorma.adb, exp_ch3.adb: Minor reformatting.
2441
2442 2011-10-13 Gary Dismukes <dismukes@adacore.com>
2443
2444 * exp_ch5.adb (Expand_N_Loop_Statement): For the transformation
2445 of a for loop for an enumeration type with an enumeration rep
2446 clause, which involves moving the original loop parameter into
2447 a nested block, the loop parameter's entity must be removed from
2448 the entity list of the loop scope.
2449
2450 2011-10-13 Bob Duff <duff@adacore.com>
2451
2452 * exp_ch6.ads (BIP_Storage_Pool): New "extra implicit parameter"
2453 that gets passed in the same cases where BIP_Alloc_Form is passed
2454 (caller-unknown-size results). BIP_Storage_Pool is used when
2455 BIP_Alloc_Form = User_Storage_Pool. In that case, a pointer
2456 to the user-defined storage pool is passed at the call site,
2457 and this pool is used in callee to allocate the result.
2458 * exp_ch6.adb (Add_Unconstrained_Actuals_To_Build_In_Place_Call): New
2459 version of Add_Alloc_Form_Actual_To_Build_In_Place_Call. Passes
2460 the additional BIP_Storage_Pool actual.
2461 (Expand_N_Extended_Return_Statement): Allocate the function
2462 result using the user-defined storage pool, if BIP_Alloc_Form =
2463 User_Storage_Pool.
2464 * sem_ch6.adb: Add the "extra formal" for BIP_Storage_Pool.
2465 * exp_ch4.adb: Don't overwrite storage pool set by
2466 Expand_N_Extended_Return_Statement.
2467 * s-stopoo.ads, rtsfind.ads (Root_Storage_Pool_Ptr): New type,
2468 for use in build-in-place function calls within allocators
2469 where the access type has a user-defined storage pool.
2470
2471 2011-10-13 Sergey Rybin <rybin@adacore.com>
2472
2473 * gnat_ugn.texi, vms_data.ads: Add an option to control enumeration
2474 literal casing.
2475
2476 2011-10-13 Nicolas Roche <roche@adacore.com>
2477
2478 * gnatlink.adb: Ensure that -mrtp is passed when runtime name ends
2479 with 'rtp'.
2480
2481 2011-10-13 Ed Schonberg <schonberg@adacore.com>
2482
2483 * sem_prag.adb (Analyze_Pragma, case Unchecked_Union): Take into
2484 account that an unchecked union type can be limited.
2485
2486 2011-10-13 Olivier Hainque <hainque@adacore.com>
2487
2488 * init.c (__gnat_error_handler) <VxWorks version>: Add comments on
2489 the use of the signal trampoline for PPC in the sjlj case as well.
2490 Add legitimate casts, preventing compile time warnings on the
2491 (sighandler *) profile.
2492
2493 2011-10-13 Yannick Moy <moy@adacore.com>
2494
2495 * sem_aggr.adb (Resolve_Aggr_Expr): Always perform semantic analysis
2496 in Alfa mode.
2497
2498 2011-10-13 Ed Schonberg <schonberg@adacore.com>
2499
2500 * sem_ch3.adb (OK_For_Limited_Init_In_05): Conditional and case
2501 expressions are legal limited return values if each one of their
2502 dependent expressions are legal.
2503
2504 2011-10-13 Ed Schonberg <schonberg@adacore.com>
2505
2506 * sem_ch6.adb (Analyze_Procedure_Call_Statement): In Ada 2012 mode,
2507 if the prefix of the call is a qualified expression, rewrite as
2508 a code statement.
2509 * sem_ch13.adb (Analyze_Code_Statement): In Ada 2012 mode, the
2510 code statement is legal if it is a rewriting of a procedure call.
2511
2512 2011-10-13 Ed Schonberg <schonberg@adacore.com>
2513
2514 * exp_aggr.adb (Flatten): If a component association has a box,
2515 assume that aggregate is not static.
2516 (Safe_Aggregate): If a component association in a non-limited
2517 aggregate has a box, assume that it cannot be expanded in place.
2518
2519 2011-10-13 Vincent Celier <celier@adacore.com>
2520
2521 * prj-conf.adb (Get_Or_Create_Configuration_File): Call
2522 Process_Project_Tree_Phase_1 with Packages_To_Check.
2523 (Process_Project_And_Apply_Config): Ditto
2524 * prj-part.ads, prj-part.adb, prj-pars.ads, prj-pars.adb (Parse):
2525 Remove default for argument Packages_To_Check.
2526 * prj-proc.adb (Recursive_Process): New argument
2527 Packages_To_Check.
2528 (Process): Ditto.
2529 (Process_Project_Tree_Phase_1): Ditto.
2530 (Recursive_Project.Process_Aggregated_Projects): Call
2531 Prj.Part.Parse and Process_Project_Tree_Phase_1 with
2532 Packages_To_Check.
2533 * prj-proc.ads (Process): New argument Packages_To_Check
2534 (Process_Project_Tree_Phase_1): Ditto
2535
2536 2011-10-13 Arnaud Charlet <charlet@adacore.com>
2537
2538 * gcc-interface/Makefile.in: Fix typo.
2539
2540 2011-10-13 Ed Schonberg <schonberg@adacore.com>
2541
2542 * sem_ch12.adb (Analyze_Formal_{Floating_Type,
2543 Signed_Integer_Type, Decimal_Fixed_Point_Type, Discrete_Type}):
2544 Use sloc of defining identifier of farmal type declaration,
2545 as sloc of generated internal entity, to prevent misplaced
2546 references in ali.
2547
2548 2011-10-13 Ed Schonberg <schonberg@adacore.com>
2549
2550 * sem_intr.adb (Check_Intrinsic_Operator): Check that type
2551 is fully defined before checking that it is a numeric type.
2552
2553 2011-10-13 Ed Schonberg <schonberg@adacore.com>
2554
2555 * sem_aggr.adb (Resolve_Record_Aggregate): If a component
2556 association for component X has a box, then X is covered in the
2557 aggregate even if there is not default value for X in the type
2558 declaration, and X has to be default-initialized.
2559
2560 2011-10-13 Ed Schonberg <schonberg@adacore.com>
2561
2562 * sem_attr.adb (Check_Enum_Image, Analyze_Attribute case 'Value): Mark
2563 literals as referenced only if reference is in current source unit.
2564
2565 2011-10-13 Matthew Heaney <heaney@adacore.com>
2566
2567 * a-csquin.ads (Enque, Dequeue): Mark interface operations as entries.
2568
2569 2011-10-13 Olivier Hainque <hainque@adacore.com>
2570
2571 * sigtramp.h: New file. Prototype and spec of the signal
2572 trampoline to be called by an established handler to provide
2573 dwarf call frame info before the real signal processing code.
2574 * sigtramp-ppcvxw.c: New file. Implementation of the signal
2575 trampoline for ppc-vxworks.
2576 * init.c (vxworks section): Use it for ppc.
2577
2578 2011-10-13 Thomas Quinot <quinot@adacore.com>
2579
2580 * par-ch2.adb, par.adb, par-util.adb, par-ch3.adb
2581 (Check_Future_Identifier): New subprogram,
2582 factors duplicated code from Par.Ch2.P_Identifier and
2583 Par.Ch3.P_Defining_Identifier.
2584
2585 2011-10-13 Thomas Quinot <quinot@adacore.com>
2586
2587 * s-taprop-posix.adb (Initialize): Always raise Storage_Error
2588 if we fail to initialize CV attributes or CV.
2589
2590 2011-10-13 Thomas Quinot <quinot@adacore.com>
2591
2592 * s-tasren.adb (Timed_Selective_Wait, case
2593 Accept_Alternative_Selected): Use Defer_Abort_Nestable, since
2594 we know abortion is already deferred.
2595
2596 2011-10-13 Hristian Kirtchev <kirtchev@adacore.com>
2597
2598 * exp_ch3.adb (Build_Class_Wide_Master): Moved to exp_ch9.
2599 (Build_Master_Renaming (function)): Removed.
2600 (Build_Master_Renaming (procedure)): Moved to exp_ch9.
2601 (Expand_Full_Type_Declaration): Alphabetize
2602 variables. Reformatting of code and comments. Rewrite the
2603 section on processing of anonymous access-to-task types in
2604 record components.
2605 * exp_ch3.ads (Build_Class_Wide_Master): Moved to exp_ch9.
2606 (Build_Master_Renaming): Moved to exp_ch9.
2607 * exp_ch9.adb (Build_Class_Wide_Master): Moved from exp_ch3.
2608 (Build_Master_Entity): Add formal parameter
2609 Use_Current. Reformatting of code and comments.
2610 (Build_Master_Renaming): Moved from exp_ch3.
2611 * exp_ch9.ads (Build_Class_Wide_Master): Moved from
2612 exp_ch3. Update comment on usage.
2613 (Build_Master_Entity):
2614 Add formal parameter Use_Current. Update comment on usage.
2615 (Build_Master_Renaming): Moved from exp_ch3.
2616 * sem_ch3.adb (Access_Definition): Remove redundant code to
2617 create a _master and a renaming.
2618
2619 2011-10-13 Ed Schonberg <schonberg@adacore.com>
2620
2621 * lib-xref.adb: Do no emit reference to overridden operation,
2622 if it is internally generated.
2623
2624 2011-10-13 Vincent Celier <celier@adacore.com>
2625
2626 * bindgen.adb: Remove any processing related to g-trasym
2627 * Makefile.rtl: Add g-trasym.o to GNATRTL_NONTASKING_OBJS
2628 * mlib-prj.adb: Remove any processing related to g-trasym.
2629
2630 2011-10-12 Eric Botcazou <ebotcazou@adacore.com>
2631
2632 * sem_util.adb (Denotes_Same_Prefix): Fix fatal warning.
2633 * gcc-interface/Make-lang.in (WARN_ADAFLAGS): New.
2634 (ALL_ADAFLAGS): Include WARN_ADAFLAGS.
2635 (ADA_FLAGS_TO_PASS): Likewise.
2636 (COMMON_FLAGS_TO_PASS): New.
2637 (ADA_TOOLS_FLAGS_TO_PASS): Use COMMON_FLAGS_TO_PASS. In the regular
2638 native case, also use FLAGS_TO_PASS and ADA_FLAGS_TO_PASS.
2639 (gnatlib): Use COMMON_FLAGS_TO_PASS.
2640 (ada.install-common): Likewise.
2641 (install-gnatlib): Likewise.
2642 (install-gnatlib-obj): Likewise.
2643 (gnattools): Use ADA_TOOLS_FLAGS_TO_PASS for gnattools1 as well.
2644 (gnat-cross): Delete.
2645 (gnatboot): Likewise.
2646 (gnatboot2): Likewise.
2647 (gnatboot3): Likewise.
2648 (gnatstage1): Likewise.
2649 (gnatstage2): Likewise.
2650 * gcc-interface/Makefile.in (SOME_ADAFLAGS): Likewise.
2651 (MOST_ADAFLAGS): Likewise.
2652 (LOOSE_CFLAGS): Likewise.
2653 (gnat-cross): Likewise.
2654 (GNATLIBFLAGS): Add -W -Wall.
2655 (GNATLIBCFLAGS_FOR_C): Likewise.
2656 * gcc-interface/lang.opt: Remove C-specific warnings. Add doc lines.
2657 * gcc-interface/misc.c (gnat_handle_option): Remove obsolete cases.
2658
2659 2011-10-12 Eric Botcazou <ebotcazou@adacore.com>
2660
2661 * gcc-interface/trans.c (Attribute_to_gnu): Use remove_conversions.
2662 (push_range_check_info): Likewise.
2663 (gnat_to_gnu) <N_Code_Statement>: Likewise.
2664 * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: Likewise.
2665 (gnat_invariant_expr): Likewise.
2666 * gcc-interface/utils.c (compute_related_constant): Likewise.
2667 (max_size): Fix handling of SAVE_EXPR.
2668 (remove_conversions): Fix formatting.
2669
2670 2011-10-12 Eric Botcazou <ebotcazou@adacore.com>
2671
2672 * gcc-interface/ada-tree.h (DECL_LOOP_PARM_P): New flag.
2673 (DECL_INDUCTION_VAR): New macro.
2674 (SET_DECL_INDUCTION_VAR): Likewise.
2675 * gcc-interface/gigi.h (convert_to_index_type): Declare.
2676 (gnat_invariant_expr): Likewise.
2677 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: If this is a loop
2678 parameter, set DECL_LOOP_PARM_P on it.
2679 * gcc-interface/misc.c (gnat_print_decl) <VAR_DECL>: If DECL_LOOP_PARM_P
2680 is set, print DECL_INDUCTION_VAR instead of DECL_RENAMED_OBJECT.
2681 * gcc-interface/trans.c (gnu_loop_label_stack): Delete.
2682 (struct range_check_info_d): New type.
2683 (struct loop_info_d): Likewise.
2684 (gnu_loop_stack): New stack.
2685 (Identifier_to_gnu): Set TREE_READONLY flag on the first dereference
2686 built for a by-double-ref read-only parameter. If DECL_LOOP_PARM_P
2687 is set, do not test DECL_RENAMED_OBJECT.
2688 (push_range_check_info): New function.
2689 (Loop_Statement_to_gnu): Push a new struct loop_info_d instead of just
2690 the label. Reference the label and the iteration variable from it.
2691 Build the special induction variable in the unsigned version of the
2692 size type, if it is larger than the base type. And attach it to the
2693 iteration variable if the latter isn't by-ref. In the iteration scheme
2694 case, initialize the invariant conditions in front of the loop if
2695 deemed profitable. Use gnu_loop_stack.
2696 (gnat_to_gnu) <N_Exit_Statement>: Use gnu_loop_stack.
2697 <N_Raise_Constraint_Error>: Always process the reason. In the range
2698 check and related cases, and if loop unswitching is enabled, compute
2699 invariant conditions and push this information onto the stack.
2700 Do not translate again the condition if it has been already translated.
2701 * gcc-interface/utils.c (record_global_renaming_pointer): Assert that
2702 DECL_LOOP_PARM_P isn't set.
2703 (convert_to_index_type): New function.
2704 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Use it in order
2705 to convert the index from the base index type to sizetype.
2706 (gnat_invariant_expr): New function.
2707
2708 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2709
2710 * gcc-interface/utils.c (def_builtin_1): Delete old interface with
2711 two parallel arrays to hold standard builtin declarations, and
2712 replace it with a function based interface that can support
2713 creating builtins on the fly in the future.
2714 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Ditto.
2715 (gnat_to_gnu): Ditto.
2716
2717 2011-10-07 Eric Botcazou <ebotcazou@adacore.com>
2718
2719 PR lto/50492
2720 * gcc-interface/gigi.h (gnat_pushdecl): Adjust comment.
2721 * gcc-interface/utils.c (global_context): New variable.
2722 (gnat_pushdecl): Initialize it and set it as the DECL_CONTEXT of DECLs
2723 that are either public external or at top level. Use "No" macro.
2724 (end_subprog_body): Call decl_function_context.
2725 (rest_of_subprog_body_compilation): Likewise.
2726
2727 2011-10-07 Eric Botcazou <ebotcazou@adacore.com>
2728
2729 * gcc-interface/gigi.h (gnat_useless_type_conversion): Declare.
2730 (rest_of_subprog_body_compilation): Likewise.
2731 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: For renaming,
2732 test for useless conversions by means of gnat_useless_type_conversion.
2733 * gcc-interface/trans.c: Include bitmap.h and cgraph.h.
2734 (language_function): Add named_ret_val and other_ret_val.
2735 (f_named_ret_val): New macro.
2736 (f_other_ret_val): Likewise.
2737 (gigi): Call rest_of_subprog_body_compilation.
2738 (struct nrv_data): New structure.
2739 (is_nrv_p): New predicate.
2740 (prune_nrv_r): New helper function.
2741 (prune_nrv_in_block): New function.
2742 (finalize_nrv_r): New helper function.
2743 (finalize_nrv): New function.
2744 (return_value_ok_for_nrv_p): New predicate.
2745 (build_return_expr): If optimization is enabled, record candidates for
2746 the Named Return Value optimization.
2747 (build_function_stub): Call rest_of_subprog_body_compilation.
2748 (Subprogram_Body_to_gnu): If optimization is enabled and there are
2749 candidates, finalize the Named Return Value optimization.
2750 Call rest_of_subprog_body_compilation.
2751 (call_to_gnu): At the end, if a return value is needed, simplify the
2752 result before wrapping it up in a COMPOUND_EXPR.
2753 * gcc-interface/utils.c (end_subprog_body): Split into...
2754 (rest_of_subprog_body_compilation): ...this. New function.
2755 (gnat_useless_type_conversion): Likewise.
2756
2757 2011-10-06 Thomas Quinot <quinot@adacore.com>
2758
2759 * einfo.ads, exp_attr.adb, exp_ch3.adb, exp_ch4.adb, exp_ch7.adb,
2760 exp_ch9.adb, exp_ch9.ads, exp_strm.adb, exp_util.adb, freeze.adb,
2761 g-debpoo.ads, opt.ads, par-ch12.adb, par-ch2.adb, par-ch3.adb,
2762 par-ch5.adb, par-ch6.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
2763 sem_ch10.adb, sem_ch12.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
2764 sem_ch6.adb, sem_intr.adb, sem_res.ads, sem_type.adb, sem_util.adb,
2765 s-regpat.adb, s-tpopde-vms.ads: Minor reformatting.
2766 * s-osinte-freebsd.ads: Fix for tasking failures on FreeBSD.
2767
2768 2011-10-06 Ed Schonberg <schonberg@adacore.com>
2769
2770 * a-cihase.adb, a-ciorma.adb: Avoid accessibility checks in container
2771 references.
2772
2773 2011-10-06 Matthew Heaney <heaney@adacore.com>
2774
2775 * a-cuprqu.ads, a-cuprqu.adb, a-cbprqu.ads, a-cbprqu.adb
2776 (Dequeue_Only_High_Priority): Protected procedure now implemented.
2777
2778 2011-10-06 Vincent Celier <celier@adacore.com>
2779
2780 * g-trasym.adb: Replace old implementation with the default
2781 implementation that returns list of addresses as "0x...".
2782 * g-trasym.ads: Update the list of platforms with the full
2783 capability. Indicate that there is a default implementation
2784 for other platforms.
2785 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: Remove.
2786 * gcc-interface/Makefile.in: Remove g-trasym-unimplemented, as there
2787 is now a default implementation for all platforms without the full
2788 capability.
2789
2790 2011-10-06 Robert Dewar <dewar@adacore.com>
2791
2792 * a-ciorse.adb, a-cihase.adb, a-cihase.ads, a-coorse.adb,
2793 a-cborse.adb, a-comutr.adb, a-ciorma.adb, a-cbmutr.adb,
2794 a-cbmutr.ads, a-cbhase.adb, a-cbhase.ads: Minor reformatting and code
2795 reorganization (use conditional expressions).
2796
2797 2011-10-06 Robert Dewar <dewar@adacore.com>
2798
2799 * sem_res.adb (Resolve_Arithmetic_Op): Fix bad warning for
2800 floating divide by zero.
2801
2802 2011-10-06 Ed Schonberg <schonberg@adacore.com>
2803
2804 * sem_ch6.adb: Limited interfaces that are not immutably limited
2805 are OK in return statements.
2806
2807 2011-09-30 Iain Sandoe <iains@gcc.gnu.org>
2808
2809 * gcc-interface/Makefile.in (Darwin): Partial reversion of previous
2810 change to powerpc section.
2811
2812 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
2813
2814 * gcc-interface/Makefile.in (Darwin): Factor LIBGNAT_TARGET_PAIRS
2815 across the port.
2816
2817 2011-09-27 Ed Schonberg <schonberg@adacore.com>
2818
2819 * a-cbhase.adb, a-cbhase.ads, a-cborse.adb, a-cborse.ads,
2820 a-cihase.adb, a-cihase.ads, a-ciorse.adb, a-ciorse.ads,
2821 a-coorse.adb, a-coorse.ads: Add iterator machinery to bounded sets and
2822 indefinite sets.
2823 * a-coorma.ads: Minor reformmating.
2824 * einfo.ads: Improve the comment describing the
2825 Directly_Designated_Type function.
2826 * a-ciorma.adb, a-ciorma.ads: Add iterator machinery to indefinite
2827 ordered maps.
2828 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
2829 dependencies.
2830
2831 2011-09-27 Robert Dewar <dewar@adacore.com>
2832
2833 * a-comutr.ads: Minor reformatting.
2834
2835 2011-09-27 Ed Schonberg <schonberg@adacore.com>
2836
2837 * a-cimutr.adb, a-cimutr.ads, a-cbmutr.adb, a-cbmutr.ads: Add children
2838 iterators to multiway trees.
2839
2840 2011-09-27 Yannick Moy <moy@adacore.com>
2841
2842 * debug.adb (d.D): New option for strict Alfa mode.
2843 * opt.ads (Strict_Alfa_Mode): New flag to interpret compiler
2844 permissions as strictly as possible.
2845 * sem_ch3.adb (Signed_Integer_Type_Declaration): In non-strict
2846 Alfa mode, now, interpret ranges of base types like GNAT does; in
2847 strict mode, simply change the range of the implicit base Itype.
2848 * gnat1drv.adb: Update comments. Set Strict_Alfa_Mode.
2849
2850 2011-09-27 Robert Dewar <dewar@adacore.com>
2851
2852 * exp_ch9.adb: Minor comment fixes.
2853
2854 2011-09-27 Ed Schonberg <schonberg@adacore.com>
2855
2856 * a-comutr.adb, a-comutr.ads: Add children iterators on multiway
2857 trees.
2858
2859 2011-09-27 Eric Botcazou <ebotcazou@adacore.com>
2860
2861 * checks.adb (Apply_Scalar_Range_Check): Use Designated_Type
2862 instead of Directly_Designated_Type in the indirect array case.
2863
2864 2011-09-27 Robert Dewar <dewar@adacore.com>
2865
2866 * exp_util.adb, exp_aggr.adb: Minor reformatting.
2867
2868 2011-09-27 Ed Schonberg <schonberg@adacore.com>
2869
2870 * sinfo.ads, par-ch3.adb: Minor comment update: aspect specification
2871 on subtype declarations.
2872 * exp_aggr.adb: Minor comment update.
2873
2874 2011-09-27 Eric Botcazou <ebotcazou@adacore.com>
2875
2876 * exp_util.adb (Safe_Prefixed_Reference): Remove always-false
2877 test in the N_Explicit_Dereference case. Fold double logical
2878 negation in the special loop case and conditionalize it on
2879 Variable_Ref being true.
2880
2881 2011-09-27 Ed Schonberg <schonberg@adacore.com>
2882
2883 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is a
2884 single protected object and the selector is a discriminant or an
2885 entry family, this is a non-overloaded candidate interpretation,
2886 and possible primitive operations of the type must not be
2887 examined.
2888
2889 2011-09-27 Arnaud Charlet <charlet@adacore.com>
2890
2891 * s-taspri-posix-noaltstack.ads (Lock): Mark fields aliased.
2892
2893 2011-09-27 Pascal Obry <obry@adacore.com>
2894
2895 * s-osinte-hpux.ads, s-osinte-aix.ads, s-osinte-solaris-posix.ads,
2896 s-osinte-irix.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads:
2897 Add dummy definitions for pthread_rwlock_t
2898 and pthread_rwlockattr_t on all POSIX platforms.
2899 * s-taprop-irix.adb, s-taprop-posix.adb (Initialize_Lock): Fix lock
2900 reference.
2901 (Finalize_Lock): Likewise.
2902 (Write_Lock): Likewise.
2903 (Unlock): Likewise.
2904
2905 2011-09-27 Tristan Gingold <gingold@adacore.com>
2906
2907 * s-tassta.adb (Task_Wrapper): Increase Guard_Page_Size value for
2908 windows 64.
2909
2910 2011-09-27 Pascal Obry <obry@adacore.com>
2911
2912 * s-osinte-hpux.ads, s-taprop-vxworks.adb, s-taspri-vxworks.ads,
2913 s-taprop-tru64.adb, s-osinte-aix.ads, s-taspri-posix-noaltstack.ads,
2914 s-taspri-mingw.ads, s-taprop-vms.adb, s-tpoben.adb, s-tpoben.ads,
2915 s-taprop-mingw.adb, s-taprob.adb, s-taprob.ads,
2916 s-osinte-solaris-posix.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
2917 s-osinte-irix.ads, s-taprop-irix.adb, s-osinte-darwin.ads,
2918 s-taspri-dummy.ads, s-taspri-posix.ads, s-taprop.ads,
2919 s-taspri-vms.ads, s-osinte-freebsd.ads, s-taprop-hpux-dce.adb,
2920 s-taspri-hpux-dce.ads, s-taspri-tru64.ads, s-taprop-dummy.adb,
2921 s-taprop-posix.adb: Revert previous changes.
2922 (Lock): Now a record containing the two possible lock
2923 (mutex and read/write) defined in OS_Interface.
2924 * s-taprop-linux.adb (Finalize_Protection): Use r/w lock for
2925 'R' locking policy.
2926 (Initialize_Protection): Likewise.
2927 (Lock): Likewise.
2928 (Lock_Read_Only): Likewise.
2929 (Unlock): Likewise.
2930
2931 2011-09-27 Pascal Obry <obry@adacore.com>
2932
2933 * s-taspri-posix-noaltstack.ads (RW_Lock): This type is now defined as
2934 OS_Interface.pthread_rwlock_t.
2935
2936 2011-09-27 Robert Dewar <dewar@adacore.com>
2937
2938 * exp_ch9.adb, a-cimutr.adb, a-cimutr.ads, gnat1drv.adb, a-comutr.adb,
2939 a-comutr.ads, exp_dist.adb, a-cbmutr.adb, a-cbmutr.ads,
2940 sem_ch5.adb, sem_util.adb: Minor reformatting.
2941
2942 2011-09-27 Pascal Obry <obry@adacore.com>
2943
2944 * s-taprop.ads (Initialize_Lock)[RW_Lock]: New spec for r/w lock.
2945 (Finalize_Lock)[RW_Lock]: Likewise.
2946 (Write_Lock)[RW_Lock]: Likewise.
2947 (Unlock)[RW_Lock]: Likewise.
2948 (Read_Lock): Define L as RW_Lock (instead of Lock).
2949 * s-taprop-linux.adb (Initialize_Lock)[RW_Lock]: New
2950 routine for r/w lock.
2951 (Finalize_Lock)[RW_Lock]: Likewise.
2952 (Write_Lock)[RW_Lock]: Likewise.
2953 (Unlock)[RW_Lock]: Likewise.
2954 (Read_Lock): Define L as RW_Lock (instead of Lock).
2955
2956 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
2957 s-taprop-mingw.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
2958 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-posix.adb
2959 (Initialize_Lock)[RW_Lock]: Same implementation as corresponding
2960 routine for standard lock.
2961 (Finalize_Lock)[RW_Lock]: Likewise.
2962 (Write_Lock)[RW_Lock]: Likewise.
2963 (Unlock)[RW_Lock]: Likewise.
2964 (Read_Lock): Define L as RW_Lock (instead of Lock).
2965 * s-taprob.ads, s-tpoben.ads (Protection): Add RWL (RW_Lock)
2966 in the record definition.
2967 * s-taprob.adb, s-taproben.adb (Finalize_Protection): Use r/w
2968 lock for 'R' locking policy.
2969 (Initialize_Protection): Likewise.
2970 (Lock): Likewise.
2971 (Lock_Read_Only): Likewise.
2972 (Unlock): Likewise.
2973 * s-taspri-posix.ads (RW_Lock): New type defined as
2974 OS_Interface.pthread_rwlock_t.
2975
2976 * s-taspri-vxworks.ads, s-taspri-posix-noaltstack.ads,
2977 s-taspri-mingw.ads, s-taspri-solaris.ads, s-taspri-dummy.ads,
2978 s-taspri-posix.ads, s-taspri-vms.ads, s-taspri-hpux-dce.ads,
2979 s-taspri-tru64.ads (RW_Lock): New type defined as alias to Lock.
2980
2981 2011-09-27 Pascal Obry <obry@adacore.com>
2982
2983 * exp_ch9.adb, s-taspri-posix.ads: Minor reformatting.
2984
2985 2011-09-27 Pascal Obry <obry@adacore.com>
2986
2987 * s-osinte-aix.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads,
2988 s-osinte-hpux.ads, s-osinte-irix.ads,
2989 s-osinte-solaris-posix.ads (pthread_rwlock_t): New definition alias of
2990 pthread_mutex_t.
2991 (pthread_rwlockattr_t): New definition alias of pthread_mutexattr_t.
2992 * s-osinte-linux.ads (pthread_rwlock_t, pthread_rwlockattr_t,
2993 pthread_rwlockattr_init, pthread_rwlockattr_destroy,
2994 pthread_rwlockattr_setkind_np, pthread_rwlock_init,
2995 pthread_rwlock_destroy, pthread_rwlock_rdlock,
2996 pthread_rwlock_wrlock, pthread_rwlock_unlock): New.
2997
2998 2011-09-27 Pascal Obry <obry@adacore.com>
2999
3000 * rtsfind.ads: Add RE_Lock_Read_Only into rtsfind circuitry.
3001 (RE_Id): Add RE_Lock_Read_Only.
3002 (RE_Unit_Table): Likewise.
3003 * sem_prag.adb (Process_Convention): Change Pragma_Locking_Policy
3004 to lift restriction on first character. Handle now the
3005 Name_Concurrent_Readers_Locking where policy character is set to
3006 'R'.
3007 * snames.ads-tmpl (Name_Concurrent_Readers_Locking): New
3008 constant.
3009 * exp_ch9.adb (Build_Protected_Subprogram_Body): Generate a
3010 read only lock for function in protected object.
3011 * s-taprob.ads (Lock_Read_Only): Remove obsolete comment as
3012 this routine is now used.
3013
3014 2011-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3015
3016 * s-atocou-x86.adb (Decrement): Use %;.
3017 (Increment): Likewise.
3018
3019 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
3020
3021 * gcc-interface/utils2.c (build_allocator): Set TREE_THIS_NOTRAP on the
3022 dereference of the pointer to the storage area. Remove useless type
3023 conversions and factor out common code.
3024
3025 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
3026
3027 * gcc-interface/utils.c (maybe_unconstrained_array): Declare TYPE local
3028 variable and use it throughout.
3029 <UNCONSTRAINED_ARRAY_TYPE>: Add 'break' at the end.
3030 <RECORD_TYPE>: Do not unconditionally convert to the unpadded type as a
3031 first step. Also convert to the unpadded type as a last step.
3032
3033 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
3034
3035 * gcc-interface/gigi.h (create_subprog_decl): Replace TREE_CHAIN with
3036 DECL_CHAIN in comment.
3037 * gcc-interface/trans.c (gigi): Likewise.
3038 (Attribute_to_gnu): Likewise.
3039 (build_function_stub): Likewise.
3040 (gnat_to_gnu): Likewise.
3041 * gcc-interface/utils.c (create_subprog_decl): Likewise.
3042 (convert_vms_descriptor64): Likewise.
3043 (convert_vms_descriptor32): Likewise.
3044
3045 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
3046
3047 * gcc-interface/trans.c (assoc_to_constructor): Minor tweaks.
3048 * gcc-interface/utils2.c (build_simple_component_ref): Fix formatting
3049 issues. Use COMPLETE_TYPE_P in assertion. Also set TREE_READONLY if
3050 the type of the record is TYPE_READONLY.
3051
3052 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
3053 Robert Dewar <dewar@adacore.com>
3054
3055 * sem_ch6.adb (Set_Formal_Mode): Set Can_Never_Be_Null on an IN or IN
3056 OUT formal parameter which is of an null-exclusion access subtype.
3057
3058 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
3059
3060 * gcc-interface/ada-tree.h (DECL_CAN_NEVER_BE_NULL_P): New macro.
3061 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Set the flag.
3062 (gnat_to_gnu_param): Likewise.
3063 * gcc-interface/utils.c (convert) <UNCONSTRAINED_ARRAY_REF>: Invoke
3064 maybe_unconstrained_array instead of doing the work manually.
3065 (maybe_unconstrained_array): Propagate the TREE_THIS_NOTRAP flag.
3066 * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: If operand
3067 is a DECL with the flag, set TREE_THIS_NOTRAP on the reference.
3068 (gnat_stabilize_reference_1): Propagate the TREE_THIS_NOTRAP flag.
3069 (gnat_stabilize_reference): Likewise.
3070
3071 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
3072
3073 * gcc-interface/ada-tree.h (TYPE_NULL_BOUNDS): New macro.
3074 (SET_TYPE_NULL_BOUNDS): Likewise.
3075 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Set again
3076 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
3077 * gcc-interface/trans.c (Identifier_to_gnu): Return initializers of fat
3078 pointer types.
3079 * gcc-interface/utils.c (create_var_decl_1): If the object is external,
3080 check that the initializer is a valid constant expression for use in
3081 initializing a static variable. Add missing guard.
3082 (update_pointer_to): Adjust TYPE_NULL_BOUNDS if set.
3083 (convert_to_fat_pointer): In the null fat pointer case, build a valid
3084 pointer for the bounds.
3085 * gcc-interface/utils2.c (compare_fat_pointers): New function.
3086 (build_binary_op) <EQ_EXPR>: Call it to compare fat pointers.
3087
3088 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
3089
3090 * gcc-interface/ada-tree.h (TREE_THIS_NOTRAP): Redefine.
3091 * gcc-interface/trans.c (Identifier_to_gnu): Factor out common code in
3092 the by-ref case. Do not set TREE_READONLY on a renamed object. Set
3093 TREE_THIS_NOTRAP on UNCONSTRAINED_ARRAY_REF nodes.
3094 (Attribute_to_gnu) <Attr_Length>: Expand the use of the parameter cache
3095 to the indirect case.
3096 * gcc-interface/utils.c (convert) <UNCONSTRAINED_ARRAY_REF>: Preserve
3097 the TREE_THIS_NOTRAP flag.
3098
3099 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
3100
3101 * gcc-interface/trans.c (Loop_Statement_to_gnu): In the case of an
3102 iteration scheme, always generate the do-while form if optimization
3103 is enabled. Use more straightforward test at the end.
3104
3105 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
3106
3107 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Subtype>: Use
3108 XNEW instead of xmalloc. Do not build useless pointer type.
3109 <E_Anonymous_Access_Subprogram_Type>: Use XNEW instead of xmalloc.
3110 * gcc-interface/trans.c (gnat_to_gnu) <N_Raise_Constraint_Error>: Tidy.
3111 * gcc-interface/utils2.c (build_unary_op): Remove local variable.
3112
3113 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
3114
3115 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not promote
3116 the alignment if this doesn't prevent BLKmode access to the object.
3117
3118 2011-09-24 Iain Sandoe <iains@gcc.gnu.org>
3119
3120 * gcc-interface/Makefile.in (darwin): Do not issue the
3121 '-flat_namespace' linker flag during Ada build.
3122 * mlib-tgt-specific-darwin.adb: Remove '-flat_namespace' flag from the
3123 default shared library options.
3124
3125 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
3126
3127 * gcc-interface/decl.c (annotate_value): Look up expression for
3128 insertion in the cache at the end.
3129
3130 2011-09-19 Arnaud Charlet <charlet@adacore.com>
3131
3132 * gcc-interface/Make-lang.in: Update dependencies.
3133
3134 2011-09-19 Steve Baird <baird@adacore.com>
3135
3136 * snames.ads-tmpl: Move declaration of Name_Annotate into range of
3137 configuration pragma names so that Is_Configuration_Pragma_Name
3138 will return True for Name_Annotate. Make corresponding change in
3139 Pragma_Id enumeration type. This is needed to allow an Annotate
3140 pragma to occur in a configuration pragma file (typically,
3141 a gnat.adc file).
3142 * gnat_ugn.texi: Add Annotate to the list of configuration pragmas.
3143 * gnat_rm.texi: Note that pragma Annotate may be used as a
3144 configuration pragma.
3145
3146 2011-09-19 Ed Schonberg <schonberg@adacore.com>
3147
3148 * a-cbmutr.adb, a-cbmutr.ads, a-cimutr.adb, a-cimutr.ads,
3149 a-comutr.adb, a-comutr.ads: Add iterator machinery for multiway trees.
3150
3151 2011-09-19 Yannick Moy <moy@adacore.com>
3152
3153 * exp_alfa.adb, exp_alfa.ads (Expand_Alfa_N_In): New function
3154 for expansion of set membership.
3155 (Expand_Alfa): Call expansion for N_In and N_Not_In nodes.
3156 * exp_ch4.adb, exp_ch4.ads (Expand_Set_Membership): Make procedure
3157 visible for use in Alfa expansion.
3158 * sem_ch5.adb (Analyze_Iterator_Specification): Introduce loop
3159 variable in Alfa mode.
3160
3161 2011-09-19 Thomas Quinot <quinot@adacore.com>
3162
3163 * s-osinte-darwin.ads: Change SIGADAABRT on Darwin to SIGABRT.
3164
3165 2011-09-19 Thomas Quinot <quinot@adacore.com>
3166
3167 * exp_ch9.adb: Minor reformatting.
3168
3169 2011-09-19 Hristian Kirtchev <kirtchev@adacore.com>
3170
3171 * freeze.adb (Build_Renamed_Body): Generic subprograms
3172 instantiations cannot be poperly inlined by the compiler, do
3173 not set the Body_To_Inline attribute in such cases.
3174 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Inherit all
3175 inlining-related flags from the generic subprogram declaration.
3176
3177 2011-09-19 Thomas Quinot <quinot@adacore.com>
3178
3179 * exp_dist.adb, rtsfind.ads, sem_util.adb, sem_util.ads
3180 (Build_Stub_Type): Remove, instead copy components from
3181 System.Partition_Interface.RACW_Stub_Type.
3182 (RPC_Receiver_Decl): Remainder of code from old Build_Stub_Type routine.
3183 (Copy_Component_List): New subprogram.
3184
3185 2011-09-19 Yannick Moy <moy@adacore.com>
3186
3187 * lib-xref.adb (Generate_Reference): Ignore references to
3188 constants in Standard.
3189
3190 2011-09-19 Robert Dewar <dewar@adacore.com>
3191
3192 * err_vars.ads, errout.ads: Minor reformatting.
3193
3194 2011-09-19 Robert Dewar <dewar@adacore.com>
3195
3196 * aspects.ads (Impl_Defined_Aspects): New array
3197 * lib-writ.adb (No_Dependences): New name for No_Dependence
3198 * restrict.adb (No_Dependences): New name for No_Dependence
3199 (Check_Restriction_No_Specification_Of_Aspect): New
3200 procedure.
3201 (Set_Restriction_No_Specification_Of_Aspect): New procedure
3202 (Restricted_Profile_Result): New variable
3203 (No_Specification_Of_Aspects): New variable
3204 (No_Specification_Of_Aspect_Warning): New variable
3205 * restrict.ads (No_Dependences): New name for No_Dependence
3206 (Check_Restriction_No_Specification_Of_Aspect): New procedure
3207 (Set_Restriction_No_Specification_Of_Aspect): New procedure
3208 * s-rident.ads: Add restriction
3209 No_Implementation_Aspect_Specifications, this is also added to
3210 the No_Implementation_Extensions profile.
3211 * sem_ch13.adb (Analyze_Aspect_Specifications): Check
3212 No_Implementation_Defined_Aspects
3213 (Analyze_Aspect_Specifications): Check No_Specification_Of_Aspect
3214 * sem_prag.adb (Analyze_Aspect_Specifications): Check
3215 No_Implementation_Aspects
3216 (Analyze_Aspect_Specifications): Check No_Specification_Of_Aspect
3217 * snames.ads-tmpl (Name_No_Specification_Of_Aspect): New name
3218
3219 2011-09-19 Yannick Moy <moy@adacore.com>
3220
3221 * lib-xref.adb (Generate_Reference): Take into account multiple
3222 renamings for Alfa refs.
3223
3224 2011-09-19 Thomas Quinot <quinot@adacore.com>
3225
3226 * g-socthi-mingw.adb: Minor reformatting.
3227
3228 2011-09-19 Yannick Moy <moy@adacore.com>
3229
3230 * gnat1drv.adb (Adjust_Global_Switches): Set tagged type
3231 expansion to False in mode Alfa
3232
3233 2011-09-19 Pascal Obry <obry@adacore.com>
3234
3235 * mingw32.h: Remove obsolete code needed for old versions
3236 of MingW.
3237
3238 2011-09-19 Robert Dewar <dewar@adacore.com>
3239
3240 * errout.ads: Minor reformatting.
3241
3242 2011-09-19 Ed Schonberg <schonberg@adacore.com>
3243
3244 * sem_ch6.adb (Analyze_Expression_Function): When the expression
3245 function is transformed into a declaration and a body, insert
3246 body at the end of the declarative part, to prevent premature
3247 freeze actions, and preserve original specification in the
3248 subprogram declaration.
3249
3250 2011-09-19 Vincent Celier <celier@adacore.com>
3251
3252 * projects.texi: Minor editing.
3253
3254 2011-09-19 Robert Dewar <dewar@adacore.com>
3255
3256 * sem_aggr.adb, lib-writ.ads, s-restri.ads, sem_ch6.adb,
3257 exp_aggr.adb: Minor reformatting.
3258
3259 2011-09-19 Yannick Moy <moy@adacore.com>
3260
3261 * lib-xref.adb (Generate_Reference): Change entity referenced
3262 to underlying object if any, or else reference to the HEAP.
3263
3264 2011-09-15 Arnaud Charlet <charlet@adacore.com>
3265
3266 * gcc-interface/Make-lang.in: Update dependencies.
3267
3268 2011-09-15 Robert Dewar <dewar@adacore.com>
3269
3270 * tree_io.ads: Minor reformatting.
3271 * a-intnam.ads: Fix bad header.
3272
3273 2011-09-15 Thomas Quinot <quinot@adacore.com>
3274
3275 * a-exexpr-gcc.adb: Minor reformatting.
3276
3277 2011-09-15 Yannick Moy <moy@adacore.com>
3278
3279 * sem_ch6.adb: Propagate information that an expression function comes
3280 from source (otherwise references to this entity are not stored).
3281
3282 2011-09-15 Robert Dewar <dewar@adacore.com>
3283
3284 * a-cdlili.adb, a-coinve.adb, a-stzunb-shared.ads, a-suezst.adb,
3285 a-suenco.adb, a-stwiun-shared.ads, a-cobove.adb, a-convec.adb,
3286 a-btgbso.adb, a-cbdlli.adb, a-suewst.adb: Minor reformatting.
3287
3288 2011-09-15 Ed Schonberg <schonberg@adacore.com>
3289
3290 * sem_ch6.adb (Analyze_Expression_Function): Code cleanup:
3291 if the expression function is not a completion, create a
3292 new specification for the generated declaration, and keep the
3293 original specification in the generated body. Shorter code also
3294 ensures that proper warnings are generated for unused formals
3295 in all cases.
3296
3297 2011-09-15 Sergey Rybin <rybin@adacore.com>
3298
3299 * tree_io.ads: Update ASIS_Version_Number because of the changes
3300 in the tree structures for expression functions.
3301
3302 2011-09-15 Arnaud Charlet <charlet@adacore.com>
3303
3304 * s-osinte-aix.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads,
3305 s-osinte-hpux.ads, s-osinte-lynxos.ads, s-osinte-solaris-posix.ads,
3306 s-taprop-posix.adb (CLOCK_MONOTONIC): New constant.
3307 (CLOCK_REALTIME): Fix wrong value on some OSes.
3308 * s-taprop-posix.adb (Monotonic_Clock): Use CLOCK_MONOTONIC.
3309
3310 2011-09-11 Eric Botcazou <ebotcazou@adacore.com>
3311
3312 * gcc-interface/utils.c (maybe_unconstrained_array): In the reference
3313 to unconstrained array case, deal with each branch of a COND_EXPR.
3314 * gcc-interface/utils2.c (build_allocator): Deal with each branch of
3315 a COND_EXPR in the initializer, if present.
3316
3317 2011-09-11 Eric Botcazou <ebotcazou@adacore.com>
3318
3319 * gcc-interface/decl.c (maybe_pad_type): Do not try to change the form
3320 of an addressable type.
3321 * gcc-interface/trans.c (gnat_gimplify_expr) <VIEW_CONVERT_EXPR>: New.
3322 Deal with those cases for which creating a temporary is mandatory.
3323
3324 2011-09-11 Eric Botcazou <ebotcazou@adacore.com>
3325
3326 * gcc-interface/trans.c (call_to_gnu): Use local variable. Make sure
3327 this is a real formal parameter before testing whether it is by ref.
3328
3329 2011-09-11 Eric Botcazou <ebotcazou@adacore.com>
3330
3331 * gcc-interface/gigi.h (build_call_0_expr): Delete.
3332 (build_call_1_expr): Likewise.
3333 (build_call_2_expr): Likewise.
3334 (build_call_n_expr): New prototype.
3335 * gcc-interface/decl.c (gnat_to_gnu_entity): Use build_call_n_expr.
3336 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Ditto.
3337 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
3338 (Exception_Handler_to_gnu_zcx): Likewise.
3339 (gnat_to_gnu): Likewise.
3340 (build_binary_op_trapv): Likewise.
3341 * gcc-interface/utils2.c (build_call_0_expr): Delete.
3342 (build_call_1_expr): Likewise.
3343 (build_call_2_expr): Likewise.
3344 (build_call_n_expr): New function.
3345 (build_call_raise): Use build_call_n_expr.
3346 (build_call_raise_range): Likewise.
3347 (build_call_raise_column): Likewise.
3348 (build_call_alloc_dealloc_proc): Likewise.
3349 (maybe_wrap_malloc): Likewise.
3350 (maybe_wrap_free): Likewise.
3351
3352 2011-09-11 Eric Botcazou <ebotcazou@adacore.com>
3353
3354 * gcc-interface/trans.c (build_return_expr): Use void_type_node for
3355 MODIFY_EXPR.
3356 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Assert that
3357 the result type is null if ENABLE_CHECKING. Set operation_type at the
3358 end unconditionally if not set in the previous cases.
3359 Use build2 and void_type_node for MODIFY_EXPR.
3360 (build_allocator): Use NULL_TREE for MODIFY_EXPR.
3361
3362 2011-09-08 Eric Botcazou <ebotcazou@adacore.com>
3363
3364 * gcc-interface/utils.c (unchecked_convert): Use a field of the right
3365 precision when converting to or from an integral type whose precision
3366 is not equal to its size.
3367
3368 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
3369
3370 * traceback.c (Darwin) USE_GCC_UNWINDER for Darwin versions >= 8.
3371
3372 2011-09-07 Iain Sandoe <iains@gcc.gnu.org>
3373
3374 * gcc-interface/Makefile.in (darwin): Provide powerpc64 system
3375 implementation.
3376 * system-darwin-ppc64.ads: New file.
3377
3378 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
3379
3380 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Remove
3381 reference to "-lm".
3382
3383 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
3384
3385 * gcc-interface/Makefile.in (darwin, SO_OPTS): Provide architecture
3386 size switches to the link phase for shared libs.
3387
3388 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
3389
3390 * gcc-interface/Makefile.in (x86_64 darwin arch): Adjust
3391 LIBGNAT_TARGET_PAIRS for x86 and x86_64 variants.
3392
3393 2011-09-06 Arnaud Charlet <charlet@adacore.com>
3394
3395 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in
3396 (gnattools, regnattools, cross-gnattools, canadian-gnattools,
3397 gnatlib, gnatlib-sjlj, gnatlib-zcx, gnatlib-shared, gnatlib_and_tools):
3398 New targets.
3399 (TOOLS_FLAGS_TO_PASS): New.
3400 (../stamp-tools): Reintroduce, to avoid merge conflicts.
3401
3402 2011-09-06 Robert Dewar <dewar@adacore.com>
3403
3404 * sem_ch10.adb, impunit.ads, impunit.adb (Not_Impl_Defined_Unit): New
3405 name for Is_RM_Defined_Unit. Also several fixes to this unit.
3406
3407 2011-09-06 Robert Dewar <dewar@adacore.com>
3408
3409 * impunit.ads, impunit.adb (Is_RM_Defined_Unit): New function.
3410 * s-rident.ads: New restriction No_Implementation_Units
3411 (this restriction is also part of the profile
3412 No_Implementation_Extensions)
3413 * sem_ch10.adb (Analyze_With_Clause): Add check for
3414 No_Implementation_Units restriction.
3415
3416 2011-09-06 Jerome Guitton <guitton@adacore.com>
3417
3418 * sysdep.c (__gnat_get_task_options): Disable VX_SPE_TASK
3419 on vThreads.
3420
3421 2011-09-06 Thomas Quinot <quinot@adacore.com>
3422
3423 * s-solita.adb: Minor reformatting.
3424
3425 2011-09-06 Ed Schonberg <schonberg@adacore.com>
3426
3427 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The body that
3428 is a rewriting of an expression function does not freeze previous
3429 entities.
3430
3431 2011-09-06 Robert Dewar <dewar@adacore.com>
3432
3433 * impunit.adb (Is_Known_Unit): Fix bad handling of Ada 2012 case
3434
3435 2011-09-06 Tristan Gingold <gingold@adacore.com>
3436
3437 * gcc-interface/Makefile.in: Handle e500v2-wrs-vxworksae like
3438 powerpc-wrs-vxworksae.
3439
3440 2011-09-06 Thomas Quinot <quinot@adacore.com>
3441
3442 * s-os_lib.ads (Spawn): Minor documentation clarification,
3443 Success is True for a zero exit status.
3444
3445 2011-09-06 Ed Schonberg <schonberg@adacore.com>
3446
3447 * sem_ch5.adb: Add message for common iterator error.
3448
3449 2011-09-06 Ed Schonberg <schonberg@adacore.com>
3450
3451 * exp_ch3.adb (Build_Initialization_Call): If the target is a
3452 selected component discriminated by a current instance, replace
3453 the constraint with a reference to the target object, regardless
3454 of whether the context is an init_proc.
3455
3456 2011-09-06 Robert Dewar <dewar@adacore.com>
3457
3458 * exp_attr.adb: Descriptor_Size is never static.
3459
3460 2011-09-06 Robert Dewar <dewar@adacore.com>
3461
3462 * gnat_ugn.texi: Add documentation for LSLOC metric in gnatmetric
3463
3464 2011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
3465
3466 * gnat_rm.texi: Clarify that attribute Descriptor_Size is
3467 non-static.
3468
3469 2011-09-06 Ed Schonberg <schonberg@adacore.com>
3470
3471 * sem_res.adb (Resolve): An expression that is the body of an
3472 expression function does not freeze.
3473
3474 2011-09-06 Matthew Heaney <heaney@adacore.com>
3475
3476 * a-csquin.ads, a-cusyqu.adb, a-cbprqu.adb, a-cbsyqu.adb,
3477 a-cuprqu.adb: Changed copyright notice to indicate current
3478 year only.
3479
3480 2011-09-06 Vincent Celier <celier@adacore.com>
3481
3482 * prj.adb: Minor spelling error fix in comment
3483 * sem_res.adb: Minor reformatting
3484
3485 2011-09-06 Pascal Obry <obry@adacore.com>
3486
3487 * sysdep.c (winflush_nt): Removed as not needed anymore.
3488 (winflush_95): Likewise.
3489 (winflush_init): Likewise.
3490 (winflush_function): Likewise.
3491 (getc_immediate_common): Remove call to winflush_function.
3492
3493 2011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
3494
3495 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite the
3496 processing for Descriptor_Size.
3497 * gnat_rm.texi: Rephrase the wording for attribute Descriptor_Size
3498 to account for its broader usage.
3499 * sem_attr.adb (Analyze_Attribute): Change the error detection
3500 circuitry for Descriptor_Size as the attribute is now applicable
3501 to all types.
3502
3503 2011-09-06 Robert Dewar <dewar@adacore.com>
3504
3505 * sem_attr.adb, prj-nmsc.adb, exp_aggr.adb: Minor reformatting.
3506
3507 2011-09-06 Ed Schonberg <schonberg@adacore.com>
3508
3509 * lib-xref.adb (OK_To_Set_Referenced): A reference to a formal
3510 in a parameter association must not set the Referenced flag on
3511 the formal.
3512 * prj-nmsc.adb (Check_File_Naming_Schemes): Remove useless formal
3513
3514 2011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
3515
3516 * gnat_rm.texi: Add a section on attribute Descriptor_Size
3517
3518 2011-09-06 Arnaud Charlet <charlet@adacore.com>
3519
3520 * gcc-interface/Makefile.in (common-tools, gnatmake-re,
3521 gnatlink-re): Speed up by using -j0.
3522
3523 2011-09-06 Yannick Moy <moy@adacore.com>
3524
3525 * sem_ch13.adb (Analyze_Aspect_Specifications): Call
3526 Set_Corresponding_Aspect when creating pragma from aspect.
3527 (Add_Predicates): Use new field Corresponding_Aspect.
3528 * sem_prag.adb (Analyze_Pragma): Make Pname hold source aspect
3529 name when present, for the purpose of issuing error messages;
3530 remove local procedure Error_Pragma_Arg_Alternate_Name.
3531 * sinfo.adb, sinfo.ads (Corresponding_Aspect): New field in
3532 N_Pragma node.
3533 (From_Dynamic_Predicate, From_Static_Predicate): Remove fields from
3534 N_Pragma node.
3535
3536 2011-09-06 Robert Dewar <dewar@adacore.com>
3537
3538 * checks.adb, s-except.ads, g-socket.adb: Minor reformatting.
3539
3540 2011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
3541
3542 * exp_ch6.adb (Build_Heap_Allocator): Add new
3543 local variable Desig_Typ. Code and comment reformatting. Add
3544 machinery to ensure that the allocation uses a fat pointer when
3545 the type of the return object is a constrained array and the
3546 function return type is an unconstrained array.
3547
3548 2011-09-06 Vincent Celier <celier@adacore.com>
3549
3550 * make.adb, prj-part.adb, prj-nmsc.adb: Remove unused formal
3551 parameters in subprograms.
3552
3553 2011-09-06 Arnaud Charlet <charlet@adacore.com>
3554
3555 * s-taprop-mingw.adb (Finalize_TCB): Fix typo.
3556
3557 2011-09-06 Thomas Quinot <quinot@adacore.com>
3558
3559 * s-taprop-vxworks.adb, s-tpoaal.adb, s-tpopsp-vxworks.adb
3560 (System.Tasking.Primitive_Operations.Specific.Delete): Remove
3561 subprogram.
3562 (System.Tasking.Primitive_Operations.Specific.Set): If argument
3563 is null, destroy task specific data, to make API consistent with
3564 other platforms, and thus compatible with the shared version
3565 of s-tpoaal.adb.
3566 (System.Tasking.Primitive_Operations.ATCB_Allocation.Free_ATCB):
3567 Document the above assumption.
3568
3569 2011-09-06 Ed Schonberg <schonberg@adacore.com>
3570
3571 * exp_ch6.adb (Expand_Inlined_Call): Fix use of uninitialized
3572 variable for type of return value when return type is
3573 unconstrained and context is an assignment.
3574
3575 2011-09-06 Ed Schonberg <schonberg@adacore.com>
3576
3577 * sem_ch8.adb (Check_Class_Wide_Actual): Do not generate body of
3578 class-wide operation if expansion is not enabled.
3579
3580 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3581
3582 * checks.adb (Apply_Scalar_Range_Check): Deal with access
3583 type prefix.
3584
3585 2011-09-06 Yannick Moy <moy@adacore.com>
3586
3587 * sem_ch13.adb (Analyze_Aspect_Specifications, case
3588 Aspect_Invariant): Do not issue error at this point on illegal
3589 pragma placement, as this is checked later on when analyzing
3590 the corresponding pragma.
3591 * sem_prag.adb (Error_Pragma_Arg_Alternate_Name): New procedure
3592 similar to Error_Pragma_Arg, except the source name of the
3593 aspect/pragma to use in warnings may be equal to parameter
3594 Alt_Name (Analyze_Pragma, case Pragma_Invariant): refine error
3595 message to distinguish source name of pragma/aspect, and whether
3596 the illegality resides in the type being public, or being private
3597 without a public declaration
3598
3599 2011-09-06 Thomas Quinot <quinot@adacore.com>
3600
3601 * g-socket.adb (Check_For_Fd_Set): On Windows, no need for bitmap
3602 size check (fd_set is implemented differently on that platform).
3603
3604 2011-09-06 Thomas Quinot <quinot@adacore.com>
3605
3606 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
3607 s-tpoaal.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
3608 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop.ads,
3609 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-posix.adb
3610 (ATCB_Allocation): New subpackage of
3611 System.Tasking.Primitive_Operations, shared across all targets
3612 with full tasking runtime.
3613 (ATCB_Allocation.New_ATCB): Moved there (from target specific
3614 s-taprop bodies).
3615 (ATCB_Allocation.Free_ATCB): New subprogram. Deallocate an ATCB,
3616 taking care of establishing a local temporary ATCB if the one
3617 being deallocated is Self, to avoid a reference to the freed
3618 ATCB in Abort_Undefer.
3619
3620 2011-09-06 Thomas Quinot <quinot@adacore.com>
3621
3622 * s-tassta.adb, s-taskin.ads (Free_Task): If the task is not
3623 terminated, mark it for deallocation upon termination.
3624 (Terminate_Task): Call Free_Task again if the task is marked
3625 for automatic deallocation upon termination.
3626
3627 2011-09-06 Robert Dewar <dewar@adacore.com>
3628
3629 * a-cbprqu.ads, a-cbsyqu.ads, a-cuprqu.ads, a-cusyqu.ads,
3630 a-intnam-aix.ads, a-intnam-darwin.ads, a-intnam-dummy.ads,
3631 a-intnam-freebsd.ads, a-intnam-hpux.ads, a-intnam-irix.ads,
3632 a-intnam-linux.ads, a-intnam-lynxos.ads, a-intnam-mingw.ads,
3633 a-intnam-solaris.ads, a-intnam-tru64.ads,
3634 a-intnam-vms.ads, a-intnam-vxworks.ads, a-intnam.ads, interfac.ads,
3635 cstand.adb, s-maccod.ads: Mark all entities as Implementation_Defined
3636 * einfo.ads, einfo.adb (Is_Implementation_Defined): New flag
3637 * par-prag.adb: Add dummy entry for pragma Implementation_Defined
3638 * s-rident.ads: Add new restriction No_Implementation_Identifiers
3639 Add new profile No_Implementation_Extensions
3640 * sem_prag.adb: Implement pragma Implementation_Defined Implement
3641 profile No_Implementation_Extensions
3642 * sem_util.adb: Minor reformatting (Set_Entity_With_Style_Check):
3643 Check violation of restriction No_Implementation_Identifiers
3644 * snames.ads-tmpl: Add entries for pragma Implementation_Defined
3645 Add entry for Name_No_Implementation_Extensions
3646
3647 2011-09-06 Robert Dewar <dewar@adacore.com>
3648
3649 * impunit.ads: Minor reformatting.
3650
3651 2011-09-06 Robert Dewar <dewar@adacore.com>
3652
3653 * ali.adb, sem_ch13.adb, lib-xref.adb: Minor reformatting.
3654
3655 2011-09-06 Pascal Obry <obry@adacore.com>
3656
3657 * s-osinte-linux.ads, s-oscons-tmplt.c: Use oscons to define sigset_t
3658 types.
3659
3660 2011-09-06 Robert Dewar <dewar@adacore.com>
3661
3662 * g-socket.adb: Minor reformatting
3663
3664 2011-09-06 Javier Miranda <miranda@adacore.com>
3665
3666 * ali.adb (Scan_ALI): Add missing support to load references of
3667 entities imported from other languages.
3668 * ali.ads (Xref_Record): Adding new fields to store the language and
3669 name of an imported entity.
3670 * lib-xref.adb (Output_Import_Export_Info): Fix typo
3671 in comment.
3672
3673 2011-09-06 Ed Schonberg <schonberg@adacore.com>
3674
3675 * sem_prag.adb (Analyze_Pragma, case Type_Invariant): A type invariant
3676 is allowed on a full type declaration if it is the completion of
3677 a private declarations.
3678 * sem_ch13.adb (Analyze_Aspect_Specifications): An invariant
3679 aspect is allowed on a full type declaration in the private part
3680 of a package.
3681
3682 2011-09-06 Robert Dewar <dewar@adacore.com>
3683
3684 * sem_ch8.ads: Minor reformatting
3685
3686 2011-09-06 Thomas Quinot <quinot@adacore.com>
3687
3688 * s-oscons-tmplt.c, g-socket.adb (GNAT.Sockets.Clear,Set,Is_Set):
3689 Guard against socket values that are not in [0;FD_SETSIZE[
3690
3691 2011-09-06 Robert Dewar <dewar@adacore.com>
3692
3693 * s-osinte-linux.ads, a-iteint.ads, exp_ch6.adb, s-solita.adb: Minor
3694 reformatting.
3695
3696 2011-09-06 Arnaud Charlet <charlet@adacore.com>
3697
3698 * s-linux-alpha.ads: Minor reformatting
3699 * s-oscons-tmplt.c: Fix generated comments in s-oscons template.
3700 Use sizeof instead of corresponding C defines in s-oscons template.
3701
3702 2011-09-06 Vadim Godunko <godunko@adacore.com>
3703
3704 * a-convec.ads, a-iteint.ads: Minor reformatting.
3705
3706 2011-09-06 Vincent Celier <celier@adacore.com>
3707
3708 * projects.texi: Add menus and @node lines.
3709
3710 2011-09-06 Ed Schonberg <schonberg@adacore.com>
3711
3712 * exp_ch6.adb (Expand_Inlined_Call): Handle properly the case
3713 where the return type is an unconstrained array and the context
3714 is an assignment. Optimize the case when the target of the
3715 assignment is a selected component.
3716
3717 2011-09-06 Arnaud Charlet <charlet@adacore.com>
3718
3719 * s-solita.adb: Update comments.
3720
3721 2011-09-06 Pascal Obry <obry@adacore.com>
3722
3723 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, s-linux-mipsel.ads,
3724 s-linux-sparc.ads: Remove hard coded and now wrong definitions.
3725 * s-oscons-tmplt.c: Add support for generating pthread related
3726 types size on GNU/Linux as done for Darwin.
3727 * s-osinte-linux.ads: Use s-oscons to define the pthread types.
3728
3729 2011-09-06 Robert Dewar <dewar@adacore.com>
3730
3731 * exp_ch6.adb: Fix minor typo.
3732
3733 2011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
3734
3735 * exp_ch7.adb: Remove with and use clauses for Get_Targ.
3736 (Alignment_Of): Moved to the body of Nearest_Multiple_Rounded_Up.
3737 (Double_Size_Of): Alphabetized. Update the comment on usage.
3738 (Make_Finalize_Address_Stmts): Update comments and reformat code.
3739 (Nearest_Multiple_Rounded_Up): New routine.
3740 (Size_Of): Update comment on usage. The generated expression now
3741 accounts for alignment gaps by rounding the size of the type to the
3742 nearest multiple rounded up of the type's alignment.
3743
3744 2011-09-06 Robert Dewar <dewar@adacore.com>
3745
3746 * exp_ch7.adb, g-comlin.adb: Minor reformatting.
3747
3748 2011-09-06 Steve Baird <baird@adacore.com>
3749
3750 * exp_ch4.adb (Expand_Allocator_Expression): Look through
3751 derived subprograms in checking for presence of an
3752 Extra_Accessibility_Of_Result formal parameter.
3753 * exp_ch6.adb (Expand_Call): Look through derived subprograms in
3754 checking for presence of an Extra_Accessibility_Of_Result formal
3755 parameter.
3756 (Expand_Call.Add_Actual_Parameter): Fix a bug in the
3757 case where the Parameter_Associatiations attribute is already set,
3758 but set to an empty list.
3759 (Needs_Result_Accessibility_Level):
3760 Unconditionally return False. This is a temporary
3761 change, disabling the Extra_Accessibility_Of_Result
3762 mechanism.
3763 (Expand_Simple_Function_Return): Check for
3764 Extra_Accessibility_Of_Result parameter's presence instead of
3765 testing Ada_Version when generating a runtime accessibility
3766 check which makes use of the parameter.
3767
3768 2011-09-06 Ed Schonberg <schonberg@adacore.com>
3769
3770 * exp_ch4.adb (Expand_N_Case_Expression): Actions created for the
3771 expression in a given case alternative must be attached to the
3772 statement list of the ccrresponding case statement alternative
3773 They cannot be propagated ahead of the case statement, because
3774 the validity of the expression that generated the action may
3775 hold only for that alternative.
3776
3777 2011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
3778
3779 * exp_ch7.adb: Remove with and use clauses for Get_Targ.
3780 (Alignment_Of): Remove the code for strict alignment targets.
3781 (Double_Alignment_Of): Removed.
3782 (Double_Size_Of): New routine.
3783 (Make_Finalize_Address_Stmts): Change the
3784 calculation of the dope's size. Update relevant comments.
3785 (Size_Of): New routine.
3786
3787 2011-09-06 Steve Baird <baird@adacore.com>
3788
3789 * einfo.ads (Extra_Accessibility): Update associated comment to use
3790 the term "present" correctly ("present" just means that it is not
3791 an error to query the value of the attribute - it does not imply
3792 that the value must be non-null).
3793 (Extra_Constrained): Ditto.
3794 (Is_Visible_Formal): Ditto.
3795 (Extra_Accessibility_Of_Result) Ditto; also add Inline pragma.
3796 (Set_Extra_Accessibility_Of_Result): Add Inline pragma.
3797 * exp_ch4.adb (Expand_Allocator_Expression): Improve a comment.
3798 * exp_ch6.adb (Expand_Call): The callee may require an
3799 Extra_Accessibility_Of_Result actual parameter even if Ada_Version
3800 < Ada_2012. This can occur if the callee is exported from a Gnat
3801 runtimes unit. Also improve a comment.
3802
3803 2011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
3804
3805 * exp_ch7.adb: Add with and use clauses for Get_Targ.
3806 (Alignment_Of): Rename formal parameter Some_Typ
3807 to Typ, update related comment. Use the allocator alignment on
3808 strict alignment targets such as SPARC.
3809 (Double_Alignment_Of): Rename formal parameter Some_Typ to Typ, update
3810 related comment.
3811
3812 2011-09-06 Gary Dismukes <dismukes@adacore.com>
3813
3814 * sem_ch9.adb (Check_Interfaces): Test
3815 Is_Limited_Type rather than Is_Limited_Record when checking that
3816 the partial view of a synchronized full view must be limited.
3817
3818 2011-09-06 Emmanuel Briot <briot@adacore.com>
3819
3820 * g-comlin.adb (Free): Fix memory leak.
3821
3822 2011-09-06 Robert Dewar <dewar@adacore.com>
3823
3824 * sem_util.adb, exp_ch6.adb: Minor reformatting and code reorganization.
3825
3826 2011-09-06 Steve Baird <baird@adacore.com>
3827
3828 * einfo.ads (Extra_Accessibility_Of_Result): New function; in the
3829 (Ada2012) cases described in AI05-0234 where the accessibility
3830 level of a function result is "determined by the point of
3831 call", an implicit parameter representing that accessibility
3832 level is passed in. Extra_Accessibilty_Of_Result yields this
3833 additional formal parameter. Extra_Accessibility_Of_Result
3834 is analogous to the existing Extra_Accessibility
3835 function used in the implementation of access parameters.
3836 (Set_Extra_Accessibility_Of_Result): New procedure; sets
3837 Extra_Accessibility_Of_Result attribute.
3838 * einfo.adb (Extra_Accessibility_Of_Result): New function.
3839 (Set_Extra_Accessibility_Of_Result): New procedure.
3840 (Write_Field19_Name): Display Extra_Accessibilty_Of_Result attribute.
3841 * sem_util.adb (Dynamic_Accessibility_Level): Set Etype of
3842 an accessibility level literal to Natural; introduce a nested
3843 function, Make_Level_Literal, to do this.
3844 * exp_ch6.ads (Needs_Result_Accessibility_Level): New function;
3845 determines whether a given function (or access-to-function
3846 type) needs to have an implicitly-declared accessibility-level
3847 parameter added to its profile.
3848 (Add_Extra_Actual_To_Call): Export an existing procedure which was
3849 previously declared in the body of Exp_Ch6.
3850 * exp_ch6.adb (Add_Extra_Actual_To_Call): Export declaration by moving
3851 it to exp_ch6.ads.
3852 (Has_Unconstrained_Access_Discriminants): New Function; a
3853 predicate on subtype entities which returns True if the given
3854 subtype is unconstrained and has one or more access discriminants.
3855 (Expand_Call): When expanding a call to a function which takes an
3856 Extra_Accessibility_Of_Result parameter, pass in the appropriate
3857 actual parameter value. In the case of a function call which is
3858 used to initialize an allocator, this may not be possible because
3859 the Etype of the allocator may not have been set yet. In this
3860 case, we defer passing in the parameter and handle it later in
3861 Expand_Allocator_Expression.
3862 (Expand_Simple_Function_Return): When returning from a function which
3863 returns an unconstrained subtype having at least one access
3864 discriminant, generate the accessibility check needed to ensure that
3865 the function result will not outlive any objects designated by its
3866 discriminants.
3867 (Needs_Result_Accessibility_Level): New function; see exp_ch6.ads
3868 description.
3869 * exp_ch4.adb (Expand_Allocator_Expression): When a function call
3870 is used to initialize an allocator, we may need to pass in "the
3871 accessibility level determined by the point of call" (AI05-0234)
3872 to the function. Expand_Call, where such actual parameters are
3873 usually generated, is too early in this case because the Etype of
3874 the allocator (which is used in determining the level to be passed
3875 in) may not have been set yet when Expand_Call executes. Instead,
3876 we generate code to pass in the appropriate actual parameter
3877 in Expand_Allocator_Expression.
3878 * sem_ch6.adb (Create_Extra_Formals): Create
3879 the new Extra_Accessibility_Of_Result formal if
3880 Needs_Result_Accessibility_Level returns True. This includes the
3881 introduction of a nested procedure, Check_Against_Result_Level.
3882
3883 2011-09-06 Arnaud Charlet <charlet@adacore.com>
3884
3885 * gcc-interface/Makefile.in (X86_TARGET_PAIRS): Remove duplicate
3886 declaration.
3887
3888 2011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
3889
3890 * s-finmas.adb (Set_Finalize_Address): Explain the reason
3891 for the synchronization. Move the test for null from
3892 s-stposu.Allocate_Any_Controlled to this routine since the check
3893 needs to be protected too.
3894 (Set_Heterogeneous_Finalize_Address): Explain the reason for the
3895 synchronization code.
3896 * s-finmas.ads (Set_Heterogeneous_Finalize_Address): Add comment
3897 explaining the context in which this routine is used.
3898 * s-stposu.adb (Allocate_Any_Controlled): Move the test for null
3899 to s-finmas.Set_Finalize_Address.
3900
3901 2011-09-05 Ed Schonberg <schonberg@adacore.com>
3902
3903 * einfo.ads: Document that itypes have no parent field.
3904
3905 2011-09-05 Robert Dewar <dewar@adacore.com>
3906
3907 * rtsfind.adb (Check_CRT): Check for overloaded entity
3908 * rtsfind.ads: Document that entities to be found by rtsfind
3909 cannot be overloaded
3910 * s-taenca.adb, s-tasren.adb, s-tpobop.adb, s-tpoben.ads, s-tpoben.adb
3911 (Lock_Entries_With_Status): New name for Lock_Entries with two
3912 arguments (changed to meet rtsfind no overloading rule).
3913
3914 2011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
3915
3916 * s-finmas.adb (Set_Finalize_Address (Address,
3917 Finalize_Address_Ptr)): Renamed to Set_Heterogeneous_Finalize_Address.
3918 (Set_Finalize_Address (in out Finalization_Master,
3919 Finalize_Address_Ptr): Add synchronization code.
3920 * s-finmas.ads (Set_Finalize_Address (Address,
3921 Finalize_Address_Ptr)): Renamed to Set_Heterogeneous_Finalize_Address.
3922 * s-stposu.adb (Allocate_Any_Controlled): Update the call to
3923 Set_Finalize_Address for the heterogeneous case.
3924
3925 2011-09-05 Ed Schonberg <schonberg@adacore.com>
3926
3927 * sem_ch3.adb: Undo previous change, not suitable after all.
3928
3929 2011-09-05 Robert Dewar <dewar@adacore.com>
3930
3931 * einfo.ads: Minor comment clarification.
3932
3933 2011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
3934
3935 * exp_ch6.adb (Move_Activation_Chain): Rewritten. The routine
3936 no longer needs to search through the entities of the return
3937 statement scope to find the _chain.
3938 * sem_ch5.adb: Add with and use clauses for Exp_Ch6 and Sem_Ch6.
3939 (Analyze_Block_Statement): Add local variable
3940 Is_BIP_Return_Statement. Add machinery to install all entities
3941 produced by the expansion of the return object declaration.
3942 (Install_Return_Entities): New routine.
3943 * sem_ch6.ads, sem_ch6.adb (Install_Entity): Moved from body to spec.
3944
3945 2011-09-05 Ed Schonberg <schonberg@adacore.com>
3946
3947 * sem_ch10.adb (Analyze_Context): Apply simple fixup if context
3948 of subunit is incomplete.
3949 (Analyze_Proper_Body): If parent spec is not available, do not
3950 attempt analysis.
3951
3952 2011-09-05 Ed Schonberg <schonberg@adacore.com>
3953
3954 * sem_disp.adb (Find_Controlling_Arg): Add checks for
3955 interface type conversions, that are expanded into dereferences.
3956
3957 2011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
3958
3959 * sem_ch6.adb (Analyze_Subprogram_Body_Helper):
3960 Examine the parameter and return profile of a subprogram and swap
3961 any incomplete types coming from a limited context with their
3962 corresponding non-limited views.
3963 (Exchange_Limited_Views): New routine.
3964
3965 2011-09-05 Ed Schonberg <schonberg@adacore.com>
3966
3967 * sem_ch3.adb (Prepare_Private_Subtype_Completion): Set parent
3968 of internal entity to the subtype declaration, so that when
3969 entities are subsequently exchanged in a package body, the tree
3970 remains properly formatted for ASIS.
3971
3972 2011-09-05 Johannes Kanig <kanig@adacore.com>
3973
3974 * g-comlin.adb (Set_Usage): Additional optional argument to set help
3975 message.
3976 (Display_Help): display the user given help message, if available.
3977
3978 2011-09-05 Ed Schonberg <schonberg@adacore.com>
3979
3980 * sem_ch3.adb (OK_For_Limited_Init_In_05): The expression
3981 is legal if the original node is an identifier that is a
3982 parameterless function call.
3983
3984 2011-09-05 Pascal Obry <obry@adacore.com>
3985
3986 * prj-nmsc.adb: Minor reformatting.
3987 Add support for standalone aggregate library.
3988 (Check_Stand_Alone_Library): Handle standalone aggregate library.
3989 * projects.texi: Fix documentation for aggregate library projects.
3990
3991 2011-09-05 Robert Dewar <dewar@adacore.com>
3992
3993 * sem_ch6.adb: Minor reformatting.
3994
3995 2011-09-05 Matthew Gingell <gingell@adacore.com>
3996
3997 * s-tassta.adb (Task_Wrapper): Ensure that we don't try to write the
3998 stack guard page on PPC Linux. This patch ensures the 64K guard page at
3999 the bottom of the stack is not overwritten.
4000
4001 2011-09-05 Thomas Quinot <quinot@adacore.com>
4002
4003 * exp_intr.adb, s-tasini.adb: Minor reformatting.
4004
4005 2011-09-05 Ed Schonberg <schonberg@adacore.com>
4006
4007 * sem_ch3.adb (Access_Definition): If an access type declaration
4008 appears in a child unit, the scope of whatever anonymous type
4009 may be generated is the child unit itself.
4010
4011 2011-09-05 Ed Schonberg <schonberg@adacore.com>
4012
4013 * sem_ch6.adb (Analyze_Expression_Function): Do not set
4014 Comes_From_Source on rewritten body.
4015 (Analyze_Subprogram_Body_Helper): Check that the original node for
4016 the body comes from source, when determining whether expansion
4017 of a protected operation is needed.
4018
4019 2011-09-05 Ed Schonberg <schonberg@adacore.com>
4020
4021 * exp_aggr.adb (Replace_Type): If the target of the assignment is
4022 a selected component and the right-hand side is a self-referential
4023 access, the proper prefix of the rewritten attribute is a copy
4024 of the left-hand side, not of its prefix.
4025
4026 2011-09-05 Robert Dewar <dewar@adacore.com>
4027
4028 * sem_ch5.adb: Minor reformatting.
4029 * sem_ch3.adb: Minor code clean up.
4030
4031 2011-09-05 Jose Ruiz <ruiz@adacore.com>
4032
4033 * exp_ch9.adb (Make_Initialize_Protection): The fact that
4034 restriction No_Dynamic_Attachment is in effect or not should
4035 not influence the default priority associated to a protected
4036 object. With this change, when the restriction is in effect (as
4037 is the case for the Ravenscar profile) the default priority of
4038 a protected object with an interrupt handler is in the range of
4039 interrupt priorities (Default_Interrupt_Priority) as required
4040 by D.3(10).
4041
4042 2011-09-05 Arnaud Charlet <charlet@adacore.com>
4043
4044 * a-iteint.ads: Fix header.
4045
4046 2011-09-05 Vincent Celier <celier@adacore.com>
4047
4048 * prj-conf.adb (Do_Autoconf): Make sure Obj_Dir always ends
4049 with a directory separator to avoid output such as:
4050 "/path/to/objauto.cgpr" has been deleted.
4051
4052 2011-09-05 Robert Dewar <dewar@adacore.com>
4053
4054 * sem_ch3.adb: Minor reformatting.
4055
4056 2011-09-05 Ed Schonberg <schonberg@adacore.com>
4057
4058 * sem_ch5.adb: Better error message.
4059
4060 2011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
4061
4062 * exp_aggr.adb: Add with and use clause for Exp_Ch6.
4063 (Expand_Array_Aggregate): Detect a special case of an aggregate
4064 which contains tasks in the context of an unexpanded return
4065 statement of a build-in-place function.
4066 * exp_ch6.adb: Add with and use clause for Exp_Aggr.
4067 (Expand_N_Extended_Return_Statement): Detect a delayed aggregate
4068 which contains tasks and expand it now that the original simple
4069 return statement has been rewritten.
4070 * exp_ch9.adb (Build_Activation_Chain_Entity): Code
4071 reformatting. Do not create a chain for an extended return
4072 statement if one is already available.
4073 (Has_Activation_Chain): New routine.
4074
4075 2011-09-05 Marc Sango <sango@adacore.com>
4076
4077 * sem_ch3.adb (Analyze_Object_Declaration): Remove
4078 the wrong test and add the correct test to detect the violation
4079 of illegal use of unconstrained string type in SPARK mode.
4080
4081 2011-09-05 Ed Schonberg <schonberg@adacore.com>
4082
4083 * sem_ch5.adb (Analyze_Iteration_Specification): Improve error
4084 message on an iterator over an array.
4085
4086 2011-09-05 Robert Dewar <dewar@adacore.com>
4087
4088 * lib-xref-alfa.adb: Minor reformatting.
4089
4090 2011-09-05 Robert Dewar <dewar@adacore.com>
4091
4092 * sem_ch3.adb, sem_res.adb, par.adb, par-ch6.adb, g-comlin.adb,
4093 exp_ch6.adb, lib-xref-alfa.adb: Minor reformatting.
4094
4095 2011-09-05 Gary Dismukes <dismukes@adacore.com>
4096
4097 * exp_ch7.adb, exp_ch6.adb: Minor reformatting.
4098
4099 2011-09-05 Johannes Kanig <kanig@adacore.com>
4100
4101 * lib-xref-alfa.adb: Update comments.
4102
4103 2011-09-05 Thomas Quinot <quinot@adacore.com>
4104
4105 * sem_res.adb: Minor reformatting
4106
4107 2011-09-05 Ed Schonberg <schonberg@adacore.com>
4108
4109 * exp_ch6.adb (Build_In_Place_Formal): If extra formals are not
4110 present, create them now. Needed in case the return type was
4111 a limited view in the function declaration.
4112 (Make_Build_In_Place_Call_In_Allocator): If return type contains
4113 tasks, build the activation chain for it. Pass a reference to
4114 the Master_Id in call to Add_Task_Actuals_To_Build_In_Place call.
4115 * exp_ch7.adb (Make_Set_Finalize_Address_Call): Clean up interface
4116 with build_in_place calls.
4117 * sem_ch9.adb (Analyze_Task_Type_Declaration): If partial view was
4118 incomplete, inatialize its Corresponding_Record_Type component.
4119 * sem_ch10.adb (Build_Chain): Initialize Private_Dependents field
4120 of limited views.
4121
4122 2011-09-05 Johannes Kanig <kanig@adacore.com>
4123
4124 * lib-xref-alfa.adb (Is_Alfa_Reference): Filter constants from effect
4125 information.
4126
4127 2011-09-05 Ed Schonberg <schonberg@adacore.com>
4128
4129 * par-ch6.adb (P_Subprogram): In Ada2012 mode, if the subprogram
4130 appears within a package specification and the token after "IS"
4131 is not a parenthesis, assume that this is an unparenthesized
4132 expression function, even if the token appears in a line by
4133 itself.
4134 * par.adb: Clarify use of Labl field of scope stack in error
4135 recovery.
4136
4137 2011-09-05 Bob Duff <duff@adacore.com>
4138
4139 * sem_res.adb (Resolve_Intrinsic_Operator): Use unchecked
4140 conversions instead of normal type conversions in all cases where a
4141 type conversion would be illegal. In particular, use unchecked
4142 conversions when the operand types are private.
4143
4144 2011-09-05 Johannes Kanig <kanig@adacore.com>
4145
4146 * lib-xref-alfa.adb (Is_Alfa_Reference): Never declare effects on
4147 objects of task type or protected type.
4148
4149 2011-09-05 Ed Schonberg <schonberg@adacore.com>
4150
4151 * sem_ch6.adb (Analyze_Expression_Function): If the expression
4152 function comes from source, indicate that so does its rewriting,
4153 so it is compatible with any subsequent expansion of the
4154 subprogram body (e.g. when it is a protected operation).
4155 * sem_ch4.adb: minor reformatting
4156
4157 2011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
4158
4159 * lib.adb (Check_Same_Extended_Unit): Comment rewriting. Use
4160 Get_Source_Unit rather than Get_Code_Unit as instantiation unfolding
4161 may lead to wrong ancestor package in the case of instantiated subunit
4162 bodies. If a subunit is instantiated, follow the chain of instantiations
4163 rather than the stub structure.
4164
4165 2011-09-02 Robert Dewar <dewar@adacore.com>
4166
4167 * sem_ch4.adb, sem_ch6.adb: Minor reformatting.
4168 * gcc-interface/Make-lang.in: Update dependencies.
4169
4170 2011-09-02 Marc Sango <sango@adacore.com>
4171
4172 * sem_ch3.adb (Analyze_Object_Declaration): Change
4173 comment and add additional check to differentiate constant of
4174 type string from others unconstrained type.
4175
4176 2011-09-02 Ed Schonberg <schonberg@adacore.com>
4177
4178 * sinfo.ads, sinfo.adb: New semantic attribute Premature_Use,
4179 present in incomplete type declarations to refine the error
4180 message the full declaration is in the same unit.
4181 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of
4182 an incomplete type, set the Premature_Use for additional message.
4183 * sem_ch3.adb (Find_Type_Name): If partial view is incomplete
4184 and Premature_Use is set, place additional information at the
4185 point of premature use.
4186
4187 2011-09-02 Bob Duff <duff@adacore.com>
4188
4189 * sem_ch6.adb: (Check_Post_State): Suppress warning
4190 "postcondition refers only to pre-state" when the expression has not
4191 yet been analyzed, because it causes false alarms. This can happen when
4192 the postcondition contains a quantified expression, because those are
4193 analyzed later. This is a temporary/partial fix.
4194 (Process_Post_Conditions): Minor: change wording of warning.
4195
4196 2011-09-02 Marc Sango <sango@adacore.com>
4197
4198 * sem_ch3.adb (Analyze_Object_Declaration): Detect the violation of
4199 illegal use of unconstrained string type in SPARK mode.
4200 * sem_res.adb (Analyze_Operator_Symbol): Set the
4201 right place where the string operand of concatenation should be
4202 violate in SPARK mode.
4203
4204 2011-09-02 Robert Dewar <dewar@adacore.com>
4205
4206 * sem_prag.adb, sem_util.adb, sem_ch6.adb, prj-nmsc.adb,
4207 exp_ch3.adb: Minor reformatting.
4208
4209 2011-09-02 Vincent Celier <celier@adacore.com>
4210
4211 * prj-conf.adb (Add_Default_GNAT_Naming_Scheme): Declare "gcc"
4212 as the compiler driver so Is_Compilable returns True for sources.
4213 * prj-nmsc.adb (Override_Kind): When Kind is Sep, set the source
4214 for the body.
4215
4216 2011-09-02 Ed Schonberg <schonberg@adacore.com>
4217
4218 * sem_prag.adb (Analyze_PPC_In_Decl_Part): for a class-wide
4219 condition, a reference to a controlling formal must be interpreted
4220 as having the class-wide type (or an access to such) so that the
4221 inherited condition can be properly applied to any overriding
4222 operation (see ARM12 6.6.1 (7)).
4223
4224 2011-09-02 Tristan Gingold <gingold@adacore.com>
4225
4226 * init.c (__gnat_is_vms_v7): Fix case and add prototype
4227 for LIB$GETSYI.
4228
4229 2011-09-02 Javier Miranda <miranda@adacore.com>
4230
4231 * exp_ch3.adb (Expand_N_Object_Declaration): Do not copy the
4232 initializing expression of a class-wide interface object declaration
4233 if its type is limited.
4234
4235 2011-09-02 Johannes Kanig <kanig@adacore.com>
4236
4237 * sem_util.adb (Unique_Name): To obtain a unique name for enumeration
4238 literals, take into account the type name; the type is *not*
4239 the scope for an enumeration literal.
4240
4241 2011-09-02 Ed Schonberg <schonberg@adacore.com>
4242
4243 * sem_ch6.adb (Check_Overriding_Indicator): add special check
4244 to reject an overriding indicator on a user-defined Adjust
4245 subprogram for a limited controlled type.
4246
4247 2011-09-02 Ed Schonberg <schonberg@adacore.com>
4248
4249 * sem_res.adb (Resolve_Actuals): add missing call to Resolve
4250 for an actual that is a function call returning an unconstrained
4251 limited controlled type.
4252
4253 2011-09-02 Tristan Gingold <gingold@adacore.com>
4254
4255 * g-socthi-vms.adb (c_sendmsg, c_recvmsg): Use unpacked msg if on vms 7
4256
4257 2011-09-02 Johannes Kanig <kanig@adacore.com>
4258
4259 * alfa.ads (Name_Of_Heap_Variable): Change value of the HEAP variable
4260 from "HEAP" to __HEAP Change comment that refers to that variable
4261 * put_alfa.adb: Change comment that refers to that variable
4262
4263 2011-09-02 Robert Dewar <dewar@adacore.com>
4264
4265 * exp_ch4.adb, exp_ch6.adb, prj-nmsc.adb: Minor reformatting.
4266
4267 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
4268
4269 * exp_util.adb (Extract_Renamed_Object): Renamed to
4270 Find_Renamed_Object. This routine has been reimplemented and now uses
4271 tree traversal to locate a renamed object.
4272 (Is_Aliased): Replace call to Extract_Renamed_Object with
4273 Find_Renamed_Object.
4274
4275 2011-09-02 Tristan Gingold <gingold@adacore.com>
4276
4277 * init.c: (__gnat_is_vms_v7): New function.
4278
4279 2011-09-02 Olivier Hainque <hainque@adacore.com>
4280
4281 * tracebak.c (STOP_FRAME, ppc elf/vxworks case): Stop on frames
4282 that have a misaligned backchain, necessarily bogus.
4283
4284 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
4285
4286 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not create
4287 TSS routine Finalize_Address when compiling in Alfa mode.
4288 (Expand_Freeze_Record_Type): Do not create TSS routine
4289 Finalize_Address when compiling in Alfa mode.
4290 * exp_ch4.adb (Expand_Allocator_Expression): Do not produce a
4291 call to Set_Finalize_Address in Alfa mode because Finalize_Address is
4292 not built.
4293 (Expand_N_Allocator): Do not produce a call to
4294 Set_Finalize_Address in Alfa mode because Finalize_Address is not built.
4295 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not
4296 produce a call to primitive Set_Finalize_Address in Alfa mode because
4297 Finalize_Address is not built.
4298 * exp_ch7.adb (Build_Finalization_Master): Do not create
4299 finalization masters in Afa mode since they are not needed.
4300 (Build_Finalizer): Do not create scope and library-level
4301 finalizers in Alfa mode since they are not needed.
4302 * exp_util.adb (Build_Allocate_Deallocate_Proc): Do not expand
4303 "new" and "free" when applied to controlled objects in Alfa mode since
4304 this is not needed.
4305
4306 2011-09-02 Vincent Celier <celier@adacore.com>
4307
4308 * prj-nmsc.db: (Check_Stand_Alone_Library): For SALs, allow
4309 only library names with the syntax of Ada identifiers, to avoid errors
4310 when compiling the binder generated files.
4311 * projects.texi: Document restriction on SAL library names
4312
4313 2011-09-02 Thomas Quinot <quinot@adacore.com>
4314
4315 * a-chtgbo.adb: Minor comment fix.
4316
4317 2011-09-02 Robert Dewar <dewar@adacore.com>
4318
4319 * lib-xref.adb: Minor reformatting
4320
4321 2011-09-02 Vincent Celier <celier@adacore.com>
4322
4323 * bindusg.adb, clean.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
4324 gnatls.adb, gnatname.adb, gnatxref.adb, gprep.adb, makeusg.adb: Add
4325 --version and --help in usage.
4326 * switch.ads, switch.adb (Display_Usage_Version_And_Help): New procedure
4327
4328 2011-09-02 Bob Duff <duff@adacore.com>
4329
4330 * lib-xref.adb: (Hash): Avoid use of 'Mod attribute, because old
4331 compilers don't understand it.
4332
4333 2011-09-02 Gary Dismukes <dismukes@adacore.com>
4334
4335 * exp_attr.adb (Expand_N_Attribute_Reference): Pass the
4336 underlying subtype rather than its base type on the call to
4337 Build_Record_Or_Elementary_Input_Function, so that any
4338 constraints on a discriminated subtype will be available for
4339 doing the check required by AI05-0192.
4340 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function):
4341 If the prefix subtype of the 'Input attribute is a constrained
4342 discriminated subtype, then check each constrained discriminant value
4343 against the corresponding value read from the stream.
4344
4345 2011-09-02 Yannick Moy <moy@adacore.com>
4346
4347 * usage.adb, warnsw.adb, sem_ch6.adb, opt.ads: Disable by default
4348 warnings on suspicious contracts, and enable them with -gnatwa.
4349
4350 2011-09-02 Robert Dewar <dewar@adacore.com>
4351
4352 * exp_util.adb, exp_ch9.adb, sem_attr.adb, sem_ch6.adb: Minor
4353 reformatting.
4354
4355 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
4356
4357 * exp_ch9.adb (Install_Private_Data_Declarations): Add guards
4358 which ensure that restriction No_Dynamic_Attachment has not been
4359 violated.
4360 (Make_Initialize_Protection): Protected types with attach or
4361 interrupt handlers must not violate restriction No_Dynamic_Attachment.
4362 * exp_util.adb (Corresponding_Runtime_Package): Add a guard
4363 which ensures that restriction No_Dynamic_Attachment has not been
4364 violated.
4365 * sem_attr.adb: (Eval_Attribute): Transform
4366 VAX_Float_Type'First and 'Last into references to
4367 the temporaries which store the corresponding bounds. The
4368 transformation is needed since the back end cannot evaluate
4369 'First and 'Last on VAX.
4370 (Is_VAX_Float): New routine.
4371
4372 2011-09-02 Ed Schonberg <schonberg@adacore.com>
4373
4374 * sem_ch12.adb (Analyze_Subprogram_Instantiation): If the
4375 generic unit is not intrinsic and has an explicit convention,
4376 the instance inherits it.
4377
4378 2011-09-02 Robert Dewar <dewar@adacore.com>
4379
4380 * prj-dect.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, prj-tree.adb,
4381 prj.adb, prj.ads, sem_ch5.adb: Minor reformatting.
4382
4383 2011-09-02 Thomas Quinot <quinot@adacore.com>
4384
4385 * sem_attr.adb (Analyze_Attribute, case Unrestriced_Access):
4386 Guard against a prefix that is an N_Has_Entity but has no
4387 associated entity.
4388
4389 2011-09-02 Yannick Moy <moy@adacore.com>
4390
4391 * lib-xref-alfa.adb (Is_Alfa_Reference): Ignore IN parameters in Alfa
4392 references.
4393
4394 2011-09-02 Yannick Moy <moy@adacore.com>
4395
4396 * opt.ads (Warn_On_Suspicious_Contract): New warning flag.
4397 * sem_ch3.adb (Analyze_Declarations): Call checker for suspicious
4398 contracts.
4399 * sem_ch6.adb, sem_ch6.ads (Check_Subprogram_Contract): New
4400 procedure looking for suspicious postconditions.
4401 * usage.adb (Usage): New options -gnatw.t and -gnatw.T.
4402 * warnsw.adb (Set_Dot_Warning_Switch): Take into account new
4403 options -gnatw.t and -gnatw.T.
4404
4405 2011-09-02 Pascal Obry <obry@adacore.com>
4406
4407 * prj.adb: Minor code refactoring. Move check for null project in
4408 Project_Changed.
4409 * projects.texi: Fix minor typos.
4410
4411 2011-09-02 Ed Schonberg <schonberg@adacore.com>
4412
4413 * sem_ch5.adb (Analyze_Iterator_Specification): If the domain
4414 of iteration is an expression, its value must be captured in a
4415 renaming declaration, so that modification of the elements is
4416 propagated to the original container.
4417
4418 2011-09-02 Pascal Obry <obry@adacore.com>
4419
4420 * prj-proc.adb, prj.adb, makeutl.adb, makeutl.ads, prj-dect.adb,
4421 prj-nmsc.adb, prj-util.adb, prj-conf.adb, prj-env.adb,
4422 prj-tree.adb: Minor reformatting and style fixes.
4423
4424 2011-09-02 Robert Dewar <dewar@adacore.com>
4425
4426 * s-rident.ads: Add new restriction No_Implicit_Aliasing
4427 * sem_attr.adb: (Analyze_Access_Attribute): Deal with
4428 No_Implicit_Aliasing
4429 (Analyze_Attribute, case Address): ditto
4430 (Analyze_Attribute, case Unrestricted_Access): ditto
4431 * sem_util.ads, sem_util.adb: (Is_Aliased_View): Handle
4432 No_Implicit_Aliasing restriction.
4433 * gnat_rm.texi: Add documentation for No_Implicit_Aliasing
4434
4435 2011-09-02 Ed Schonberg <schonberg@adacore.com>
4436
4437 * exp_util.adb: (Possible_Bit_Aligned_Object): If the object
4438 is an unchecked conversion, apply test to its expression.
4439
4440 2011-09-02 Javier Miranda <miranda@adacore.com>
4441
4442 * sem_ch3.adb (Check_Abstract_Overriding): When
4443 traversing the chain of aliased subprograms avoid reporting a
4444 redundant error on the current entity.
4445
4446 2011-09-02 Sergey Rybin <rybin@adacore.com>
4447
4448 * gnat_ugn.texi: Minor clean up.
4449
4450 2011-09-02 Bob Duff <duff@adacore.com>
4451
4452 * s-htable.adb (Set_If_Not_Present): Use renaming
4453 instead of ":=", because the type Key is limited in the generic (even
4454 if not in the instances).
4455
4456 2011-09-02 Robert Dewar <dewar@adacore.com>
4457
4458 * exp_util.adb, sem_ch10.adb, sem_attr.adb, s-htable.adb,
4459 g-comlin.adb, g-comlin.ads, lib-xref-alfa.adb, lib-xref.adb: Minor
4460 reformatting.
4461
4462 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
4463
4464 * sem_ch3.adb: (Set_Anonymous_Type): Associate the itype of an
4465 inherited component with the enclosing derived type. Code reformatting.
4466
4467 2011-09-02 Gary Dismukes <dismukes@adacore.com>
4468
4469 * checks.adb: (Determine_Range): Add test of OK1 to prevent the early
4470 return done when overflow checks are enabled, since comparisons against
4471 Lor and Hir should not be done when OK1 is False.
4472
4473 2011-09-02 Gary Dismukes <dismukes@adacore.com>
4474
4475 * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
4476 Add new formal Master_Exp. When present, add that expression to the
4477 call as an extra actual.
4478 (Make_Build_In_Place_Call_In_Object_Declaration): Add variable
4479 Fmaster_Actual and in the case of a BIP call initializing a return
4480 object of an enclosing BIP function set it to a
4481 new reference to the implicit finalization master
4482 formal of the enclosing function. Fmaster_Actual is
4483 then passed to the new formal Master_Exp on the call to
4484 Add_Finalization_Master_Actual_To_Build_ In_Place_Call. Move
4485 initializations of Enclosing_Func to its declaration.
4486
4487 2011-09-02 Thomas Quinot <quinot@adacore.com>
4488
4489 * csets.ads: Minor reformatting
4490
4491 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
4492
4493 * exp_aggr.adb: (Get_Constraint_Association): Add code to retrieve
4494 the full view of a private type coming from an instantiation.
4495 * exp_ch4.adb: (Current_Anonymous_Master): Reimplement the search
4496 loop to iterate over the declarations rather than use the
4497 First_Entity / Next_Entity scheme.
4498
4499 2011-09-02 Ed Schonberg <schonberg@adacore.com>
4500
4501 * sem_attr.adb: (Analyze_Attribute, case 'Range): when expanding
4502 X'range (N) into X'First (N) .. X'Last (N), do not share the
4503 dimension indicator N, if present. Even though it is a static
4504 constant, its source location may be modified when printing
4505 expanded code under -gnatDL, and node sharing will lead to chaos
4506 in Sprint on large files, by generating a sloc value that does
4507 not correspond to any source file.
4508
4509 2011-09-02 Bob Duff <duff@adacore.com>
4510
4511 * einfo.adb: (Has_Xref_Entry): Do not call
4512 Implementation_Base_Type. Lib.Xref has been
4513 rewritten to avoid the need for it, and it was costly.
4514 * s-htable.ads,s-htable.adb: (Present,Set_If_Not_Present): New
4515 functions in support of efficient xref.
4516 * lib-xref-alfa.adb: Misc changes related to Key component of
4517 type Xref_Entry.
4518 * lib-xref.adb: (Add_Entry,etc): Speed improvement.
4519 (New_Entry): Call Implementation_Base_Type, because Has_Xref_Entry
4520 no longer does. This is the one place where it is needed.
4521
4522 2011-09-02 Johannes Kanig <kanig@adacore.com>
4523
4524 * g-comlin.adb (Getopt): New optional argument Concatenate to have
4525 similar interface as the other Getopt function.
4526
4527 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
4528
4529 * exp_ch4.adb: (Expand_Allocator_Expression): Do not generate
4530 a call to Set_Finalize_Address if there is no allocator available.
4531 * exp_util.adb: (Build_Allocate_Deallocate_Proc): Account for
4532 a case of allocator expansion where the allocator is not expanded but
4533 needs a custom allocate routine. Code reformatting.
4534 (Is_Finalizable_Transient): Remove local variables Has_Rens and
4535 Ren_Obj. Code reformatting.
4536 (Is_Renamed): Renamed to Is_Aliased. Add code to detect aliasing
4537 through the use of 'reference.
4538 * sem_ch4.adb: (Analyze_Allocator): Detect allocators generated
4539 as part of build-in-place expansion. They are intentionally marked as
4540 coming from source, but their parents are not.
4541
4542 2011-09-02 Ed Schonberg <schonberg@adacore.com>
4543
4544 * sem_ch10.adb (Analyze_With_Clause): If the library unit
4545 is the generated subprogram declaration for a child unit body
4546 that acts as spec, use the original body in the with_clause,
4547 to prevent binding errors.
4548
4549 2011-09-02 Vincent Celier <celier@adacore.com>
4550
4551 * gnat_ugn.texi: Adapt documentation of -gnateInnn to new VMS
4552 qualifier /MULTI_UNIT_INDEX=
4553
4554 2011-09-02 Johannes Kanig <kanig@adacore.com>
4555
4556 * g-comlin.adb (Getopt): Return when switch is dealt with automatically,
4557 instead of calling the callback function
4558
4559 2011-09-02 Robert Dewar <dewar@adacore.com>
4560
4561 * prj-proc.adb, prj.ads, sem_util.adb, s-taprop-linux.adb,
4562 prj-nmsc.adb, prj-util.ads, prj-env.adb: Minor reformatting.
4563
4564 2011-09-02 Vincent Celier <celier@adacore.com>
4565
4566 * prj-nmsc.adb: (Find_Sources): When the list of sources is
4567 explicitly declared in an extending project, do not warn if a source
4568 for an inherited naming exception is not found.
4569
4570 2011-09-02 Gary Dismukes <dismukes@adacore.com>
4571
4572 * exp_ch6.adb: (Is_Build_In_Place_Function_Call): Return False if
4573 expansion is inactive.
4574
4575 2011-09-02 Ed Schonberg <schonberg@adacore.com>
4576
4577 * sem_util.adb (Note_Possible_Modification): If the entity
4578 being modified is the renaming generated for an Ada2012 iterator
4579 element, the enclosing container or array is modified as well.
4580
4581 2011-09-02 Jose Ruiz <ruiz@adacore.com>
4582
4583 * s-taprop-linux.adb (Initialize_Lock, Initialize_TCB,
4584 Initialize): Define and initialize the
4585 mutex attributes and condition variable attributes locally.
4586
4587 2011-09-02 Vincent Celier <celier@adacore.com>
4588
4589 * prj-nmsc.adb (Check_File): Mark as Locally_Removed a naming
4590 exception replaced in an extending project.
4591 (Check_Object): No error when the other source is locally removed.
4592
4593 2011-09-02 Yannick Moy <moy@adacore.com>
4594
4595 * exp_ch6.adb (Is_Build_In_Place_Function_Call): in Alfa mode, allow
4596 unresolved calls.
4597
4598 2011-08-31 Arnaud Charlet <charlet@adacore.com>
4599
4600 * gcc-interface/Makefile.in: Clean up handling of x86 and x86-64
4601 run-time files.
4602 * gcc-interface/Make-lang.in: Update dependencies.
4603
4604 2011-09-01 Robert Dewar <dewar@adacore.com>
4605
4606 * sem_ch3.adb, s-taprop-linux.adb, gnatls.adb: Minor reformatting.
4607
4608 2011-09-01 Jose Ruiz <ruiz@adacore.com>
4609
4610 * adaint.h (__gnat_cpu_free): Fix the name of this profile.
4611 * adaint.c (__gnat_cpu_alloc, __gnat_cpu_alloc_size, __gnat_cpu_free,
4612 __gnat_cpu_zero, __gnat_cpu_set): Create version of these subprograms
4613 specific for systems where their glibc version does not define the
4614 routines to handle dynamically allocated CPU sets.
4615
4616 2011-09-01 Vincent Celier <celier@adacore.com>
4617
4618 * prj-proc.adb, prj.ads, prj-nmsc.adb, prj-util.adb, prj-util.ads,
4619 prj-env.adb: Implement inheritance of naming exceptions in extending
4620 projects.
4621
4622 2011-09-01 Romain Berrendonner <berrendo@adacore.com>
4623
4624 * gnatls.adb: Display simple message instead of content of
4625 gnatlic.adl.
4626
4627 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
4628
4629 * sem_ch3.adb: (Build_Derived_Record_Type) Remove the kludgy update of
4630 access discriminant and anonymous access component scopes.
4631 (Inherit_Component): Reuse the itype of an access discriminant
4632 or anonymous access component by copying it in order to set the proper
4633 scope. This is done only when the parent and the derived type
4634 are in different scopes.
4635 (Set_Anonymous_Etype): New routine.
4636
4637 2011-09-01 Robert Dewar <dewar@adacore.com>
4638
4639 * a-convec.adb: Minor reformatting throughout.
4640
4641 2011-09-01 Jose Ruiz <ruiz@adacore.com>
4642
4643 * adaint.c, adaint.h (__gnat_cpu_alloc, __gnat_cpu_alloc_size,
4644 __gnat_cpu_set_free): Create these wrappers around the CPU_ALLOC,
4645 CPU_ALLOC_SIZE and CPU_FREE linux macros.
4646 (__gnat_cpu_zero, __gnat_cpu_set): Use the CPU_ZERO_S and
4647 CPU_SET_S respectively because we are now using dynamically allocated
4648 CPU sets which are more portable across different glibc versions.
4649 * s-osinte-linux.ads (cpu_set_t_ptr, CPU_ALLOC, CPU_ALLOC_SIZE,
4650 CPU_FREE): Add this type and subprograms to be able to create cpu_set_t
4651 masks dynamically according to the number of processors in the target
4652 platform.
4653 (CPU_ZERO, CPU_SET): They are now mapped to the CPU_ZERO_S and CPU_SET_S
4654 respectively, so we need to pass the size of the masks as
4655 parameters.
4656 * s-taprop-linux.adb (Create_Task, Set_Task_Affinity): Use dynamically
4657 created cpu_set_t masks
4658 with the number of processors available in the target platform,
4659 instead of static bit arrays. It enhances portability because
4660 it uses the information from the target platform.
4661 * sem_ch8.adb: (Attribute_Renaming): When checking whether we
4662 are using a restricted run-time library, use the flag
4663 Configurable_Run_Time_Mode instead of Restricted_Profile.
4664
4665 2011-09-01 Vincent Celier <celier@adacore.com>
4666
4667 * ug_words: Add /MULTI_UNIT_INDEX= -> -gnateI
4668 * vms_data.ads: Add new VMS qualifier equivalent for -gnateInnn
4669
4670 2011-09-01 Nicolas Roche <roche@adacore.com>
4671
4672 * adaint.c (__gnat_tmp_name): Don't use tmpnam function from the system
4673 on VxWorks in kernel mode.
4674
4675 2011-09-01 Jose Ruiz <ruiz@adacore.com>
4676
4677 * s-taprop-linux.adb (Create_Task, Set_Task_Affinity): Use the linux
4678 macros for handling CPU sets (CPU_ZERO, CPU_SET) instead of modifying
4679 directly the bit array.
4680 * s-osinte-linux.ads (CPU_ZERO, CPU_SET): Import these wrappers around
4681 the linux macros with the same name.
4682 * adaint.h, adaint.c (__gnat_cpu_zero, __gnat_cpu_set): Create these
4683 wrappers around the CPU_ZERO and CPU_SET linux macros.
4684
4685 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
4686
4687 * exp_ch7.adb (Find_Insertion_List): Removed.
4688 (Process_Transient_Objects): Insert the declarations of the hook
4689 access type and the hook object before the associated transient object.
4690
4691 2011-09-01 Jose Ruiz <ruiz@adacore.com>
4692
4693 * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
4694 package System.Aux_Dec when using restricted run-time libraries which
4695 do not have this package.
4696
4697 2011-09-01 Tristan Gingold <gingold@adacore.com>
4698
4699 * s-vaflop-vms-alpha.adb: Remove pragma optimize, useless.
4700
4701 2011-09-01 Bob Duff <duff@adacore.com>
4702
4703 * sem_attr.adb (Analyze_Access_Attribute): Do not call
4704 Kill_Current_Values for P'Unrestricted_Access, where P is library level
4705
4706 2011-09-01 Thomas Quinot <quinot@adacore.com>
4707
4708 * exp_ch5.adb: Minor reformatting
4709 * gnat_ugn.texi: Fix minor typos.
4710 * gcc-interface/Make-lang.in: Update dependencies.
4711
4712 2011-09-01 Robert Dewar <dewar@adacore.com>
4713
4714 * inline.adb, sem_aggr.adb: Minor reformatting.
4715
4716 2011-09-01 Ed Schonberg <schonberg@adacore.com>
4717
4718 * a-convec.adb: Proper handling of cursors for Ada2012 iterators.
4719
4720 2011-09-01 Robert Dewar <dewar@adacore.com>
4721
4722 * prj-proc.adb, exp_ch6.adb, prj-env.adb: Minor reformatting.
4723
4724 2011-09-01 Bob Duff <duff@adacore.com>
4725
4726 * sem_aggr.adb (Resolve_Aggregate): Need to treat "in instance
4727 body" the same as "in inlined body", because visibility shouldn't
4728 apply there.
4729
4730 2011-09-01 Eric Botcazou <ebotcazou@adacore.com>
4731
4732 * inline.adb (Add_Inlined_Body): Refine previous change.
4733
4734 2011-09-01 Gary Dismukes <dismukes@adacore.com>
4735
4736 * exp_ch6.ads (Needs_BIP_Alloc_Form): New utility function.
4737 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
4738 Test for case where call
4739 initializes an object of a return statement before testing for
4740 a constrained call, to ensure that all such cases get handled
4741 by simply passing on the caller's parameters. Also, in that
4742 case call Needs_BIP_Alloc_Form to determine whether to pass on
4743 the BIP_Alloc_Form parameter of the enclosing function rather
4744 than testing Is_Constrained. Add similar tests for the return
4745 of a BIP call to later processing to ensure consistent handling.
4746 (Needs_BIP_Alloc_Form): New utility function.
4747 * sem_ch6.adb: (Create_Extra_Formals): Replace test for adding
4748 a BIP_Alloc_Form formal with call to new utility function
4749 Needs_BIP_Alloc_Form.
4750
4751 2011-09-01 Pascal Obry <obry@adacore.com>
4752
4753 * prj-part.adb: Minor reformatting.
4754
4755 2011-09-01 Vincent Celier <celier@adacore.com>
4756
4757 * prj-env.adb (Create_Mapping_File.Process): Encode the upper
4758 half character in the unit name.
4759
4760 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
4761
4762 * exp_ch4.adb: Minor code and comment reformatting.
4763
4764 2011-09-01 Thomas Quinot <quinot@adacore.com>
4765
4766 * exp_ch6.adb (Expand_Inlined_Call): Remove redundant tests
4767 for Is_Limited_Type and Is_Tagged_Type in condition checking
4768 for by-reference type.
4769 * inline.adb (Add_Inlined_Body): Only exclude init_procs. Other
4770 subprograms may have a completion because of a previous
4771 Inline_Always clause, but the enclosing package must be marked
4772 inlined for the subprogram body to become visible to the backend.
4773
4774 2011-09-01 Thomas Quinot <quinot@adacore.com>
4775
4776 * sem_aux.adb, exp_ch4.adb: Minor reformatting
4777
4778 2011-09-01 Pascal Obry <obry@adacore.com>
4779
4780 * prj-proc.adb, prj.ads, sinput-p.adb: Minor reformatting.
4781
4782 2011-09-01 Ed Schonberg <schonberg@adacore.com>
4783
4784 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Generate references to
4785 the formals of a subprogram stub that acts as a spec.
4786
4787 2011-09-01 Ed Schonberg <schonberg@adacore.com>
4788
4789 * exp_ch6.adb (Expand_Inlined_Call): If an actual is a by_reference
4790 type, declare a renaming for it, not an object declaration.
4791
4792 2011-09-01 Yannick Moy <moy@adacore.com>
4793
4794 * ali-util.adb, ali-util.ads (Read_Withed_ALIs): Add parameter
4795 Ignore_Errors to ignore failures to read ALI files when True.
4796
4797 2011-09-01 Javier Miranda <miranda@adacore.com>
4798
4799 * exp_ch3.adb (Expand_N_Object_Declaration): Handle non-default
4800 constructor calls associated with non-tagged record types.
4801
4802 2011-09-01 Robert Dewar <dewar@adacore.com>
4803
4804 * g-socthi-vms.adb: Minor reformatting.
4805
4806 2011-09-01 Nicolas Roche <roche@adacore.com>
4807
4808 * sysdep.c: Don't use macro functions for stdio functions on VxWorks
4809 in order to avoid impact of imcompatible changes.
4810 * cstreams.c: Likewise
4811 * cio.c: Likewise
4812 * aux-io.c: Likewise
4813
4814 2011-09-01 Yannick Moy <moy@adacore.com>
4815
4816 * lib-writ.adb (Write_With_Lines): Always output complete information
4817 on "with" line in Alfa mode, as this is required by formal verification
4818 back-end.
4819
4820 2011-09-01 Tristan Gingold <gingold@adacore.com>
4821
4822 * g-socthi-vms.adb: Add comments.
4823
4824 2011-09-01 Pascal Obry <obry@adacore.com>
4825
4826 * prj.ads: Minor reformatting.
4827
4828 2011-09-01 Vincent Celier <celier@adacore.com>
4829
4830 * prj-env.adb (Create_Config_Pragmas_File.Check): Put all naming
4831 exceptions in the config pragmas file.
4832
4833 2011-09-01 Tristan Gingold <gingold@adacore.com>
4834
4835 * gnat_ugn.texi: Document GNAT_STACK_SIZE on IVMS.
4836
4837 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
4838
4839 * exp_ch7.adb (Find_Insertion_List): New routine.
4840 (Process_Transient_Objects): Add code to handle the abnormal
4841 finalization of a controlled transient associated with a subprogram
4842 call. Since transients are cleaned up right after the associated
4843 context, an exception raised during a subprogram call may bypass the
4844 finalization code.
4845
4846 2011-09-01 Robert Dewar <dewar@adacore.com>
4847
4848 * exp_ch6.adb (Expand_Call): Check actual for aliased parameter is
4849 aliased.
4850
4851 2011-09-01 Robert Dewar <dewar@adacore.com>
4852
4853 * exp_ch4.adb, a-exexda.adb: Minor reformatting.
4854
4855 2011-09-01 Robert Dewar <dewar@adacore.com>
4856
4857 * s-taskin.ads, s-tassta.adb, sem_ch13.adb: Minor reformatting.
4858
4859 2011-09-01 Thomas Quinot <quinot@adacore.com>
4860
4861 * Makefile.rtl: Move s-oscons.o from GNATRTL_TASKING_OBJS to
4862 GNATRTL_NONTASKING_OBJS.
4863
4864 2011-09-01 Robert Dewar <dewar@adacore.com>
4865
4866 * einfo.ads (Is_Aliased): Fix existing documentation and add note on
4867 possibility of this flag being set for formals in Ada 2012 mode.
4868 * par-ch6.adb (P_Formal_Part): Handle aliased for parameters for Ada
4869 2012.
4870 * sem_ch6.adb (Process_Formals): Handle aliased parameters in Ada 2012
4871 mode.
4872 * sinfo.adb (Aliased_Present): Allowed in N_Parameter_Specification for
4873 Ada 2012.
4874 * sinfo.ads (Aliased_Present): Allowed in N_Parameter_Specification for
4875 Ada 2012.
4876
4877 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
4878
4879 * exp_ch4.adb (Find_Insertion_Node): New routine. Determines the proper
4880 insertion node in a tree of nested Expression_With_Actions nodes.
4881 (Process_Transient_Object): In the case where a complex if statement
4882 has been converted into nested Expression_With_Actions nodes, the
4883 "hook" object and the associated access type must be inserted before
4884 the top most Expression_With_Actions.
4885
4886 2011-09-01 Robert Dewar <dewar@adacore.com>
4887
4888 * a-cbprqu.adb, a-cbprqu.ads, a-cuprqu.adb, a-cuprqu.ads,
4889 a-cbsyqu.adb, a-cbsyqu.ads: Minor reformatting.
4890
4891 2011-09-01 Ed Schonberg <schonberg@adacore.com>
4892
4893 * sem_attr.adb: Conditionalize aliasing predicates to Ada2012.
4894
4895 2011-09-01 Jose Ruiz <ruiz@adacore.com>
4896
4897 * aspects.ads (Aspect_Id, Aspect_Argument, Aspect_Names): Add the CPU
4898 aspect.
4899 * aspects.adb (Canonical_Aspect): Add entry for the CPU aspect.
4900 * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze the CPU aspect
4901 in a similar way as we do for the Priority or Dispatching_Domain aspect.
4902 * s-mudido-affinity.adb (Dispatching_Domain_Tasks,
4903 Dispatching_Domains_Frozen): Move this local data to package
4904 System.Tasking because with the CPU aspect we need to have access
4905 to this data when creating the task in System.Tasking.Stages.Create_Task
4906 * s-taskin.ads (Dispatching_Domain_Tasks, Dispatching_Domains_Frozen):
4907 Move these variables from the body of
4908 System.Multiprocessors.Dispatching_Domains because with the CPU aspect
4909 we need to have access to this data when creating the task in
4910 System.Tasking.Stages.Create_Task.
4911 * s-taskin.adb (Initialize): Signal the allocation of the environment
4912 task to a CPU, if any, so that we know whether the CPU can be
4913 transferred to a different dispatching domain.
4914 * s-tassta.adb (Create_Task): Check whether the CPU to which this task
4915 is being allocated belongs to the dispatching domain where the task
4916 lives. Signal the allocation of the task to a CPU, if any, so that we
4917 know whether the CPU can be transferred to a different dispatching
4918 domain.
4919
4920 2011-09-01 Ed Schonberg <schonberg@adacore.com>
4921
4922 * exp_attr.adb, sem_attr.adb, snames.ads-tmpl: Implementation of
4923 attributes Same_Storage and Overlaps_Storage.
4924
4925 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
4926
4927 * exp_strm.adb: Remove with and use clause for Opt.
4928 (Build_Array_Input_Function): Remove the version-dependent generation
4929 of the return statement. The Ada 2005 tree is now the default.
4930
4931 2011-09-01 Yannick Moy <moy@adacore.com>
4932
4933 * put_alfa.adb: Unconditionnally write files in Alfa section, so that
4934 it is never empty when compiling in Alfa mode.
4935
4936 2011-09-01 Robert Dewar <dewar@adacore.com>
4937
4938 * sem_aggr.adb, sem_ch3.adb, a-direct.adb, s-taprop-vxworks.adb,
4939 comperr.adb, exp_ch9.adb, exp_pakd.adb, sem_ch12.adb, freeze.adb,
4940 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
4941 gnat1drv.adb, a-rbtgbo.adb, exp_dist.adb: Minor reformatting
4942
4943 2011-09-01 Matthew Heaney <heaney@adacore.com>
4944
4945 * Makefile.rtl, impunit.adb: Add a-csquin.ads, a-cusyqu.ad[sb],
4946 a-cuprqu.ad[sb], a-cbsyqu.ad[sb], a-cbprqu.ad[sb]
4947 * a-csquin.ads: New Ada 2012 unit that specifies the queue interface
4948 * a-cusyqu.ads, a-cusyqu.adb: New Ada 2012 unit that specifies the
4949 unbounded queue container.
4950 * a-cbsyqu.ads, a-cbsyqu.adb: New Ada 2012 unit that specifies the
4951 bounded queue container.
4952 * a-cuprqu.ads, a-cuprqu.adb: New Ada 2012 unit that specifies the
4953 unbounded priority queue container.
4954 * a-cbprqu.ads, a-cbprqu.adb: New Ada 2012 unit that specifies the
4955 bounded priority queue container.
4956
4957 2011-08-31 Pascal Obry <obry@adacore.com>
4958
4959 * a-direct.adb: Do not try to create an UNC path on Windows.
4960 (Create_Path): Skip leading computer name in UNC path if any.
4961
4962 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
4963
4964 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): Remove the
4965 version-dependent generation of the return statement. The Ada 2005 tree
4966 is now the default.
4967
4968 2011-08-31 Thomas Quinot <quinot@adacore.com>
4969
4970 * rtsfind.ads, exp_dist.adb (Find_Numeric_Representation): Predefined
4971 types Stream_Element_Offset and Storage_Offset have a different native
4972 type depending on whether the platform is 32 or 64 bits. When
4973 exchanging them, always convert to 64 bits.
4974
4975 2011-08-31 Yannick Moy <moy@adacore.com>
4976
4977 * debug.adb: Reserve debug option -gnatd.E for passing gnatprove option
4978 --force-alfa to gnat2why.
4979
4980 2011-08-31 Ed Schonberg <schonberg@adacore.com>
4981
4982 * sem_ch12.adb (Save_References): If the node has aspects, save
4983 references within the corresponding expressions in a separate step,
4984 because the aspects are not directly in the tree for the declaration
4985 to which they belong.
4986
4987 2011-08-31 Arnaud Charlet <charlet@adacore.com>
4988
4989 * freeze.adb (Freeze_Record_Type): Omit test on variable size component
4990 in CodePeer mode, since representation clauses are partially ignored.
4991 * gcc-interface/Make-lang.in: Update dependencies.
4992
4993 2011-08-31 Jose Ruiz <ruiz@adacore.com>
4994
4995 * s-taprop-vxworks.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
4996 s-taprop-solaris.adb (Create_Task): Not_A_Specific_CPU can be assigned
4997 to any dispatching domain.
4998
4999 2011-08-31 Thomas Quinot <quinot@adacore.com>
5000
5001 * exp_ch4.adb: Minor reformatting.
5002
5003 2011-08-31 Bob Duff <duff@adacore.com>
5004
5005 * sem_ch6.adb (Get_Generic_Parent_Type): Don't query Subtype_Indication
5006 on nodes for which it is not defined.
5007 (Is_Non_Overriding_Operation): Exit the loop when we find a generic
5008 parent type.
5009
5010 2011-08-31 Bob Duff <duff@adacore.com>
5011
5012 * sem_ch3.adb (Process_Full_View): Disable legality check if
5013 In_Instance, to avoid spurious errors.
5014 * sem_ch12.adb (Validate_Derived_Type_Instance): Disable legality check
5015 if In_Instance, to avoid spurious errors.
5016
5017 2011-08-31 Pascal Obry <obry@adacore.com>
5018
5019 * a-direct.adb: Use Dir_Seps everywhere to properly handle all
5020 directory speparators.
5021 (Compose): Use Dir_Seps to handle both forms.
5022 (Create_Path): Use Dir_Seps instead of explicit check, no semantic
5023 changes.
5024 (Extension): Use Dir_Seps to handle both forms.
5025
5026 2011-08-31 Pascal Obry <obry@adacore.com>
5027
5028 * prj-conf.adb: Minor reformatting.
5029
5030 2011-08-31 Jose Ruiz <ruiz@adacore.com>
5031
5032 * aspects.ads (Aspect_Id, Aspect_Argument, Aspect_Names): Add the
5033 dispatching domain aspect.
5034 * aspects.adb (Canonical_Aspect): Add entry for the dispatching domain
5035 aspect.
5036 * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze the
5037 Dispatching_Domain aspect in a similar way as we do for the Priority
5038 aspect.
5039 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add the
5040 Dispatching_Domain component if a Dispatching_Domain pragma or aspect
5041 is present.
5042 (Make_Task_Create_Call): Add the Dispatching_Domain when creating a task
5043 * par-prag.adb (Prag): Add Pragma_Dispatching_Domain as a known pragma.
5044 * sem_prag.adb (Analyze_Pragma): Check the correctness of a pragma
5045 Dispatching_Domain and add it to the task definition.
5046 (Sig_Flags): Add Pragma_Dispatching_Domain.
5047 * rtsfind.ads, rtsfind.adb (RTU_Id, RE_Id, Get_Unit_Name): Add the
5048 support to find the types Dispatching_Domain and
5049 Dispatching_Domain_Access.
5050 * sinfo.ads, sinfo.adb (Has_Pragma_Dispatching_Domain,
5051 Set_Has_Pragma_Dispatching_Domain): Add these subprograms to set and
5052 query the availability of a pragma Dispatching_Domain.
5053 * snames.ads-tmpl (Name_uDispatching_Domain): Add this name required by
5054 the expander to pass the Dispatching_Domain when creating a task.
5055 (Name_Dispatching_Domain): Add this new name for a pragma.
5056 (Pragma_Id): Add the new Pragma_Dispatching_Domain.
5057 * s-tassta.ads, s-tassta.adb (Create_Task): Set the domain to which the
5058 task has been allocated at creation time.
5059 * s-tarest.adb (Create_Restricted_Task): The dispatching domain using
5060 Ravenscar is always null.
5061 * s-taskin.ads, s-taskin.adb (Initialize_ATCB): Set the domain to which
5062 the task has been allocated at creation time.
5063 * s-tporft.adb (Register_Foreign_Thread): A foreign task will not have
5064 a specific dispatching domain.
5065 * s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-vxworks.adb,
5066 s-taprop-mingw.adb (Create_Task): Check whether both Dispatching_Domain
5067 and CPU are specified for the task, and the CPU value is not contained
5068 within the range of processors for the domain.
5069
5070 2011-08-31 Vincent Celier <celier@adacore.com>
5071
5072 * make.adb (Original_Gcc) : New constant String_Access.
5073 (Gnatmake): For VM targets, do not use VM version of the compiler if
5074 --GCC= has been specified.
5075
5076 2011-08-31 Thomas Quinot <quinot@adacore.com>
5077
5078 * sem_ch5.adb: Minor reformatting.
5079
5080 2011-08-31 Ed Schonberg <schonberg@adacore.com>
5081
5082 * exp_pakd.adb (Convert_To_PAT_Type): If prefix is a function call, do
5083 not reanalyze it.
5084
5085 2011-08-31 Bob Duff <duff@adacore.com>
5086
5087 * exp_ch4.adb (Expand_N_Selected_Component): Use the full type, in case
5088 the access type is private; we don't care about privacy in expansion.
5089
5090 2011-08-31 Ed Schonberg <schonberg@adacore.com>
5091
5092 * sem_aggr.adb (Resolve_Aggregate): In an instance, ignore aggregate
5093 subcomponents tnat may be limited, because they originate in view
5094 conflicts. If the original aggregate is legal and the actuals are
5095 legal, the aggregate itself is legal.
5096
5097 2011-08-31 Matthew Heaney <heaney@adacore.com>
5098
5099 * a-rbtgbo.adb (Clear_Tree): Assert representation invariant for lock
5100 status.
5101
5102 2011-08-31 Ed Schonberg <schonberg@adacore.com>
5103
5104 * sem_ch5.adb: Set kind of loop parameter properly, to preserve all
5105 errors in B tests.
5106
5107 2011-08-31 Jose Ruiz <ruiz@adacore.com>
5108
5109 * sem_ch13.adb (Analyze_Aspect_Specifications): For the Priority and
5110 Interrupt_Priority aspects, force the analysis of the aspect expression
5111 (when building the equivalent pragma). Otherwise, its analysis is done
5112 too late, after the task or protected object has been created.
5113 * sem_ch9.adb (Analyze_Single_Protected_Declaration,
5114 Analyze_Single_Task_Declaration): Remove the code to move the aspects
5115 to the object declaration because they are needed in the type
5116 declaration.
5117
5118 2011-08-31 Robert Dewar <dewar@adacore.com>
5119
5120 * exp_ch5.adb, exp_ch7.ads, sem_ch5.adb, put_scos.adb, s-rannum.adb,
5121 a-rbtgbo.adb, exp_intr.adb, a-cbdlli.adb, a-cbdlli.ads: Minor
5122 reformatting.
5123
5124 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
5125
5126 * exp_util.adb (Find_Protection_Type): Do not look for fields _object
5127 if the corresponding type is malformed due to restriction violations.
5128
5129 2011-08-31 Robert Dewar <dewar@adacore.com>
5130
5131 * s-ransee.ads, s-ransee.adb: Minor reformatting.
5132
5133 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
5134
5135 * exp_ch4.adb (Expand_N_Allocator): Correct faulty condition which
5136 would cause the generation of Set_Finalize_Address if the target is a
5137 VM and the designated type is not derived from [Limited_]Controlled.
5138
5139 2011-08-31 Arnaud Charlet <charlet@adacore.com>
5140
5141 * comperr.adb, comperr.ads, gnat1drv.adb (Delete_SCIL_Files): New
5142 subprogram.
5143 (Compiler_Abort, Gnat1drv): Call Delete_SCIL_Files in codepeer mode in
5144 case of a compilation error.
5145
5146 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
5147
5148 * init.c (__gnat_error_handler): Standardize the stack overflow or
5149 erroneous memory access message.
5150 * seh_init.c (__gnat_SEH_error_handler): Standardize the stack overflow
5151 or erroneous memory access message.
5152
5153 2011-08-31 Robert Dewar <dewar@adacore.com>
5154
5155 * sem_ch4.adb: Minor reformatting.
5156 * sem_ch6.adb: Minor code reorganization (use Ekind_In).
5157
5158 2011-08-31 Thomas Quinot <quinot@adacore.com>
5159
5160 * scos.ads: Minor documentation clarification.
5161 * put_scos.adb: Do not generate SCO unit header line for a unit that
5162 has no SCO lines.
5163
5164 2011-08-31 Robert Dewar <dewar@adacore.com>
5165
5166 * a-rbtgbo.adb, alfa_test.adb: Minor reformatting.
5167
5168 2011-08-31 Tristan Gingold <gingold@adacore.com>
5169
5170 * exp_ch7.ads, exp_ch7.adb (Finalization_Exception_Data): New type to
5171 hold variables between these following subprograms.
5172 (Build_Exception_Handler, Build_Object_Declarations,
5173 Build_Raise_Statement): Use the above type as parameter.
5174 Make the above adjustments.
5175 * exp_intr.adb (Expand_Unc_Deallocation): Adjust.
5176
5177 2011-08-31 Pascal Obry <obry@adacore.com>
5178
5179 * projects.texi: Minor reformatting.
5180
5181 2011-08-31 Tristan Gingold <gingold@adacore.com>
5182
5183 * s-ransee.ads, s-ransee.adb: Add system.random_seed unit.
5184 * s-rannum.adb (Reset): Use Get_Seed from s-ransee.
5185
5186 2011-08-31 Ed Schonberg <schonberg@adacore.com>
5187
5188 * exp_ch5.adb: Minor code cleanup.
5189 * sem_ch5.adb (Analyze_Iteration_Scheme): Set ekind of loop variable to
5190 prevent cascaded errors.
5191 (Analyze_Loop_Statement): In semantics-only mode, introduce loop
5192 variable of an iterator specification in current scope.
5193 * sem_ch6.adb (Analyze_Return_Statement, Find_what_It_Apples_To): Skip
5194 postconditions on the stack, as they contain no return statements.
5195
5196 2011-08-31 Yannick Moy <moy@adacore.com>
5197
5198 * exp_alfa.adb (Expand_Alfa_N_Package_Declaration,
5199 Expand_Alfa_N_Subprogram_Body): Remove useless procedures which simply
5200 call Qualify_Entity_Names.
5201 (Expand_Alfa): call Qualify_Entity_Names in more cases
5202 * lib-xref-alfa.adb: Take into account system package.
5203 * sem_prag.adb Take into account restrictions in Alfa mode, contrary to
5204 CodePeer mode in which we are interested in finding bugs even if
5205 compiler cannot compile source.
5206 * sem_util.adb, sem_util.ads (Unique_Entity): Take into account case of
5207 deferred constant.
5208
5209 2011-08-31 Gary Dismukes <dismukes@adacore.com>
5210
5211 * sem_ch3.adb (Constrain_Concurrent): Retrieve Base_Type of the subtype
5212 denoted by the subtype mark to ensure getting the concurrent type in
5213 the case where the subtype mark denotes a private subtype of a
5214 concurrent type (needed when using -gnatc).
5215 (Process_Subtype): For the processing specific to type kinds, case on
5216 the Base_Type kind of the Subtype_Mark_Id, to handle cases where the
5217 subtype denotes a private subtype whose base type is nonprivate (needed
5218 for subtypes of private fulfilled by task types when compiling with
5219 -gnatc).
5220
5221 2011-08-31 Gary Dismukes <dismukes@adacore.com>
5222
5223 * sem_disp.adb (Check_Dispatching_Operation): Bypass registration of
5224 late primitives that override interface operations when the full
5225 expander is not active, to avoid blowups in Register_Primitive when
5226 types don't have associated secondary dispatch tables.
5227
5228 2011-08-31 Yannick Moy <moy@adacore.com>
5229
5230 * alfa_test.adb: Code clean up.
5231
5232 2011-08-31 Marc Sango <sango@adacore.com>
5233
5234 * restrict.adb (Check_SPARK_Restriction): Change Comes_From_Source (N)
5235 by Comes_From_Source (Original_Node (N)) in order to treat also the
5236 nodes which have been rewritten.
5237 * sem_ch4.adb (Analyze_Explicit_Dereference, Analyze_Slice): Guard the
5238 explicit dereference and slice violation in spark mode on the nodes
5239 coming only from the source code.
5240
5241 2011-08-31 Robert Dewar <dewar@adacore.com>
5242
5243 * exp_ch5.adb, exp_alfa.ads, prj.ads, sem_attr.adb,
5244 lib-xref-alfa.adb: Minor reformatting.
5245
5246 2011-08-31 Matthew Heaney <heaney@adacore.com>
5247
5248 * a-crbltr.ads (Tree_Type): Default-initialize the Nodes component.
5249
5250 2011-08-31 Javier Miranda <miranda@adacore.com>
5251
5252 * sem_ch4.adb (Try_Object_Operation): Addition of one formal to search
5253 only for class-wide subprograms conflicting with entities of concurrent
5254 tagged types.
5255
5256 2011-08-31 Matthew Heaney <heaney@adacore.com>
5257
5258 * a-rbtgbo.adb (Generic_Allocate): Initialize pointer components of
5259 node to null value.
5260
5261 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
5262
5263 * sem_ch12.adb (Insert_Freeze_Node_For_Instance): Provide a more
5264 general description of the routine.
5265
5266 2011-08-31 Ed Schonberg <schonberg@adacore.com>
5267
5268 * a-cbdlli.adb, a-cbdlli.ads: Add iterator machinery to bounded
5269 doubly-linked lists.
5270
5271 2011-08-31 Gary Dismukes <dismukes@adacore.com>
5272
5273 * exp_ch5.adb (Expand_N_Assignment_Statement): When a discriminant
5274 check is needed for a left-hand side that is a dereference, and the
5275 base type is private without discriminants (whereas the full type does
5276 have discriminants), an extra retrieval of the underlying type may be
5277 needed in the case where the subtype is a record subtype whose base
5278 type is private. Update comments.
5279
5280 2011-08-31 Javier Miranda <miranda@adacore.com>
5281
5282 * sem_ch4.adb (Try_Object_Operation): When a dispatching primitive is
5283 found check if there is a class-wide subprogram covering the primitive.
5284
5285 2011-08-31 Yannick Moy <moy@adacore.com>
5286
5287 * sem_res.adb: Further cases where full expansion test is needed,
5288 rather than expansion test.
5289
5290 2011-08-31 Pascal Obry <obry@adacore.com>
5291
5292 * prj-attr.adb: Fix Source_File_Switches attribute kind (must be a list)
5293
5294 2011-08-31 Ed Schonberg <schonberg@adacore.com>
5295
5296 * exp_ch5.adb: Handle iterators over derived container types.
5297
5298 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
5299
5300 * einfo.ads, einfo.adb: Add new flag Has_Anonymous_Master.
5301 (Has_Anonymous_Master): New routine.
5302 (Set_Has_Anonymous_Master): New routine.
5303 (Write_Entity_Flags): Add an entry for Has_Anonymous_Master.
5304 * exp_ch4.adb: Add with and use clause for Sem_Ch8.
5305 (Current_Anonymous_Master): New routine.
5306 (Current_Unit_First_Declaration): Removed.
5307 (Current_Unit_Scope): Removed.
5308 (Expand_N_Allocator): Anonymous access-to-controlled types now chain
5309 their objects on a per-unit heterogeneous finalization master.
5310
5311 2011-08-31 Matthew Heaney <heaney@adacore.com>
5312
5313 * a-cbhama.adb, a-cbhase.adb (Insert): Check for zero-length buckets
5314 array.
5315
5316 2011-08-31 Jose Ruiz <ruiz@adacore.com>
5317
5318 * s-taprop-linux.adb (Create_Task): Avoid changing the affinity mask
5319 when not needed.
5320
5321 2011-08-31 Gary Dismukes <dismukes@adacore.com>
5322
5323 * sem_disp.adb (Propagate_Tag): Return without propagating in the case
5324 where the actual is an unexpanded call to 'Input.
5325
5326 2011-08-31 Yannick Moy <moy@adacore.com>
5327
5328 * sem_ch4.adb: Code clean up.
5329
5330 2011-08-31 Yannick Moy <moy@adacore.com>
5331
5332 * exp_alfa.adb, exp_alfa.ads: Minor correction of copyright notice.
5333
5334 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
5335
5336 * exp_ch7.adb (Build_Array_Deep_Procs): Do not generate Deep_Finalize
5337 and TSS primitive Finalize_Address if finalization is suppressed.
5338 (Build_Record_Deep_Procs): Do not generate Deep_Finalize and TSS
5339 primitive Finalize_Address if finalization is suppressed.
5340
5341 2011-08-31 Jose Ruiz <ruiz@adacore.com>
5342
5343 * s-mudido-affinity.adb, s-taprop-linux.adb, s-taprop-mingw.adb,
5344 s-taprop-solaris.adb, s-taprop-vxworks.adb (Set_Task_Affinity): Make
5345 sure that the underlying task has already been created before trying
5346 to change its affinity.
5347 (Set_CPU): Use the term processor instead of CPU, as we do in
5348 Assign_Task.
5349
5350 2011-08-31 Vincent Celier <celier@adacore.com>
5351
5352 * prj-attr.adb: New Compiler attribute Source_File_Switches.
5353 * prj-nmsc.adb (Process_Compiler): Process attribute
5354 Source_File_Switches.
5355 * prj.ads (Language_Config): New name list component
5356 Name_Source_File_Switches.
5357 * snames.ads-tmpl (Name_Source_File_Switches): New standard name.
5358
5359 2011-08-31 Ed Schonberg <schonberg@adacore.com>
5360
5361 * sem_attr.adb (Analyze_Attribute, case 'Old): If prefix may be a
5362 discriminated component of an actual, expand at once to prevent
5363 ouf-of-order references with generated subtypes.
5364
5365 2011-08-31 Yannick Moy <moy@adacore.com>
5366
5367 * lib-xref-alfa.adb (Add_Alfa_Xrefs): Do not take into account read
5368 reference to operator in Alfa xrefs.
5369
5370 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
5371
5372 * sem_ch12.adb (Freeze_Subprogram_Body): Add code to handle the case
5373 where the parent instance was frozen before the current instance due to
5374 the presence of a source body. Update calls to Insert_After_Last_Decl.
5375 (Insert_After_Last_Decl): Renamed to Insert_Freeze_Node_For_Instance.
5376 Update the comment which illustrates the purpose of the routine.
5377 Package instances are now frozen by source bodies which appear after
5378 the instance. This ensures that entities coming from within the
5379 instance are available for use in the said bodies.
5380 (Install_Body): Add code to handle the case where the parent instance
5381 was frozen before the current instance due to the presence of a source
5382 body. Update calls to Insert_After_Last_Decl.
5383
5384 2011-08-31 Jose Ruiz <ruiz@adacore.com>
5385
5386 * s-taprop-linux.adb (Set_Task_Affinity): Avoid the use of anonymous
5387 access types.
5388 * affinity.c (__gnat_set_affinity_mask): Declare index variable.
5389
5390 2011-08-31 Yannick Moy <moy@adacore.com>
5391
5392 * sem_ch8.adb (Analyze_Subprogram_Renaming): Refine expander test in
5393 full-expander test.
5394 * alfa.adb, alfa.ads, alfa_test.adb, ali.adb, debug.adb, errout.adb,
5395 errout.ads, erroutc.adb, expander.adb, exp_ch4.adb, exp_ch7.adb,
5396 freeze.adb, get_alfa.adb, get_alfa.ads, gnat1drv.adb, lib-writ.adb,
5397 lib-writ.ads, lib-xref.adb, lib-xref.ads, lib-xref-alfa.adb, opt.adb,
5398 opt.ads, put_alfa.adb, put_alfa.ads, restrict.adb, sem_ch12.adb,
5399 sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
5400 sem_prag.adb, sem_res.adb, sem_util.adb: Minor reformatting, renaming
5401 ALFA in Alfa (we dropped acronym).
5402 * einfo.adb (Primitive_Operations): Correctly return list of primitive
5403 operations in a case where it returned previously No_Elist.
5404
5405 2011-08-31 Robert Dewar <dewar@adacore.com>
5406
5407 * s-taprop-vxworks.adb, sem_ch5.adb, s-taprop-tru64.adb, exp_alfa.adb,
5408 s-taprop-vms.adb, bindgen.adb, s-mudido.adb, s-mudido.ads,
5409 sem_res.adb, expander.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
5410 s-taprop-solaris.adb, s-mudido-affinity.adb, vms_conv.adb,
5411 s-taprop-irix.adb, s-taprop.ads, s-taskin.adb, s-taskin.ads,
5412 s-taprop-hpux-dce.adb, a-chtgbo.adb, s-taprop-posix.adb: Minor
5413 reformatting.
5414
5415 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
5416
5417 * sem_ch12 (Check_Private_View): Revert previous change.
5418 * sem_res.adb (Conversion_Check): Do not emit the error message if the
5419 conversion is in a generic instance.
5420
5421 2011-08-31 Matthew Heaney <heaney@adacore.com>
5422
5423 * a-cbhase.adb (Symmetric_Difference): Dereference correct node array.
5424 * a-chtgbo.adb (Free): Allow 0 as index value.
5425
5426 2011-08-31 Matthew Heaney <heaney@adacore.com>
5427
5428 * a-cborma.adb (Insert): Add comment to explain why no element
5429 assignment.
5430
5431 2011-08-31 Gary Dismukes <dismukes@adacore.com>
5432
5433 * sem_util.adb (Find_Body_Discriminal): Test whether the scope of the
5434 spec discriminant is already a concurrent type, in which case just use
5435 it, otherwise fetch the Corresponding_Concurrent_Type as before.
5436
5437 2011-08-30 Eric Botcazou <ebotcazou@adacore.com>
5438
5439 * system-irix-n64.ads, system-linux-armeb.ads, system-linux-armel.ads,
5440 system-linux-mips.ads, system-linux-mipsel.ads,
5441 system-linux-mips64el.ads, system-linux-ppc64.ads,
5442 system-linux-sparcv9.ads, system-rtems.ads: Remove GCC_ZCX_Support.
5443
5444 2011-08-30 Eric Botcazou <ebotcazou@adacore.com>
5445
5446 * gcc-interface/ada-tree.h (TYPE_EXTRA_SUBTYPE_P): Add internal check.
5447 * gcc-interface/utils2.c (build_binary_op): Tighten condition.
5448 (build_unary_op): Likewise.
5449
5450 2011-08-30 Eric Botcazou <ebotcazou@adacore.com>
5451
5452 * raise-gcc.c: Do not include coretypes.h and tm.h.
5453 (setup_to_install): Remove test for compiler macro.
5454 * targext.c: Document use for the library.
5455 * gcc-interface/Makefile.in: Fix comment on the use of IN_GCC.
5456
5457 2011-08-30 Eric Botcazou <ebotcazou@adacore.com>
5458
5459 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not convert
5460 the expression to the nominal type if the latter is a record type with
5461 a variant part and the type of the former is a record type without one.
5462
5463 2011-08-30 Yannick Moy <moy@adacore.com>
5464
5465 * exp_aggr.adb, exp_ch11.adb, exp_prag.adb: Remove early exit during
5466 expansion in Alfa mode.
5467 * exp_ch6.adb, exp_ch6.ads (Expand_Actuals): Make subprogram public
5468 * exp_alfa.adb, exp_alfa.ads: New package defining light expansion for
5469 Alfa mode.
5470 * gnat1drv.adb (Adjust_Global_Switches): Update Comment.
5471 * sem_res.adb: Ditto.
5472 * gcc-interface/Make-lang.in: Update dependencies.
5473
5474 2011-08-30 Thomas Quinot <quinot@adacore.com>
5475
5476 * g-socket.ads: Minor documentation adjustment.
5477
5478 2011-08-30 Robert Dewar <dewar@adacore.com>
5479
5480 * exp_ch9.adb, s-tassta.adb, s-secsta.adb: Minor reformatting.
5481
5482 2011-08-30 Yannick Moy <moy@adacore.com>
5483
5484 * exp_ch6_light.adb, exp_ch6_light.ads, exp_attr_light.adb,
5485 exp_attr_light.ads, exp_ch7_light.adb, exp_ch7_light.ads,
5486 exp_light.adb, exp_light.ads, exp_prag.adb, expander.adb,
5487 gnat1drv.adb, exp_ch11.adb, exp_ch6.adb, exp_ch6.ads, exp_aggr.adb:
5488 Revert change which introduced files for "light"
5489 expansion, to be replaced by a single file for Alfa expansion.
5490
5491 2011-08-30 Robert Dewar <dewar@adacore.com>
5492
5493 * opt.ads, s-soflin.adb, exp_ch9.adb, sem_res.adb: Update comment.
5494 Minor code reorg/reformatting.
5495
5496 2011-08-30 Yannick Moy <moy@adacore.com>
5497
5498 * opt.adb, opt.ads (Full_Expander_Active): New function defines a
5499 common shorthand for (Expander_Active and not ALFA_Mode) that can be
5500 used for testing full expansion, that is active expansion not in the
5501 reduced mode for Alfa
5502 * exp_ch4.adb, exp_ch9.adb, exp_disp.adb, sem_ch10.adb, sem_ch12.adb,
5503 sem_ch6.adb, sem_ch9.adb, sem_res.adb: Use newly defined "flag" instead
5504 of the verbose (Expander_Active and not ALFA_Mode)
5505
5506 2011-08-30 Tristan Gingold <gingold@adacore.com>
5507
5508 * s-parame-vms-alpha.ads, s-parame-hpux.ads, s-tassta.adb,
5509 s-tarest.adb, s-parame-vms-ia64.ads, s-soflin.adb, s-secsta.adb,
5510 s-secsta.ads, s-parame.ads, s-parame-vxworks.ads, s-parame-ae653.ads:
5511 Renames Ratio to Percentage, and Sec_Stack_Ratio to Sec_Stack_Percentage
5512
5513 2011-08-30 Gary Dismukes <dismukes@adacore.com>
5514
5515 * sem_res.adb (Valid_Conversion): Revise test for implicit anonymous
5516 access conversions to check that the conversion is a rewritten node,
5517 rather than just having Comes_From_Source set to False, which wasn't
5518 sufficient.
5519
5520 2011-08-30 Robert Dewar <dewar@adacore.com>
5521
5522 * exp_ch9.adb, sem_ch9.adb, sem_ch6.adb, exp_disp.adb,
5523 g-socket.ads: Minor reformatting.
5524
5525 2011-08-30 Thomas Quinot <quinot@adacore.com>
5526
5527 * sem_util.adb: Minor reformatting.
5528
5529 2011-08-30 Tristan Gingold <gingold@adacore.com>
5530
5531 * raise-gcc.c: Never catch exception if _UA_FORCE_UNWIND flag is set,
5532 to be compliant with the ABI.
5533
5534 2011-08-30 Hristian Kirtchev <kirtchev@adacore.com>
5535
5536 * sem_ch12.adb (Check_Private_View): Exchange the private and full view
5537 of a designated type when the related access type is an actual in an
5538 instance. This ensures that the full view of designated type is
5539 available when inside the body of the instance.
5540
5541 2011-08-30 Ed Schonberg <schonberg@adacore.com>
5542
5543 * sem_util.adb (May_Be_Lvalue): To determine whether a reference may be
5544 in a position to be modified, a slice is treated like an indexed
5545 component.
5546
5547 2011-08-30 Thomas Quinot <quinot@adacore.com>
5548
5549 * s-oscons-tmplt.c, g-socket.ads: Adjust maximum allowed value for
5550 field tv_sec in struct timeval.
5551
5552 2011-08-30 Yannick Moy <moy@adacore.com>
5553
5554 * exp_ch9.adb, exp_disp.adb, sem_ch9.adb, sem_res.adb: Protect several
5555 blocks of code doing full expansion, previously only guarded by
5556 Expander_Active, by anding the test that ALFA_Mode is not set
5557
5558 2011-08-30 Ed Schonberg <schonberg@adacore.com>
5559
5560 * sem_ch6.adb (Analyze_Return_Type): If the return type is incomplete,
5561 add the function to the list of private dependents, for subsequent
5562 legality check on Taft amendment types.
5563 * sem_ch12.adb (Analyze_Formal_Incomplete_Type): Initialize
5564 Private_Dependents, as for other incomplete types.
5565 * sem_util.adb (Wrong_Type): Avoid cascaded errors when a
5566 Taft-amendment type is used as the return type of a function.
5567
5568 2011-08-30 Javier Miranda <miranda@adacore.com>
5569
5570 * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup: replace code
5571 which emits an error by a call to a new routine which report the error.
5572 * exp_ch9.adb (Build_Wrapper_Spec): Build the wrapper even if the
5573 entity does not cover an existing interface.
5574 * errout.ads, errout.adb (Error_Msg_PT): New routine. Used to factorize
5575 code.
5576 * sem_ch6.adb (Check_Conformance): Add specific error for wrappers of
5577 protected procedures or entries whose mode is not conformant.
5578 (Check_Synchronized_Overriding): Code cleanup: replace code which emits
5579 an error by a call to a new routine which report the error.
5580
5581 2011-08-30 Robert Dewar <dewar@adacore.com>
5582
5583 * gnat_rm.texi: Minor change.
5584 * exp_attr_light.adb: Minor reformatting.
5585
5586 2011-08-30 Ed Schonberg <schonberg@adacore.com>
5587
5588 * sem_ch3.adb: Patch inheritance of aspects in
5589 Complete_Private_Subtype, to avoid infinite loop.
5590
5591 2011-08-30 Javier Miranda <miranda@adacore.com>
5592
5593 * sem_ch3.adb (Add_Internal_Interface_Entities): If serious errors have
5594 been reported and a subprogram covering an interface primitive is not
5595 found then skip generating the internal entity. Done to avoid crashing
5596 the frontend.
5597 (Check_Abstract_Overriding): Change text of error of wrong formal of
5598 protected subprogram or entry. Done for consistency to emit exactly the
5599 same error reported by Check_Synchronized_Overriding. In addition, the
5600 error is restricted to protected types (bug found working on AI05-0090)
5601
5602 2011-08-30 Yannick Moy <moy@adacore.com>
5603
5604 * exp_aggr.adb, exp_ch11.adb, exp_prag.adb: Remove early exit during
5605 expansion in Alfa mode.
5606 * exp_ch6.adb, exp_ch6.ads (Expand_Actuals): Make subprogram public.
5607 * exp_light.adb, exp_light.ads: New package defining light expansion.
5608 * expander.adb (Expand): Call light expansion in Alfa mode
5609 * exp_ch6_light.adb, exp_ch6_light.ads: Light expansion of chapter 6
5610 constructs.
5611 * exp_ch7_light.adb, exp_ch7_light.ads: Light expansion of chapter 7
5612 constructs.
5613 * exp_attr_light.adb, exp_attr_light.ads: Light expansion of attributes
5614 * gnat1drv.adb (Adjust_Global_Switches): Comment
5615
5616 2011-08-30 Yannick Moy <moy@adacore.com>
5617
5618 * lib-xref-alfa.adb: Minor refactoring.
5619
5620 2011-08-30 Yannick Moy <moy@adacore.com>
5621
5622 * exp_ch9.adb (Expand_Entry_Barrier): Do not perform expansion in Alfa
5623 mode.
5624 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not perform
5625 expansion in Alfa mode.
5626 * sem_ch9.adb (Analyze_Entry_Body): Do not perform expansion in Alfa
5627 mode.
5628
5629 2011-08-30 Robert Dewar <dewar@adacore.com>
5630
5631 * debug_a.adb: Update comment.
5632
5633 2011-08-30 Robert Dewar <dewar@adacore.com>
5634
5635 * exp_ch5.adb, sem_ch3.adb, sem_ch5.adb, einfo.adb, checks.adb,
5636 sem_util.adb, sem_util.ads, sem_res.adb, s-stposu.adb, sem_attr.adb,
5637 exp_ch4.adb, exp_ch6.adb, lib-xref-alfa.adb,
5638 sem_ch8.adb, sem_disp.adb, exp_ch3.adb: Minor reformatting
5639
5640 2011-08-30 Robert Dewar <dewar@adacore.com>
5641
5642 * gnat_rm.texi: Add section on C.6(16) implementation advice for pragma
5643 volatile.
5644
5645 2011-08-30 Hristian Kirtchev <kirtchev@adacore.com>
5646
5647 * exp_ch3.adb (Expand_Freeze_Array_Type): Correct the call to
5648 Build_Finalization_Master by supplying an insertion node and enclosing
5649 scope. In its old version, the call did not generate a finalization
5650 master.
5651 (Expand_Freeze_Record_Type): Add local variable Has_AACC. Add code to
5652 recognize anonymous access-to-controlled components. Rewrite the
5653 machinery which creates finalization masters to service anonymous
5654 access-to-controlled components of a record type. In its current state,
5655 only one heterogeneous master is necessary to handle multiple anonymous
5656 components.
5657 (Freeze_Type): Comment reformatting.
5658 * rtsfind.ads: Add RE_Set_Is_Heterogeneous to tables RE_Id and
5659 RE_Unit_Table.
5660 * s-stposu.adb (Allocate_Any_Controlled): Rewrite the machinery which
5661 associates TSS primitive Finalize_Address with either the master itself
5662 or with the internal hash table depending on the mode of operation of
5663 the master.
5664
5665 2011-08-30 Javier Miranda <miranda@adacore.com>
5666
5667 * exp_ch3.adb (Make_Eq_If): If the etype of the _parent component is an
5668 interface type then do not generate code to compare this component.
5669 Required since they have no components and their equality operator is
5670 abstract.
5671
5672 2011-08-30 Steve Baird <baird@adacore.com>
5673
5674 * sem_util.ads (Deepest_Type_Access_Level): New function; for the type
5675 of a saooaaat (i.e, a stand-alone object of an anonymous access type),
5676 returns the (static) accessibility level of the object. Otherwise, the
5677 same as Type_Access_Level.
5678 (Dynamic_Accessibility_Level): New function; given an expression which
5679 could occur as the rhs of an assignment to a saooaaat (i.e., an
5680 expression of an access-to-object type), return the new value for the
5681 saooaaat's associated Extra_Accessibility object.
5682 (Effective_Extra_Accessibility): New function; same as
5683 Einfo.Extra_Accessibility except that object renames are looked through.
5684 * sem_util.adb
5685 (Deepest_Type_Access_Level): New function; see sem_util.ads description.
5686 (Dynamic_Accessibility_Level): New function; see sem_util.ads
5687 description.
5688 (Effective_Extra_Accessibility): New function; see sem_util.ads
5689 description.
5690 * einfo.ads (Is_Local_Anonymous_Access): Update comments.
5691 (Extra_Accessibility): Update comments.
5692 (Init_Object_Size_Align): New procedure; same as Init_Size_Align
5693 except RM_Size field (which is only for types) is unaffected.
5694 * einfo.adb
5695 (Extra_Accessibility): Expand domain to allow objects, not just formals.
5696 (Set_Extra_Accessibility): Expand domain to allow objects, not just
5697 formals.
5698 (Init_Size): Add assertion that we are not trashing the
5699 Extra_Accessibility attribute of an object.
5700 (Init_Size_Align): Add assertion that we are not trashing the
5701 Extra_Accessibility attribute of an object.
5702 (Init_Object_Size_Align): New procedure; see einfo.ads description.
5703 * sem_ch3.adb (Find_Type_Of_Object): Set Is_Local_Anonymous_Access
5704 differently for the type of a (non-library-level) saooaaat depending
5705 whether Ada_Version < Ada_2012. This is the only point where Ada_Version
5706 is queried in this set of changes - everything else (in particular,
5707 setting of the Extra_Accessibility attribute in exp_ch3.adb) is
5708 driven off of the setting of the Is_Local_Anonymous_Access attribute.
5709 The special treatment of library-level saooaaats is an optimization,
5710 not required for correctnesss. This is based on the observation that the
5711 Ada2012 rules (static and dynamic) for saooaaats turn out to be
5712 equivalent to the Ada2005 rules in the case of a library-level saooaaat.
5713 * exp_ch3.adb
5714 (Expand_N_Object_Declaration): If Is_Local_Anonymous_Access is
5715 false for the type of a saooaaat, declare and initialize its
5716 accessibility level object and set the Extra_Accessibility attribute
5717 of the saooaaat to refer to this object.
5718 * checks.adb (Apply_Accessibility_Check): Add Ada 2012 saooaaat support.
5719 * exp_ch4.adb (Expand_N_In): Replace some Extra_Accessibility calls with
5720 calls to Effective_Extra_Accessibility in order to support
5721 renames of saooaaats.
5722 (Expand_N_Type_Conversion): Add new local function,
5723 Has_Extra_Accessibility, and call it when determining whether an
5724 accessibility check is needed.
5725 It returns True iff Present (Effective_Extra_Accessibility (Id)) would
5726 evaluate to True (without raising an exception).
5727 * exp_ch5.adb
5728 (Expand_N_Assignment_Statement): When assigning to an Ada2012
5729 saooaaat, update its associated Extra_Accessibility object (if
5730 it has one). This includes an accessibility check.
5731 * exp_ch6.adb (Add_Call_By_Copy_Code): When parameter copy-back updates
5732 a saooaaat, update its Extra_Accessibility object too (if it
5733 has one).
5734 (Expand_Call): Replace a couple of calls to Type_Access_Level
5735 with calls to Dynamic_Access_Level to handle cases where
5736 passing a literal (any literal) is incorrect.
5737 * sem_attr.adb (Resolve_Attribute): Handle the static accessibility
5738 checks associated with "Saooaat := Some_Object'Access;"; this must
5739 be rejected if Some_Object is declared in a more nested scope
5740 than Saooaat.
5741 * sem_ch5.adb (Analyze_Assignment): Force accessibility checking for an
5742 assignment to a saooaaat even if Is_Local_Anonymous_Access
5743 returns False for its type (indicating a 2012-style saooaaat).
5744 * sem_ch8.adb
5745 (Analyze_Object_Renaming): Replace a call to Init_Size_Align
5746 (which is only appropriate for objects, not types) with a call
5747 of Init_Object_Size_Align in order to avoid trashing the
5748 Extra_Accessibility attribute of a rename (the two attributes
5749 share storage).
5750 * sem_res.adb
5751 (Valid_Conversion) Replace six calls to Type_Access_Level with
5752 calls to Deepest_Type_Access_Level. This is a bit tricky. For an
5753 Ada2012 non-library-level saooaaat, the former returns library level
5754 while the latter returns the (static) accessibility level of the
5755 saooaaat. A type conversion to the anonymous type of a saooaaat
5756 can only occur as part of an assignment to the saooaaat, so we
5757 know that such a conversion must be in a lhs context, so Deepest
5758 yields the result that we need. If such a conversion could occur,
5759 say, as the operand of an equality operator, then this might not
5760 be right. Also add a test so that static accessibilty checks are
5761 performed for converting to a saooaaat's type even if
5762 Is_Local_Anonymous_Access yields False for the type.
5763
5764 2011-08-30 Javier Miranda <miranda@adacore.com>
5765
5766 * sem_disp.adb (Check_Dispatching_Operation): Complete condition that
5767 controls generation of a warning associated with late declaration of
5768 dispatching functions. Required to avoid generating spurious
5769 warnings.
5770
5771 2011-08-30 Gary Dismukes <dismukes@adacore.com>
5772
5773 * sem_ch6.adb (Check_Return_Subtype_Indication): Issue error if the
5774 return object has an anonymous access type and the function's type is
5775 a named access type.
5776 * sem_ch8.adb (Analyze_Object_Renaming): Suppress error about renaming
5777 conversions on implicit conversions, since such conversions can occur
5778 for anonymous access cases due to expansion. Issue error for attempt
5779 to rename an anonymous expression as an object of a named access type.
5780 * sem_res.ads (Valid_Conversion): Add defaulted parameter Report_Errs,
5781 to indicate whether this function should report errors on invalid
5782 conversions.
5783 * sem_res.adb (Resolve): For Ada 2012, in the case where the type of
5784 the expression is of an anonymous access type and the expected type is
5785 a named general access type, rewrite the expression as a type
5786 conversion, unless this is an expression of a membership test.
5787 (Valid_Conversion.Error_Msg_N): New procedure that conditions the
5788 calling of Error_Msg_N on new formal Report_Errs.
5789 (Valid_Conversion.Error_Msg_NE): New procedure that conditions the
5790 calling of Error_Msg_NE on new formal Report_Errs.
5791 (Valid_Conversion): Move declaration of this function to the package
5792 spec, to allow calls from membership test processing. For Ada 2012,
5793 enforce legality restrictions on implicit conversions of anonymous
5794 access values to general access types, disallowing such conversions in
5795 cases where the expression has a dynamic accessibility level (access
5796 parameters, stand-alone anonymous access objects, or a component of a
5797 dereference of one of the first two cases).
5798 * sem_type.adb (Covers): For Ada 2012, allow an anonymous access type
5799 in the context of a named general access expected type.
5800 * exp_ch4.adb Add with and use of Exp_Ch2.
5801 (Expand_N_In): Add processing for membership tests applied to
5802 expressions of an anonymous access type. First, Valid_Conversion is
5803 called to check whether the test is statically False, and then the
5804 conversion is expanded to test that the expression's accessibility
5805 level is no deeper than that of the tested type. In the case of
5806 anonymous access-to-tagged types, a tagged membership test is applied
5807 as well.
5808 (Tagged_Membership): Extend to handle access type cases, applying the
5809 test to the designated types.
5810 * exp_ch6.adb (Expand_Call): When creating an extra actual for an
5811 accessibility level, and the actual is a 'Access applied to a current
5812 instance, pass the accessibility level of the type of the current
5813 instance rather than applying Object_Access_Level to the prefix. Add a
5814 ??? comment, since this level isn't quite right either (will eventually
5815 need to pass an implicit level parameter to init procs).
5816
5817 2011-08-30 Bob Duff <duff@adacore.com>
5818
5819 * s-taskin.ads: Minor comment fix.
5820
5821 2011-08-30 Ed Schonberg <schonberg@adacore.com>
5822
5823 * sem_res.adb (Check_Parameterless_Call): If the node is a selected
5824 component and the selector is a dispatching operation, check if it is
5825 a prefixed call before rewriting as a parameterless function call.
5826
5827 2011-08-29 Jakub Jelinek <jakub@redhat.com>
5828
5829 * gcc-interface/Makefile.in (../stamp-gnatlib1-$(RTSDIR)): Copy
5830 tsystem.h into $(RTSDIR) instead of rts.
5831
5832 2011-08-29 Robert Dewar <dewar@adacore.com>
5833
5834 * sem_ch10.adb, a-coorse.adb, exp_dist.adb, exp_ch3.adb: Minor
5835 reformatting.
5836 * gcc-interface/Make-lang.in: Update dependencies.
5837
5838 2011-08-29 Yannick Moy <moy@adacore.com>
5839
5840 * alfa.ads (Name_Of_Heap_Variable): New constant name.
5841 * lib-xref-alfa.adb, lib-xref.adb, lib-xref.ads (Drefs): New global
5842 table to hold dereferences.
5843 (Add_ALFA_Xrefs): Take into account dereferences as special
5844 reads/writes to the variable "HEAP".
5845 (Enclosing_Subprogram_Or_Package): Move subprogram here.
5846 (Generate_Dereference): New procedure to store a read/write dereferencew
5847 in the table Drefs.
5848 * put_alfa.adb (Put_ALFA): Use different default than (0,0) used for
5849 the special "HEAP" var.
5850 * sem_ch4.adb (Analyze_Explicit_Dereference): Store read dereference
5851 in ALFA mode.
5852 * sem_util.adb (Note_Possible_Modification): Store write dereference
5853 in ALFA mode.
5854
5855 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5856
5857 * exp_ch3.adb (Freeze_Type): Generate an accessibility check which
5858 ensures that the level of the subpool access type is not deeper than
5859 that of the pool object.
5860 * sem_util.adb (Object_Access_Level): Expand to handle defining
5861 identifiers.
5862 * sem_res.adb (Resolve_Allocator): Add a guard to avoid examining the
5863 subpool handle name of a rewritten allocator.
5864
5865 2011-08-29 Robert Dewar <dewar@adacore.com>
5866
5867 * impunit.adb, exp_ch4.adb, s-finmas.adb: Minor reformatting.
5868
5869 2011-08-29 Thomas Quinot <quinot@adacore.com>
5870
5871 * exp_dist.adb (TC_Rec_Add_Process_Element): For a choice with multiple
5872 values, we generate multiple triples of parameters in the TypeCode.
5873 Bump Choice_Index for each such triple so that a subsequent default
5874 choice is associated with the correct index in the typecode.
5875
5876 2011-08-29 Ed Schonberg <schonberg@adacore.com>
5877
5878 * a-cdlili.adb (Iterate): Initialize properly an iterator over a null
5879 container.
5880 (First, Last): Handle properly an iterator over a null container.
5881
5882 2011-08-29 Bob Duff <duff@adacore.com>
5883
5884 * sem_ch10.adb (Analyze_With_Clause,Install_Withed_Unit): Abandon
5885 processing if we run across a node with no Scope. This can happen if
5886 we're with-ing an library-level instance, and that instance got errors
5887 that caused "instantiation abandoned".
5888 * sem_util.adb (Unit_Declaration_Node): Make it more robust, by raising
5889 an exception instead of using Assert, so it won't go into an infinite
5890 loop, even when assertions are turned off.
5891
5892 2011-08-29 Ed Schonberg <schonberg@adacore.com>
5893
5894 * a-coorse.adb: Proper handling of empty ordered sets.
5895
5896 2011-08-29 Johannes Kanig <kanig@adacore.com>
5897
5898 * debug.adb: Add comments.
5899
5900 2011-08-29 Thomas Quinot <quinot@adacore.com>
5901
5902 * a-except.adb, a-except-2005.adb: Minor comment rewording and
5903 reformatting.
5904
5905 2011-08-29 Yannick Moy <moy@adacore.com>
5906
5907 * sem_ch3.adb (Array_Type_Declaration): Remove insertion of
5908 declaration for Itypes in Alfa mode.
5909
5910 2011-08-29 Robert Dewar <dewar@adacore.com>
5911
5912 * a-cdlili.ads, a-coinve.ads, a-coorma.adb, a-coorma.ads, s-tassta.adb,
5913 a-cborma.adb, a-cborma.ads, a-cohama.ads, a-coorse.ads, a-cbhama.ads,
5914 a-cborse.ads, a-cobove.adb, a-cobove.ads, a-cbhase.ads: Minor
5915 reformatting.
5916
5917 2011-08-29 Tristan Gingold <gingold@adacore.com>
5918
5919 * exp_ch7.adb, exp_ch7.ads (Build_Exception_Handler): Move its spec to
5920 package spec.
5921 * exp_intr.adb (Expand_Unc_Deallocation): Use Build_Exception_Handler.
5922 * a-except.adb, a-except-2005.adb (Rcheck_22): Do not defer aborts
5923 while raising PE.
5924
5925 2011-08-29 Robert Dewar <dewar@adacore.com>
5926
5927 * a-cbhama.adb, a-cbhama.ads: Minor reformatting.
5928
5929 2011-08-29 Javier Miranda <miranda@adacore.com>
5930
5931 * sem_ch8.adb (Analyze_Subprogram_Renaming): Complete support for
5932 renamings of formal subprograms when the actual for a formal type is
5933 class-wide.
5934
5935 2011-08-29 Matthew Heaney <heaney@adacore.com>
5936
5937 * a-cbhama.ads, a-cbhase.ads (Move): Clear Source following assignment
5938 to Target.
5939
5940 2011-08-29 Matthew Heaney <heaney@adacore.com>
5941
5942 * a-cborma.ads, a-cborse.ads (Cursor): Default-initialize all
5943 components of record type.
5944 * a-cborma.adb, a-cborse.adb (Move): Clear Source following assignmentw
5945 to Target.
5946
5947 2011-08-29 Ed Schonberg <schonberg@adacore.com>
5948
5949 * a-cbhama.adb, a-cbhama.ads, a-cborma.adb, a-cborma.ads, a-cobove.adb,
5950 a-cobove.ads, a-coorma.adb, a-coorma.ads: Add iterator machinery to
5951 container packages.
5952
5953 2011-08-29 Robert Dewar <dewar@adacore.com>
5954
5955 * sem_ch3.adb, sem_util.adb, gnat1drv.adb, s-parint.ads: Minor
5956 reformatting.
5957
5958 2011-08-29 Matthew Heaney <heaney@adacore.com>
5959
5960 * a-cbhama.ads, a-cbhase.ads (Cursor): Default-initialize all
5961 components of record type.
5962
5963 2011-08-29 Bob Duff <duff@adacore.com>
5964
5965 * s-tassta.adb (Task_Wrapper): Handle and ignore exceptions propagated
5966 by the termination handler.
5967
5968 2011-08-29 Yannick Moy <moy@adacore.com>
5969
5970 * sem_ch3.adb (Array_Type_Declaration): Create declarations for Itypes
5971 created in Alfa mode, instead of inserting artificial declarations of
5972 non-Itypes in the tree.
5973 * sem_util.adb, sem_util.ads (Itype_Has_Declaration): New function to
5974 know if an Itype has a corresponding declaration, as defined in
5975 itypes.ads.
5976
5977 2011-08-29 Yannick Moy <moy@adacore.com>
5978
5979 * gnat1drv.adb: Minor rewrite.
5980
5981 2011-08-29 Bob Duff <duff@adacore.com>
5982
5983 * s-tasuti.adb (Make_Passive): Work around race condition in
5984 Make_Independent, which can cause Wait_Count to be zero. So instead of
5985 asserting that Wait_Count > 0, and then decrementing it, decrement it
5986 only if Wait_Count > 0.
5987 * s-taskin.ads (Wait_Count, Alive_Count, Awake_Count): All of these
5988 should be nonnegative, so declare them Natural instead of Integer.
5989
5990 2011-08-29 Robert Dewar <dewar@adacore.com>
5991
5992 * exp_ch5.adb, sem_ch3.adb, a-cihama.adb, a-cihama.ads, exp_ch7.adb,
5993 sem_ch5.adb, a-ciorse.adb, a-ciorse.ads, sem_ch12.adb, a-cidlli.adb,
5994 a-cidlli.ads, sem_util.adb, sem_res.adb, gnat1drv.adb, a-except.adb,
5995 a-except.ads, a-except-2005.ads, sem_ch4.adb, exp_disp.adb,
5996 exp_aggr.adb, sem_ch13.adb, par-ch3.adb: Minor reformatting.
5997
5998 2011-08-29 Tristan Gingold <gingold@adacore.com>
5999
6000 * s-auxdec-vms-alpha.adb: Add comments, remove some HT before labels.
6001
6002 2011-08-29 Vadim Godunko <godunko@adacore.com>
6003
6004 * s-parint.ads: Minor comment clarification.
6005
6006 2011-08-29 Vincent Celier <celier@adacore.com>
6007
6008 * prj.adb (Initialize): Make sure that new reserved words after Ada 95
6009 may be used as identifiers.
6010
6011 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6012
6013 * a-coinho.ads: Minor reformating.
6014
6015 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6016
6017 * exp_ch5.adb (Expand_Iterator_Loop): Handle properly a loop over a
6018 container of a derived type.
6019
6020 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6021
6022 * a-cidlli.adb, a-cidlli.ads, a-cihama.adb, a-cihama.ads,
6023 a-ciorse.adb, a-ciorse.ads: Add iterator machinery to containers.
6024
6025 2011-08-29 Pascal Obry <obry@adacore.com>
6026
6027 * exp_disp.adb: Minor comment fix.
6028 (Make_Disp_Asynchronous_Select_Body): Properly initialize out parameters
6029 to avoid warnings when compiling with -Wall.
6030 (Make_Disp_Conditional_Select_Body): Likewise.
6031 (Make_Disp_Timed_Select_Body): Likewise.
6032
6033 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6034
6035 * sem_ch12.adb (Analyze_Formal_Subprogram_Declaration): If default is
6036 an entity name, generate reference for it.
6037
6038 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6039
6040 * exp_ch5.adb (Expand_Iterator_Loop): Uniform handling of "X of S"
6041 iterator form.
6042 * sem_util.adb (Is_Iterator, Is_Reversible_Iterator): Yield True for
6043 the class-wide type.
6044 * sem_ch5.adb: Move some rewriting to the expander, where it belongs.
6045
6046 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6047
6048 * sem_ch8.adb (Check_Constrained_Object): Do not create an actual
6049 subtype for an object whose type is an unconstrained union.
6050
6051 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6052
6053 * par-ch3.adb (P_Array_Type_Definiation, P_Component_Items): "aliased"
6054 is allowed in a component definition, by AI95-406.
6055
6056 2011-08-29 Matthew Heaney <heaney@adacore.com>
6057
6058 * a-chtgbo.adb (Generic_Iteration): Use correct overloading of Next.
6059
6060 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6061
6062 * a-except-2005.adb: Alphabetize all routines.
6063 (Triggered_By_Abort): New routine.
6064 * a-except-2005.ads (Triggered_By_Abort): New routine.
6065 * a-except.adb Alphabetize all routines.
6066 (Triggered_By_Abort): New routine.
6067 * a-except.ads (Triggered_By_Abort): New routine.
6068 * exp_ch7.adb: Update all comments involving the detection of aborts in
6069 finalization code.
6070 (Build_Object_Declarations): Do not generate code to detect the
6071 presence of an abort at the start of finalization code, use a runtime
6072 routine istead.
6073 * rtsfind.ads: Add RE_Triggered_By_Abort to tables RE_Id and
6074 RE_Unit_Table.
6075 * sem_res.adb (Resolve_Allocator): Emit a warning when attempting to
6076 allocate a task on a subpool.
6077 * s-stposu.adb: Add library-level flag Finalize_Address_Table_In_Use.
6078 The flag disables all actions related to the maintenance of
6079 Finalize_Address_Table when subpools are not in use.
6080 (Allocate_Any_Controlled): Signal the machinery that subpools are in
6081 use.
6082 (Deallocate_Any_Controlled): Do not call Delete_Finalize_Address which
6083 performs costly task locking when subpools are not in use.
6084
6085 2011-08-29 Yannick Moy <moy@adacore.com>
6086
6087 * gnat1drv.adb (Adjust_Global_Switches): Restore expansion of tagged
6088 types and dispatching calls in Alfa mode.
6089 * lib-xref-alfa.adb (Collect_ALFA): Rewrite computation of
6090 correspondance between body and spec scopes, to reuse utility functions
6091 (Traverse_Declarations_Or_Statements): Protect access to body for stub
6092 by testing the presence of the library unit for the body
6093 * sem_ch6.adb (Set_Actual_Subtypes): take into account that in Alfa
6094 mode the expansion of accept statements is skipped
6095 * sem_util.adb, sem_util.ads (Unique_Entity): New function returning
6096 the unique entity corresponding to the one returned by
6097 Unique_Defining_Entity applied to the enclosing declaration of the
6098 argument.
6099
6100 2011-08-29 Bob Duff <duff@adacore.com>
6101
6102 * treepr.ads: Improve debugging facilities. pn(x) no longer crashes in
6103 gdb when x is not a node (it can be a node list, name_id, etc). pp is
6104 an alias for pn. ppp is an alias for pt.
6105
6106 2011-08-29 Javier Miranda <miranda@adacore.com>
6107
6108 * exp_aggr.adb (Expand_Record_Aggregate): Use the top-level enclosing
6109 aggregate to take a consistent decision on the need to convert into
6110 assignments aggregates that initialize constant objects.
6111
6112 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6113
6114 * exp_ch4.adb (Expand_Allocator_Expression): Add a call to
6115 Build_Allocate_Deallocate_Proc in order to handle allocation of
6116 non-controlled objects on subpools.
6117 * impunit.adb: Remove s-finmas and s-spsufi since they were never meant
6118 to be end-user visible.
6119 * s-finmas.adb: Add with and use clause for System.HTable.
6120 Add an instantiation of Simple_HTable which provides a mapping between
6121 the address of a controlled object and the corresponding
6122 Finalize_Address used to clean up the object. The table is used when a
6123 master is operating in heterogeneous mode.
6124 (Attach): Explain why the input node is not verified on being already
6125 attached.
6126 (Delete_Finalize_Address): New routine.
6127 (Detach): Add pragma Assert which ensures that a node is already
6128 attached.
6129 (Finalize): Add local variable Cleanup. Rewrite the iteration scheme
6130 since nodes are no longer removed on traversal. Explain why node
6131 detachment is undesirable in this case.
6132 (Get_Finalize_Address): New routine.
6133 (Hash): New routine.
6134 (Is_Empty_List): Removed.
6135 (pm): Renamed to Print_Master. Add output for discriminant
6136 Is_Homogeneous.
6137 Comment reformatting.
6138 (Set_Finalize_Address (Address, Finalize_Address_Ptr)): New routine.
6139 * s-finmas.ads: Various comments additions / improvements.
6140 Type Finalization_Master has a discriminant which determines the mode of
6141 operation.
6142 (Delete_Finalize_Address): New routine.
6143 (Get_Finalize_Address): New routine.
6144 (pm): Renamed to Print_Master.
6145 (Set_Finalize_Address (Address, Finalize_Address_Ptr)): New routine.
6146 * s-stposu.adb: Add with clause for System.Address_Image; Add with and
6147 use clause for System.IO.
6148 (Allocate_Any_Controlled): Add machinery to set TSS primitive
6149 Finalize_Address depending on the mode of allocation and the mode of
6150 the master.
6151 (Deallocate_Any_Controlled): Remove the relation pair object -
6152 Finalize_Address regardless of the master mode. Add comment explaining
6153 the reason.
6154 (Detach): Ensure that fields Prev and Next are null after detachment.
6155 (Finalize_Pool): Remove local variable Next_Ptr. Rewrite the iteration
6156 scheme to check whether the list of subpools is empty. There is no
6157 longer need to store the next subpool or advance the current pointer.
6158 (Is_Empty_List): New routine.
6159 (Print_Pool): New routine.
6160 (Print_Subpool): New routine.
6161 * s-stposu.ads: Various comments additions / improvements.
6162 Field Master of type Root_Subpool is now a heterogeneous collection.
6163 (Print_Pool): New routine.
6164 (Print_Subpool): New routine.
6165
6166 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6167
6168 * exp_ch5.adb (Expand_N_Iterator_Loop): Implement Ada2012 loop iterator
6169 forms, using aspects of container types.
6170 * sem_ch3.adb (Find_Type_Name): Preserve Has_Delayed_Aspects and
6171 Has_Implicit_Dereference flags, that may be set on the partial view.
6172 * sem_ch4.adb (Process_Overloaded_Indexed_Component): Prefix may be a
6173 container type with an indexing aspect.
6174 (Analyze_Quantified_Expression): Analyze construct with expansion
6175 disabled, because it will be rewritten as a loop during expansion.
6176 (Try_Container_Indexing): The prefix itself may be a container type
6177 with an indexing aspect, as with a vector of vectors.
6178 * sem_ch5.adb (Analyze_Iteration_Scheme): In a generic context, analyze
6179 the original doamin of iteration, for name capture.
6180 (Analyze_Iterator_Specification): If the domain is an expression that
6181 needs finalization, create a separate declaration for it.
6182 For an iterator with "of" retrieve default iterator info from aspect of
6183 container type. For "in" iterator, retrieve type of Iterate function.
6184 * sem_ch13.adb (Check_Iterator_Function): Fix typo.
6185 (Check_Aspect_At_End_Of_Declaration): Make type unfrozen before
6186 analysis, to prevent spurious errors about late attributes.
6187 * sprint.adb: Handle quantified expression with either loop or iterator
6188 specification.
6189 * a-convec.ads, a-convec.adb: Iterate function returns a reversible
6190 iterator.
6191
6192 2011-08-29 Vincent Celier <celier@adacore.com>
6193
6194 * make.adb (Scan_Make_Arg): Take any option as is in packages Compiler,
6195 Binder or Linker of the main project file.
6196
6197 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6198
6199 * inline.adb (Add_Scopes_To_Clean): Exclude any entity within a generic
6200 unit.
6201
6202 2011-08-29 Yannick Moy <moy@adacore.com>
6203
6204 * exp_ch9.adb: Partial revert of previous change for Alfa mode
6205
6206 2011-08-29 Yannick Moy <moy@adacore.com>
6207
6208 * exp_ch11.adb: Minor expansion of comment.
6209
6210 2011-08-29 Yannick Moy <moy@adacore.com>
6211
6212 * lib-xref-alfa.adb (Add_ALFA_Scope): Treat generic entities.
6213
6214 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6215
6216 * sem_res.adb (Resolve_Arithmetic_Op): If the node has a universal
6217 interpretation, set the type before resolving the operands, because
6218 legality checks on an exponention operand need to know the type of the
6219 context.
6220
6221 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6222
6223 * sem_ch12.adb (Analyze_Package_Instantiation): Do not set delayed
6224 cleanups on a master if the instance is within a generic unit.
6225 Complement to the corresponding fix to inline.adb for K520-030.
6226
6227 2011-08-29 Tristan Gingold <gingold@adacore.com>
6228
6229 * exp_ch7.adb (Build_Raise_Statement): Raise PE instead of the current
6230 occurrence.
6231 * exp_intr.adb: Minor comment fix.
6232
6233 2011-08-29 Bob Duff <duff@adacore.com>
6234
6235 * sem_ch13.adb (Analyze_Aspect_Specifications): Fix cases where
6236 Delay_Required was used as an uninitialized variable.
6237
6238 2011-08-29 Robert Dewar <dewar@adacore.com>
6239
6240 * a-cdlili.adb, a-cdlili.ads, a-coinve.adb, a-coinve.ads,
6241 sem_util.adb, sem_util.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb,
6242 a-coorse.ads, aspects.ads, sem_ch8.adb: Minor reformatting.
6243
6244 2011-08-29 Thomas Quinot <quinot@adacore.com>
6245
6246 * system-freebsd-x86_64.ads (Backend_Overflow_Checks): Set true True.
6247 Remove unused variables.
6248
6249 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6250
6251 * sem_res.adb: Remove Build_Explicit_Dereference.
6252 * sem_util.adb, sem_util.ads (Build_Explicit_Dereference): Moved here
6253 from sem_res.adb, used in analysis of additional constructs.
6254 (Is_Iterator, Is_Reversible_Iterator): New predicates for Ada2012
6255 expansion of iterators.
6256 (Is_Object_Reference): Recognize variables rewritten as explicit
6257 dereferences in Ada2012.
6258 * snames.ads-tmpl: Add Has_Element, Forward_Iterator,
6259 Reversible_Iterator names, for expansion of Ada2012 iterators.
6260 * aspects.ads, aspects.adb (Find_Aspect): Utility.
6261 * a-cdlili.ads, a-cdlili.adb: Add new iterator machinery to doubly
6262 linked list container.
6263 * a-coinve.ads, a-coinve.adb: Ditto for indefinite vector containers.
6264 * a-coorse.ads, a-coorse.adb: Ditto for ordered sets.
6265
6266 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6267
6268 * a-cohama.adb, a-cohama.ads: Add iterator primitives to hashed map
6269 containers.
6270
6271 2011-08-29 Vincent Celier <celier@adacore.com>
6272
6273 * make.adb (Gnatmake): Get the maximum number of simultaneous
6274 compilation processes after the Builder switches has been scanned, as
6275 there may include -jnn.
6276
6277 2011-08-29 Matthew Heaney <heaney@adacore.com>
6278
6279 * a-chtgbo.adb (Generic_Equal): Use correct overloading of Next.
6280
6281 2011-08-29 Tristan Gingold <gingold@adacore.com>
6282
6283 * gnatcmd.adb (GNATCmd): On OpenVMS, truncate the length of
6284 GNAT_DRIVER_COMMAND_LINE to 255.
6285
6286 2011-08-29 Pascal Obry <obry@adacore.com>
6287
6288 * freeze.adb, sem_ch8.adb, a-convec.adb, a-convec.ads: Minor
6289 reformatting and style fix (class attribute casing).
6290
6291 2011-08-29 Yannick Moy <moy@adacore.com>
6292
6293 * exp_ch11.adb: Yet another case where expansion should be common
6294 between CodePeer and Alfa.
6295
6296 2011-08-29 Yannick Moy <moy@adacore.com>
6297
6298 * exp_ch9.adb: Partial revert of previous change for Alfa mode.
6299
6300 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6301
6302 * sem_ch6.adb (Matches_Limited_With_View): The limited views of an
6303 incomplete type and its completion match.
6304
6305 2011-08-29 Yannick Moy <moy@adacore.com>
6306
6307 * exp_ch13.adb: Adjust previous change.
6308
6309 2011-08-29 Robert Dewar <dewar@adacore.com>
6310
6311 * sem_prag.adb, prj.adb, sem_util.adb, sem_res.adb, gnat1drv.adb,
6312 exp_ch4.adb, sem_ch8.adb: Minor code reorganization
6313 Minor reformatting.
6314
6315 2011-08-29 Emmanuel Briot <briot@adacore.com>
6316
6317 * make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Also
6318 initialize aggregated projects.
6319
6320 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6321
6322 * sem_ch8.adb (Find_Renamed_Entity): Within an instance, use scope
6323 depth of candidates to resolve a potentially spurious ambiguity between
6324 two visible subprograms.
6325
6326 2011-08-29 Yannick Moy <moy@adacore.com>
6327
6328 * sem_prag.adb (Analyze_Pragma): Allow Test_Case pragma without
6329 Requires/Ensures.
6330 * sem_util.adb (Get_Ensures_From_Test_Case_Pragma,
6331 Get_Requires_From_Test_Case_Pragma): Allow Test_Case pragma without
6332 Requires/Ensures.
6333
6334 2011-08-29 Arnaud Charlet <charlet@adacore.com>
6335
6336 * gnat1drv.adb (Adjust_Global_Switches): Improve previous change.
6337 Add comment.
6338
6339 2011-08-29 Thomas Quinot <quinot@adacore.com>
6340
6341 * sem_res.adb: Minor reformatting.
6342
6343 2011-08-29 Johannes Kanig <kanig@adacore.com>
6344
6345 * exp_ch4.adb (Expand_Quantified_Expression): Do not expand in ALFA
6346 mode.
6347 * gnat1drv.adb (Adjust_Global_Switches): Set
6348 Use_Expressions_With_Actions to False in ALFA mode.
6349 * sem_res.adb (Resolve_Quantified_Expression): Simpler treatment in
6350 ALFA mode.
6351
6352 2011-08-29 Yannick Moy <moy@adacore.com>
6353
6354 * exp_ch13.adb (Expand_N_Freeze_Entity): Do nothing in Alfa mode.
6355 * exp_ch9.adb: Do not expand tasking constructs in Alfa mode.
6356 * gnat1drv.adb (Adjust_Global_Switches): Suppress the expansion of
6357 tagged types and dispatching calls in Alfa mode.
6358
6359 2011-08-29 Javier Miranda <miranda@adacore.com>
6360
6361 * sem_ch3.adb (Process_Discriminants): Add missing check to ensure that
6362 we do not report an error on an Empty node.
6363
6364 2011-08-29 Geert Bosch <bosch@adacore.com>
6365
6366 * Makefile.rtl (GNATRTL_NONTASKING_OBJECTS): Add a-nllrar.o,
6367 a-nlrear.o and a-nurear.o.
6368
6369 2011-08-29 Robert Dewar <dewar@adacore.com>
6370
6371 * freeze.adb: Minor code reorganization.
6372 Minor reformatting.
6373 * sem_util.adb, errout.adb, exp_ch11.adb, a-ngrear.adb, s-gearop.adb,
6374 sem_ch6.adb: Minor reformatting
6375
6376 2011-08-29 Tristan Gingold <gingold@adacore.com>
6377
6378 * s-except.ads, s-except.adb: Provide dummy body.
6379
6380 2011-08-29 Yannick Moy <moy@adacore.com>
6381
6382 * sem_warn.adb (Within_Postcondition): Take into account the case of
6383 an Ensures component in a Test_Case.
6384
6385 2011-08-29 Tristan Gingold <gingold@adacore.com>
6386
6387 * s-excdeb.ads, s-excdeb.adb: New files, created from s-except.
6388 * rtsfind.ads (RTU_Id): Replaces System_Exceptions by
6389 System_Exceptions_Debug
6390 (RE_Unit_Table): Search RE_Local_Raise in System_Exceptions_Debug
6391 * a-except.adb: With and use System.Exceptions_Debug instead of
6392 System.Exceptions.
6393 * a-except-2005.adb: Likewise.
6394 * s-assert.adb: Likewise.
6395 * s-except.adb, s-except.ads: Move debugging hooks to s-excdeb.
6396 * Makefile.rtl: Add s-excdeb. Adjust compilation rule.
6397 * gcc-interfaces/Makefile.in, gcc-interface/Make-lang.in: Add
6398 s-excdeb. Update dependencies.
6399 (GNATRTL_LINEARALGEBRA_OBJS): Remove a-nlrear.o a-nurear.o a-nllrar.o
6400 as these no longer need external libraries.
6401
6402 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6403
6404 * sem_res.adb (Resolve_Op_Expon): Additional check to reject an
6405 exponentiation operator on universal values in a context that requires
6406 a fixed-point type.
6407
6408 2011-08-29 Tristan Gingold <gingold@adacore.com>
6409
6410 * raise-gcc.c (personnality_routine): Fix thinko. Set Ada occurrence
6411 before calling notify_handled_exception.
6412 * a-exextr.adb: Fix comment.
6413
6414 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6415
6416 * exp_ch4.adb (Expand_Allocator_Expression): Add code to set attribute
6417 Finalize_Address of the access type's finalization master.
6418 (Expand_N_Allocator): Add code to set attribute Finalize_Address of the
6419 access type's finalization master. Add a guard to prevent
6420 Associated_Storage_Pool from being set on .NET/JVM.
6421 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Add code to set
6422 attribute Finalize_Address of the access type's finalization master.
6423 * exp_ch7.adb (Make_Finalize_Address_Call): New routine.
6424 * exp_ch7.ads (Make_Finalize_Address_Call): New routine.
6425 * rtsfind.ads: Add RE_Set_Finalize_Address to tables RE_Id and
6426 RE_Unit_Table.
6427 * s-finmas.adb: Add with clause for System.Address_Image. Add with and
6428 use clause for System.IO
6429 (Detach): Relax the assertion, to be reinstated later.
6430 (Finalize): Rewrite the iteration loop to avoid pointer comparison.
6431 Relax the assertion on Finalize_Address, to be reinstated later.
6432 (Is_Empty_List): New routine.
6433 (pm): New debug routine.
6434 (Set_Finalize_Address): New routine.
6435 * s-finmas.ads (pm): New debug routine.
6436 (Set_Finalize_Address): New routine.
6437 * s-stposu.adb (Allocate_Any_Controlled): Code reformatting.
6438
6439 2011-08-29 Tristan Gingold <gingold@adacore.com>
6440
6441 * a-exexpr-gcc.adb (GCC_Exception_Access, GNAT_GCC_Exception_Access):
6442 Remove convention C.
6443
6444 2011-08-29 Tristan Gingold <gingold@adacore.com>
6445
6446 * s-taprop-vms.adb (Get_Exc_Stack_Addr): Remove.
6447 (Initialize_TCB): Remove Exc_Stack_Ptr initialization.
6448 (Finalize_TCB): Remove its finalization.
6449 (Initialize): Remove assignment of GET_Exc_Stack_Addr
6450 * s-soflin.adb (NT_Exc_Stack): Remove
6451 (Get_Exc_Stack_Addr_NT): Likewise.
6452 (Get_Exc_Stack_Addr_Soft): Likewise.
6453 * s-soflin.ads (Get_Exc_Stack_Addr_NT): Remove.
6454 (Get_Exc_Stack_Addr): Likewise.
6455 (Get_Exc_Stack_Addr_Soft): Likewise
6456 * s-taspri-vms.ads (Exc_Stack_T): Remove.
6457 (Exc_Stack_Ptr_T): Likewise.
6458 (Private_Data): Remove Exc_Stack_Ptr component.
6459
6460 2011-08-29 Tristan Gingold <gingold@adacore.com>
6461
6462 * raise-gcc.c (get_ip_from_context): New function. Factorize code.
6463
6464 2011-08-29 Tristan Gingold <gingold@adacore.com>
6465
6466 * gnat_ugn.texi: Fix aix and x86-solaris info for run-time.
6467
6468 2011-08-29 Geert Bosch <bosch@adacore.com>
6469
6470 * s-gearop.ads (Back_Substitute, Diagonal, Forward_Eliminate,
6471 L2_Norm, Swap_Column): New generic subprograms
6472 * s-gearop.adb (Back_Substitute, Diagonal, Forward_Eliminate,
6473 L2_Norm, Swap_Column): Implement new subprograms in order to
6474 eliminate dependency on BLAS and LAPACK libraries in
6475 Ada.Numerics.Generic_Real_Arrays and eventually also the complex
6476 version. Forward_Eliminate/Back_Substitute can be used to put a
6477 matrix in row echelon or reduced row echelon form using partial
6478 pivoting.
6479 * a-ngrear.adb: (Back_Substitute, Diagonal, Forward_Eleminate,
6480 Swap_Column): Instantiate from System.Generic_Array_Operations.
6481 ("*", "abs"): Implement by instantiation from Generic_Array_Operations.
6482 (Sqrt): Local function for simple computation of square root without
6483 adding dependencies on Generic_Elementary_Functions.
6484 (Swap): New subprogram to exchange floating point numbers.
6485 (Inverse): Reimplement using Jordan-Gauss elimination.
6486 (Jacobi): New procedure implementing Jacobi's method for computation
6487 of eigensystems, based on Rutishauser's implementation.
6488 (L2_Norm): Implement directly using the inner product.
6489 (Sort_Eigensystem): Sort eigenvalue/eigenvector pairs in order of
6490 decreasing eigenvalue as required by the Ada RM.
6491 (Swap_Column): New helper procedure for Sort_Eigensystem.
6492 Remove with of System.Generic_Real_BLAS and System.Generic_Real_LAPACK.
6493 Add with of Ada.Containers.Generic_Anonymous_Array_Sort, for
6494 Sort_Eigensystems.
6495
6496 2011-08-29 Thomas Quinot <quinot@adacore.com>
6497
6498 * put_scos.adb (Put_SCOs): Do not emit a newline for an empty
6499 statements line.
6500
6501 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6502
6503 * s-finmas.adb (Finalize): Check Finalize_Address of the master rather
6504 than the current node.
6505 * s-finmas.ads: Move field Finalize_Address from type FM_Node to
6506 Finalization_Master. The list headers have two fields instead of three.
6507 This should fix alignment issue but subpool allocations are now
6508 unusable. Alphabetize subprograms.
6509 * s-stposu.adb (Allocate_Any_Controlled): Use the offset rather than
6510 the size of the header when converting the beginning of the object to
6511 a FM_Node. Set the master's Finalize_Address attribute if not already
6512 set.
6513 (Deallocate_Any_Controlled): Use the offset rather than the size of the
6514 header when converting the beginning of the object to a FM_Node.
6515
6516 2011-08-29 Gary Dismukes <dismukes@adacore.com>
6517
6518 * exp_ch11.adb (Expand_N_Raise_Statement): Don't suppress expansion of
6519 reraise when compiling for CodePeer.
6520
6521 2011-08-29 Arnaud Charlet <charlet@adacore.com>
6522
6523 * a-iteint.ads, Makefile.rtl: Add missing compilation of a-iteint.ads,
6524 now needed by a-convec.adb. Fix warning.
6525
6526 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6527
6528 * exp_util.adb (Build_Allocate_Deallocate_Proc): Add a guard for the
6529 processing of TSS routine Finalize_Address when compiling in
6530 CodePeer_Mode.
6531
6532 2011-08-29 Thomas Quinot <quinot@adacore.com>
6533
6534 * a-strunb.ads, einfo.ads, g-comlin.ads, sem_ch6.adb,
6535 sem_warn.adb: Minor reformatting.
6536
6537 2011-08-29 Emmanuel Briot <briot@adacore.com>
6538
6539 * prj-conf.adb (Get_Config_Switches): Also collect the list of
6540 languages from aggregated projects.
6541
6542 2011-08-29 Yannick Moy <moy@adacore.com>
6543
6544 * lib-xref-alfa.adb, lib-xref.ads (Traverse_Declarations_Or_Statements,
6545 Traverse_Handled_Statement_Sequence, Traverse_Package_Body,
6546 Traverse_Package_Declaration, Traverse_Subprogram_Body,
6547 Traverse_Compilation_Unit): Add a parameter Inside_Stubs so that bodies
6548 for stubs are traversed too when parameter is set
6549 (Traverse_All_Compilation_Units): Traverse without going inside stubs
6550 (Traverse_Declarations_Or_Statements): Do the special traversing for
6551 stubs when required.
6552 * sem_util.adb, sem_util.ads (Get_Body_From_Stub): New function to
6553 return subprogram or package body from stub.
6554 (Is_Subprogram_Stub_Without_Prior_Declaration): New function to detect
6555 stubs without prior subprogram decl.
6556
6557 2011-08-29 Vasiliy Fofanov <fofanov@adacore.com>
6558
6559 * gnat_ugn.texi: Fix typo.
6560
6561 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6562
6563 * s-stposu.adb (Allocate_Any_Controlled): Reimplement the mechanism
6564 which accounts for size vs alignment issues and calculates the size of
6565 the list header.
6566 (Deallocate_Any_Controlled): Ditto.
6567 (Nearest_Multiple_Rounded_Up): New routine.
6568
6569 2011-08-29 Tristan Gingold <gingold@adacore.com>
6570
6571 * a-exstat.adb (String_To_EO): Do no set Cleanup_Flag.
6572 * a-exexda.adb (Set_Exception_C_Msg): Ditto.
6573 (Set_Exception_Msg): Ditto.
6574 * a-exexpr-gcc.adb (Setup_Current_Excep): Ditto. Do not set
6575 Private_Data.
6576 * a-except.adb, a-except-2005.adb (Save_Occurrence_No_Private): Remove.
6577 Use Save_Occurrence instead of Save_Occurrence_No_Private.
6578 (Raise_With_Msg): Remove Cleanup_Flag.
6579 * a-except.ads, a-except-2005.ads (Exception_Occurrence): Remove
6580 Clean_Flag and Private_Data components.
6581
6582 2011-08-29 Yannick Moy <moy@adacore.com>
6583
6584 * freeze.adb (Freeze_Record_Type): Ignore packing in Alfa mode, like
6585 in CodePeer mode.
6586 * sem_ch3.adb (Signed_Integer_Type_Declaration): Correct the generation
6587 of an explicitly declared type, so that the base types of the original
6588 type and this generated type are the same, and a "type" (not a subtype
6589 like previously).
6590 * errout.adb (Special_Msg_Delete): Do not issue messages "Size too
6591 small" in Alfa mode, like in CodePeer mode.
6592 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore rep
6593 clauses in Alfa mode.
6594
6595 2011-08-29 Javier Miranda <miranda@adacore.com>
6596
6597 * exp_ch6.ads, exp_ch6.adb (Is_Null_Procedure): Move the spec of this
6598 function to the package spec.
6599 * sem_ch6.adb (Find_Corresponding_Spec, New_Overloaded_Entity): For
6600 internally generated bodies of null procedures locate the internally
6601 generated spec enforcing mode conformance.
6602 (Is_Interface_Conformant): Ensure that the controlling formal of the
6603 primitives match.
6604
6605 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6606
6607 * sem_prag.adb (Analyze_Pragma, case Inline): In an instance, do not
6608 reject the pragma if it appears to apply to a formal subprogram.
6609
6610 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6611
6612 * exp_ch4.adb (Expand_Allocator_Expression): Use consistent name for
6613 inner expression, to prevent double evaluation.
6614
6615 2011-08-29 Tristan Gingold <gingold@adacore.com>
6616
6617 * a-exexpr.adb (Propagate_Exception): Remove all the parameters as
6618 they were unused.
6619 * a-exexpr-gcc.adb (Propagate_Exception): Ditto.
6620 * a-except-2005.adb (Propagate_Exception): Adjust spec.
6621 (Raise_Current_Excep): Adjust call.
6622 (Raise_From_Signal_Handler): Call now simply call Raise_Current_Excep.
6623
6624 2011-08-29 Thomas Quinot <quinot@adacore.com>
6625
6626 * exp_disp.adb: Minor reformatting.
6627
6628 2011-08-29 Tristan Gingold <gingold@adacore.com>
6629
6630 * a-exexpr.adb (Setup_Exception): Removed.
6631 * a-exexpr-gcc.adb (Setup_Exception): Removed.
6632 * a-except.adb (Exception_Propagation): Removed.
6633 * a-except-2005.adb (Setup_Exception): Removed.
6634 (Reraise): Remove call to Setup_Exception.
6635 (Reraise_Occurrence): Ditto.
6636 (Reraise_Occurrence_Always): Ditto.
6637 (Reraise_Occurrence_No_Defer): Ditto.
6638 (Transfer_Occurrence): Ditto.
6639 * a-exexda.adb (Set_Exception_C_Msg): Remove call to Setup_Exception.
6640 (Set_Exception_Msg): Ditto.
6641
6642 2011-08-29 Robert Dewar <dewar@adacore.com>
6643
6644 * a-convec.adb, exp_disp.adb: Minor reformatting.
6645
6646 2011-08-29 Tristan Gingold <gingold@adacore.com>
6647
6648 * a-exexpr-gcc.adb (GNAT_GCC_Exception_Access): Set to convention C.
6649
6650 2011-08-29 Gary Dismukes <dismukes@adacore.com>
6651
6652 * exp_ch3.adb (Build_Record_Init_Proc.Build_Init_Procedure): Set
6653 Exception_Handlers to No_List instead of Empty_List in the case where
6654 there are no handlers.
6655
6656 2011-08-29 Tristan Gingold <gingold@adacore.com>
6657
6658 * gcc-interface/gigi.h (enum standard_datatypes): Add
6659 ADT_reraise_zcx_decl
6660 (reraise_zcx_decl): New macro.
6661 * gcc-interface/trans.c (gnu_incoming_exc_ptr): New variable.
6662 (gigi): Set reraise_zcx_decl.
6663 (Exception_Handler_to_gnu_zcx): Save and restore gnu_incoming_exc_ptr.
6664 (gnat_to_gnu): Handle N_Raise_Statement.
6665
6666 2011-08-29 Robert Dewar <dewar@adacore.com>
6667
6668 * sem_ch6.adb, exp_ch3.adb, s-stposu.adb, a-undesu.ads,
6669 a-undesu.adb: Minor reformatting.
6670
6671 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6672
6673 * exp_disp.adb (Check_Premature_Freezing): When building a dispatch
6674 table, accept an unfrozen untagged component if it is an actual for a
6675 formal incomplete type.
6676 * a-convec.ads, a-convec.adb: Instantiate Ada.Iterator_Interfaces to
6677 provide new iterator forms over vectors.
6678 Introduce type Iterator in package body to implement operations of
6679 Reversible_Iterator interface.
6680 * a-iteint.ads: Make package pure so it is usable with new container
6681 packages, that are categorized Remote_Types.
6682
6683 2011-08-29 Robert Dewar <dewar@adacore.com>
6684
6685 * a-exexpr-gcc.adb, a-synbar.adb, sem_ch13.adb: Minor reformatting.
6686
6687 2011-08-29 Bob Duff <duff@adacore.com>
6688
6689 * sem_aggr.adb (Resolve_Aggr_Expr): Call this routine even in the case
6690 of <>, because this is the routine that checks for dimensionality
6691 errors (for example, for a two-dimensional array, (others => <>) should
6692 be (others => (others => <>)).
6693
6694 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6695
6696 * impunit.adb: Add new run-time units.
6697 * freeze.adb, exp_ch7.ads, exp_ch7.adb, exp_util.ads, exp_util.adb,
6698 s-stposu.ads, s-stposu.adb: Code clean up.
6699 Handle protected class-wide or task class-wide types
6700 Handle C/C++/CIL/Java types.
6701 * s-spsufi.adb, s-spsufi.ads: New files.
6702
6703 2011-08-29 Yannick Moy <moy@adacore.com>
6704
6705 * sem_ch13.adb (Analyze_Aspect_Specifications): Reject test-case on
6706 library-level subprogram.
6707 * sem_prag.adb (Check_Test_Case): Stricter rules for test-case
6708 placement.
6709 (Analyze_Pragma): Change name "Normal" for "Nominal" in test-case
6710 component.
6711 * snames.ads-tmpl: Change name "Normal" for "Nominal" in test-case
6712 component.
6713 * gnat_rm.texi: Update doc for Test_Case pragma.
6714
6715 2011-08-29 Tristan Gingold <gingold@adacore.com>
6716
6717 * a-exexpr-gcc.adb (Unwind_Exception): Remove default value, made it
6718 convention C.
6719 (GCC_Exception_Access): New type.
6720 (Unwind_DeleteException): New imported procedure
6721 (Foreign_Exception): Import it.
6722 (GNAT_GCC_Exception): Simply have the occurrence inside.
6723 (To_GCC_Exception): New function.
6724 (To_GNAT_GCC_Exception): New function.
6725 (GNAT_GCC_Exception_Cleanup): New procedure..
6726 (Propagate_GCC_Exception): New procedure.
6727 (Reraise_GCC_Exception): New procedure.
6728 (Setup_Current_Excep): New procedure.
6729 (CleanupUnwind_Handler): Change type of UW_Exception parameter.
6730 (Unwind_RaiseException): Ditto.
6731 (Unwind_ForcedUnwind): Ditto.
6732 (Remove): Removed.
6733 (Begin_Handler): Change type of parameter.
6734 (End_Handler): Ditto. Now delete the exception if still present.
6735 (Setup_Key): Removed.
6736 (Is_Setup_And_Not_Propagated): Removed.
6737 (Set_Setup_And_Not_Propagated): Ditto.
6738 (Clear_Setup_And_Not_Propagated): Ditto.
6739 (Save_Occurrence_And_Private): Ditto.
6740 (EID_For): Add 'not null' constraint on parameter.
6741 (Setup_Exception): Does nothing.
6742 (Propagate_Exception): Simplified.
6743 * exp_ch11.adb (Expand_N_Raise_Statement): In back-end exception model,
6744 re-raise is not expanded anymore.
6745 * s-except.ads (Foreign_Exception): New exception - placeholder for
6746 non Ada exceptions.
6747 * raise-gcc.c (__gnat_setup_current_excep): Declare
6748 (CXX_EXCEPTION_CLASS): Define (not yet used)
6749 (GNAT_EXCEPTION_CLASS): Define.
6750 (is_handled_by): Handle foreign exceptions.
6751 (PERSONALITY_FUNCTION): Call __gnat_setup_current_excep.
6752
6753 2011-08-29 Jose Ruiz <ruiz@adacore.com>
6754
6755 * a-synbar.adb (Synchronous_Barrier): Some additional clarification.
6756
6757 2011-08-29 Thomas Quinot <quinot@adacore.com>
6758
6759 * a-synbar-posix.adb: Minor reformatting.
6760
6761 2011-08-29 Jose Ruiz <ruiz@adacore.com>
6762
6763 * a-exetim-posix.adb, a-exetim-mingw.adb, a-exetim-mingw.ads,
6764 a-exetim-default.ads (Interrupt_Clocks_Supported,
6765 Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these
6766 definitions to be compliant with AI-0171. The target systems do not
6767 support separate account for the execution time of interrupt handlers.
6768
6769 2011-08-29 Jose Ruiz <ruiz@adacore.com>
6770
6771 * a-synbar.adb (Wait): Change the order of evaluation of the conditions
6772 in the barrier to put first the easiest to evaluate (and the one which
6773 will be True more often). More efficient.
6774
6775 2011-08-29 Eric Botcazou <ebotcazou@adacore.com>
6776
6777 * s-atocou-x86.adb: Fix constraint in machine code insertion.
6778
6779 2011-08-29 Bob Duff <duff@adacore.com>
6780
6781 * aspects.ads, aspects.adb: Add new aspects for various pragmas and
6782 attributes that are now aspects, as specified by AI05-0229-1.
6783 * sem_ch13.adb (Analyze_Aspect_Specifications,
6784 Check_Aspect_At_Freeze_Point): Analyze the new aspects. Turn them into
6785 pragmas or attribute references, as appropriate.
6786
6787 2011-08-29 Robert Dewar <dewar@adacore.com>
6788
6789 * a-synbar.ads, a-synbar.adb, a-synbar-posix.adb,
6790 a-synbar-posix.ads: Minor reformatting.
6791
6792 2011-08-29 Yannick Moy <moy@adacore.com>
6793
6794 * snames.ads-tmpl: Add name Force.
6795
6796 2011-08-29 Pascal Obry <obry@adacore.com>
6797
6798 * prj-nmsc.adb: Minor reformatting.
6799
6800 2011-08-29 Jose Ruiz <ruiz@adacore.com>
6801
6802 * a-exetim.ads (Interrupt_Clocks_Supported,
6803 Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these
6804 definitions to be compliant with AI-0171.
6805
6806 2011-08-29 Robert Dewar <dewar@adacore.com>
6807
6808 * a-ngelfu.adb: Add comments.
6809
6810 2011-08-29 Geert Bosch <bosch@adacore.com>
6811
6812 * a-ngelfu.adb (Tan): Do not raise Constraint_Error if the argument is
6813 the closest machine number to Pi / 2.0.
6814
6815 2011-08-29 Jose Ruiz <ruiz@adacore.com>
6816
6817 * impunit.adb (Non_Imp_File_Names_12): Add a-synbar for new Ada 2012
6818 package Ada.Synchronous_Barriers.
6819 * a-synbar.ads, a-synbar.adb, a-synbar-posix.ads, a-synbar-posix.adb:
6820 Add new specs and bodies for Ada.Synchronous_Barriers. There is a
6821 default implementation using protected objects and another one
6822 a-synbar-posix using POSIX barriers as the underlying support.
6823 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for Linux (x86,
6824 x86_64, ia64) and MIPS IRIX): Use the a-synbar-posix implementation of
6825 Ada.Synchronous_Barriers which uses POSIX barriers (more efficient).
6826 Clean up dependencies.
6827 * Makefile.rtl (GNATRTL_TASKING_OBJS): Add a-synbar.o
6828
6829 2011-08-29 Robert Dewar <dewar@adacore.com>
6830
6831 * sem_ch7.adb, make.adb, sem_res.adb, exp_intr.adb,
6832 exp_dist.adb: Minor code reorganization.
6833 Minor reformatting.
6834
6835 2011-08-29 Thomas Quinot <quinot@adacore.com>
6836
6837 * sem_cat.adb (Validate_RACW_Primitive): The return type of an RACW
6838 primitive operation must support external streaming if it is not a
6839 controlling access result.
6840
6841 2011-08-29 Thomas Quinot <quinot@adacore.com>
6842
6843 * sinfo.ads, sem_ch7.adb: Minor reformatting.
6844
6845 2011-08-29 Bob Duff <duff@adacore.com>
6846
6847 * sem_ch4.adb (Analyze_Allocator): Check No_Nested_Finalization
6848 restriction on allocators, as required by AI05-0013-1.
6849 * restrict.ads: Minor comment fix.
6850
6851 2011-08-29 Tristan Gingold <gingold@adacore.com>
6852
6853 * a-exexpr.adb, a-except-2005.ads (Jmpbuf_Address): Move to a-exexpr.adb
6854 (To_Jmpbuf_Address): Ditto
6855 (builtin_longjmp): Ditto
6856
6857 2011-08-29 Thomas Quinot <quinot@adacore.com>
6858
6859 * sem_res.adb: Minor reformatting.
6860
6861 2011-08-29 Vincent Celier <celier@adacore.com>
6862
6863 * make.adb (Gnatmake): Move special processing for VM targets after the
6864 call to Get_Target_Parameters.
6865
6866 2011-08-29 Thomas Quinot <quinot@adacore.com>
6867
6868 * sem_ch12.adb, par-ch12.adb: Minor reformatting.
6869
6870 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6871
6872 * sem_res.adb (Resolve_Allocator): Implement Ada2012-B052. Detect cases
6873 where an anonymous access discriminant of a limited designated type
6874 appears in a non-immutably limited discriminated type and issue an
6875 error message. Add local variable Desig_T and replace all occurrences
6876 of Designated_Type.
6877
6878 2011-08-29 Jose Ruiz <ruiz@adacore.com>
6879
6880 * a-rttiev.adb (Set_Handler): Update comment to indicate that our
6881 implementation is compliant to RM D.15(15/2) after the modification
6882 imposed by AI05-0094-1 (binding interpretation).
6883
6884 2011-08-29 Robert Dewar <dewar@adacore.com>
6885
6886 * exp_ch9.adb, s-tasren.adb, exp_sel.adb, exp_sel.ads, exp_ch11.adb,
6887 s-interr-hwint.adb, s-tpobop.adb, sem_ch13.adb: Minor reformatting.
6888
6889 2011-08-29 Thomas Quinot <quinot@adacore.com>
6890
6891 * par-endh.adb (Check_End): For an END where it is mandatory to repeat
6892 the scope name, do not report a missing label as a style violation (it
6893 will be diagnosed as an illegality).
6894 * exp_dist.adb (Add_Params_For_Variant_Components): Fix handling of
6895 variant records: Get_Enum_Lit_From_Pos already returns a usage
6896 occurrence of the literal, no need to use New_Occurrence_Of. Set Etype
6897 on Expr in Integer_Literal case so that it can be used by
6898 Build_To_Any_Call.
6899
6900 2011-08-29 Tristan Gingold <gingold@adacore.com>
6901
6902 * exp_sel.ads (Build_Abort_BLock_Handler): New function spec.
6903 Adjust comment.
6904 * exp_sel.adb (Build_Abort_Block): Use Build_Abort_Block_Handler.
6905 (Build_Abort_Block_Handler): New function to build an Abort_Signal
6906 exception handler.
6907 * exp_ch9.adb (Expand_N_Asynchronous_Select): Call
6908 Build_Abort_Block_Handler to build the exception handler. Do not
6909 undefer aborts for the Abort_Signal exception handler if back-end
6910 exception mechanism.
6911 * exp_ch11.adb (Expand_Exception_Handlers): Do not undefer aborts if
6912 back_end exceptions for all others and abort_signal.
6913 * s-except.ads (ZCX_By_Default): New constant.
6914 * a-except-2005.adb (Raise_Exception): Do not defer abort if ZCX.
6915 (Raise_Exception_Always): Ditto.
6916 (Raise_From_Signal_Handler): Ditto.
6917 (Raise_With_Location_And_Msg): Ditto.
6918 (Raise_With_Msg): Ditto.
6919 (Reraise): Ditto.
6920 (Reraise_Occurence): Ditto.
6921 (Reraise_Occurrence_Always): Ditto.
6922 * s-tasren.adb (Exceptional_Complete_Rendezvous): Defer aborts if ZCX.
6923 * s-tpobop.adb: (Exceptional_Complete_Body): Undefer abort if ZCX.
6924
6925 2011-08-29 Thomas Quinot <quinot@adacore.com>
6926
6927 * sem_util.ads (Get_Enum_Lit_From_Pos): Clarify documentation.
6928
6929 2011-08-29 Robert Dewar <dewar@adacore.com>
6930
6931 * snames.adb-tmpl, sem_ch13.adb: Minor reformatting
6932 Minor code reorganization.
6933
6934 2011-08-29 Bob Duff <duff@adacore.com>
6935
6936 * usage.adb (-gnatwy): Fix documentation: this switch applies to Ada
6937 2012, not just Ada 2005.
6938
6939 2011-08-29 Vincent Celier <celier@adacore.com>
6940
6941 * gnat_ugn.texi: Indicate that when the compiler is called by gnatmake
6942 with a project file or with gprbuid, if -gnatep= is specified, the
6943 builder may need to be invoked with -x.
6944
6945 2011-08-29 Tristan Gingold <gingold@adacore.com>
6946
6947 * a-exexpr-gcc.adb: Minor comment fix.
6948
6949 2011-08-29 Robert Dewar <dewar@adacore.com>
6950
6951 * sem_ch8.adb: Minor reformatting.
6952
6953 2011-08-29 Bob Duff <duff@adacore.com>
6954
6955 * par-ch2.adb (P_Identifier): Warn that "some" is reserved in Ada 2012.
6956 * par-ch4.adb (P_Quantified_Expression): Remove unnecessary code for
6957 treating "some" as unreserved in earlier Ada versions. This is now
6958 handled in Snames.Is_Keyword_Name. Parse "for some" using Tok_Some,
6959 rather than Name_Some, since Tok_Some is now recognized as reserved.
6960 * scans.adb (Initialize_Ada_Keywords): Handle Tok_Some like any other
6961 reserved word.
6962 * scans.ads: Minor comment fixes.
6963 * snames.adb-tmpl (Is_Keyword_Name): Handle Ada 2012 reserved words as
6964 for other language versions.
6965 * scn.adb (Scan_Reserved_Identifier): Remove unnecessary code for
6966 treating "some" as unreserved in earlier Ada versions. This is now
6967 handled in Snames.Is_Keyword_Name.
6968 * par-ch3.adb (P_Defining_Identifier): Warn that "some" is reserved in
6969 Ada 2012.
6970 (P_Subtype_Mark_Resync): Remove unnecessary code for treating "some" as
6971 unreserved in earlier Ada versions. This is now handled in
6972 Snames.Is_Keyword_Name.
6973 * snames.ads-tmpl (Ada_2012_Reserved_Words): Handle Ada 2012 reserved
6974 words as for other language versions.
6975 * gnat_ugn.texi (-gnatwy): Fix documentation: this switch applies to
6976 Ada 2012, not just Ada 2005.
6977
6978 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6979
6980 * sem_ch13.adb: Additional semantic checks for aspects involved in
6981 iterators.
6982
6983 2011-08-29 Matthew Heaney <heaney@adacore.com>
6984
6985 * a-comutr.ads, a-comutr.adb, a-cimutr.ads, a-cimutr.adb,
6986 a-cbmutr.ads, a-cbmutr.adb (Find_In_Subtree): Remove superfluous
6987 Container parameter.
6988 (Ancestor_Find): ditto.
6989
6990 2011-08-29 Thomas Quinot <quinot@adacore.com>
6991
6992 * par-endh.adb: Minor reformatting.
6993
6994 2011-08-29 Tristan Gingold <gingold@adacore.com>
6995
6996 * a-exexpr-gcc.adb (Unwind_Action) Rewrite as an integer with constants.
6997 (GNAT_GCC_Exception): Remove N_Cleanups_To_Trigger component.
6998 (Adjust_N_CLeanups_For): Remove.
6999 (CleanupUnwind_Handler): Call Unhandled_Exception_Terminate when end of
7000 stack is reached.
7001 (Propgate_Exception): Adjust.
7002 * raise-gcc.c: Add a few static/const.
7003 (Adjust_N_Cleanups_For): Remove declaration.
7004 (PERSONALITY_FUNCTION): Remove code dealing with N_Cleanups_To_Trigger.
7005
7006 2011-08-29 Ed Schonberg <schonberg@adacore.com>
7007
7008 * sem_ch8.adb: Use type of function return when rewriting as object
7009 declaration.
7010
7011 2011-08-29 Gary Dismukes <dismukes@adacore.com>
7012
7013 * sem_type.adb: Minor reformatting.
7014
7015 2011-08-29 Robert Dewar <dewar@adacore.com>
7016
7017 * makeutl.adb: Minor reformatting.
7018
7019 2011-08-29 Ed Schonberg <schonberg@adacore.com>
7020
7021 * sem_ch8.adb (Analyze_Object_Renaming): If the renamed object is a
7022 function call of a limited type, the expansion of the renaming is
7023 complicated by the presence of various temporaries and subtypes that
7024 capture constraints of the renamed object.
7025 Rewrite node as an object declaration, whose expansion is simpler.
7026 Given that the object is limited there is no copy involved and no
7027 performance hit.
7028
7029 2011-08-29 Robert Dewar <dewar@adacore.com>
7030
7031 * exp_ch5.adb, sinfo.ads, make.adb, s-pooglo.adb, sem_ch12.adb,
7032 freeze.adb, sem_ch6.adb, par-ch12.adb: Minor reformatting.
7033
7034 2011-08-29 Tristan Gingold <gingold@adacore.com>
7035
7036 * system-darwin-x86.ads, system-linux-s390x.ads, system-linux-alpha.ads,
7037 system-tru64.ads, system-irix-n32.ads, system-vxworks-arm.ads,
7038 system-linux-hppa.ads, system-linux-s390.ads,
7039 system-solaris-sparcv9.ads, system-mingw.ads, system-linux-ia64.ads,
7040 system-vms_64.ads, system-vxworks-sparcv9.ads, system-linux-ppc.ads,
7041 system-aix64.ads, system-lynxos-ppc.ads, system-linux-sh4.ads,
7042 system-solaris-x86.ads, system-linux-x86_64.ads, system-linux-x86.ads,
7043 system-vxworks-ppc.ads, system-hpux.ads, system-darwin-ppc.ads,
7044 system-solaris-sparc.ads, system-lynxos-x86.ads,
7045 system-vxworks-m68k.ads, system-hpux-ia64.ads, system-irix-o32.ads,
7046 system-solaris-x86_64.ads, system-mingw-x86_64.ads,
7047 system-vxworks-mips.ads, system-linux-sparc.ads, system-vms-ia64.ads,
7048 system-freebsd-x86.ads, system-aix.ads, system-darwin-x86_64.ads,
7049 system-vxworks-x86.ads: Remove GCC_ZCX_Support.
7050 * s-taprop-posix.adb, s-taprop-irix.adb, s-taprop-vxworks.adb,
7051 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb: Ditto.
7052 * opt.ads: Adjust comment.
7053 * targparm.ads, targparm.adb: Remove GCC_ZCX_Support_On_Target.
7054 * gnat1drv.adb: Do not check for GCC_ZCX_Support_On_Target.
7055 * system.ads: Move GCC_ZCX_Support to obsolete entries.
7056
7057 2011-08-29 Emmanuel Briot <briot@adacore.com>
7058
7059 * makeutl.adb (Do_Complete): Resolve symbolic links when a relative
7060 file name is specified on the gnatmake or gprbuild command line, and
7061 before we search for that file in the project.
7062
7063 2011-08-29 Ed Schonberg <schonberg@adacore.com>
7064
7065 * sem_type.adb (Within_Instance): New predicate in Collect_Interps,
7066 used to determine whether a possible interpretation for an overloadable
7067 entity is declared within the current instantiation and should be
7068 included in the candidate set.
7069
7070 2011-08-29 Vasiliy Fofanov <fofanov@adacore.com>
7071
7072 * gnat_rm.texi, gnat_ugn.texi: Clean ups.
7073
7074 2011-08-29 Ed Schonberg <schonberg@adacore.com>
7075
7076 * sem_res.adb (Resolve_Actuals): Use base type to determine whether an
7077 access subtype is access_to_subprogram, when applying checks for
7078 RM 3.10.2 (27).
7079
7080 2011-08-29 Matthew Heaney <heaney@adacore.com>
7081
7082 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Splice_Subtree): Only check
7083 for sibling when common parent.
7084
7085 2011-08-29 Thomas Quinot <quinot@adacore.com>
7086
7087 * get_scos.adb: Literals of Pragma_Id are pragma names prefixed with
7088 "pragma_".
7089
7090 2011-08-29 Ed Schonberg <schonberg@adacore.com>
7091
7092 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Enable freeze actions
7093 for the return type when in ASIS mode.
7094
7095 2011-08-29 Vincent Celier <celier@adacore.com>
7096
7097 * make.adb (Gnatmake): Get the default search dirs, then the target
7098 parameters after getting the Builder switches, as the Builder switches
7099 may include --RTS= and that could change the default search dirs.
7100
7101 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
7102
7103 * exp_ch7.adb (Make_Adjust_Call): Rewrite to mimic the structure of
7104 Make_Final_Call. Move the processing for class-wide types before the
7105 processing for derivations from [Limited_]Controlled.
7106 (Make_Final_Call): Move the processing for class-wide types before the
7107 processing for derivations from [Limited_]Controlled.
7108 * s-stposu.adb (Allocate_Any_Controlled): Correct the membership check.
7109 Add code to account for alignments larger than the list header. Add a
7110 comment illustrating the structure of the allocated object + padding +
7111 header.
7112 (Deallocate_Any_Controlled): Add code to account for alignments larger
7113 than the list header.
7114
7115 2011-08-29 Ed Schonberg <schonberg@adacore.com>
7116
7117 * sinfo.ads, sinfo.adb: New node kind
7118 N_Formal_Incomplete_Type_Definition, related flags.
7119 par-ch12.adb (P_Formal_Type_Declaration, G_Formal_Type_Definition):
7120 Parse formal incomplete types.
7121 * sem.adb (Analyze): Formal_Incomplete_Type_Definitions are handled in
7122 sem_ch12.
7123 * sem_ch7.adb (Analyze_Package_Specification, Unit_Requires_Body):
7124 Formal incomplete types do not need completion.
7125 * sem_ch12.adb (Analyze_Formal_Incomplete_Type,
7126 Validate_Incomplete_Type_Instance): New procedures to handle formal
7127 incomplete types.
7128 * freeze.adb (Freeze_Entity): Do not freeze the subtype of an actual
7129 that corresponds to a formal incomplete type.
7130 * sprint.adb: Handle formal incomplete type declarations.
7131 * exp_util.adb (Insert_Actions): An incomplete_type_definition is not
7132 an insertion point.
7133
7134 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
7135
7136 * a-fihema.ads, a-fihema.adb: Unit removed.
7137 * a-undesu.ads, a-undesu.adb: New unit implementing
7138 Ada.Unchecked_Deallocate_Subpool.
7139 * einfo.adb: Remove Associated_Collection from the node usage.
7140 Add Finalization_Master to the node usage.
7141 (Associated_Collection): Removed.
7142 (Finalization_Master): New routine.
7143 (Set_Associated_Collection): Removed.
7144 (Set_Finalization_Master): New routine.
7145 (Write_Field23_Name): Remove Associated_Collection from the output. Add
7146 Finalization_Master to the output.
7147 * einfo.ads: Remove attribute Associated_Collection and its uses in
7148 entities.
7149 Add new attribute Finalization_Master along with its uses in entitites.
7150 (Associated_Collection): Removed along with its pragma import.
7151 (Finalization_Master): New routine along with a pragma import.
7152 (Set_Associated_Collection): Removed along with its pragma import.
7153 (Set_Finalization_Master): New routine along with a pragma import.
7154 * exp_ch3.adb (Expand_Freeze_Array_Type): Replace call to
7155 Build_Finalization_Collection with Build_Finalization_Master.
7156 (Expand_Freeze_Record_Type): Move the generation of Finalize_Address
7157 before the bodies of the predefined routines. Add comment explaining
7158 this. Replace call to Build_Finalization_Collection with
7159 Build_Finalization_Master.
7160 (Freeze_Type): Replace call to Build_Finalization_Collection with
7161 Build_Finalization_Master.
7162 (Make_Finalize_Address_Body): Comment reformatting.
7163 (Make_Predefined_Primitive_Specs): Code reformatting.
7164 (Stream_Operation_OK): Update comment mentioning finalization
7165 collections. Replace RE_Finalization_Collection with
7166 RE_Finalization_Master.
7167 * exp_ch4.adb (Complete_Controlled_Allocation): Replace call to
7168 Associated_Collection with Finalization_Master. Replace call to
7169 Build_Finalization_Collection with Build_Finalization_Master.
7170 (Expand_Allocator_Expression): Replace call to Associated_Collection
7171 with Finalization_Master. Replace call to Set_Associated_Collection with
7172 Set_Finalization_Master. Remove the generation of
7173 Set_Finalize_Address_Ptr.
7174 (Expand_N_Allocator): Replace call to Associated_Collection with
7175 Finalization_Master. Remove the generation of Set_Finalize_Address_Ptr.
7176 * exp_ch6.adb (Add_Collection_Actual_To_Build_In_Place_Call): Renamed to
7177 Add_Finalization_Master_Actual_To_Build_In_Place_Call. Update the
7178 comment on usage. Replace call to Needs_BIP_Collection with
7179 Needs_BIP_Finalization_Master Remplace BIP_Collection with
7180 BIP_Finalization_Master. Update all comments which mention finalization
7181 collections. Replace Associated_Collection with
7182 Finalization_Master. Replace Build_Finalization_Collection with
7183 Build_Finalization_Master.
7184 (BIP_Formal_Suffix): Update BIP_Collection's case.
7185 (Build_Heap_Allocator): Update the related comment. Rename local
7186 variable Collect to Fin_Mas_Id and update its occurrences. Update
7187 comments which mention finalization collections. Replace
7188 Set_Associated_Collection with Set_Finalization_Master.
7189 (Expand_Call): Update the code which detects a special piece of library
7190 code for .NET/JVM.
7191 (Make_Build_In_Place_Call_In_Allocator): Replace the call to
7192 Add_Collection_Actual_To_Build_In_Place_Call with
7193 Add_Finalization_Master_Actual_To_Build_In_Place_Call. Remove the code
7194 which generates a call to Make_Set_Finalize_Address_Ptr_Call.
7195 (Make_Build_In_Place_Call_In_Anonymous_Context): Replace call to
7196 Add_Collection_Actual_To_Build_In_Place_Call with
7197 Add_Finalization_Master_Actual_To_Build_In_Place_Call.
7198 (Make_Build_In_Place_Call_In_Assignment): Replace call to
7199 Add_Collection_Actual_To_Build_In_Place_Call with
7200 Add_Finalization_Master_Actual_To_Build_In_Place_Call.
7201 (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master.
7202 * exp_ch6.ads: Rename BIP_Collection to BIP_Finalization_Master.
7203 (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master.
7204 * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Update comment on usage.
7205 Rename local variable Collect to Fin_Mas_Id and update its occurrences.
7206 Replace call to Set_Associated_Collection with Set_Finalization_Master.
7207 (Build_Finalization_Collection): Renamed to Build_Finalization_Master.
7208 Replace the call to Associated_Collection with Finalization_Master.
7209 Rename local variable Coll_Id to Fin_Mas_Id and update its occurrences.
7210 Update the way finalization master names are generated. Update the
7211 retrieval of the correct access type which will carry the pool and
7212 master attributes.
7213 (Make_Final_Call): Reimplement the way [Deep_]Finalize is retrieved.
7214 (Make_Finalize_Address_Body): Abstract types do not need
7215 Finalize_Address. Code reformatting.
7216 (Make_Finalize_Address_Stmts): Update comment on usage.
7217 (Make_Set_Finalize_Address_Ptr_Call): Removed.
7218 (Process_Declarations): Update comments.
7219 * exp_ch7.ads (Build_Finalization_Collection): Renamed to
7220 Build_Finalization_Master. Update associated comment.
7221 (Make_Set_Finalize_Address_Ptr_Call): Removed.
7222 * exp_ch13.adb: Update comments which mention finalization collections.
7223 (Expand_N_Free_Statement): Replace the call to Associated_Collection
7224 with Finalization_Master.
7225 * exp_util.adb (Build_Allocate_Deallocate_Proc): Reimplemented to
7226 create calls to routines Allocate_Any_Controlled and
7227 Deallocate_Any_Controlled.
7228 (Find_Finalize_Address): New routine.
7229 (Is_Allocate_Deallocate_Proc): Update the RTE entities used in the
7230 comparison.
7231 (Requires_Cleanup_Actions): Update the comment on freeze node
7232 inspection.
7233 * exp_util.ads: Remove comment on generated code for
7234 Build_Allocate_Deallocate_Proc. The code is now quite complex and it
7235 is better to simply look in the body.
7236 * freeze.adb (Freeze_All): Update the comment of finalization
7237 collections. Replace the call to Associated_Collection with
7238 Finalization_Master. Replace the call to Build_Finalization_Collection
7239 with Build_Finalization_Master.
7240 * impunit.adb: Add a-undesu and s-stposu to the list of units.
7241 * Makefile.rtl: Add files a-undesu, s-finmas and s-stposu. Remove file
7242 a-fihema.
7243 * rtsfind.adb (Get_Unit_Name): Remove the processing for children of
7244 Ada.Finalization. Add processing for children of System.Storage_Pools.
7245 * rtsfind.ads: Remove the naming of second level children of
7246 Ada.Finalization.
7247 Remove Ada_Finalization_Heap_Management from the list of units.
7248 Remove subtype Ada_Finalization_Child.
7249 Remove the following subprogram entities:
7250
7251 RE_Allocate
7252 RE_Deallocate
7253 RE_Finalization_Collection
7254 RE_Finalization_Collection_Ptr
7255 RE_Set_Finalize_Address_Ptr
7256
7257 Add the naming of second level children of System.Storage_Pools.
7258 Add System_Finalization_Masters and System_Storage_Pools_Subpools to
7259 the list of units.
7260 Add subtype System_Storage_Pools_Child.
7261 Add the following subprogram entities to System.Finalization_Masters:
7262
7263 RE_Finalization_Master
7264 RE_Finalization_Master_Ptr
7265
7266 Add the following subprogram entities to System.Storage_Pools.Subpools:
7267
7268 RE_Allocate_Any_Controlled
7269 RE_Deallocate_Any_Controlled
7270 RE_Root_Storage_Pool_With_Subpools
7271 RE_Root_Subpool
7272 RE_Subpool_Handle
7273
7274 Move the following subprogram entities from
7275 Ada.Finalization.Heap_Management to System.Finalization_Masters:
7276
7277 RE_Add_Offset_To_Address
7278 RE_Attach
7279 RE_Base_Pool
7280 RE_Detach
7281
7282 * sem_ch3.adb (Access_Type_Declaration): Replace the call to
7283 Set_Associated_Collection with Set_Finalization_Master.
7284 * sem_ch6.adb (Create_Extra_Formals): Update the way extra formal
7285 BIP_Finalization_Master is created.
7286 * s-finmas.adb: New unit System.Finalization_Masters.
7287 * s-finmas.ads: New unit System.Finalization_Masters.
7288 * s-stopoo.ads, s-stopoo.adb: Minor code reformatting.
7289 * s-stposu.ads, s-stposu.adb: New unit implementing
7290 System.Storage_Pools.Subpools.
7291
7292 2011-08-29 Bob Duff <duff@adacore.com>
7293
7294 * tbuild.adb: Add assertion.
7295
7296 2011-08-29 Thomas Quinot <quinot@adacore.com>
7297
7298 * s-pooglo.adb: Minor reformatting.
7299
7300 2011-08-29 Ed Schonberg <schonberg@adacore.com>
7301
7302 * exp_ch5.adb (Expand_N_Assignment_Statement): if the left-hand side is
7303 an indexed component of a packed array whose element type is a record
7304 with a representation clause different from that of the right-hand
7305 side, generate a temporary to minimuze the number of bit-field
7306 operations generated.
7307
7308 2011-08-29 Ed Schonberg <schonberg@adacore.com>
7309
7310 * exp_util.adb (Insert_Actions): Use clauses can be part of lists of
7311 declarations, and thus are likely insertion points for actions.
7312
7313 2011-08-29 Bob Duff <duff@adacore.com>
7314
7315 * einfo.ads: Minor comment fix.
7316
7317 2011-08-29 Robert Dewar <dewar@adacore.com>
7318
7319 * frontend.adb, gnat1drv.adb: Minor reformatting.
7320
7321 2011-08-29 Tristan Gingold <gingold@adacore.com>
7322
7323 * s-pooglo.adb (Allocate, Deallocate): Take into account the alignment.
7324 * a-fihema.adb (Allocate, Deallocate): Ditto. Possibly add padding
7325 space in front of the header.
7326
7327 2011-08-29 Johannes Kanig <kanig@adacore.com>
7328
7329 * frontend.adb (Frontend): Exit after creating Standard package when
7330 -gnatd.H is present.
7331 * gnat1drv.adb (Gnat1drv): Call Backend right away when -gnatd.H is
7332 present.
7333
7334 2011-08-29 Robert Dewar <dewar@adacore.com>
7335
7336 * exp_ch9.adb, mlib-prj.adb, prj.adb, prj.ads, ttypes.ads, sem_ch4.adb,
7337 makeutl.adb, makeutl.ads, atree.ads, snames.adb-tmpl,
7338 snames.ads-tmpl: Minor reformatting.
7339
7340 2011-08-29 Philippe Gil <gil@adacore.com>
7341
7342 * prj.adb (Reset_Units_In_Table): New procedure.
7343 Reset units to avoid access to freed memory.
7344
7345 2011-08-29 Thomas Quinot <quinot@adacore.com>
7346
7347 * get_scos.adb: When reading a P statement SCO without a pragma name
7348 (from an older ALI file), ensure that the Pragma_Name component is set
7349 to Unknown_Pragma (not left uninitialized).
7350
7351 2011-08-29 Vincent Celier <celier@adacore.com>
7352
7353 * makeutl.adb (Get_Directories): New procedure moved from Buildgpr and
7354 modified to compute correctly the object path of a SAL project that is
7355 extending another library project.
7356 (Write_Path_File): New procedure.
7357 * makeutl.ads (Directories): New table moved from Buildgpr
7358 (Get_Directories): New procedure moved from Buildgpr
7359 (Write_Path_File): New procedure
7360 * mlib-prj.adb (Build_Library): Use Makeutl.Get_Directories to set the
7361 paths before binding SALs, instead of Set_Ada_Paths.
7362 * prj-env.adb (Set_Path_File_Var): Procedure has been moved to package
7363 Prj.
7364 * prj.adb (Set_Path_File_Var): New procedure moved from Prj.Env
7365 (Current_Source_Path_File_Of): New function
7366 (Set_Current_Object_Path_File_Of): New procedure
7367 (Current_Source_Object_File_Of): New function
7368 (Set_Current_Object_Path_File_Of): New procedure
7369 * prj.ads (Set_Path_File_Var): New procedure moved from Prj.Env
7370 (Current_Source_Path_File_Of): New function
7371 (Set_Current_Object_Path_File_Of): New procedure
7372 (Current_Source_Object_File_Of): New function
7373 (Set_Current_Object_Path_File_Of): New procedure
7374
7375 2011-08-29 Ed Schonberg <schonberg@adacore.com>
7376
7377 * exp_ch5.adb (Expand_N_Assignment_Statement): For an assignment to a
7378 packed entity, use a bit-field assignment only if there is no change of
7379 representation.
7380
7381 2011-08-29 Thomas Quinot <quinot@adacore.com>
7382
7383 * rtsfind.ads, exp_ch3.adb (In_Runtime): Minor code improvement, use
7384 Is_RTU instead of using Chars comparisons.
7385
7386 2011-08-29 Thomas Quinot <quinot@adacore.com>
7387
7388 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do not create a
7389 temporary object if the actual is constrained, and the discriminants
7390 read from the stream don't match.
7391
7392 2011-08-29 Tristan Gingold <gingold@adacore.com>
7393
7394 * sem_attr.adb, exp_attr.adb: Add handling of
7395 Attribute_System_Allocator_Alignment
7396 * snames.ads-tmpl: Add Name_System_Allocator_Alignment and
7397 Attribute_System_Allocator_Alignment.
7398 * ttypes.ads, get_targ.ads: Add Get_System_Allocator_Alignment.
7399 * gcc-interface/targtyps.c, gcc-interface/utils2.c,
7400 gcc-interface/gigi.h: Renames get_target_default_allocator_alignment to
7401 get_target_system_allocator_alignment.
7402
7403 2011-08-29 Arnaud Charlet <charlet@adacore.com>
7404
7405 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
7406 dependencies.
7407
7408 2011-08-29 Arnaud Charlet <charlet@adacore.com>
7409
7410 * exp_ch3.adb (In_Runtime): Fix typo.
7411
7412 2011-08-29 Bob Duff <duff@adacore.com>
7413
7414 * sem_ch4.adb (Analyze_Allocator): Analyze the subpool specification.
7415
7416 2011-08-29 Ed Schonberg <schonberg@adacore.com>
7417
7418 * exp_ch3.adb (Expand_N_Object_Declaration): If the entity is tagged
7419 and a separate tag assignment is generated, ensure that the tag
7420 assignment is analyzed.
7421
7422 2011-08-29 Ed Schonberg <schonberg@adacore.com>
7423
7424 * atree.ads, atree.adb (Copy_Separate_List): New function that applies
7425 Copy_Separate_Tree to a list of nodes. Used to create disjoint copies
7426 of statement lists that may contain local declarations.
7427 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Use Copy_Separate_List to
7428 duplicate the triggering statements needed for the expansion of this
7429 construct, when the trigger is a dispatching call to a synchronized
7430 primitive.
7431
7432 2011-08-29 Arnaud Charlet <charlet@adacore.com>
7433
7434 * gnat_rm.texi: Add doc for 'Elab_Subp_Body.
7435 * bindgen.adb: Add comments.
7436 * snames.adb-tmpl (Is_Attribute_Name): Only recognize 'Elab_Subp_Body
7437 in CodePeer mode.
7438
7439 2011-08-29 Robert Dewar <dewar@adacore.com>
7440
7441 * exp_attr.adb: Minor reformatting.
7442 Minor code reorganization and commenting.
7443 * par_sco.adb, checks.adb, sem_attr.adb, get_scos.adb: Minor
7444 reformatting.
7445
7446 2011-08-29 Thomas Quinot <quinot@adacore.com>
7447
7448 * get_scos.adb: Ignore chaining indicators not currently supported
7449 by Ada.
7450
7451 2011-08-29 Arnaud Charlet <charlet@adacore.com>
7452
7453 * system.ads: Minor editing.
7454
7455 2011-08-29 Arnaud Charlet <charlet@adacore.com>
7456
7457 * bindgen.adb (Gen_Elab_Calls): Generate calls to subp'Elab_Subp_Body in
7458 CodePeer mode.
7459 * sem_attr.ads, sem_attr.adb, exp_Attr.adb, sem_ch6.adb: Add handling of
7460 Attribute_Elab_Subp_Body.
7461 * snames.ads-tmpl (Attribute_Elab_Subp_Body, Name_Elab_Subp_Body): New.
7462 * sem_util.adb: Update comments.
7463
7464 2011-08-29 Thomas Quinot <quinot@adacore.com>
7465
7466 * par_sco.adb, scos.adb, scos.ads, put_scos.adb, get_scos.adb: Record
7467 pragma name for each SCO statement corresponding to a pragma.
7468
7469 2011-08-29 Arnaud Charlet <charlet@adacore.com>
7470
7471 * opt.ads: Minor editing.
7472
7473 2011-08-29 Yannick Moy <moy@adacore.com>
7474
7475 * gnat1drv.adb (Adjust_Global_Switches): Remove options for ALFA mode
7476 that only made sense for CodePeer mode.
7477
7478 2011-08-29 Jose Ruiz <ruiz@adacore.com>
7479
7480 * targparm.ads (Support_64_Bit_Divides_On_Target): Remove this flag
7481 which is no longer used.
7482 * targparm.adb (S64, S64_Str, Get_Target_Parameters): Remove the
7483 handling of the 64-bit division check.
7484 * exp_ch4.adb (Expand_N_Op_Divide): Remove the check for 64-bit
7485 division available.
7486 * system*.ads (Support_64_Bit_Divides): Remove this flag which is no
7487 longer used.
7488
7489 2011-08-29 Thomas Quinot <quinot@adacore.com>
7490
7491 * get_scos.adb: Minor reformatting.
7492
7493 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
7494
7495 * exp_util.adb (Process_Statements_For_Controlled_Objects): Whenever a
7496 statement list is wrapped in a block, the block is explicitly analyzed
7497 in order to properly redecorate the entities and create a servicing
7498 finalizer.
7499
7500 2011-08-29 Tristan Gingold <gingold@adacore.com>
7501
7502 * sinfo.ads, sinfo.adb (Zero_Cost_Handling): Remove.
7503 (Set_Zero_Cost_Handling): Remove.
7504
7505 2011-08-29 Thomas Quinot <quinot@adacore.com>
7506
7507 * par_sco.adb, scos.ads, put_scos.adb, get_scos.adb: Minor reformatting
7508
7509 2011-08-29 Geert Bosch <bosch@adacore.com>
7510
7511 * s-vaflop-vms-alpha.adb (Neg_F): Use subtraction instead of negation
7512 instruction, as the latter may produce -0.0, which is not a valid VAX
7513 F float number.
7514 (Neg_G): Likewise for VAX F float.
7515
7516 2011-08-29 Robert Dewar <dewar@adacore.com>
7517
7518 * exp_util.adb: Minor reformatting.
7519
7520 2011-08-29 Yannick Moy <moy@adacore.com>
7521
7522 * sem_ch3.adb: Minor comment update.
7523
7524 2011-08-29 Thomas Quinot <quinot@adacore.com>
7525
7526 * checks.adb (Apply_Type_Conversion_Checks): Use the Underlying_Type of
7527 the operand type.
7528
7529 2011-08-29 Thomas Quinot <quinot@adacore.com>
7530
7531 * par_sco.adb (Traverse_Declarations_Or_Statements): Do not flush
7532 current statement sequence on a generic instantiation or a subprogram
7533 declaration.
7534
7535 2011-08-29 Robert Dewar <dewar@adacore.com>
7536
7537 * sem_type.adb, einfo.ads, freeze.adb, exp_ch4.adb, sem_ch13.adb:
7538 Minor reformatting.
7539
7540 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
7541
7542 * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)):
7543 Correct the check which involves the freeze node of a controlled or
7544 access-to-controlled type.
7545
7546 2011-08-29 Geert Bosch <bosch@adacore.com>
7547
7548 * sem_warn.adb (Check_Code_Statement): Remove check for consecutive Asm
7549 statements.
7550 * s-vaflop-vms-alpha.adb: Remove bogus Volatile => True arguments from
7551 Asm statements.
7552
7553 2011-08-29 Yannick Moy <moy@adacore.com>
7554
7555 * sem_ch3.adb (Array_Type_Declaration): Insert a subtype declaration
7556 for every index type and component type that is not a subtype_mark.
7557 (Process_Subtype): Set Etype of subtype.
7558
7559 2011-08-29 Robert Dewar <dewar@adacore.com>
7560
7561 * a-cbmutr.adb, a-cimutr.adb, a-comutr.adb, prj-nmsc.adb: Minor code
7562 reorganization. Minor reformatting.
7563
7564 2011-08-29 Steve Baird <baird@adacore.com>
7565
7566 * exp_ch4.adb (Expand_N_Op_Expon): Suppress N_Op_Expon node expansion
7567 for CodePeer and ALFA modes.
7568
7569 2011-08-29 Ed Schonberg <schonberg@adacore.com>
7570
7571 * sem_type.adb (Collect_Interps): Within an instance, collect a homonym
7572 that comes from an enclosing scope if it is not the renaming of an
7573 actual, to handle properly a spurious ambiguity in an instance.
7574
7575 2011-08-29 Eric Botcazou <ebotcazou@adacore.com>
7576
7577 * sem_ch13.adb (Alignment_Check_For_Esize_Change): Rename to...
7578 (Alignment_Check_For_Size_Change): ...this. Add SIZE parameter and
7579 use it instead of the Esize of the first parameter.
7580 (Analyze_Attribute_Definition_Clause) <Object_Size>: Adjust call to
7581 above change.
7582 <Size>: Likewise. Call it for composite types on the RM size.
7583
7584 2011-08-29 Yannick Moy <moy@adacore.com>
7585
7586 * exp_ch4.adb (Expand_N_Op_Not): Do not expand not on array.
7587 * sem_util.adb (Unique_Name): Correct behaviour for names of
7588 compilation units.
7589
7590 2011-08-29 Yannick Moy <moy@adacore.com>
7591
7592 * sem_prag.adb (Check_Precondition_Postcondition): In formal
7593 verification mode, analyze pragma expression for correctness, for
7594 pre/post on library-level subprogram, as it is not expanded later.
7595
7596 2011-08-29 Yannick Moy <moy@adacore.com>
7597
7598 * exp_aggr.adb (Expand_Array_Aggregate): Do not expand array aggregates
7599 in formal verification.
7600
7601 2011-08-29 Thomas Quinot <quinot@adacore.com>
7602
7603 * sem_util.adb: Minor reformatting.
7604 * freeze.adb, sem_ch13.adb: Fix comment: Bit_Order is an attribute,
7605 there's no pragma.
7606 * par_sco.ads, par_sco.adb: Update comments.
7607
7608 2011-08-29 Yannick Moy <moy@adacore.com>
7609
7610 * einfo.adb, einfo.ads: Remove flag Is_Postcondition_Proc and
7611 associated getter/setter.
7612 * sem_ch6.adb: Remove reference to Is_Postcondition_Proc.
7613
7614 2011-08-29 Vincent Celier <celier@adacore.com>
7615
7616 * prj-attr.adb: New Compiler attribute Dependency_Kind and Language_Kind
7617 * prj-conf.adb: Add_Default_GNAT_Naming_Scheme: Add a package Compiler
7618 with declarations for Language_Kind and Dependency_Kind for Ada.
7619 * prj-nmsc.adb (Check_Unit_Name): New name of procedure Check_Ada_Name
7620 (Process_Compiler): Take into account the new attributes Dependency_Kind
7621 and Language_Kind.
7622 (Check_Configuration): Check if language kind is unit based, not if the
7623 language name is Ada.
7624 (Process_Exceptions_Unit_Based): Ditto
7625 (Add_Language): Remove default additions of language and dependency kind
7626 * prj.ads: Minor comment change
7627 * snames.ads-tmpl: New standard names Dependency_Kind and Language_Kind
7628
7629 2011-08-29 Johannes Kanig <kanig@adacore.com>
7630
7631 * debug.adb: Update comments.
7632
7633 2011-08-24 Joseph Myers <joseph@codesourcery.com>
7634
7635 * gcc-interface/Make-lang.in (CFLAGS-ada/tracebak.o)
7636 (CFLAGS-ada/targext.o, CFLAGS-ada/cio.o, CFLAGS-ada/init.o)
7637 (CFLAGS-ada/initialize.o, CFLAGS-ada/raise.o): New.
7638 (ada/tracebak.o, ada/targext.o, ada/cio.o, ada/init.o)
7639 (ada/initialize.o, ada/raise.o): Remove explicit compilation rules.
7640
7641 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7642
7643 * gcc-interface/Makefile.in (PICFLAG_FOR_TARGET): New.
7644 (GNATLIBCFLAGS_FOR_C): Replace
7645 TARGET_LIBGCC2_CFLAGS by PICFLAG_FOR_TARGET.
7646 (gnatlib-shared-default, gnatlib-shared-dual-win32)
7647 (gnatlib-shared-win32, gnatlib-shared-darwin, gnatlib-shared)
7648 (gnatlib-sjlj, gnatlib-zcx): Likewise.
7649
7650 2011-08-07 Eric Botcazou <ebotcazou@adacore.com>
7651
7652 * gcc-interface/Makefile.in (raise-gcc.o): Fix previous change.
7653
7654 * gcc-interface/gigi.h (enumerate_modes): Fix formatting.
7655
7656 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Revert latest change.
7657
7658 2011-08-05 Nicolas Roche <roche@adacore.com>
7659
7660 * gcc-interface/Makefile.in: Don't use directly ../xgcc to build shared
7661 libgnat. Use rather the value of GCC_FOR_TARGET. Fix issue with
7662 canadian cross.
7663 * gcc-interface/Make-lang.in: Add support for canadian cross setting.
7664
7665 2011-08-05 Matthew Heaney <heaney@adacore.com>
7666
7667 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Child_Count, Child_Depth):
7668 subprogram bodies declared out-of-order.
7669
7670 2011-08-05 Yannick Moy <moy@adacore.com>
7671
7672 * sem_util.adb (Unique_Name): only prefix with "standard" the names of
7673 entities directly in package Standard, otherwise skip the standard
7674 prefix.
7675
7676 2011-08-05 Robert Dewar <dewar@adacore.com>
7677
7678 * a-cbmutr.adb: Minor reformatting
7679 (Allocate_Node): refactor node allocation algorithm
7680
7681 2011-08-05 Robert Dewar <dewar@adacore.com>
7682
7683 * opt.ads, opt.adb (Debug_Pragmas_Disabled): New switch.
7684 * sem_prag.adb (Analyze_Pragma, case Debug_Policy): Implement Disable
7685 mode.
7686 (Analyze_Pragma, case Check_Policy): Ditto.
7687 * sem_prag.ads (Check_Disabled): New function
7688 * snames.ads-tmpl: Add Name_Disable.
7689
7690 2011-08-05 Robert Dewar <dewar@adacore.com>
7691
7692 * gnat_rm.texi: Document implementation-defined policy DISABLE for
7693 pragmas Assertion_Policy, Check_Policy, Debug_Policy.
7694
7695 2011-08-05 Ed Schonberg <schonberg@adacore.com>
7696
7697 * sem_prag.adb (Analyze_Pragma, case Inline): reject an Inline pragma
7698 that appears in a generic formal part and applies to a formal
7699 subprogram.
7700
7701 2011-08-05 Robert Dewar <dewar@adacore.com>
7702
7703 * a-cbmutr.ads: Minor reformatting.
7704
7705 2011-08-05 Matthew Heaney <heaney@adacore.com>
7706
7707 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Read): do not use T'Valid
7708 to check count, check sign of value instead.
7709 * a-comutr.adb, a-cimutr.adb (Write): return immediately if tree empty
7710 (Copy_Subtree): allocate copy of source element
7711 (Equal_Subtree): compare elements, not access objects
7712
7713 2011-08-05 Vincent Celier <celier@adacore.com>
7714
7715 * gnat_ugn.texi: Fix VMS alternative.
7716
7717 2011-08-05 Thomas Quinot <quinot@adacore.com>
7718
7719 * sem_ch11.adb: Add comment.
7720
7721 2011-08-05 Robert Dewar <dewar@adacore.com>
7722
7723 * exp_util.adb: Minor comment fix.
7724
7725 2011-08-05 Robert Dewar <dewar@adacore.com>
7726
7727 * scng.adb (Error_Unterminated_String): Improve flag position when
7728 comma present.
7729
7730 2011-08-05 Matthew Heaney <heaney@adacore.com>
7731
7732 * Makefile.rtl, impunit.adb: Added a-cbmutr.ad[sb] (bounded multiway
7733 tree containers).
7734 * a-cbmutr.ads, a-cbmutr.adb: This is the new Ada 2012 unit for bounded
7735 multiway tree containers.
7736
7737 2011-08-05 Robert Dewar <dewar@adacore.com>
7738
7739 * styleg.adb (Check_Comment): Implement comment spacing of 1 or 2
7740 * stylesw.adb: Implement -gnatyC to control comment spacing
7741 * stylesw.ads (Style_Check_Comments_Spacing): New switch (set by
7742 -gnatyc/C).
7743 * usage.adb: Add line for -gnatyC.
7744
7745 2011-08-05 Robert Dewar <dewar@adacore.com>
7746
7747 * gnat_ugn.texi: Document -gnatyC.
7748 * vms_data.ads: Implement COMMENTS1/COMMENTS2 (retaining COMMENTS as a
7749 synonym for COMMENTS2).
7750
7751 2011-08-05 Robert Dewar <dewar@adacore.com>
7752
7753 * par_sco.adb, sem_ch3.adb, scos.ads, a-iteint.ads, sem_ch12.adb,
7754 a-cimutr.adb, a-cimutr.ads, sem_util.ads, sem_res.adb, a-fihema.adb,
7755 sem_ch4.adb, lib-xref-alfa.adb, exp_disp.adb, a-comutr.adb,
7756 a-comutr.ads, lib-xref.adb: Minor reformatting.
7757
7758 2011-08-05 Robert Dewar <dewar@adacore.com>
7759
7760 * sem_ch11.adb (Analyze_Raise_Statement): Kill assignment to formal
7761 warning if there is an exception handler present.
7762
7763 2011-08-05 Pascal Obry <obry@adacore.com>
7764
7765 * a-iteint.ads: Fix copyright year.
7766
7767 2011-08-05 Thomas Quinot <quinot@adacore.com>
7768
7769 * par_sco.adb (Traverse_Declarations_Or_Statements): Do not generate a
7770 statement SCO for a USE clause or a representation clause.
7771
7772 2011-08-05 Yannick Moy <moy@adacore.com>
7773
7774 * lib-xref-alfa.adb (Collect_ALFA): generate the proper relation
7775 between body and spec for stub.
7776 (Detect_And_Add_ALFA_Scope): take into account subprogram stub
7777 * lib-xref.adb (Enclosing_Subprogram_Or_Package): in the case of a
7778 pragma precondition or postcondition, for which the enclosing
7779 subprogram or package in the AST is not the desired one, return empty.
7780
7781 2011-08-05 Thomas Quinot <quinot@adacore.com>
7782
7783 * g-expect.adb: Minor reformatting.
7784
7785 2011-08-05 Bob Duff <duff@adacore.com>
7786
7787 * a-fihema.adb: Comment out OS_Lib.
7788
7789 2011-08-05 Matthew Heaney <heaney@adacore.com>
7790
7791 * Makefile.rtl, impunit.adb: Added a-c[oi]mutr.ad[sb]
7792 (unbounded multiway tree containers) and a-iteint.ads.
7793 * a-comutr.ads, a-comutr.adb:
7794 This is the new Ada 2012 unit for unbounded multiway tree containers
7795 * a-cimutr.ads, a-cimutr.adb
7796 This is the new Ada 2012 unit for indefinite multiway tree containers
7797 * a-iteint.ads: New file.
7798
7799 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7800
7801 * gcc-interface/Makefile.in (raise-gcc.o): Search $(srcdir)/../libgcc.
7802
7803 2011-08-05 Bob Duff <duff@adacore.com>
7804
7805 * sinfo.ads, sinfo.adb (Subpool_Handle_Name): New attribute for
7806 subpools.
7807 * par-ch4.adb (P_Allocator): Parse new subpool specification syntax.
7808
7809 2011-08-05 Ed Schonberg <schonberg@adacore.com>
7810
7811 * sem_ch4.adb (Try_Container_Indexing): New procedure to implement the
7812 general indexing aspects of Ada2012. Called when analyzing indexed
7813 components when other interpretations fail.
7814 * sem_ch8.adb (Find_Direct_Name): check for implicit dereference only
7815 in an expression context where overloading is meaningful. This excludes
7816 the occurrence in an aspect specification (efficiency only).
7817 * sem_attr.adb (Analyze_Attribute): indicate that the attributes
7818 related to iterators can be set by an attribute specification, but
7819 cannot be queried.
7820 * sem_ch13.adb (Analyze_Aspect_Specifications): handle
7821 Constant_Indexing and Variable_Indexing.
7822 (Check_Indexing_Functions): New procedure to perform legality checks.
7823 Additional semantic checks at end of declarations.
7824
7825 2011-08-05 Sergey Rybin <rybin@adacore.com>
7826
7827 * tree_io.ads: Update ASIS_Version_Number because of the change of the
7828 order of calling Tree_Write/Tree_Read routines made for aspects.
7829
7830 2011-08-05 Bob Duff <duff@adacore.com>
7831
7832 * a-fihema.adb (Finalize): Fix race condition.
7833
7834 2011-08-05 Yannick Moy <moy@adacore.com>
7835
7836 * sem_ch12.adb (Analyze_Package_Instantiation,
7837 Need_Subprogram_Instance_Body): do not generate instance bodies in ALFA
7838 mode.
7839
7840 2011-08-05 Ed Schonberg <schonberg@adacore.com>
7841
7842 * sem_type.adb (Specific_Type): in an instance, the type-specific
7843 operand of an equality check that involves null may have a private
7844 type. Use full view to determine legality of construct.
7845
7846 2011-08-05 Vincent Celier <celier@adacore.com>
7847
7848 * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to
7849 delete or close the file when the call to gnatmake was successful.
7850
7851 2011-08-05 Yannick Moy <moy@adacore.com>
7852
7853 * gnat1drv.adb (Adjust_Global_Switches): in ALFA mode, set
7854 Global_Discard_Names.
7855
7856 2011-08-05 Ed Schonberg <schonberg@adacore.com>
7857
7858 * sinfo.ads: comments on use of entity field for aspect specifications.
7859
7860 2011-08-05 Ed Schonberg <schonberg@adacore.com>
7861
7862 * sem_ch12.adb (Reset_Entity): If the entity field of the associated
7863 node is not itself an entity but a selected component, it is a
7864 rewritten parameterless call to an en enclosing synchronized operation,
7865 and this expansion will be performed again in the instance, so there is
7866 no global information to preserve.
7867
7868 2011-08-05 Javier Miranda <miranda@adacore.com>
7869
7870 * exp_disp.adb (Set_All_DT_Position): Cleanup code and improve support
7871 for renamings of predefined primitives.
7872 (In_Predef_Prims_DT): New subprogram.
7873
7874 2011-08-05 Ed Schonberg <schonberg@adacore.com>
7875
7876 * sem_util.adb, sem_util.ads (Check_Implicit_Dereference): If a
7877 possible interpretation of name is a reference type, add an
7878 interpretation that is the designated type of the reference
7879 discriminant of that type.
7880 * sem_res.adb (resolve): If the interpretation imposed by context is an
7881 implicit dereference, rewrite the node as the deference of the
7882 reference discriminant.
7883 * sem_ch3.adb (Analyze_Subtype_Declaration, Build_Derived_Record_Type,
7884 Build_Discriminated_Subtype): Inherit Has_Implicit_Dereference from
7885 parent type or base type.
7886 * sem_ch4.adb (Process_Indexed_Component,
7887 Process_Overloaded_Indexed_Component, Indicate_Name_And_Type,
7888 Analyze_Overloaded_Selected_Component, Analyze_Selected_Component):
7889 Check for implicit dereference.
7890 (List_Operand_Interps): Indicate when an implicit dereference is
7891 ambiguous.
7892 * sem_ch8.adb (Find_Direct_Name): Check for implicit dereference.
7893
7894 2011-08-05 Thomas Quinot <quinot@adacore.com>
7895
7896 * scos.ads: Update documentation of SCO table. Pragma statements can now
7897 be marked as disabled (using 'p' instead of 'P' as the statement kind).
7898 * par_sco.ads, par_sco.adb: Implement the above change.
7899 (Process_Decisions_Defer): Generate a P decision for the first parameter
7900 of a dyadic pragma Debug.
7901 * sem_prag.adb (Analyze_Pragma, case Debug): Mark pragma as enabled if
7902 necessary.
7903 * put_scos.adb: Code simplification based on above change.
7904
7905 2011-08-05 Robert Dewar <dewar@adacore.com>
7906
7907 * sem_ch3.adb, gnatcmd.adb, switch-c.adb, exp_attr.adb, make.adb,
7908 bindgen.adb, einfo.adb, sem_ch12.adb, sem_attr.adb, a-fihema.adb,
7909 a-fihema.ads, sem_elab.adb, sem_elab.ads, aspects.adb, opt.ads,
7910 prj-conf.adb, sem_ch13.adb, s-ficobl.ads: Minor reformatting
7911
7912 2011-08-05 Bob Duff <duff@adacore.com>
7913
7914 * a-stunau.ads, g-spipat.adb: Update comments.
7915
7916 2011-08-05 Bob Duff <duff@adacore.com>
7917
7918 * a-fihema.ads: Minor comment fix.
7919 * a-fihema.adb (Allocate, Deallocate): Assert that the alignment is
7920 correct.
7921 (Attach, Detach): Remove some unnecessary code.
7922 (Finalize): Remove Node_Ptr_To_Address, replace with a constant.
7923
7924 2011-08-05 Bob Duff <duff@adacore.com>
7925
7926 * a-fihema.ads, a-fihema.adb (Finalization_Collection): Avoid heap
7927 allocation for Objects component. This simplifies the code somewhat. It
7928 is also a little more efficient in the not-so-unusual case where there
7929 are no controlled objects allocated.
7930 Make Finalization_Started flag atomic.
7931 (Finalize): Avoid unnecessary detachment of items from the list.
7932 (pcol): Minor cleanup.
7933
7934 2011-08-05 Ed Schonberg <schonberg@adacore.com>
7935
7936 * sem_ch12.adb (Analyze_Formal_Package_Declaration): reject a formal
7937 package whose name is the same as that of the generic unit, or its
7938 ultimate prefix.
7939
7940 2011-08-05 Bob Duff <duff@adacore.com>
7941
7942 * a-fihema.adb, a-fihema.ads: Minor comment improvements.
7943 * sem_ch3.adb, exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb:
7944 Minor comment fixes.
7945
7946 2011-08-05 Arnaud Charlet <charlet@adacore.com>
7947
7948 * make.adb (Linking_Phase): No longer need to set source search path
7949 before calling gnatlink in CodePeer mode.
7950 * gnatlink.adb (Gnatlink): No longer pass -gnat83/95/05/12 switch to
7951 gcc in CodePeer mode, since the binder generated file no longer has a
7952 'with Main'.
7953 * switch.ads, switch.adb (Is_Language_Switch): Removed.
7954 * switch-c.adb: Update comment.
7955
7956 2011-08-05 Thomas Quinot <quinot@adacore.com>
7957
7958 * exp_strm.adb, bindgen.adb, s-ficobl.ads: Minor reformatting.
7959
7960 2011-08-05 Nicolas Roche <roche@adacore.com>
7961
7962 * gnat_ugn.texi: Fix minor syntax error issue.
7963
7964 2011-08-05 Vincent Celier <celier@adacore.com>
7965
7966 * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to
7967 delete or close the file when the call to gnatmake returns a non
7968 successful return code.
7969
7970 2011-08-05 Ed Schonberg <schonberg@adacore.com>
7971
7972 * exp_ch4.adb (Expand_N_Type_Conversion): When expanding a predicate
7973 check, indicate that the copy of the original node does not come from
7974 source, to prevent an infinite recursion of the expansion.
7975
7976 2011-08-05 Johannes Kanig <kanig@adacore.com>
7977
7978 * debug.adb: document switch -gnatd.G for gnat2why, which deactivates
7979 VC generation for subprogram bodies.
7980
7981 2011-08-05 Yannick Moy <moy@adacore.com>
7982
7983 * einfo.ads: Typo.
7984 * sem_ch3.adb (Signed_Integer_Type_Declaration): in ALFA mode, define
7985 the base type with the smallest allowed base type.
7986
7987 2011-08-05 Sergey Rybin <rybin@adacore.com>
7988
7989 * tree_gen.adb, tree_in.adb, aspects.adb: Fix tree read-write for
7990 aspects.
7991
7992 2011-08-05 Ed Schonberg <schonberg@adacore.com>
7993
7994 * sem_ch12.ads: minor comment updates.
7995
7996 2011-08-05 Ed Schonberg <schonberg@adacore.com>
7997
7998 * sem_ch12.adb (Analyze_Formal_Package_Declaration): in an
7999 instantiation and a formal package the compiler generates a package
8000 renaming declaration so that the generic name within the declaration
8001 is interpreted as a renaming of the instance. At the end of a formal
8002 package declaration, this renaming must become invisible.
8003
8004 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
8005
8006 * exp_ch7.adb (Is_Init_Call): Reimplemented to avoid character
8007 comparison and rely on concrete entities instead.
8008
8009 2011-08-05 Ed Schonberg <schonberg@adacore.com>
8010
8011 * einfo.ads, einfo.adb (Has_Implicit_Dereference): new flag on types
8012 and discriminants, to indicate that the type has an access discriminant
8013 that supports implicit dereference.
8014 * snames.ads-tmpl: Add names of aspects and attributes related to
8015 Ada2012 iterators: constant_indexing, default_iterator,
8016 iterator_element, implicit_dereference, variable_indexing.
8017 * aspects.ads, aspects.adb: entries for iterator-related aspects.
8018 * sem_ch13.adb (Analyze_aspect_specifications): dummy entries for
8019 iterator-related aspects.
8020 * sem_attr.adb, exp_attr.adb Dummy entries for iterator-related aspects.
8021
8022 2011-08-05 Sergey Rybin <rybin@adacore.com>
8023
8024 * gnat_ugn.texi, vms_data.ads: Extend the subsection about coupling
8025 metrics in gnatmetric to cover new kinds of coupling mentrics.
8026
8027 2011-08-05 Steve Baird <baird@adacore.com>
8028
8029 * bindgen.adb (Gen_CodePeer_Wrapper): Call Ada_Main_Program instead
8030 of calling the user-defined main subprogram.
8031 (Gen_Main): Declare Ada_Main_Program and (if CodePeer_Mode
8032 is set) Call_Main_Subprogram ahead of, as opposed to
8033 inside of, Main.
8034 (Gen_Output_File_Ada): Remove CodePeer_Mode-conditional
8035 generation of a "with" of the user-defined main subprogram.
8036 Remove CodePeer_Mode-conditional call to Gen_CodePeer_Wrapper
8037 (which is now called from Gen_Main instead).
8038
8039 2011-08-05 Emmanuel Briot <briot@adacore.com>
8040
8041 * projects.texi: Added reference to the Makefile package.
8042
8043 2011-08-05 Thomas Quinot <quinot@adacore.com>
8044
8045 * exp_ch7.adb: Minor comment rewording.
8046
8047 2011-08-05 Ed Falis <falis@adacore.com>
8048
8049 * env.c: Fix comment.
8050
8051 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
8052
8053 * sem_elab.adb (Is_Finalization_Procedure): Reimplemented to avoid
8054 character comparison and rely on concrete entities instead.
8055
8056 2011-08-05 Ed Schonberg <schonberg@adacore.com>
8057
8058 * sem_ch3.adb: (Check_Private_Overriding): better error message,
8059 suggested by AI95-0068.
8060
8061 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
8062
8063 * exp_ch7.adb (Find_Last_Init): Use Next_Suitable_Statement to retrieve
8064 the two potential initialization calls. This accounts for any
8065 access-before-elaboration checks which may precede the initialization
8066 calls.
8067 (Next_Suitable_Statement): New routine. Returns the next real statement
8068 after the input node while skipping generated checks.
8069 * sem_elab.adb (Check_A_Call): New formal parameter In_Init_Proc along
8070 with comment on usage.
8071 Do not generate Elaborate_All when the trigger is a finalization call
8072 coming from a type init proc.
8073 (Check_Elab_Call): Propagate the initialization procedure context to
8074 subsequent calls to Check_A_Call.
8075 (Check_Internal_Call_Continue): Propagate the initialization procedure
8076 context to subsequent calls to Check_Elab_Call.
8077 (Is_Finalization_Procedure): New routine. Returns True if the input
8078 entity denotes a [Deep_]Finalize routine.
8079 * sem_elab.ads (Check_Elab_Call): New formal parameter In_Init_Proc
8080 along with comment on usage.
8081
8082 2011-08-05 Vadim Godunko <godunko@adacore.com>
8083
8084 * s-atocou.ads: Add list of supported platforms.
8085
8086 2011-08-05 Yannick Moy <moy@adacore.com>
8087
8088 * sem_prag.adb, restrict.adb: Correct style for or'ing Boolean variables
8089
8090 * opt.ads (Disable_ALI_File): new Boolean flag
8091 * lib-writ.adb (Write_ALI): when Disable_ALI_File is set, do nothing
8092
8093 2011-08-05 Ed Falis <falis@adacore.com>
8094
8095 * env.c (__gnat_environ): Fix includes for RTPs and VTHREADS so that
8096 environ is properly defined.
8097
8098 2011-08-05 Vincent Celier <celier@adacore.com>
8099
8100 * make.adb (Compilation_Phase): Exit immediately when all objects have
8101 been found up to date, to avoid multiple exit messages.
8102 * prj-nmsc.adb (Add_Source): Allow duplicate source file names in the
8103 same project for languages with no compiler.
8104 * gnat_ugn.texi: Document compiler switch -gnateI and gnatmake switch
8105 -eI.
8106 2011-08-05 Robert Dewar <dewar@adacore.com>
8107
8108 * exp_ch7.ads, sem_type.adb, make.adb, sem_prag.adb, sem_util.adb,
8109 sem_util.ads, sem_attr.adb, restrict.ads, sem_ch6.adb, prj-conf.adb,
8110 prj-conf.ads, s-atocou.ads, s-atocou.adb, s-atocou-x86.adb,
8111 s-atocou-builtin.adb: Minor reformatting.
8112
8113 2011-08-05 Yannick Moy <moy@adacore.com>
8114
8115 * exp_ch7.adb (Establish_Transient_Scope): in formal verification mode,
8116 if the node to wrap is a pragma check, this node and enclosed
8117 expression are not expanded, so do not apply any transformations here.
8118 * exp_prag.adb (Expand_Pragma_Check): document the need to avoid
8119 introducing transient scopes.
8120
8121 2011-08-05 Jose Ruiz <ruiz@adacore.com>
8122
8123 * adaint.c (__gnat_set_writable, __gnat_set_readable,
8124 __gnat_set_executable, __gnat_set_non_writable, __gnat_set_non_readable,
8125 __gnat_copy_attribs): On VxWorks 6.x and later, the required chmod
8126 routine is available, so we use the default implementation of these
8127 functions.
8128 * s-os_lib.ads (Copy_File, Copy_Time_Stamps): Document that there is
8129 support for copying attributes on VxWorks 6.
8130
8131 2011-08-05 Yannick Moy <moy@adacore.com>
8132
8133 * debug.adb: Remove use of -gnatd.D.
8134 * gnat1drv.adb (Adjust_Global_Switches): adjust switches for ALFA mode
8135 * opt.ads: Simplify variables for ALFA mode, to keep one only
8136 * restrict.adb, sem_prag.adb: Adapt treatment done for CodePeer mode
8137 to ALFA mode.
8138
8139 2011-08-05 Vincent Celier <celier@adacore.com>
8140
8141 * prj-conf.adb (Do_Autoconf): Look also for --RTS in
8142 Builder'Default_Switches.
8143
8144 2011-08-05 Vincent Celier <celier@adacore.com>
8145
8146 * makeusg.adb: Add lines for --create-map-file switches.
8147
8148 2011-08-05 Ed Schonberg <schonberg@adacore.com>
8149
8150 * freeze.adb (Freeze_Entity): For a subprogram, if a type in the
8151 profile is incomplete and the full view is available, replace it with
8152 the full view.
8153 * sem_ch6.adb (Possible_Freeze): if a type in the profile is
8154 incomplete, freezing the subprogram is delayed until the full view is
8155 frozen.
8156 * sem_type.adb (Disambiguate): an ambiguity between a user-defined
8157 fixed-point multiplication operator and the predefined operator is
8158 resolved in favor of the user-defined one.
8159
8160 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8161
8162 * init.c [__alpha__ && __osf__] (__gnat_error_handler): Use
8163 CONST_CAST.
8164
8165 2011-08-04 Ed Schonberg <schonberg@adacore.com>
8166
8167 * sem_util.ads, sem_unit.adb (Type_Without_Stream_Operation): determine
8168 whether a type lacks user-defined Read or Write operations, or has a
8169 component that lacks them.
8170 * sem_attr.adb (Check_Stream_Attribute): if restriction
8171 No_Default_Stream_Attributes is active, verify that all subcomponent
8172 types of the target have user-defined stream operations, and report
8173 error otherwise.
8174 * exp_ch3.adb (Stream_Operqtion_OK): use Type_Without_Stream_Operation.
8175 * exp_strm.adb: Build_Elementary_Input_Call,
8176 Build_Elementary_Write_Call): remove checks for restriction
8177 No_Default_Stream_Attributes, now checked in semantics.
8178
8179 2011-08-04 Vincent Celier <celier@adacore.com>
8180
8181 * prj-conf.ads, prj-conf.adb (Do_Autoconf): If there is no --RTS
8182 switches on the command line, look for all valid --RTS switches in the
8183 Builder switches and for each language use the first runtime name found
8184 to invoke gprconfig.
8185 (Get_Or_Create_Configuration_File): Warn if --RTS is specified on the
8186 command line and there is no auto-configuration.
8187 (Runtime_Name_Set_For): New function.
8188
8189 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8190
8191 * exp_ch7.adb (Build_Object_Declarations): Do not generate the
8192 elaborate initialization expression for variable Abort when processing
8193 a package body or a declaration.
8194 (Create_Finalizer): Propagate the package context when creating the
8195 exception-related variables.
8196 * exp_ch7.ads (Build_Object_Declarations): New formal parameter
8197 For_Package along with usage comment.
8198
8199 2011-08-04 Arnaud Charlet <charlet@adacore.com>
8200
8201 * gcc-interface/Makefile.in: Clean up targets.
8202 Enable new package for atomic counters and copy-on-write implementation
8203 of unbounded strings on x86 platforms.
8204 * gcc-interface/Make-lang.in: Update dependencies.
8205
8206 2011-08-04 Robert Dewar <dewar@adacore.com>
8207
8208 * exp_ch7.adb: Minor reformatting.
8209
8210 2011-08-04 Robert Dewar <dewar@adacore.com>
8211
8212 * exp_strm.adb: Minor reformatting.
8213
8214 2011-08-04 Vadim Godunko <godunko@adacore.com>
8215
8216 * s-atocou.adb: Replace by dummy version and use on targets where atomic
8217 operations are not supported.
8218 * s-atocou-builtin.adb: Renamed from s-atocou.adb.
8219 * s-atocou-x86.adb: New file.
8220 * Makefile.rtl: Add s-atocou.o file
8221
8222 2011-08-04 Arnaud Charlet <charlet@adacore.com>
8223
8224 * make.adb (Compile): Move setting of CodePeer_Mode to ...
8225 (Compilation_Phase): ... here.
8226 (Scan_Make_Arg): Now bind and link by default in CodePeer mode.
8227
8228 2011-08-04 Thomas Quinot <quinot@adacore.com>
8229
8230 * Make-generated.in: Fix minor typo in comment.
8231
8232 2011-08-04 Thomas Quinot <quinot@adacore.com>
8233
8234 * gnatls.adb: Use Prj.Env.Initialize_Default_Project_Path to retrieve
8235 the project path.
8236
8237 2011-08-04 Robert Dewar <dewar@adacore.com>
8238
8239 * a-coinho.adb: Minor reformatting.
8240
8241 2011-08-04 Robert Dewar <dewar@adacore.com>
8242
8243 * a-coinho.ads: Minor reformatting.
8244
8245 2011-08-04 Vadim Godunko <godunko@adacore.com>
8246
8247 * s-atocou.ads, s-atocou.adb: New files.
8248 * a-strunb-shared.ads, a-strunb-shared.adb, a-stwiun-shared.ads,
8249 a-stwiun-shared.adb, a-stzunb-shared.ads, a-stzunb-shared.adb: Remove
8250 direct use of GCC's atomic builtins and replace them by use of new
8251 atomic counter package.
8252
8253 2011-08-04 Ed Schonberg <schonberg@adacore.com>
8254
8255 * exp_strm.adb: better error message for No_Default_Stream_Attributes.
8256
8257 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8258
8259 * a-tags.adb (Unregister_Tag): Replace the complex address arithmetic
8260 with a call to Get_External_Tag.
8261 * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on
8262 subprogram usage. Remove the guard against package declarations and
8263 bodies since Build_Cleanup_Statements is no longer invoked in that
8264 context.
8265 (Build_Components): Initialize Tagged_Type_Stmts when the context
8266 contains at least one library-level tagged type.
8267 (Build_Finalizer): New local variables Has_Tagged_Types and
8268 Tagged_Type_Stmts along with associated comments on usage. Update the
8269 logic to include tagged type processing.
8270 (Create_Finalizer): Insert all library-level tagged type unregistration
8271 code before the jump block circuitry.
8272 (Expand_N_Package_Body): Remove the call to Build_Cleanup_Statements.
8273 (Expand_N_Package_Declaration): Remove the call to
8274 Build_Cleanup_Statements.
8275 (Process_Tagged_Type_Declaration): New routine. Generate a call to
8276 unregister the external tag of a tagged type.
8277 (Processing_Actions): Reimplemented to handle tagged types.
8278 (Process_Declarations): Detect the declaration of a library-level
8279 tagged type and carry out the appropriate actions.
8280 (Unregister_Tagged_Types): Removed. The machinery has been directly
8281 merged with Build_Finalizer.
8282
8283 2011-08-04 Robert Dewar <dewar@adacore.com>
8284
8285 * bindgen.ads, gnatlink.adb, sem_ch4.adb, gnatbind.adb, put_alfa.adb,
8286 gnatls.adb, exp_ch3.adb: Minor reformatting.
8287
8288 2011-08-04 Marc Sango <sango@adacore.com>
8289
8290 * sem_attr.adb (Analyze_Attribute): Replace the message
8291 "invisible attribute of}" of the spark restriction violation in
8292 attribute reference by the simple message "invisible attribute of type".
8293 Indeed, the node value Error_Msg_Node_1 used is in conflit with the
8294 two insertion characters: '&' and '}'.
8295
8296 2011-08-04 Vadim Godunko <godunko@adacore.com>
8297
8298 * impunit.adb (Non_Imp_File_Names_12): Add "a-coinho".
8299 * a-coinho.ads, a-coinho.adb: New file.
8300 * Makefile.rtl: Add Ada.Containers.Indefinite_Holders.
8301
8302 2011-08-04 Nicolas Roche <roche@adacore.com>
8303
8304 * alfa_test.adb: Not all ali files are containing alfa information even
8305 if compiled with -gnatd.F. So suppress warning about missing ALFA
8306 information.
8307
8308 2011-08-04 Yannick Moy <moy@adacore.com>
8309
8310 * lib-xref-alfa.adb (Add_ALFA_Scope): use non-empty unique name for
8311 scope.
8312 * put_alfa.adb: Check that scope name is not empty.
8313
8314 2011-08-04 Ed Schonberg <schonberg@adacore.com>
8315
8316 * exp_ch3.adb (Stream_Operation_Ok): new predicate
8317 Needs_Elementary_Stream_Operation, to determine whether user-defined
8318 Read and Write attributes are available for the elementary components
8319 of the given type. If only the predefined attributes are available,
8320 then when restriction No_Default_Stream_Attributes is active the
8321 predefined stream attributes for the composite type cannot be created.
8322
8323 2011-08-04 Robert Dewar <dewar@adacore.com>
8324
8325 * bindgen.adb: Fix obsolete comments and names from Ada/C days.
8326 Put routines in alpha order
8327
8328 2011-08-04 Jose Ruiz <ruiz@adacore.com>
8329
8330 * gcc-interface/Makefile.in: Remove xenomai specific versions of system.
8331 * gcc-interface/Make-lang.in: Update dependencies.
8332
8333 2011-08-04 Arnaud Charlet <charlet@adacore.com>
8334
8335 * gcc-interface/lang.opt: Add AdaWhy language, simimlar to Ada.
8336 * gcc-interface/lang-specs.h: Add handling of AdaWhy specs (calls
8337 gnat1why).
8338
8339 2011-08-04 Robert Dewar <dewar@adacore.com>
8340
8341 * sem_ch3.adb, make.adb, a-cohata.ads, sem_prag.adb, makeutl.adb,
8342 lib-xref-alfa.adb: Minor reformatting.
8343
8344 2011-08-04 Marc Sango <sango@adacore.com>
8345
8346 * sem_ch12.adb (Analyze_Generic_Package_Declaration,
8347 Analyze_Generic_Subprogram_Declaration, Analyze_Package_Instantiation,
8348 Analyze_Subprogram_Instantiation): Check absence of generic in SPARK
8349 mode.
8350
8351 2011-08-04 Tristan Gingold <gingold@adacore.com>
8352
8353 * bindgen.adb (Gen_Adainit_C): Remove.
8354 (Gen_Adafinal_C): Ditto.
8355 (Gen_Elab_Externals_C): Ditto.
8356 (Gen_Elab_Calls_C): Ditto.
8357 (Gen_Elab_Order_C): Ditto.
8358 (Gen_Elab_Defs_C): Ditto.
8359 (Gen_Finalize_Library_C): Ditto.
8360 (Gen_Finalize_Library_Defs_C): Ditto.
8361 (Gen_Main_C): Ditto.
8362 (Gen_Output_File_C): Ditto.
8363 (Gen_Restrictions_C): Ditto.
8364 (Gen_Versions_C): Ditto.
8365 (Write_Info_Ada_C): Ditto.
8366 (Gen_Object_Files_Options): Call WBI instead of Write_Info_Ada_C
8367 (Gen_Output_File): Do not force Ada_Bind_File anymore.
8368 Always call Gen_Output_File_Ada.
8369 * gnatlink.adb (Begin_Info): Now a constant.
8370 (End_Info): Ditto.
8371 (Ada_Bind_File): Remove
8372 (Process_Args): Do not handle -A/-C. Remove not Ada_Bind_File cases.
8373 * switch-b.adb (Scan_Binder_Switches): Do not handle -C.
8374 * gnatbind.adb (Gnatbind): Remove not Ada_Bind_File cases.
8375 * opt.ads (Ada_Bind_File): Remove.
8376
8377 2011-08-04 Thomas Quinot <quinot@adacore.com>
8378
8379 * projects.texi: Document target-specific directory in default project
8380 path for gnatmake.
8381
8382 2011-08-04 Thomas Quinot <quinot@adacore.com>
8383
8384 * gnatls.adb, prj-env.adb: Add $prefix/share/gpr to default project
8385 path in all cases .
8386
8387 2011-08-04 Yannick Moy <moy@adacore.com>
8388
8389 * sem_ch3.adb, sem_ch5.adb, sem_util.adb, sem_ch4.adb, sem_ch8.adb,
8390 opt.ads, lib-xref.ads: Code clean up.
8391
8392 2011-08-04 Yannick Moy <moy@adacore.com>
8393
8394 * gnat_rm.texi: Update description of Test_Case
8395 * gnat_ugn.texi: Typo.
8396
8397 2011-08-04 Ed Falis <falis@adacore.com>
8398
8399 * adaint.c (__gnat_get_number_of_cpus): fix typo in last checkin.
8400
8401 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8402
8403 * exp_ch4.adb (Suitable_Element): Skip field _parent on .NET/JVM when
8404 it is of type Root_Controlled. This action eliminates fields Prev and
8405 Next from type equality.
8406
8407 2011-08-04 Yannick Moy <moy@adacore.com>
8408
8409 * lib-xref-alfa.adb: Correct typo.
8410
8411 2011-08-04 Matthew Heaney <heaney@adacore.com>
8412
8413 * a-cohata.ads (Hash_Table_Type): default-initialize the Nodes
8414 component.
8415
8416 2011-08-04 Yannick Moy <moy@adacore.com>
8417
8418 * sem_prag.adb (Check_Arg_Is_String_Literal): remove useless procedure
8419 (Analyze_Pragma): allow static string expression for name of Test_Case,
8420 instead of simply string literals.
8421 * sem_util.adb (Get_Name_From_Test_Case_Pragma): adapt to static string
8422 expressions.
8423
8424 2011-08-04 Vincent Celier <celier@adacore.com>
8425
8426 * makeutl.adb (Complete_Mains.Find_File_Add_Extension): Use canonical
8427 case suffixes to find truncated main sources.
8428
8429 2011-08-04 Tristan Gingold <gingold@adacore.com>
8430
8431 * impunit.adb (Non_Imp_File_Names_95): Add g-tastus.
8432 s-stusta.adb (Compute_All_Task): Use Put_Line instead of Put.
8433 (Compute_Current_Task): Ditto.
8434
8435 2011-08-04 Tristan Gingold <gingold@adacore.com>
8436
8437 * gnat_ugn.texi: Mention GNAT.Task_Stack_Usage.
8438
8439 2011-08-04 Yannick Moy <moy@adacore.com>
8440
8441 * lib-xref-alfa.adb (Is_Global_Constant): new function that detects
8442 library-level constant.
8443 (Add_ALFA_Xrefs): ignore global constants in ALFA xref.
8444 * sem_res.adb (Resolve_Actuals): do not add cross-reference to Formal
8445 used as selector of parameter association, in ALFA mode.
8446
8447 2011-08-04 Robert Dewar <dewar@adacore.com>
8448
8449 * exp_ch5.adb, exp_ch7.adb, exp_util.adb, bindgen.adb, sem_prag.adb,
8450 s-tassta.adb, exp_ch4.adb, exp_disp.adb, s-stausa.adb: Minor
8451 reformatting.
8452
8453 2011-08-04 Arnaud Charlet <charlet@adacore.com>
8454
8455 * make.adb (Linking_Phase): Set source search path before calling
8456 gnatlink in CodePeer mode.
8457
8458 2011-08-04 Javier Miranda <miranda@adacore.com>
8459
8460 * exp_ch7.adb (Expand_N_Package_Body, Expand_N_Package_Declaration):
8461 Remove code which takes care of building TSDs.
8462 * rtsfind.ads (RE_Check_Interface_Conversion): New entity.
8463 * exp_ch4.adb (Apply_Accessibility_Check): Add support for generating
8464 the accessibility check in VM targets.
8465 * exp_disp.adb (Make_VM_TSD): Spec moved to exp_disp.ads
8466 (Building_Static_DT): Now returns false for VM targets.
8467 (Build_VM_TSDs): Removed.
8468 (Expand_Interface_Conversion): Generate missing runtime check for
8469 conversions to interface types whose target type is unknown at compile
8470 time.
8471 (Make_VM_TSD): Add missing code to disable the generation of calls to
8472 Check_TSD if the tagged type is not defined at library level, or not
8473 has a representation clause specifying its external tag, or -gnatdQ is
8474 active.
8475 * exp_disp.ads (Build_VM_TSDs): Removed.
8476 (Make_VM_TSDs): Spec relocated from exp_disp.adb
8477 * sem_disp.adb (Check_Dispatching_Operation): No code required to
8478 register primitives in the dispatch tables in VM targets.
8479 * exp_ch3.adb (Expand_N_Object_Declaration): Remove wrong expansion of
8480 initialization of class-wide interface objects in VM targets.
8481 (Expand_Freeze_Record_Type): For VM targets call Make_VM_TSD (instead
8482 of Make_DT).
8483
8484 2011-08-04 Jerome Lambourg <lambourg@adacore.com>
8485
8486 * gnatlink.adb (Gnatlink): Correct missleading error message displayed
8487 when dotnet-ld cannot be found.
8488
8489 2011-08-04 Arnaud Charlet <charlet@adacore.com>
8490
8491 * bindgen.adb: Simplify significantly generation of binder body file in
8492 CodePeer mode.
8493 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Prevent assert failure
8494 when compiling binder generated file in CodePeer mode (xxx'Elab_Spec
8495 not expanded).
8496
8497 2011-08-04 Yannick Moy <moy@adacore.com>
8498
8499 * sem_prag.adb, sem.ads: Code cleanup.
8500
8501 2011-08-04 Tristan Gingold <gingold@adacore.com>
8502
8503 * s-tassta.adb (Task_Wrapper): Rewrite the dynamic stack usage part.
8504 * s-stausa.adb, s-stausa.ads: Major rewrite. Now provides accurate
8505 results if possible.
8506 * s-stusta.adb (Print): Adjust after changes in s-stausa.
8507 * gnat_ugn.texi: Update dynamic stack usage section.
8508
8509 2011-08-04 Steve Baird <baird@adacore.com>
8510
8511 * bindgen.adb (Gen_CodePeer_Wrapper): new procedure.
8512 Generate (if CodePeer_Mode is set) a "wrapper" subprogram which
8513 contains only a call to the user-defined main subprogram.
8514 (Gen_Main_Ada) - If CodePeer_Mode is set, then
8515 call the "wrapper" subprogram instead of directly
8516 calling the user-defined main subprogram.
8517
8518 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8519
8520 * exp_ch5.adb (Expand_N_Case_Statement): Check the statements of all
8521 alternatives of a case statement for controlled objects. Rename local
8522 variable A to Dead_Alt.
8523 (Expand_N_If_Statement): Check the then and else statements of an if
8524 statement for controlled objects. Check the then statements of all
8525 elsif parts of an if statement for controlled objects.
8526 (Expand_N_Loop_Statement): Check the statements of a loop for controlled
8527 objects.
8528 * exp_ch7.adb (Process_Transient_Objects): Rewrite the condition which
8529 detects a loop associated with the expansion of an array object.
8530 Augment the processing of the loop statements to account for a possible
8531 wrap done by Process_Statements_For_Controlled_Objects.
8532 * exp_ch9.adb (Expand_N_Asynchronous_Select): Check the triggering
8533 statements and abortable part of an asynchronous select for controlled
8534 objects.
8535 (Expand_N_Conditional_Entry_Call): Check the else statements of a
8536 conditional entry call for controlled objects.
8537 (Expand_N_Selective_Accept): Check the alternatives of a selective
8538 accept for controlled objects.
8539 (Expand_N_Timed_Entry_Call): Check the entry call and delay
8540 alternatives of a timed entry call for controlled objects.
8541 * exp_ch11.adb (Expand_Exception_Handlers): Check the statements of an
8542 exception handler for controlled objects.
8543 * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)):
8544 Add formal parameter Nested_Constructs along with its associated
8545 comment.
8546 (Requires_Cleanup_Actions (Node_Id)): Update all calls to
8547 Requires_Cleanup_Actions.
8548 (Process_Statements_For_Controlled_Objects): New routine.
8549 * exp_util.ads (Process_Statements_For_Controlled_Objects): New
8550 routine. Inspect a node which contains a non-handled sequence of
8551 statements for controlled objects. If such an object is found, the
8552 statements are wrapped in a block.
8553
8554 2011-08-04 Bob Duff <duff@adacore.com>
8555
8556 * sem_type.adb (Covers): If T2 is a subtype of a class-wide type, we
8557 need to compare with Class_Wide_Type (T2), in order to get at the
8558 original class-wide type node.
8559 * sem_type.ads (Covers): Improve the comment.
8560 * einfo.ads (Class_Wide_Type): Improve the comment.
8561 * exp_intr.adb (Expand_Unc_Deallocation): Remove unnecessary setting of
8562 the type of the Deref.
8563
8564 2011-08-04 Yannick Moy <moy@adacore.com>
8565
8566 * gnat_rm.texi: Document that Test_Case pragma can only appear on
8567 separate declarations.
8568 * sem_prag.adb (procedure Check_Identifier_Is_One_Of): new procedure to
8569 check identifier of pragma argument.
8570 (Chain_TC): check that no other test case associated to the same entity
8571 share the same name.
8572 (Check_Test_Case): disallow test case inside subprogram body
8573 (Analyze_Pragma): correct call to check identifier and not argument
8574 * sem_util.adb, sem_util.ads (Get_Name_From_Test_Case_Pragma): new
8575 function gets name from test case pragma.
8576
8577 2011-08-04 Yannick Moy <moy@adacore.com>
8578
8579 * gnat_rm.texi: Document new pragma and aspect.
8580 * aspects.adb, aspects.ads (Aspect_Id): new value Aspect_Test_Case
8581 (No_Duplicates_Allowed): new constant array defining whether duplicates
8582 aspects of each kind can appear on the same declaration.
8583 * einfo.adb, einfo.ads (Spec_PPC_List): replace field with Contract
8584 field, which points to a node holding the previous Spec_PPC_List.
8585 * exp_ch9.adb, sem_ch6.adb, sem_prag.adb: Reach to Spec_PPC_List
8586 through the indirection with Contract.
8587 * exp_util.adb (Insert_Actions): raise Program_Error on N_Contract node
8588 * par-prag.adb (Prag): do nothing on Test_Case pragma
8589 * sem.adb (Analyze): abort on N_Contract, on which Analyze should not
8590 be called directly.
8591 * sem_attr.adb (Analyze_Attribute): allow attribute 'Result in
8592 component Ensures of Test_Case.
8593 * sem_ch12.adb, sem_ch6.adb, sem_ch9.adb
8594 (Analyze_Generic_Subprogram_Declaration,
8595 Analyze_Subprogram_Instantiation,
8596 Analyze_Abstract_Subprogram_Declaration,
8597 Analyze_Subprogram_Body_Helper,
8598 Analyze_Subprogram_Specification, Analyze_Entry_Declaration):
8599 insert contract in subprogram node at point of definition
8600 * sem_ch13.adb
8601 (Aspect_Loop): do not raise error on duplicate Test_Case aspect
8602 (Analyze_Aspect_Specifications): analyze Test_Case aspect and create
8603 corresponding pragma
8604 (Check_Aspect_At_Freeze_Point): raise Program_Error on Test_Case aspect
8605 * sem_ch3.adb (Analyze_Declarations): insert analysis of test-cases,
8606 similar to the analysis of pre/post
8607 (Derive_Subprogram): insert contract in subprogram node at point of
8608 derivation.
8609 * sem_prag.adb, sem_prag.ads
8610 (Check_Arg_Is_String_Literal, Check_Identifier):
8611 new checking procedures to be called in treatment of pragmas
8612 (Check_Test_Case): new procedure to check that a Test_Case aspect or
8613 pragma is well-formed. This does not check currently that 'Result is
8614 used only in the Ensures component of a Test_Case.
8615 (Analyze_Pragma): add case for Test_Case
8616 (Analyze_TC_In_Decl_Part): pre-analyze the Requires and Ensures
8617 components of a Test_Case.
8618 (Preanalyze_TC_Args): new procedure to preanalyze the boolean
8619 expressions in the 3rd (and 4th if present) arguments of a Test_Case
8620 pragma, treated as spec expressions.
8621 (Sig_Flags): add value -1 for Test_Case.
8622 * sem_util.adb, sem_util.ads (Get_Ensures_From_Test_Case_Pragma,
8623 Get_Requires_From_Test_Case_Pragma): getters for both expression
8624 components of a Test_Case.
8625 * sinfo.adb, sinfo.ads (N_Contract): new kind of node used as
8626 indirection between an entry or [generic] subprogram entity and its
8627 pre/post + test-cases.
8628 (Spec_PPC_List, Spec_TC_List, Set_Spec_PPC_List, Set_Spec_TC_List):
8629 get/set for fields of an N_Contract node.
8630 * snames.ads-tmpl (Name_Test_Case, Name_Ensures, Name_Mode,
8631 Name_Normal, Name_Requires, Name_Robustness, Pragma_Test_Case): new
8632 names and pragma for Test_Case.
8633 * sprint.adb (Sprint_Node): raise Program_Error on N_Contract node
8634
8635 2011-08-04 Vincent Celier <celier@adacore.com>
8636
8637 * gnat_ugn.texi: Improve documentation of gnatmake switch
8638 --source-info-file=.
8639
8640 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8641
8642 * exp_ch7.adb (Make_Final_Call): Add local variable Atyp (assertion
8643 type). Initialize Atyp to the appropriate type which is later checked
8644 for completion. Rewrite the assertion associated with private type
8645 completion.
8646
8647 2011-08-04 Ed Falis <falis@adacore.com>
8648
8649 * adaint.c: Add call to vxCpuConfiguredGet for VxWorks SMP to
8650 initialize the number of CPUs.
8651
8652 2011-08-04 Ed Schonberg <schonberg@adacore.com>
8653
8654 * sem_type.adb (Disambiguate): New subsidiary routine
8655 In_Same_Declaration_List, to implement AI05-0020: a user-defined
8656 equality on an anonymous access type whose designated type is private
8657 does not lead to an ambiguity with the universal access equality
8658 operator in the body or child units of the defining package. The same
8659 is true for a multiplication operator on a private type completed with
8660 a fixed-point-type.
8661
8662 2011-08-04 Javier Miranda <miranda@adacore.com>
8663
8664 * opt.ads (Init_Or_Norm_Scalars_Config): Removed.
8665 (Normalize_Scalars_Config): Removed.
8666 * opt.adb
8667 (Register_Opt_Config_Switches): Remove registering config values of
8668 Init_Or_Norm_Scalars_Config and Normalize_Scalars_Config.
8669 (Restore_Opt_Config_Switches): Remove code which restores the values of
8670 Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of
8671 Init_Or_Norm_Scalars.
8672 (Save_Opt_Config_Switches): Remove code which saves values of
8673 Init_Or_Norm_Scalars and Normalize_Scalars.
8674 (Set_Opt_Config_Switches): Remove code which restores config values of
8675 Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of
8676 Init_Or_Norm_Scalars.
8677
8678 2011-08-04 Yannick Moy <moy@adacore.com>
8679
8680 * frontend.adb (Frontend): remove previous patch to avoid full
8681 qualification in ALFA mode.
8682 * lib-xref-alfa.adb (Add_ALFA_Xrefs): use unique name for variables.
8683 * sem_util.adb, sem_util.ads (Unique_Name): new function to define a
8684 unique name for an entity, which could be used to identify the entity
8685 across compilation units.
8686
8687 2011-08-04 Thomas Quinot <quinot@adacore.com>
8688
8689 * prj-env.adb
8690 (Initialize_Default_Project_Path): Add target specific directory
8691 ($prefix/$target/lib/gnat) in front of project path in all cases
8692 (making gnatmake's behaviour consistent with gprbuild).
8693 * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb:
8694 Pass target name from Sdefault to project subsystem.
8695 * gnatls.adb: Show new target specific default project directory.
8696
8697 2011-08-04 Johannes Kanig <kanig@adacore.com>
8698
8699 * cstand.adb: Add Information to Identifier in Standard
8700 (Identifer_For): Set Entity to the corresponding entity
8701
8702 2011-08-04 Sergey Rybin <rybin@adacore.com>
8703
8704 * gnat_ugn.texi: Update doc on gnatcheck.
8705
8706 2011-08-04 Yannick Moy <moy@adacore.com>
8707
8708 * lib-xref-alfa.adb (Add_ALFA_Xrefs): correct definition of ranges of
8709 xrefs in a scope.
8710
8711 2011-08-04 Yannick Moy <moy@adacore.com>
8712
8713 * exp_prag.adb (Expand_Pragma_Check): in ALFA mode, return without
8714 performing expansion.
8715 * sem_ch6.adb (Analyze_Subprogram_Body_Helper,
8716 Analyze_Generic_Subprogram_Body): protect call to Process_PCCs so that
8717 it is not called in ALFA mode.
8718
8719 2011-08-04 Emmanuel Briot <briot@adacore.com>
8720
8721 * make.adb, osint.adb, osint.ads (Reset_Command_Line_Files): not used
8722 after all, so removed.
8723
8724 2011-08-04 Sergey Rybin <rybin@adacore.com>
8725
8726 * vms_data.ads: Add missing VMS qualifiers.
8727
8728 2011-08-04 Emmanuel Briot <briot@adacore.com>
8729
8730 * make.adb, makeutl.adb, osint.adb, osint.ads (Check_Mains): rebuild
8731 the list of files on the command line after processing it through
8732 Complete_Mains.
8733
8734 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8735
8736 * exp_ch7.adb (Build_Raise_Statement): Remove the specialized
8737 processing for .NET/JVM. These targets can now benefit from
8738 Raise_From_Controlled_Operation and they share the same processing with
8739 standard targets.
8740 (Establish_Transient_Scope): Remove the restriction for .NET/JVM.
8741 These targets need transient scopes in order to properly finalize short
8742 lived controlled objects.
8743 (Make_Handler_For_Ctrl_Operation): Remove the specialized processing for
8744 NET/JVM. These targets can now benefit from
8745 Raise_From_Controlled_Operation and they share the same processing with
8746 standard targets.
8747
8748 2011-08-04 Geert Bosch <bosch@adacore.com>
8749
8750 * tracebak.c (STOP_FRAME): Stop at any next pointer outside the stack
8751
8752 2011-08-04 Ed Schonberg <schonberg@adacore.com>
8753
8754 * exp_aggr.adb (Has_Visible_Private_Ancestor): subsidiary routine to
8755 Expand_Record_Aggregate, to determine whether aggregate must be
8756 expanded into assignments. This is the case if the ancestor part is
8757 private, regarless of the setting of the flag Has_Private_Ancestor.
8758
8759 2011-08-04 Ed Falis <falis@adacore.com>
8760
8761 * vxaddr2line.adb: Add support for e500v2 and for Linux hosts
8762
8763 2011-08-04 Bob Duff <duff@adacore.com>
8764
8765 * sinfo.ads: Fix comment.
8766
8767 2011-08-04 Steve Baird <baird@adacore.com>
8768
8769 * bindgen.adb (Get_Ada_Main_Name): If CodePeer_Mode is set, then
8770 choose a package name in much the same way as is
8771 done for JGNAT when VM_Target /= No_VM, except that
8772 a slightly more distinctive prefix string is used.
8773
8774 2011-08-04 Emmanuel Briot <briot@adacore.com>
8775
8776 * makeutl.adb (Complete_Mains): no longer accept unit names on the
8777 gnatmake command line.
8778 This behavior was never documented (and was supported only because of
8779 an early bug in the code). This case might lead to ambiguous cases
8780 (between unit names and truncated base names without suffixes).
8781
8782 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8783
8784 * a-tags.ads, a-tags.adb (Unregister_Tag): New routine.
8785 Remove the external tag of a tagged type from the internal hash table.
8786 * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on the
8787 expanded usage of the routine. Strenghten the check for Is_Master. Add
8788 processing for tagged types.
8789 (Build_Finalizer): Create all the necessary lists used in finalizer
8790 creation when the processed context is a package that may contain
8791 tagged types.
8792 (Expand_Cleanup_Actions): Rename the call to Has_Controlled_Objects to
8793 Requires_Cleanup_Actions.
8794 (Expand_N_Package_Body): Package bodies may need clean up code
8795 depending on whether they contain tagged types.
8796 (Expand_N_Package_Declaration): Package declarations may need clean up
8797 code depending on whether they contain tagged types.
8798 (Unregister_Tagged_Types): New routine. Search through a list of
8799 declarations or statements, looking for non-abstract Ada tagged types.
8800 For each such type, generate code to unregister the external tag.
8801 * exp_util.adb (Has_Controlled_Objects (Node_Id)): Renamed to
8802 Requires_Cleanup_Actions.
8803 (Requires_Cleanup_Actions (List_Id, Boolean)): New routine. Search
8804 through a list of declarations or statements looking for non-abstract
8805 Ada tagged types or controlled objects.
8806 * exp_util.ads (Has_Controlled_Objects (Node_Id)): Renamed to
8807 Requires_Cleanup_Actions.
8808 (Has_Controlled_Objects (List_Id, Boolean)): Removed.
8809 * rtsfind.ads: Add entry RE_Unregister_Tag to tables RE_Id and
8810 RE_Unit_Table.
8811
8812 2011-08-04 Vincent Celier <celier@adacore.com>
8813
8814 * prj-env.adb (For_All_Source_Dirs.For_Project): Check if project Prj
8815 has Ada sources, not project Project, because if the root project
8816 Project has no sources of its own, all projects will be deemed without
8817 sources.
8818
8819 2011-08-04 Gary Dismukes <dismukes@adacore.com>
8820
8821 * bindgen.adb (Gen_Adainit_Ada): Move the generation of the declaration
8822 of the No_Param_Proc acc-to-subp type used for initialization of
8823 __gnat_finalize_library_objects so that it's declared at library level
8824 rather than nested inside of the adainit routine.
8825
8826 2011-08-04 Javier Miranda <miranda@adacore.com>
8827
8828 * exp_disp.adb (Make_DT): Generate code to check the external tag ONLY
8829 if the tagged type has a representation clause which specifies its
8830 external tag.
8831
8832 2011-08-04 Ed Schonberg <schonberg@adacore.com>
8833
8834 * einfo.ads, einfo.adb (Has_Private_Ancestor): now a flag on types.
8835 Remove previous procedure with that name.
8836 * sem_ch3.adb (Build_Derived_Record_Type): set Has_Private_Ancestor
8837 when appropriate.
8838 * sem_aggr.adb (Resolve_Extension_Aggregate): if the ancestor part is a
8839 subtype mark, the ancestor cannot have unknown discriminants.
8840 (Resolve_Record_Aggregate): if the type has invisible components
8841 because of a private ancestor, the aggregate is illegal.
8842
8843 2011-08-04 Vincent Celier <celier@adacore.com>
8844
8845 * switch-m.adb (Normalize_Compiler_Switches): Recognize and take into
8846 account switches -gnat2005, -gnat12 and -gnat2012.
8847
8848 2011-08-04 Bob Duff <duff@adacore.com>
8849
8850 * s-tasdeb.ads: Minor comment fix.
8851
8852 2011-08-04 Arnaud Charlet <charlet@adacore.com>
8853
8854 * gnatlink.adb (Gnatlink): Pass -gnat83/95/05/12 switch to gcc in
8855 CodePeer mode.
8856 * switch.ads, switch.adb (Is_Language_Switch): New function.
8857
8858 2011-08-04 Vincent Celier <celier@adacore.com>
8859
8860 * switch-c.adb: Minor comment addition.
8861
8862 2011-08-04 Vincent Celier <celier@adacore.com>
8863
8864 * vms_conv.adb (Process_Argument): Fail graciously when qualifier
8865 ending with '=' is followed by a space (missing file name).
8866
8867 2011-08-04 Pascal Obry <obry@adacore.com>
8868
8869 * g-regist.ads: Fix size of HKEY on x86_64-windows.
8870
8871 2011-08-04 Ed Schonberg <schonberg@adacore.com>
8872
8873 * sem_ch12.adb (Analyze_Associations): New routine
8874 Check_Overloaded_Formal_Subprogram to reject a formal package when
8875 there is a named association or a box initialisation for an overloaded
8876 formal subprogram of the corresponding generic.
8877
8878 2011-08-04 Yannick Moy <moy@adacore.com>
8879
8880 * alfa.ads (ALFA_Xref_Record): add component for type of entity
8881 * get_alfa.adb, put_alfa.adb: Read and write new component of
8882 cross-reference.
8883 * lib-xref-alfa.adb (Collect_ALFA): generate new component.
8884
8885 2011-08-04 Pascal Obry <obry@adacore.com>
8886
8887 * urealp.adb: Minor reformatting.
8888
8889 2011-08-04 Tristan Gingold <gingold@adacore.com>
8890
8891 * exp_ch7.adb (build_finalizer.process_declarations.processing_actions):
8892 Handle the case when Cleanup_Protected_Object returns Empty.
8893
8894 2011-08-04 Yannick Moy <moy@adacore.com>
8895
8896 * frontend.adb (Frontend): only qualify names in non-ALFA mode
8897
8898 2011-08-04 Ed Schonberg <schonberg@adacore.com>
8899
8900 * sem_ch4.adb (Try_Class_Wide_Operation): if the context is a procedure
8901 call, ignore functions.
8902
8903 2011-08-04 Geert Bosch <bosch@adacore.com>
8904
8905 * urealp.adb (Equivalent_Decimal_Exponent): Avoid the use of floating
8906 point.
8907
8908 2011-08-04 Emmanuel Briot <briot@adacore.com>
8909
8910 * makeutl.adb (Compute_Builder_Switches): no longer accept a unit name
8911 as an index for Builder'Switches. This conforms to the documentation.
8912 * make.adb (Insert_Project_Sources): avoid duplicate code
8913
8914 2011-08-04 Emmanuel Briot <briot@adacore.com>
8915
8916 * makeutl.adb (Complete_Mains): if the user has passed a relative file
8917 name on the command line (for instance "../dummy"), never assume it can
8918 be a unit name.
8919
8920 2011-08-04 Tristan Gingold <gingold@adacore.com>
8921
8922 * bindgen.adb: Remove code the reference or create the
8923 Break_Start/__gnat_break_start procedure.
8924 * s-stalib.adb (Break_Start): Removed.
8925
8926 2011-08-04 Emmanuel Briot <briot@adacore.com>
8927
8928 * make.adb, makeutl.adb, makeutl.ads (Compute_Builder_Switches): now
8929 shared with gprbuild.
8930
8931 2011-08-04 Yannick Moy <moy@adacore.com>
8932
8933 * par-ch4.adb (P_Primary): preferentially issue an error message about
8934 a missing parenthesis arount a conditional or case expression in Ada
8935 2012 mode, if we detect that the alignment is not correct for a
8936 statement.
8937
8938 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8939
8940 * exp_ch7.adb (Process_Declarations): Do not consider the result of a
8941 tag-to-class-wide conversion as needing finalization actions.
8942 * exp_util.adb (Has_Controlled_Objects): Do not consider the result of
8943 a tag-to-class-wide conversion as needing finalization actions.
8944 (Is_Finalizable_Transient): The result of a tag-to-class-wide
8945 conversion does not need finalization actions.
8946 (Is_Tag_To_CW_Conversion): New routine.
8947 * exp_util.ads (Is_Tag_To_CW_Conversion): New routine. Determines
8948 whether an object is the result of a tag-to-class-wide conversion.
8949
8950 2011-08-04 Yannick Moy <moy@adacore.com>
8951
8952 * sem_ch13.adb (Analyze_Aspect_Specifications): correct order in which
8953 the left-hand-side and right-hand-side of a conjunct are inserted when
8954 translating a pre- or postcondition
8955 * sem_ch6.adb: Correct typo in comment
8956
8957 2011-08-04 Ed Schonberg <schonberg@adacore.com>
8958
8959 * gnat_rm.texi: Ravenscar does not prohibit dependence on
8960 Unchecked_Conversion and Unchecked_Deallocation.
8961
8962 2011-08-04 Thomas Quinot <quinot@adacore.com>
8963
8964 * make.adb: Minor reformatting.
8965
8966 2011-08-04 Emmanuel Briot <briot@adacore.com>
8967
8968 * prj.adb, prj.ads, makeutl.adb (Complete_Mains): search for the
8969 sources in the project and its imported projects, but not in the whole
8970 tree.
8971
8972 2011-08-04 Emmanuel Briot <briot@adacore.com>
8973
8974 * make.adb: Remove debug trace.
8975
8976 2011-08-04 Vincent Celier <celier@adacore.com>
8977
8978 * makeutl.adb (Do_Complete): Get the absolute path name of a relative
8979 path in canonical form, to be able to compare path names on platforms
8980 such as Windows or Darwin.
8981
8982 2011-08-04 Thomas Quinot <quinot@adacore.com>
8983
8984 * par_sco.adb (Traverse_Declarations_Or_Statements.Set_Statement_Entry):
8985 For a pragma (statement with C1 = 'P'), record the sloc of the pragma.
8986 * scos.ads: Update documentation accordingly.
8987 * put_scos.adb (Output_SCO_Line): Omit statement SCOs for disabled
8988 pragmas.
8989
8990 2011-08-04 Ed Schonberg <schonberg@adacore.com>
8991
8992 * sem_attr.adb (Bad_Attribute_For_Predicate): flag illegal use of
8993 attribute only if prefix type is scalar.
8994
8995 2011-08-04 Emmanuel Briot <briot@adacore.com>
8996
8997 * make.adb, makeutl.adb, prj-env.adb (Check_Mains): put back support
8998 in gnatmake for specifying mains on the command line that do not belong
8999 to the main project. These mains must currently all belong to the same
9000 project, though.
9001 (Ultimate_Extension_Of): removed, since duplicated
9002 Ultimate_Extending_Project.
9003
9004 2011-08-04 Arnaud Charlet <charlet@adacore.com>
9005
9006 * make.adb (Do_Codepeer_Globalize_Step): Removed. Use CodePeer_Mode
9007 instead.
9008 (CodePeer_Mode_String): New.
9009 (Linking_Phase, Binding_Phase): Call gnatlink with -P switch in
9010 CodePeer mode.
9011 (Scan_Make_Arg): Do not disable binding/linking phase in CodePeer mode.
9012 * bindgen.adb (Gen_Elab_Calls_Ada): Ignore subprograms in CodePeer
9013 mode, since no useful elaboration subprogram is needed by CodePeer.
9014 * gnatlink.adb (Gnatlink): Add support for -P switch (CodePeer mode).
9015 In this mode, compile binder file with -gnatC and do stop after this
9016 step.
9017
9018 2011-08-04 Vincent Celier <celier@adacore.com>
9019
9020 * exp_ch7.adb: Minor comment fix.
9021
9022 2011-08-04 Robert Dewar <dewar@adacore.com>
9023
9024 * exp_ch7.adb, make.adb, sem_ch10.adb, bindgen.adb, sem_res.adb,
9025 exp_ch4.adb, makeutl.adb: Minor reformatting.
9026
9027 2011-08-04 Emmanuel Briot <briot@adacore.com>
9028
9029 * make.adb, makeutl.adb, makeutl.ads (Make): major refactoring.
9030 Create several new subprograms to move code out of Make. This makes the
9031 code more readable, removes code duplication, and is a preparation work
9032 for adding support for aggregate projects.
9033
9034 2011-08-04 Tristan Gingold <gingold@adacore.com>
9035
9036 * s-po32gl.ads, s-po32gl.adb: New files.
9037 * exp_ch7.ads (Get_Global_Pool_For_Access_Type): New function.
9038 * exp_ch7.adb (Get_Global_Pool_For_Access_Type): New function.
9039 (Build_Finalization_Collection): Use it.
9040 * exp_ch4.adb (Complete_Controlled_Allocation): Ditto.
9041 * rtsfind.ads: System_Pool_32_Global, Re_Global_Pool_32_Object: New
9042 literals.
9043 * gcc-interface/Makefile.in: Use s-po32gl.o on VMS.
9044 * gcc-interface/Make-lang.in: Update dependencies.
9045
9046 2011-08-04 Emmanuel Briot <briot@adacore.com>
9047
9048 * makeutl.adb (Complete_Mains): add support for specs with no suffix on
9049 the command line.
9050
9051 2011-08-04 Emmanuel Briot <briot@adacore.com>
9052
9053 * make.adb, makeutl.adb (Complete_Mains): if a main specified on the
9054 command line is not a file name, also check whether it could be a unit
9055 name.
9056
9057 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
9058
9059 * bindgen.adb (Gen_Finalize_Library_Ada): Factor out code to generate
9060 the header of the finalization routine.
9061 If the unit has no finalizer but is a body whose spec has one, then
9062 generate the decrement of the elaboration entity only.
9063 If the unit has a finalizer and is a spec, then do not generate the
9064 decrement of the elaboration entity.
9065 (Gen_Finalize_Library_C): Likewise.
9066
9067 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9068
9069 * exp_ch7.adb (Alignment_Of): New subsidiary routine.
9070 (Bounds_Size_Expression): Removed.
9071 (Double_Alignment_Of): New subsidiary routine.
9072 (Make_Finalize_Address_Stmts): New local variable Index_Typ. Account
9073 for a hole in the dope vector of unconstrained arrays due to different
9074 index and element alignments.
9075
9076 2011-08-04 Ed Schonberg <schonberg@adacore.com>
9077
9078 * sem_res.adb (Resolve_Allocator): diagnose task allocator that will
9079 raise program_error because body has not been seen yet.
9080
9081 2011-08-04 Ed Schonberg <schonberg@adacore.com>
9082
9083 * sem_ch10.adb (Analyze_With_Clause): Protect against child unit with
9084 an unresolved name.
9085
9086 2011-08-04 Vincent Celier <celier@adacore.com>
9087
9088 * makeutl.adb (Do_Complete): Check absolute paths in canonical forms
9089
9090 2011-08-04 Yannick Moy <moy@adacore.com>
9091
9092 * alfa.adb, alfa.ads (Unique_Defining_Entity): move function from here
9093 * sem_util.adb, sem_util.ads (Unique_Defining_Entity): ...to here
9094
9095 2011-08-04 Thomas Quinot <quinot@adacore.com>
9096
9097 * sem_ch12.adb (Analyze_Package_Instantiation): Do not omit body for
9098 instantiation in RCI.
9099
9100 2011-08-04 Emmanuel Briot <briot@adacore.com>
9101
9102 * make.adb: Share more code with gprbuild
9103
9104 2011-08-04 Emmanuel Briot <briot@adacore.com>
9105
9106 * projects.texi: Added documentation for the IDE'Gnat project file
9107 attribute.
9108
9109 2011-08-04 Nicolas Roche <roche@adacore.com>
9110
9111 * gnat_rm.texi: Minor editing.
9112
9113 2011-08-04 Javier Miranda <miranda@adacore.com>
9114
9115 * bindgen.adb (Gen_Adafinal_Ada): Do not differentiate the main case
9116 and the library case for VM targets.
9117 (Gen_Adainit_Ada): Likewise.
9118
9119 2011-08-04 Robert Dewar <dewar@adacore.com>
9120
9121 * g-altive.ads: Minor comment updates.
9122 * prj-nmsc.adb: Minor reformatting.
9123
9124 2011-08-04 Javier Miranda <miranda@adacore.com>
9125
9126 * opt.ads
9127 (Normalize_Scalars_Config): Value of the configuration switch set by
9128 pragma Normalize_Scalars when it appears in the gnat.adc file.
9129 (Normalize_Scalars): New field for record Config_Switches_Type. Used
9130 to save and restore settings of this pragma.
9131 * opt.adb
9132 (Register_Opt_Config_Switches, Save_Opt_Config_Switches,
9133 Restore_Opt_Config_Switches): Add missing support for Normalize_Scalars.
9134
9135 2011-08-04 Vincent Celier <celier@adacore.com>
9136
9137 * gnat_ugn.texi: Document gnatlink options -M and -M=mapfile
9138
9139 2011-08-04 Arnaud Charlet <charlet@adacore.com>
9140
9141 * makeutl.adb: Minor reformatting.
9142
9143 2011-08-04 Olivier Hainque <hainque@adacore.com>
9144
9145 * g-altive.ads: Update comments to reflect that only the soft
9146 binding is available today.
9147
9148 2011-08-04 Robert Dewar <dewar@adacore.com>
9149
9150 * bindgen.adb, einfo.adb, sem_ch12.adb, s-tasren.adb, sem_res.adb,
9151 makeutl.adb, prj-nmsc.adb, opt.ads, prj-env.adb: Minor reformatting
9152 * gcc-interface/Make-lang.in: Update dependencies.
9153
9154 2011-08-04 Arnaud Charlet <charlet@adacore.com>
9155
9156 * prj-env.adb: Remove local debug traces.
9157
9158 2011-08-04 Yannick Moy <moy@adacore.com>
9159
9160 * checks.adb (Apply_Float_Conversion_Check): correct a typo where Lo_OK
9161 was used instead of Hi_OK, which could cause a read of an uninitialized
9162 value later on. Detected while working on the new warning.
9163 * exp_ch9.adb (Expand_N_Entry_Declaration): remove useless assignment
9164 to local variable.
9165 * sem_ch5.adb (Analyze_Assignment): set the last assignment component
9166 in more cases, in order to detect more unreferenced values.
9167 * sem_util.adb, sem_util.ads (Get_Enclosing_Object): return enclosing
9168 object for expression, if any.
9169
9170 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
9171
9172 * exp_intr.adb (Expand_Binary_Operator_Call): Look at the RM size of
9173 the operand types instead of the Esize.
9174
9175 2011-08-04 Steve Baird <baird@adacore.com>
9176
9177 * switch-b.adb (Scan_Binder_Switches): Add -P binder switch, used to
9178 enable CodePeer_Mode.
9179 * bindusg.adb (Display): Add help message describing -P binder switch.
9180 * gnat_ugn.texi: Document -P binder switch.
9181 * bindgen.adb (Gen_Main_Ada): If CodePeer_Mode is set, then call the
9182 user-defined main program directly.
9183 (Gen_Output_File_Ada): If CodePeer_Mode is set, generate a with of the
9184 user-defined main program in the context clause of the package body.
9185
9186 2011-08-04 Yannick Moy <moy@adacore.com>
9187
9188 * alfa.adb, alfa.ads (Get_Entity_For_Decl): remove function, partial
9189 duplicate of Defining_Entity
9190 (Get_Unique_Entity_For_Decl): rename function into
9191 Unique_Defining_Entity
9192 * einfo.adb, einfo.ads (Is_In_ALFA, Body_Is_In_ALFA): remove flags
9193 (Formal_Proof_On): remove synthesized flag
9194 * cstand.adb, sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb,
9195 sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_res.adb, sem_util.adb,
9196 sem_util.ads, stand.ads: Remove treatment associated to entities in ALFA
9197 * sem_prag.adb (Analyze_Pragma): remove special treatment for pragma
9198 Annotate (Formal_Proof)
9199
9200 2011-08-04 Emmanuel Briot <briot@adacore.com>
9201
9202 * prj-env.adb (Create_Config_Pragmas_File): fix handling of multi-unit
9203 source files with non-standard naming schemes, in imported projects
9204
9205 2011-08-04 Emmanuel Briot <briot@adacore.com>
9206
9207 * makeutl.adb (Complete_Mains): when a multi-unit source file is
9208 specified on the gprbuild command line, we need to compile all units
9209 within that file, not just the first one we find
9210 Fix error message for mains that are not found.
9211
9212 2011-08-04 Thomas Quinot <quinot@adacore.com>
9213
9214 * sem_ch6.adb: Update comment.
9215 * sem_ch12.adb: Minor reformatting.
9216
9217 2011-08-04 Bob Duff <duff@adacore.com>
9218
9219 * s-tasren.adb (Task_Do_Or_Queue): Previous code was reading
9220 Acceptor.Terminate_Alternative without locking Acceptor, which causes a
9221 race condition whose symptom is to fail to lock Parent. That, in turn,
9222 causes Parent.Awake_Count to be accessed without locking Parent, which
9223 causes another race condition whose symptom is that Parent.Awake_Count
9224 can be off by 1 (either too high or too low). The solution is to lock
9225 Parent unconditionally, and then lock Acceptor, before reading
9226 Acceptor.Terminate_Alternative.
9227
9228 2011-08-04 Arnaud Charlet <charlet@adacore.com>
9229
9230 * debug.adb: Update comment.
9231
9232 2011-08-04 Robert Dewar <dewar@adacore.com>
9233
9234 * par_sco.adb, exp_util.adb, make.adb, a-tags.adb, sem_prag.adb,
9235 sem_util.adb, sem_attr.adb, exp_ch4.adb, g-comlin.adb, g-comlin.ads,
9236 exp_ch6.adb: Minor reformatting.
9237
9238 2011-08-04 Gary Dismukes <dismukes@adacore.com>
9239
9240 * gnat_ugn.texi: Add sentence about the case of compile-time-detected
9241 checks for -gnateE.
9242
9243 2011-08-04 Ed Schonberg <schonberg@adacore.com>
9244
9245 * gnat_rm.texi: update Ravenscar desription to reflect Ada2012 RM.
9246
9247 2011-08-04 Thomas Quinot <quinot@adacore.com>
9248
9249 * sinfo.ads: Minor reformatting.
9250
9251 2011-08-04 Emmanuel Briot <briot@adacore.com>
9252
9253 * makeutl.adb, makeutl.ads, prj-nmsc.adb (Complete_Mains): report error
9254 even if there is no location.
9255
9256 2011-08-04 Ed Schonberg <schonberg@adacore.com>
9257
9258 * sem_res.adb, sem_ch4.adb: move check for restriction
9259 No_Task_Hierarchy to resolve_allocator.
9260
9261 2011-08-04 Thomas Quinot <quinot@adacore.com>
9262
9263 * sinfo.adb, sinfo.ads, sem_prag.adb, sem_ch12.adb (Pragma_Enabled):
9264 This flag of N_Pragma nodes is not used, remove it as well as all of
9265 the associated circuitry.
9266
9267 2011-08-04 Javier Miranda <miranda@adacore.com>
9268
9269 * exp_disp.adb (Make_DT): Switch -gnatdQ disables the generation of the
9270 runtime check on duplicated externa tags
9271 * debug.adb Document switch -gnatdQ.
9272
9273 2011-08-04 Gary Dismukes <dismukes@adacore.com>
9274
9275 * a-fihema.ads: Minor typo fix.
9276
9277 2011-08-04 Yannick Moy <moy@adacore.com>
9278
9279 * sem_ch10.adb: Minor comment update.
9280
9281 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9282
9283 * einfo.adb: Update the node field usage to reflect the renaming of
9284 Return_Flag to Return_ Flag_Or_Transient_Decl.
9285 (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl.
9286 (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl.
9287 (Write_Field15_Name): Change Return_Flag to
9288 Return_Flag_Or_Transient_Decl.
9289 * einfo.ads: Rename node field Return_Flag to
9290 Return_Flag_Or_Transient_Decl. Update the associated comment and all
9291 occurrences in entities.
9292 (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. Update
9293 associated Inline pragma.
9294 (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. Update
9295 associated Inline pragma.
9296 * exp_ch4.ads, exp_ch4.adb (Expand_N_Expression_With_Actions): New
9297 routine.
9298 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Update the calls to
9299 Return_Flag and Set_Return_Flag.
9300 * exp_ch7.adb (Process_Declarations): Add code to recognize hook
9301 objects generated for controlled transients declared inside an
9302 Exception_With_Actions. Update the calls to Return_Flag.
9303 (Process_Object_Declaration): Add code to add a null guard for hook
9304 objects generated for controlled transients declared inside an
9305 Exception_With_Actions. Update related comment.
9306 * exp_util.adb (Has_Controlled_Objects): Add code to recognize hook
9307 objects generated for controlled transients declared inside an
9308 Exception_With_Actions. Update the calls to Return_Flag.
9309 * expander.adb (Expand): Add new case for N_Expression_With_Actions.
9310
9311 2011-08-04 Ed Schonberg <schonberg@adacore.com>
9312
9313 * sem_util.adb:(Wrong_Type): Improve error message on a one-element
9314 positional aggregate.
9315
9316 2011-08-04 Vincent Celier <celier@adacore.com>
9317
9318 * par_sco.adb (Process_Decisions.Output_Header): Check and record pragma
9319 SLOC only for pragmas.
9320
9321 2011-08-04 Emmanuel Briot <briot@adacore.com>
9322
9323 * projects.texi: Minor typo fix.
9324
9325 2011-08-04 Emmanuel Briot <briot@adacore.com>
9326
9327 * prj-nmsc.adb (Check_File): Minor change to traces, to help debugging
9328 on case-sensitive file systems.
9329
9330 2011-08-04 Thomas Quinot <quinot@adacore.com>
9331
9332 * put_scos.adb (Put_SCOs): Do not emit decision SCO for an X decision
9333 nested in a disabled pragma.
9334 * scos.ads, scos.adb, par_sco.ads, par_sco.adb: Record sloc of
9335 enclosing pragma, if any, for X decisions.
9336
9337 2011-08-04 Thomas Quinot <quinot@adacore.com>
9338
9339 * sem_prag.adb: Minor reformatting.
9340
9341 2011-08-04 Vincent Celier <celier@adacore.com>
9342
9343 * a-tags.adb (Check_TSD): Avoid concatenation of strings, as it is not
9344 allowed in no run time mode.
9345
9346 2011-08-04 Vincent Celier <celier@adacore.com>
9347
9348 * make.adb (Check): When -gnatc is used, check for the source file
9349 inside the ALI file with a canonical case file name.
9350
9351 2011-08-04 Emmanuel Briot <briot@adacore.com>
9352
9353 * g-comlin.adb, g-comlin.ads (Add_Switch): Put back support for
9354 overriding the separator.
9355
9356 2011-08-04 Robert Dewar <dewar@adacore.com>
9357
9358 * sem_aggr.adb, par_sco.adb, sem_type.adb, exp_util.adb, exp_ch9.adb,
9359 prj-nmsc.adb, sem_ch13.adb, exp_strm.adb: Minor reformatting.
9360
9361 2011-08-04 Robert Dewar <dewar@adacore.com>
9362
9363 * gnat_rm.texi: Minor documentation fix for pragma Annotate.
9364
9365 2011-08-04 Yannick Moy <moy@adacore.com>
9366
9367 * sem_attr.adb (Analyze_Attribute): add check during pre-analysis that
9368 'Result only appears in postcondition of function.
9369
9370 2011-08-04 Thomas Quinot <quinot@adacore.com>
9371
9372 * a-tags.adb (Check_TSD): When raising PROGRAM_ERROR for a duplicated
9373 external tag, include the value of the external tag in the exception
9374 message.
9375
9376 2011-08-04 Yannick Moy <moy@adacore.com>
9377
9378 * sem_attr.adb (Result): modify error message for misplaced 'Result
9379
9380 2011-08-04 Sergey Rybin <rybin@adacore.com>
9381
9382 * gnat_rm.texi (pragma Annotate): Fix syntax description to make it
9383 clear that the second argument must be an identifier.
9384
9385 2011-08-04 Thomas Quinot <quinot@adacore.com>
9386
9387 * exp_ch9.adb (Build_Barrier_Function): When compiling with
9388 -fpreserve-control-flow, insert an IF statement on the barrier
9389 condition to ensure that a conditional branch instruction is generated.
9390
9391 2011-08-04 Emmanuel Briot <briot@adacore.com>
9392
9393 * prj-part.adb, prj.adb, prj.ads, prj-tree.ads
9394 (Processing_Flags.Ignore_Missing_With): new flag.
9395
9396 2011-08-04 Emmanuel Briot <briot@adacore.com>
9397
9398 * prj-nmsc.adb (Find_Sources, Path_Name_Of): Fix handling of
9399 Source_List_File on case-insensitive systems where the file is actually
9400 on a case-sensitive file system (NFS,...).
9401
9402 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9403
9404 * sem_ch6.adb (Analyze_Function_Return): In a rare case where a
9405 function return contains a controlled [extension] aggregate and the
9406 return statement is not part of a handled sequence of statements, wrap
9407 the return in a block. This ensures that all controlled temporaries
9408 generated during aggregate resolution will be picked up by the
9409 finalization machinery.
9410
9411 2011-08-04 Ed Schonberg <schonberg@adacore.com>
9412
9413 * sem_aggr.adb (Resolve_Aggregate): If aggregate has box-initialized
9414 components, freeze type before resolution, to ensure that default
9415 initializations are present for all components.
9416 * sem_res.adb (Resolve_Actuals): the designated object of an
9417 accces-to-constant type is a legal actual in a call to an
9418 initialization procedure.
9419
9420 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9421
9422 * exp_util.adb (Extract_Renamed_Object): Add N_Type_Conversion and
9423 N_Unchecked_Type_Conversion to the possible containers of a renamed
9424 transient variable.
9425
9426 2011-08-04 Yannick Moy <moy@adacore.com>
9427
9428 * par-ch13.adb (Aspect_Specifications_Present): recognize
9429 "with Identifier'Class =>" as an aspect, so that a meaningful warning
9430 is issued in Strict mode.
9431 * par.adb: Fix typos in comments.
9432
9433 2011-08-04 Yannick Moy <moy@adacore.com>
9434
9435 * sem_attr.adb (Result): modify error message to take into account Post
9436 aspect when compiling Ada 2012 (or newer) code.
9437
9438 2011-08-04 Nicolas Roche <roche@adacore.com>
9439
9440 * env.c (__gnat_clearenv): Avoid use of dynamic size array in order to
9441 remove need for GCC exceptions.
9442
9443 2011-08-04 Vincent Celier <celier@adacore.com>
9444
9445 * makeutl.adb (Do_Complete): Call Debug_Output with the name of the
9446 project, not the source file name.
9447 * prj.adb (Find_Sources.Look_For_Sources): If the source has been
9448 excluded, continue looking. This excluded source will only be returned
9449 if there is no other source with the same base name that is not locally
9450 removed.
9451
9452 2011-08-04 Ed Schonberg <schonberg@adacore.com>
9453
9454 * sem_res.adb (Resolve_Intrinsic_Operator): if the result type is
9455 private and one of the operands is a real literal, use a qualified
9456 expression rather than a conversion which is not meaningful to the
9457 back-end.
9458
9459 2011-08-04 Yannick Moy <moy@adacore.com>
9460
9461 * sem_ch13.adb (Aspect_Loop): when an aspect X and its classwise
9462 corresponding aspect X'Class are allowed, proceed with analysis of the
9463 aspect instead of skipping it.
9464
9465 2011-08-04 Tristan Gingold <gingold@adacore.com>
9466
9467 * s-flocon.adb, s-flocon.ads: Add a body for s-flocon.ads
9468 This will allow to have an Ada implementation for the subprogram.
9469
9470 2011-08-04 Ed Schonberg <schonberg@adacore.com>
9471
9472 * sem_ch3.adb (Analyze_Full_Type_Declaration): If the declaration is a
9473 completion and aspects are present, apply them to the entity for the
9474 type which is currently the partial view, but which is the one that
9475 will be frozen.
9476 * sem_ch13.adb (Analyze_Aspect_Specifications): if the predicate
9477 applies to a partial view, indicate that the full view has predicates
9478 and delayed aspects.
9479 (Replace_Type_Reference): Handle properly predicates that apply to the
9480 full view of a private completion.
9481
9482 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
9483
9484 * layout.adb (Layout_Type): For composite types, do not set Esize.
9485 * freeze.adb (Set_Small_Size): Remove test on alignment and do not
9486 set Esize.
9487 (Size_Known): Look at the RM size of components instead of the Esize.
9488 (Freeze_Record_Type): Look at the RM size instead of the Esize to
9489 issue warning and activate Implicit_Packing.
9490 (Freeze_Entity): Likewise. Do not issue a warning for alias/atomic
9491 if the Esize is not known.
9492 * sem_ch13.adb (Analyze_Attribute_Definition_Clause) <Size>: Set Esize
9493 for elementary types only.
9494 (Analyze_Record_Representation_Clause): Look at the RM size instead
9495 of the Esize to issue errors.
9496 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set Esize if it
9497 is not known.
9498 <E_Record_Type>: Look at the RM size instead of the Esize. Remove
9499 obsolete block.
9500 Look at the RM size instead of the Esize for types if the latter is
9501 not known.
9502 (gnat_to_gnu_field): Use Known_Esize instead of Known_Static_Esize.
9503
9504 2011-08-04 Ed Schonberg <schonberg@adacore.com>
9505
9506 * sem_type.adb: proper handling of equality not involving anonymous
9507 access types.
9508
9509 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9510
9511 * exp_ch7.adb (Create_Finalizer): Remove local variables Spec_Nod and
9512 Vis_Decls. When creating a library-level finalizer for a package spec,
9513 both the declaration and body of the finalizer are inserted either in
9514 the visible or private declarations of the package spec.
9515
9516 2011-08-04 Javier Miranda <miranda@adacore.com>
9517
9518 * sem_ch3.adb (Derive_Subprograms): Complete assertion to request the
9519 use of the full-view of a type when invoking Is_Ancestor.
9520 * sem_type.adb (Is_Ancestor): For consistency, when the traversal of
9521 the full-view of private parents is requested, then use also the
9522 full-view of the parent of the first derivation.
9523
9524 2011-08-04 Tristan Gingold <gingold@adacore.com>
9525
9526 * s-taprop-vxworks.adb (Enter_Task): Use System.Float_Control.Reset
9527 instead of the locally imported procedure.
9528 * s-taprop-mingw.adb (Enter_Task): Ditto.
9529 * s-valrea.adb (Scan_Real): Ditto.
9530 * s-imgrea.adb (Set_Image_Real): Ditto.
9531 * s-flocon.ads: Make the package pure.
9532
9533 2011-08-04 Thomas Quinot <quinot@adacore.com>
9534
9535 * sinfo.ads, sinfo.adb (Debug_Statement, Set_Debug_Statement): Remove.
9536 * tbuild.ads, tbuild.adb (Make_Pragma): Adjust accordingly.
9537 * sinfo-cn.ads, sinfo-cn.adb (Change_Name_To_Procedure_Call_Statement):
9538 New subprogram, moved here from...
9539 * par.adb, par-ch5.adb (P_Statement_Name): ... here.
9540 * par-prag.adb (Par.Prag, case Pragma_Debug): Do not perform any
9541 rewriting of the last argument into a procedure call statement here...
9542 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): ...do it there
9543 instead.
9544
9545 2011-08-04 Thomas Quinot <quinot@adacore.com>
9546
9547 * par_sco.adb: Minor reformatting.
9548
9549 2011-08-04 Robert Dewar <dewar@adacore.com>
9550
9551 * erroutc.adb: Minor reformatting.
9552
9553 2011-08-04 Thomas Quinot <quinot@adacore.com>
9554
9555 * par_sco.adb: Comment update.
9556
9557 2011-08-04 Tristan Gingold <gingold@adacore.com>
9558
9559 * s-flocon.ads: New file.
9560 * g-flocon.ads: Now a renaming of s-flocon.
9561 * Makefile.rtl: Add s-flocon.o
9562
9563 2011-08-04 Javier Miranda <miranda@adacore.com>
9564
9565 * exp_strm.adb (Build_Array_Input_Function): if the array type is
9566 constrained, do not attempt to build a subtype of it.
9567
9568 2011-08-04 Yannick Moy <moy@adacore.com>
9569
9570 * errout.ads Change comments: remove 'R'M as an example where quotes
9571 are needed; add ALFA as another case where quotes are not needed
9572 * erroutc.adb (Set_Msg_Insertion_Reserved_Word): add ALFA as another
9573 case where quotes are not needed.
9574 * sem_ch11.adb, sem_ch13.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb,
9575 sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_prag.adb, sem_res.adb:
9576 Remove all occurrences of 'A'L'F'A
9577
9578 2011-08-04 Ed Schonberg <schonberg@adacore.com>
9579
9580 * sem_ch13.adb: check legality of invariant pragma.
9581
9582 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
9583
9584 * bindgen.adb: Add comments.
9585
9586 2011-08-04 Yannick Moy <moy@adacore.com>
9587
9588 * einfo.adb, einfo.ads: Free Flag254 and make Formal_Proof_On a
9589 synthesized flag.
9590 * sem_prag.adb (Analyze_Pragma): record the pragma Annotate
9591 (Formal_Proof, On/Off) in the Rep_Item list of the current subprogram.
9592
9593 2011-08-04 Robert Dewar <dewar@adacore.com>
9594
9595 * exp_ch7.adb, exp_ch6.adb, sem_ch3.adb, layout.adb, sem_ch5.adb,
9596 osint-c.ads, sem_util.ads, gnat1drv.adb, targparm.ads, sem_ch6.adb,
9597 sem_ch13.adb, s-pooloc.adb: Minor reformatting.
9598
9599 2011-08-04 Thomas Quinot <quinot@adacore.com>
9600
9601 * s-pooloc.ads, s-pooglo.ads: Minor reformatting
9602
9603 2011-08-04 Thomas Quinot <quinot@adacore.com>
9604
9605 PR ada/47880
9606 * s-pooloc.adb (Deallocate): Fix the case of deallocating the only
9607 allocated object.
9608
9609 2011-08-04 Robert Dewar <dewar@adacore.com>
9610
9611 * einfo.ads, exp_ch4.adb: Minor reformatting.
9612
9613 2011-08-04 Jerome Lambourg <lambourg@adacore.com>
9614
9615 * back_end.ads (Gen_Or_Update_Object_File): Add more comments.
9616
9617 2011-08-04 Ed Schonberg <schonberg@adacore.com>
9618
9619 * exp_ch4.adb (Expand_Composite_Equality): code cleanup: use component
9620 type in all cases to compute list of primitive operations, because full
9621 view may be an itype that is not attached to the list of declarations.
9622
9623 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
9624
9625 * bindgen.adb (Gen_Adafinal_Ada): Generate an early return if the
9626 library has already been finalized.
9627 (Gen_Adafinal_C): Likewise.
9628 (Gen_Adainit_Ada): Generate an early return if the library has
9629 already been elaborated.
9630 (Gen_Adainit_C): Likewise.
9631 (Gen_Output_File_Ada): Generate an elaboration flag.
9632 (Gen_Output_File_C): Likewise.
9633
9634 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9635
9636 * exp_ch4.adb (Expand_Allocator_Expression): Disable the generation of
9637 Set_Finalize_Address_Ptr for CodePeer because Finalize_Address was not
9638 built in the first place.
9639 (Expand_N_Allocator): Disable the generation of Set_Finalize_Address_Ptr
9640 for CodePeer because Finalize_Address was not built to begin with.
9641 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Ditto.
9642
9643 2011-08-04 Pascal Obry <obry@adacore.com>
9644
9645 * adaint.c (__gnat_tmp_name): Use current process id to create temp
9646 filenames, this ensures unicity of filenames across processes.
9647
9648 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9649
9650 * bindgen.adb (Gen_Finalize_Library_Ada): Rename generated routine
9651 Raise_Controlled to Raise_From_Controlled_Operation. Update the
9652 signature of Raise_From_Controlled_Operation by adding flag From_Abort.
9653 Add False as the actual to From_Abort in the generated call to
9654 Raise_From_Controlled_Operation.
9655
9656 2011-08-04 Jerome Lambourg <lambourg@adacore.com>
9657
9658 * osint-c.ads, osint-c.adb (Set_Library_Info_Name): Move to declaration
9659 so that the ali file name can be retrieved from outside of this package.
9660 * back_end.ads, back_end.adb (Gen_Or_Update_Object_File): New method
9661 doing nothing in the general case, but used to update the object file
9662 timestamp if directly generated by the backend.
9663 * gnat1drv.adb (Gnat1drv): Make sure the object file's timestamp is set
9664 to a later time than the ali file one.
9665
9666 2011-08-04 Yannick Moy <moy@adacore.com>
9667
9668 * einfo.adb, einfo.ads (Formal_Proof_On): new flag set on subprogram
9669 entities whose body contains an Annotate pragma which forces formal
9670 proof on this body.
9671 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
9672 sem_ch6.adb, sem_ch9.adb, sem_res.adb: Adapt call to
9673 Mark_Non_ALFA_Subprogram to pass in a message and node.
9674 * sem_prag.adb (Analyze_Pragma): add treatment of pragma Annotate
9675 (Forma_Proof, On) which sets the flag Formal_Proof_On in the
9676 surrounding subprogram.
9677 * sem_util.adb, sem_util.ads (Mark_Non_ALFA_Subprogram,
9678 Mark_Non_ALFA_Subprogram_Unconditional): if the subprogram being marked
9679 as not in ALFA is annotated with Formal_Proof being On, then an error
9680 is issued based on the additional parameters for message and node.
9681 * snames.ads-tmpl (Name_Formal_Proof): new name for annotation.
9682 * gcc-interface/Make-lang.in: Update dependencies.
9683
9684 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9685
9686 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not generate
9687 Finalize_Address when CodePeer is enabled.
9688
9689 2011-08-04 Pascal Obry <obry@adacore.com>
9690
9691 * adaint.c (__gnat_tmp_name): Use _tempnam() instead of tempnam() as
9692 the latter returns a pointer to a static buffer which is deallocated
9693 at the end of the routine.
9694
9695 2011-08-04 Yannick Moy <moy@adacore.com>
9696
9697 * sem_ch3.adb (Array_Type_Declaration): move test for type in ALFA
9698 after index creation; mark unconstrained base array type generated as
9699 being in/not in ALFA as well
9700 (Make_Index): mark subtype created as in/not in ALFA
9701 * sem_ch5.adb (Analyze_Iteration_Scheme): mark entity for iterating
9702 over a loop as in/not in ALFA, depending on its type and form of loop
9703 iteration.
9704
9705 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9706
9707 * exp_ch7.adb (Build_Object_Declarations): Initialize flag Abort
9708 directly to False on .NET and JVM.
9709
9710 2011-08-04 Yannick Moy <moy@adacore.com>
9711
9712 * sem_ch3.adb (Constrain_Enumeration, Constrain_Integer): remove
9713 constraint that subtype must come from source code to be in ALFA, so
9714 that anonymous subtypes can be in ALFA too.
9715
9716 2011-08-04 Yannick Moy <moy@adacore.com>
9717
9718 * sem_ch3.adb (Analyze_Object_Declaration): remove obsolete addition of
9719 reference for ALFA mode.
9720 * lib-xref-alfa.adb, lib-xref.ads (Traverse_Compilation_Unit): make
9721 procedure public so as to use it from formal verification back-end.
9722
9723 2011-08-04 Jerome Lambourg <lambourg@adacore.com>
9724
9725 * g-comlin.adb (For_Each_Simple_Switch.Is_In_Config): Remove the
9726 invalid checks of the Parameter, making Remove_Switch not working
9727 correctly.
9728
9729 2011-08-04 Arnaud Charlet <charlet@adacore.com>
9730
9731 * targparm.ads: Update header: no run-time exception is needed on this
9732 file.
9733
9734 2011-08-04 Vincent Celier <celier@adacore.com>
9735
9736 * a-fihema.adb: Use System.IO instead of GNAT.IO
9737
9738 2011-08-04 Thomas Quinot <quinot@adacore.com>
9739
9740 * sem_ch3.adb (Access_Definition): Anonymous access to subprogram types
9741 are forbidden in Compiler_Unit mode.
9742
9743 2011-08-04 Robert Dewar <dewar@adacore.com>
9744
9745 * sem_util.adb: Minor reformatting.
9746
9747 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9748
9749 * bindgen.adb (Gen_Finalize_Library_Ada): Update the import string for
9750 library-level finalizers.
9751 (Gen_Finalize_Library_C): Update the import string for library-level
9752 finalizers.
9753 (Gen_Finalize_Library_Defs_C): Update the definition name of a
9754 library-level finalizer.
9755 * exp_ch7.adb: Remove with and use clauses for Stringt.
9756 (Create_Finalizer): Remove local variables Conv_Name, Prag_Decl,
9757 Spec_Decl. Add local variable Body_Id. The names of library-level
9758 finalizers are now manually fully qualified and are no longer external.
9759 A single name is now capable of servicing .NET, JVM and non-VM targets.
9760 Pragma Export is no longer required to provide visibility for the name.
9761 (Create_Finalizer_String): Removed.
9762 (New_Finalizer_Name): New routine which mimics New_..._Name.
9763
9764 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
9765
9766 * sem_elab.adb (Check_Internal_Call_Continue): Change the type of the
9767 elaboration counter to Standard_Short_Integer.
9768 * sem_util.adb (Build_Elaboration_Entity): Likewise.
9769 * bindgen.adb (Gen_Elab_Externals_Ada): Adjust to above change.
9770 (Gen_Elab_Externals_C): Likewise.
9771
9772 2011-08-04 Ed Falis <falis@adacore.com>
9773
9774 * system-vxworks-arm.ads, system-vxworks-sparcv9.ads,
9775 system-vxworks-ppc.ads, system-vxworks-m68k.ads,
9776 system-vxworks-mips.ads, system-vxworks-x86.ads
9777 (Always_Compatible_Rep): set to False for all VxWorks targets.
9778
9779 2011-08-04 Robert Dewar <dewar@adacore.com>
9780
9781 * par_sco.adb, prj-proc.adb, make.adb, bindgen.adb, prj.adb, prj.ads,
9782 makeutl.adb, makeutl.ads, prj-nmsc.adb, exp_ch5.adb, exp_ch12.adb,
9783 exp_ch7.ads, exp_util.ads, sem_util.ads, g-comlin.ads, exp_ch6.adb,
9784 exp_ch6.ads, lib-xref.ads, exp_ch7.adb, exp_util.adb, exp_dist.adb,
9785 exp_strm.adb, gnatcmd.adb, freeze.adb, g-comlin.adb, lib-xref-alfa.adb,
9786 sem_attr.adb, sem_prag.adb, sem_util.adb, sem_elab.adb, sem_ch8.adb,
9787 sem_ch11.adb, sem_eval.adb, sem_ch13.adb, sem_disp.adb, a-fihema.adb:
9788 Minor reformatting and code reorganization.
9789
9790 2011-08-04 Emmanuel Briot <briot@adacore.com>
9791
9792 * projects.texi: Added doc for aggregate projects.
9793
9794 2011-08-04 Emmanuel Briot <briot@adacore.com>
9795
9796 * prj-proc.adb, prj-nmsc.adb, prj-env.adb (Process_Declarative_Items):
9797 Add support for overriding the Project_Path in aggregate projects.
9798
9799 2011-08-04 Robert Dewar <dewar@adacore.com>
9800
9801 * a-cofove.ads: Minor reformatting.
9802
9803 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
9804
9805 * exp_ch7.adb (Build_Adjust_Or_Finalize_Statements): Update the comment
9806 on the generated code.
9807 (Build_Finalize_Statements): Update the comment on the generated code.
9808 (Build_Initialize_Statements): Update the comment on the generated code.
9809 (Build_Object_Declarations): Add local variable Result. The object
9810 declarations are now built in sequence.
9811 * rtsfind.ads: Add RE_Exception_Occurrence_Access to tables RE_Id and
9812 RE_Unit_Table.
9813
9814 2011-08-04 Robert Dewar <dewar@adacore.com>
9815
9816 * checks.adb, alfa.adb, alfa.ads: Minor reformatting.
9817
9818 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
9819
9820 * einfo.ads (Elaboration_Entity): Document new definition and use.
9821 (Elaboration_Entity_Required): Adjust to above change.
9822 * exp_attr.adb (Expand_N_Attribute_Reference): Likewise.
9823 * exp_ch12.adb: And with and use for Snames.
9824 (Expand_N_Generic_Instantiation): Test 'Elaborated attribute.
9825 * exp_util.adb (Set_Elaboration_Flag): Likewise.
9826 * sem_attr.adb (Analyze_Attribute) <Check_Library_Unit>: Delete.
9827 <Check_Unit_Name>: Deal with N_Expanded_Name.
9828 <Attribute_Elaborated>: Extend to all unit names.
9829 * sem_elab.adb: And with and use for Uintp.
9830 (Check_Internal_Call_Continue): Adjust to Elaboration_Entity change.
9831 * sem_util.ads (Build_Elaboration_Entity): Adjust comment.
9832 * sem_util.adb (Build_Elaboration_Entity): Change type to Integer.
9833 * bindgen.adb (Gen_Elab_Externals_Ada): New local subprogram taken
9834 from Gen_Adainit_Ada.
9835 (Gen_Elab_Externals_C): Likewise, but taken from Gen_Adainit_C.
9836 (Gen_Adafinal_Ada): Remove redundant test. In the non-main program
9837 case, do not call System.Standard_Library.Adafinal; instead call
9838 finalize_library if needed.
9839 (Gen_Adafinal_C): Likewise.
9840 (Gen_Adainit_Ada): Do not set SSL.Finalize_Library_Objects in the
9841 non-main program case.
9842 (Gen_Adainit_C): Generate a couple of external declarations here.
9843 In the main program case, set SSL.Finalize_Library_Objects.
9844 (Gen_Elab_Calls_Ada): Adjust to Elaboration_Entity change.
9845 (Gen_Elab_Calls_C): Likewise.
9846 (Gen_Finalize_Library_Ada): Likewise. Skip SAL interface units.
9847 (Gen_Finalize_Library_C): Likewise. Generate a full function.
9848 (Gen_Main_C): Put back call to Ada_Final and don't finalize library
9849 objects here.
9850 (Gen_Output_File_Ada): Generate pragma Linker_Destructor for Ada_Final
9851 if -a is specified. Call Gen_Elab_Externals_Ada. Move around call to
9852 Gen_Adafinal_Ada.
9853 (Gen_Output_File_C): Generate __attribute__((destructor)) for Ada_Final
9854 if -a is specified. Call Gen_Elab_Externals_C. Remove useless couple
9855 of external declarations. Call Gen_Finalize_Library_C.
9856
9857 2011-08-04 Emmanuel Briot <briot@adacore.com>
9858
9859 * prj.adb, prj.ads, makeutl.adb, makeutl.ads (Complete_Mains,
9860 Compute_Compilation_Phases): new subprogram.
9861 (Builder_Data, Builder_Project_Tree_Data): new subprogram and type
9862 The number of mains as well as the various compilation phases that
9863 need to be run are now project tree specific, since various
9864 aggregated trees might have different requirements. In particular,
9865 they do not all require bind or link phases.
9866
9867 2011-08-04 Emmanuel Briot <briot@adacore.com>
9868
9869 * prj.adb, prj.ads, makeutl.adb, makeutl.ads, prj-env.adb
9870 (Project_Tree_Appdata): New type.
9871 It is now possible to associate application-specific data to a project
9872 tree. In particular, this is used in the gprbuild builder to avoid a
9873 number of global tables and htables, especially now that there can be
9874 several project trees loaded at once because of aggregate projects.
9875 (Debug_Name): new procedure.
9876 * projects.texi: Clarify syntax of "**" for Source_Dirs
9877
9878 2011-08-03 Emmanuel Briot <briot@adacore.com>
9879
9880 * prj.ads, makeutl.adb, makeutl.ads (Queue.Insert): now also inserts
9881 the "roots" for a main.
9882 (Fill_From_Project): add support for aggregate projects. Main units
9883 in aggregated projects are now automatically added in the list of
9884 files to build (although this fails later on in gprbuild, because
9885 these files are not using the root proejct tree, so this needs
9886 further cleanup)
9887 * gcc-interface/Make-lang.in: Update dependencies.
9888
9889 2011-08-03 Yannick Moy <moy@adacore.com>
9890
9891 * sem_ch4.adb (Analyze_Conditional_Expression): only allow boolean
9892 conditional expression in ALFA.
9893 * sem_res.adb (Resolve_Conditional_Expression): mark non-boolean
9894 expressions as not in ALFA.
9895
9896 2011-08-03 Robert Dewar <dewar@adacore.com>
9897
9898 * a-cofove.adb: Minor reformatting.
9899
9900 2011-08-03 Emmanuel Briot <briot@adacore.com>
9901
9902 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads
9903 (Insert_Project_Sources, Insert_withed_Sources_For): moved from the
9904 gprbuild sources.
9905 These packages are more logically placed in the Queue package, since
9906 they manipulate the queue. It is also likely that they can be adapted
9907 for gnatmake, thus sharing more code.
9908 (Finish_Program, Fail_Program): moved from the gprbuild sources, so
9909 that we could move the above.
9910
9911 2011-08-03 Emmanuel Briot <briot@adacore.com>
9912
9913 * errutil.adb (Finalize): clean up the list of error messages on exit.
9914 Calling this subprogram multiple times will no longer show duplicate
9915 error messages on stderr.
9916
9917 2011-08-03 Emmanuel Briot <briot@adacore.com>
9918
9919 * g-comlin.adb, g-comlin.ads (Set_Command_Line): ignore the parameter
9920 Getopt_Switches when we have already define a command line
9921 configuration.
9922
9923 2011-08-03 Yannick Moy <moy@adacore.com>
9924
9925 * sem_ch11.adb (Analyze_Raise_xxx_Error): do not mark such nodes as not
9926 in ALFA. Instead, they are considered as assertions to prove.
9927 * sem_ch4.adb (Analyze_Conditional_Expression): do not always mark such
9928 nodes as not in ALFA. Instead, include conditional expressions in ALFA
9929 if they have no ELSE part, or if they occur in pre- and postconditions,
9930 where the Condition cannot have side-effects in ALFA
9931 (Analyze_Membership_Op): do not mark such nodes as not in ALFA
9932 (Analyze_Type_Conversion): do not always mark such nodes as not in ALFA.
9933 Instead, include type conversion between scalar types in ALFA.
9934 * sem_ch6.adb (Process_Formals): correctly mark a parameter in ALFA
9935 if-and-only-if its type is in ALFA.
9936
9937 2011-08-03 Thomas Quinot <quinot@adacore.com>
9938
9939 * scos.adb, get_scos.adb, put_scos.adb
9940 New code letter for decisions: G (entry guard)
9941 * par_sco.adb
9942 (Traverse_Subprogram_Body): Rename to...
9943 (Traverse_Subprogram_Or_Task_Body): New subrpogram.
9944 (Traverse_Protected_Body): New subprogram
9945 (Traverse_Declarations_Or_Statements): Add traversal of task bodies,
9946 protected bodies and entry bodies.
9947
9948 2011-08-03 Yannick Moy <moy@adacore.com>
9949
9950 * einfo.adb, einfo.ads (Is_Postcondition_Proc): new flag for procedure
9951 entities with get/set subprograms, which is set on procedure entities
9952 generated by the compiler for a postcondition.
9953 * sem_ch6.adb (Process_PPCs): set new flag on postcondition procedures
9954 * alfa.adb, alfa.ads (Get_Entity_For_Decl): new function returning the
9955 entity for a declaration
9956 (Get_Unique_Entity_For_Decl): new function returning an entity which
9957 represents a declaration, so that matching spec and body have the same
9958 entity.
9959
9960 2011-08-03 Robert Dewar <dewar@adacore.com>
9961
9962 * a-except-2005.adb, a-cfhama.adb, a-cfhase.adb, a-cfhase.ads,
9963 a-cforma.adb, a-cforse.ads, a-cforse.adb: Minor reformatting
9964
9965 2011-08-03 Yannick Moy <moy@adacore.com>
9966
9967 * lib-xref-alfa.adb (Detect_And_Add_ALFA_Scope): make the subprogram
9968 library-level because retriction No_Implicit_Dynamic_Code in the
9969 front-end prevents its definition as a local subprogram
9970 (Traverse_Compilation_Unit): extract new procedure from Add_ALFA_File,
9971 for reuse in other contexts
9972 (Traverse_Declarations_Or_Statements,
9973 Traverse_Handled_Statement_Sequence, Traverse_Package_Body,
9974 Traverse_Package_Declaration, Traverse_Subprogram_Body): make all these
9975 procedures take a callback parameter to be called on all declarations
9976 * lib-xref.ads
9977 (Traverse_All_Compilation_Units): new generic function to traverse a
9978 compilation unit and call a callback parameter on all declarations
9979
9980 2011-08-03 Javier Miranda <miranda@adacore.com>
9981
9982 * sem_prag.adb (Process_Interface_Name): Allow duplicated export names
9983 in Java since they are always enclosed in a namespace that
9984 differentiates them, and overloaded entities are supported by the VM.
9985
9986 2011-08-03 Ed Schonberg <schonberg@adacore.com>
9987
9988 * checks.adb (Determine_Range): If a computed bound of an operation is
9989 outside the range of the base type of the expression, and overflow
9990 checks are enabled, the result is unknown and cannot be used for any
9991 subsequent constant folding.
9992 * sem_eval.adb (Compile_Time_Compare): if the bounds of one operand are
9993 unknown, so is the result of the comparison.
9994
9995 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
9996
9997 * a-except-2005.adb (Raise_From_Controlled_Operation): Add new formal
9998 From_Abort. When finalization was triggered by an abort, propagate
9999 Standard'Abort_Signal rather than Program_Error.
10000 * a-except-2005.ads (Raise_From_Controlled_Operation): Add new formal
10001 From_Abort.
10002 * a-except.adb (Raise_From_Controlled_Operation): Add new formal
10003 From_Abort. When finalization was triggered by an abort, propagate
10004 Standard'Abort_Signal rather than Program_Error.
10005 * a-except.ads:(Raise_From_Controlled_Operation): Add new formal
10006 From_Abort.
10007 * exp_ch7.adb:(Build_Adjust_Or_Finalize_Statements): New local variable
10008 Abort_Id. Update the calls to Build_Object_Declarations and
10009 Build_Raise_Statement to include Abort_Id.
10010 (Build_Adjust_Statements): New local variable Abort_Id. Update the
10011 calls to Build_Object_Declarations and Build_Raise_Statement to include
10012 Abort_Id.
10013 (Build_Finalize_Statements): New local variable Abort_Id. Update the
10014 calls to Build_Object_Declarations and Build_Raise_Statement to include
10015 Abort_Id.
10016 (Build_Components): Create an entity for Abort_Id when exceptions are
10017 allowed on the target.
10018 (Build_Finalizer): New local variable Abort_Id.
10019 (Build_Initialize_Statements): New local variable Abort_Id. Update the
10020 calls to Build_Object_Declarations and Build_Raise_Statement to include
10021 Abort_Id.
10022 (Build_Object_Declarations): Add new formal Abort_Id. Create the
10023 declaration of flag Abort_Id to preserve the original abort status
10024 before finalization code is executed.
10025 (Build_Raise_Statement): Add new formal Abort_Id. Pass Abort_Id to
10026 runtime routine Raise_From_Controlled_Operation.
10027 (Create_Finalizer): Update the call to Build_Raise_Statement to include
10028 Abort_Id. Update the call to Build_Object_Declarations to include
10029 Abort_Id. Update the layout of the finalizer body.
10030 (Make_Handler_For_Ctrl_Operation): Add an actual for From_Abort.
10031 (Process_Transient_Objects): New local variable Abort_Id. Remove the
10032 clunky code to create all flags and objects related to
10033 exception propagation and replace it with a call to
10034 Build_Object_Declarations. Update the call to Build_Raise_Statement to
10035 include Abort_Id.
10036 * exp_ch7.ads (Build_Object_Declarations): Moved from body to spec.
10037 Add new formal Abort_Id and associated comment on its use.
10038 (Build_Raise_Statement): Add new formal Abort_Id and associated comment
10039 on its use.
10040 * exp_intr.adb (Expand_Unc_Deallocation): New local variable Abort_Id.
10041 Remove the clunky code to create all flags and objects related to
10042 exception propagation and replace it with a call to
10043 Build_Object_Declarations. Update the call to Build_Raise_Statement.
10044
10045 2011-08-03 Eric Botcazou <ebotcazou@adacore.com>
10046
10047 * s-tassta.adb: Fix minor typos.
10048
10049 2011-08-03 Robert Dewar <dewar@adacore.com>
10050
10051 * rtsfind.ads, makeutl.ads, prj.ads, prj.adb, make.adb,
10052 lib-writ.adb, makeutl.adb, s-soflin.ads, clean.adb: Minor reformatting.
10053
10054 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
10055
10056 * exp_ch7.adb (Create_Finalizer): Treat freeze nodes in similar fashion
10057 to packages. This ensures that the finalizer body will not end up
10058 inside the freeze node.
10059 (Process_Declarations): Add code to detect whether a freeze node has a
10060 nested finalization collection.
10061
10062 2011-08-03 Pascal Obry <obry@adacore.com>
10063
10064 * g-awk.adb, g-awk.ads: Make GNAT.AWK API compatible with Ada 2005.
10065 (Current_Session): Return a not null access to Session_Type.
10066 (Default_Session): Likewise.
10067
10068 2011-08-03 Robert Dewar <dewar@adacore.com>
10069
10070 * a-cfdlli.adb, bindgen.adb, exp_ch4.adb, exp_ch13.adb, sem_warn.adb,
10071 exp_ch3.adb, exp_ch3.ads: Minor reformatting.
10072
10073 2011-08-03 Pascal Obry <obry@adacore.com>
10074
10075 * g-awk.ads: Minor comment fix.
10076
10077 2011-08-03 Sergey Rybin <rybin@adacore.com>
10078
10079 * tree_io.ads (ASIS_Version_Number): Update because of the changes in
10080 the tree structure related to discriminant constraints.
10081 Original_Discriminant cannot be used any more for computing the
10082 defining name for the reference to a discriminant.
10083
10084 2011-08-03 Ed Schonberg <schonberg@adacore.com>
10085
10086 * sem_disp.adb (Is_Tag_Indeterminate): If the return type of the
10087 function is not visibly tagged, this is not a dispatching call and
10088 therfore is not Tag_Indeterminate, even if the function is marked as
10089 dispatching on result.
10090
10091 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
10092
10093 * exp_ch13.adb: Add with and use clauses for Restrict and Rident.
10094 (Expand_N_Free_Statement): Add a guard to protect against run-times
10095 which do not support controlled types.
10096 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Add a guard to protect
10097 against run-times which do not support controlled types.
10098 * exp_ch4.adb (Complete_Controlled_Allocation): Add a guard to protect
10099 against run-times which do not support controlled types.
10100 * exp_ch7.adb (Build_Finalization_Collection): Add a guard to protect
10101 against run-times which do not support controlled types.
10102 * exp_util.adb (Needs_Finalization): Code reformatting. Add a guard to
10103 protect against run-times which do not support controlled types.
10104
10105 2011-08-03 Eric Botcazou <ebotcazou@adacore.com>
10106
10107 * exp_intr.adb: Put back with and use clauses for Exp_Ch11.
10108 (Expand_Unc_Deallocation): Expand the AT_END handler at the very end.
10109
10110 2011-08-03 Ed Schonberg <schonberg@adacore.com>
10111
10112 * exp_ch5.adb (Expand_Iterator_Loop): indicate that the cursor is
10113 modified in the source, to prevent spurious warnings when compiling
10114 with -gnatg.
10115
10116 2011-08-03 Thomas Quinot <quinot@adacore.com>
10117
10118 * a-except-2005.adb: Minor reformatting.
10119
10120 2011-08-03 Ed Schonberg <schonberg@adacore.com>
10121
10122 * sem_warn.adb (Check_One_Unit): if the only mention of a withed unit
10123 is a renaming declaration in the private part of a package, do not emit
10124 a warning that the with_clause could be moved because the renaming may
10125 be used in the body or in a child unit.
10126
10127 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
10128
10129 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
10130 Propagate the Comes_From_Source attribute from the original return
10131 object to the renaming.
10132
10133 2011-08-03 Jose Ruiz <ruiz@adacore.com>
10134
10135 * exp_ch7.adb (Build_Raise_Statement): Do not call
10136 Raise_From_Controlled_Operation when this routine is not present in
10137 the run-time library.
10138 (Cleanup_Protected_Object, Cleanup_Task): For restricted run-time
10139 libraries (Ravenscar), tasks are non-terminating, and protected objects
10140 and tasks can only appear at library level, so we do not want
10141 finalization of protected objects nor tasks.
10142 * exp_intr.adb: Minor clarification in comment.
10143 bindgen.adb (Gen_Adainit_Ada, Gen_Main_C, Gen_Output_File_Ada,
10144 Gen_Output_File_C): Remove references to finalization of library-level
10145 objects when using restricted run-time libraries.
10146
10147 2011-08-03 Ed Schonberg <schonberg@adacore.com>
10148
10149 * sem_ch3.adb (Build_Discriminant_Constraints): Set
10150 Original_Discriminant only if the parent type is a generic formal.
10151
10152 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
10153
10154 * exp_ch13.adb: Add with and use clause for Targparm;
10155 (Expand_N_Free_Statement): Prevent the generation of a custom
10156 Deallocate on .NET/JVM targets since this requires pools and address
10157 arithmetic.
10158 * exp_ch4.adb (Expand_Allocator_Expression): When compiling for
10159 .NET/JVM targets, attach the newly allocated object to the access
10160 type's finalization collection. Do not generate a call to
10161 Set_Finalize_Address_Ptr on .NET/JVM because this routine does not
10162 exist in the runtime.
10163 (Expand_N_Allocator): When compiling for .NET/JVM targets, do not
10164 create a custom Allocate for object that do not require initialization.
10165 Attach a newly allocated object to the access type's finalization
10166 collection on .NET/JVM.
10167 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add special processing for
10168 assignment of controlled types on .NET/JVM. The two hidden pointers
10169 Prev and Next and stored and later restored after the assignment takes
10170 place.
10171 * exp_ch6.adb (Expand_Call): Add local constant Curr_S. Add specialized
10172 kludge for .NET/JVM to recognize a particular piece of code coming from
10173 Heap_Management and change the call to Finalize into Deep_Finalize.
10174 * exp_ch7.adb (Build_Finalization_Collection): Allow the creation of
10175 finalization collections on .NET/JVM only for types derived from
10176 Controlled. Separate the association of storage pools with a collection
10177 and only allow it on non-.NET/JVM targets.
10178 (Make_Attach_Call): New routine.
10179 (Make_Detach_Call): New routine.
10180 (Process_Object_Declarations): Suppress the generation of
10181 build-in-place return object clean up code on .NET/JVM since it uses
10182 pools.
10183 * exp_ch7.ads (Make_Attach_Call): New routine.
10184 (Make_Detach_Call): New routine.
10185 * exp_intr.adb Add with and use clause for Targparm.
10186 (Expand_Unc_Deallocation): Detach a controlled object from a collection
10187 on .NET/JVM targets.
10188 * rtsfind.ads: Add entries RE_Attach, RE_Detach and
10189 RE_Root_Controlled_Ptr to tables RE_Id and RE_Unit_Table.
10190 * snames.ads-tmpl: Add name Name_Prev. Move Name_Prev to the special
10191 names used in finalization.
10192
10193 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
10194
10195 * a-fihema.adb: Add with and use clauses for System.Soft_Links.
10196 (Attach, Detach): Lock the current task when chaining an object onto a
10197 collection.
10198
10199 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
10200
10201 * a-except.adb, a-except-2005.adb (Raise_From_Controlled_Operation):
10202 Rewritten to create the message strings when the exception is not
10203 raised by an abort during finalization.
10204 * a-except.ads, a-except-2005.ads: Add pragma Export for procedure
10205 Raise_From_Controlled_Operation and update its associated comment.
10206 * a-fihema.ads, a-fihema.adb: New GNAT unit.
10207 Ada.Finalization.Heap_Management provides key functionality
10208 associated with controlled objects on the heap, their creation,
10209 finalization and reclamation. Type Finalization_Collection is
10210 effectively a wrapper which sits ontop of a storage pool and performs
10211 all necessary bookkeeping for all the objects it contains. Each
10212 access-to-controlled or access-to-class-wide type receives a collection
10213 as part of its expansion. The compiler generates buffer code and
10214 invokes Allocate / Deallocate to create and destroy allocated
10215 controlled objects.
10216 * a-finali.adb ("="): Removed.
10217 * a-finali.ads ("="): Removed. Controlled types no longer carry hidden
10218 fields Prev and Next.
10219 * ali.adb (Scan_ALI): Add parsing code to process PF / Has_Finalizer.
10220 A library unit with at least one controlled object on the library level
10221 has a special finalizer which is invoked by the binder. To signal this,
10222 ali files carry field PF.
10223 * ali.ads: New field in type Unit_Record called Has_Finalizer. Add
10224 associated comment on field usage.
10225 * a-tags.adb (Get_RC_Offset): Removed.
10226 (Needs_Finalization): New routine.
10227 * a-tags.ads: Update the structure of the GNAT dispatch tables.
10228 Dispatch tables now carry field Needs_Finalization which provides
10229 runtime indication whether a type is controlled or has controlled
10230 components or both. Remove field RC_Offset.
10231 (Get_RC_Offset): Removed along with its associated pragma Export.
10232 Since tagged types with controlled components no longer carry hidden
10233 field _controller, the special mechanism to retrieve its location is no
10234 longer needed.
10235 (Needs_Finalization): New routine.
10236 * atree.ads, atree.adb (Elist24): New routine.
10237 (Set_Elist24): New routine.
10238 * atree.h: Add a define clause for Elist24.
10239 * bindgen.adb New library-level variable Lib_Final_Built.
10240 (Gen_Adafinal_Ada): Reimplemented. Depending on the restrictions or the
10241 presence of a VM target, the routine generates calls to the proper
10242 library finalization routine.
10243 (Gen_Adainit_Ada): Import Finalize_Library_Objects only on non-VM
10244 targets. Set the correct library finalization routine depending on
10245 whether the library has controlled objects or this is a VM compilation.
10246 (Gen_Finalize_Library_Ada): New routine. This procedure generates calls
10247 to library-level finalizers of compiled units in reverse order of
10248 elaboration. It also produces exception management code and reraises a
10249 potential exception after all units have been finalized.
10250 (Gen_Finalize_Library_C): New routine. This procedure generates calls to
10251 library-level finalizers of compiled units in reverse order of
10252 elaboration.
10253 (Gen_Finalize_Library_Defs_C): New routine. This procedure generates the
10254 definitions of all library-level finalizers available to the compilation
10255 (Gen_Main_Ada): Directly call Adafinal which now contails all target
10256 dependent code.
10257 (Gen_Main_C): Add new local constant Needs_Library_Finalization. Call
10258 System.Standard_Library.Adafinal directly. If the library needs
10259 finalization actions, create the sequence of finalization calls.
10260 (Gen_Output_File_Ada): Alphabetize local variables and constants.
10261 Generate a with clause for System.Soft_Links when compiling for a VM.
10262 Remove the code which imports System.Standard_Library.Adafinal as
10263 Do_Finalize. Generate the library finalization routine.
10264 (Gen_Output_File_C): Add new local constant Needs_Library_Finalization.
10265 If the library needs finalization actions, create all the definitions
10266 of library- level finalizers.
10267 (Has_Finalizer): New routine. Determines whether at least one compiled
10268 unit has a library-level finalizer.
10269 Add type Qualification_Mode.
10270 (Set_Unit_Name): Add a formal which controls the replacement of a dot.
10271 * einfo.adb: New usage of field 15 as Return_Flag.
10272 Remove Finalization_Chain_Entity from the usages of field 19.
10273 Remove Associated_Final_Chain from the usages of field 23.
10274 New usage of field 23 as Associated_Collection.
10275 New usage of field 24 as Finalizer.
10276 New usage of flag 252 as Is_Processed_Transient.
10277 (Associated_Final_Chain): Removed.
10278 (Associated_Collection): New routine.
10279 (Finalization_Chain_Entity): Removed.
10280 (Finalizer): New routine.
10281 (Is_Finalizer): New routine.
10282 (Is_Processed_Transient): New routine.
10283 (Return_Flag): New routine.
10284 (Set_Associated_Final_Chain): Removed.
10285 (Set_Associated_Collection): New routine.
10286 (Set_Finalization_Chain_Entity): Removed.
10287 (Set_Finalizer): New routine.
10288 (Set_Is_Processed_Transient): New routine.
10289 (Set_Return_Flag): New routine.
10290 (Write_Entity_Flags): Include Is_Processed_Transient to the list of
10291 displayed flags.
10292 (Write_Field8_Name): Alphabetize the output.
10293 (Write_Field11_Name): Alphabetize the output.
10294 (Write_Field12_Name): Alphabetize the output.
10295 (Write_Field13_Name): Alphabetize the output.
10296 (Write_Field14_Name): Alphabetize the output.
10297 (Write_Field15_Name): Alphabetize the output.
10298 (Write_Field16_Name): Alphabetize the output.
10299 (Write_Field17_Name): Alphabetize the output.
10300 (Write_Field18_Name): Alphabetize the output.
10301 (Write_Field19_Name): Alphabetize the output. Remove the output of
10302 Finalization_Chain_Entity.
10303 (Write_Field20_Name): Alphabetize the output.
10304 (Write_Field21_Name): Alphabetize the output.
10305 (Write_Field22_Name): Alphabetize the output.
10306 (Write_Field23_Name): Alphabetize the output. Remove the output of
10307 Associated_Final_Chain. Add output for Associated_Collection.
10308 (Write_Field24_Name): Alphabetize the output.
10309 (Write_Field25_Name): Add output for Finalizer.
10310 (Write_Field26_Name): Alphabetize the output.
10311 (Write_Field27_Name): Alphabetize the output.
10312 (Write_Field28_Name): Alphabetize the output.
10313 * einfo.ads: Add new field description for Associated_Collection and
10314 its uses in nodes.
10315 Remove Associated_Final_Chain and its uses in nodes.
10316 Remove Finalization_Chain_Entity and its uses in nodes.
10317 Add new field description for Finalizer and its uses in nodes.
10318 Add new synthesized attribute Is_Finalizer.
10319 Add new flag description for Is_Processed_Transient and its uses in
10320 nodes.
10321 Add new field description for Return_Flag and its uses in nodes.
10322 (Associated_Final_Chain): Removed along with its pragma Inline.
10323 (Associated_Collection): New routine and pragma Inline.
10324 (Finalization_Chain_Entity): Removed along with its pragma Inline.
10325 (Finalizer): New routine and pragma Inline.
10326 (Is_Finalizer): New routine and pragma Inline.
10327 (Is_Processed_Transient): New routine and pragma Inline.
10328 (Return_Flag): New routine and pragma Inline.
10329 (Set_Associated_Final_Chain): Removed along with its pragma Inline.
10330 (Set_Associated_Collection): New routine and pragma Inline.
10331 (Set_Finalization_Chain_Entity): Removed along with its pragma Inline.
10332 (Set_Finalizer): New routine and pragma Inline.
10333 (Set_Is_Processed_Transient): New routine and pragma Inline.
10334 (Set_Return_Flag): New routine and pragma Inline.
10335 * exp_aggr.adb: Alphabetize subprograms.
10336 (Build_Array_Aggr_Code): Remove formal Flist and its associated comment.
10337 (Build_Record_Aggr_Code): Remove formals Flist and Obj along with their
10338 associated comments. Remove local variables External_Final_List and
10339 Attach.
10340 Rename Ctrl_Stuff_Done to Finalization_Done. Rename local variable A to
10341 Ancestor. Remove the retrieval of finalization lists. Update the call to
10342 Make_Adjust_Call.
10343 (Convert_Aggr_In_Allocator): Remove the retrieval of finalization
10344 lists. Update the call to Late_Expansion.
10345 (Convert_Aggr_In_Assignment): Update the call to Late_Expansion.
10346 (Convert_Aggr_In_Object_Decl): Update the call to Late_Expansion.
10347 (Gen_Assign): Remove the retrieval of the finalization list used to
10348 build the assignment. Update the calls to Make_Init_Call and
10349 Make_Adjust_Call.
10350 (Gen_Ctrl_Actions_For_Aggr): Renamed to Generate_Finalization_Actions.
10351 Remove the mechanism to determine attachment levels and finalization
10352 list retrieval. Remove the processing for coextensions.
10353 (Init_Controller): Removed. Controllers no longer exist.
10354 (Late_Expansion): Remove formals Flist and Obj along with their
10355 associated comments. Update the calls to Build_Record_Aggr_Code and
10356 Build_Array_Aggr_Code.
10357 * exp_ch13.adb (Expand_N_Free_Statement): New routine.
10358 (Expand_N_Freeze_Entity): Add special processing for finalizers which
10359 appear in entry bodies, protected subprograms and task bodies.
10360 * exp_ch13.ads (Expand_N_Free_Statement): New routine.
10361 * exp_ch3.adb (Add_Final_Chain): Removed.
10362 (Build_Array_Init_Proc): Alphabetize local variables.
10363 (Build_Assignment): Alphabetize local variables. Update the call to
10364 Maked_Adjust_Call.
10365 (Build_Class_Wide_Master): Rename local variables to better reflect
10366 their role.
10367 (Build_Discriminant_Assignments): Code reformatting.
10368 (Build_Init_Call_Thru): Code reformatting.
10369 (Build_Init_Procedure): Code reformatting. Generate a special version
10370 of Deep_Finalize which is capable of finalizing all initialized
10371 components and ignore the rest.
10372 (Build_Init_Statements): Rename local variables to better reflect their
10373 role.
10374 Reimplement the mechanism to include the creation and update of an index
10375 variable called a "counter". It is used as a bookmark for tracing
10376 initialized and non-initialized components.
10377 (Build_Initialization_Call): Remove local variable Controller_Typ.
10378 Alphabetize all local variables. Remove the initialization of the
10379 record controller and update the call to Make_Init_Call.
10380 (Build_Record_Init_Proc): Rename formal Pe to Rec_Ent.
10381 New local variable Counter.
10382 (Constrain_Array): Alphabetize.
10383 (Expand_Freeze_Array_Type): Create a collection instead of a
10384 finalization list.
10385 (Expand_Freeze_Class_Wide_Type): New routine. Creates TSS primitive
10386 Finalize_Address which is used in conjunction with allocated controlled
10387 objects.
10388 (Expand_N_Object_Declaration): Remove the creation of a finalization
10389 list for anonymous access types. Update the calls to Make_Init_Call and
10390 Make_Adjust_Call.
10391 (Expand_Freeze_Record_Type): Remove local variable Flist. Remove the
10392 retrieval of finalization lists. Remove the expansion of the record
10393 controller. Create TSS primitive Finalize_Address used in conjunction
10394 with controlled objects on the heap. Create finalization collections
10395 for access-to-controlled record components.
10396 (Expand_Record_Controller): Removed.
10397 (Freeze_Type): Remove the freezing of record controllers. Freezing of
10398 class-wide types now requires additional processing. Create
10399 finalization collections for access-to-controlled types.
10400 (Increment_Counter): New routine.
10401 (Make_Counter): New routine.
10402 (Make_Eq_If): Remove the mention of Name_uController.
10403 (Make_Predefined_Primitive_Specs): There is no longer need to skip
10404 types coming from System.Finalization_Root.
10405 (Predef_Deep_Spec): Reimplemented to reflect the new parameter profiles.
10406 (Predefined_Primitive_Bodies): There is no longer need to skip types
10407 coming from System.Finalization_Root.
10408 (Stream_Operation_OK): Do not generate stream routines for
10409 type Ada.Finalization.Heap_Management.Finalization_Collection.
10410 * exp_ch3.ads: Alphabetize subprograms.
10411 * exp_ch4.adb: Remove with and use clause for Sem_Ch8.
10412 Add with and use clause for Lib.
10413 (Complete_Coextension_Finalization): Removed.
10414 (Complete_Controlled_Allocation): New routine. Create a finalization
10415 collection for anonymous access-to-controlled types. Create a custom
10416 Allocate which interfaces with the back end and the machinery in
10417 Heap_Management.
10418 (Expand_Allocator_Expression): Add necessary calls to
10419 Complete_Controlled_Allocation. Remove the retrieval of finalization
10420 lists. Update the calls to Make_Adjust_Call. Generate a call to
10421 Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate
10422 the associated collection.
10423 (Expand_N_Allocator): Remove the processing for dynamic coextensions.
10424 Code clean up. Remove the retrieval of finalization lists and
10425 attachment levels.
10426 Update the call to Make_Init_Call. Generate a call to
10427 Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate
10428 the associated collection.
10429 (Get_Allocator_Final_List): Removed. Finalization lists are not
10430 available.
10431 (Suitable_Element): Remove the mention of Name_uController.
10432 * exp_ch5.adb: Remove with and use clauses for Ttypes and Uintp.
10433 (Make_Tag_Ctrl_Assignment): Rewritten to simply do a finalization of
10434 the left hand side, carry out the assignment and adjust the left hand
10435 side.
10436 * exp_ch6.adb (Add_Final_List_Actual_To_Build_In_Place_Call): Removed.
10437 (Add_Collection_Actual_To_Build_In_Place_Call): New routine.
10438 (BIP_Formal_Suffix): Rename BIP_Final_List and BIPfinallist to
10439 BIP_Collection and BIPcollection.
10440 (Build_Heap_Allocator): New routine used to allocate the return object
10441 of a build-in-place function onto a collection.
10442 (Expand_Ctrl_Function_Call): Moved from Exp_Ch7.
10443 (Expand_Call): Do not replace direct calls to Deep routines with their
10444 aliases.
10445 (Expand_N_Extended_Return_Statement): Give all variables shorter names
10446 and update their occurrences. Add a special return flag to monitor the
10447 [ab]normal execution of the function. The flag is set right before the
10448 return statement.
10449 Rewrite the mechanism used to allocate a build-in-place return object
10450 on the heap or on a storage pool.
10451 (Is_Direct_Deep_Call): New routine.
10452 (Make_Build_In_Place_Call_In_Allocator): Add a collection to a
10453 build-in-place function call instead of a final list. Build a call to
10454 Set_Finalize_Address_Ptr to decorate the associated collection.
10455 (Make_Build_In_Place_Call_In_Anonymous_Context): Create a temporary in
10456 order to name the build-in-place function call's result for later
10457 finalization. Add a collection to a build-in-place function call
10458 instead of a final list.
10459 (Make_Build_In_Place_Call_In_Assignment): Add a collection to a
10460 build-in-place function call instead of a final list. Remove the code
10461 which moves one final list and transforms it into the actual in a
10462 nested build-in-place call.
10463 (Make_Build_In_Place_Call_In_Object_Declaration): Add a collection to a
10464 build-in-place function call instead of a final list.
10465 (Move_Final_List): Removed.
10466 (Needs_BIP_Collection): New routine.
10467 (Needs_BIP_Final_List): Removed.
10468 * exp_ch6.ads: Replace BIP_Final_List with BIP_Collection in
10469 enumeration type BIP_Formal_Kind.
10470 Update the related comment.
10471 (Needs_BIP_Collection): New routine.
10472 (Needs_BIP_Final_List): Removed.
10473 * exp_ch7.adb: Add with and use clauses for Elists, Exp_Ch6, Stringt
10474 and Ttypes. Remove with and use clauses for Sem_Type. Alphabetize the
10475 majority of subprograms in this unit. Add Name_Finalize_Address to
10476 array Name_Of and TSS_Finalize_Address to array Deep_Name_Of.
10477 (Build_Adjust_Or_Finalize_Statements): Create the adjust or finalization
10478 statements for an array type.
10479 (Build_Adjust_Statements): Create the adjust statements for a record
10480 type.
10481 (Build_Cleanup_Statements): New routine. A procedure which given any
10482 construct containing asynchronous calls, references to _master, or is a
10483 task body, a task allocation or a protected body produces the necessary
10484 runtime calls to clean up these constructs.
10485 (Build_Exception_Handler): New routine.
10486 (Build_Final_List): Removed.
10487 (Build_Finalization_Collection): New routine. A core procedure which
10488 creates a collection to service heap allocated controlled objects
10489 associated with an access-to-controlled type.
10490 (Build_Finalize_Statements): Create the finalization statements for a
10491 record types.
10492 (Build_Finalizer): New routine. A core procedure which given any
10493 construct with declarations and/or statements detects all objects which
10494 need any type of clean up (controlled objects, protected objects) and
10495 generates all necessary code to clean up the said objects in the proper
10496 order.
10497 (Build_Finalizer_Call): New routine.
10498 (Build_Initialize_Statements): Create the initialization statements for
10499 an array type. The generated routine contains code to finalize partially
10500 initialized arrays.
10501 (Build_Object_Declarations): New routine.
10502 (Build_Raise_Statement): New routine.
10503 (Clean_Simple_Protected_Objects): Removed.
10504 (Controller_Component): Removed.
10505 (Enclosing_Function): New routine.
10506 (Expand_Cleanup_Actions): Create a finalizer for a construct which has
10507 either declarations or statements or both.
10508 (Expand_N_Package_Body): Create a finalizer for a non-generic package.
10509 (Expand_N_Package_Declaration): Create a finalizer for a non-generic
10510 package.
10511 (Find_Final_List): Removed.
10512 (Global_Flist_Ref): Removed.
10513 (In_Finalization_Root): Removed.
10514 (Insert_Actions_In_Scope_Around): Determine the range of the transient
10515 scope in terms of tree nodes. Process all transient variables within
10516 that range.
10517 (Make_Adjust_Call): Rewritten. There is no longer an attach call
10518 generated after the adjust.
10519 (Make_Attach_Call): Removed.
10520 (Make_Call): New routine.
10521 (Make_Clean): Removed.
10522 (Make_Deep_Array_Body): Rewritten to simply invoke the appropriate
10523 build routines.
10524 (Make_Deep_Proc): Rewritten to generate the new profile signature used
10525 in Deep routines.
10526 (Make_Deep_Record_Body): Rewritten to simply invoke the appropriate
10527 build routines.
10528 (Make_Final_Call): Modified to simply create a call to either
10529 Deep_Finalize or Finalize.
10530 (Make_Finalize_Address_Body): New routine.
10531 (Make_Finalize_Address_Stmts): New routine. A function which produces
10532 TSS primitive Finalize_Address used in conjunction with heap allocated
10533 controlled objects.
10534 (Make_Handler_For_Ctrl_Operation): Add specialized code for .NET/JVM.
10535 (Make_Init_Call): Rewritten. There is no longer an attach call
10536 generated after initialization.
10537 (Make_Local_Deep_Finalize): New routine.
10538 (Make_Set_Finalize_Address_Ptr_Call): New routine.
10539 (Make_Transient_Block): Remove the finalization list retrieval and
10540 manipulation.
10541 (Needs_Finalization): Moved to Exp_Util.
10542 (Parent_Field_Type): New routine.
10543 (Preprocess_Components): New routine.
10544 (Process_Transient_Objects): New routine.
10545 (Wrap_HSS_In_Block): New routine.
10546 (Wrap_Transient_Declaration): Remove finalization list management and
10547 controller insertion.
10548 (Wrap_Transient_Expression): Code reformatting.
10549 (Wrap_Transient_Statement): Code reformatting.
10550 * exp_ch7.ads (Build_Final_List): Removed.
10551 (Build_Finalization_Collection): New routine.
10552 (Build_Raise_Statement): New routine.
10553 (Controller_Component): Removed.
10554 (Expand_Ctrl_Function_Call): Moved to Exp_Ch6.
10555 (Find_Final_List): Removed.
10556 (In_Finalization_Root): Removed.
10557 (Is_Simple_Protected_Type): Update related comment.
10558 (Make_Adjust_Call): New parameter profile and associated comments.
10559 (Make_Attach_Call): Removed.
10560 (Make_Final_Call): New parameter profile and associated comments.
10561 (Make_Finalize_Address_Body): New routine.
10562 (Make_Init_Call): New parameter profile and associated comments.
10563 (Make_Local_Deep_Finalize): New routine.
10564 (Make_Set_Finalize_Address_Ptr_Call): New routine.
10565 (Needs_Finalization): Moved to Exp_Util.
10566 * exp_ch9.adb (Add_Object_Pointer): Code reformatting.
10567 (Expand_N_Protected_Body): Remove the handling of finalization lists.
10568 (Find_Protection_Type): Moved to Exp_Util.
10569 * exp_disp.adb: Remove with and use clauses for Exp_Ch7.
10570 (Make_DT): Update sequence of dispatch table initialization. Remove the
10571 initialization of field RC_Offset. Add initialization of field Needs_
10572 Finalization.
10573 * exp_intr.adb (Expand_Unc_Deallocation): Code reformatting.
10574 Reimplement how an object is first finalized, then deallocated.
10575 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function):
10576 Code reformatting.
10577 * exp_tss.ads: Add special suffix for TSS primitive Finalize_Address.
10578 Register TSS_Finalize_Address with type TSS_Names.
10579 * exp_util.adb (Build_Allocate_Deallocate_Proc): New routine. This core
10580 procedure provides the interface between an allocation / deallocation
10581 and the support machinery in Ada.Finalization.Heap_Management.
10582 (Find_Init_Call): Code reformatting.
10583 (Find_Init_Call_In_List): Code reformatting.
10584 (Find_Protection_Type): Moved from Exp_Ch9.
10585 (Find_Prim_Op): Reimplement to add preference of recovered primitive.
10586 (Has_Controlled_Coextensions): Removed.
10587 (Has_Controlled_Objects): New routine.
10588 (In_Library_Level_Package_Body): New routine.
10589 (Insert_Action_After): New routine.
10590 (Is_Finalizable_Transient): New routine. This predicate determines
10591 whether an object declaration is one of the many variants of controlled
10592 transients.
10593 (Is_Null_Access_BIP_Func_Call): New routine.
10594 (Is_Non_BIP_Func_Call): New routine.
10595 (Is_Related_To_Func_Return): New routine.
10596 (Needs_Finalization): Moved from Exp_Ch7.
10597 * exp_util.ads (Build_Allocate_Deallocate_Proc): New routine.
10598 (Find_Protection_Type): Moved from Exp_Ch9.
10599 (Has_Controlled_Coextensions): Removed.
10600 (Has_Controlled_Objects): New routine.
10601 (In_Library_Level_Package_Body): New routine.
10602 (Insert_Action_After): New routine.
10603 (Is_Finalizable_Transient): New routine.
10604 (Is_Null_Access_BIP_Func_Call): New routine.
10605 (Is_Non_BIP_Func_Call): New routine.
10606 (Is_Related_To_Func_Return): New routine.
10607 (Needs_Finalization): Moved from Exp_ch7.
10608 * expander.adb (Expand): Add a case for N_Free_Statement.
10609 * freeze.adb (Freeze_All): Replace the generation of a finalization
10610 list with a collection for access-to-controlled types.
10611 (Freeze_Entity): Code reformatting.
10612 (Freeze_Record_Type): Remove the freezing of a record controller
10613 component.
10614 (Freeze_Subprogram): Code reformatting.
10615 * inline.adb (Cleanup_Scopes): Remove the reset of the scope
10616 finalization list.
10617 * lib-writ.adb (Write_Unit_Information): Output "PF" when a package
10618 has a library-level finalizer.
10619 * lib-writ.ads: Add "PF" to the sequence of unit attributes.
10620 * a-filico.ads, a-filico.adb, s-finimp.ads, s-finimp.adb: Removed.
10621 * Makefile.rtl: Remove a-filico and s-finimp from the list of object
10622 files. Add a-fihema to the list of object files.
10623 * par-ch4.adb:
10624 Alphabetize the associations in type Is_Parameterless_Attribute.
10625 * rtsfind.ads: Ada.Finalization_List.Controller and
10626 System.Finalization_Implementation are no longer a GNAT unit.
10627 Update the range of type Ada_Finalization_Child. Remove the following
10628 recoverable entities:
10629
10630 RE_Attach_To_Final_List
10631 RE_Deep_Tag_Attach
10632 RE_Finalize_List
10633 RE_Finalize_One
10634 RE_Finalizable_Ptr_Ptr
10635 RE_Global_Final_List
10636 RE_Limited_Record_Controller
10637 RE_List_Controller
10638 RE_Move_Final_List
10639 RE_Record_Controller
10640 RE_Simple_List_Controller
10641
10642 Add the following recoverable entities:
10643
10644 RE_Add_Offset_To_Address
10645 RE_Allocate
10646 RE_Base_Pool
10647 RE_Deallocate
10648 RE_Exception_Identity
10649 RE_Finalization_Collection
10650 RE_Finalization_Collection_Ptr
10651 RE_Needs_Finalization
10652 RE_Save_Library_Occurrence
10653 RE_Set_Finalize_Address_Ptr
10654 RE_Set_Storage_Pool_Ptr
10655 RE_Storage_Count
10656 * sem_aggr.adb (Resolve_Record_Aggregate): Remove mention of
10657 Name_uController.
10658 * sem_aux.adb (First_Discriminant): Remove mention of Name_uController.
10659 (First_Stored_Discriminant): Remove the mention of Name_uController.
10660 * sem_aux.ads: Comment reformatting.
10661 * sem_ch10.adb (Build_Chain): Signal the class-wide creation machinery
10662 to redecorate an already existing class-wide type.
10663 (Decorate_Tagged_Type): New parameter profile and associated comment.
10664 Create a "shadow class-wide type" for a shadow entity.
10665 * sem_ch11.adb (Analyze_Exception_Handlers): Remove the dubious setting
10666 of the final chain along with the associated comment.
10667 * sem_ch3.adb (Access_Type_Declaration): Add new local variable
10668 Full_Desig and set it to the full view of the designated type.
10669 Initialize the finalization collection to empty.
10670 (Build_Derived_Record_Type): Alphabetize local variables. Code
10671 reformatting.
10672 (Collect_Fixed_Components): Remove the mention of Name_uController.
10673 (Create_Constrained_Components): Remove the mention of Name_uController.
10674 (Make_Class_Wide_Type): Add specialized code to redecorate an existing
10675 class-wide type of a shadow entity.
10676 (Process_Full_View): Update the machinery which marks type
10677 Limited_Controlled's entity as limited.
10678 * sem_ch4.adb (Analyze_One_Call): Code reformatting.
10679 * sem_ch6.adb (Create_Extra_Formals): Do not generate a finalization
10680 list, instead make a collection build-in-place formal.
10681 * sem_ch8.adb (Analyze_Object_Renaming): Look at the available view of
10682 a designated type in order to establish a match between the renaming
10683 and the renamed entity.
10684 (Find_Selected_Component): Add guard to prevent spurious exceptions
10685 from being raised on .NET/JVM.
10686 * sem_disp.adb (Check_Dispatching_Operation): Include Finalize_Address
10687 to the list of primitive that need special processing. Update arrays
10688 C_Names and D_Names.
10689 (Replace_Types): Handle class-wide types.
10690 * sem_elab.adb (Check_A_Call): Since Deep_Initialize now has a
10691 different parameter profile, look at the first formal.
10692 * sem_prag.adb: Remove with and use clauses for Exp_Ch7. Add with and
10693 use clauses for Exp_Util.
10694 * sem_res.adb: Remove with and use clauses for Elists.
10695 (Propagate_Coextensions): Removed.
10696 (Resolve_Allocator): Do not propagate the list of coextensions from one
10697 allocator to another.
10698 * sem_util.adb (Build_Actual_Subtype_Of_Component): Rename variable
10699 Deaccessed_T to Desig_Typ.
10700 (Enter_Name): Remove the mention of Name_uController.
10701 (Gather_Components): Remove the mention of Name_uController.
10702 (Incomplete_Or_Private_View): New routine.
10703 (Is_Coextension_Root): Removed.
10704 (Is_Fully_Initialized_Type): Remove the mention of Name_uController.
10705 * sem_util.ads (Incomplete_Or_Private_View): New routine.
10706 (Is_Coextension_Root): Removed.
10707 * s-finroo.ads: Remove with clause for Ada.Unchecked_Conversion.
10708 Controlled types are now derived from a null tagged record. Remove
10709 types Finalizable_Ptr, Finalizable and Empty_Root_Controlled.
10710 * sinfo.adb (Coextensions): Removed.
10711 (Set_Coextensions): Removed.
10712 * sinfo.ads: Remove Coextensions from the explanation of node fields
10713 and its uses in nodes.
10714 Update the field usage of N_Allocator.
10715 (Coextensions): Removed along with its pragma Inline.
10716 (Set_Coextensions): Removed along with its pragma Inline.
10717 * snames.ads-tmpl: Remove names
10718
10719 Name_uClean
10720 Name_uController
10721 Name_uFinal_List
10722 Name_uLocal_Final_List
10723 Name_Finalization_Root
10724 Name_Next
10725 Name_Prev
10726
10727 Add names
10728
10729 Name_uFinalizer
10730 Name_Finalize_Address
10731 * s-pooglo.adb (Allocate): Add overriding indicator.
10732 (Deallocate): Add overriding indicator.
10733 (Storage_Size): Add overriding indicator.
10734 * s-soflin.adb (Adafinal_NT): Invoke Finalize_Library_Objects rather
10735 than Finalize_Global_List.
10736 (Null_Finalize_Global_List): Removed.
10737 (Save_Library_Occurrence): New routine.
10738 * s-soflin.ads: Remove variable Finalize_Global_List along with its
10739 initialization. Add variable Finalize_Library_Objects along with its
10740 pragma Export. Add variables Library_Exception and
10741 Library_Exception_Set along with their pragma Export.
10742 (Null_Finalize_Global_List): Removed.
10743 (Save_Library_Occurrence): New routine.
10744 * s-tassta.adb (Finalize_Global_Tasks): Call Finalize_Library_Objects
10745 rather than Finalize_Global_List.
10746 * tbuild.adb (Unchecked_Convert_To): Capture and set the parent field
10747 of the constructed node.
10748
10749 2011-08-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10750
10751 * link.c: Include "auto-host.h" before system headers.
10752
10753 2011-08-03 Vincent Celier <celier@adacore.com>
10754
10755 * make.adb (Gnatmake): Add to table Library_Projs only library projects
10756 that are not extended. Do not check if a library project that is
10757 extended should be regenerated. Do not add to table Library_Paths the
10758 libraries that are in extended projects. Link only with libraries that
10759 are in libray projects that are not extended.
10760 * prj-nmsc.adb (Check_Library_Attributes): Do not reset flag Library
10761 for a library project that is extended.
10762
10763 2011-08-03 Gary Dismukes <dismukes@adacore.com>
10764
10765 * sem_ch6.adb (Find_Corresponding_Spec): When in an instance, skip
10766 conforming subprogram renamings that appear to be completions if they
10767 are not fully conformant.
10768 Such renamings are homographs but not completions.
10769 * sem_type.adb (Disambiguate): Handle disambiguation of overloaded
10770 names in a subprogram renaming that appears in an instance.
10771
10772 2011-08-03 Ed Schonberg <schonberg@adacore.com>
10773
10774 * exp_util.adb (Expand_Subtype_From_Expr): if the type is limited but
10775 not immutably limited, build actual subtype from expression to provide
10776 proper bounds to caller.
10777
10778 2011-08-03 Gary Dismukes <dismukes@adacore.com>
10779
10780 * sem_ch8.adb: Minor comment correction.
10781
10782 2011-08-03 Thomas Quinot <quinot@adacore.com>
10783
10784 * exp_strm.adb (Build_Array_Input_Function): In Ada 2005 mode, when
10785 returning a limited array, use an extended return statement.
10786
10787 2011-08-03 Vincent Celier <celier@adacore.com>
10788
10789 * make.adb (Initialize): If --subdirs= is used, but no project file is
10790 specified, attempt to create the specify subdir if it does not already
10791 exist and use it as the object directory as if -D had been specified.
10792
10793 2011-08-03 Arnaud Charlet <charlet@adacore.com>
10794
10795 * s-tpopsp-vms.adb: New file.
10796 * s-taprop-vms.adb: Put back ATCB_Key, since needed by this file on VMS.
10797 * gcc-interfaces/Makefile.in: Use s-taprop-vms.adb on VMS.
10798
10799 2011-08-03 Emmanuel Briot <briot@adacore.com>
10800
10801 * make.adb, makeutl.adb, makeutl.ads, clean.adb (Makeutl.Queue): new
10802 package.
10803
10804 2011-08-03 Yannick Moy <moy@adacore.com>
10805
10806 * cstand.adb (Create_Standard): select Universal_Integer as an ALFA type
10807 * sem_ch3.adb (Array_Type_Declaration): detect array types in ALFA
10808 * sem_util.adb, sem_util.ads (Has_Static_Array_Bounds): new function to
10809 detect that an array has static bounds.
10810
10811 2011-08-03 Thomas Quinot <quinot@adacore.com>
10812
10813 * exp_dist.adb: Minor reformatting.
10814
10815 2011-08-03 Arnaud Charlet <charlet@adacore.com>
10816
10817 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-vms.adb
10818 (ATCB_Key): Removed, not always used.
10819
10820 2011-08-03 Emmanuel Briot <briot@adacore.com>
10821
10822 * gnatcmd.adb, make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads,
10823 clean.adb, prj-conf.adb, prj-env.adb, prj-env.ads (Makeutl): remove
10824 most remaining global variables.
10825
10826 2011-08-03 Robert Dewar <dewar@adacore.com>
10827
10828 * gnatcmd.adb, prj-proc.adb, mlib-prj.adb, prj.adb, makeutl.ads,
10829 prj-util.adb, prj-util.ads, prj-conf.adb, prj-env.adb: Minor
10830 reformatting.
10831
10832 2011-08-03 Javier Miranda <miranda@adacore.com>
10833
10834 * exp_util.adb (Is_VM_By_Copy_Actual): Include N_Slide nodes as actuals
10835 that must be passed by copy in VM targets.
10836
10837 2011-08-03 Emmanuel Briot <briot@adacore.com>
10838
10839 * prj.ads, prj-nmsc.adb (Files_Htable): removed this htable, which
10840 duplicates a similar htable now in the project tree.
10841
10842 2011-08-03 Claire Dross <dross@adacore.com>
10843
10844 * a-cfdlli.adb, a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb,
10845 a-cofove.adb ("=", Length, Is_Empty, Clear, Assign, Copy, Element,
10846 Replace_Element, Query_Element, Update_Element, Move, Insert, Prepend,
10847 Append, Delete, Delete_First, Delete_Last, Reverse_Element, Swap,
10848 Splice, First, First_Element, Last, Last_Element, Next, Previous, Find,
10849 Reverse_Find, Contains, Has_Element, Iterate, Reverse_Iterate, Capacity,
10850 Reserve_Length, Length, Strict_Equal, Left, Right): Data-structure
10851 update.
10852
10853 2011-08-03 Arnaud Charlet <charlet@adacore.com>
10854
10855 * s-taprop-posix.adb, s-taprop-linux.adb, s-taprop-tru64.adb
10856 (ATCB_Key): Removed, not always used.
10857 * s-tpopsp-posix.adb, s-tpopsp-posix-foreign.adb (ATCB_Key): Moved from
10858 s-taprop-posix.adb.
10859 * s-tpopsp-tls.adb: New file.
10860 * gcc-interface/Makefile.in: Use TLS implementation of s-tpopsp.adb on
10861 x86/x64/ia64/powerpc/sparc Linux.
10862
10863 2011-08-03 Arnaud Charlet <charlet@adacore.com>
10864
10865 * system-aix.ads, system-aix64.ads: Set ZCX_By_Default to True.
10866 * gcc-interface/Makefile.in: Switch to ZCX by default on AIX ports.
10867
10868 2011-08-03 Thomas Quinot <quinot@adacore.com>
10869
10870 * rtsfind.ads, exp_dist.adb, exp_dist.ads
10871 (Build_From_Any_Call, Build_To_Any_Call, Build_TypeCode_Call):
10872 Fix type selection for mapping integer types to PolyORB types.
10873
10874 2011-08-03 Bob Duff <duff@adacore.com>
10875
10876 * sem_ch7.adb: Minor comment clarification.
10877
10878 2011-08-03 Bob Duff <duff@adacore.com>
10879
10880 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): If we get
10881 an error analyzing a choice, skip further processing. Further
10882 processing could cause a crash or cascade errors.
10883
10884 2011-08-03 Emmanuel Briot <briot@adacore.com>
10885
10886 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, mlib-prj.adb,
10887 prj.adb, prj.ads, makeutl.adb, makeutl.ads, clean.adb, prj-nmsc.adb,
10888 prj-util.adb, prj-util.ads, prj-conf.adb, prj-conf.ads, prj-env.adb,
10889 prj-env.ads (Shared_Project_Tree_Data): new type
10890 An aggregate project and its aggregated trees need to share the common
10891 data structures used for lists of strings, packages,... This makes the
10892 code simpler since otherwise we have to pass the root tree (also used
10893 for the configuration file data) in addition to the current project
10894 tree. This also avoids ambiguities as to which tree should be used.
10895 And finally this saves a bit of memory.
10896 (For_Every_Project_Imported): new parameter Tree.
10897 Since aggregated projects are using a different tree, we need to let
10898 the caller know which tree to use to manipulate the returned project.
10899
10900 2011-08-03 Robert Dewar <dewar@adacore.com>
10901
10902 * prj-proc.adb, exp_util.ads, exp_ch9.adb, make.adb, prj-ext.adb,
10903 prj-ext.ads, alfa.ads, sem_ch4.adb, makeutl.adb, makeutl.ads,
10904 lib-xref-alfa.adb, sem_cat.adb, exp_dist.adb, get_alfa.adb,
10905 prj-env.adb, prj-env.ads, prj-tree.adb, alfa.ads: Minor reformatting.
10906
10907 2011-08-03 Javier Miranda <miranda@adacore.com>
10908
10909 * exp_util.adb, sem_aux.adb, exp_util.ads, sem_aux.ads:
10910 Move routine Is_VM_By_Copy_Actual from sem_aux to exp_util.
10911
10912 2011-08-03 Bob Duff <duff@adacore.com>
10913
10914 * sem_ch8.adb (Is_Primitive_Operator_In_Use): Always check In_Use on
10915 the Base_Type.
10916
10917 2011-08-03 Joel Brobecker <brobecker@adacore.com brobecker>
10918
10919 * g-sha256.ads, g-sha512.ads, g-sha1.ads, g-sha224.ads, g-sha384.ads,
10920 g-sehash.ads: Fix typo. Update header.
10921
10922 2011-08-03 Thomas Quinot <quinot@adacore.com>
10923
10924 * exp_ch6.adb (Expand_Actuals): Remove Ada_2005 guard on build-in-place
10925 expansion.
10926
10927 2011-08-03 Gary Dismukes <dismukes@adacore.com>
10928
10929 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): Consider
10930 prefixes of private types along with records, since the selector may be
10931 a discriminant.
10932 * sem_res.adb (Resolve_Selected_Component): Consider prefixes of
10933 private types along with records, since the selector may be a
10934 discriminant.
10935
10936 2011-08-03 Emmanuel Briot <briot@adacore.com>
10937
10938 * prj-pp.adb (Pretty_Print): Remove trailing blank line.
10939
10940 2011-08-03 Javier Miranda <miranda@adacore.com>
10941
10942 * sem_aux.adb (Is_VM_By_Copy_Actual): Fix wrong use of
10943 Tagged_Type_Expansion.
10944
10945 2011-08-03 Yannick Moy <moy@adacore.com>
10946
10947 * sem_res.adb (Resolve_Op_Concat_Arg): Do not issue a SPARK
10948 violation when the argument of concatenation is the name of a
10949 constant.
10950
10951 2011-08-03 Emmanuel Briot <briot@adacore.com>
10952
10953 * prj-proc.adb, prj-ext.adb, prj-ext.ads, prj-env.adb, prj-env.ads,
10954 prj-tree.adb, prj-tree.ads (Initialize_And_Copy, Copy): new subprograms
10955 (Process_Declarative_Items): new parameter Child_Env.
10956
10957 2011-08-03 Yannick Moy <moy@adacore.com>
10958
10959 * alfa.ads: Update format of ALFA section in ALI file in order to
10960 add a mapping from bodies to specs when both are present.
10961 (ALFA_Scope_Record): Add components for spec file/scope.
10962 * get_alfa.adb (Get_ALFA): Read the new file/scope for spec when
10963 present.
10964 * lib-xref-alfa.adb (Collect_ALFA): After all scopes have been
10965 collected, fill in the spec information when relevant.
10966 * put_alfa.adb (Put_ALFA): Write the new file/scope for spec when
10967 present.
10968
10969 2011-08-03 Eric Botcazou <ebotcazou@adacore.com>
10970
10971 * inline.adb (Add_Inlined_Subprogram): Do not consider the enclosing
10972 code unit to decide whether to add internally generated subprograms.
10973
10974 2011-08-03 Javier Miranda <miranda@adacore.com>
10975
10976 * sem_aux.ads, sem_aux.adb (Is_VM_By_Copy_Actual): New subprogram.
10977 * exp_ch9.adb (Build_Simple_Entry_Call): Handle actuals that must
10978 be handled by copy in VM targets.
10979
10980 2011-08-03 Emmanuel Briot <briot@adacore.com>
10981
10982 * make.adb, makeutl.adb, makeutl.ads (Make.Switches_Of): Share
10983 code with Makeutl.Get_Switches.
10984 * prj-tree.adb: Update comment.
10985
10986 2011-08-03 Thomas Quinot <quinot@adacore.com>
10987
10988 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Reject a remote
10989 subprogram with a limited formal that does not support external
10990 streaming.
10991
10992 2011-08-03 Yannick Moy <moy@adacore.com>
10993
10994 * get_alfa.adb (Get_ALFA): add missing Skip_Spaces at start of
10995 continuation line
10996 * lib-xref-alfa.adb (Add_ALFA_File): split removal of scopes that are
10997 not from current unit in two phases, because it is not possible to
10998 change the table while iterating over its content.
10999 * put_alfa.adb (Put_ALFA): reset current file/scope at each new entity
11000
11001 2011-08-03 Sergey Rybin <rybin@adacore.com>
11002
11003 * vms_data.ads: Add qualifier for gnatmetric --no-static-loop option
11004 * gnat_ugn.texi: Update description of complexity metrics (gnatmetric)
11005
11006 2011-08-03 Ed Schonberg <schonberg@adacore.com>
11007
11008 * sem_res.adb (Resolve_Op_Concat_Arg): if the argument is an aggregate
11009 and the component type is composite, this is ambiguous for predefined
11010 concatenation, but if the node is not overloaded and the entity is a use
11011 -defined function its profile can be used to resolve that aggregate.
11012
11013 2011-08-03 Robert Dewar <dewar@adacore.com>
11014
11015 * exp_ch4.adb: Minor code cleanup.
11016
11017 2011-08-03 Thomas Quinot <quinot@adacore.com>
11018
11019 * exp_dist.adb: Do not generate distribution stubs if serious errors
11020 have been diagnosed.
11021
11022 2011-08-03 Ed Schonberg <schonberg@adacore.com>
11023
11024 * sem_ch4.adb (Try_Primitive_Operation): when checking the validity of
11025 the first formal of a primitive operation, go to the base type to
11026 handle properly an access to a derived type with constrained
11027 discriminants.
11028 * sem_type.adb (Disambiguate): an immediately visible operator hides a
11029 user-defined function that is only use-visible.
11030
11031 2011-08-03 Robert Dewar <dewar@adacore.com>
11032
11033 * sem_aggr.adb, sem_ch3.adb, lib.ads, gnatcmd.adb, prj-proc.adb,
11034 make.adb, lib-writ.adb, prj-part.adb, prj-part.ads, prj-ext.adb,
11035 fname-uf.adb, prj-ext.ads, prj.adb, prj.ads, sem_attr.adb, alfa.adb,
11036 prj-makr.adb, errout.adb, makeutl.adb, makeutl.ads, restrict.ads,
11037 sem_ch6.adb, g-pehage.adb, clean.adb, put_alfa.adb, lib-xref-alfa.adb,
11038 prj-nmsc.adb, prj-nmsc.ads, sem_ch8.adb, prj-pars.ads, exp_aggr.adb,
11039 prj-attr.ads, sem_ch13.adb, get_alfa.adb, prj-env.adb, prj-env.ads,
11040 alfa_test.adb, prj-tree.adb, prj-tree.ads, einfo.ads: Minor reformatting
11041
11042 2011-08-03 Robert Dewar <dewar@adacore.com>
11043
11044 * repinfo.adb (List_Mechanism): Add handling of
11045 Convention_Ada_Pass_By_XXX.
11046 * sem_mech.adb (Set_Mechanism): Ditto.
11047 * sem_prag.adb (Process_Convention): Add entries for
11048 Convention_Ada_Pass_By_XXX.
11049 * snames.adb-tmpl, snames.ads-tmpl: Ditto.
11050
11051 2011-08-03 Pascal Obry <obry@adacore.com>
11052
11053 * makeutl.adb: Minor reformatting.
11054
11055 2011-08-03 Vincent Celier <celier@adacore.com>
11056
11057 * fname-uf.adb
11058 (Get_File_Name) If the file cannot be found when there are no config
11059 pragmas file and May_Fail is True, return No_File instead of the file
11060 name, to be consistent.
11061
11062 2011-08-03 Pascal Obry <obry@adacore.com>
11063
11064 * adaint.c (__gnat_is_executable_file_attr): Avoid access
11065 to null pointer.
11066
11067 2011-08-03 Javier Miranda <miranda@adacore.com>
11068
11069 * sem_ch13.adb
11070 (Same_Representation): In VM targets the representation of arrays with
11071 aliased components differs from arrays with non-aliased components.
11072
11073 2011-08-03 Emmanuel Briot <briot@adacore.com>
11074
11075 * prj-proc.adb, prj-attr.adb, prj-attr.ads (Get_Attribute_Index): do
11076 not systematically lower case attribute indexes that contain no "."
11077 Fix definition of several Naming attributes, which take
11078 a unit name as index and therefore should be case insensitive.
11079 Minor refactoring (reduce length of variable names).
11080
11081 2011-08-03 Emmanuel Briot <briot@adacore.com>
11082
11083 * makeutl.adb, makeutl.ads (Get_Switches): new subprogram.
11084
11085 2011-08-03 Emmanuel Briot <briot@adacore.com>
11086
11087 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
11088 prj-part.ads, switch-m.adb, switch-m.ads, prj-makr.adb, clean.adb,
11089 prj-pars.adb, prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
11090 prj-tree.ads (Prj.Tree.Environment): new type.
11091
11092 2011-08-03 Emmanuel Briot <briot@adacore.com>
11093
11094 * prj-proc.adb, prj.ads, makeutl.adb, makeutl.ads, prj-conf.adb,
11095 prj-tree.adb, prj-tree.ads (Environment): new type.
11096
11097 2011-08-03 Emmanuel Briot <briot@adacore.com>
11098
11099 * prj-tree.ads: Remove unused variable.
11100
11101 2011-08-03 Yannick Moy <moy@adacore.com>
11102
11103 * restrict.adb (Restriction_Msg): set "SPARK" all in upper case for
11104 issuing messages related to SPARK restriction violation.
11105
11106 2011-08-03 Ed Schonberg <schonberg@adacore.com>
11107
11108 * sem_ch6.adb: guard against error nodes in return statements.
11109
11110 2011-08-03 Arnaud Charlet <charlet@adacore.com>
11111
11112 * errout.adb (Error_Msg_Internal): the main unit has not been read yet,
11113 a warning can only appear on a configuration file, so emit warning
11114 without further checks.
11115
11116 2011-08-03 Arnaud Charlet <charlet@adacore.com>
11117
11118 * s-interr.ads: add overriding keyword.
11119
11120 2011-08-03 Geert Bosch <bosch@adacore.com>
11121
11122 * exp_attr.adb: Fix minor typo.
11123
11124 2011-08-03 Ed Schonberg <schonberg@adacore.com>
11125
11126 * par-ch4.adb: improve error recovery.
11127
11128 2011-08-03 Emmanuel Briot <briot@adacore.com>
11129
11130 * prj-part.adb, prj-part.ads, prj-makr.adb, prj-pars.adb, prj-conf.adb,
11131 prj-env.adb (Prj.Part.Parse): change parameter Always_Errout_Finalize
11132 to Errout_Handling.
11133
11134 2011-08-03 Emmanuel Briot <briot@adacore.com>
11135
11136 * prj-dect.adb (Parse_Attribute_Declaration): make sure we can use
11137 "external" as an attribute name in aggregate projects.
11138
11139 2011-08-03 Jose Ruiz <ruiz@adacore.com>
11140
11141 * s-taprop-vxworks.adb: (Create_Task, Initialize): Ada 2012 pragma CPU
11142 uses CPU numbers starting 1, while VxWorks uses CPU numbers starting
11143 from 0, so we need to adjust.
11144
11145 2011-08-03 Emmanuel Briot <briot@adacore.com>
11146
11147 * prj-proc.adb, prj-ext.adb, prj-ext.ads, makeutl.adb, prj-tree.adb,
11148 prj-tree.ads, gnatcmd.adb, clean.adb (External_References): new type.
11149
11150 2011-08-03 Yannick Moy <moy@adacore.com>
11151
11152 * sem_ch6.adb (New_Overloaded_Entity): only issue error for SPARK
11153 restriction on overloaded entity if the entity is not an operator.
11154
11155 2011-08-03 Yannick Moy <moy@adacore.com>
11156
11157 * sem_ch7.adb, sem_res.adb, sem_attr.adb, restrict.adb,
11158 restrict.ads: Rename remaining Check_Formal_Restriction* into
11159 Check_SPARK_Restriction*.
11160
11161 2011-08-03 Emmanuel Briot <briot@adacore.com>
11162
11163 * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb,
11164 prj-nmsc.ads, prj-err.adb (Project_Data): now discriminated on its
11165 qualifier.
11166 (Project_Empty): removed
11167 (Empty_Project): new parameter Qualifier
11168 This is used to have fields specific to aggregate projects, cleaner
11169 New field to store the list of aggregated projects.
11170 (Check_Aggregate_Project): removed
11171 (Process_Aggregated_Projects, Free): new subprograms.
11172
11173 2011-08-03 Olivier Hainque <hainque@adacore.com>
11174
11175 * tracebak.c (STOP_FRAME ppc AIX): Stop at null return address as well.
11176
11177 2011-08-03 Ed Schonberg <schonberg@adacore.com>
11178
11179 * sem_ch8.adb (Analyze_Object_Renaming): if the renamed object is an
11180 explicit dereference of an unconstrained type, create a constrained
11181 subtype for it, as is done for function calls that return an
11182 unconstrained type.
11183
11184 2011-08-03 Thomas Quinot <quinot@adacore.com>
11185
11186 * g-pehage.adb (Finalize): Avoid possible double-free.
11187
11188 2011-08-03 Steve Baird <baird@adacore.com>
11189
11190 * exp_attr.adb (Expand_N_Attribute_Reference): Don't expand
11191 Elab_Spec/Body attrs in CodePeer_Mode.
11192
11193 2011-08-03 Javier Miranda <miranda@adacore.com>
11194
11195 * exp_aggr.adb (Flatten): Convert to positional form aggregates whose
11196 low bound is not known at compile time but they have no others choice.
11197 Done because in this case the bounds can be obtained directly from the
11198 aggregate.
11199
11200 2011-08-03 Ed Falis <falis@adacore.com>
11201
11202 * s-tasinf-vxworks.ads: Update comment to reflect 0 indexing of CPUs
11203 on VxWorks SMP. Remove unusable constant ANY_CPU.
11204
11205 2011-08-03 Emmanuel Briot <briot@adacore.com>
11206
11207 * gnatcmd.adb, make.adb, prj-part.adb, prj-part.ads, prj-makr.adb,
11208 clean.adb, prj-nmsc.adb, prj-pars.adb, prj-conf.adb, prj-env.adb,
11209 prj-env.ads (Prj.Env.Initialize_Default_Project_Path,
11210 Prj.Env.Initialize_Empty): new subprograms
11211 (Get_Env, Find_Project): remove parameter Target_Name.
11212
11213 2011-08-03 Gary Dismukes <dismukes@adacore.com>
11214
11215 * sem_ch3.adb (Build_Derived_Record_Type): Test the Derive_Subps formal
11216 as a condition for the delayed call to Derived_Subprograms done for the
11217 case of the rewriting of a derived type that constrains the
11218 discriminants of its parent type.
11219 Avoids redundant subprogram derivations for private subtype derivations.
11220
11221 2011-08-03 Javier Miranda <miranda@adacore.com>
11222
11223 * exp_aggr.adb (Init_Hidden_Discriminants): New subprogram of
11224 Build_Record_Aggr_Code.
11225 (Build_Record_Aggr_Code): Add missing support to initialize hidden
11226 discriminants in extension aggregates.
11227
11228 2011-08-03 Emmanuel Briot <briot@adacore.com>
11229
11230 * prj-pp.adb (Print): also output project qualifiers, since in
11231 particular "aggregate" is mandatory in an aggregate project.
11232
11233 2011-08-03 Emmanuel Briot <briot@adacore.com>
11234
11235 * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb:
11236 (Debug_Output): new function.
11237
11238 2011-08-03 Eric Botcazou <ebotcazou@adacore.com>
11239
11240 * gnat_ugn.texi: Document -Wstack-usage.
11241 * gcc-interface/misc.c (enumerate_modes): Add guard for ghost FP modes.
11242
11243 2011-08-03 Thomas Quinot <quinot@adacore.com>
11244
11245 * sem_prag.adb Issue an error (not a warning) when a C++ type does not
11246 have keyword LIMITED.
11247
11248 2011-08-03 Yannick Moy <moy@adacore.com>
11249
11250 * alfa.adb, alfa.ads, alfa_test.adb: New files.
11251 * ali.adb (Known_ALI_Lines): add 'C' lines (SCO) and 'F' lines (ALFA)
11252 (Scan_ALI): do not issue a fatal error if parsing known lines after Xref
11253 section (does not happen in compiler, only if code directly calls
11254 Scan_ALI).
11255 * get_alfa.adb, get_alfa.ads: New files.
11256 * lib-writ.adb, lib-writ.ads (Write_ALI): output ALFA information if
11257 needed.
11258 * lib-xref-alfa.adb: New file.
11259 * lib-xref.adb, lib-xref.ads
11260 (Xref_Entry): redefine information needed in cross-references for ALFA.
11261 Push ALFA treatments in separated local package.
11262 (Enclosing_Subpragram_Or_Package): treat specially subprogram
11263 identifiers. Return entity of package body instead of spec. Return
11264 Empty for a scope with no location.
11265 (Generate_Reference): adapt to new components for ALFA information.
11266 Remove the need for D references on definitions.
11267 (Is_Local_Reference): moved to ALFA local package
11268 (Output_References): extract subfunction as Extract_Source_Name
11269 (Output_Local_References): remove procedure, replaced by filtering of
11270 cross-references in package ALFA and printing in Put_ALFA.
11271 (Write_Entity_Name): remove procedure
11272 * lib.adb, lib.ads (Extract_Source_Name): extract here function to
11273 print exact name of entity as it appears in source file
11274 (Unit_Ref_Table): make type public for use in Lib.Xref.ALFA
11275 * put_alfa.adb, put_alfa.ads: New files.
11276 * xref_lib.adb (Search_Xref): protect read of cross-references against
11277 reading other sections of the ALI file, in gnatxref
11278 (Search): protect read of cross-references against reading other
11279 sections of the ALI file, in gnatfind.
11280 * gcc-interface/Make-lang.in: Update dependencies.
11281
11282 2011-08-03 Thomas Quinot <quinot@adacore.com>
11283
11284 * sem_ch3.adb: Minor reformatting.
11285
11286 2011-08-03 Jose Ruiz <ruiz@adacore.com>
11287
11288 * s-inmaop-vxworks.adb (Setup_Interrupt_Mask): Do nothing instead of
11289 raising an exception.
11290
11291 2011-08-03 Ed Schonberg <schonberg@adacore.com>
11292
11293 * sem_res.adb (Set_String_Literal_Subtype): if index type is an integer
11294 type, always use 1 as the lower bound or string, even if lower bound of
11295 context is not static, to handle properly null strings in a non-static
11296 context.
11297
11298 2011-08-03 Bob Duff <duff@adacore.com>
11299
11300 * sem_prag.adb (Resolve_Aggregate): An array aggregate with 'others' is
11301 always legal on the right-hand side of an assignment statement; there
11302 is always an applicable index constraint in this case. Therefore, the
11303 check for Pkind = N_Assignment_Statement is now unconditional -- it
11304 doesn't depend on whether Is_Constrained (Typ).
11305
11306 2011-08-03 Robert Dewar <dewar@adacore.com>
11307
11308 * exp_ch5.adb, sem_prag.adb, exp_ch4.adb: Minor reformatting.
11309
11310 2011-08-03 Ed Schonberg <schonberg@adacore.com>
11311
11312 * sem_ch3.adb (Build_Itype_Reference): do not create an itype reference
11313 for an itype created within a generic unit.
11314
11315 2011-08-03 Eric Botcazou <ebotcazou@adacore.com>
11316
11317 * gnat_ugn.texi (Switches for gcc): Make it clearer that -fno-inline
11318 suppresses all inlining.
11319
11320 2011-08-03 Robert Dewar <dewar@adacore.com>
11321
11322 * sem_ch3.adb, sem_res.adb, exp_ch13.adb, exp_disp.adb,
11323 exp_aggr.adb: Minor reformatting.
11324
11325 2011-08-03 Thomas Quinot <quinot@adacore.com>
11326
11327 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not force inlining of
11328 tagged assignment when discriminant checks are suppressed. This is
11329 useless and extremely costly in terms of static stack usage.
11330
11331 2011-08-03 Bob Duff <duff@adacore.com>
11332
11333 * sem_prag.adb (Get_Base_Subprogram): Do not follow Alias for instances
11334 of generics, because this leads to the wrong entity in the wrong scope,
11335 causing (e.g.) pragma Export_Procedure to get an error if the entity is
11336 an instance.
11337 (Process_Interface_Name): Follow Alias for instances of generics, to
11338 correct for the above change.
11339
11340 2011-08-03 Ed Schonberg <schonberg@adacore.com>
11341
11342 * exp_ch4.adb (Expand_N_Selected_Component): If the discriminant value
11343 is an integer literal it is always safe to replace the reference. In
11344 addition, if the reference appears in the generated code for an object
11345 declaration it is necessary to copy because otherwise the reference
11346 might be to the uninitilized value of the discriminant of the object
11347 itself.
11348
11349 2011-08-03 Pascal Obry <obry@adacore.com>
11350
11351 * adaint.c (__gnat_is_executable_file_attr): Fix Win32 circuitry when no
11352 ACL used, in this case we want to check for ending .exe, not .exe
11353 anywhere in the path.
11354
11355 2011-08-03 Sergey Rybin <rybin@adacore.com>
11356
11357 * tree_io.ads (ASIS_Version_Number): Update because of the changes in
11358 the tree structure (semantic decoration of references to record
11359 discriminants).
11360
11361 2011-08-03 Gary Dismukes <dismukes@adacore.com>
11362
11363 * sem_aggr.adb (Analyze_Array_Aggregate): When checking the discrete
11364 choices of a named array aggregate, bail out when any choices are
11365 marked as Errors_Posted.
11366
11367 2011-08-03 Ed Schonberg <schonberg@adacore.com>
11368
11369 * exp_ch13.adb (Expand_N_Freeze_Entity): cleanup determination of scope
11370 in which entity is frozen, to handle properly loop variables in
11371 iterators.
11372
11373 2011-08-03 Ed Schonberg <schonberg@adacore.com>
11374
11375 * sem_res.adb (Set_String_Literal_Subtype): if the lower bound of the
11376 subtype is not static, compute the upper bound using attributes, to
11377 handle properly index types that are not integer types.
11378
11379 2011-08-03 Bob Duff <duff@adacore.com>
11380
11381 * gnat_rm.texi, gnat_ugn.texi: Fix some dangling URLs.
11382 Update copyright notice.
11383
11384 2011-08-03 Ed Schonberg <schonberg@adacore.com>
11385
11386 * sem_ch3.adb (Build_Discriminant_Constraints): Only use
11387 Original_Discriminant if within an instance.
11388 * sem_ch4.adb (Analyze_Selected_Component): Ditto.
11389
11390 2011-08-03 Thomas Quinot <quinot@adacore.com>
11391
11392 * einfo.ads: Minor reformatting.
11393
11394 2011-08-03 Ed Schonberg <schonberg@adacore.com>
11395
11396 * exp_disp.adb (Check_Premature_Freezing): diagnose the presence of a
11397 composite type with an unfrozen subcomponent, in the profile of a
11398 primitive operation.
11399
11400 2011-08-03 Robert Dewar <dewar@adacore.com>
11401
11402 * sem_util.ads, exp_aggr.adb, exp_ch3.adb: Minor reformatting.
11403
11404 2011-08-03 Ed Schonberg <schonberg@adacore.com>
11405
11406 * sem_ch3.adb (Analyze_Object_Declaration): if a constant object of an
11407 unconstrained type with discriminants is initialized with an aggregate,
11408 use the constrained subtype of the aggregate as the type of the object,
11409 because it is immutable, and this allows the back-end to generate no
11410 code for the object declaration.
11411
11412 2011-08-03 Robert Dewar <dewar@adacore.com>
11413
11414 * exp_ch4.adb (Optimize_Length_Check): Fix bad handling of case where
11415 comparison operand is variable, and turns out to be zero or negative.
11416
11417 2011-08-03 Javier Miranda <miranda@adacore.com>
11418
11419 * exp_intr.adb
11420 (Expand_Dispatching_Constructor_Call): Disable expansion of
11421 code required for native targets. Done to avoid generating
11422 references to unavailable runtime entities in VM targets.
11423 * exp_ch3.adb
11424 (Expand_N_Object_Declaration): Add missing support to handle
11425 the explicit initialization of class-wide interface objects.
11426 Fix documentation.
11427
11428 2011-08-03 Matthew Heaney <heaney@adacore.com>
11429
11430 * a-cobove.adb (Merge): Move source onto target, instead of using
11431 Assign.
11432
11433 2011-08-03 Matthew Heaney <heaney@adacore.com>
11434
11435 * a-cbdlli.adb (Splice): Move source items from first to last.
11436
11437 2011-08-03 Yannick Moy <moy@adacore.com>
11438
11439 * sem_util.ads: Add comment.
11440
11441 2011-08-03 Javier Miranda <miranda@adacore.com>
11442
11443 * exp_aggr.adb
11444 (Expand_Record_Aggregate): In VM targets disable the expansion into
11445 assignments of aggregates whose type is not known at compile time.
11446
11447 2011-08-03 Ed Schonberg <schonberg@adacore.com>
11448
11449 * exp_ch9.adb (Build_Renamed_Formal_Declaration): common procedure for
11450 protected entries and task entries, to build the proper renaming
11451 declaration for entry formals, used in debugging.
11452 * exp_ch2.adb (Expand_Entry_Parameter): handle task and entry
11453 parameters in the same way.
11454
11455 2011-08-02 Robert Dewar <dewar@adacore.com>
11456
11457 * a-direct.adb, sinfo.ads, exp_ch9.adb, scng.adb, sem_util.adb,
11458 sem_util.ads, restrict.ads, par-prag.adb: Minor reformatting and/or
11459 code reorganization.
11460
11461 2011-08-02 Robert Dewar <dewar@adacore.com>
11462
11463 * debug.adb: Debug flag d.P to suppress length comparison optimization
11464 * exp_ch4.adb (Optimize_Length_Comparison): New routine to optimize
11465 comparison of Length by comparing First/Last instead.
11466
11467 2011-08-02 Matthew Heaney <heaney@adacore.com>
11468
11469 * a-cobove.ads: Code clean up.
11470
11471 2011-08-02 Vincent Celier <celier@adacore.com>
11472
11473 * adaint.c (file_names_case_sensitive_cache): New static int.
11474 (__gnat_get_file_names_case_sensitive): Cache the return value in
11475 file_names_case_sensitive_cache at the first invocation, to avoid
11476 multiple calls to getenv.
11477
11478 2011-08-02 Bob Duff <duff@adacore.com>
11479
11480 * sem_ch12.adb (Validate_Derived_Type_Instance): Implement AI05-0218-1.
11481
11482 2011-08-02 Yannick Moy <moy@adacore.com>
11483
11484 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem.ads,
11485 sem_util.adb, sem_util.ads, sem_res.adb, sem_ch2.adb, sem_ch4.adb,
11486 sem_ch6.adb, sem_ch11.adb: Add semantic flag In_Pre_Post_Expression to
11487 indicate that we are in a precondition or postcondition. This is used in
11488 Mark_Non_ALFA_Subprogram (renaming of Mark_Non_ALFA_Subprogram_Body) to
11489 decide whether to flag the spec or body of the current subprogram as
11490 not in ALFA.
11491
11492 2011-08-02 Fabien Chouteau <chouteau@adacore.com>
11493
11494 * impunit.adb: Add Ada.Execution_Time.Interrupts in the Ada2012 package
11495 list.
11496 * a-extiin.ads: New file.
11497
11498 2011-08-02 Bob Duff <duff@adacore.com>
11499
11500 * a-direct.adb (Rename): Implement AI05-0231-1. In particular, Rename
11501 now raises Name_Error instead of Use_Error in certain cases. The other
11502 parts of this AI were already implemented properly.
11503
11504 2011-08-02 Vincent Celier <celier@adacore.com>
11505
11506 * link.c: Only import "auto-host.h" when building the gnattools.
11507
11508 2011-08-02 Yannick Moy <moy@adacore.com>
11509
11510 * sem_util.adb: Inter-unit inlining does not work for a subprogram
11511 which calls a local subprogram, so extract subprogram
11512 from Mark_Non_ALFA_Subprogram_Body.
11513
11514 2011-08-02 Javier Miranda <miranda@adacore.com>
11515
11516 * exp_ch9.adb
11517 (Extract_Dispatching_Call): If the type of the dispatching object is an
11518 access type then return an explicit dereference in the Object out-mode
11519 parameter.
11520
11521 2011-08-02 Gary Dismukes <dismukes@adacore.com>
11522
11523 * sem_ch3.adb (Analyze_Subtype_Declaration): Generate range
11524 compatibility checks for all indexes of an array subtype, not just the
11525 first. Reset Has_Dynamic_Range_Check on the subtype before each
11526 potential check to ensure that Insert_Range_Checks will not elide any
11527 of the dynamic checks.
11528
11529 2011-08-02 Yannick Moy <moy@adacore.com>
11530
11531 * par-prag.ad (Process_Restrictions_Or_Restriction_Warnings): recognize
11532 SPARK restriction at parsing time.
11533 * scng.adb (Scan): Generate a token Tok_SPARK_Hide for a SPARK HIDE
11534 directive only if the SPARK restriction is set for this unit.
11535
11536 2011-08-02 Yannick Moy <moy@adacore.com>
11537
11538 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb, sem_util.ads,
11539 sem_res.adb, sem_ch2.adb, sem_ch4.adb, sem_ch6.adb,
11540 sem_ch11.adb: Protect call to Current_Subprogram which might be costly
11541 when repeated. Rename Current_Subprogram_Is_Not_In_ALFA into
11542 Mark_Non_ALFA_Subprogram_Body.
11543 Split body of Mark_Non_ALFA_Subprogram_Body to get body small and
11544 inlined.
11545
11546 2011-08-02 Yannick Moy <moy@adacore.com>
11547
11548 * sem_res.adb: Protect calls to Matching_Static_Array_Bounds which
11549 might be costly.
11550
11551 2011-08-02 Robert Dewar <dewar@adacore.com>
11552
11553 * exp_ch9.adb, exp_sel.adb, restrict.ads, exp_disp.adb, erroutc.ads,
11554 exp_ch3.adb: Minor reformatting.
11555
11556 2011-08-02 Emmanuel Briot <briot@adacore.com>
11557
11558 * adaint.c (__gnat_locate_exec_on_path): only returns executable
11559 files, not any regular file.
11560 (__gnat_locate_file_with_predicate): new subprogram.
11561
11562 2011-08-02 Yannick Moy <moy@adacore.com>
11563
11564 * sinfo.adb, sinfo.ads: Restrict the use of flags
11565 Has_Dynamic_Length_Check and Has_Dynamic_Range_Check to expression
11566 nodes, plus N_Subtype_Declaration for the 2nd one.
11567
11568 2011-08-02 Sergey Rybin <rybin@adacore.com>
11569
11570 * gnat_rm.texi: Ramification of pragma Eliminate documentation
11571 - fix bugs in the description of Source_Trace;
11572 - get rid of UNIT_NAME;
11573
11574 2011-08-02 Javier Miranda <miranda@adacore.com>
11575
11576 * exp_ch9.adb
11577 (Build_Dispatching_Requeue): Adding support for VM targets
11578 since we cannot directly reference the Tag entity.
11579 * exp_sel.adb (Build_K): Adding support for VM targets.
11580 (Build_S_Assignment): Adding support for VM targets.
11581 * exp_disp.adb
11582 (Default_Prim_Op_Position): In VM targets do not restrict availability
11583 of predefined interface primitives to compiling in Ada 2005 mode.
11584 (Is_Predefined_Interface_Primitive): In VM targets this service is not
11585 restricted to compiling in Ada 2005 mode.
11586 (Make_VM_TSD): Generate code that declares and initializes the OSD
11587 record. Needed to support dispatching calls through synchronized
11588 interfaces.
11589 * exp_ch3.adb
11590 (Make_Predefined_Primitive_Specs): Enable generation of predefined
11591 primitives associated with synchronized interfaces.
11592 (Make_Predefined_Primitive_Bodies): Enable generation of predefined
11593 primitives associated with synchronized interfaces.
11594
11595 2011-08-02 Yannick Moy <moy@adacore.com>
11596
11597 * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of
11598 statements hidden in SPARK if preceded by the HIDE directive
11599 (Parse_Exception_Handlers): mark each exception handler in a sequence of
11600 exception handlers as hidden in SPARK if preceded by the HIDE directive
11601 * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK
11602 if starting with the HIDE directive
11603 * par-ch7.adb (P_Package): mark a package body hidden in SPARK if
11604 starting with the HIDE directive; mark the declarations in a private
11605 part as hidden in SPARK if the private part starts with the HIDE
11606 directive
11607 * restrict.adb, restrict.ads
11608 (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK
11609 (Is_In_Hidden_Part_In_SPARK): new function which returns whether its
11610 argument node belongs to a part which is hidden in SPARK
11611 (Check_SPARK_Restriction): do not issue violations on nodes in hidden
11612 parts in SPARK; protect the possibly costly call to
11613 Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on
11614 * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration
11615 * scng.adb (Accumulate_Token_Checksum_GNAT_6_3,
11616 Accumulate_Token_Checksum_GNAT_5_03): add case for new token
11617 Tok_SPARK_Hide.
11618 (Scan): recognize special comment starting with '#' and followed by
11619 SPARK keyword "hide" as a HIDE directive.
11620
11621 2011-08-02 Yannick Moy <moy@adacore.com>
11622
11623 * types.ads, erroutc.ads: Minor reformatting.
11624
11625 2011-08-02 Vincent Celier <celier@adacore.com>
11626
11627 * link.c: Add response file support for cross platforms.
11628
11629 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11630
11631 * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression
11632 in an association, set parent field of copy before partial analysis.
11633 * sem_res.adb (Resolve_Slice): create reference to itype only when
11634 expansion is enabled.
11635
11636 2011-08-02 Yannick Moy <moy@adacore.com>
11637
11638 * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set
11639 for new flag denoting which subprogram bodies are in ALFA
11640 * restrict.adb, sem_ch7.adb: Update comment
11641 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
11642 sem_ch9.adb, sem_res.adb: Add calls to
11643 Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs.
11644 * sem_ch6.adb (Analyze_Function_Return): add calls to
11645 Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the
11646 middle of the body, and extended return.
11647 (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument
11648 False when missing return.
11649 (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA
11650 to True for subprograms whose spec is in ALFA. Remove later on the flag
11651 on the entity used for a subprogram body when there exists a separate
11652 declaration.
11653 * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA):
11654 if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to
11655 False, otherwise do nothing.
11656
11657 2011-08-02 Robert Dewar <dewar@adacore.com>
11658
11659 * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
11660
11661 2011-08-02 Yannick Moy <moy@adacore.com>
11662
11663 * sem_ch4.ads: minor formatting.
11664
11665 2011-08-02 Yannick Moy <moy@adacore.com>
11666
11667 * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb,
11668 debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb,
11669 errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb,
11670 restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb,
11671 opt.ads: cleanup of SPARK mode
11672
11673 2011-08-02 Yannick Moy <moy@adacore.com>
11674
11675 * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard
11676 types.
11677 * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities
11678 (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA
11679 * sem_ch3.adb
11680 (Analyze_Object_Declaration): set Is_In_ALFA flag for objects
11681 (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes
11682 (Constrain_Integer): set Is_In_ALFA flag for integer subtypes
11683 (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration
11684 types.
11685 (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with
11686 non-static range.
11687 * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for
11688 functions whose return type is not in ALFA.
11689 (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram
11690 specifications.
11691 (Process_Formals): unset Is_In_ALFA flag for subprograms if a
11692 parameter's type is not in ALFA.
11693 * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard
11694 types are in ALFA.
11695
11696 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11697
11698 * sem_ch6 (Analyze_Expression_Function): treat the function as
11699 Inline_Always, and introduce a subprogram declaration for it when it is
11700 not a completion.
11701 * inline.adb (Add_Inlined_Body): recognize bodies that come from
11702 expression functions, so that the back-end can determine whether they
11703 can in fact be inlined.
11704 * sem_util.adb (Is_Expression_Function): predicate to determine whether
11705 a function body comes from an expression function.
11706
11707 2011-08-02 Gary Dismukes <dismukes@adacore.com>
11708
11709 * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming
11710 null exclusions to test Can_Never_Be_Null on the anonymous access types
11711 of the formals rather than testing the formals themselves. Exclude this
11712 check in cases where the Old_Formal is marked as a controlling formal,
11713 to avoid issuing spurious errors for bodies completing dispatching
11714 operations (due to the flag not getting set on controlling access
11715 formals in body specs).
11716 (Find_Corresponding_Spec): When checking full and subtype conformance of
11717 subprogram bodies in instances, pass Designated and E in that order, for
11718 consistency with the expected order of the formals (New_Id followed by
11719 Old_Id).
11720
11721 2011-08-02 Robert Dewar <dewar@adacore.com>
11722
11723 * sem_ch8.adb: Minor reformatting.
11724
11725 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11726
11727 * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure
11728 Check_Class_Wide_Actual, to implement AI05-0071, on defaulted
11729 primitive operations of class-wide actuals.
11730
11731 2011-08-02 Javier Miranda <miranda@adacore.com>
11732
11733 * exp_atag.ads, exp_atag.adb
11734 (Build_Common_Dispatching_Select_Statements): Remove argument Loc
11735 since its value is implicitly passed in argument Typ.
11736 * exp_disp.adb (Make_Disp_Conditional_Select_Body,
11737 Make_Disp_Timed_Select_Body): Remove Loc in calls to routine
11738 Build_Common_Dispatching_Select_Statements.
11739
11740 2011-08-02 Robert Dewar <dewar@adacore.com>
11741
11742 * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads,
11743 exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments.
11744 Minor reformatting.
11745
11746 2011-08-02 Robert Dewar <dewar@adacore.com>
11747
11748 * sem_res.adb: Minor reformatting.
11749 * sem_prag.adb: Minor reformatting.
11750
11751 2011-08-02 Javier Miranda <miranda@adacore.com>
11752
11753 * exp_atag.adb, exp_atags.ads
11754 (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr
11755 by the tagged type Entity. Required to use this routine in the VM
11756 targets since we do not have available the Tag entity in the VM
11757 platforms.
11758 * exp_ch6.adb
11759 (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package
11760 Ada.Tags has not been previously loaded.
11761 * exp_ch7.adb
11762 (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke
11763 Build_VM_TSDs if package Ada.Tags has not been previously loaded.
11764 * sem_aux.adb
11765 (Enclosing_Dynamic_Scope): Add missing support to handle the full
11766 view of enclosing scopes. Required to handle enclosing scopes that
11767 are synchronized types whose full view is a task type.
11768 * exp_disp.adb
11769 (Build_VM_TSDs): Minor code improvement to avoid generating and
11770 analyzing lists with empty nodes.
11771 (Make_Disp_Asynchronous_Select_Body): Add support for VM targets.
11772 (Make_Disp_Conditional_Select_Body): Add support for VM targets.
11773 (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets.
11774 (Make_Disp_Timed_Select_Body): Add support for VM targets.
11775 (Make_Select_Specific_Data_Table): Add support for VM targets.
11776 (Make_VM_TSD): Generate code to initialize the SSD structure of
11777 the TSD.
11778
11779 2011-08-02 Yannick Moy <moy@adacore.com>
11780
11781 * lib-writ.adb (Write_ALI): when ALFA mode is set, write local
11782 cross-references section in ALI.
11783 * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub
11784 (enclosing subprogram), Slc (location of Sub) and Sun (unit number of
11785 Sub).
11786 (Enclosing_Subprogram_Or_Package): new function to return the enclosing
11787 subprogram or package entity of a node
11788 (Is_Local_Reference_Type): new function returns True for references
11789 selected in local cross-references.
11790 (Lt): function extracted from Lt in Output_References
11791 (Write_Entity_Name): function extracted from Output_References
11792 (Generate_Definition): generate reference with type 'D' for definition
11793 of objects (object declaration and parameter specification), with
11794 appropriate locations and units, for use in local cross-references.
11795 (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created
11796 references of type 'I' for initialization in object definition.
11797 (Output_References): move part of function Lt and procedure
11798 Write_Entity_Name outside of the body. Ignore references of types 'D'
11799 and 'I' introduced for local cross-references.
11800 (Output_Local_References): new procedure to output the local
11801 cross-references sections.
11802 (Lref_Entity_Status): new array defining whether an entity is a local
11803 * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference
11804 with 'I' type when initialization expression is present.
11805 * get_scos.adb, get_scos.ads: Correct comments and typos
11806
11807 2011-08-02 Javier Miranda <miranda@adacore.com>
11808
11809 * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in
11810 the JVM target.
11811 * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in
11812 the JVM target.
11813 * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no
11814 TSD support.
11815
11816 2011-08-02 Vincent Celier <celier@adacore.com>
11817
11818 * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line
11819 (No_Space_Img): New function
11820 (Find_Excluded_Sources): When reading from a file, record the file name
11821 and the line number for each excluded source.
11822 (Mark_Excluded_Sources): When reporting an error, if the excluded
11823 sources were read from a file, include file name and line number in
11824 the error message.
11825
11826 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11827
11828 * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2).
11829
11830 2011-08-02 Robert Dewar <dewar@adacore.com>
11831
11832 * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting
11833
11834 2011-08-02 Javier Miranda <miranda@adacore.com>
11835
11836 * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
11837 generation of TSDs to the DOTNET compiler.
11838 * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
11839 generation of TSDs to the DOTNET compiler.
11840
11841 2011-08-02 Javier Miranda <miranda@adacore.com>
11842
11843 * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
11844 record of all the tagged types declared inside library level package
11845 declarations, library level package bodies or library level subprograms.
11846 * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD
11847 associated with a given tagged type.
11848 (Build_VM_TSDs): New subprogram.
11849 * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main
11850 compilation units that are subprograms.
11851 * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main
11852 compilation units that are package bodies.
11853 (Expand_N_Package_Declaration): Generate TSDs of the main compilation
11854 units that are a package declaration or a package instantiation.
11855 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code
11856 reorganization to improve the error generated by the frontend when the
11857 function Ada.Tags.Secondary_Tag is not available.
11858 * rtsfind.ads (RE_Register_TSD): New runtime entity.
11859 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup.
11860
11861 2011-08-02 Javier Miranda <miranda@adacore.com>
11862
11863 * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode.
11864
11865 2011-08-02 Robert Dewar <dewar@adacore.com>
11866
11867 * s-imenne.ads: Minor reformatting.
11868
11869 2011-08-02 Robert Dewar <dewar@adacore.com>
11870
11871 * a-stunau.ads: Add pragma Suppress_Initialization for Big_String
11872 * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed
11873 * s-stalib.ads: Add pragma Suppress_Initialization for Big_String
11874
11875 2011-08-02 Robert Dewar <dewar@adacore.com>
11876
11877 * einfo.ads (Materialize_Entity): Document this is only for renamings
11878 * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate
11879 required debug information in the case where we transform the object
11880 declaration into a renaming declaration.
11881 * exp_ch4.adb (Expand_Concatenate): Generate debug info for result
11882 object
11883 * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of
11884 Materialize_Entity.
11885
11886 2011-08-02 Robert Dewar <dewar@adacore.com>
11887
11888 * einfo.ads, einfo.adb (Suppress_Initialization): Replaces
11889 Suppress_Init_Procs.
11890 * exp_ch3.adb, exp_disp.adb, freeze.adb: Use
11891 Suppress_Initialization/Initialization_Suppressed.
11892 * gnat_rm.texi: New documentation for pragma Suppress_Initialization
11893 * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function
11894 * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed
11895 * sem_prag.adb: New processing for pragma Suppress_Initialization.
11896
11897 2011-08-02 Robert Dewar <dewar@adacore.com>
11898
11899 * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb:
11900 Minor reformatting.
11901
11902 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11903
11904 * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can
11905 only have inheritable classwide pre/postconditions.
11906
11907 2011-08-02 Javier Miranda <miranda@adacore.com>
11908
11909 * a-tags.ads, a-tags.adb (Check_TSD): New subprogram.
11910 * rtsfind.ads (RE_Check_TSD): New runtime entity.
11911 * exp_disp.adb (Make_DT): Generate call to the new runtime routine that
11912 checks if the external tag of a type is the same as the external tag
11913 of some other declaration.
11914
11915 2011-08-02 Thomas Quinot <quinot@adacore.com>
11916
11917 * s-taskin.ads: Minor reformatting.
11918
11919 2011-08-02 Emmanuel Briot <briot@adacore.com>
11920
11921 * g-comlin.adb (Display_Help): swap the order in which it prints the
11922 short help and the general usage.
11923
11924 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11925
11926 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly
11927 the aspect declarations and attach them to the generic copy for
11928 subsequent analysis.
11929 (Analyze_Subprogram_Instantiation): copy explicitly the aspect
11930 declarations of the generic tree to the new subprogram declarations.
11931 * sem_attr.adb (Check_Precondition_Postcondition): recognize
11932 conditions that apply to a subprogram instance.
11933
11934 2011-08-02 Robert Dewar <dewar@adacore.com>
11935
11936 * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project].
11937
11938 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11939
11940 * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged
11941 private type with a tagged full view is not derived in the immediate
11942 scope of the partial view, (RM 7.3 (7)) use the scope of the base type.
11943
11944 2011-08-02 Robert Dewar <dewar@adacore.com>
11945
11946 * exp_ch4.adb: Minor reformatting.
11947
11948 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11949
11950 * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an
11951 Ada2012 iterator, the loop will be rewritten during expansion into a
11952 while loop with a cursor and an element declaration. Do not analyze the
11953 body in this case, because if the container is for indefinite types the
11954 actual subtype of the elements will only be determined when the cursor
11955 declaration is analyzed.
11956
11957 2011-08-02 Arnaud Charlet <charlet@adacore.com>
11958
11959 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore
11960 size/alignment related attributes in CodePeer_Mode.
11961
11962 2011-08-02 Gary Dismukes <dismukes@adacore.com>
11963
11964 * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to
11965 Prepend_Element, since this can result in the operation getting the
11966 wrong slot in the full type's dispatch table if the full type has
11967 inherited operations. The incomplete type's operation will get added
11968 to the proper position in the full type's primitives
11969 list later in Sem_Disp.Check_Operation_From_Incomplete_Type.
11970 (Process_Incomplete_Dependents): Add Is_Primitive test when checking for
11971 dispatching operations, since there are cases where nonprimitive
11972 subprograms can get added to the list of incomplete dependents (such
11973 as subprograms in nested packages).
11974 * sem_ch6.adb (Process_Formals): First, remove test for being in a
11975 private part when determining whether to add a primitive with a
11976 parameter of a tagged incomplete type to the Private_Dependents list.
11977 Such primitives can also occur in the visible part, and should not have
11978 been excluded from being private dependents.
11979 * sem_ch7.adb (Uninstall_Declarations): When checking the rule of
11980 RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents
11981 list of a Taft-amendment incomplete type is a primitive before issuing
11982 an error that the full type must appear in the same unit. There are
11983 cases where nonprimitives can be in the list (such as subprograms in
11984 nested packages).
11985 * sem_disp.adb (Derives_From): Use correct condition for checking that
11986 a formal's type is derived from the type of the corresponding formal in
11987 the parent subprogram (the condition was completely wrong). Add
11988 checking that was missing for controlling result types being derived
11989 from the result type of the parent operation.
11990
11991 2011-08-02 Yannick Moy <moy@adacore.com>
11992
11993 * errout.adb (First_Node): minor renaming
11994 * restrict.adb (Check_Formal_Restriction): put restriction warning on
11995 first node.
11996
11997 2011-08-02 Yannick Moy <moy@adacore.com>
11998
11999 * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator
12000 before accessing operands.
12001 * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to
12002 decide whether an initialization expression respects SPARK rules, as
12003 the plain node is the expanded one. This allows for more valid warnings
12004 to be issued.
12005 * gnat_rm.texi: Minor update.
12006
12007 2011-08-02 Arnaud Charlet <charlet@adacore.com>
12008
12009 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert
12010 previous change.
12011
12012 2011-08-02 Robert Dewar <dewar@adacore.com>
12013
12014 * sem_ch3.adb, sem_ch4.adb: Minor reformatting.
12015
12016 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
12017
12018 * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original
12019 loop statements and the element renaming declaration with a block when
12020 the element type is controlled.
12021
12022 2011-08-02 Yannick Moy <moy@adacore.com>
12023
12024 * sinfo.ads: Minor formatting.
12025
12026 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12027
12028 * sem_aggr.adb (Add_Association): if the association has a box and no
12029 expression, use the Sloc of the aggregate itself for the new
12030 association.
12031 * errout.adb (First_Node): Exclude nodes with no Sloc, and always use
12032 the Original_Node.
12033
12034 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
12035
12036 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring.
12037 When a container is provided via a function call, generate a renaming
12038 of the function result. This avoids the creation of a transient scope
12039 and the premature finalization of the container.
12040 * exp_ch7.adb (Is_Container_Cursor): Removed.
12041 (Wrap_Transient_Declaration): Remove the supression of the finalization
12042 of the list controller when the declaration denotes a container cursor,
12043 it is not needed.
12044
12045 2011-08-02 Yannick Moy <moy@adacore.com>
12046
12047 * restrict.adb (Check_Formal_Restriction): only issue a warning if the
12048 node is from source, instead of the original node being from source.
12049 * sem_aggr.adb
12050 (Resolve_Array_Aggregate): refine the check for a static expression, to
12051 recognize also static ranges
12052 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration,
12053 Array_Type_Declaration): postpone the test for the type being a subtype
12054 mark after the type has been resolved, so that component-selection and
12055 expanded-name are discriminated.
12056 (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm
12057 to distinguish the case of an iteration scheme, so that an error is
12058 issed on a non-static range in SPARK except in an iteration scheme.
12059 * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with
12060 In_Iter_Schm = True.
12061 * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for
12062 user-defined operators so that they are allowed in renaming
12063 * sem_ch8.adb
12064 (Find_Selected_Component): refine the check for prefixing of operators
12065 so that they are allowed in renaming. Move the checks for restrictions
12066 on selector name after analysis discriminated between
12067 component-selection and expanded-name.
12068 * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on
12069 concatenation argument of string type if it is static.
12070 * sem_util.adb, sem_util.ads
12071 (Check_Later_Vs_Basic_Declarations): add a new function
12072 Is_Later_Declarative_Item to decice which declarations are allowed as
12073 later items, in the two different modes Ada 83 and SPARK. In the SPARK
12074 mode, add that renamings are considered as later items.
12075 (Enclosing_Package): new function to return the enclosing package
12076 (Enter_Name): correct the rule for homonyms in SPARK
12077 (Is_SPARK_Initialization_Expr): default to returning True on nodes not
12078 from source (result of expansion) to avoid issuing wrong warnings.
12079
12080 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12081
12082 * errout.adb: On anything but an expression First_Node returns its
12083 argument.
12084
12085 2011-08-02 Pascal Obry <obry@adacore.com>
12086
12087 * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting.
12088
12089 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
12090
12091 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization.
12092 Set the associated loop as the related expression of internally
12093 generated cursors.
12094 * exp_ch7.adb (Is_Container_Cursor): New routine.
12095 (Wrap_Transient_Declaration): Supress the finalization of the list
12096 controller when the declaration denotes a container cursor.
12097
12098 2011-08-02 Yannick Moy <moy@adacore.com>
12099
12100 * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through
12101 command line now.
12102 * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the
12103 expression is a simple expression. This check cannot be performed in
12104 the semantics, so just drop it.
12105 (P_Index_Or_Discriminant_Constraint): move check that the index or
12106 discriminant is a subtype mark to Analyze_Subtype_Declaration in the
12107 semantics. Other cases were previously checked in the semantics.
12108 * par-ch4.adb (P_Name): move checks that a selector name is not
12109 character literal or an operator symbol to Find_Selected_Component in
12110 the semantics
12111 * par-ch5.adb (Parse_Decls_Begin_End): move check that basic
12112 declarations are not placed after later declarations in a separate
12113 procedure in Sem_Util (possibly not the best choice?), to be used both
12114 during parsing, for Ada 83 mode, and during semantic analysis, for
12115 SPARK mode.
12116 * par-endh.adb (Check_End): move check that end label is not missing
12117 to Process_End_Label in the semantics
12118 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove
12119 the special case for SPARK restriction
12120 * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End
12121 * restrict.adb, restrict.ads (Check_Formal_Restriction): add a
12122 parameter Force to issue the error message even on internal node (used
12123 for generated end label). Call Check_Restriction to check when an error
12124 must be issued. In SPARK mode, issue an error message even if the
12125 restriction is not set.
12126 (Check_Restriction): new procedure with an additional out parameter to
12127 inform the caller that a message has been issued
12128 * sem_aggr.adb: Minor modification of message
12129 * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction
12130 instead of issuing an error message directly
12131 * sem_ch3.adb (Analyze_Declarations): move here the check that basic
12132 declarations are not placed after later declarations, by calling
12133 Check_Later_Vs_Basic_Declarations
12134 (Analyze_Subtype_Declaration): move here the check that an index or
12135 discriminant constraint must be a subtype mark. Change the check that
12136 a subtype of String must start at one so that it works on subtype marks.
12137 * sem_ch4.adb (Analyze_Call): move here the check that a named
12138 association cannot follow a positional one in a call
12139 * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction
12140 instead of issuing an error message directly
12141 * sem_ch8.adb (Find_Selected_Component): move here the check that a
12142 selector name is not a character literal or an operator symbol. Move
12143 here the check that the prefix of an expanded name cannot be a
12144 subprogram or a loop statement.
12145 * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new
12146 procedure called from parsing and semantics to check that basic
12147 declarations are not placed after later declarations
12148 (Process_End_Label): move here the check that end label is not missing
12149
12150 2011-08-02 Arnaud Charlet <charlet@adacore.com>
12151
12152 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum
12153 representation clause in codepeer mode, since it confuses CodePeer and
12154 does not bring useful info.
12155
12156 2011-08-02 Ed Falis <falis@adacore.com>
12157
12158 * init.c: initialize fp hw on MILS.
12159
12160 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12161
12162 * errout.adb (First_Node): for bodies, return the node itself (small
12163 optimization). For other nodes, do not check source_unit if the node
12164 comes from Standard.
12165
12166 2011-08-02 Robert Dewar <dewar@adacore.com>
12167
12168 * exp_ch3.adb: Minor comment additions.
12169 * sem_ch13.adb: Minor reformatting.
12170
12171 2011-08-02 Pascal Obry <obry@adacore.com>
12172
12173 * make.adb, makeutl.adb: Removes some superfluous directory separator.
12174
12175 2011-08-02 Robert Dewar <dewar@adacore.com>
12176
12177 * sem_attr.adb: Minor reformatting.
12178
12179 2011-08-02 Robert Dewar <dewar@adacore.com>
12180
12181 * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value
12182 (Has_Default_Component_Value): Removed
12183 * einfo.ads Comment updates
12184 (Has_Default_Aspect): Replaces Has_Default_Value
12185 (Has_Default_Component_Value): Removed
12186 * exp_ch13.adb
12187 (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects
12188 * exp_ch3.adb
12189 (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects
12190 (Get_Simple_Init_Val): Handle Default_Value aspect
12191 (Needs_Simple_Initialization): Handle Default_Value aspect
12192 * exp_ch3.ads: Needs_Simple_Initialization
12193 * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect
12194 * par-prag.adb (Pragma_Default[_Component]Value) Removed
12195 * sem_ch13.adb
12196 (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects
12197 * sem_prag.adb (Pragma_Default[_Component]Value) Removed
12198 * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed
12199
12200 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12201
12202 * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate
12203 package containing iteration primitives.
12204 exp_ch5.adb (Expand_Iterator_Loop): ditto.
12205
12206 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12207
12208 * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with
12209 "of", pre-analyze expression in case it is a function call with
12210 finalization actions that must be placed ahead of the loop.
12211 * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present
12212 on an Ada2012 iterator, insert them ahead of the rewritten loop.
12213
12214 2011-08-02 Geert Bosch <bosch@adacore.com>
12215
12216 * cstand.adb (Create_Float_Types): Only consider C's long double for
12217 Long_Long_Float, in addition to double.
12218
12219 2011-08-02 Robert Dewar <dewar@adacore.com>
12220
12221 * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads,
12222 sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads,
12223 prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb:
12224 Minor reformatting.
12225
12226 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12227
12228 * sem_attr.adb: handle properly 'Result when it is a prefix of an
12229 indexed component.
12230
12231 2011-08-02 Javier Miranda <miranda@adacore.com>
12232
12233 * einfo.ads, einfo.adb
12234 (Original_Access_Type): Move this attribute to Node26 since there was
12235 an undocumented use of Node21 in E_Access_Subprogram_Type entities
12236 which causes conflicts and breaks the generation of the .NET compiler.
12237 (Interface_Name): Add missing documentation on JGNAT only uses of
12238 this attribute.
12239
12240 2011-08-02 Geert Bosch <bosch@adacore.com>
12241
12242 * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist
12243 (Find_Back_End_Float_Type): Likewise
12244 (Create_Back_End_Float_Types): Likewise
12245 (Create_Float_Types): Likewise
12246 (Register_Float_Type): Likewise
12247 * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of
12248 Nlist and split out type selection in new local Find_Base_Type function.
12249 * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of
12250 Nlist
12251 * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist
12252
12253 2011-08-02 Robert Dewar <dewar@adacore.com>
12254
12255 * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in
12256 alpha order).
12257 * opt.ads: Minor comment change.
12258 * sem_ch12.adb: Minor code reorganization.
12259
12260 2011-08-02 Gary Dismukes <dismukes@adacore.com>
12261
12262 * sem_ch3.adb (Complete_Private_Subtype): Don't append the private
12263 subtype's list of rep items to the list on the full subtype in the case
12264 where the lists are the same.
12265
12266 2011-08-02 Geert Bosch <bosch@adacore.com>
12267
12268 * switch-c.adb (Free): New deallocation procedure to avoid implicitly
12269 using the one from System.Strings, which also deallocates all strings.
12270
12271 2011-08-02 Geert Bosch <bosch@adacore.com>
12272
12273 * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New
12274 function.
12275 * gcc-interface/Make-lang.in: Update dependencies.
12276
12277 2011-08-02 Olivier Hainque <hainque@adacore.com>
12278
12279 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function
12280 end_locus.
12281
12282 2011-08-02 Javier Miranda <miranda@adacore.com>
12283
12284 * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals
12285 associated with anonymous access to subprograms.
12286
12287 2011-08-02 Geert Bosch <bosch@adacore.com>
12288
12289 * opt.ads
12290 (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions.
12291 (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition.
12292 * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads
12293 (Add_Symbol_Definition): Move to switch-c.adb
12294 (Process_Command_Line_Symbol_Definitions): Adjust references to above.
12295 * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation.
12296 (Add_Symbol_Definition): Move to switch-c.adb.
12297 * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw.
12298 * sem_warn.adb
12299 (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
12300 Move to warnsw.adb.
12301 * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size,
12302 Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
12303 Move to warnsw.adb.
12304 * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw.
12305 (Add_Symbol_Definition): Moved from Prepcomp.
12306 * switch-c.ads: Update copyright notice. Use String_List instead of
12307 Argument_List, removing dependency on System.OS_Lib.
12308
12309 2011-08-02 Yannick Moy <moy@adacore.com>
12310
12311 * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal
12312 mode on initialization expression which does not respect SPARK
12313 restrictions.
12314 * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines
12315 if the tree referenced by its argument represents an initialization
12316 expression in SPARK, suitable for initializing an object in an object
12317 declaration.
12318
12319 2011-08-02 Javier Miranda <miranda@adacore.com>
12320
12321 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the
12322 internally generated access to subprogram with its associated protected
12323 subprogram type.
12324 * einfo.ads, einfo.adb (Original_Access_Type): New attribute.
12325
12326 2011-08-02 Geert Bosch <bosch@adacore.com>
12327
12328 * cstand.adb (Register_Float_Type): Print information about type to
12329 register, if the Debug_Flag_Dot_B is set.
12330 * debug.adb (Debug_Flag_Dot_B): Document d.b debug option.
12331 * rtsfind.ads (RE_Max_Base_Digits): New run time entity.
12332 * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations
12333 with a requested precision of more than Max_Digits digits and no more
12334 than Max_Base_Digits digits, if a range specification is present and the
12335 Predefined_Float_Types list has a suitable type to derive from.
12336 * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the
12337 case of type completion with pragma Import
12338 * sem_prag.adb
12339 (Process_Import_Predefined_Type): Processing to complete a type
12340 with pragma Import. Currently supports floating point types only.
12341 (Set_Convention_From_Pragma): Do nothing without underlying type.
12342 (Process_Convention): Guard against absence of underlying type,
12343 which may happen when importing incomplete types.
12344 (Process_Import_Or_Interface): Handle case of importing predefined
12345 types. Tweak error message.
12346
12347 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12348
12349 * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined
12350 functions to previous change. Reorganize code slightly.
12351
12352 2011-08-02 Geert Bosch <bosch@adacore.com>
12353
12354 * back_end.ads (Register_Type_Proc): New call back procedure type for
12355 allowing the back end to provide information about available types.
12356 (Register_Back_End_Types): New procedure to register back end types.
12357 * back_end.adb (Register_Back_End_Types): Call the back end to enumerate
12358 available types.
12359 * cstand.adb (Back_End_Float_Types): New list for floating point types
12360 supported by the back end.
12361 (Build_Float_Type): Add extra parameter for Float_Rep_Kind.
12362 (Copy_Float_Type): New procedure to make new copies of predefined types.
12363 (Register_Float_Type): New call back procedure to populate the BEFT list
12364 (Find_Back_End_Float_Type): New procedure to find a BEFT by name
12365 (Create_Back_End_Float_Types): New procedure to populate the BEFT list.
12366 (Create_Float_Types): New procedure to create entities for floating
12367 point types predefined in Standard, and put these and any remaining
12368 BEFTs on the Predefined_Float_Types list.
12369 * stand.ads (Predefined_Float_Types): New list for predefined floating
12370 point types that do not have declarations in package Standard.
12371
12372 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12373
12374 * inline.adb (Get_Code_Unit_Entity): New local function. Returns the
12375 entity node for the unit containing the parameter.
12376 (Add_Inlined_Body): Use it to find the unit containing the subprogram.
12377 (Add_Inlined_Subprogram): Likewise.
12378 * gcc-interface/Make-lang.in: Update dependencies.
12379
12380 2011-08-02 Thomas Quinot <quinot@adacore.com>
12381
12382 * s-stusta.adb (Print): Make sure Pos is always initialized to a
12383 suitable value.
12384
12385 2011-08-02 Geert Bosch <bosch@adacore.com>
12386
12387 * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image.
12388
12389 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12390
12391 * sem_type.adb (Covers): Move trivial case to the top and reuse the
12392 computed value of Base_Type.
12393
12394 2011-08-02 Yannick Moy <moy@adacore.com>
12395
12396 * restrict.adb (Check_Restriction): issue an error for any use of
12397 class-wide, even if the No_Dispatch restriction is not set.
12398 * sem_aggr.adb: Correct typos in comments and messages in formal mode
12399 * sem_ch3.adb (Process_Full_View): issue an error in formal mode is,
12400 when completing a private extension, the type named in the private part
12401 is not the same as that named in the visible part.
12402 * sem_res.adb (Resolve_Call): issue an error in formal mode on the use
12403 of an inherited primitive operations of a tagged type or type extension
12404 that returns the tagged type.
12405 * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new
12406 function which returns True for an implicit operation inherited by the
12407 derived type declaration for the argument type.
12408 (Is_SPARK_Object_Reference): move to appropriate place in alphabetic
12409 order.
12410
12411 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12412
12413 * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from
12414 Process_Bounds, to perform analysis with expansion of a range or an
12415 expression that is the iteration scheme for a loop.
12416 (Analyze_Iterator_Specification): If domain of iteration is given by a
12417 function call with a controlled result, as is the case if call returns
12418 a predefined container, ensure that finalization actions are properly
12419 generated.
12420 * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range.
12421
12422 2011-08-02 Javier Miranda <miranda@adacore.com>
12423
12424 * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo.
12425 * gcc-interface/Make-lang.in: Update dependencies.
12426
12427 2011-08-02 Javier Miranda <miranda@adacore.com>
12428
12429 * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to
12430 determine if the analysis is performed using N or Original_Node (N).
12431 * exp_util.adb (Side_Effect_Free): Code cleanup since the new
12432 functionality of routine Is_Variable avoids code duplication.
12433 * checks.adb (Determine_Range): Handle temporaries generated by
12434 Remove_Side_Effects.
12435
12436 2011-08-02 Javier Miranda <miranda@adacore.com>
12437
12438 * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and
12439 expansion of the condition. Required since the previous analysis was
12440 done with expansion disabled (see Resolve_Quantified_Expression) and
12441 hence checks were not inserted and record comparisons have not been
12442 expanded.
12443
12444 2011-08-02 Ed Falis <falis@adacore.com>
12445
12446 * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads:
12447 Update header.
12448
12449 2011-08-02 Bob Duff <duff@adacore.com>
12450
12451 * opt.ads: Minor comment fix.
12452
12453 2011-08-02 Bob Duff <duff@adacore.com>
12454
12455 * sem_ch12.adb (Analyze_Package_Instantiation,
12456 Analyze_Subprogram_Instantiation): Turn off style checking while
12457 analyzing an instance. Whatever style checks that apply to the generic
12458 unit should apply, so it makes no sense to apply them in an instance.
12459 This was causing trouble when compiling an instance of a runtime
12460 unit that violates the -gnatyO switch.
12461 * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from
12462 one of the two case statements, causing spurious errors.
12463
12464 2011-08-02 Robert Dewar <dewar@adacore.com>
12465
12466 * uname.adb: Minor reformatting.
12467 * gnatcmd.adb: Minor reformatting.
12468 * exp_attr.adb: Minor reformatting.
12469
12470 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12471
12472 * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction
12473 No_Dispatching_Calls, do not look for the Assign primitive, because
12474 predefined primitives are not created in this case.
12475
12476 2011-08-02 Bob Duff <duff@adacore.com>
12477
12478 * stylesw.ads: Minor comment fixes.
12479
12480 2011-08-02 Robert Dewar <dewar@adacore.com>
12481
12482 * freeze.adb (Add_To_Result): New procedure.
12483
12484 2011-08-02 Jose Ruiz <ruiz@adacore.com>
12485
12486 * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run
12487 time, if the specific run-time routines for handling streams of strings
12488 are not available, use the default mechanism.
12489
12490 2011-08-02 Arnaud Charlet <charlet@adacore.com>
12491
12492 * s-regpat.ads: Fix typo.
12493
12494 2011-08-02 Vincent Celier <celier@adacore.com>
12495
12496 * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is
12497 not null, call it to create the in memory config project file without
12498 parsing an existing default config project file.
12499
12500 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12501
12502 * atree.adb (Allocate_Initialize_Node): Remove useless temporaries.
12503
12504 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12505
12506 * sem_elim.adb: an abstract subprogram does not need an eliminate
12507 pragma for its descendant to be eliminable.
12508
12509 2011-08-02 Ed Falis <falis@adacore.com>
12510
12511 * init.c: revert to handling before previous checkin for VxWorks
12512 * s-intman-vxworks.adb: delete unnecessary declarations related to
12513 using Ada interrupt facilities for handling signals.
12514 Delete Initialize_Interrupts. Use __gnat_install_handler instead.
12515 * s-intman-vxworks.ads: Import __gnat_install_handler as
12516 Initialize_Interrupts.
12517 * s-taprop-vxworks.adb: Delete Signal_Mask.
12518 (Abort_Handler): change construction of mask to unblock exception
12519 signals.
12520
12521 2011-08-02 Jerome Guitton <guitton@adacore.com>
12522
12523 * a-except-2005.adb (Raise_From_Signal_Handler): Call
12524 Debug_Raise_Exception before propagation starts.
12525
12526 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12527
12528 * exp_ch6.adb (Expand_Call): Guard restriction checks with a call
12529 to Restriction_Check_Required.
12530 * sem_ch3.adb (Analyze_Object_Declaration): Likewise.
12531 * sem_res.adb (Resolve_Call): Likewise.
12532 * sem_attr.adb (Check_Stream_Attribute): Likewise.
12533
12534 2011-08-02 Bob Duff <duff@adacore.com>
12535
12536 * stylesw.ads: Update comment.
12537 * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
12538 * errout.ads: Remove obsolete comment.
12539
12540 2011-08-02 Javier Miranda <miranda@adacore.com>
12541
12542 * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
12543 (Set_Is_Safe_To_Reevaluate): new procedure.
12544 * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
12545 assignment is allowed on safe-to-reevaluate variables.
12546 (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
12547 temporary created to remove side effects in expressions that use
12548 the secondary stack as safe-to-reevaluate.
12549 * exp_util.adb (Side_Effect_Free): Add missing code to handle well
12550 variables that are not true constants.
12551
12552 2011-08-02 Robert Dewar <dewar@adacore.com>
12553
12554 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
12555 sem_res.adb, sem_ch6.adb: Minor reformatting.
12556
12557 2011-08-02 Jerome Guitton <guitton@adacore.com>
12558
12559 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
12560
12561 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12562
12563 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
12564 not set Overridden_Operation if subprogram is an initialization
12565 procedure.
12566
12567 2011-08-02 Yannick Moy <moy@adacore.com>
12568
12569 * par-ch6.adb: Correct obsolete name in comments
12570 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
12571 which takes two message arguments (existing function takes one), with
12572 second message used for continuation.
12573 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
12574 block statements that originate from a source block statement, not
12575 generated block statements
12576 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
12577 symmetry with procedure case
12578 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
12579 function to issue an error in formal mode if a package specification
12580 contains more than one tagged type or type extension.
12581 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
12582 parameters matching formals of tagged types are objects (or ancestor
12583 type conversions of objects), not general expressions. Issue an error
12584 on view conversions that are not involving ancestor conversion of an
12585 extended type.
12586 (Resolve_Type_Conversion): in formal mode, issue an error on the
12587 operand of an ancestor type conversion which is not an object
12588 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
12589 procedure so that it works also for actuals of function calls
12590 (Is_Actual_Tagged_Parameter): new function which determines if its
12591 argument is an actual parameter of a formal of tagged type in a
12592 subprogram call
12593 (Is_SPARK_Object_Reference): new function which determines if the tree
12594 referenced by its argument represents an object in SPARK
12595
12596 2011-08-02 Robert Dewar <dewar@adacore.com>
12597
12598 * sem_ch3.adb: Minor reformatting
12599 Minor comment addition
12600 Minor error msg text change
12601
12602 2011-08-02 Javier Miranda <miranda@adacore.com>
12603
12604 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
12605 function. Used to be more precise when we generate a variable plus one
12606 assignment to remove side effects in the evaluation of the Bound
12607 expressions.
12608 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
12609 of the bound expression to force its re-analysis and thus expand the
12610 associated transient scope (if required). Code cleanup replacing the
12611 previous code that declared the constant entity by an invocation to
12612 routine Force_Evaluation which centralizes this work in the frontend.
12613
12614 2011-08-02 Robert Dewar <dewar@adacore.com>
12615
12616 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
12617 (Base_Type): Now uses improved Is_Base_Type function
12618 * einfo.ads (Base_Type): Inline this function
12619
12620 2011-08-02 Robert Dewar <dewar@adacore.com>
12621
12622 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
12623 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
12624
12625 2011-08-02 Arnaud Charlet <charlet@adacore.com>
12626
12627 * gcc-interface/Make-lang.in: Update dependencies.
12628 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
12629 targets.
12630
12631 2011-08-02 Yannick Moy <moy@adacore.com>
12632
12633 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
12634 non-simple expression used in delta constraint
12635 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
12636 index constraint which is not a subtype mark
12637 * par.adb: With and use Restrict
12638 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
12639 mode on component type which is not a subtype mark and default
12640 expression on component
12641 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
12642 of string which does not have a lower index bound equal to 1
12643 (Array_Type_Declaration): issue an error in formal mode on index or
12644 component type which is not a subtype mark, and on aliased keyword on
12645 component
12646 (Derived_Type_Declaration): issue an error in formal mode on interface,
12647 limited or abstract type
12648 (Record_Type_Declaration): issue an error in formal mode on interface
12649 (Record_Type_Definition): issue an error in formal mode on tagged types
12650 and type extensions not declared in the specification of a library unit
12651 package; on null non-tagged record; on variant part
12652
12653 2011-08-02 Vincent Celier <celier@adacore.com>
12654
12655 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
12656 not declared for qualified library project when Library_Name is not
12657 declared, but Library_Dir is.
12658
12659 2011-08-02 Robert Dewar <dewar@adacore.com>
12660
12661 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
12662 pragmas (affects aspects [Component_]Default_Value
12663 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
12664 component type for the resolution
12665
12666 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12667
12668 * einfo.adb (Base_Type): Tune implementation for speed.
12669
12670 2011-08-02 Robert Dewar <dewar@adacore.com>
12671
12672 * freeze.adb: Minor reformatting.
12673
12674 2011-08-02 Thomas Quinot <quinot@adacore.com>
12675
12676 * scos.ads: Update comments.
12677
12678 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12679
12680 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
12681 base type, because the parent may be a subtype of a private type whose
12682 convention is established in a private part.
12683
12684 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
12685
12686 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
12687 statement in a block when the expansion of the return expression has
12688 created a finalization chain.
12689 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
12690 with the parent node.
12691 Add N_Extended_Return_Statement to handle the case where a transient
12692 object declaration appears in the Return_Object_Declarations list of
12693 an extended return statement.
12694
12695 2011-08-02 Matthew Gingell <gingell@adacore.com>
12696
12697 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
12698 unused parameter 'name'.
12699
12700 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12701
12702 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
12703 inherited operation, check whether its alias, which is the source
12704 operastion that it renames, has been marked eliminated.
12705
12706 2011-08-02 Javier Miranda <miranda@adacore.com>
12707
12708 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
12709 in-mode parameter whose type is an access type since it can be used to
12710 modify its designated object. Enforce code that handles as safe an
12711 access type that is not access-to-constant but it is the result of a
12712 previous removal of side-effects.
12713 (Remove_Side_Effects): Minor code reorganization of cases which require
12714 no action. Done to incorporate documentation on new cases uncovered
12715 working in this ticket: no action needed if this routine was invoked
12716 too early and the nodes are not yet decorated.
12717 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
12718 to routine Remove_Side_Effects by calls to Force_Evaluation since they
12719 were issued with actuals that are implicitly provided by
12720 Force_Evaluation.
12721
12722 2011-08-02 Robert Dewar <dewar@adacore.com>
12723
12724 * sem_ch3.adb, sem_res.adb: Minor reformatting.
12725
12726 2011-08-02 Yannick Moy <moy@adacore.com>
12727
12728 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
12729 to issue an error in formal mode on attribute not supported in this mode
12730 (Analyze_Attribute): issue errors on standard attributes not supported
12731 in formal mode.
12732 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
12733 comment, and issue error in formal mode on modulus which is not a power
12734 of 2.
12735 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
12736 range.
12737 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
12738 subtype mark.
12739 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
12740 operator on modular type (except 'not').
12741
12742 2011-08-02 Robert Dewar <dewar@adacore.com>
12743
12744 * gnat_rm.texi: Minor reformatting.
12745
12746 2011-08-02 Arnaud Charlet <charlet@adacore.com>
12747
12748 * s-osinte-linux.ads: Minor comment update and reformatting.
12749 * i-cexten.ads: Make this unit pure, as for its parent.
12750 Will allow its usage in more contexts if needed.
12751
12752 2011-08-02 Robert Dewar <dewar@adacore.com>
12753
12754 * s-utf_32.ads: Minor comment fix.
12755
12756 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12757
12758 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
12759 operation of a tagged synchronized type, handle the case where the
12760 controlling argument is overloaded.
12761
12762 2011-08-02 Yannick Moy <moy@adacore.com>
12763
12764 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
12765 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
12766 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
12767 SPARK mode and formal verification mode on processing SPARK restriction
12768 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
12769 requiring consistency checking.
12770
12771 2011-08-02 Robert Dewar <dewar@adacore.com>
12772
12773 * sem_res.adb: Minor reformatting.
12774
12775 2011-08-02 Robert Dewar <dewar@adacore.com>
12776
12777 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
12778 a-cforse.ads: Remove unneeded with of Ada.Containers
12779 Remove commented out pragma Inline's
12780 Move specifications of new subprograms to the actual specs
12781
12782 2011-08-02 Yannick Moy <moy@adacore.com>
12783
12784 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
12785 a-cforse.ads: Update comments.
12786
12787 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12788
12789 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
12790
12791 2011-08-02 Robert Dewar <dewar@adacore.com>
12792
12793 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
12794 a-cforse.ads, a-cofove.ads: Minor reformatting.
12795
12796 2011-08-02 Claire Dross <dross@adacore.com>
12797
12798 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
12799 a-cofove.ads: Add comments.
12800
12801 2011-08-02 Yannick Moy <moy@adacore.com>
12802
12803 * gnat_rm.texi: Document formal containers.
12804
12805 2011-08-02 Emmanuel Briot <briot@adacore.com>
12806
12807 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
12808 are empty sections.
12809
12810 2011-08-02 Robert Dewar <dewar@adacore.com>
12811
12812 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
12813 reformatting.
12814
12815 2011-08-02 Robert Dewar <dewar@adacore.com>
12816
12817 * aspects.adb: New aspects Default_Value and Default_Component_Value
12818 New format of Aspect_Names table checks for omitted entries
12819 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
12820 handling of boolean aspects for derived types.
12821 New aspects Default_Value and Default_Component_Value
12822 New format of Aspect_Names table checks for omitted entries
12823 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
12824 (Has_Default_Value): New flag
12825 (Has_Default_Component_Value): New flag
12826 (Has_Default_Value): New flag
12827 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
12828 table.
12829 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
12830 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
12831 Default_Value and Default_Component_Value
12832 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
12833 New aspects Default_Value and Default_Component_Value
12834 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
12835 * sprint.adb: Print N_Aspect_Specification node when called from gdb
12836
12837 2011-08-02 Vincent Celier <celier@adacore.com>
12838
12839 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
12840 inherit library kind.
12841
12842 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12843
12844 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
12845 Minor reformatting.
12846
12847 2011-08-02 Robert Dewar <dewar@adacore.com>
12848
12849 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
12850
12851 2011-08-02 Yannick Moy <moy@adacore.com>
12852
12853 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
12854
12855 2011-08-02 Robert Dewar <dewar@adacore.com>
12856
12857 * impunit.adb: Add comment.
12858
12859 2011-08-02 Yannick Moy <moy@adacore.com>
12860
12861 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
12862 qualification of aggregates in formal mode
12863 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
12864 another aggregate
12865 (Resolve_Aggregate): complete the test that an aggregate is adequately
12866 qualified in formal mode
12867
12868 2011-08-02 Pascal Obry <obry@adacore.com>
12869
12870 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
12871 * mlib-prj.adb: Supress warning when compiling binder generated file.
12872 (Build_Library): Supress all warnings when compiling the binder
12873 generated file.
12874
12875 2011-08-02 Yannick Moy <moy@adacore.com>
12876
12877 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
12878 from here...
12879 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
12880 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
12881 Add with/use clauses to make Check_Formal_Restriction visible
12882
12883 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12884
12885 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
12886 in-parameters when type of the generic formal is private in the generic
12887 spec and non-private in the body.
12888
12889 2011-08-02 Claire Dross <dross@adacore.com>
12890
12891 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
12892 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
12893 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
12894 * impunit.adb, Makefile.rtl: Take new files into account.
12895
12896 2011-08-02 Robert Dewar <dewar@adacore.com>
12897
12898 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
12899 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
12900
12901 2011-08-02 Yannick Moy <moy@adacore.com>
12902
12903 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
12904 formal mode
12905 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
12906 matching static array bounds, taking into account the special case of
12907 string literals
12908 * sem_ch3.adb: Typo in comment.
12909
12910 2011-08-02 Yannick Moy <moy@adacore.com>
12911
12912 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
12913 which issues an error in formal mode if its argument node is originally
12914 from source
12915 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
12916 has a discriminant specification so that it does not include the case
12917 of derived types
12918 (Derived_Type_Declaration): move here the test that a derived type has a
12919 discriminant specification
12920 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
12921 first element of a component association before accessing its choices
12922 (presence of component association is not enough)
12923 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
12924 declaration is a library item before accessing the next element in a
12925 list, as library items are not member of lists
12926 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
12927 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
12928 Check_Formal_Restriction whenever possible.
12929
12930 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12931
12932 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
12933 reference when needed.
12934
12935 2011-08-02 Bob Duff <duff@adacore.com>
12936
12937 * gnat_ugn.texi: Fix typo.
12938
12939 2011-08-02 Vincent Celier <celier@adacore.com>
12940
12941 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
12942 archive file name. Do not use the full path name of archives for Open
12943 VMS.
12944
12945 2011-08-02 Robert Dewar <dewar@adacore.com>
12946
12947 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
12948 Analyze_Aspect_Specifications
12949 * sem_ch13.adb
12950 (Analyze_Aspect_Specifications): New handling for boolean aspects
12951 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
12952 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
12953 sequence for Analyze_Aspect_Specifications
12954 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
12955 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
12956
12957 2011-08-02 Robert Dewar <dewar@adacore.com>
12958
12959 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
12960 aspects, since these no longer exist.
12961
12962 2011-08-02 Robert Dewar <dewar@adacore.com>
12963
12964 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
12965 semicolon, do not try to see if there are aspects following it.
12966 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
12967 aspect spec.
12968
12969 2011-08-02 Robert Dewar <dewar@adacore.com>
12970
12971 * sem_ch8.adb, aspects.ads: Minor reformatting.
12972
12973 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12974
12975 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
12976 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
12977 extracted from...
12978 (Analyze_Aspect_Specifications): ...here. Call above procedure.
12979
12980 2011-08-02 Yannick Moy <moy@adacore.com>
12981
12982 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
12983 mode on subprogram declaration outside of package specification, unless
12984 it is followed by a pragma Import
12985 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
12986 Access_Type_Declaration): issue error in formal mode on access type
12987 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
12988 incomplete type
12989 (Analyze_Object_Declaration): issue error in formal mode on object
12990 declaration which does not respect SPARK restrictions
12991 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
12992 declaration which does not respect SPARK restrictions
12993 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
12994 error in formal mode on digits or delta constraint
12995 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
12996 decimal fixed point type
12997 (Derived_Type_Declaration): issue error in formal mode on derived type
12998 other than type extensions of tagged record types
12999 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
13000 with check on access definition
13001 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
13002 mode on protected definition.
13003 (Analyze_Task_Definition): issue error in formal mode on task definition
13004
13005 2011-08-02 Robert Dewar <dewar@adacore.com>
13006
13007 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
13008
13009 2011-08-02 Javier Miranda <miranda@adacore.com>
13010
13011 * sem_ch6.adb (Can_Override_Operator): New function.
13012 (Verify_Overriding_Indicator): Add missing code to check overriding
13013 indicator in operators. Fixes regression.
13014 (Check_Overriding_Indicator): Minor reformating after replacing the
13015 code that evaluates if the subprogram can override an operator by
13016 invocations to the above new function.
13017 * einfo.adb
13018 (Write_Field26_Name): Add missing code to ensure that, following
13019 the documentation in einfo.ads, this field is not shown as attribute
13020 "Static_Initialization" on non-dispatching functions.
13021
13022 2011-08-02 Jose Ruiz <ruiz@adacore.com>
13023
13024 * sem_res.adb (Resolve_Call): A call to
13025 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
13026 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
13027 i.e., when the second parameter is of type Time_Span.
13028
13029 2011-08-02 Vincent Celier <celier@adacore.com>
13030
13031 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
13032 with an archive instead of -L<library dir> -l<library name>.
13033
13034 2011-08-02 Ed Schonberg <schonberg@adacore.com>
13035
13036 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
13037 mark the base types In_Use in addition to making the operations
13038 use_visible.
13039
13040 2011-08-02 Ed Falis <falis@adacore.com>
13041
13042 * init.c: add and setup __gnat_signal_mask for the exception signals
13043 * s-inmaop-vxworks.adb: new file.
13044 * s-intman-vxworks.adb: remove unnecessary initializations and
13045 simplify remaining
13046 * s-intman-vxworks.ads: remove unnecessary variable
13047 * s-taprop-vxworks.adb: simplify signal initialization
13048
13049 2011-08-02 Robert Dewar <dewar@adacore.com>
13050
13051 * sem_ch8.adb: Minor code reorganization, comment updates.
13052
13053 2011-08-02 Robert Dewar <dewar@adacore.com>
13054
13055 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
13056 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
13057 here from Sem_Res.
13058 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
13059 (Matching_Static_Array_Bounds): Moved here from Sem_Res
13060
13061 2011-08-02 Ed Schonberg <schonberg@adacore.com>
13062
13063 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
13064 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
13065 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
13066 use_type_clauses, to handle more efficiently use_type and use_all_type
13067 constructs.
13068 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
13069 Ada2012 Use_All_Type clause.
13070 (Use_Class_Wide_Operations): new procedure.
13071
13072 2011-08-02 Robert Dewar <dewar@adacore.com>
13073
13074 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
13075 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
13076 expression to expression function.
13077
13078 2011-08-02 Ed Schonberg <schonberg@adacore.com>
13079
13080 * sem_ch4.adb: transform simple Ada2012 membership into equality only
13081 if types are compatible.
13082
13083 2011-08-02 Yannick Moy <moy@adacore.com>
13084
13085 * sem_res.adb (Matching_Static_Array_Bounds): new function which
13086 returns True if its argument array types have same dimension and same
13087 static bounds at each index.
13088 (Resolve_Actuals): issue an error in formal mode on actuals passed as
13089 OUT or IN OUT paramaters which are not view conversions in SPARK.
13090 (Resolve_Arithmetic_Op): issue an error in formal mode on
13091 multiplication or division with operands of fixed point types which are
13092 not qualified or explicitly converted.
13093 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
13094 Boolean or array type (except String) operands.
13095 (Resolve_Equality_Op): issue an error in formal mode on equality
13096 operators for array types other than String with non-matching static
13097 bounds.
13098 (Resolve_Logical_Op): issue an error in formal mode on logical operators
13099 for array types with non-matching static bounds. Factorize the code in
13100 Matching_Static_Array_Bounds.
13101 (Resolve_Qualified_Expression): issue an error in formal mode on
13102 qualified expressions for array types with non-matching static bounds.
13103 (Resolve_Type_Conversion): issue an error in formal mode on type
13104 conversion for array types with non-matching static bounds
13105
13106 2011-08-02 Robert Dewar <dewar@adacore.com>
13107
13108 * par-ch10.adb: Minor code reorganization (use Nkind_In).
13109
13110 2011-08-02 Ed Schonberg <schonberg@adacore.com>
13111
13112 * par-ch9.adb: save location of entry for proper error message.
13113
13114 2011-08-02 Javier Miranda <miranda@adacore.com>
13115
13116 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
13117 (Use_Full_View) which permits this routine to climb through the
13118 ancestors using the full-view of private parents.
13119 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
13120 Use_Full_View to true in calls to Is_Ancestor.
13121 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
13122 true in call to Is_Ancestor.
13123 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
13124 Use_Full_View to true in call to Is_Ancestor.
13125 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
13126 call to Is_Ancestor.
13127 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
13128 Use_Full_View to true in calls to Is_Ancestor.
13129 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
13130 Make_Select_Specific_Data_Table, Register_Primitive,
13131 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
13132 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
13133 to true in call to Is_Ancestor.
13134 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
13135 Use_Full_View to true in calls to Is_Ancestor.
13136 * exp_cg.adb
13137 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
13138 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
13139
13140 2011-08-02 Robert Dewar <dewar@adacore.com>
13141
13142 * gnat_rm.texi: Minor reformatting.
13143 * sem_prag.adb: Minor reformatting.
13144
13145 2011-08-02 Tristan Gingold <gingold@adacore.com>
13146
13147 * vms_data.ads: Add VMS qualifier for -gnateP.
13148
13149 2011-08-02 Robert Dewar <dewar@adacore.com>
13150
13151 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
13152 * par-ch7.adb (P_Package): Proper placement of aspects for package
13153 decl/instantiation.
13154 * par-endh.adb (Check_End): Ad Is_Sloc parameter
13155 (End_Statements): Add Is_Sloc parameterr
13156 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
13157 (Check_End): Ad Is_Sloc parameter
13158 (End_Statements): Add Is_Sloc parameterr
13159
13160 2011-08-02 Vincent Celier <celier@adacore.com>
13161
13162 * ug_words: Add VMS qualifier equivalent to -gnateP:
13163 /SYMBOL_PREPROCESSING.
13164
13165 2011-08-02 Jose Ruiz <ruiz@adacore.com>
13166
13167 * gnat-style.texi: For hexadecimal numeric literals the typical
13168 grouping of digits is 4 to represent 2 bytes.
13169 A procedure spec which is split into several lines is indented two
13170 characters.
13171
13172 2011-08-02 Yannick Moy <moy@adacore.com>
13173
13174 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
13175 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
13176 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
13177 properly qualified
13178 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
13179 choice in array aggregate
13180 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
13181 mark as ancestor
13182 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
13183 positional and named aggregate for record, or others in record
13184 aggregate, or multiple choice in record aggregate
13185 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
13186 array operands to logical operations AND, OR and XOR do not have the
13187 same static lower and higher bounds
13188 * sem_ch5.adb, sinfo.ads: Correct typos in comments
13189
13190 2011-08-01 Robert Dewar <dewar@adacore.com>
13191
13192 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
13193 Replaces Last_Source_Node_In_Sequence.
13194 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
13195 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
13196 parens and blank in string (this was inconsistently implemented).
13197 * errout.ads
13198 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
13199 blank in string (this was inconsistently implemented).
13200 * gnat1drv.adb
13201 (Set_Global_Switches): Set formal mode switches appropriately
13202 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
13203 * par-prag.adb
13204 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
13205 call Set_Error_Msg_Lang to set "spark" as language name.
13206 * par.adb: Remove unnecessary call to set formal language for errout
13207 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
13208 appropriately and call Set_Error_Msg_Lang to set "spark" as language
13209 name.
13210 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
13211 calls to it, moved after resolution so that types are known
13212 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
13213 result of concatenation is not of type String
13214 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
13215 concatenation is not properly restricted
13216 * gnat_rm.texi: Add doc on pragma Spark_95.
13217 * gcc-interface/Makefile.in: Remove obsolete target pairs for
13218 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
13219 * gcc-interface/Make-lang.in: Update dependencies.
13220
13221 2011-08-01 Javier Miranda <miranda@adacore.com>
13222
13223 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
13224 condition that detects if the overridden operation must replace an
13225 existing entity.
13226
13227 2011-08-01 Javier Miranda <miranda@adacore.com>
13228
13229 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
13230 code declarations inserted by Insert_Actions in each alternative of the
13231 N_Case_Expression node.
13232
13233 2011-08-01 Robert Dewar <dewar@adacore.com>
13234
13235 * sem_ch6.adb: Minor code reorganization.
13236 * sem_util.adb: Minor reformatting.
13237
13238 2011-08-01 Pascal Obry <obry@adacore.com>
13239
13240 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
13241 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
13242
13243 2011-08-01 Yannick Moy <moy@adacore.com>
13244
13245 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
13246 literal or operator symbol which is prefixed
13247 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
13248 mode on access attributes.
13249 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
13250 that concatenation operands are properly restricted in formal mode
13251 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
13252 Analyze_Concatenation_Operand. Issue an error in formal mode if the
13253 result of the concatenation has a type different from String.
13254 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
13255 Analyze_Quantified_Expression, Analyze_Slice,
13256 Analyze_Null): issue an error in formal mode on unsupported constructs
13257 * sem_ch5.adb
13258 (Analyze_Block_Statement): only issue error on source block statement
13259 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
13260 function which returns the last node in a list of nodes for which
13261 Comes_From_Source returns True, if any
13262 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
13263 Last_Source_Node_In_Sequence
13264 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
13265 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
13266 mode on unsupported constructs
13267 * sem_ch9.adb Do not return after issuing error in formal mode, as the
13268 rest of the actions may be needed later on since the error is marked as
13269 not serious.
13270 * sinfo.ads: Typos in comments.
13271
13272 2011-08-01 Pascal Obry <obry@adacore.com>
13273
13274 * projects.texi: Minor editing.
13275
13276 2011-08-01 Yannick Moy <moy@adacore.com>
13277
13278 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
13279 insertion character ~~
13280 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
13281 (Set_Error_Msg_Lang): new procedure which fixes the language for use
13282 with insertion character ~~
13283 (Set_Msg_Text): treat insertion character ~~
13284 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
13285 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
13286 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
13287 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
13288 errors related to the formal language restriction not serious
13289 (insertion character |).
13290 * par.adb (Par): set formal language for error messages if needed
13291 * sem_ch6.adb (Check_Missing_Return): take into account possible
13292 generated statements at the end of the function
13293 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
13294 enumeration value to define a new pragma SPARK_95
13295 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
13296 SPARK_Version): new type and variables to store the SPARK version
13297 (none by default).
13298 (SPARK_Mode): return True when SPARK_Version is set
13299 * par-prag.adb: Correct indentation
13300 (Prag): take Pragma_SPARK_95 into account
13301 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
13302 into account.
13303
13304 2011-08-01 Robert Dewar <dewar@adacore.com>
13305
13306 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
13307 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
13308 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
13309
13310 2011-08-01 Pascal Obry <obry@adacore.com>
13311
13312 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
13313 Target_Name to Get_Path call.
13314 (Parse_Single_Project): Likewise.
13315 (Post_Parse_Context_Clause): Likewise.
13316 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
13317 Call Initialise_Project_Path with the proper Target_Name.
13318 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
13319 search path.
13320 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
13321 with the proper Target_Name.
13322 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
13323 Part.Parse routine.
13324 (Parse_Project_And_Apply_Config): Likewise.
13325 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
13326 This is fine as this part of the code is supporting only native
13327 compilation.
13328 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
13329 is fine as this part of the code is supporting only native compilation.
13330
13331 2011-08-01 Yannick Moy <moy@adacore.com>
13332
13333 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
13334 of homonym, unless the homonym is one of the cases allowed in SPARK
13335 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
13336 package declaration occurring after a body.
13337
13338 2011-08-01 Robert Dewar <dewar@adacore.com>
13339
13340 * checks.adb, exp_ch4.adb: Minor reformatting.
13341
13342 2011-08-01 Javier Miranda <miranda@adacore.com>
13343
13344 * einfo.ads (Access_Disp_Table): Fix documentation.
13345 (Dispatch_Table_Wrappers): Fix documentation.
13346
13347 2011-08-01 Pascal Obry <obry@adacore.com>
13348
13349 * prj-env.adb, prj-env.ads: Minor reformatting.
13350
13351 2011-08-01 Yannick Moy <moy@adacore.com>
13352
13353 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
13354 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
13355 procedures out of these packages.
13356 * errout.ads, errout.adb
13357 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
13358 procedures in of this package
13359 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
13360 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
13361 on misplaced later vs initial declarations, like in Ada 83
13362 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
13363 formal mode on attribute of private type whose full type declaration
13364 is not visible
13365 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
13366 package declaration inside a package specification
13367 (Analyze_Full_Type_Declaration): issue error in formal mode on
13368 controlled type or discriminant type
13369 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
13370 user-defined operator means that it should come from the source
13371 (New_Overloaded_Entity): issue error in formal mode on overloaded
13372 entity.
13373 * sem_ch6.ads, sem_ch13.ads: typos in comments.
13374
13375 2011-08-01 Thomas Quinot <quinot@adacore.com>
13376
13377 * atree.adb: Minor reformatting.
13378 * checks.adb: Minor reformatting.
13379
13380 2011-08-01 Vincent Celier <celier@adacore.com>
13381
13382 * s-parame-vms-ia64.ads: Fix typo in comment
13383 Minor reformatting
13384 * s-parame-vms-restrict.ads: Removed, unused.
13385
13386 2011-08-01 Javier Miranda <miranda@adacore.com>
13387
13388 * exp_ch3.adb
13389 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
13390 * sem_ch3.adb
13391 (Constrain_Index): Remove side effects in the evaluation of the bounds.
13392 * sem_ch3.ads, sem_ch3.adb
13393 (Is_Constant_Bound): New extended version of the subprogram that was
13394 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
13395 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
13396 * sem_aux.ads (Constant_Value): Fix typo in comment.
13397 * checks.adb (Generate_Index_Checks): New implementation which, for
13398 array objects with constant bounds, generates the runtime check
13399 referencing the bounds of the array type. For other cases this routine
13400 provides its previous behavior obtaining such values from the array
13401 object.
13402 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
13403 parent type.
13404 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
13405 we cannot have semantic interpretations of the new node.
13406
13407 2011-08-01 Ed Schonberg <schonberg@adacore.com>
13408
13409 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
13410 expressions.
13411
13412 2011-08-01 Arnaud Charlet <charlet@adacore.com>
13413
13414 * sem_ch8.adb: Minor code editing.
13415 * s-vxwext.adb: Remove trailing space.
13416 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
13417 consistency with other files.
13418
13419 2011-08-01 Thomas Quinot <quinot@adacore.com>
13420
13421 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
13422
13423 2011-08-01 Ed Schonberg <schonberg@adacore.com>
13424
13425 * par-ch10.adb: reject parameterized expressions as compilation unit.
13426 * sem_ch4.adb: handle properly conditional expression with overloaded
13427 then_clause and no else_clause.
13428
13429 2011-08-01 Tristan Gingold <gingold@adacore.com>
13430
13431 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
13432 like done by System.Aux_DEC.
13433 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
13434
13435 2011-08-01 Yannick Moy <moy@adacore.com>
13436
13437 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
13438 missing label at end of declaration (subprogram or package)
13439 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
13440 of positional and named parameter association
13441 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
13442 Error_Msg_SP which adds a prefix to the error message giving the name
13443 of the formal language analyzed
13444 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
13445 access result type in subprogram, unconstrained array as result type,.
13446 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
13447 procedure
13448 * sem_ch8.adb: Code clean up.
13449
13450 2011-08-01 Javier Miranda <miranda@adacore.com>
13451
13452 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
13453 * einfo.ads (Access_Disp_Table): Fix documentation.
13454 (Dispatch_Table_Wrappers): Fix documentation.
13455 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
13456 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
13457 to enforce the documentation of this attribute.
13458 (Set_Is_Interface): Cleanup the assertion.
13459 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
13460 the Underlying_Type entity before reading attribute Access_Disp_Table.
13461 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
13462 Locate the Underlying_Type before reading attribute Access_Disp_Table.
13463 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
13464 the Underlying_Type entity before reading attribute Access_Disp_Table.
13465 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
13466 Locate the Underlying_Type entity before reading attribute
13467 Access_Disp_Table.
13468
13469 2011-08-01 Ed Schonberg <schonberg@adacore.com>
13470
13471 * s-poosiz.ads: Additional overriding indicators.
13472
13473 2011-08-01 Yannick Moy <moy@adacore.com>
13474
13475 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
13476 formal mode.
13477 (Analyze_Iteration_Scheme): issue error in formal mode when loop
13478 parameter specification does not include a subtype mark.
13479 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
13480 formal mode on abstract subprogram.
13481 (Analyze_Subprogram_Specification): issue error in formal mode on
13482 user-defined operator.
13483 (Process_Formals): issue error in formal mode on access parameter and
13484 default expression.
13485 * sem_ch9.adb (Analyze_Abort_Statement,
13486 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
13487 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
13488 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
13489 Analyze_Requeue, Analyze_Selective_Accept,
13490 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
13491 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
13492 issue error in formal mode on user-defined raise statement.
13493
13494 2011-08-01 Thomas Quinot <quinot@adacore.com>
13495
13496 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
13497 declaration being hidden when overriding an implicit inherited
13498 subprogram.
13499 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
13500 (-gnats), do not complain about a source file that contains only a
13501 pragma No_Body.
13502
13503 2011-08-01 Ed Schonberg <schonberg@adacore.com>
13504
13505 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
13506 variable if already set.
13507
13508 2011-08-01 Arnaud Charlet <charlet@adacore.com>
13509
13510 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
13511 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
13512 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
13513 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
13514 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
13515 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
13516 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
13517 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
13518 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
13519 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
13520 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
13521 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
13522 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
13523 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
13524 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
13525 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
13526 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
13527 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
13528 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
13529 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
13530 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
13531 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
13532 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
13533 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
13534 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
13535 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
13536 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
13537 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
13538 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
13539 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
13540 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
13541 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
13542 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
13543 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
13544 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
13545 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
13546 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
13547 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
13548 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
13549 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
13550 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
13551 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
13552 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
13553 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
13554 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
13555 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
13556 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
13557 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
13558 s-osinte-mingw.ads: Update to GPLv3 run-time license.
13559 Use GNAT instead of GNARL.
13560
13561 2011-08-01 Bob Duff <duff@adacore.com>
13562
13563 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
13564 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
13565 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
13566 reformatting.
13567
13568 2011-08-01 Yannick Moy <moy@adacore.com>
13569
13570 * debug.adb (d.D) reverve flag for the SPARK mode
13571 (d.E) reverve flag for SPARK generation mode
13572 (d.F) reverve flag for Why generation mode
13573 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
13574 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
13575 functions which return True when the corresponding modes are set
13576 (Formal_Language): return "spark" or "alfa" when in formal verification
13577 mode.
13578 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
13579 Error_Msg to prefix the error message with a tag giving the formal
13580 language
13581 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
13582 message with a tag giving the formal language
13583 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
13584 block statement
13585 (Analyze_Case_Statement): issue error in formal mode on case statement
13586 with a single "others" case alternative
13587 (Analyze_Exit_Statement): issue errors in formal mode on exit
13588 statements which do not respect SPARK restrictions
13589 (Analyze_Goto_Statement): issue error in formal mode on goto statement
13590 (Check_Unreachable_Code): always issue an error (not a warning) in
13591 formal mode on unreachable code (concerns both code after an infinite
13592 loop and after an unconditional jump, both not allowed in SPARK)
13593 * sem_ch6.adb (Analyze_Return_Statement): add call to
13594 Set_Return_Present for a procedure containing a return statement
13595 (already done for functions in Analyze_Function_Return)
13596 (Analyze_Function_Return): issue error in formal mode on extended
13597 return or if return is not last statement in function
13598 (Check_Missing_Return): issue error in formal mode if function does
13599 not end with return or if procedure contains a return
13600 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
13601 function to detect if there is an inner scope of its parameter S which
13602 is a loop.
13603
13604 2011-08-01 Thomas Quinot <quinot@adacore.com>
13605
13606 * sem_ch6.ads: Minor reformatting.
13607
13608 2011-08-01 Javier Miranda <miranda@adacore.com>
13609
13610 * sem_util.adb (Abstract_Interface_List): Complete condition when
13611 processing private type declarations to avoid reading unavailable
13612 attribute.
13613 (Is_Synchronized_Tagged_Type): Complete condition when processing
13614 private extension declaration nodes to avoid reading unavailable
13615 attribute.
13616
13617 2011-08-01 Thomas Quinot <quinot@adacore.com>
13618
13619 * sem_ch3.adb: Minor reformatting.
13620
13621 2011-08-01 Thomas Quinot <quinot@adacore.com>
13622
13623 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
13624 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
13625 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
13626 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
13627 for VMS, instead parametrize the common implementation with
13628 System.Parameters declarations.
13629
13630 2011-08-01 Eric Botcazou <ebotcazou@adacore.com>
13631
13632 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
13633
13634 2011-08-01 Tristan Gingold <gingold@adacore.com>
13635
13636 * seh_init.c: Fix SEH handler installation on win64.
13637
13638 2011-08-01 Ed Schonberg <schonberg@adacore.com>
13639
13640 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
13641 double analysis of an anonymous access to subprogram, because it can
13642 lead to improper sharing of profiles and a back-end crash.
13643
13644 2011-08-01 Robert Dewar <dewar@adacore.com>
13645
13646 * make.adb, sem_ch4.adb: Minor reformatting.
13647 * gcc-interface/Make-lang.in: Update dependencies.
13648 * sem_util.adb, exp_ch5.adb: Minor reformatting.
13649
13650 2011-08-01 Arnaud Charlet <charlet@adacore.com>
13651
13652 * gnat_rm.texi: Fix definition of Long_Integer.
13653
13654 2011-08-01 Ed Schonberg <schonberg@adacore.com>
13655
13656 * exp_aggr.adb: check limit size of static aggregate unconditionally,
13657 to prevent storage exhaustion.
13658 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
13659 finalized is a function body, insert the cleanup code before the final
13660 return statement, to prevent spurious warnings.
13661 * s-pooglo.ads: add overriding indicator.
13662
13663 2011-08-01 Ed Schonberg <schonberg@adacore.com>
13664
13665 * sem_ch4.adb (Operator_Check): improve error message when both a
13666 with_clause and a use_clause are needed to make operator usage legal.
13667 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
13668 determine whether a compilation unit is visible within an other,
13669 either through a with_clause in the current unit, or a with_clause in
13670 its library unit or one one of its parents.
13671
13672 2011-08-01 Ed Schonberg <schonberg@adacore.com>
13673
13674 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
13675 over an arbitrary expression of an array or container type.
13676 * lib-xref.adb: clarify comment.
13677
13678 2011-08-01 Bob Duff <duff@adacore.com>
13679
13680 * einfo.ads: Minor reformatting.
13681 * debug.adb: Minor comment improvement.
13682
13683 2011-08-01 Javier Miranda <miranda@adacore.com>
13684
13685 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
13686 consider hidden subprograms as valid candidates.
13687
13688 2011-08-01 Arnaud Charlet <charlet@adacore.com>
13689
13690 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
13691
13692 2011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
13693
13694 * gnat_ugn.texi: Fix typo.
13695
13696 2011-08-01 Robert Dewar <dewar@adacore.com>
13697
13698 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
13699 lib-xref.adb: Minor reformatting
13700
13701 2011-08-01 Gary Dismukes <dismukes@adacore.com>
13702
13703 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
13704 when to generate a call to Move_Final_List.
13705 (Has_Controlled_Parts): Remove this function.
13706
13707 2011-08-01 Geert Bosch <bosch@adacore.com>
13708
13709 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
13710 "," in choice list.
13711
13712 2011-08-01 Thomas Quinot <quinot@adacore.com>
13713
13714 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
13715 explicit raise of a predefined exception as Comes_From_Source if the
13716 original N_Raise_Statement comes from source.
13717
13718 2011-08-01 Robert Dewar <dewar@adacore.com>
13719
13720 * sinfo.ads: Add comment.
13721 * sem_ch6.adb: Minor reformatting.
13722
13723 2011-08-01 Robert Dewar <dewar@adacore.com>
13724
13725 * freeze.adb (Freeze_Entity): Refine check for bad component size
13726 clause to avoid rejecting confirming clause when atomic/aliased present.
13727
13728 2011-08-01 Ed Schonberg <schonberg@adacore.com>
13729
13730 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
13731 better determine whether an entity reference is a write.
13732 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
13733 subcomponent.
13734 * lib-xref.adb (Output_References): Do no suppress a read reference at
13735 the same location as an immediately preceeding modify-reference, to
13736 handle properly in-out actuals.
13737
13738 2011-08-01 Tristan Gingold <gingold@adacore.com>
13739
13740 * env.c (__gnat_setenv) [VMS]: Refine previous change.
13741
13742 2011-08-01 Quentin Ochem <ochem@adacore.com>
13743
13744 * i-cstrin.adb (New_String): Changed implementation, now uses only the
13745 heap to compute the result.
13746
13747 2011-08-01 Robert Dewar <dewar@adacore.com>
13748
13749 * atree.ads: Minor reformatting.
13750
13751 2011-08-01 Emmanuel Briot <briot@adacore.com>
13752
13753 * g-expect.adb (Get_Command_Output): Fix memory leak.
13754
13755 2011-08-01 Geert Bosch <bosch@adacore.com>
13756
13757 * cstand.adb (P_Float_Type): New procedure to print the definition of
13758 predefined fpt types.
13759 (P_Mixed_Name): New procedure to print a name using mixed case
13760 (Print_Standard): Use P_Float_Type for printing floating point types
13761 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
13762 precision IEEE float.
13763
13764 2011-08-01 Thomas Quinot <quinot@adacore.com>
13765
13766 * sem_ch3.adb: Minor reformatting.
13767
13768 2011-08-01 Ed Schonberg <schonberg@adacore.com>
13769
13770 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
13771 the completion of a generic function, insert the new body rather than
13772 rewriting the original.
13773
13774 2011-08-01 Yannick Moy <moy@adacore.com>
13775
13776 * sinfo.ads, errout.ads: Typos in comments.
13777
13778 2011-08-01 Robert Dewar <dewar@adacore.com>
13779
13780 * par-endh.adb: Minor reformatting.
13781
13782 2011-08-01 Robert Dewar <dewar@adacore.com>
13783
13784 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
13785 (Pre_Post_Aspects): New subtype.
13786 * par-ch12.adb (P_Generic): New syntax for aspects in packages
13787 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
13788 * par-ch7.adb (P_Package): Remove Decl parameter
13789 (P_Package): Handle new syntax for aspects (before IS)
13790 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
13791 new aspect syntax
13792 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
13793 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
13794 (P_Package): Remove Decl parameter
13795 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
13796 aspects
13797 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
13798 specs
13799 * sem_util.ads, sem_util.adb (Static_Boolean): New function
13800 * sinfo.ads: Document new syntax for aspects in packages etc.
13801 * sprint.adb: Handle new syntax of aspects before IS in package
13802
13803 2011-08-01 Thomas Quinot <quinot@adacore.com>
13804
13805 * atree.ads: Minor reformatting.
13806 * sem_prag.adb: Minor reformatting.
13807
13808 2011-08-01 Robert Dewar <dewar@adacore.com>
13809
13810 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
13811 case expr alternative.
13812
13813 2011-08-01 Ed Schonberg <schonberg@adacore.com>
13814
13815 * sem_ch12.adb: Fix typo.
13816
13817 2011-08-01 Geert Bosch <bosch@adacore.com>
13818
13819 * sem_prag.adb (Check_No_Link_Name): New procedure.
13820 (Process_Import_Or_Interface): Use Check_No_Link_Name.
13821 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
13822 instead of Standard_Long_Long_Float_Size global. Preparation for
13823 eventual removal of per type constants.
13824 * exp_util.ads (Get_Stream_Size): New function returning the stream
13825 size value of subtype E.
13826 * exp_util.adb (Get_Stream_Size): Implement new function.
13827 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
13828 function.
13829 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
13830 * einfo.adb:
13831 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
13832
13833 2011-08-01 Geert Bosch <bosch@adacore.com>
13834
13835 * cstand.adb: Fix comments.
13836 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
13837 count of arguments.
13838
13839 2011-08-01 Robert Dewar <dewar@adacore.com>
13840
13841 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
13842
13843 2011-08-01 Geert Bosch <bosch@adacore.com>
13844
13845 * atree.ads: Fix comment.
13846
13847 2011-08-01 Robert Dewar <dewar@adacore.com>
13848
13849 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
13850 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
13851 * par.adb: Add with for Namet.Sp.
13852 * par-tchk.adb: Minor reformatting.
13853
13854 2011-08-01 Vincent Celier <celier@adacore.com>
13855
13856 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
13857 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
13858 of the init procedure of a SAL.
13859 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
13860 New procedure.
13861
13862 2011-08-01 Thomas Quinot <quinot@adacore.com>
13863
13864 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
13865 reformatting.
13866
13867 2011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13868
13869 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
13870
13871 2011-08-01 Thomas Quinot <quinot@adacore.com>
13872
13873 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
13874 conformant with its spec (return True only for types that have
13875 an overriding Initialize primitive operation that prevents them from
13876 having preelaborable initialization).
13877 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
13878 initialization for controlled types in Ada 2005 or later mode.
13879
13880 2011-08-01 Robert Dewar <dewar@adacore.com>
13881
13882 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
13883 Postcondition.
13884 (Same_Aspect): New function.
13885 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
13886 Type_Invariant, Precondition, Postcondition.
13887 * snames.ads-tmpl: Add Name_Type_Invariant.
13888
13889 2011-08-01 Robert Dewar <dewar@adacore.com>
13890
13891 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
13892 here.
13893 (Freeze_All_Ent): Fix error in handling inherited aspects.
13894 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
13895 already analyzed, but don't skip entire processing of a declaration,
13896 that's wrong in some cases of declarations being rewritten.
13897 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
13898 Don't delay for integer, string literals
13899 Treat predicates in usual manner for delay, remove special case code,
13900 not needed.
13901 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
13902 (Build_Predicate_Function): Update saved expression in aspect
13903 (Build_Invariant_Procedure): Update saved expression in aspect
13904 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
13905 of replacement of discriminant references if the reference is simple.
13906
13907 2011-08-01 Robert Dewar <dewar@adacore.com>
13908
13909 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
13910 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
13911 Static_Predicate and Dynamic_Predicate.
13912 (Build_Predicate_Function): Add processing for Static_Predicate
13913 and Dynamic_Predicate.
13914 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
13915 (From_Static_Predicate): New flag
13916 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
13917
13918 2011-08-01 Robert Dewar <dewar@adacore.com>
13919
13920 * usage.adb: Documentation cleanup for Ada version modes in usage.
13921 * expander.adb: Minor reformatting.
13922
13923 2011-08-01 Robert Dewar <dewar@adacore.com>
13924
13925 * atree.ads: Minor comment fix.
13926 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
13927 a-witeio.ads, sem_prag.adb: Minor reformatting.
13928
13929 2011-08-01 Doug Rupp <rupp@adacore.com>
13930
13931 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
13932 pointers. Use descrip.h header file for convenience. Add some
13933 comments.
13934
13935 2011-08-01 Robert Dewar <dewar@adacore.com>
13936
13937 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
13938 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
13939 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
13940 New procedure.
13941 (Check_Aspect_At_End_Of_Declarations): New procedure
13942 (Analye_Aspect_Specification): Minor changes for above procedures
13943 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
13944 specification node as well.
13945
13946 2011-08-01 Pascal Obry <obry@adacore.com>
13947
13948 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
13949 Windows files. Use GetFilesAttributes() in this case to check for file
13950 existence instead of returning with an error code.
13951
13952 2011-08-01 Vincent Celier <celier@adacore.com>
13953
13954 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
13955 High is above Source length.
13956
13957 2011-08-01 Robert Dewar <dewar@adacore.com>
13958
13959 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
13960
13961 2011-08-01 Robert Dewar <dewar@adacore.com>
13962
13963 * aspects.ads (Boolean_Aspects): New subtype.
13964 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
13965 for derived types in cases where the parent type and derived type have
13966 aspects.
13967 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
13968 with aspects when parent type also has aspects.
13969 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
13970 boolean expression at this point).
13971 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
13972 accordance with final decision on the Ada 2012 feature.
13973 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
13974
13975 2011-08-01 Matthew Heaney <heaney@adacore.com>
13976
13977 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
13978
13979 2011-08-01 Pascal Obry <obry@adacore.com>
13980
13981 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
13982 Fix Replace_Slice when High is above current string size.
13983 (Replace_Slice): Fix DL computation when High is above current
13984 string length.
13985
13986 2011-08-01 Gary Dismukes <dismukes@adacore.com>
13987
13988 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
13989
13990 2011-08-01 Matthew Heaney <heaney@adacore.com>
13991
13992 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
13993 of node.
13994
13995 2011-08-01 Pascal Obry <obry@adacore.com>
13996
13997 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
13998 reformatting.
13999
14000 2011-08-01 Ed Schonberg <schonberg@adacore.com>
14001
14002 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
14003 access to protected subprograms in generic bodies.
14004 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
14005 protected type, indicate that the convention of the subprogram is
14006 Convention_Protected, because it may be used in subsequent declarations
14007 within the protected declaration.
14008
14009 2011-08-01 Vincent Celier <celier@adacore.com>
14010
14011 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
14012 and "final" procedures when the name of the library is "ada", to avoid
14013 duplicate symbols "adainit" and "adafinal" in executables.
14014
14015 2011-08-01 Ed Schonberg <schonberg@adacore.com>
14016
14017 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
14018 quantified expression that appears within a postcondition and uses the
14019 Ada2012 'Result attribute.
14020
14021 2011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14022
14023 * init.c (__gnat_error_handler): Cast reason to int.
14024 (__gnat_install_handler): Explain sa_sigaction use.
14025
14026 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
14027
14028 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
14029 subprogram has copy-in copy-out parameters, try to promote the mode of
14030 the return type if it is passed in registers.
14031
14032 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
14033
14034 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
14035 left operand as addressable.
14036
14037 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
14038
14039 * gcc-interface/gigi.h (build_function_stub): Remove.
14040 (build_return_expr): Likewise.
14041 (convert_vms_descriptor): Declare.
14042 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
14043 (build_function_stub): Move to...
14044 * gcc-interface/utils2.c (build_return_expr): Move to...
14045 * gcc-interface/trans.c (build_function_stub): ...here.
14046 (build_return_expr): ...here.
14047 (Subprogram_Body_to_gnu): Add local variable for language_function.
14048 Disconnect the parameter attributes cache, if any, once done with it.
14049 Call end_subprog_body only after setting the end_locus.
14050 Build the stub associated with the function, if any, at the very end.
14051 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
14052 variables and streamline control flow.
14053
14054 2011-07-23 Arnaud Charlet <charlet@adacore.com>
14055
14056 PR ada/49819
14057 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
14058 g-trasym-dwarf.adb.
14059
14060 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14061
14062 PR bootstrap/49794
14063 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
14064 Assign to act.sa_sigaction.
14065 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
14066 current->return_address to char * before arithmetic.
14067
14068 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14069
14070 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
14071 Correct argument types.
14072 Extract code from reason.
14073 (__gnat_install_handler): Assign to act.sa_sigaction.
14074
14075 2011-07-21 Eric Botcazou <ebotcazou@adacore.com>
14076
14077 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
14078 (GNAT1_OBJS): ...here.
14079
14080 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
14081
14082 PR ada/48711
14083 * g-socthi-mingw.adb (Fill): Fix formatting.
14084
14085 * gcc-interface/gigi.h: Move around comment.
14086
14087 2011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14088
14089 PR ada/46350
14090 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
14091
14092 2011-07-14 Florian Weimer <fw@deneb.enyo.de>
14093
14094 PR ada/48711
14095 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
14096
14097 2011-07-13 Eric Botcazou <ebotcazou@adacore.com>
14098
14099 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
14100 range comparison if Pmode is SImode.
14101
14102 2011-07-12 Laurent GUERBY <laurent@guerby.net>
14103 Eric Botcazou <ebotcazou@adacore.com>
14104
14105 * adadecode.c: Wrap up in extern "C" block.
14106 * adadecode.h: Likewise.
14107 * adaint.c: Likewise. Remove 'const' keyword.
14108 * adaint.h: Likewise.
14109 * argv.c: Likewise.
14110 * atree.h: Likewise.
14111 * cio.c: Likewise.
14112 * cstreams.c: Likewise.
14113 * env.c: Likewise.
14114 * exit.c: Likewise.
14115 * fe.h: Likewise.
14116 * final.c: Likewise.
14117 * init.c: Likewise.
14118 * initialize.c: Likewise.
14119 * link.c: Likewise.
14120 * namet.h: Likewise.
14121 * nlists.h: Likewise.
14122 * raise.c: Likewise.
14123 * raise.h: Likewise.
14124 * repinfo.h: Likewise.
14125 * seh_init.c: Likewise.
14126 * targext.c: Likewise.
14127 * tracebak.c: Likewise.
14128 * uintp.h: Likewise.
14129 * urealp.h: Likewise.
14130 * xeinfo.adb: Wrap up generated C code in extern "C" block.
14131 * xsinfo.adb: Likewise.
14132 * xsnamest.adb: Likewise.
14133 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
14134 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
14135 * gcc-interface/misc.c: Likewise.
14136 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
14137 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
14138 ada/targext.o here...
14139 (GNAT_ADA_OBJS): ...and not here.
14140 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
14141 (GNATBIND_OBJS): Reorder.
14142
14143 2011-07-07 Richard Henderson <rth@redhat.com>
14144
14145 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
14146 dwarf2out_frame_init.
14147
14148 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
14149
14150 * gcc-interface/misc.c (gnat_init): Tweak previous change.
14151
14152 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14153
14154 PR target/39150
14155 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
14156
14157 2011-07-06 Richard Guenther <rguenther@suse.de>
14158
14159 * gcc-interface/misc.c (gnat_init): Merge calls to
14160 build_common_tree_nodes and build_common_tree_nodes_2.
14161 Re-initialize boolean_false_node.
14162
14163 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
14164 Olivier Hainque <hainque@adacore.com>
14165 Nicolas Setton <setton@adacore.com>
14166
14167 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
14168 the type according to the ARTIFICIAL_P parameter.
14169 (create_type_decl): Likewise.
14170 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
14171
14172 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
14173
14174 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
14175 (gnatbind): Likewise.
14176
14177 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14178
14179 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
14180
14181 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
14182
14183 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
14184 local variable throughout. Remove useless call to Base_Type.
14185 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
14186 Take it also into account for the volatileness of the field. Set the
14187 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
14188
14189 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
14190
14191 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
14192 on a dereference built for a by-ref object if it has an address clause.
14193
14194 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
14195
14196 * einfo.ads (Address_Taken): Document use for the second argument of
14197 Asm_Input and Asm_Output attributes.
14198 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
14199 argument is an entity name, then set Address_Taken on it.
14200 <Attribute_Asm_Output>: Likewise.
14201 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
14202 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
14203 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
14204 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
14205
14206 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
14207
14208 PR middle-end/46500
14209 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
14210
14211 2011-06-14 Joseph Myers <joseph@codesourcery.com>
14212
14213 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
14214 (ada/utils.o): Update dependencies.
14215 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
14216 ../../../libcpp/libcpp.a.
14217 * gcc-interface/utils.c: Include common/common-target.h.
14218 (process_attributes): Use targetm_common.have_named_sections.
14219
14220 2011-06-07 Richard Guenther <rguenther@suse.de>
14221
14222 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
14223 set_sizetype.
14224
14225 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
14226
14227 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
14228 TREE_THIS_NOTRAP flag.
14229
14230 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
14231
14232 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
14233 Fix thinko.
14234
14235 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
14236
14237 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
14238 constants whose full view has discriminants specially.
14239
14240 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
14241
14242 * gcc-interface/utils.c: Include diagnostic.h.
14243 (gnat_write_global_declarations): Output debug information for all
14244 global type declarations before finalizing the compilation unit.
14245 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
14246
14247 2011-05-25 Jakub Jelinek <jakub@redhat.com>
14248
14249 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
14250
14251 2011-05-25 Kai Tietz <ktietz@redhat.com>
14252
14253 * adaint.c (__gnat_to_canonical_file_list_next): Use array
14254 initialization instead of const/none-const pointer assignment.
14255
14256 2011-05-24 Joseph Myers <joseph@codesourcery.com>
14257
14258 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
14259 $(EXTRA_GNAT1_OBJS).
14260 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
14261 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
14262 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
14263 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
14264 libcommon-target.a instead of prefix.o.
14265
14266 2011-05-21 Joseph Myers <joseph@codesourcery.com>
14267
14268 PR ada/49097
14269 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
14270
14271 2011-05-20 Joseph Myers <joseph@codesourcery.com>
14272
14273 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
14274 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
14275 instead of version.o.
14276
14277 2011-05-18 Kai Tietz <ktietz@redhat.com>
14278
14279 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
14280 boolean_false_node instead of integer_zero_node.
14281 (convert_with_check): Likewise.
14282 * gcc-interface/decl.c (choices_to_gnu): Likewise.
14283
14284 2011-05-12 Eric Botcazou <ebotcazou@adacore.com>
14285
14286 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
14287 type of the parameter is an unconstrained array, convert the actual to
14288 the type of the formal in the In Out and Out cases as well.
14289
14290 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
14291
14292 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
14293 call build_function_type_array or build_varargs_function_type_array
14294 instead.
14295 (create_subprog_type): Don't call build_function_type; call
14296 build_function_type_vec instead.
14297
14298 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
14299
14300 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
14301 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
14302 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
14303
14304 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
14305
14306 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
14307
14308 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
14309 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
14310
14311 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
14312
14313 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
14314
14315 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
14316
14317 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
14318 instead of accessing TYPE_ARG_TYPES directly.
14319 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
14320
14321 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
14322
14323 PR ada/48844
14324 * gcc-interface/gigi.h (get_variant_part): Declare.
14325 * gcc-interface/decl.c (get_variant_part): Make global.
14326 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
14327 types have the same constant size, are record types and T1 has a
14328 variant part while T2 doesn't.
14329
14330 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
14331
14332 * gcc-interface/utils.c (begin_subprog_body): Do not call
14333 get_pending_sizes.
14334 (end_subprog_body): Likewise.
14335
14336 2011-05-04 Richard Guenther <rguenther@suse.de>
14337
14338 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
14339 int_const_binop.
14340 (pos_to_constructor): Likewise.
14341
14342 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14343 Eric Botcazou <ebotcazou@adacore.com>
14344
14345 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
14346 of build_function_type. Adjust calls to...
14347 (build_raise_check): ...this. Do not take a void_tree parameter.
14348 Call build_function_type_list instead of build_function_type.
14349 Fix head comment and swap couple of conditional blocks.
14350
14351 2011-04-30 Eric Botcazou <ebotcazou@adacore.com>
14352
14353 * gnatvsn.ads (Library_Version): Bump to 4.7.
14354 (Current_Year): Bump to 2011.
14355
14356 2011-04-29 Michael Matz <matz@suse.de>
14357
14358 * gcc-interface/misc.c (gnat_handle_option): Set
14359 warn_maybe_uninitialized.
14360
14361 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
14362
14363 * gnat_ugn.texi (Complexity Metrics Control): Update link to
14364 the Watson/McCabe paper.
14365
14366 2011-04-23 Jim Meyering <meyering@redhat.com>
14367
14368 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
14369
14370 2011-04-22 Eric Botcazou <ebotcazou@adacore.com>
14371
14372 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
14373 onto the new type.
14374
14375 2011-04-22 Eric Botcazou <ebotcazou@adacore.com>
14376
14377 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
14378 parameter.
14379 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
14380 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
14381 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
14382 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
14383 <all>: Do not set flags on the reused DECL node coming from an alias.
14384 Set DECL_IGNORED_P on the DECL node built for subprograms if they
14385 don't need debug info here...
14386 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
14387 (gigi): Adjust calls to create_subprog_decl.
14388 (build_raise_check): Likewise.
14389 (establish_gnat_vms_condition_handler): Likewise.
14390 (Compilation_Unit_to_gnu): Likewise.
14391 (gnat_to_gnu): Likewise.
14392
14393 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
14394
14395 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
14396 (NO_REORDER_ADAFLAGS): New variable.
14397 (EXTRA_GNATTOOLS): Always define.
14398 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
14399 Clean up and adjust list of files compiled with special options.
14400 * gcc-interface/Make-lang.in: Likewise.
14401 (ada/decl.o): Cosmetical change.
14402 (ada/misc.o): Remove dependency on $(PLUGIN_H).
14403
14404 2011-04-20 Jim Meyering <meyering@redhat.com>
14405
14406 * initialize.c (__gnat_initialize): Remove useless if-before-free.
14407
14408 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
14409
14410 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
14411 $(CFLAGS) on the link line.
14412
14413 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
14414
14415 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
14416 padded type built for the return type if it is unconstrained.
14417
14418 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
14419
14420 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
14421
14422 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
14423
14424 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
14425 before calling TREE_CHAIN.
14426 * gcc-interface/misc.c (gnat_init_ts): New function.
14427 (LANG_HOOKS_INIT_TS): Define.
14428
14429 2011-04-12 Martin Jambor <mjambor@suse.cz>
14430
14431 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
14432 instead of cgraph_node.
14433
14434 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
14435
14436 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
14437 alignment on fields of the RETURN type built for the Copy-In Copy-Out
14438 mechanism.
14439
14440 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
14441
14442 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
14443 of aggregate types that contain a placeholder.
14444
14445 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
14446
14447 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
14448 TYPE_ARG_TYPES.
14449 (handle_type_generic_attribute): Likewise.
14450
14451 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
14452
14453 PR ada/47163
14454 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
14455
14456 2011-04-04 Kai Tietz <ktietz@redhat.com>
14457
14458 PR ada/47163
14459 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
14460 to flag value.
14461
14462 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14463
14464 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
14465 type case, do not strip a padding type around the array type.
14466
14467 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14468
14469 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
14470 types.
14471
14472 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14473
14474 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
14475 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
14476 code for -feliminate-unused-debug-types.
14477 (gnat_post_options): Likewise.
14478
14479 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14480
14481 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
14482 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
14483 distinct copy.
14484
14485 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14486
14487 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
14488 DECL_ARTIFICIAL flag on enumeration types.
14489
14490 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14491
14492 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
14493 fat pointer types artificial unconditionally.
14494 <E_Array_Subtype>: Attach the base array type as a parallel type if it
14495 isn't artificial.
14496
14497 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14498
14499 * gcc-interface/gigi.h (get_dummy_type): Declare.
14500 (build_dummy_unc_pointer_types): Likewise.
14501 (finish_fat_pointer_type): Likewise.
14502 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
14503 fat pointer type has been built, complete it in place.
14504 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
14505 and thin pointers. Remove useless variable.
14506 (finish_fat_pointer_type): Make global and move to...
14507 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
14508 (get_dummy_type): New function.
14509 (build_dummy_unc_pointer_types): Likewise.
14510 (gnat_pushdecl): Propage the name to the anonymous variants only.
14511 (update_pointer_to): Only adjust the pointer types in the unconstrained
14512 array case.
14513
14514 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14515
14516 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
14517 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
14518 if this is a Taft amendment type and the full declaration is available.
14519 * gcc-interface/trans.c (process_type): Likewise.
14520 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
14521 (process_freeze_entity): Likewise.
14522 * gcc-interface/utils.c (dummy_global): New static variable.
14523 (gnat_write_global_declarations): If there are types declared as used
14524 at the global level, insert them in the global hash table.
14525
14526 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14527
14528 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
14529 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
14530 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
14531 copy.
14532 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
14533 flag of the type accordingly.
14534 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
14535
14536 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14537
14538 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
14539 finalizing types when updating the pointers to the designated type.
14540 <all>: Finalize the deferred types even if we didn't defer processing
14541 of incomplete types in this invocation.
14542
14543 2011-04-01 Olivier Hainque <hainque@adacore.com>
14544 Nicolas Setton <setton@adacore.com>
14545 Eric Botcazou <ebotcazou@adacore.com>
14546
14547 * gcc-interface/misc.c (gnat_descriptive_type): New function.
14548 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
14549
14550 2011-03-28 Kai Tietz <ktietz@redhat.com>
14551
14552 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
14553 Windows targets.
14554 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
14555 * system-mingw.ads (System): Change ZCX_By_Default default to True.
14556
14557 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
14558
14559 2011-03-28 Tristan Gingold <gingold@adacore.com>
14560
14561 PR ada/44431
14562 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
14563 Use ada output of gnatbind.
14564 (ada/b_gnatb.adb): Ditto.
14565 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
14566 (ada.mostlyclean, ada.stage1)
14567 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
14568 (ada.stagefeedback): Adjust.
14569 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
14570 Use ada output of gnatbind.
14571 (b_gnatm.adb): Ditto.
14572 (b_gnatl.o, b_gnatm.o): New rules.
14573
14574 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
14575
14576 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
14577 for the padded type built to support a specified size or alignment.
14578
14579 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
14580
14581 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
14582 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
14583 unconditionally to the end of the unit when the designated type is
14584 limited_with'ed.
14585 <all>: Rename local variable. Attempt to un-defer types only and do it
14586 for limited_with'ed types as well.
14587 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
14588 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
14589 consistently and remove redundant call to finalize_from_with_types.
14590
14591 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
14592
14593 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
14594 subprograms without a previous spec declared in the same unit.
14595 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
14596 subprograms at the end of the unit instead of at the beginning.
14597 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
14598 isn't public for the special handling of non-inline functions nested
14599 inside inline external functions.
14600
14601 2011-03-25 Jeff Law <law@redhat.com>
14602
14603 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
14604
14605 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14606
14607 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
14608 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
14609 to compute Set_Size_Depends_On_Discriminant.
14610 (Layout_Type): Call it on array types in back-end layout mode.
14611 * sem_util.adb (Requires_Transient_Scope): Return true for array
14612 types only if the size depends on the value of discriminants.
14613 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
14614 type if the RHS is a call to a function that returns an unconstrained
14615 type with default discriminant.
14616
14617 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14618
14619 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
14620 non-conversion to the nominal result type at the end.
14621
14622 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
14623
14624 * gcc-interface/trans.c (create_temporary): New function taken from...
14625 (create_init_temporary): ...here. Call it.
14626 (call_to_gnu): Create the temporary for the return value early, if any.
14627 Create it for a function with copy-in/copy-out parameters if there is
14628 no target; in other cases of copy-in/copy-out, use another temporary.
14629 Push the new binding level lazily. Add and rename local variables.
14630
14631 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
14632
14633 * gcc-interface/decl.c (validate_size): Improve comments and tweak
14634 error message.
14635 (set_rm_size): Likewise.
14636
14637 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
14638
14639 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
14640 for the padded type built in order to support a specified alignment.
14641 Fix incorrect formatting.
14642
14643 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14644
14645 PR bootstrap/48216
14646 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
14647
14648 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14649
14650 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
14651 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
14652 to the end of the list. Adjust recursive call. Rename local variable.
14653 If REORDER is true, reorder components of the record type.
14654 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
14655 components_to_record and adjust the parameter list.
14656
14657 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14658
14659 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
14660 disabled, use the variable for bounds of loop iteration scheme.
14661
14662 2011-03-21 Kai Tietz <ktietz@redhat.com>
14663
14664 PR target/12171
14665 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
14666
14667 2011-03-17 Eric Botcazou <ebotcazou@adacore.com>
14668
14669 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
14670 out whether the expression is read-only. Short-circuit placeholder
14671 case and rename a couple of local variables.
14672
14673 2011-03-17 Eric Botcazou <ebotcazou@adacore.com>
14674
14675 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
14676 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
14677 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
14678 (convert): Deal with conversions from a smaller form type specially.
14679
14680 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
14681
14682 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
14683 its argument, except for the special -I- switch.
14684
14685 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
14686
14687 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
14688 "Ada Issues".
14689
14690 2011-02-08 Eric Botcazou <ebotcazou@adacore.com>
14691
14692 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
14693
14694 2011-02-03 Eric Botcazou <ebotcazou@adacore.com>
14695
14696 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
14697 GNAT_FORMAL.
14698 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
14699 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
14700 instead of GNAT_FORMAL. Protect the expression against multiple uses.
14701 Do not generate the check directly, instead instantiate the template
14702 check present in the descriptor.
14703 (make_descriptor_field): Move around.
14704 (build_vms_descriptor32): Build a template check in the POINTER field.
14705 (build_vms_descriptor): Remove useless suffixes.
14706 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
14707
14708 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14709
14710 PR bootstrap/47467
14711 * targext.c: Include target files if IN_RTS is defined.
14712
14713 2011-01-26 Richard Guenther <rguenther@suse.de>
14714
14715 PR bootstrap/47467
14716 * targext.c: Include config.h.
14717 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
14718 dependency.
14719
14720 2011-01-04 Pascal Obry <obry@adacore.com>
14721 Eric Botcazou <ebotcazou@adacore.com>
14722
14723 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
14724
14725 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14726
14727 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
14728 end-of-case on the end label and its associated gotos, if any.
14729
14730 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14731
14732 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
14733 expressions of the parameter cache within the statement group of
14734 the CICO mechanism.
14735
14736 2011-01-04 Olivier Hainque <hainque@adacore.com>
14737 Eric Botcazou <ebotcazou@adacore.com>
14738
14739 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
14740 (set_end_locus_from_node): New function.
14741 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
14742 make and the function end_locus.
14743 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
14744 for the elaboration subprogram.
14745 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
14746 set the end_locus of the expression as well.
14747
14748 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14749
14750 PR ada/47131
14751 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
14752 variables that are referenced in exception handlers volatile.
14753
14754
14755 \f
14756 Copyright (C) 2011 Free Software Foundation, Inc.
14757
14758 Copying and distribution of this file, with or without modification,
14759 are permitted in any medium without royalty provided the copyright
14760 notice and this notice are preserved.
14761
14762 * gnat_rm.texi: Ramification of pragma Eliminate documentation
14763 - fix bugs in the description of Source_Trace;
14764 - get rid of UNIT_NAME;
14765
14766 2011-08-02 Javier Miranda <miranda@adacore.com>
14767
14768 * exp_ch9.adb
14769 (Build_Dispatching_Requeue): Adding support for VM targets
14770 since we cannot directly reference the Tag entity.
14771 * exp_sel.adb (Build_K): Adding support for VM targets.
14772 (Build_S_Assignment): Adding support for VM targets.
14773 * exp_disp.adb
14774 (Default_Prim_Op_Position): In VM targets do not restrict availability
14775 of predefined interface primitives to compiling in Ada 2005 mode.
14776 (Is_Predefined_Interface_Primitive): In VM targets this service is not
14777 restricted to compiling in Ada 2005 mode.
14778 (Make_VM_TSD): Generate code that declares and initializes the OSD
14779 record. Needed to support dispatching calls through synchronized
14780 interfaces.
14781 * exp_ch3.adb
14782 (Make_Predefined_Primitive_Specs): Enable generation of predefined
14783 primitives associated with synchronized interfaces.
14784 (Make_Predefined_Primitive_Bodies): Enable generation of predefined
14785 primitives associated with synchronized interfaces.
14786
14787 2011-08-02 Yannick Moy <moy@adacore.com>
14788
14789 * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of
14790 statements hidden in SPARK if preceded by the HIDE directive
14791 (Parse_Exception_Handlers): mark each exception handler in a sequence of
14792 exception handlers as hidden in SPARK if preceded by the HIDE directive
14793 * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK
14794 if starting with the HIDE directive
14795 * par-ch7.adb (P_Package): mark a package body hidden in SPARK if
14796 starting with the HIDE directive; mark the declarations in a private
14797 part as hidden in SPARK if the private part starts with the HIDE
14798 directive
14799 * restrict.adb, restrict.ads
14800 (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK
14801 (Is_In_Hidden_Part_In_SPARK): new function which returns whether its
14802 argument node belongs to a part which is hidden in SPARK
14803 (Check_SPARK_Restriction): do not issue violations on nodes in hidden
14804 parts in SPARK; protect the possibly costly call to
14805 Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on
14806 * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration
14807 * scng.adb (Accumulate_Token_Checksum_GNAT_6_3,
14808 Accumulate_Token_Checksum_GNAT_5_03): add case for new token
14809 Tok_SPARK_Hide.
14810 (Scan): recognize special comment starting with '#' and followed by
14811 SPARK keyword "hide" as a HIDE directive.
14812
14813 2011-08-02 Yannick Moy <moy@adacore.com>
14814
14815 * types.ads, erroutc.ads: Minor reformatting.
14816
14817 2011-08-02 Vincent Celier <celier@adacore.com>
14818
14819 * link.c: Add response file support for cross platforms.
14820
14821 2011-08-02 Ed Schonberg <schonberg@adacore.com>
14822
14823 * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression
14824 in an association, set parent field of copy before partial analysis.
14825 * sem_res.adb (Resolve_Slice): create reference to itype only when
14826 expansion is enabled.
14827
14828 2011-08-02 Yannick Moy <moy@adacore.com>
14829
14830 * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set
14831 for new flag denoting which subprogram bodies are in ALFA
14832 * restrict.adb, sem_ch7.adb: Update comment
14833 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
14834 sem_ch9.adb, sem_res.adb: Add calls to
14835 Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs.
14836 * sem_ch6.adb (Analyze_Function_Return): add calls to
14837 Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the
14838 middle of the body, and extended return.
14839 (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument
14840 False when missing return.
14841 (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA
14842 to True for subprograms whose spec is in ALFA. Remove later on the flag
14843 on the entity used for a subprogram body when there exists a separate
14844 declaration.
14845 * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA):
14846 if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to
14847 False, otherwise do nothing.
14848
14849 2011-08-02 Robert Dewar <dewar@adacore.com>
14850
14851 * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
14852
14853 2011-08-02 Yannick Moy <moy@adacore.com>
14854
14855 * sem_ch4.ads: minor formatting.
14856
14857 2011-08-02 Yannick Moy <moy@adacore.com>
14858
14859 * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb,
14860 debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb,
14861 errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb,
14862 restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb,
14863 opt.ads: cleanup of SPARK mode
14864
14865 2011-08-02 Yannick Moy <moy@adacore.com>
14866
14867 * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard
14868 types.
14869 * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities
14870 (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA
14871 * sem_ch3.adb
14872 (Analyze_Object_Declaration): set Is_In_ALFA flag for objects
14873 (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes
14874 (Constrain_Integer): set Is_In_ALFA flag for integer subtypes
14875 (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration
14876 types.
14877 (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with
14878 non-static range.
14879 * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for
14880 functions whose return type is not in ALFA.
14881 (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram
14882 specifications.
14883 (Process_Formals): unset Is_In_ALFA flag for subprograms if a
14884 parameter's type is not in ALFA.
14885 * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard
14886 types are in ALFA.
14887
14888 2011-08-02 Ed Schonberg <schonberg@adacore.com>
14889
14890 * sem_ch6 (Analyze_Expression_Function): treat the function as
14891 Inline_Always, and introduce a subprogram declaration for it when it is
14892 not a completion.
14893 * inline.adb (Add_Inlined_Body): recognize bodies that come from
14894 expression functions, so that the back-end can determine whether they
14895 can in fact be inlined.
14896 * sem_util.adb (Is_Expression_Function): predicate to determine whether
14897 a function body comes from an expression function.
14898
14899 2011-08-02 Gary Dismukes <dismukes@adacore.com>
14900
14901 * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming
14902 null exclusions to test Can_Never_Be_Null on the anonymous access types
14903 of the formals rather than testing the formals themselves. Exclude this
14904 check in cases where the Old_Formal is marked as a controlling formal,
14905 to avoid issuing spurious errors for bodies completing dispatching
14906 operations (due to the flag not getting set on controlling access
14907 formals in body specs).
14908 (Find_Corresponding_Spec): When checking full and subtype conformance of
14909 subprogram bodies in instances, pass Designated and E in that order, for
14910 consistency with the expected order of the formals (New_Id followed by
14911 Old_Id).
14912
14913 2011-08-02 Robert Dewar <dewar@adacore.com>
14914
14915 * sem_ch8.adb: Minor reformatting.
14916
14917 2011-08-02 Ed Schonberg <schonberg@adacore.com>
14918
14919 * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure
14920 Check_Class_Wide_Actual, to implement AI05-0071, on defaulted
14921 primitive operations of class-wide actuals.
14922
14923 2011-08-02 Javier Miranda <miranda@adacore.com>
14924
14925 * exp_atag.ads, exp_atag.adb
14926 (Build_Common_Dispatching_Select_Statements): Remove argument Loc
14927 since its value is implicitly passed in argument Typ.
14928 * exp_disp.adb (Make_Disp_Conditional_Select_Body,
14929 Make_Disp_Timed_Select_Body): Remove Loc in calls to routine
14930 Build_Common_Dispatching_Select_Statements.
14931
14932 2011-08-02 Robert Dewar <dewar@adacore.com>
14933
14934 * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads,
14935 exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments.
14936 Minor reformatting.
14937
14938 2011-08-02 Robert Dewar <dewar@adacore.com>
14939
14940 * sem_res.adb: Minor reformatting.
14941 * sem_prag.adb: Minor reformatting.
14942
14943 2011-08-02 Javier Miranda <miranda@adacore.com>
14944
14945 * exp_atag.adb, exp_atags.ads
14946 (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr
14947 by the tagged type Entity. Required to use this routine in the VM
14948 targets since we do not have available the Tag entity in the VM
14949 platforms.
14950 * exp_ch6.adb
14951 (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package
14952 Ada.Tags has not been previously loaded.
14953 * exp_ch7.adb
14954 (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke
14955 Build_VM_TSDs if package Ada.Tags has not been previously loaded.
14956 * sem_aux.adb
14957 (Enclosing_Dynamic_Scope): Add missing support to handle the full
14958 view of enclosing scopes. Required to handle enclosing scopes that
14959 are synchronized types whose full view is a task type.
14960 * exp_disp.adb
14961 (Build_VM_TSDs): Minor code improvement to avoid generating and
14962 analyzing lists with empty nodes.
14963 (Make_Disp_Asynchronous_Select_Body): Add support for VM targets.
14964 (Make_Disp_Conditional_Select_Body): Add support for VM targets.
14965 (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets.
14966 (Make_Disp_Timed_Select_Body): Add support for VM targets.
14967 (Make_Select_Specific_Data_Table): Add support for VM targets.
14968 (Make_VM_TSD): Generate code to initialize the SSD structure of
14969 the TSD.
14970
14971 2011-08-02 Yannick Moy <moy@adacore.com>
14972
14973 * lib-writ.adb (Write_ALI): when ALFA mode is set, write local
14974 cross-references section in ALI.
14975 * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub
14976 (enclosing subprogram), Slc (location of Sub) and Sun (unit number of
14977 Sub).
14978 (Enclosing_Subprogram_Or_Package): new function to return the enclosing
14979 subprogram or package entity of a node
14980 (Is_Local_Reference_Type): new function returns True for references
14981 selected in local cross-references.
14982 (Lt): function extracted from Lt in Output_References
14983 (Write_Entity_Name): function extracted from Output_References
14984 (Generate_Definition): generate reference with type 'D' for definition
14985 of objects (object declaration and parameter specification), with
14986 appropriate locations and units, for use in local cross-references.
14987 (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created
14988 references of type 'I' for initialization in object definition.
14989 (Output_References): move part of function Lt and procedure
14990 Write_Entity_Name outside of the body. Ignore references of types 'D'
14991 and 'I' introduced for local cross-references.
14992 (Output_Local_References): new procedure to output the local
14993 cross-references sections.
14994 (Lref_Entity_Status): new array defining whether an entity is a local
14995 * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference
14996 with 'I' type when initialization expression is present.
14997 * get_scos.adb, get_scos.ads: Correct comments and typos
14998
14999 2011-08-02 Javier Miranda <miranda@adacore.com>
15000
15001 * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in
15002 the JVM target.
15003 * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in
15004 the JVM target.
15005 * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no
15006 TSD support.
15007
15008 2011-08-02 Vincent Celier <celier@adacore.com>
15009
15010 * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line
15011 (No_Space_Img): New function
15012 (Find_Excluded_Sources): When reading from a file, record the file name
15013 and the line number for each excluded source.
15014 (Mark_Excluded_Sources): When reporting an error, if the excluded
15015 sources were read from a file, include file name and line number in
15016 the error message.
15017
15018 2011-08-02 Ed Schonberg <schonberg@adacore.com>
15019
15020 * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2).
15021
15022 2011-08-02 Robert Dewar <dewar@adacore.com>
15023
15024 * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting
15025
15026 2011-08-02 Javier Miranda <miranda@adacore.com>
15027
15028 * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
15029 generation of TSDs to the DOTNET compiler.
15030 * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
15031 generation of TSDs to the DOTNET compiler.
15032
15033 2011-08-02 Javier Miranda <miranda@adacore.com>
15034
15035 * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
15036 record of all the tagged types declared inside library level package
15037 declarations, library level package bodies or library level subprograms.
15038 * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD
15039 associated with a given tagged type.
15040 (Build_VM_TSDs): New subprogram.
15041 * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main
15042 compilation units that are subprograms.
15043 * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main
15044 compilation units that are package bodies.
15045 (Expand_N_Package_Declaration): Generate TSDs of the main compilation
15046 units that are a package declaration or a package instantiation.
15047 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code
15048 reorganization to improve the error generated by the frontend when the
15049 function Ada.Tags.Secondary_Tag is not available.
15050 * rtsfind.ads (RE_Register_TSD): New runtime entity.
15051 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup.
15052
15053 2011-08-02 Javier Miranda <miranda@adacore.com>
15054
15055 * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode.
15056
15057 2011-08-02 Robert Dewar <dewar@adacore.com>
15058
15059 * s-imenne.ads: Minor reformatting.
15060
15061 2011-08-02 Robert Dewar <dewar@adacore.com>
15062
15063 * a-stunau.ads: Add pragma Suppress_Initialization for Big_String
15064 * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed
15065 * s-stalib.ads: Add pragma Suppress_Initialization for Big_String
15066
15067 2011-08-02 Robert Dewar <dewar@adacore.com>
15068
15069 * einfo.ads (Materialize_Entity): Document this is only for renamings
15070 * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate
15071 required debug information in the case where we transform the object
15072 declaration into a renaming declaration.
15073 * exp_ch4.adb (Expand_Concatenate): Generate debug info for result
15074 object
15075 * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of
15076 Materialize_Entity.
15077
15078 2011-08-02 Robert Dewar <dewar@adacore.com>
15079
15080 * einfo.ads, einfo.adb (Suppress_Initialization): Replaces
15081 Suppress_Init_Procs.
15082 * exp_ch3.adb, exp_disp.adb, freeze.adb: Use
15083 Suppress_Initialization/Initialization_Suppressed.
15084 * gnat_rm.texi: New documentation for pragma Suppress_Initialization
15085 * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function
15086 * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed
15087 * sem_prag.adb: New processing for pragma Suppress_Initialization.
15088
15089 2011-08-02 Robert Dewar <dewar@adacore.com>
15090
15091 * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb:
15092 Minor reformatting.
15093
15094 2011-08-02 Ed Schonberg <schonberg@adacore.com>
15095
15096 * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can
15097 only have inheritable classwide pre/postconditions.
15098
15099 2011-08-02 Javier Miranda <miranda@adacore.com>
15100
15101 * a-tags.ads, a-tags.adb (Check_TSD): New subprogram.
15102 * rtsfind.ads (RE_Check_TSD): New runtime entity.
15103 * exp_disp.adb (Make_DT): Generate call to the new runtime routine that
15104 checks if the external tag of a type is the same as the external tag
15105 of some other declaration.
15106
15107 2011-08-02 Thomas Quinot <quinot@adacore.com>
15108
15109 * s-taskin.ads: Minor reformatting.
15110
15111 2011-08-02 Emmanuel Briot <briot@adacore.com>
15112
15113 * g-comlin.adb (Display_Help): swap the order in which it prints the
15114 short help and the general usage.
15115
15116 2011-08-02 Ed Schonberg <schonberg@adacore.com>
15117
15118 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly
15119 the aspect declarations and attach them to the generic copy for
15120 subsequent analysis.
15121 (Analyze_Subprogram_Instantiation): copy explicitly the aspect
15122 declarations of the generic tree to the new subprogram declarations.
15123 * sem_attr.adb (Check_Precondition_Postcondition): recognize
15124 conditions that apply to a subprogram instance.
15125
15126 2011-08-02 Robert Dewar <dewar@adacore.com>
15127
15128 * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project].
15129
15130 2011-08-02 Ed Schonberg <schonberg@adacore.com>
15131
15132 * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged
15133 private type with a tagged full view is not derived in the immediate
15134 scope of the partial view, (RM 7.3 (7)) use the scope of the base type.
15135
15136 2011-08-02 Robert Dewar <dewar@adacore.com>
15137
15138 * exp_ch4.adb: Minor reformatting.
15139
15140 2011-08-02 Ed Schonberg <schonberg@adacore.com>
15141
15142 * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an
15143 Ada2012 iterator, the loop will be rewritten during expansion into a
15144 while loop with a cursor and an element declaration. Do not analyze the
15145 body in this case, because if the container is for indefinite types the
15146 actual subtype of the elements will only be determined when the cursor
15147 declaration is analyzed.
15148
15149 2011-08-02 Arnaud Charlet <charlet@adacore.com>
15150
15151 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore
15152 size/alignment related attributes in CodePeer_Mode.
15153
15154 2011-08-02 Gary Dismukes <dismukes@adacore.com>
15155
15156 * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to
15157 Prepend_Element, since this can result in the operation getting the
15158 wrong slot in the full type's dispatch table if the full type has
15159 inherited operations. The incomplete type's operation will get added
15160 to the proper position in the full type's primitives
15161 list later in Sem_Disp.Check_Operation_From_Incomplete_Type.
15162 (Process_Incomplete_Dependents): Add Is_Primitive test when checking for
15163 dispatching operations, since there are cases where nonprimitive
15164 subprograms can get added to the list of incomplete dependents (such
15165 as subprograms in nested packages).
15166 * sem_ch6.adb (Process_Formals): First, remove test for being in a
15167 private part when determining whether to add a primitive with a
15168 parameter of a tagged incomplete type to the Private_Dependents list.
15169 Such primitives can also occur in the visible part, and should not have
15170 been excluded from being private dependents.
15171 * sem_ch7.adb (Uninstall_Declarations): When checking the rule of
15172 RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents
15173 list of a Taft-amendment incomplete type is a primitive before issuing
15174 an error that the full type must appear in the same unit. There are
15175 cases where nonprimitives can be in the list (such as subprograms in
15176 nested packages).
15177 * sem_disp.adb (Derives_From): Use correct condition for checking that
15178 a formal's type is derived from the type of the corresponding formal in
15179 the parent subprogram (the condition was completely wrong). Add
15180 checking that was missing for controlling result types being derived
15181 from the result type of the parent operation.
15182
15183 2011-08-02 Yannick Moy <moy@adacore.com>
15184
15185 * errout.adb (First_Node): minor renaming
15186 * restrict.adb (Check_Formal_Restriction): put restriction warning on
15187 first node.
15188
15189 2011-08-02 Yannick Moy <moy@adacore.com>
15190
15191 * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator
15192 before accessing operands.
15193 * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to
15194 decide whether an initialization expression respects SPARK rules, as
15195 the plain node is the expanded one. This allows for more valid warnings
15196 to be issued.
15197 * gnat_rm.texi: Minor update.
15198
15199 2011-08-02 Arnaud Charlet <charlet@adacore.com>
15200
15201 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert
15202 previous change.
15203
15204 2011-08-02 Robert Dewar <dewar@adacore.com>
15205
15206 * sem_ch3.adb, sem_ch4.adb: Minor reformatting.
15207
15208 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
15209
15210 * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original
15211 loop statements and the element renaming declaration with a block when
15212 the element type is controlled.
15213
15214 2011-08-02 Yannick Moy <moy@adacore.com>
15215
15216 * sinfo.ads: Minor formatting.
15217
15218 2011-08-02 Ed Schonberg <schonberg@adacore.com>
15219
15220 * sem_aggr.adb (Add_Association): if the association has a box and no
15221 expression, use the Sloc of the aggregate itself for the new
15222 association.
15223 * errout.adb (First_Node): Exclude nodes with no Sloc, and always use
15224 the Original_Node.
15225
15226 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
15227
15228 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring.
15229 When a container is provided via a function call, generate a renaming
15230 of the function result. This avoids the creation of a transient scope
15231 and the premature finalization of the container.
15232 * exp_ch7.adb (Is_Container_Cursor): Removed.
15233 (Wrap_Transient_Declaration): Remove the supression of the finalization
15234 of the list controller when the declaration denotes a container cursor,
15235 it is not needed.
15236
15237 2011-08-02 Yannick Moy <moy@adacore.com>
15238
15239 * restrict.adb (Check_Formal_Restriction): only issue a warning if the
15240 node is from source, instead of the original node being from source.
15241 * sem_aggr.adb
15242 (Resolve_Array_Aggregate): refine the check for a static expression, to
15243 recognize also static ranges
15244 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration,
15245 Array_Type_Declaration): postpone the test for the type being a subtype
15246 mark after the type has been resolved, so that component-selection and
15247 expanded-name are discriminated.
15248 (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm
15249 to distinguish the case of an iteration scheme, so that an error is
15250 issed on a non-static range in SPARK except in an iteration scheme.
15251 * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with
15252 In_Iter_Schm = True.
15253 * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for
15254 user-defined operators so that they are allowed in renaming
15255 * sem_ch8.adb
15256 (Find_Selected_Component): refine the check for prefixing of operators
15257 so that they are allowed in renaming. Move the checks for restrictions
15258 on selector name after analysis discriminated between
15259 component-selection and expanded-name.
15260 * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on
15261 concatenation argument of string type if it is static.
15262 * sem_util.adb, sem_util.ads
15263 (Check_Later_Vs_Basic_Declarations): add a new function
15264 Is_Later_Declarative_Item to decice which declarations are allowed as
15265 later items, in the two different modes Ada 83 and SPARK. In the SPARK
15266 mode, add that renamings are considered as later items.
15267 (Enclosing_Package): new function to return the enclosing package
15268 (Enter_Name): correct the rule for homonyms in SPARK
15269 (Is_SPARK_Initialization_Expr): default to returning True on nodes not
15270 from source (result of expansion) to avoid issuing wrong warnings.
15271
15272 2011-08-02 Ed Schonberg <schonberg@adacore.com>
15273
15274 * errout.adb: On anything but an expression First_Node returns its
15275 argument.
15276
15277 2011-08-02 Pascal Obry <obry@adacore.com>
15278
15279 * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting.
15280
15281 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
15282
15283 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization.
15284 Set the associated loop as the related expression of internally
15285 generated cursors.
15286 * exp_ch7.adb (Is_Container_Cursor): New routine.
15287 (Wrap_Transient_Declaration): Supress the finalization of the list
15288 controller when the declaration denotes a container cursor.
15289
15290 2011-08-02 Yannick Moy <moy@adacore.com>
15291
15292 * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through
15293 command line now.
15294 * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the
15295 expression is a simple expression. This check cannot be performed in
15296 the semantics, so just drop it.
15297 (P_Index_Or_Discriminant_Constraint): move check that the index or
15298 discriminant is a subtype mark to Analyze_Subtype_Declaration in the
15299 semantics. Other cases were previously checked in the semantics.
15300 * par-ch4.adb (P_Name): move checks that a selector name is not
15301 character literal or an operator symbol to Find_Selected_Component in
15302 the semantics
15303 * par-ch5.adb (Parse_Decls_Begin_End): move check that basic
15304 declarations are not placed after later declarations in a separate
15305 procedure in Sem_Util (possibly not the best choice?), to be used both
15306 during parsing, for Ada 83 mode, and during semantic analysis, for
15307 SPARK mode.
15308 * par-endh.adb (Check_End): move check that end label is not missing
15309 to Process_End_Label in the semantics
15310 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove
15311 the special case for SPARK restriction
15312 * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End
15313 * restrict.adb, restrict.ads (Check_Formal_Restriction): add a
15314 parameter Force to issue the error message even on internal node (used
15315 for generated end label). Call Check_Restriction to check when an error
15316 must be issued. In SPARK mode, issue an error message even if the
15317 restriction is not set.
15318 (Check_Restriction): new procedure with an additional out parameter to
15319 inform the caller that a message has been issued
15320 * sem_aggr.adb: Minor modification of message
15321 * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction
15322 instead of issuing an error message directly
15323 * sem_ch3.adb (Analyze_Declarations): move here the check that basic
15324 declarations are not placed after later declarations, by calling
15325 Check_Later_Vs_Basic_Declarations
15326 (Analyze_Subtype_Declaration): move here the check that an index or
15327 discriminant constraint must be a subtype mark. Change the check that
15328 a subtype of String must start at one so that it works on subtype marks.
15329 * sem_ch4.adb (Analyze_Call): move here the check that a named
15330 association cannot follow a positional one in a call
15331 * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction
15332 instead of issuing an error message directly
15333 * sem_ch8.adb (Find_Selected_Component): move here the check that a
15334 selector name is not a character literal or an operator symbol. Move
15335 here the check that the prefix of an expanded name cannot be a
15336 subprogram or a loop statement.
15337 * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new
15338 procedure called from parsing and semantics to check that basic
15339 declarations are not placed after later declarations
15340 (Process_End_Label): move here the check that end label is not missing
15341
15342 2011-08-02 Arnaud Charlet <charlet@adacore.com>
15343
15344 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum
15345 representation clause in codepeer mode, since it confuses CodePeer and
15346 does not bring useful info.
15347
15348 2011-08-02 Ed Falis <falis@adacore.com>
15349
15350 * init.c: initialize fp hw on MILS.
15351
15352 2011-08-02 Ed Schonberg <schonberg@adacore.com>
15353
15354 * errout.adb (First_Node): for bodies, return the node itself (small
15355 optimization). For other nodes, do not check source_unit if the node
15356 comes from Standard.
15357
15358 2011-08-02 Robert Dewar <dewar@adacore.com>
15359
15360 * exp_ch3.adb: Minor comment additions.
15361 * sem_ch13.adb: Minor reformatting.
15362
15363 2011-08-02 Pascal Obry <obry@adacore.com>
15364
15365 * make.adb, makeutl.adb: Removes some superfluous directory separator.
15366
15367 2011-08-02 Robert Dewar <dewar@adacore.com>
15368
15369 * sem_attr.adb: Minor reformatting.
15370
15371 2011-08-02 Robert Dewar <dewar@adacore.com>
15372
15373 * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value
15374 (Has_Default_Component_Value): Removed
15375 * einfo.ads Comment updates
15376 (Has_Default_Aspect): Replaces Has_Default_Value
15377 (Has_Default_Component_Value): Removed
15378 * exp_ch13.adb
15379 (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects
15380 * exp_ch3.adb
15381 (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects
15382 (Get_Simple_Init_Val): Handle Default_Value aspect
15383 (Needs_Simple_Initialization): Handle Default_Value aspect
15384 * exp_ch3.ads: Needs_Simple_Initialization
15385 * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect
15386 * par-prag.adb (Pragma_Default[_Component]Value) Removed
15387 * sem_ch13.adb
15388 (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects
15389 * sem_prag.adb (Pragma_Default[_Component]Value) Removed
15390 * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed
15391
15392 2011-08-02 Ed Schonberg <schonberg@adacore.com>
15393
15394 * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate
15395 package containing iteration primitives.
15396 exp_ch5.adb (Expand_Iterator_Loop): ditto.
15397
15398 2011-08-02 Ed Schonberg <schonberg@adacore.com>
15399
15400 * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with
15401 "of", pre-analyze expression in case it is a function call with
15402 finalization actions that must be placed ahead of the loop.
15403 * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present
15404 on an Ada2012 iterator, insert them ahead of the rewritten loop.
15405
15406 2011-08-02 Geert Bosch <bosch@adacore.com>
15407
15408 * cstand.adb (Create_Float_Types): Only consider C's long double for
15409 Long_Long_Float, in addition to double.
15410
15411 2011-08-02 Robert Dewar <dewar@adacore.com>
15412
15413 * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads,
15414 sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads,
15415 prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb:
15416 Minor reformatting.
15417
15418 2011-08-02 Ed Schonberg <schonberg@adacore.com>
15419
15420 * sem_attr.adb: handle properly 'Result when it is a prefix of an
15421 indexed component.
15422
15423 2011-08-02 Javier Miranda <miranda@adacore.com>
15424
15425 * einfo.ads, einfo.adb
15426 (Original_Access_Type): Move this attribute to Node26 since there was
15427 an undocumented use of Node21 in E_Access_Subprogram_Type entities
15428 which causes conflicts and breaks the generation of the .NET compiler.
15429 (Interface_Name): Add missing documentation on JGNAT only uses of
15430 this attribute.
15431
15432 2011-08-02 Geert Bosch <bosch@adacore.com>
15433
15434 * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist
15435 (Find_Back_End_Float_Type): Likewise
15436 (Create_Back_End_Float_Types): Likewise
15437 (Create_Float_Types): Likewise
15438 (Register_Float_Type): Likewise
15439 * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of
15440 Nlist and split out type selection in new local Find_Base_Type function.
15441 * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of
15442 Nlist
15443 * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist
15444
15445 2011-08-02 Robert Dewar <dewar@adacore.com>
15446
15447 * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in
15448 alpha order).
15449 * opt.ads: Minor comment change.
15450 * sem_ch12.adb: Minor code reorganization.
15451
15452 2011-08-02 Gary Dismukes <dismukes@adacore.com>
15453
15454 * sem_ch3.adb (Complete_Private_Subtype): Don't append the private
15455 subtype's list of rep items to the list on the full subtype in the case
15456 where the lists are the same.
15457
15458 2011-08-02 Geert Bosch <bosch@adacore.com>
15459
15460 * switch-c.adb (Free): New deallocation procedure to avoid implicitly
15461 using the one from System.Strings, which also deallocates all strings.
15462
15463 2011-08-02 Geert Bosch <bosch@adacore.com>
15464
15465 * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New
15466 function.
15467 * gcc-interface/Make-lang.in: Update dependencies.
15468
15469 2011-08-02 Olivier Hainque <hainque@adacore.com>
15470
15471 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function
15472 end_locus.
15473
15474 2011-08-02 Javier Miranda <miranda@adacore.com>
15475
15476 * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals
15477 associated with anonymous access to subprograms.
15478
15479 2011-08-02 Geert Bosch <bosch@adacore.com>
15480
15481 * opt.ads
15482 (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions.
15483 (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition.
15484 * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads
15485 (Add_Symbol_Definition): Move to switch-c.adb
15486 (Process_Command_Line_Symbol_Definitions): Adjust references to above.
15487 * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation.
15488 (Add_Symbol_Definition): Move to switch-c.adb.
15489 * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw.
15490 * sem_warn.adb
15491 (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
15492 Move to warnsw.adb.
15493 * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size,
15494 Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
15495 Move to warnsw.adb.
15496 * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw.
15497 (Add_Symbol_Definition): Moved from Prepcomp.
15498 * switch-c.ads: Update copyright notice. Use String_List instead of
15499 Argument_List, removing dependency on System.OS_Lib.
15500
15501 2011-08-02 Yannick Moy <moy@adacore.com>
15502
15503 * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal
15504 mode on initialization expression which does not respect SPARK
15505 restrictions.
15506 * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines
15507 if the tree referenced by its argument represents an initialization
15508 expression in SPARK, suitable for initializing an object in an object
15509 declaration.
15510
15511 2011-08-02 Javier Miranda <miranda@adacore.com>
15512
15513 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the
15514 internally generated access to subprogram with its associated protected
15515 subprogram type.
15516 * einfo.ads, einfo.adb (Original_Access_Type): New attribute.
15517
15518 2011-08-02 Geert Bosch <bosch@adacore.com>
15519
15520 * cstand.adb (Register_Float_Type): Print information about type to
15521 register, if the Debug_Flag_Dot_B is set.
15522 * debug.adb (Debug_Flag_Dot_B): Document d.b debug option.
15523 * rtsfind.ads (RE_Max_Base_Digits): New run time entity.
15524 * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations
15525 with a requested precision of more than Max_Digits digits and no more
15526 than Max_Base_Digits digits, if a range specification is present and the
15527 Predefined_Float_Types list has a suitable type to derive from.
15528 * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the
15529 case of type completion with pragma Import
15530 * sem_prag.adb
15531 (Process_Import_Predefined_Type): Processing to complete a type
15532 with pragma Import. Currently supports floating point types only.
15533 (Set_Convention_From_Pragma): Do nothing without underlying type.
15534 (Process_Convention): Guard against absence of underlying type,
15535 which may happen when importing incomplete types.
15536 (Process_Import_Or_Interface): Handle case of importing predefined
15537 types. Tweak error message.
15538
15539 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
15540
15541 * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined
15542 functions to previous change. Reorganize code slightly.
15543
15544 2011-08-02 Geert Bosch <bosch@adacore.com>
15545
15546 * back_end.ads (Register_Type_Proc): New call back procedure type for
15547 allowing the back end to provide information about available types.
15548 (Register_Back_End_Types): New procedure to register back end types.
15549 * back_end.adb (Register_Back_End_Types): Call the back end to enumerate
15550 available types.
15551 * cstand.adb (Back_End_Float_Types): New list for floating point types
15552 supported by the back end.
15553 (Build_Float_Type): Add extra parameter for Float_Rep_Kind.
15554 (Copy_Float_Type): New procedure to make new copies of predefined types.
15555 (Register_Float_Type): New call back procedure to populate the BEFT list
15556 (Find_Back_End_Float_Type): New procedure to find a BEFT by name
15557 (Create_Back_End_Float_Types): New procedure to populate the BEFT list.
15558 (Create_Float_Types): New procedure to create entities for floating
15559 point types predefined in Standard, and put these and any remaining
15560 BEFTs on the Predefined_Float_Types list.
15561 * stand.ads (Predefined_Float_Types): New list for predefined floating
15562 point types that do not have declarations in package Standard.
15563
15564 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
15565
15566 * inline.adb (Get_Code_Unit_Entity): New local function. Returns the
15567 entity node for the unit containing the parameter.
15568 (Add_Inlined_Body): Use it to find the unit containing the subprogram.
15569 (Add_Inlined_Subprogram): Likewise.
15570 * gcc-interface/Make-lang.in: Update dependencies.
15571
15572 2011-08-02 Thomas Quinot <quinot@adacore.com>
15573
15574 * s-stusta.adb (Print): Make sure Pos is always initialized to a
15575 suitable value.
15576
15577 2011-08-02 Geert Bosch <bosch@adacore.com>
15578
15579 * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image.
15580
15581 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
15582
15583 * sem_type.adb (Covers): Move trivial case to the top and reuse the
15584 computed value of Base_Type.
15585
15586 2011-08-02 Yannick Moy <moy@adacore.com>
15587
15588 * restrict.adb (Check_Restriction): issue an error for any use of
15589 class-wide, even if the No_Dispatch restriction is not set.
15590 * sem_aggr.adb: Correct typos in comments and messages in formal mode
15591 * sem_ch3.adb (Process_Full_View): issue an error in formal mode is,
15592 when completing a private extension, the type named in the private part
15593 is not the same as that named in the visible part.
15594 * sem_res.adb (Resolve_Call): issue an error in formal mode on the use
15595 of an inherited primitive operations of a tagged type or type extension
15596 that returns the tagged type.
15597 * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new
15598 function which returns True for an implicit operation inherited by the
15599 derived type declaration for the argument type.
15600 (Is_SPARK_Object_Reference): move to appropriate place in alphabetic
15601 order.
15602
15603 2011-08-02 Ed Schonberg <schonberg@adacore.com>
15604
15605 * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from
15606 Process_Bounds, to perform analysis with expansion of a range or an
15607 expression that is the iteration scheme for a loop.
15608 (Analyze_Iterator_Specification): If domain of iteration is given by a
15609 function call with a controlled result, as is the case if call returns
15610 a predefined container, ensure that finalization actions are properly
15611 generated.
15612 * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range.
15613
15614 2011-08-02 Javier Miranda <miranda@adacore.com>
15615
15616 * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo.
15617 * gcc-interface/Make-lang.in: Update dependencies.
15618
15619 2011-08-02 Javier Miranda <miranda@adacore.com>
15620
15621 * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to
15622 determine if the analysis is performed using N or Original_Node (N).
15623 * exp_util.adb (Side_Effect_Free): Code cleanup since the new
15624 functionality of routine Is_Variable avoids code duplication.
15625 * checks.adb (Determine_Range): Handle temporaries generated by
15626 Remove_Side_Effects.
15627
15628 2011-08-02 Javier Miranda <miranda@adacore.com>
15629
15630 * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and
15631 expansion of the condition. Required since the previous analysis was
15632 done with expansion disabled (see Resolve_Quantified_Expression) and
15633 hence checks were not inserted and record comparisons have not been
15634 expanded.
15635
15636 2011-08-02 Ed Falis <falis@adacore.com>
15637
15638 * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads:
15639 Update header.
15640
15641 2011-08-02 Bob Duff <duff@adacore.com>
15642
15643 * opt.ads: Minor comment fix.
15644
15645 2011-08-02 Bob Duff <duff@adacore.com>
15646
15647 * sem_ch12.adb (Analyze_Package_Instantiation,
15648 Analyze_Subprogram_Instantiation): Turn off style checking while
15649 analyzing an instance. Whatever style checks that apply to the generic
15650 unit should apply, so it makes no sense to apply them in an instance.
15651 This was causing trouble when compiling an instance of a runtime
15652 unit that violates the -gnatyO switch.
15653 * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from
15654 one of the two case statements, causing spurious errors.
15655
15656 2011-08-02 Robert Dewar <dewar@adacore.com>
15657
15658 * uname.adb: Minor reformatting.
15659 * gnatcmd.adb: Minor reformatting.
15660 * exp_attr.adb: Minor reformatting.
15661
15662 2011-08-02 Ed Schonberg <schonberg@adacore.com>
15663
15664 * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction
15665 No_Dispatching_Calls, do not look for the Assign primitive, because
15666 predefined primitives are not created in this case.
15667
15668 2011-08-02 Bob Duff <duff@adacore.com>
15669
15670 * stylesw.ads: Minor comment fixes.
15671
15672 2011-08-02 Robert Dewar <dewar@adacore.com>
15673
15674 * freeze.adb (Add_To_Result): New procedure.
15675
15676 2011-08-02 Jose Ruiz <ruiz@adacore.com>
15677
15678 * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run
15679 time, if the specific run-time routines for handling streams of strings
15680 are not available, use the default mechanism.
15681
15682 2011-08-02 Arnaud Charlet <charlet@adacore.com>
15683
15684 * s-regpat.ads: Fix typo.
15685
15686 2011-08-02 Vincent Celier <celier@adacore.com>
15687
15688 * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is
15689 not null, call it to create the in memory config project file without
15690 parsing an existing default config project file.
15691
15692 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
15693
15694 * atree.adb (Allocate_Initialize_Node): Remove useless temporaries.
15695
15696 2011-08-02 Ed Schonberg <schonberg@adacore.com>
15697
15698 * sem_elim.adb: an abstract subprogram does not need an eliminate
15699 pragma for its descendant to be eliminable.
15700
15701 2011-08-02 Ed Falis <falis@adacore.com>
15702
15703 * init.c: revert to handling before previous checkin for VxWorks
15704 * s-intman-vxworks.adb: delete unnecessary declarations related to
15705 using Ada interrupt facilities for handling signals.
15706 Delete Initialize_Interrupts. Use __gnat_install_handler instead.
15707 * s-intman-vxworks.ads: Import __gnat_install_handler as
15708 Initialize_Interrupts.
15709 * s-taprop-vxworks.adb: Delete Signal_Mask.
15710 (Abort_Handler): change construction of mask to unblock exception
15711 signals.
15712
15713 2011-08-02 Jerome Guitton <guitton@adacore.com>
15714
15715 * a-except-2005.adb (Raise_From_Signal_Handler): Call
15716 Debug_Raise_Exception before propagation starts.
15717
15718 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
15719
15720 * exp_ch6.adb (Expand_Call): Guard restriction checks with a call
15721 to Restriction_Check_Required.
15722 * sem_ch3.adb (Analyze_Object_Declaration): Likewise.
15723 * sem_res.adb (Resolve_Call): Likewise.
15724 * sem_attr.adb (Check_Stream_Attribute): Likewise.
15725
15726 2011-08-02 Bob Duff <duff@adacore.com>
15727
15728 * stylesw.ads: Update comment.
15729 * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
15730 * errout.ads: Remove obsolete comment.
15731
15732 2011-08-02 Javier Miranda <miranda@adacore.com>
15733
15734 * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
15735 (Set_Is_Safe_To_Reevaluate): new procedure.
15736 * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
15737 assignment is allowed on safe-to-reevaluate variables.
15738 (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
15739 temporary created to remove side effects in expressions that use
15740 the secondary stack as safe-to-reevaluate.
15741 * exp_util.adb (Side_Effect_Free): Add missing code to handle well
15742 variables that are not true constants.
15743
15744 2011-08-02 Robert Dewar <dewar@adacore.com>
15745
15746 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
15747 sem_res.adb, sem_ch6.adb: Minor reformatting.
15748
15749 2011-08-02 Jerome Guitton <guitton@adacore.com>
15750
15751 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
15752
15753 2011-08-02 Ed Schonberg <schonberg@adacore.com>
15754
15755 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
15756 not set Overridden_Operation if subprogram is an initialization
15757 procedure.
15758
15759 2011-08-02 Yannick Moy <moy@adacore.com>
15760
15761 * par-ch6.adb: Correct obsolete name in comments
15762 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
15763 which takes two message arguments (existing function takes one), with
15764 second message used for continuation.
15765 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
15766 block statements that originate from a source block statement, not
15767 generated block statements
15768 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
15769 symmetry with procedure case
15770 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
15771 function to issue an error in formal mode if a package specification
15772 contains more than one tagged type or type extension.
15773 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
15774 parameters matching formals of tagged types are objects (or ancestor
15775 type conversions of objects), not general expressions. Issue an error
15776 on view conversions that are not involving ancestor conversion of an
15777 extended type.
15778 (Resolve_Type_Conversion): in formal mode, issue an error on the
15779 operand of an ancestor type conversion which is not an object
15780 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
15781 procedure so that it works also for actuals of function calls
15782 (Is_Actual_Tagged_Parameter): new function which determines if its
15783 argument is an actual parameter of a formal of tagged type in a
15784 subprogram call
15785 (Is_SPARK_Object_Reference): new function which determines if the tree
15786 referenced by its argument represents an object in SPARK
15787
15788 2011-08-02 Robert Dewar <dewar@adacore.com>
15789
15790 * sem_ch3.adb: Minor reformatting
15791 Minor comment addition
15792 Minor error msg text change
15793
15794 2011-08-02 Javier Miranda <miranda@adacore.com>
15795
15796 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
15797 function. Used to be more precise when we generate a variable plus one
15798 assignment to remove side effects in the evaluation of the Bound
15799 expressions.
15800 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
15801 of the bound expression to force its re-analysis and thus expand the
15802 associated transient scope (if required). Code cleanup replacing the
15803 previous code that declared the constant entity by an invocation to
15804 routine Force_Evaluation which centralizes this work in the frontend.
15805
15806 2011-08-02 Robert Dewar <dewar@adacore.com>
15807
15808 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
15809 (Base_Type): Now uses improved Is_Base_Type function
15810 * einfo.ads (Base_Type): Inline this function
15811
15812 2011-08-02 Robert Dewar <dewar@adacore.com>
15813
15814 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
15815 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
15816
15817 2011-08-02 Arnaud Charlet <charlet@adacore.com>
15818
15819 * gcc-interface/Make-lang.in: Update dependencies.
15820 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
15821 targets.
15822
15823 2011-08-02 Yannick Moy <moy@adacore.com>
15824
15825 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
15826 non-simple expression used in delta constraint
15827 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
15828 index constraint which is not a subtype mark
15829 * par.adb: With and use Restrict
15830 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
15831 mode on component type which is not a subtype mark and default
15832 expression on component
15833 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
15834 of string which does not have a lower index bound equal to 1
15835 (Array_Type_Declaration): issue an error in formal mode on index or
15836 component type which is not a subtype mark, and on aliased keyword on
15837 component
15838 (Derived_Type_Declaration): issue an error in formal mode on interface,
15839 limited or abstract type
15840 (Record_Type_Declaration): issue an error in formal mode on interface
15841 (Record_Type_Definition): issue an error in formal mode on tagged types
15842 and type extensions not declared in the specification of a library unit
15843 package; on null non-tagged record; on variant part
15844
15845 2011-08-02 Vincent Celier <celier@adacore.com>
15846
15847 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
15848 not declared for qualified library project when Library_Name is not
15849 declared, but Library_Dir is.
15850
15851 2011-08-02 Robert Dewar <dewar@adacore.com>
15852
15853 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
15854 pragmas (affects aspects [Component_]Default_Value
15855 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
15856 component type for the resolution
15857
15858 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
15859
15860 * einfo.adb (Base_Type): Tune implementation for speed.
15861
15862 2011-08-02 Robert Dewar <dewar@adacore.com>
15863
15864 * freeze.adb: Minor reformatting.
15865
15866 2011-08-02 Thomas Quinot <quinot@adacore.com>
15867
15868 * scos.ads: Update comments.
15869
15870 2011-08-02 Ed Schonberg <schonberg@adacore.com>
15871
15872 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
15873 base type, because the parent may be a subtype of a private type whose
15874 convention is established in a private part.
15875
15876 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
15877
15878 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
15879 statement in a block when the expansion of the return expression has
15880 created a finalization chain.
15881 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
15882 with the parent node.
15883 Add N_Extended_Return_Statement to handle the case where a transient
15884 object declaration appears in the Return_Object_Declarations list of
15885 an extended return statement.
15886
15887 2011-08-02 Matthew Gingell <gingell@adacore.com>
15888
15889 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
15890 unused parameter 'name'.
15891
15892 2011-08-02 Ed Schonberg <schonberg@adacore.com>
15893
15894 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
15895 inherited operation, check whether its alias, which is the source
15896 operastion that it renames, has been marked eliminated.
15897
15898 2011-08-02 Javier Miranda <miranda@adacore.com>
15899
15900 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
15901 in-mode parameter whose type is an access type since it can be used to
15902 modify its designated object. Enforce code that handles as safe an
15903 access type that is not access-to-constant but it is the result of a
15904 previous removal of side-effects.
15905 (Remove_Side_Effects): Minor code reorganization of cases which require
15906 no action. Done to incorporate documentation on new cases uncovered
15907 working in this ticket: no action needed if this routine was invoked
15908 too early and the nodes are not yet decorated.
15909 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
15910 to routine Remove_Side_Effects by calls to Force_Evaluation since they
15911 were issued with actuals that are implicitly provided by
15912 Force_Evaluation.
15913
15914 2011-08-02 Robert Dewar <dewar@adacore.com>
15915
15916 * sem_ch3.adb, sem_res.adb: Minor reformatting.
15917
15918 2011-08-02 Yannick Moy <moy@adacore.com>
15919
15920 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
15921 to issue an error in formal mode on attribute not supported in this mode
15922 (Analyze_Attribute): issue errors on standard attributes not supported
15923 in formal mode.
15924 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
15925 comment, and issue error in formal mode on modulus which is not a power
15926 of 2.
15927 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
15928 range.
15929 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
15930 subtype mark.
15931 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
15932 operator on modular type (except 'not').
15933
15934 2011-08-02 Robert Dewar <dewar@adacore.com>
15935
15936 * gnat_rm.texi: Minor reformatting.
15937
15938 2011-08-02 Arnaud Charlet <charlet@adacore.com>
15939
15940 * s-osinte-linux.ads: Minor comment update and reformatting.
15941 * i-cexten.ads: Make this unit pure, as for its parent.
15942 Will allow its usage in more contexts if needed.
15943
15944 2011-08-02 Robert Dewar <dewar@adacore.com>
15945
15946 * s-utf_32.ads: Minor comment fix.
15947
15948 2011-08-02 Ed Schonberg <schonberg@adacore.com>
15949
15950 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
15951 operation of a tagged synchronized type, handle the case where the
15952 controlling argument is overloaded.
15953
15954 2011-08-02 Yannick Moy <moy@adacore.com>
15955
15956 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
15957 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
15958 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
15959 SPARK mode and formal verification mode on processing SPARK restriction
15960 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
15961 requiring consistency checking.
15962
15963 2011-08-02 Robert Dewar <dewar@adacore.com>
15964
15965 * sem_res.adb: Minor reformatting.
15966
15967 2011-08-02 Robert Dewar <dewar@adacore.com>
15968
15969 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
15970 a-cforse.ads: Remove unneeded with of Ada.Containers
15971 Remove commented out pragma Inline's
15972 Move specifications of new subprograms to the actual specs
15973
15974 2011-08-02 Yannick Moy <moy@adacore.com>
15975
15976 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
15977 a-cforse.ads: Update comments.
15978
15979 2011-08-02 Ed Schonberg <schonberg@adacore.com>
15980
15981 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
15982
15983 2011-08-02 Robert Dewar <dewar@adacore.com>
15984
15985 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
15986 a-cforse.ads, a-cofove.ads: Minor reformatting.
15987
15988 2011-08-02 Claire Dross <dross@adacore.com>
15989
15990 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
15991 a-cofove.ads: Add comments.
15992
15993 2011-08-02 Yannick Moy <moy@adacore.com>
15994
15995 * gnat_rm.texi: Document formal containers.
15996
15997 2011-08-02 Emmanuel Briot <briot@adacore.com>
15998
15999 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
16000 are empty sections.
16001
16002 2011-08-02 Robert Dewar <dewar@adacore.com>
16003
16004 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
16005 reformatting.
16006
16007 2011-08-02 Robert Dewar <dewar@adacore.com>
16008
16009 * aspects.adb: New aspects Default_Value and Default_Component_Value
16010 New format of Aspect_Names table checks for omitted entries
16011 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
16012 handling of boolean aspects for derived types.
16013 New aspects Default_Value and Default_Component_Value
16014 New format of Aspect_Names table checks for omitted entries
16015 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
16016 (Has_Default_Value): New flag
16017 (Has_Default_Component_Value): New flag
16018 (Has_Default_Value): New flag
16019 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
16020 table.
16021 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
16022 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
16023 Default_Value and Default_Component_Value
16024 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
16025 New aspects Default_Value and Default_Component_Value
16026 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
16027 * sprint.adb: Print N_Aspect_Specification node when called from gdb
16028
16029 2011-08-02 Vincent Celier <celier@adacore.com>
16030
16031 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
16032 inherit library kind.
16033
16034 2011-08-02 Ed Schonberg <schonberg@adacore.com>
16035
16036 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
16037 Minor reformatting.
16038
16039 2011-08-02 Robert Dewar <dewar@adacore.com>
16040
16041 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
16042
16043 2011-08-02 Yannick Moy <moy@adacore.com>
16044
16045 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
16046
16047 2011-08-02 Robert Dewar <dewar@adacore.com>
16048
16049 * impunit.adb: Add comment.
16050
16051 2011-08-02 Yannick Moy <moy@adacore.com>
16052
16053 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
16054 qualification of aggregates in formal mode
16055 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
16056 another aggregate
16057 (Resolve_Aggregate): complete the test that an aggregate is adequately
16058 qualified in formal mode
16059
16060 2011-08-02 Pascal Obry <obry@adacore.com>
16061
16062 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
16063 * mlib-prj.adb: Supress warning when compiling binder generated file.
16064 (Build_Library): Supress all warnings when compiling the binder
16065 generated file.
16066
16067 2011-08-02 Yannick Moy <moy@adacore.com>
16068
16069 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
16070 from here...
16071 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
16072 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
16073 Add with/use clauses to make Check_Formal_Restriction visible
16074
16075 2011-08-02 Ed Schonberg <schonberg@adacore.com>
16076
16077 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
16078 in-parameters when type of the generic formal is private in the generic
16079 spec and non-private in the body.
16080
16081 2011-08-02 Claire Dross <dross@adacore.com>
16082
16083 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
16084 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
16085 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
16086 * impunit.adb, Makefile.rtl: Take new files into account.
16087
16088 2011-08-02 Robert Dewar <dewar@adacore.com>
16089
16090 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
16091 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
16092
16093 2011-08-02 Yannick Moy <moy@adacore.com>
16094
16095 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
16096 formal mode
16097 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
16098 matching static array bounds, taking into account the special case of
16099 string literals
16100 * sem_ch3.adb: Typo in comment.
16101
16102 2011-08-02 Yannick Moy <moy@adacore.com>
16103
16104 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
16105 which issues an error in formal mode if its argument node is originally
16106 from source
16107 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
16108 has a discriminant specification so that it does not include the case
16109 of derived types
16110 (Derived_Type_Declaration): move here the test that a derived type has a
16111 discriminant specification
16112 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
16113 first element of a component association before accessing its choices
16114 (presence of component association is not enough)
16115 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
16116 declaration is a library item before accessing the next element in a
16117 list, as library items are not member of lists
16118 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
16119 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
16120 Check_Formal_Restriction whenever possible.
16121
16122 2011-08-02 Ed Schonberg <schonberg@adacore.com>
16123
16124 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
16125 reference when needed.
16126
16127 2011-08-02 Bob Duff <duff@adacore.com>
16128
16129 * gnat_ugn.texi: Fix typo.
16130
16131 2011-08-02 Vincent Celier <celier@adacore.com>
16132
16133 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
16134 archive file name. Do not use the full path name of archives for Open
16135 VMS.
16136
16137 2011-08-02 Robert Dewar <dewar@adacore.com>
16138
16139 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
16140 Analyze_Aspect_Specifications
16141 * sem_ch13.adb
16142 (Analyze_Aspect_Specifications): New handling for boolean aspects
16143 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
16144 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
16145 sequence for Analyze_Aspect_Specifications
16146 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
16147 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
16148
16149 2011-08-02 Robert Dewar <dewar@adacore.com>
16150
16151 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
16152 aspects, since these no longer exist.
16153
16154 2011-08-02 Robert Dewar <dewar@adacore.com>
16155
16156 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
16157 semicolon, do not try to see if there are aspects following it.
16158 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
16159 aspect spec.
16160
16161 2011-08-02 Robert Dewar <dewar@adacore.com>
16162
16163 * sem_ch8.adb, aspects.ads: Minor reformatting.
16164
16165 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
16166
16167 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
16168 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
16169 extracted from...
16170 (Analyze_Aspect_Specifications): ...here. Call above procedure.
16171
16172 2011-08-02 Yannick Moy <moy@adacore.com>
16173
16174 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
16175 mode on subprogram declaration outside of package specification, unless
16176 it is followed by a pragma Import
16177 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
16178 Access_Type_Declaration): issue error in formal mode on access type
16179 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
16180 incomplete type
16181 (Analyze_Object_Declaration): issue error in formal mode on object
16182 declaration which does not respect SPARK restrictions
16183 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
16184 declaration which does not respect SPARK restrictions
16185 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
16186 error in formal mode on digits or delta constraint
16187 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
16188 decimal fixed point type
16189 (Derived_Type_Declaration): issue error in formal mode on derived type
16190 other than type extensions of tagged record types
16191 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
16192 with check on access definition
16193 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
16194 mode on protected definition.
16195 (Analyze_Task_Definition): issue error in formal mode on task definition
16196
16197 2011-08-02 Robert Dewar <dewar@adacore.com>
16198
16199 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
16200
16201 2011-08-02 Javier Miranda <miranda@adacore.com>
16202
16203 * sem_ch6.adb (Can_Override_Operator): New function.
16204 (Verify_Overriding_Indicator): Add missing code to check overriding
16205 indicator in operators. Fixes regression.
16206 (Check_Overriding_Indicator): Minor reformating after replacing the
16207 code that evaluates if the subprogram can override an operator by
16208 invocations to the above new function.
16209 * einfo.adb
16210 (Write_Field26_Name): Add missing code to ensure that, following
16211 the documentation in einfo.ads, this field is not shown as attribute
16212 "Static_Initialization" on non-dispatching functions.
16213
16214 2011-08-02 Jose Ruiz <ruiz@adacore.com>
16215
16216 * sem_res.adb (Resolve_Call): A call to
16217 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
16218 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
16219 i.e., when the second parameter is of type Time_Span.
16220
16221 2011-08-02 Vincent Celier <celier@adacore.com>
16222
16223 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
16224 with an archive instead of -L<library dir> -l<library name>.
16225
16226 2011-08-02 Ed Schonberg <schonberg@adacore.com>
16227
16228 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
16229 mark the base types In_Use in addition to making the operations
16230 use_visible.
16231
16232 2011-08-02 Ed Falis <falis@adacore.com>
16233
16234 * init.c: add and setup __gnat_signal_mask for the exception signals
16235 * s-inmaop-vxworks.adb: new file.
16236 * s-intman-vxworks.adb: remove unnecessary initializations and
16237 simplify remaining
16238 * s-intman-vxworks.ads: remove unnecessary variable
16239 * s-taprop-vxworks.adb: simplify signal initialization
16240
16241 2011-08-02 Robert Dewar <dewar@adacore.com>
16242
16243 * sem_ch8.adb: Minor code reorganization, comment updates.
16244
16245 2011-08-02 Robert Dewar <dewar@adacore.com>
16246
16247 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
16248 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
16249 here from Sem_Res.
16250 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
16251 (Matching_Static_Array_Bounds): Moved here from Sem_Res
16252
16253 2011-08-02 Ed Schonberg <schonberg@adacore.com>
16254
16255 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
16256 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
16257 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
16258 use_type_clauses, to handle more efficiently use_type and use_all_type
16259 constructs.
16260 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
16261 Ada2012 Use_All_Type clause.
16262 (Use_Class_Wide_Operations): new procedure.
16263
16264 2011-08-02 Robert Dewar <dewar@adacore.com>
16265
16266 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
16267 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
16268 expression to expression function.
16269
16270 2011-08-02 Ed Schonberg <schonberg@adacore.com>
16271
16272 * sem_ch4.adb: transform simple Ada2012 membership into equality only
16273 if types are compatible.
16274
16275 2011-08-02 Yannick Moy <moy@adacore.com>
16276
16277 * sem_res.adb (Matching_Static_Array_Bounds): new function which
16278 returns True if its argument array types have same dimension and same
16279 static bounds at each index.
16280 (Resolve_Actuals): issue an error in formal mode on actuals passed as
16281 OUT or IN OUT paramaters which are not view conversions in SPARK.
16282 (Resolve_Arithmetic_Op): issue an error in formal mode on
16283 multiplication or division with operands of fixed point types which are
16284 not qualified or explicitly converted.
16285 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
16286 Boolean or array type (except String) operands.
16287 (Resolve_Equality_Op): issue an error in formal mode on equality
16288 operators for array types other than String with non-matching static
16289 bounds.
16290 (Resolve_Logical_Op): issue an error in formal mode on logical operators
16291 for array types with non-matching static bounds. Factorize the code in
16292 Matching_Static_Array_Bounds.
16293 (Resolve_Qualified_Expression): issue an error in formal mode on
16294 qualified expressions for array types with non-matching static bounds.
16295 (Resolve_Type_Conversion): issue an error in formal mode on type
16296 conversion for array types with non-matching static bounds
16297
16298 2011-08-02 Robert Dewar <dewar@adacore.com>
16299
16300 * par-ch10.adb: Minor code reorganization (use Nkind_In).
16301
16302 2011-08-02 Ed Schonberg <schonberg@adacore.com>
16303
16304 * par-ch9.adb: save location of entry for proper error message.
16305
16306 2011-08-02 Javier Miranda <miranda@adacore.com>
16307
16308 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
16309 (Use_Full_View) which permits this routine to climb through the
16310 ancestors using the full-view of private parents.
16311 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
16312 Use_Full_View to true in calls to Is_Ancestor.
16313 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
16314 true in call to Is_Ancestor.
16315 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
16316 Use_Full_View to true in call to Is_Ancestor.
16317 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
16318 call to Is_Ancestor.
16319 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
16320 Use_Full_View to true in calls to Is_Ancestor.
16321 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
16322 Make_Select_Specific_Data_Table, Register_Primitive,
16323 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
16324 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
16325 to true in call to Is_Ancestor.
16326 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
16327 Use_Full_View to true in calls to Is_Ancestor.
16328 * exp_cg.adb
16329 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
16330 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
16331
16332 2011-08-02 Robert Dewar <dewar@adacore.com>
16333
16334 * gnat_rm.texi: Minor reformatting.
16335 * sem_prag.adb: Minor reformatting.
16336
16337 2011-08-02 Tristan Gingold <gingold@adacore.com>
16338
16339 * vms_data.ads: Add VMS qualifier for -gnateP.
16340
16341 2011-08-02 Robert Dewar <dewar@adacore.com>
16342
16343 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
16344 * par-ch7.adb (P_Package): Proper placement of aspects for package
16345 decl/instantiation.
16346 * par-endh.adb (Check_End): Ad Is_Sloc parameter
16347 (End_Statements): Add Is_Sloc parameterr
16348 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
16349 (Check_End): Ad Is_Sloc parameter
16350 (End_Statements): Add Is_Sloc parameterr
16351
16352 2011-08-02 Vincent Celier <celier@adacore.com>
16353
16354 * ug_words: Add VMS qualifier equivalent to -gnateP:
16355 /SYMBOL_PREPROCESSING.
16356
16357 2011-08-02 Jose Ruiz <ruiz@adacore.com>
16358
16359 * gnat-style.texi: For hexadecimal numeric literals the typical
16360 grouping of digits is 4 to represent 2 bytes.
16361 A procedure spec which is split into several lines is indented two
16362 characters.
16363
16364 2011-08-02 Yannick Moy <moy@adacore.com>
16365
16366 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
16367 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
16368 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
16369 properly qualified
16370 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
16371 choice in array aggregate
16372 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
16373 mark as ancestor
16374 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
16375 positional and named aggregate for record, or others in record
16376 aggregate, or multiple choice in record aggregate
16377 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
16378 array operands to logical operations AND, OR and XOR do not have the
16379 same static lower and higher bounds
16380 * sem_ch5.adb, sinfo.ads: Correct typos in comments
16381
16382 2011-08-01 Robert Dewar <dewar@adacore.com>
16383
16384 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
16385 Replaces Last_Source_Node_In_Sequence.
16386 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
16387 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
16388 parens and blank in string (this was inconsistently implemented).
16389 * errout.ads
16390 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
16391 blank in string (this was inconsistently implemented).
16392 * gnat1drv.adb
16393 (Set_Global_Switches): Set formal mode switches appropriately
16394 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
16395 * par-prag.adb
16396 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
16397 call Set_Error_Msg_Lang to set "spark" as language name.
16398 * par.adb: Remove unnecessary call to set formal language for errout
16399 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
16400 appropriately and call Set_Error_Msg_Lang to set "spark" as language
16401 name.
16402 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
16403 calls to it, moved after resolution so that types are known
16404 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
16405 result of concatenation is not of type String
16406 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
16407 concatenation is not properly restricted
16408 * gnat_rm.texi: Add doc on pragma Spark_95.
16409 * gcc-interface/Makefile.in: Remove obsolete target pairs for
16410 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
16411 * gcc-interface/Make-lang.in: Update dependencies.
16412
16413 2011-08-01 Javier Miranda <miranda@adacore.com>
16414
16415 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
16416 condition that detects if the overridden operation must replace an
16417 existing entity.
16418
16419 2011-08-01 Javier Miranda <miranda@adacore.com>
16420
16421 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
16422 code declarations inserted by Insert_Actions in each alternative of the
16423 N_Case_Expression node.
16424
16425 2011-08-01 Robert Dewar <dewar@adacore.com>
16426
16427 * sem_ch6.adb: Minor code reorganization.
16428 * sem_util.adb: Minor reformatting.
16429
16430 2011-08-01 Pascal Obry <obry@adacore.com>
16431
16432 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
16433 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
16434
16435 2011-08-01 Yannick Moy <moy@adacore.com>
16436
16437 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
16438 literal or operator symbol which is prefixed
16439 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
16440 mode on access attributes.
16441 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
16442 that concatenation operands are properly restricted in formal mode
16443 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
16444 Analyze_Concatenation_Operand. Issue an error in formal mode if the
16445 result of the concatenation has a type different from String.
16446 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
16447 Analyze_Quantified_Expression, Analyze_Slice,
16448 Analyze_Null): issue an error in formal mode on unsupported constructs
16449 * sem_ch5.adb
16450 (Analyze_Block_Statement): only issue error on source block statement
16451 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
16452 function which returns the last node in a list of nodes for which
16453 Comes_From_Source returns True, if any
16454 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
16455 Last_Source_Node_In_Sequence
16456 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
16457 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
16458 mode on unsupported constructs
16459 * sem_ch9.adb Do not return after issuing error in formal mode, as the
16460 rest of the actions may be needed later on since the error is marked as
16461 not serious.
16462 * sinfo.ads: Typos in comments.
16463
16464 2011-08-01 Pascal Obry <obry@adacore.com>
16465
16466 * projects.texi: Minor editing.
16467
16468 2011-08-01 Yannick Moy <moy@adacore.com>
16469
16470 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
16471 insertion character ~~
16472 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
16473 (Set_Error_Msg_Lang): new procedure which fixes the language for use
16474 with insertion character ~~
16475 (Set_Msg_Text): treat insertion character ~~
16476 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
16477 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
16478 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
16479 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
16480 errors related to the formal language restriction not serious
16481 (insertion character |).
16482 * par.adb (Par): set formal language for error messages if needed
16483 * sem_ch6.adb (Check_Missing_Return): take into account possible
16484 generated statements at the end of the function
16485 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
16486 enumeration value to define a new pragma SPARK_95
16487 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
16488 SPARK_Version): new type and variables to store the SPARK version
16489 (none by default).
16490 (SPARK_Mode): return True when SPARK_Version is set
16491 * par-prag.adb: Correct indentation
16492 (Prag): take Pragma_SPARK_95 into account
16493 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
16494 into account.
16495
16496 2011-08-01 Robert Dewar <dewar@adacore.com>
16497
16498 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
16499 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
16500 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
16501
16502 2011-08-01 Pascal Obry <obry@adacore.com>
16503
16504 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
16505 Target_Name to Get_Path call.
16506 (Parse_Single_Project): Likewise.
16507 (Post_Parse_Context_Clause): Likewise.
16508 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
16509 Call Initialise_Project_Path with the proper Target_Name.
16510 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
16511 search path.
16512 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
16513 with the proper Target_Name.
16514 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
16515 Part.Parse routine.
16516 (Parse_Project_And_Apply_Config): Likewise.
16517 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
16518 This is fine as this part of the code is supporting only native
16519 compilation.
16520 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
16521 is fine as this part of the code is supporting only native compilation.
16522
16523 2011-08-01 Yannick Moy <moy@adacore.com>
16524
16525 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
16526 of homonym, unless the homonym is one of the cases allowed in SPARK
16527 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
16528 package declaration occurring after a body.
16529
16530 2011-08-01 Robert Dewar <dewar@adacore.com>
16531
16532 * checks.adb, exp_ch4.adb: Minor reformatting.
16533
16534 2011-08-01 Javier Miranda <miranda@adacore.com>
16535
16536 * einfo.ads (Access_Disp_Table): Fix documentation.
16537 (Dispatch_Table_Wrappers): Fix documentation.
16538
16539 2011-08-01 Pascal Obry <obry@adacore.com>
16540
16541 * prj-env.adb, prj-env.ads: Minor reformatting.
16542
16543 2011-08-01 Yannick Moy <moy@adacore.com>
16544
16545 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
16546 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
16547 procedures out of these packages.
16548 * errout.ads, errout.adb
16549 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
16550 procedures in of this package
16551 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
16552 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
16553 on misplaced later vs initial declarations, like in Ada 83
16554 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
16555 formal mode on attribute of private type whose full type declaration
16556 is not visible
16557 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
16558 package declaration inside a package specification
16559 (Analyze_Full_Type_Declaration): issue error in formal mode on
16560 controlled type or discriminant type
16561 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
16562 user-defined operator means that it should come from the source
16563 (New_Overloaded_Entity): issue error in formal mode on overloaded
16564 entity.
16565 * sem_ch6.ads, sem_ch13.ads: typos in comments.
16566
16567 2011-08-01 Thomas Quinot <quinot@adacore.com>
16568
16569 * atree.adb: Minor reformatting.
16570 * checks.adb: Minor reformatting.
16571
16572 2011-08-01 Vincent Celier <celier@adacore.com>
16573
16574 * s-parame-vms-ia64.ads: Fix typo in comment
16575 Minor reformatting
16576 * s-parame-vms-restrict.ads: Removed, unused.
16577
16578 2011-08-01 Javier Miranda <miranda@adacore.com>
16579
16580 * exp_ch3.adb
16581 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
16582 * sem_ch3.adb
16583 (Constrain_Index): Remove side effects in the evaluation of the bounds.
16584 * sem_ch3.ads, sem_ch3.adb
16585 (Is_Constant_Bound): New extended version of the subprogram that was
16586 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
16587 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
16588 * sem_aux.ads (Constant_Value): Fix typo in comment.
16589 * checks.adb (Generate_Index_Checks): New implementation which, for
16590 array objects with constant bounds, generates the runtime check
16591 referencing the bounds of the array type. For other cases this routine
16592 provides its previous behavior obtaining such values from the array
16593 object.
16594 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
16595 parent type.
16596 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
16597 we cannot have semantic interpretations of the new node.
16598
16599 2011-08-01 Ed Schonberg <schonberg@adacore.com>
16600
16601 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
16602 expressions.
16603
16604 2011-08-01 Arnaud Charlet <charlet@adacore.com>
16605
16606 * sem_ch8.adb: Minor code editing.
16607 * s-vxwext.adb: Remove trailing space.
16608 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
16609 consistency with other files.
16610
16611 2011-08-01 Thomas Quinot <quinot@adacore.com>
16612
16613 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
16614
16615 2011-08-01 Ed Schonberg <schonberg@adacore.com>
16616
16617 * par-ch10.adb: reject parameterized expressions as compilation unit.
16618 * sem_ch4.adb: handle properly conditional expression with overloaded
16619 then_clause and no else_clause.
16620
16621 2011-08-01 Tristan Gingold <gingold@adacore.com>
16622
16623 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
16624 like done by System.Aux_DEC.
16625 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
16626
16627 2011-08-01 Yannick Moy <moy@adacore.com>
16628
16629 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
16630 missing label at end of declaration (subprogram or package)
16631 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
16632 of positional and named parameter association
16633 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
16634 Error_Msg_SP which adds a prefix to the error message giving the name
16635 of the formal language analyzed
16636 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
16637 access result type in subprogram, unconstrained array as result type,.
16638 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
16639 procedure
16640 * sem_ch8.adb: Code clean up.
16641
16642 2011-08-01 Javier Miranda <miranda@adacore.com>
16643
16644 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
16645 * einfo.ads (Access_Disp_Table): Fix documentation.
16646 (Dispatch_Table_Wrappers): Fix documentation.
16647 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
16648 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
16649 to enforce the documentation of this attribute.
16650 (Set_Is_Interface): Cleanup the assertion.
16651 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
16652 the Underlying_Type entity before reading attribute Access_Disp_Table.
16653 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
16654 Locate the Underlying_Type before reading attribute Access_Disp_Table.
16655 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
16656 the Underlying_Type entity before reading attribute Access_Disp_Table.
16657 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
16658 Locate the Underlying_Type entity before reading attribute
16659 Access_Disp_Table.
16660
16661 2011-08-01 Ed Schonberg <schonberg@adacore.com>
16662
16663 * s-poosiz.ads: Additional overriding indicators.
16664
16665 2011-08-01 Yannick Moy <moy@adacore.com>
16666
16667 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
16668 formal mode.
16669 (Analyze_Iteration_Scheme): issue error in formal mode when loop
16670 parameter specification does not include a subtype mark.
16671 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
16672 formal mode on abstract subprogram.
16673 (Analyze_Subprogram_Specification): issue error in formal mode on
16674 user-defined operator.
16675 (Process_Formals): issue error in formal mode on access parameter and
16676 default expression.
16677 * sem_ch9.adb (Analyze_Abort_Statement,
16678 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
16679 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
16680 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
16681 Analyze_Requeue, Analyze_Selective_Accept,
16682 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
16683 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
16684 issue error in formal mode on user-defined raise statement.
16685
16686 2011-08-01 Thomas Quinot <quinot@adacore.com>
16687
16688 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
16689 declaration being hidden when overriding an implicit inherited
16690 subprogram.
16691 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
16692 (-gnats), do not complain about a source file that contains only a
16693 pragma No_Body.
16694
16695 2011-08-01 Ed Schonberg <schonberg@adacore.com>
16696
16697 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
16698 variable if already set.
16699
16700 2011-08-01 Arnaud Charlet <charlet@adacore.com>
16701
16702 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
16703 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
16704 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
16705 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
16706 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
16707 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
16708 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
16709 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
16710 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
16711 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
16712 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
16713 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
16714 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
16715 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
16716 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
16717 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
16718 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
16719 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
16720 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
16721 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
16722 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
16723 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
16724 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
16725 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
16726 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
16727 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
16728 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
16729 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
16730 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
16731 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
16732 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
16733 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
16734 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
16735 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
16736 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
16737 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
16738 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
16739 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
16740 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
16741 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
16742 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
16743 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
16744 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
16745 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
16746 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
16747 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
16748 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
16749 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
16750 s-osinte-mingw.ads: Update to GPLv3 run-time license.
16751 Use GNAT instead of GNARL.
16752
16753 2011-08-01 Bob Duff <duff@adacore.com>
16754
16755 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
16756 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
16757 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
16758 reformatting.
16759
16760 2011-08-01 Yannick Moy <moy@adacore.com>
16761
16762 * debug.adb (d.D) reverve flag for the SPARK mode
16763 (d.E) reverve flag for SPARK generation mode
16764 (d.F) reverve flag for Why generation mode
16765 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
16766 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
16767 functions which return True when the corresponding modes are set
16768 (Formal_Language): return "spark" or "alfa" when in formal verification
16769 mode.
16770 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
16771 Error_Msg to prefix the error message with a tag giving the formal
16772 language
16773 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
16774 message with a tag giving the formal language
16775 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
16776 block statement
16777 (Analyze_Case_Statement): issue error in formal mode on case statement
16778 with a single "others" case alternative
16779 (Analyze_Exit_Statement): issue errors in formal mode on exit
16780 statements which do not respect SPARK restrictions
16781 (Analyze_Goto_Statement): issue error in formal mode on goto statement
16782 (Check_Unreachable_Code): always issue an error (not a warning) in
16783 formal mode on unreachable code (concerns both code after an infinite
16784 loop and after an unconditional jump, both not allowed in SPARK)
16785 * sem_ch6.adb (Analyze_Return_Statement): add call to
16786 Set_Return_Present for a procedure containing a return statement
16787 (already done for functions in Analyze_Function_Return)
16788 (Analyze_Function_Return): issue error in formal mode on extended
16789 return or if return is not last statement in function
16790 (Check_Missing_Return): issue error in formal mode if function does
16791 not end with return or if procedure contains a return
16792 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
16793 function to detect if there is an inner scope of its parameter S which
16794 is a loop.
16795
16796 2011-08-01 Thomas Quinot <quinot@adacore.com>
16797
16798 * sem_ch6.ads: Minor reformatting.
16799
16800 2011-08-01 Javier Miranda <miranda@adacore.com>
16801
16802 * sem_util.adb (Abstract_Interface_List): Complete condition when
16803 processing private type declarations to avoid reading unavailable
16804 attribute.
16805 (Is_Synchronized_Tagged_Type): Complete condition when processing
16806 private extension declaration nodes to avoid reading unavailable
16807 attribute.
16808
16809 2011-08-01 Thomas Quinot <quinot@adacore.com>
16810
16811 * sem_ch3.adb: Minor reformatting.
16812
16813 2011-08-01 Thomas Quinot <quinot@adacore.com>
16814
16815 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
16816 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
16817 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
16818 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
16819 for VMS, instead parametrize the common implementation with
16820 System.Parameters declarations.
16821
16822 2011-08-01 Eric Botcazou <ebotcazou@adacore.com>
16823
16824 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
16825
16826 2011-08-01 Tristan Gingold <gingold@adacore.com>
16827
16828 * seh_init.c: Fix SEH handler installation on win64.
16829
16830 2011-08-01 Ed Schonberg <schonberg@adacore.com>
16831
16832 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
16833 double analysis of an anonymous access to subprogram, because it can
16834 lead to improper sharing of profiles and a back-end crash.
16835
16836 2011-08-01 Robert Dewar <dewar@adacore.com>
16837
16838 * make.adb, sem_ch4.adb: Minor reformatting.
16839 * gcc-interface/Make-lang.in: Update dependencies.
16840 * sem_util.adb, exp_ch5.adb: Minor reformatting.
16841
16842 2011-08-01 Arnaud Charlet <charlet@adacore.com>
16843
16844 * gnat_rm.texi: Fix definition of Long_Integer.
16845
16846 2011-08-01 Ed Schonberg <schonberg@adacore.com>
16847
16848 * exp_aggr.adb: check limit size of static aggregate unconditionally,
16849 to prevent storage exhaustion.
16850 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
16851 finalized is a function body, insert the cleanup code before the final
16852 return statement, to prevent spurious warnings.
16853 * s-pooglo.ads: add overriding indicator.
16854
16855 2011-08-01 Ed Schonberg <schonberg@adacore.com>
16856
16857 * sem_ch4.adb (Operator_Check): improve error message when both a
16858 with_clause and a use_clause are needed to make operator usage legal.
16859 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
16860 determine whether a compilation unit is visible within an other,
16861 either through a with_clause in the current unit, or a with_clause in
16862 its library unit or one one of its parents.
16863
16864 2011-08-01 Ed Schonberg <schonberg@adacore.com>
16865
16866 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
16867 over an arbitrary expression of an array or container type.
16868 * lib-xref.adb: clarify comment.
16869
16870 2011-08-01 Bob Duff <duff@adacore.com>
16871
16872 * einfo.ads: Minor reformatting.
16873 * debug.adb: Minor comment improvement.
16874
16875 2011-08-01 Javier Miranda <miranda@adacore.com>
16876
16877 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
16878 consider hidden subprograms as valid candidates.
16879
16880 2011-08-01 Arnaud Charlet <charlet@adacore.com>
16881
16882 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
16883
16884 2011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
16885
16886 * gnat_ugn.texi: Fix typo.
16887
16888 2011-08-01 Robert Dewar <dewar@adacore.com>
16889
16890 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
16891 lib-xref.adb: Minor reformatting
16892
16893 2011-08-01 Gary Dismukes <dismukes@adacore.com>
16894
16895 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
16896 when to generate a call to Move_Final_List.
16897 (Has_Controlled_Parts): Remove this function.
16898
16899 2011-08-01 Geert Bosch <bosch@adacore.com>
16900
16901 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
16902 "," in choice list.
16903
16904 2011-08-01 Thomas Quinot <quinot@adacore.com>
16905
16906 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
16907 explicit raise of a predefined exception as Comes_From_Source if the
16908 original N_Raise_Statement comes from source.
16909
16910 2011-08-01 Robert Dewar <dewar@adacore.com>
16911
16912 * sinfo.ads: Add comment.
16913 * sem_ch6.adb: Minor reformatting.
16914
16915 2011-08-01 Robert Dewar <dewar@adacore.com>
16916
16917 * freeze.adb (Freeze_Entity): Refine check for bad component size
16918 clause to avoid rejecting confirming clause when atomic/aliased present.
16919
16920 2011-08-01 Ed Schonberg <schonberg@adacore.com>
16921
16922 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
16923 better determine whether an entity reference is a write.
16924 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
16925 subcomponent.
16926 * lib-xref.adb (Output_References): Do no suppress a read reference at
16927 the same location as an immediately preceeding modify-reference, to
16928 handle properly in-out actuals.
16929
16930 2011-08-01 Tristan Gingold <gingold@adacore.com>
16931
16932 * env.c (__gnat_setenv) [VMS]: Refine previous change.
16933
16934 2011-08-01 Quentin Ochem <ochem@adacore.com>
16935
16936 * i-cstrin.adb (New_String): Changed implementation, now uses only the
16937 heap to compute the result.
16938
16939 2011-08-01 Robert Dewar <dewar@adacore.com>
16940
16941 * atree.ads: Minor reformatting.
16942
16943 2011-08-01 Emmanuel Briot <briot@adacore.com>
16944
16945 * g-expect.adb (Get_Command_Output): Fix memory leak.
16946
16947 2011-08-01 Geert Bosch <bosch@adacore.com>
16948
16949 * cstand.adb (P_Float_Type): New procedure to print the definition of
16950 predefined fpt types.
16951 (P_Mixed_Name): New procedure to print a name using mixed case
16952 (Print_Standard): Use P_Float_Type for printing floating point types
16953 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
16954 precision IEEE float.
16955
16956 2011-08-01 Thomas Quinot <quinot@adacore.com>
16957
16958 * sem_ch3.adb: Minor reformatting.
16959
16960 2011-08-01 Ed Schonberg <schonberg@adacore.com>
16961
16962 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
16963 the completion of a generic function, insert the new body rather than
16964 rewriting the original.
16965
16966 2011-08-01 Yannick Moy <moy@adacore.com>
16967
16968 * sinfo.ads, errout.ads: Typos in comments.
16969
16970 2011-08-01 Robert Dewar <dewar@adacore.com>
16971
16972 * par-endh.adb: Minor reformatting.
16973
16974 2011-08-01 Robert Dewar <dewar@adacore.com>
16975
16976 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
16977 (Pre_Post_Aspects): New subtype.
16978 * par-ch12.adb (P_Generic): New syntax for aspects in packages
16979 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
16980 * par-ch7.adb (P_Package): Remove Decl parameter
16981 (P_Package): Handle new syntax for aspects (before IS)
16982 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
16983 new aspect syntax
16984 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
16985 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
16986 (P_Package): Remove Decl parameter
16987 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
16988 aspects
16989 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
16990 specs
16991 * sem_util.ads, sem_util.adb (Static_Boolean): New function
16992 * sinfo.ads: Document new syntax for aspects in packages etc.
16993 * sprint.adb: Handle new syntax of aspects before IS in package
16994
16995 2011-08-01 Thomas Quinot <quinot@adacore.com>
16996
16997 * atree.ads: Minor reformatting.
16998 * sem_prag.adb: Minor reformatting.
16999
17000 2011-08-01 Robert Dewar <dewar@adacore.com>
17001
17002 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
17003 case expr alternative.
17004
17005 2011-08-01 Ed Schonberg <schonberg@adacore.com>
17006
17007 * sem_ch12.adb: Fix typo.
17008
17009 2011-08-01 Geert Bosch <bosch@adacore.com>
17010
17011 * sem_prag.adb (Check_No_Link_Name): New procedure.
17012 (Process_Import_Or_Interface): Use Check_No_Link_Name.
17013 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
17014 instead of Standard_Long_Long_Float_Size global. Preparation for
17015 eventual removal of per type constants.
17016 * exp_util.ads (Get_Stream_Size): New function returning the stream
17017 size value of subtype E.
17018 * exp_util.adb (Get_Stream_Size): Implement new function.
17019 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
17020 function.
17021 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
17022 * einfo.adb:
17023 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
17024
17025 2011-08-01 Geert Bosch <bosch@adacore.com>
17026
17027 * cstand.adb: Fix comments.
17028 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
17029 count of arguments.
17030
17031 2011-08-01 Robert Dewar <dewar@adacore.com>
17032
17033 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
17034
17035 2011-08-01 Geert Bosch <bosch@adacore.com>
17036
17037 * atree.ads: Fix comment.
17038
17039 2011-08-01 Robert Dewar <dewar@adacore.com>
17040
17041 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
17042 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
17043 * par.adb: Add with for Namet.Sp.
17044 * par-tchk.adb: Minor reformatting.
17045
17046 2011-08-01 Vincent Celier <celier@adacore.com>
17047
17048 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
17049 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
17050 of the init procedure of a SAL.
17051 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
17052 New procedure.
17053
17054 2011-08-01 Thomas Quinot <quinot@adacore.com>
17055
17056 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
17057 reformatting.
17058
17059 2011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17060
17061 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
17062
17063 2011-08-01 Thomas Quinot <quinot@adacore.com>
17064
17065 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
17066 conformant with its spec (return True only for types that have
17067 an overriding Initialize primitive operation that prevents them from
17068 having preelaborable initialization).
17069 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
17070 initialization for controlled types in Ada 2005 or later mode.
17071
17072 2011-08-01 Robert Dewar <dewar@adacore.com>
17073
17074 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
17075 Postcondition.
17076 (Same_Aspect): New function.
17077 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
17078 Type_Invariant, Precondition, Postcondition.
17079 * snames.ads-tmpl: Add Name_Type_Invariant.
17080
17081 2011-08-01 Robert Dewar <dewar@adacore.com>
17082
17083 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
17084 here.
17085 (Freeze_All_Ent): Fix error in handling inherited aspects.
17086 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
17087 already analyzed, but don't skip entire processing of a declaration,
17088 that's wrong in some cases of declarations being rewritten.
17089 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
17090 Don't delay for integer, string literals
17091 Treat predicates in usual manner for delay, remove special case code,
17092 not needed.
17093 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
17094 (Build_Predicate_Function): Update saved expression in aspect
17095 (Build_Invariant_Procedure): Update saved expression in aspect
17096 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
17097 of replacement of discriminant references if the reference is simple.
17098
17099 2011-08-01 Robert Dewar <dewar@adacore.com>
17100
17101 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
17102 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
17103 Static_Predicate and Dynamic_Predicate.
17104 (Build_Predicate_Function): Add processing for Static_Predicate
17105 and Dynamic_Predicate.
17106 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
17107 (From_Static_Predicate): New flag
17108 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
17109
17110 2011-08-01 Robert Dewar <dewar@adacore.com>
17111
17112 * usage.adb: Documentation cleanup for Ada version modes in usage.
17113 * expander.adb: Minor reformatting.
17114
17115 2011-08-01 Robert Dewar <dewar@adacore.com>
17116
17117 * atree.ads: Minor comment fix.
17118 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
17119 a-witeio.ads, sem_prag.adb: Minor reformatting.
17120
17121 2011-08-01 Doug Rupp <rupp@adacore.com>
17122
17123 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
17124 pointers. Use descrip.h header file for convenience. Add some
17125 comments.
17126
17127 2011-08-01 Robert Dewar <dewar@adacore.com>
17128
17129 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
17130 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
17131 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
17132 New procedure.
17133 (Check_Aspect_At_End_Of_Declarations): New procedure
17134 (Analye_Aspect_Specification): Minor changes for above procedures
17135 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
17136 specification node as well.
17137
17138 2011-08-01 Pascal Obry <obry@adacore.com>
17139
17140 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
17141 Windows files. Use GetFilesAttributes() in this case to check for file
17142 existence instead of returning with an error code.
17143
17144 2011-08-01 Vincent Celier <celier@adacore.com>
17145
17146 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
17147 High is above Source length.
17148
17149 2011-08-01 Robert Dewar <dewar@adacore.com>
17150
17151 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
17152
17153 2011-08-01 Robert Dewar <dewar@adacore.com>
17154
17155 * aspects.ads (Boolean_Aspects): New subtype.
17156 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
17157 for derived types in cases where the parent type and derived type have
17158 aspects.
17159 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
17160 with aspects when parent type also has aspects.
17161 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
17162 boolean expression at this point).
17163 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
17164 accordance with final decision on the Ada 2012 feature.
17165 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
17166
17167 2011-08-01 Matthew Heaney <heaney@adacore.com>
17168
17169 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
17170
17171 2011-08-01 Pascal Obry <obry@adacore.com>
17172
17173 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
17174 Fix Replace_Slice when High is above current string size.
17175 (Replace_Slice): Fix DL computation when High is above current
17176 string length.
17177
17178 2011-08-01 Gary Dismukes <dismukes@adacore.com>
17179
17180 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
17181
17182 2011-08-01 Matthew Heaney <heaney@adacore.com>
17183
17184 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
17185 of node.
17186
17187 2011-08-01 Pascal Obry <obry@adacore.com>
17188
17189 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
17190 reformatting.
17191
17192 2011-08-01 Ed Schonberg <schonberg@adacore.com>
17193
17194 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
17195 access to protected subprograms in generic bodies.
17196 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
17197 protected type, indicate that the convention of the subprogram is
17198 Convention_Protected, because it may be used in subsequent declarations
17199 within the protected declaration.
17200
17201 2011-08-01 Vincent Celier <celier@adacore.com>
17202
17203 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
17204 and "final" procedures when the name of the library is "ada", to avoid
17205 duplicate symbols "adainit" and "adafinal" in executables.
17206
17207 2011-08-01 Ed Schonberg <schonberg@adacore.com>
17208
17209 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
17210 quantified expression that appears within a postcondition and uses the
17211 Ada2012 'Result attribute.
17212
17213 2011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17214
17215 * init.c (__gnat_error_handler): Cast reason to int.
17216 (__gnat_install_handler): Explain sa_sigaction use.
17217
17218 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
17219
17220 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
17221 subprogram has copy-in copy-out parameters, try to promote the mode of
17222 the return type if it is passed in registers.
17223
17224 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
17225
17226 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
17227 left operand as addressable.
17228
17229 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
17230
17231 * gcc-interface/gigi.h (build_function_stub): Remove.
17232 (build_return_expr): Likewise.
17233 (convert_vms_descriptor): Declare.
17234 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
17235 (build_function_stub): Move to...
17236 * gcc-interface/utils2.c (build_return_expr): Move to...
17237 * gcc-interface/trans.c (build_function_stub): ...here.
17238 (build_return_expr): ...here.
17239 (Subprogram_Body_to_gnu): Add local variable for language_function.
17240 Disconnect the parameter attributes cache, if any, once done with it.
17241 Call end_subprog_body only after setting the end_locus.
17242 Build the stub associated with the function, if any, at the very end.
17243 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
17244 variables and streamline control flow.
17245
17246 2011-07-23 Arnaud Charlet <charlet@adacore.com>
17247
17248 PR ada/49819
17249 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
17250 g-trasym-dwarf.adb.
17251
17252 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17253
17254 PR bootstrap/49794
17255 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
17256 Assign to act.sa_sigaction.
17257 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
17258 current->return_address to char * before arithmetic.
17259
17260 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17261
17262 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
17263 Correct argument types.
17264 Extract code from reason.
17265 (__gnat_install_handler): Assign to act.sa_sigaction.
17266
17267 2011-07-21 Eric Botcazou <ebotcazou@adacore.com>
17268
17269 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
17270 (GNAT1_OBJS): ...here.
17271
17272 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
17273
17274 PR ada/48711
17275 * g-socthi-mingw.adb (Fill): Fix formatting.
17276
17277 * gcc-interface/gigi.h: Move around comment.
17278
17279 2011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17280
17281 PR ada/46350
17282 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
17283
17284 2011-07-14 Florian Weimer <fw@deneb.enyo.de>
17285
17286 PR ada/48711
17287 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
17288
17289 2011-07-13 Eric Botcazou <ebotcazou@adacore.com>
17290
17291 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
17292 range comparison if Pmode is SImode.
17293
17294 2011-07-12 Laurent GUERBY <laurent@guerby.net>
17295 Eric Botcazou <ebotcazou@adacore.com>
17296
17297 * adadecode.c: Wrap up in extern "C" block.
17298 * adadecode.h: Likewise.
17299 * adaint.c: Likewise. Remove 'const' keyword.
17300 * adaint.h: Likewise.
17301 * argv.c: Likewise.
17302 * atree.h: Likewise.
17303 * cio.c: Likewise.
17304 * cstreams.c: Likewise.
17305 * env.c: Likewise.
17306 * exit.c: Likewise.
17307 * fe.h: Likewise.
17308 * final.c: Likewise.
17309 * init.c: Likewise.
17310 * initialize.c: Likewise.
17311 * link.c: Likewise.
17312 * namet.h: Likewise.
17313 * nlists.h: Likewise.
17314 * raise.c: Likewise.
17315 * raise.h: Likewise.
17316 * repinfo.h: Likewise.
17317 * seh_init.c: Likewise.
17318 * targext.c: Likewise.
17319 * tracebak.c: Likewise.
17320 * uintp.h: Likewise.
17321 * urealp.h: Likewise.
17322 * xeinfo.adb: Wrap up generated C code in extern "C" block.
17323 * xsinfo.adb: Likewise.
17324 * xsnamest.adb: Likewise.
17325 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
17326 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
17327 * gcc-interface/misc.c: Likewise.
17328 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
17329 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
17330 ada/targext.o here...
17331 (GNAT_ADA_OBJS): ...and not here.
17332 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
17333 (GNATBIND_OBJS): Reorder.
17334
17335 2011-07-07 Richard Henderson <rth@redhat.com>
17336
17337 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
17338 dwarf2out_frame_init.
17339
17340 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
17341
17342 * gcc-interface/misc.c (gnat_init): Tweak previous change.
17343
17344 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17345
17346 PR target/39150
17347 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
17348
17349 2011-07-06 Richard Guenther <rguenther@suse.de>
17350
17351 * gcc-interface/misc.c (gnat_init): Merge calls to
17352 build_common_tree_nodes and build_common_tree_nodes_2.
17353 Re-initialize boolean_false_node.
17354
17355 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
17356 Olivier Hainque <hainque@adacore.com>
17357 Nicolas Setton <setton@adacore.com>
17358
17359 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
17360 the type according to the ARTIFICIAL_P parameter.
17361 (create_type_decl): Likewise.
17362 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
17363
17364 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
17365
17366 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
17367 (gnatbind): Likewise.
17368
17369 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17370
17371 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
17372
17373 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
17374
17375 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
17376 local variable throughout. Remove useless call to Base_Type.
17377 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
17378 Take it also into account for the volatileness of the field. Set the
17379 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
17380
17381 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
17382
17383 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
17384 on a dereference built for a by-ref object if it has an address clause.
17385
17386 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
17387
17388 * einfo.ads (Address_Taken): Document use for the second argument of
17389 Asm_Input and Asm_Output attributes.
17390 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
17391 argument is an entity name, then set Address_Taken on it.
17392 <Attribute_Asm_Output>: Likewise.
17393 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
17394 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
17395 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
17396 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
17397
17398 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
17399
17400 PR middle-end/46500
17401 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
17402
17403 2011-06-14 Joseph Myers <joseph@codesourcery.com>
17404
17405 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
17406 (ada/utils.o): Update dependencies.
17407 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
17408 ../../../libcpp/libcpp.a.
17409 * gcc-interface/utils.c: Include common/common-target.h.
17410 (process_attributes): Use targetm_common.have_named_sections.
17411
17412 2011-06-07 Richard Guenther <rguenther@suse.de>
17413
17414 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
17415 set_sizetype.
17416
17417 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
17418
17419 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
17420 TREE_THIS_NOTRAP flag.
17421
17422 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
17423
17424 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
17425 Fix thinko.
17426
17427 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
17428
17429 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
17430 constants whose full view has discriminants specially.
17431
17432 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
17433
17434 * gcc-interface/utils.c: Include diagnostic.h.
17435 (gnat_write_global_declarations): Output debug information for all
17436 global type declarations before finalizing the compilation unit.
17437 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
17438
17439 2011-05-25 Jakub Jelinek <jakub@redhat.com>
17440
17441 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
17442
17443 2011-05-25 Kai Tietz <ktietz@redhat.com>
17444
17445 * adaint.c (__gnat_to_canonical_file_list_next): Use array
17446 initialization instead of const/none-const pointer assignment.
17447
17448 2011-05-24 Joseph Myers <joseph@codesourcery.com>
17449
17450 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
17451 $(EXTRA_GNAT1_OBJS).
17452 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
17453 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
17454 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
17455 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
17456 libcommon-target.a instead of prefix.o.
17457
17458 2011-05-21 Joseph Myers <joseph@codesourcery.com>
17459
17460 PR ada/49097
17461 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
17462
17463 2011-05-20 Joseph Myers <joseph@codesourcery.com>
17464
17465 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
17466 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
17467 instead of version.o.
17468
17469 2011-05-18 Kai Tietz <ktietz@redhat.com>
17470
17471 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
17472 boolean_false_node instead of integer_zero_node.
17473 (convert_with_check): Likewise.
17474 * gcc-interface/decl.c (choices_to_gnu): Likewise.
17475
17476 2011-05-12 Eric Botcazou <ebotcazou@adacore.com>
17477
17478 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
17479 type of the parameter is an unconstrained array, convert the actual to
17480 the type of the formal in the In Out and Out cases as well.
17481
17482 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
17483
17484 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
17485 call build_function_type_array or build_varargs_function_type_array
17486 instead.
17487 (create_subprog_type): Don't call build_function_type; call
17488 build_function_type_vec instead.
17489
17490 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
17491
17492 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
17493 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
17494 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
17495
17496 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
17497
17498 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
17499
17500 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
17501 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
17502
17503 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
17504
17505 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
17506
17507 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
17508
17509 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
17510 instead of accessing TYPE_ARG_TYPES directly.
17511 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
17512
17513 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
17514
17515 PR ada/48844
17516 * gcc-interface/gigi.h (get_variant_part): Declare.
17517 * gcc-interface/decl.c (get_variant_part): Make global.
17518 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
17519 types have the same constant size, are record types and T1 has a
17520 variant part while T2 doesn't.
17521
17522 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
17523
17524 * gcc-interface/utils.c (begin_subprog_body): Do not call
17525 get_pending_sizes.
17526 (end_subprog_body): Likewise.
17527
17528 2011-05-04 Richard Guenther <rguenther@suse.de>
17529
17530 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
17531 int_const_binop.
17532 (pos_to_constructor): Likewise.
17533
17534 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
17535 Eric Botcazou <ebotcazou@adacore.com>
17536
17537 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
17538 of build_function_type. Adjust calls to...
17539 (build_raise_check): ...this. Do not take a void_tree parameter.
17540 Call build_function_type_list instead of build_function_type.
17541 Fix head comment and swap couple of conditional blocks.
17542
17543 2011-04-30 Eric Botcazou <ebotcazou@adacore.com>
17544
17545 * gnatvsn.ads (Library_Version): Bump to 4.7.
17546 (Current_Year): Bump to 2011.
17547
17548 2011-04-29 Michael Matz <matz@suse.de>
17549
17550 * gcc-interface/misc.c (gnat_handle_option): Set
17551 warn_maybe_uninitialized.
17552
17553 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
17554
17555 * gnat_ugn.texi (Complexity Metrics Control): Update link to
17556 the Watson/McCabe paper.
17557
17558 2011-04-23 Jim Meyering <meyering@redhat.com>
17559
17560 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
17561
17562 2011-04-22 Eric Botcazou <ebotcazou@adacore.com>
17563
17564 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
17565 onto the new type.
17566
17567 2011-04-22 Eric Botcazou <ebotcazou@adacore.com>
17568
17569 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
17570 parameter.
17571 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
17572 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
17573 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
17574 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
17575 <all>: Do not set flags on the reused DECL node coming from an alias.
17576 Set DECL_IGNORED_P on the DECL node built for subprograms if they
17577 don't need debug info here...
17578 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
17579 (gigi): Adjust calls to create_subprog_decl.
17580 (build_raise_check): Likewise.
17581 (establish_gnat_vms_condition_handler): Likewise.
17582 (Compilation_Unit_to_gnu): Likewise.
17583 (gnat_to_gnu): Likewise.
17584
17585 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
17586
17587 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
17588 (NO_REORDER_ADAFLAGS): New variable.
17589 (EXTRA_GNATTOOLS): Always define.
17590 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
17591 Clean up and adjust list of files compiled with special options.
17592 * gcc-interface/Make-lang.in: Likewise.
17593 (ada/decl.o): Cosmetical change.
17594 (ada/misc.o): Remove dependency on $(PLUGIN_H).
17595
17596 2011-04-20 Jim Meyering <meyering@redhat.com>
17597
17598 * initialize.c (__gnat_initialize): Remove useless if-before-free.
17599
17600 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
17601
17602 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
17603 $(CFLAGS) on the link line.
17604
17605 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
17606
17607 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
17608 padded type built for the return type if it is unconstrained.
17609
17610 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
17611
17612 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
17613
17614 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
17615
17616 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
17617 before calling TREE_CHAIN.
17618 * gcc-interface/misc.c (gnat_init_ts): New function.
17619 (LANG_HOOKS_INIT_TS): Define.
17620
17621 2011-04-12 Martin Jambor <mjambor@suse.cz>
17622
17623 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
17624 instead of cgraph_node.
17625
17626 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
17627
17628 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
17629 alignment on fields of the RETURN type built for the Copy-In Copy-Out
17630 mechanism.
17631
17632 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
17633
17634 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
17635 of aggregate types that contain a placeholder.
17636
17637 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
17638
17639 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
17640 TYPE_ARG_TYPES.
17641 (handle_type_generic_attribute): Likewise.
17642
17643 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
17644
17645 PR ada/47163
17646 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
17647
17648 2011-04-04 Kai Tietz <ktietz@redhat.com>
17649
17650 PR ada/47163
17651 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
17652 to flag value.
17653
17654 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17655
17656 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
17657 type case, do not strip a padding type around the array type.
17658
17659 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17660
17661 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
17662 types.
17663
17664 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17665
17666 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
17667 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
17668 code for -feliminate-unused-debug-types.
17669 (gnat_post_options): Likewise.
17670
17671 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17672
17673 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
17674 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
17675 distinct copy.
17676
17677 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17678
17679 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
17680 DECL_ARTIFICIAL flag on enumeration types.
17681
17682 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17683
17684 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
17685 fat pointer types artificial unconditionally.
17686 <E_Array_Subtype>: Attach the base array type as a parallel type if it
17687 isn't artificial.
17688
17689 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17690
17691 * gcc-interface/gigi.h (get_dummy_type): Declare.
17692 (build_dummy_unc_pointer_types): Likewise.
17693 (finish_fat_pointer_type): Likewise.
17694 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
17695 fat pointer type has been built, complete it in place.
17696 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
17697 and thin pointers. Remove useless variable.
17698 (finish_fat_pointer_type): Make global and move to...
17699 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
17700 (get_dummy_type): New function.
17701 (build_dummy_unc_pointer_types): Likewise.
17702 (gnat_pushdecl): Propage the name to the anonymous variants only.
17703 (update_pointer_to): Only adjust the pointer types in the unconstrained
17704 array case.
17705
17706 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17707
17708 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
17709 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
17710 if this is a Taft amendment type and the full declaration is available.
17711 * gcc-interface/trans.c (process_type): Likewise.
17712 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
17713 (process_freeze_entity): Likewise.
17714 * gcc-interface/utils.c (dummy_global): New static variable.
17715 (gnat_write_global_declarations): If there are types declared as used
17716 at the global level, insert them in the global hash table.
17717
17718 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17719
17720 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
17721 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
17722 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
17723 copy.
17724 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
17725 flag of the type accordingly.
17726 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
17727
17728 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
17729
17730 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
17731 finalizing types when updating the pointers to the designated type.
17732 <all>: Finalize the deferred types even if we didn't defer processing
17733 of incomplete types in this invocation.
17734
17735 2011-04-01 Olivier Hainque <hainque@adacore.com>
17736 Nicolas Setton <setton@adacore.com>
17737 Eric Botcazou <ebotcazou@adacore.com>
17738
17739 * gcc-interface/misc.c (gnat_descriptive_type): New function.
17740 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
17741
17742 2011-03-28 Kai Tietz <ktietz@redhat.com>
17743
17744 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
17745 Windows targets.
17746 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
17747 * system-mingw.ads (System): Change ZCX_By_Default default to True.
17748
17749 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
17750
17751 2011-03-28 Tristan Gingold <gingold@adacore.com>
17752
17753 PR ada/44431
17754 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
17755 Use ada output of gnatbind.
17756 (ada/b_gnatb.adb): Ditto.
17757 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
17758 (ada.mostlyclean, ada.stage1)
17759 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
17760 (ada.stagefeedback): Adjust.
17761 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
17762 Use ada output of gnatbind.
17763 (b_gnatm.adb): Ditto.
17764 (b_gnatl.o, b_gnatm.o): New rules.
17765
17766 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
17767
17768 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
17769 for the padded type built to support a specified size or alignment.
17770
17771 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
17772
17773 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
17774 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
17775 unconditionally to the end of the unit when the designated type is
17776 limited_with'ed.
17777 <all>: Rename local variable. Attempt to un-defer types only and do it
17778 for limited_with'ed types as well.
17779 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
17780 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
17781 consistently and remove redundant call to finalize_from_with_types.
17782
17783 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
17784
17785 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
17786 subprograms without a previous spec declared in the same unit.
17787 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
17788 subprograms at the end of the unit instead of at the beginning.
17789 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
17790 isn't public for the special handling of non-inline functions nested
17791 inside inline external functions.
17792
17793 2011-03-25 Jeff Law <law@redhat.com>
17794
17795 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
17796
17797 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
17798
17799 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
17800 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
17801 to compute Set_Size_Depends_On_Discriminant.
17802 (Layout_Type): Call it on array types in back-end layout mode.
17803 * sem_util.adb (Requires_Transient_Scope): Return true for array
17804 types only if the size depends on the value of discriminants.
17805 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
17806 type if the RHS is a call to a function that returns an unconstrained
17807 type with default discriminant.
17808
17809 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
17810
17811 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
17812 non-conversion to the nominal result type at the end.
17813
17814 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
17815
17816 * gcc-interface/trans.c (create_temporary): New function taken from...
17817 (create_init_temporary): ...here. Call it.
17818 (call_to_gnu): Create the temporary for the return value early, if any.
17819 Create it for a function with copy-in/copy-out parameters if there is
17820 no target; in other cases of copy-in/copy-out, use another temporary.
17821 Push the new binding level lazily. Add and rename local variables.
17822
17823 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
17824
17825 * gcc-interface/decl.c (validate_size): Improve comments and tweak
17826 error message.
17827 (set_rm_size): Likewise.
17828
17829 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
17830
17831 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
17832 for the padded type built in order to support a specified alignment.
17833 Fix incorrect formatting.
17834
17835 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
17836
17837 PR bootstrap/48216
17838 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
17839
17840 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
17841
17842 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
17843 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
17844 to the end of the list. Adjust recursive call. Rename local variable.
17845 If REORDER is true, reorder components of the record type.
17846 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
17847 components_to_record and adjust the parameter list.
17848
17849 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
17850
17851 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
17852 disabled, use the variable for bounds of loop iteration scheme.
17853
17854 2011-03-21 Kai Tietz <ktietz@redhat.com>
17855
17856 PR target/12171
17857 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
17858
17859 2011-03-17 Eric Botcazou <ebotcazou@adacore.com>
17860
17861 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
17862 out whether the expression is read-only. Short-circuit placeholder
17863 case and rename a couple of local variables.
17864
17865 2011-03-17 Eric Botcazou <ebotcazou@adacore.com>
17866
17867 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
17868 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
17869 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
17870 (convert): Deal with conversions from a smaller form type specially.
17871
17872 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
17873
17874 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
17875 its argument, except for the special -I- switch.
17876
17877 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
17878
17879 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
17880 "Ada Issues".
17881
17882 2011-02-08 Eric Botcazou <ebotcazou@adacore.com>
17883
17884 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
17885
17886 2011-02-03 Eric Botcazou <ebotcazou@adacore.com>
17887
17888 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
17889 GNAT_FORMAL.
17890 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
17891 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
17892 instead of GNAT_FORMAL. Protect the expression against multiple uses.
17893 Do not generate the check directly, instead instantiate the template
17894 check present in the descriptor.
17895 (make_descriptor_field): Move around.
17896 (build_vms_descriptor32): Build a template check in the POINTER field.
17897 (build_vms_descriptor): Remove useless suffixes.
17898 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
17899
17900 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
17901
17902 PR bootstrap/47467
17903 * targext.c: Include target files if IN_RTS is defined.
17904
17905 2011-01-26 Richard Guenther <rguenther@suse.de>
17906
17907 PR bootstrap/47467
17908 * targext.c: Include config.h.
17909 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
17910 dependency.
17911
17912 2011-01-04 Pascal Obry <obry@adacore.com>
17913 Eric Botcazou <ebotcazou@adacore.com>
17914
17915 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
17916
17917 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17918
17919 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
17920 end-of-case on the end label and its associated gotos, if any.
17921
17922 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17923
17924 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
17925 expressions of the parameter cache within the statement group of
17926 the CICO mechanism.
17927
17928 2011-01-04 Olivier Hainque <hainque@adacore.com>
17929 Eric Botcazou <ebotcazou@adacore.com>
17930
17931 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
17932 (set_end_locus_from_node): New function.
17933 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
17934 make and the function end_locus.
17935 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
17936 for the elaboration subprogram.
17937 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
17938 set the end_locus of the expression as well.
17939
17940 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17941
17942 PR ada/47131
17943 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
17944 variables that are referenced in exception handlers volatile.
17945
17946
17947 \f
17948 Copyright (C) 2011 Free Software Foundation, Inc.
17949
17950 Copying and distribution of this file, with or without modification,
17951 are permitted in any medium without royalty provided the copyright
17952 notice and this notice are preserved.