f57c46dc9e90248e1504522cc82c5a32ea31d900
[gcc.git] / gcc / ada / ChangeLog
1 2011-09-19 Robert Dewar <dewar@adacore.com>
2
3 * err_vars.ads, errout.ads: Minor reformatting.
4
5 2011-09-19 Robert Dewar <dewar@adacore.com>
6
7 * aspects.ads (Impl_Defined_Aspects): New array
8 * lib-writ.adb (No_Dependences): New name for No_Dependence
9 * restrict.adb (No_Dependences): New name for No_Dependence
10 (Check_Restriction_No_Specification_Of_Aspect): New
11 procedure.
12 (Set_Restriction_No_Specification_Of_Aspect): New procedure
13 (Restricted_Profile_Result): New variable
14 (No_Specification_Of_Aspects): New variable
15 (No_Specification_Of_Aspect_Warning): New variable
16 * restrict.ads (No_Dependences): New name for No_Dependence
17 (Check_Restriction_No_Specification_Of_Aspect): New procedure
18 (Set_Restriction_No_Specification_Of_Aspect): New procedure
19 * s-rident.ads: Add restriction
20 No_Implementation_Aspect_Specifications, this is also added to
21 the No_Implementation_Extensions profile.
22 * sem_ch13.adb (Analyze_Aspect_Specifications): Check
23 No_Implementation_Defined_Aspects
24 (Analyze_Aspect_Specifications): Check No_Specification_Of_Aspect
25 * sem_prag.adb (Analyze_Aspect_Specifications): Check
26 No_Implementation_Aspects
27 (Analyze_Aspect_Specifications): Check No_Specification_Of_Aspect
28 * snames.ads-tmpl (Name_No_Specification_Of_Aspect): New name
29
30 2011-09-19 Yannick Moy <moy@adacore.com>
31
32 * lib-xref.adb (Generate_Reference): Take into account multiple
33 renamings for Alfa refs.
34
35 2011-09-19 Thomas Quinot <quinot@adacore.com>
36
37 * g-socthi-mingw.adb: Minor reformatting.
38
39 2011-09-19 Yannick Moy <moy@adacore.com>
40
41 * gnat1drv.adb (Adjust_Global_Switches): Set tagged type
42 expansion to False in mode Alfa
43
44 2011-09-19 Pascal Obry <obry@adacore.com>
45
46 * mingw32.h: Remove obsolete code needed for old versions
47 of MingW.
48
49 2011-09-19 Robert Dewar <dewar@adacore.com>
50
51 * errout.ads: Minor reformatting.
52
53 2011-09-19 Ed Schonberg <schonberg@adacore.com>
54
55 * sem_ch6.adb (Analyze_Expression_Function): When the expression
56 function is transformed into a declaration and a body, insert
57 body at the end of the declarative part, to prevent premature
58 freeze actions, and preserve original specification in the
59 subprogram declaration.
60
61 2011-09-19 Vincent Celier <celier@adacore.com>
62
63 * projects.texi: Minor editing.
64
65 2011-09-19 Robert Dewar <dewar@adacore.com>
66
67 * sem_aggr.adb, lib-writ.ads, s-restri.ads, sem_ch6.adb,
68 exp_aggr.adb: Minor reformatting.
69
70 2011-09-19 Yannick Moy <moy@adacore.com>
71
72 * lib-xref.adb (Generate_Reference): Change entity referenced
73 to underlying object if any, or else reference to the HEAP.
74
75 2011-09-15 Arnaud Charlet <charlet@adacore.com>
76
77 * gcc-interface/Make-lang.in: Update dependencies.
78
79 2011-09-15 Robert Dewar <dewar@adacore.com>
80
81 * tree_io.ads: Minor reformatting.
82 * a-intnam.ads: Fix bad header.
83
84 2011-09-15 Thomas Quinot <quinot@adacore.com>
85
86 * a-exexpr-gcc.adb: Minor reformatting.
87
88 2011-09-15 Yannick Moy <moy@adacore.com>
89
90 * sem_ch6.adb: Propagate information that an expression function comes
91 from source (otherwise references to this entity are not stored).
92
93 2011-09-15 Robert Dewar <dewar@adacore.com>
94
95 * a-cdlili.adb, a-coinve.adb, a-stzunb-shared.ads, a-suezst.adb,
96 a-suenco.adb, a-stwiun-shared.ads, a-cobove.adb, a-convec.adb,
97 a-btgbso.adb, a-cbdlli.adb, a-suewst.adb: Minor reformatting.
98
99 2011-09-15 Ed Schonberg <schonberg@adacore.com>
100
101 * sem_ch6.adb (Analyze_Expression_Function): Code cleanup:
102 if the expression function is not a completion, create a
103 new specification for the generated declaration, and keep the
104 original specification in the generated body. Shorter code also
105 ensures that proper warnings are generated for unused formals
106 in all cases.
107
108 2011-09-15 Sergey Rybin <rybin@adacore.com>
109
110 * tree_io.ads: Update ASIS_Version_Number because of the changes
111 in the tree structures for expression functions.
112
113 2011-09-15 Arnaud Charlet <charlet@adacore.com>
114
115 * s-osinte-aix.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads,
116 s-osinte-hpux.ads, s-osinte-lynxos.ads, s-osinte-solaris-posix.ads,
117 s-taprop-posix.adb (CLOCK_MONOTONIC): New constant.
118 (CLOCK_REALTIME): Fix wrong value on some OSes.
119 * s-taprop-posix.adb (Monotonic_Clock): Use CLOCK_MONOTONIC.
120
121 2011-09-11 Eric Botcazou <ebotcazou@adacore.com>
122
123 * gcc-interface/utils.c (maybe_unconstrained_array): In the reference
124 to unconstrained array case, deal with each branch of a COND_EXPR.
125 * gcc-interface/utils2.c (build_allocator): Deal with each branch of
126 a COND_EXPR in the initializer, if present.
127
128 2011-09-11 Eric Botcazou <ebotcazou@adacore.com>
129
130 * gcc-interface/decl.c (maybe_pad_type): Do not try to change the form
131 of an addressable type.
132 * gcc-interface/trans.c (gnat_gimplify_expr) <VIEW_CONVERT_EXPR>: New.
133 Deal with those cases for which creating a temporary is mandatory.
134
135 2011-09-11 Eric Botcazou <ebotcazou@adacore.com>
136
137 * gcc-interface/trans.c (call_to_gnu): Use local variable. Make sure
138 this is a real formal parameter before testing whether it is by ref.
139
140 2011-09-11 Eric Botcazou <ebotcazou@adacore.com>
141
142 * gcc-interface/gigi.h (build_call_0_expr): Delete.
143 (build_call_1_expr): Likewise.
144 (build_call_2_expr): Likewise.
145 (build_call_n_expr): New prototype.
146 * gcc-interface/decl.c (gnat_to_gnu_entity): Use build_call_n_expr.
147 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Ditto.
148 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
149 (Exception_Handler_to_gnu_zcx): Likewise.
150 (gnat_to_gnu): Likewise.
151 (build_binary_op_trapv): Likewise.
152 * gcc-interface/utils2.c (build_call_0_expr): Delete.
153 (build_call_1_expr): Likewise.
154 (build_call_2_expr): Likewise.
155 (build_call_n_expr): New function.
156 (build_call_raise): Use build_call_n_expr.
157 (build_call_raise_range): Likewise.
158 (build_call_raise_column): Likewise.
159 (build_call_alloc_dealloc_proc): Likewise.
160 (maybe_wrap_malloc): Likewise.
161 (maybe_wrap_free): Likewise.
162
163 2011-09-11 Eric Botcazou <ebotcazou@adacore.com>
164
165 * gcc-interface/trans.c (build_return_expr): Use void_type_node for
166 MODIFY_EXPR.
167 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Assert that
168 the result type is null if ENABLE_CHECKING. Set operation_type at the
169 end unconditionally if not set in the previous cases.
170 Use build2 and void_type_node for MODIFY_EXPR.
171 (build_allocator): Use NULL_TREE for MODIFY_EXPR.
172
173 2011-09-08 Eric Botcazou <ebotcazou@adacore.com>
174
175 * gcc-interface/utils.c (unchecked_convert): Use a field of the right
176 precision when converting to or from an integral type whose precision
177 is not equal to its size.
178
179 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
180
181 * traceback.c (Darwin) USE_GCC_UNWINDER for Darwin versions >= 8.
182
183 2011-09-07 Iain Sandoe <iains@gcc.gnu.org>
184
185 * gcc-interface/Makefile.in (darwin): Provide powerpc64 system
186 implementation.
187 * system-darwin-ppc64.ads: New file.
188
189 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
190
191 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Remove
192 reference to "-lm".
193
194 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
195
196 * gcc-interface/Makefile.in (darwin, SO_OPTS): Provide architecture
197 size switches to the link phase for shared libs.
198
199 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
200
201 * gcc-interface/Makefile.in (x86_64 darwin arch): Adjust
202 LIBGNAT_TARGET_PAIRS for x86 and x86_64 variants.
203
204 2011-09-06 Arnaud Charlet <charlet@adacore.com>
205
206 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in
207 (gnattools, regnattools, cross-gnattools, canadian-gnattools,
208 gnatlib, gnatlib-sjlj, gnatlib-zcx, gnatlib-shared, gnatlib_and_tools):
209 New targets.
210 (TOOLS_FLAGS_TO_PASS): New.
211 (../stamp-tools): Reintroduce, to avoid merge conflicts.
212
213 2011-09-06 Robert Dewar <dewar@adacore.com>
214
215 * sem_ch10.adb, impunit.ads, impunit.adb (Not_Impl_Defined_Unit): New
216 name for Is_RM_Defined_Unit. Also several fixes to this unit.
217
218 2011-09-06 Robert Dewar <dewar@adacore.com>
219
220 * impunit.ads, impunit.adb (Is_RM_Defined_Unit): New function.
221 * s-rident.ads: New restriction No_Implementation_Units
222 (this restriction is also part of the profile
223 No_Implementation_Extensions)
224 * sem_ch10.adb (Analyze_With_Clause): Add check for
225 No_Implementation_Units restriction.
226
227 2011-09-06 Jerome Guitton <guitton@adacore.com>
228
229 * sysdep.c (__gnat_get_task_options): Disable VX_SPE_TASK
230 on vThreads.
231
232 2011-09-06 Thomas Quinot <quinot@adacore.com>
233
234 * s-solita.adb: Minor reformatting.
235
236 2011-09-06 Ed Schonberg <schonberg@adacore.com>
237
238 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The body that
239 is a rewriting of an expression function does not freeze previous
240 entities.
241
242 2011-09-06 Robert Dewar <dewar@adacore.com>
243
244 * impunit.adb (Is_Known_Unit): Fix bad handling of Ada 2012 case
245
246 2011-09-06 Tristan Gingold <gingold@adacore.com>
247
248 * gcc-interface/Makefile.in: Handle e500v2-wrs-vxworksae like
249 powerpc-wrs-vxworksae.
250
251 2011-09-06 Thomas Quinot <quinot@adacore.com>
252
253 * s-os_lib.ads (Spawn): Minor documentation clarification,
254 Success is True for a zero exit status.
255
256 2011-09-06 Ed Schonberg <schonberg@adacore.com>
257
258 * sem_ch5.adb: Add message for common iterator error.
259
260 2011-09-06 Ed Schonberg <schonberg@adacore.com>
261
262 * exp_ch3.adb (Build_Initialization_Call): If the target is a
263 selected component discriminated by a current instance, replace
264 the constraint with a reference to the target object, regardless
265 of whether the context is an init_proc.
266
267 2011-09-06 Robert Dewar <dewar@adacore.com>
268
269 * exp_attr.adb: Descriptor_Size is never static.
270
271 2011-09-06 Robert Dewar <dewar@adacore.com>
272
273 * gnat_ugn.texi: Add documentation for LSLOC metric in gnatmetric
274
275 2011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
276
277 * gnat_rm.texi: Clarify that attribute Descriptor_Size is
278 non-static.
279
280 2011-09-06 Ed Schonberg <schonberg@adacore.com>
281
282 * sem_res.adb (Resolve): An expression that is the body of an
283 expression function does not freeze.
284
285 2011-09-06 Matthew Heaney <heaney@adacore.com>
286
287 * a-csquin.ads, a-cusyqu.adb, a-cbprqu.adb, a-cbsyqu.adb,
288 a-cuprqu.adb: Changed copyright notice to indicate current
289 year only.
290
291 2011-09-06 Vincent Celier <celier@adacore.com>
292
293 * prj.adb: Minor spelling error fix in comment
294 * sem_res.adb: Minor reformatting
295
296 2011-09-06 Pascal Obry <obry@adacore.com>
297
298 * sysdep.c (winflush_nt): Removed as not needed anymore.
299 (winflush_95): Likewise.
300 (winflush_init): Likewise.
301 (winflush_function): Likewise.
302 (getc_immediate_common): Remove call to winflush_function.
303
304 2011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
305
306 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite the
307 processing for Descriptor_Size.
308 * gnat_rm.texi: Rephrase the wording for attribute Descriptor_Size
309 to account for its broader usage.
310 * sem_attr.adb (Analyze_Attribute): Change the error detection
311 circuitry for Descriptor_Size as the attribute is now applicable
312 to all types.
313
314 2011-09-06 Robert Dewar <dewar@adacore.com>
315
316 * sem_attr.adb, prj-nmsc.adb, exp_aggr.adb: Minor reformatting.
317
318 2011-09-06 Ed Schonberg <schonberg@adacore.com>
319
320 * lib-xref.adb (OK_To_Set_Referenced): A reference to a formal
321 in a parameter association must not set the Referenced flag on
322 the formal.
323 * prj-nmsc.adb (Check_File_Naming_Schemes): Remove useless formal
324
325 2011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
326
327 * gnat_rm.texi: Add a section on attribute Descriptor_Size
328
329 2011-09-06 Arnaud Charlet <charlet@adacore.com>
330
331 * gcc-interface/Makefile.in (common-tools, gnatmake-re,
332 gnatlink-re): Speed up by using -j0.
333
334 2011-09-06 Yannick Moy <moy@adacore.com>
335
336 * sem_ch13.adb (Analyze_Aspect_Specifications): Call
337 Set_Corresponding_Aspect when creating pragma from aspect.
338 (Add_Predicates): Use new field Corresponding_Aspect.
339 * sem_prag.adb (Analyze_Pragma): Make Pname hold source aspect
340 name when present, for the purpose of issuing error messages;
341 remove local procedure Error_Pragma_Arg_Alternate_Name.
342 * sinfo.adb, sinfo.ads (Corresponding_Aspect): New field in
343 N_Pragma node.
344 (From_Dynamic_Predicate, From_Static_Predicate): Remove fields from
345 N_Pragma node.
346
347 2011-09-06 Robert Dewar <dewar@adacore.com>
348
349 * checks.adb, s-except.ads, g-socket.adb: Minor reformatting.
350
351 2011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
352
353 * exp_ch6.adb (Build_Heap_Allocator): Add new
354 local variable Desig_Typ. Code and comment reformatting. Add
355 machinery to ensure that the allocation uses a fat pointer when
356 the type of the return object is a constrained array and the
357 function return type is an unconstrained array.
358
359 2011-09-06 Vincent Celier <celier@adacore.com>
360
361 * make.adb, prj-part.adb, prj-nmsc.adb: Remove unused formal
362 parameters in subprograms.
363
364 2011-09-06 Arnaud Charlet <charlet@adacore.com>
365
366 * s-taprop-mingw.adb (Finalize_TCB): Fix typo.
367
368 2011-09-06 Thomas Quinot <quinot@adacore.com>
369
370 * s-taprop-vxworks.adb, s-tpoaal.adb, s-tpopsp-vxworks.adb
371 (System.Tasking.Primitive_Operations.Specific.Delete): Remove
372 subprogram.
373 (System.Tasking.Primitive_Operations.Specific.Set): If argument
374 is null, destroy task specific data, to make API consistent with
375 other platforms, and thus compatible with the shared version
376 of s-tpoaal.adb.
377 (System.Tasking.Primitive_Operations.ATCB_Allocation.Free_ATCB):
378 Document the above assumption.
379
380 2011-09-06 Ed Schonberg <schonberg@adacore.com>
381
382 * exp_ch6.adb (Expand_Inlined_Call): Fix use of uninitialized
383 variable for type of return value when return type is
384 unconstrained and context is an assignment.
385
386 2011-09-06 Ed Schonberg <schonberg@adacore.com>
387
388 * sem_ch8.adb (Check_Class_Wide_Actual): Do not generate body of
389 class-wide operation if expansion is not enabled.
390
391 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
392
393 * checks.adb (Apply_Scalar_Range_Check): Deal with access
394 type prefix.
395
396 2011-09-06 Yannick Moy <moy@adacore.com>
397
398 * sem_ch13.adb (Analyze_Aspect_Specifications, case
399 Aspect_Invariant): Do not issue error at this point on illegal
400 pragma placement, as this is checked later on when analyzing
401 the corresponding pragma.
402 * sem_prag.adb (Error_Pragma_Arg_Alternate_Name): New procedure
403 similar to Error_Pragma_Arg, except the source name of the
404 aspect/pragma to use in warnings may be equal to parameter
405 Alt_Name (Analyze_Pragma, case Pragma_Invariant): refine error
406 message to distinguish source name of pragma/aspect, and whether
407 the illegality resides in the type being public, or being private
408 without a public declaration
409
410 2011-09-06 Thomas Quinot <quinot@adacore.com>
411
412 * g-socket.adb (Check_For_Fd_Set): On Windows, no need for bitmap
413 size check (fd_set is implemented differently on that platform).
414
415 2011-09-06 Thomas Quinot <quinot@adacore.com>
416
417 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
418 s-tpoaal.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
419 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop.ads,
420 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-posix.adb
421 (ATCB_Allocation): New subpackage of
422 System.Tasking.Primitive_Operations, shared across all targets
423 with full tasking runtime.
424 (ATCB_Allocation.New_ATCB): Moved there (from target specific
425 s-taprop bodies).
426 (ATCB_Allocation.Free_ATCB): New subprogram. Deallocate an ATCB,
427 taking care of establishing a local temporary ATCB if the one
428 being deallocated is Self, to avoid a reference to the freed
429 ATCB in Abort_Undefer.
430
431 2011-09-06 Thomas Quinot <quinot@adacore.com>
432
433 * s-tassta.adb, s-taskin.ads (Free_Task): If the task is not
434 terminated, mark it for deallocation upon termination.
435 (Terminate_Task): Call Free_Task again if the task is marked
436 for automatic deallocation upon termination.
437
438 2011-09-06 Robert Dewar <dewar@adacore.com>
439
440 * a-cbprqu.ads, a-cbsyqu.ads, a-cuprqu.ads, a-cusyqu.ads,
441 a-intnam-aix.ads, a-intnam-darwin.ads, a-intnam-dummy.ads,
442 a-intnam-freebsd.ads, a-intnam-hpux.ads, a-intnam-irix.ads,
443 a-intnam-linux.ads, a-intnam-lynxos.ads, a-intnam-mingw.ads,
444 a-intnam-solaris.ads, a-intnam-tru64.ads,
445 a-intnam-vms.ads, a-intnam-vxworks.ads, a-intnam.ads, interfac.ads,
446 cstand.adb, s-maccod.ads: Mark all entities as Implementation_Defined
447 * einfo.ads, einfo.adb (Is_Implementation_Defined): New flag
448 * par-prag.adb: Add dummy entry for pragma Implementation_Defined
449 * s-rident.ads: Add new restriction No_Implementation_Identifiers
450 Add new profile No_Implementation_Extensions
451 * sem_prag.adb: Implement pragma Implementation_Defined Implement
452 profile No_Implementation_Extensions
453 * sem_util.adb: Minor reformatting (Set_Entity_With_Style_Check):
454 Check violation of restriction No_Implementation_Identifiers
455 * snames.ads-tmpl: Add entries for pragma Implementation_Defined
456 Add entry for Name_No_Implementation_Extensions
457
458 2011-09-06 Robert Dewar <dewar@adacore.com>
459
460 * impunit.ads: Minor reformatting.
461
462 2011-09-06 Robert Dewar <dewar@adacore.com>
463
464 * ali.adb, sem_ch13.adb, lib-xref.adb: Minor reformatting.
465
466 2011-09-06 Pascal Obry <obry@adacore.com>
467
468 * s-osinte-linux.ads, s-oscons-tmplt.c: Use oscons to define sigset_t
469 types.
470
471 2011-09-06 Robert Dewar <dewar@adacore.com>
472
473 * g-socket.adb: Minor reformatting
474
475 2011-09-06 Javier Miranda <miranda@adacore.com>
476
477 * ali.adb (Scan_ALI): Add missing support to load references of
478 entities imported from other languages.
479 * ali.ads (Xref_Record): Adding new fields to store the language and
480 name of an imported entity.
481 * lib-xref.adb (Output_Import_Export_Info): Fix typo
482 in comment.
483
484 2011-09-06 Ed Schonberg <schonberg@adacore.com>
485
486 * sem_prag.adb (Analyze_Pragma, case Type_Invariant): A type invariant
487 is allowed on a full type declaration if it is the completion of
488 a private declarations.
489 * sem_ch13.adb (Analyze_Aspect_Specifications): An invariant
490 aspect is allowed on a full type declaration in the private part
491 of a package.
492
493 2011-09-06 Robert Dewar <dewar@adacore.com>
494
495 * sem_ch8.ads: Minor reformatting
496
497 2011-09-06 Thomas Quinot <quinot@adacore.com>
498
499 * s-oscons-tmplt.c, g-socket.adb (GNAT.Sockets.Clear,Set,Is_Set):
500 Guard against socket values that are not in [0;FD_SETSIZE[
501
502 2011-09-06 Robert Dewar <dewar@adacore.com>
503
504 * s-osinte-linux.ads, a-iteint.ads, exp_ch6.adb, s-solita.adb: Minor
505 reformatting.
506
507 2011-09-06 Arnaud Charlet <charlet@adacore.com>
508
509 * s-linux-alpha.ads: Minor reformatting
510 * s-oscons-tmplt.c: Fix generated comments in s-oscons template.
511 Use sizeof instead of corresponding C defines in s-oscons template.
512
513 2011-09-06 Vadim Godunko <godunko@adacore.com>
514
515 * a-convec.ads, a-iteint.ads: Minor reformatting.
516
517 2011-09-06 Vincent Celier <celier@adacore.com>
518
519 * projects.texi: Add menus and @node lines.
520
521 2011-09-06 Ed Schonberg <schonberg@adacore.com>
522
523 * exp_ch6.adb (Expand_Inlined_Call): Handle properly the case
524 where the return type is an unconstrained array and the context
525 is an assignment. Optimize the case when the target of the
526 assignment is a selected component.
527
528 2011-09-06 Arnaud Charlet <charlet@adacore.com>
529
530 * s-solita.adb: Update comments.
531
532 2011-09-06 Pascal Obry <obry@adacore.com>
533
534 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, s-linux-mipsel.ads,
535 s-linux-sparc.ads: Remove hard coded and now wrong definitions.
536 * s-oscons-tmplt.c: Add support for generating pthread related
537 types size on GNU/Linux as done for Darwin.
538 * s-osinte-linux.ads: Use s-oscons to define the pthread types.
539
540 2011-09-06 Robert Dewar <dewar@adacore.com>
541
542 * exp_ch6.adb: Fix minor typo.
543
544 2011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
545
546 * exp_ch7.adb: Remove with and use clauses for Get_Targ.
547 (Alignment_Of): Moved to the body of Nearest_Multiple_Rounded_Up.
548 (Double_Size_Of): Alphabetized. Update the comment on usage.
549 (Make_Finalize_Address_Stmts): Update comments and reformat code.
550 (Nearest_Multiple_Rounded_Up): New routine.
551 (Size_Of): Update comment on usage. The generated expression now
552 accounts for alignment gaps by rounding the size of the type to the
553 nearest multiple rounded up of the type's alignment.
554
555 2011-09-06 Robert Dewar <dewar@adacore.com>
556
557 * exp_ch7.adb, g-comlin.adb: Minor reformatting.
558
559 2011-09-06 Steve Baird <baird@adacore.com>
560
561 * exp_ch4.adb (Expand_Allocator_Expression): Look through
562 derived subprograms in checking for presence of an
563 Extra_Accessibility_Of_Result formal parameter.
564 * exp_ch6.adb (Expand_Call): Look through derived subprograms in
565 checking for presence of an Extra_Accessibility_Of_Result formal
566 parameter.
567 (Expand_Call.Add_Actual_Parameter): Fix a bug in the
568 case where the Parameter_Associatiations attribute is already set,
569 but set to an empty list.
570 (Needs_Result_Accessibility_Level):
571 Unconditionally return False. This is a temporary
572 change, disabling the Extra_Accessibility_Of_Result
573 mechanism.
574 (Expand_Simple_Function_Return): Check for
575 Extra_Accessibility_Of_Result parameter's presence instead of
576 testing Ada_Version when generating a runtime accessibility
577 check which makes use of the parameter.
578
579 2011-09-06 Ed Schonberg <schonberg@adacore.com>
580
581 * exp_ch4.adb (Expand_N_Case_Expression): Actions created for the
582 expression in a given case alternative must be attached to the
583 statement list of the ccrresponding case statement alternative
584 They cannot be propagated ahead of the case statement, because
585 the validity of the expression that generated the action may
586 hold only for that alternative.
587
588 2011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
589
590 * exp_ch7.adb: Remove with and use clauses for Get_Targ.
591 (Alignment_Of): Remove the code for strict alignment targets.
592 (Double_Alignment_Of): Removed.
593 (Double_Size_Of): New routine.
594 (Make_Finalize_Address_Stmts): Change the
595 calculation of the dope's size. Update relevant comments.
596 (Size_Of): New routine.
597
598 2011-09-06 Steve Baird <baird@adacore.com>
599
600 * einfo.ads (Extra_Accessibility): Update associated comment to use
601 the term "present" correctly ("present" just means that it is not
602 an error to query the value of the attribute - it does not imply
603 that the value must be non-null).
604 (Extra_Constrained): Ditto.
605 (Is_Visible_Formal): Ditto.
606 (Extra_Accessibility_Of_Result) Ditto; also add Inline pragma.
607 (Set_Extra_Accessibility_Of_Result): Add Inline pragma.
608 * exp_ch4.adb (Expand_Allocator_Expression): Improve a comment.
609 * exp_ch6.adb (Expand_Call): The callee may require an
610 Extra_Accessibility_Of_Result actual parameter even if Ada_Version
611 < Ada_2012. This can occur if the callee is exported from a Gnat
612 runtimes unit. Also improve a comment.
613
614 2011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
615
616 * exp_ch7.adb: Add with and use clauses for Get_Targ.
617 (Alignment_Of): Rename formal parameter Some_Typ
618 to Typ, update related comment. Use the allocator alignment on
619 strict alignment targets such as SPARC.
620 (Double_Alignment_Of): Rename formal parameter Some_Typ to Typ, update
621 related comment.
622
623 2011-09-06 Gary Dismukes <dismukes@adacore.com>
624
625 * sem_ch9.adb (Check_Interfaces): Test
626 Is_Limited_Type rather than Is_Limited_Record when checking that
627 the partial view of a synchronized full view must be limited.
628
629 2011-09-06 Emmanuel Briot <briot@adacore.com>
630
631 * g-comlin.adb (Free): Fix memory leak.
632
633 2011-09-06 Robert Dewar <dewar@adacore.com>
634
635 * sem_util.adb, exp_ch6.adb: Minor reformatting and code reorganization.
636
637 2011-09-06 Steve Baird <baird@adacore.com>
638
639 * einfo.ads (Extra_Accessibility_Of_Result): New function; in the
640 (Ada2012) cases described in AI05-0234 where the accessibility
641 level of a function result is "determined by the point of
642 call", an implicit parameter representing that accessibility
643 level is passed in. Extra_Accessibilty_Of_Result yields this
644 additional formal parameter. Extra_Accessibility_Of_Result
645 is analogous to the existing Extra_Accessibility
646 function used in the implementation of access parameters.
647 (Set_Extra_Accessibility_Of_Result): New procedure; sets
648 Extra_Accessibility_Of_Result attribute.
649 * einfo.adb (Extra_Accessibility_Of_Result): New function.
650 (Set_Extra_Accessibility_Of_Result): New procedure.
651 (Write_Field19_Name): Display Extra_Accessibilty_Of_Result attribute.
652 * sem_util.adb (Dynamic_Accessibility_Level): Set Etype of
653 an accessibility level literal to Natural; introduce a nested
654 function, Make_Level_Literal, to do this.
655 * exp_ch6.ads (Needs_Result_Accessibility_Level): New function;
656 determines whether a given function (or access-to-function
657 type) needs to have an implicitly-declared accessibility-level
658 parameter added to its profile.
659 (Add_Extra_Actual_To_Call): Export an existing procedure which was
660 previously declared in the body of Exp_Ch6.
661 * exp_ch6.adb (Add_Extra_Actual_To_Call): Export declaration by moving
662 it to exp_ch6.ads.
663 (Has_Unconstrained_Access_Discriminants): New Function; a
664 predicate on subtype entities which returns True if the given
665 subtype is unconstrained and has one or more access discriminants.
666 (Expand_Call): When expanding a call to a function which takes an
667 Extra_Accessibility_Of_Result parameter, pass in the appropriate
668 actual parameter value. In the case of a function call which is
669 used to initialize an allocator, this may not be possible because
670 the Etype of the allocator may not have been set yet. In this
671 case, we defer passing in the parameter and handle it later in
672 Expand_Allocator_Expression.
673 (Expand_Simple_Function_Return): When returning from a function which
674 returns an unconstrained subtype having at least one access
675 discriminant, generate the accessibility check needed to ensure that
676 the function result will not outlive any objects designated by its
677 discriminants.
678 (Needs_Result_Accessibility_Level): New function; see exp_ch6.ads
679 description.
680 * exp_ch4.adb (Expand_Allocator_Expression): When a function call
681 is used to initialize an allocator, we may need to pass in "the
682 accessibility level determined by the point of call" (AI05-0234)
683 to the function. Expand_Call, where such actual parameters are
684 usually generated, is too early in this case because the Etype of
685 the allocator (which is used in determining the level to be passed
686 in) may not have been set yet when Expand_Call executes. Instead,
687 we generate code to pass in the appropriate actual parameter
688 in Expand_Allocator_Expression.
689 * sem_ch6.adb (Create_Extra_Formals): Create
690 the new Extra_Accessibility_Of_Result formal if
691 Needs_Result_Accessibility_Level returns True. This includes the
692 introduction of a nested procedure, Check_Against_Result_Level.
693
694 2011-09-06 Arnaud Charlet <charlet@adacore.com>
695
696 * gcc-interface/Makefile.in (X86_TARGET_PAIRS): Remove duplicate
697 declaration.
698
699 2011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
700
701 * s-finmas.adb (Set_Finalize_Address): Explain the reason
702 for the synchronization. Move the test for null from
703 s-stposu.Allocate_Any_Controlled to this routine since the check
704 needs to be protected too.
705 (Set_Heterogeneous_Finalize_Address): Explain the reason for the
706 synchronization code.
707 * s-finmas.ads (Set_Heterogeneous_Finalize_Address): Add comment
708 explaining the context in which this routine is used.
709 * s-stposu.adb (Allocate_Any_Controlled): Move the test for null
710 to s-finmas.Set_Finalize_Address.
711
712 2011-09-05 Ed Schonberg <schonberg@adacore.com>
713
714 * einfo.ads: Document that itypes have no parent field.
715
716 2011-09-05 Robert Dewar <dewar@adacore.com>
717
718 * rtsfind.adb (Check_CRT): Check for overloaded entity
719 * rtsfind.ads: Document that entities to be found by rtsfind
720 cannot be overloaded
721 * s-taenca.adb, s-tasren.adb, s-tpobop.adb, s-tpoben.ads, s-tpoben.adb
722 (Lock_Entries_With_Status): New name for Lock_Entries with two
723 arguments (changed to meet rtsfind no overloading rule).
724
725 2011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
726
727 * s-finmas.adb (Set_Finalize_Address (Address,
728 Finalize_Address_Ptr)): Renamed to Set_Heterogeneous_Finalize_Address.
729 (Set_Finalize_Address (in out Finalization_Master,
730 Finalize_Address_Ptr): Add synchronization code.
731 * s-finmas.ads (Set_Finalize_Address (Address,
732 Finalize_Address_Ptr)): Renamed to Set_Heterogeneous_Finalize_Address.
733 * s-stposu.adb (Allocate_Any_Controlled): Update the call to
734 Set_Finalize_Address for the heterogeneous case.
735
736 2011-09-05 Ed Schonberg <schonberg@adacore.com>
737
738 * sem_ch3.adb: Undo previous change, not suitable after all.
739
740 2011-09-05 Robert Dewar <dewar@adacore.com>
741
742 * einfo.ads: Minor comment clarification.
743
744 2011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
745
746 * exp_ch6.adb (Move_Activation_Chain): Rewritten. The routine
747 no longer needs to search through the entities of the return
748 statement scope to find the _chain.
749 * sem_ch5.adb: Add with and use clauses for Exp_Ch6 and Sem_Ch6.
750 (Analyze_Block_Statement): Add local variable
751 Is_BIP_Return_Statement. Add machinery to install all entities
752 produced by the expansion of the return object declaration.
753 (Install_Return_Entities): New routine.
754 * sem_ch6.ads, sem_ch6.adb (Install_Entity): Moved from body to spec.
755
756 2011-09-05 Ed Schonberg <schonberg@adacore.com>
757
758 * sem_ch10.adb (Analyze_Context): Apply simple fixup if context
759 of subunit is incomplete.
760 (Analyze_Proper_Body): If parent spec is not available, do not
761 attempt analysis.
762
763 2011-09-05 Ed Schonberg <schonberg@adacore.com>
764
765 * sem_disp.adb (Find_Controlling_Arg): Add checks for
766 interface type conversions, that are expanded into dereferences.
767
768 2011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
769
770 * sem_ch6.adb (Analyze_Subprogram_Body_Helper):
771 Examine the parameter and return profile of a subprogram and swap
772 any incomplete types coming from a limited context with their
773 corresponding non-limited views.
774 (Exchange_Limited_Views): New routine.
775
776 2011-09-05 Ed Schonberg <schonberg@adacore.com>
777
778 * sem_ch3.adb (Prepare_Private_Subtype_Completion): Set parent
779 of internal entity to the subtype declaration, so that when
780 entities are subsequently exchanged in a package body, the tree
781 remains properly formatted for ASIS.
782
783 2011-09-05 Johannes Kanig <kanig@adacore.com>
784
785 * g-comlin.adb (Set_Usage): Additional optional argument to set help
786 message.
787 (Display_Help): display the user given help message, if available.
788
789 2011-09-05 Ed Schonberg <schonberg@adacore.com>
790
791 * sem_ch3.adb (OK_For_Limited_Init_In_05): The expression
792 is legal if the original node is an identifier that is a
793 parameterless function call.
794
795 2011-09-05 Pascal Obry <obry@adacore.com>
796
797 * prj-nmsc.adb: Minor reformatting.
798 Add support for standalone aggregate library.
799 (Check_Stand_Alone_Library): Handle standalone aggregate library.
800 * projects.texi: Fix documentation for aggregate library projects.
801
802 2011-09-05 Robert Dewar <dewar@adacore.com>
803
804 * sem_ch6.adb: Minor reformatting.
805
806 2011-09-05 Matthew Gingell <gingell@adacore.com>
807
808 * s-tassta.adb (Task_Wrapper): Ensure that we don't try to write the
809 stack guard page on PPC Linux. This patch ensures the 64K guard page at
810 the bottom of the stack is not overwritten.
811
812 2011-09-05 Thomas Quinot <quinot@adacore.com>
813
814 * exp_intr.adb, s-tasini.adb: Minor reformatting.
815
816 2011-09-05 Ed Schonberg <schonberg@adacore.com>
817
818 * sem_ch3.adb (Access_Definition): If an access type declaration
819 appears in a child unit, the scope of whatever anonymous type
820 may be generated is the child unit itself.
821
822 2011-09-05 Ed Schonberg <schonberg@adacore.com>
823
824 * sem_ch6.adb (Analyze_Expression_Function): Do not set
825 Comes_From_Source on rewritten body.
826 (Analyze_Subprogram_Body_Helper): Check that the original node for
827 the body comes from source, when determining whether expansion
828 of a protected operation is needed.
829
830 2011-09-05 Ed Schonberg <schonberg@adacore.com>
831
832 * exp_aggr.adb (Replace_Type): If the target of the assignment is
833 a selected component and the right-hand side is a self-referential
834 access, the proper prefix of the rewritten attribute is a copy
835 of the left-hand side, not of its prefix.
836
837 2011-09-05 Robert Dewar <dewar@adacore.com>
838
839 * sem_ch5.adb: Minor reformatting.
840 * sem_ch3.adb: Minor code clean up.
841
842 2011-09-05 Jose Ruiz <ruiz@adacore.com>
843
844 * exp_ch9.adb (Make_Initialize_Protection): The fact that
845 restriction No_Dynamic_Attachment is in effect or not should
846 not influence the default priority associated to a protected
847 object. With this change, when the restriction is in effect (as
848 is the case for the Ravenscar profile) the default priority of
849 a protected object with an interrupt handler is in the range of
850 interrupt priorities (Default_Interrupt_Priority) as required
851 by D.3(10).
852
853 2011-09-05 Arnaud Charlet <charlet@adacore.com>
854
855 * a-iteint.ads: Fix header.
856
857 2011-09-05 Vincent Celier <celier@adacore.com>
858
859 * prj-conf.adb (Do_Autoconf): Make sure Obj_Dir always ends
860 with a directory separator to avoid output such as:
861 "/path/to/objauto.cgpr" has been deleted.
862
863 2011-09-05 Robert Dewar <dewar@adacore.com>
864
865 * sem_ch3.adb: Minor reformatting.
866
867 2011-09-05 Ed Schonberg <schonberg@adacore.com>
868
869 * sem_ch5.adb: Better error message.
870
871 2011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
872
873 * exp_aggr.adb: Add with and use clause for Exp_Ch6.
874 (Expand_Array_Aggregate): Detect a special case of an aggregate
875 which contains tasks in the context of an unexpanded return
876 statement of a build-in-place function.
877 * exp_ch6.adb: Add with and use clause for Exp_Aggr.
878 (Expand_N_Extended_Return_Statement): Detect a delayed aggregate
879 which contains tasks and expand it now that the original simple
880 return statement has been rewritten.
881 * exp_ch9.adb (Build_Activation_Chain_Entity): Code
882 reformatting. Do not create a chain for an extended return
883 statement if one is already available.
884 (Has_Activation_Chain): New routine.
885
886 2011-09-05 Marc Sango <sango@adacore.com>
887
888 * sem_ch3.adb (Analyze_Object_Declaration): Remove
889 the wrong test and add the correct test to detect the violation
890 of illegal use of unconstrained string type in SPARK mode.
891
892 2011-09-05 Ed Schonberg <schonberg@adacore.com>
893
894 * sem_ch5.adb (Analyze_Iteration_Specification): Improve error
895 message on an iterator over an array.
896
897 2011-09-05 Robert Dewar <dewar@adacore.com>
898
899 * lib-xref-alfa.adb: Minor reformatting.
900
901 2011-09-05 Robert Dewar <dewar@adacore.com>
902
903 * sem_ch3.adb, sem_res.adb, par.adb, par-ch6.adb, g-comlin.adb,
904 exp_ch6.adb, lib-xref-alfa.adb: Minor reformatting.
905
906 2011-09-05 Gary Dismukes <dismukes@adacore.com>
907
908 * exp_ch7.adb, exp_ch6.adb: Minor reformatting.
909
910 2011-09-05 Johannes Kanig <kanig@adacore.com>
911
912 * lib-xref-alfa.adb: Update comments.
913
914 2011-09-05 Thomas Quinot <quinot@adacore.com>
915
916 * sem_res.adb: Minor reformatting
917
918 2011-09-05 Ed Schonberg <schonberg@adacore.com>
919
920 * exp_ch6.adb (Build_In_Place_Formal): If extra formals are not
921 present, create them now. Needed in case the return type was
922 a limited view in the function declaration.
923 (Make_Build_In_Place_Call_In_Allocator): If return type contains
924 tasks, build the activation chain for it. Pass a reference to
925 the Master_Id in call to Add_Task_Actuals_To_Build_In_Place call.
926 * exp_ch7.adb (Make_Set_Finalize_Address_Call): Clean up interface
927 with build_in_place calls.
928 * sem_ch9.adb (Analyze_Task_Type_Declaration): If partial view was
929 incomplete, inatialize its Corresponding_Record_Type component.
930 * sem_ch10.adb (Build_Chain): Initialize Private_Dependents field
931 of limited views.
932
933 2011-09-05 Johannes Kanig <kanig@adacore.com>
934
935 * lib-xref-alfa.adb (Is_Alfa_Reference): Filter constants from effect
936 information.
937
938 2011-09-05 Ed Schonberg <schonberg@adacore.com>
939
940 * par-ch6.adb (P_Subprogram): In Ada2012 mode, if the subprogram
941 appears within a package specification and the token after "IS"
942 is not a parenthesis, assume that this is an unparenthesized
943 expression function, even if the token appears in a line by
944 itself.
945 * par.adb: Clarify use of Labl field of scope stack in error
946 recovery.
947
948 2011-09-05 Bob Duff <duff@adacore.com>
949
950 * sem_res.adb (Resolve_Intrinsic_Operator): Use unchecked
951 conversions instead of normal type conversions in all cases where a
952 type conversion would be illegal. In particular, use unchecked
953 conversions when the operand types are private.
954
955 2011-09-05 Johannes Kanig <kanig@adacore.com>
956
957 * lib-xref-alfa.adb (Is_Alfa_Reference): Never declare effects on
958 objects of task type or protected type.
959
960 2011-09-05 Ed Schonberg <schonberg@adacore.com>
961
962 * sem_ch6.adb (Analyze_Expression_Function): If the expression
963 function comes from source, indicate that so does its rewriting,
964 so it is compatible with any subsequent expansion of the
965 subprogram body (e.g. when it is a protected operation).
966 * sem_ch4.adb: minor reformatting
967
968 2011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
969
970 * lib.adb (Check_Same_Extended_Unit): Comment rewriting. Use
971 Get_Source_Unit rather than Get_Code_Unit as instantiation unfolding
972 may lead to wrong ancestor package in the case of instantiated subunit
973 bodies. If a subunit is instantiated, follow the chain of instantiations
974 rather than the stub structure.
975
976 2011-09-02 Robert Dewar <dewar@adacore.com>
977
978 * sem_ch4.adb, sem_ch6.adb: Minor reformatting.
979 * gcc-interface/Make-lang.in: Update dependencies.
980
981 2011-09-02 Marc Sango <sango@adacore.com>
982
983 * sem_ch3.adb (Analyze_Object_Declaration): Change
984 comment and add additional check to differentiate constant of
985 type string from others unconstrained type.
986
987 2011-09-02 Ed Schonberg <schonberg@adacore.com>
988
989 * sinfo.ads, sinfo.adb: New semantic attribute Premature_Use,
990 present in incomplete type declarations to refine the error
991 message the full declaration is in the same unit.
992 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of
993 an incomplete type, set the Premature_Use for additional message.
994 * sem_ch3.adb (Find_Type_Name): If partial view is incomplete
995 and Premature_Use is set, place additional information at the
996 point of premature use.
997
998 2011-09-02 Bob Duff <duff@adacore.com>
999
1000 * sem_ch6.adb: (Check_Post_State): Suppress warning
1001 "postcondition refers only to pre-state" when the expression has not
1002 yet been analyzed, because it causes false alarms. This can happen when
1003 the postcondition contains a quantified expression, because those are
1004 analyzed later. This is a temporary/partial fix.
1005 (Process_Post_Conditions): Minor: change wording of warning.
1006
1007 2011-09-02 Marc Sango <sango@adacore.com>
1008
1009 * sem_ch3.adb (Analyze_Object_Declaration): Detect the violation of
1010 illegal use of unconstrained string type in SPARK mode.
1011 * sem_res.adb (Analyze_Operator_Symbol): Set the
1012 right place where the string operand of concatenation should be
1013 violate in SPARK mode.
1014
1015 2011-09-02 Robert Dewar <dewar@adacore.com>
1016
1017 * sem_prag.adb, sem_util.adb, sem_ch6.adb, prj-nmsc.adb,
1018 exp_ch3.adb: Minor reformatting.
1019
1020 2011-09-02 Vincent Celier <celier@adacore.com>
1021
1022 * prj-conf.adb (Add_Default_GNAT_Naming_Scheme): Declare "gcc"
1023 as the compiler driver so Is_Compilable returns True for sources.
1024 * prj-nmsc.adb (Override_Kind): When Kind is Sep, set the source
1025 for the body.
1026
1027 2011-09-02 Ed Schonberg <schonberg@adacore.com>
1028
1029 * sem_prag.adb (Analyze_PPC_In_Decl_Part): for a class-wide
1030 condition, a reference to a controlling formal must be interpreted
1031 as having the class-wide type (or an access to such) so that the
1032 inherited condition can be properly applied to any overriding
1033 operation (see ARM12 6.6.1 (7)).
1034
1035 2011-09-02 Tristan Gingold <gingold@adacore.com>
1036
1037 * init.c (__gnat_is_vms_v7): Fix case and add prototype
1038 for LIB$GETSYI.
1039
1040 2011-09-02 Javier Miranda <miranda@adacore.com>
1041
1042 * exp_ch3.adb (Expand_N_Object_Declaration): Do not copy the
1043 initializing expression of a class-wide interface object declaration
1044 if its type is limited.
1045
1046 2011-09-02 Johannes Kanig <kanig@adacore.com>
1047
1048 * sem_util.adb (Unique_Name): To obtain a unique name for enumeration
1049 literals, take into account the type name; the type is *not*
1050 the scope for an enumeration literal.
1051
1052 2011-09-02 Ed Schonberg <schonberg@adacore.com>
1053
1054 * sem_ch6.adb (Check_Overriding_Indicator): add special check
1055 to reject an overriding indicator on a user-defined Adjust
1056 subprogram for a limited controlled type.
1057
1058 2011-09-02 Ed Schonberg <schonberg@adacore.com>
1059
1060 * sem_res.adb (Resolve_Actuals): add missing call to Resolve
1061 for an actual that is a function call returning an unconstrained
1062 limited controlled type.
1063
1064 2011-09-02 Tristan Gingold <gingold@adacore.com>
1065
1066 * g-socthi-vms.adb (c_sendmsg, c_recvmsg): Use unpacked msg if on vms 7
1067
1068 2011-09-02 Johannes Kanig <kanig@adacore.com>
1069
1070 * alfa.ads (Name_Of_Heap_Variable): Change value of the HEAP variable
1071 from "HEAP" to __HEAP Change comment that refers to that variable
1072 * put_alfa.adb: Change comment that refers to that variable
1073
1074 2011-09-02 Robert Dewar <dewar@adacore.com>
1075
1076 * exp_ch4.adb, exp_ch6.adb, prj-nmsc.adb: Minor reformatting.
1077
1078 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
1079
1080 * exp_util.adb (Extract_Renamed_Object): Renamed to
1081 Find_Renamed_Object. This routine has been reimplemented and now uses
1082 tree traversal to locate a renamed object.
1083 (Is_Aliased): Replace call to Extract_Renamed_Object with
1084 Find_Renamed_Object.
1085
1086 2011-09-02 Tristan Gingold <gingold@adacore.com>
1087
1088 * init.c: (__gnat_is_vms_v7): New function.
1089
1090 2011-09-02 Olivier Hainque <hainque@adacore.com>
1091
1092 * tracebak.c (STOP_FRAME, ppc elf/vxworks case): Stop on frames
1093 that have a misaligned backchain, necessarily bogus.
1094
1095 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
1096
1097 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not create
1098 TSS routine Finalize_Address when compiling in Alfa mode.
1099 (Expand_Freeze_Record_Type): Do not create TSS routine
1100 Finalize_Address when compiling in Alfa mode.
1101 * exp_ch4.adb (Expand_Allocator_Expression): Do not produce a
1102 call to Set_Finalize_Address in Alfa mode because Finalize_Address is
1103 not built.
1104 (Expand_N_Allocator): Do not produce a call to
1105 Set_Finalize_Address in Alfa mode because Finalize_Address is not built.
1106 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not
1107 produce a call to primitive Set_Finalize_Address in Alfa mode because
1108 Finalize_Address is not built.
1109 * exp_ch7.adb (Build_Finalization_Master): Do not create
1110 finalization masters in Afa mode since they are not needed.
1111 (Build_Finalizer): Do not create scope and library-level
1112 finalizers in Alfa mode since they are not needed.
1113 * exp_util.adb (Build_Allocate_Deallocate_Proc): Do not expand
1114 "new" and "free" when applied to controlled objects in Alfa mode since
1115 this is not needed.
1116
1117 2011-09-02 Vincent Celier <celier@adacore.com>
1118
1119 * prj-nmsc.db: (Check_Stand_Alone_Library): For SALs, allow
1120 only library names with the syntax of Ada identifiers, to avoid errors
1121 when compiling the binder generated files.
1122 * projects.texi: Document restriction on SAL library names
1123
1124 2011-09-02 Thomas Quinot <quinot@adacore.com>
1125
1126 * a-chtgbo.adb: Minor comment fix.
1127
1128 2011-09-02 Robert Dewar <dewar@adacore.com>
1129
1130 * lib-xref.adb: Minor reformatting
1131
1132 2011-09-02 Vincent Celier <celier@adacore.com>
1133
1134 * bindusg.adb, clean.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
1135 gnatls.adb, gnatname.adb, gnatxref.adb, gprep.adb, makeusg.adb: Add
1136 --version and --help in usage.
1137 * switch.ads, switch.adb (Display_Usage_Version_And_Help): New procedure
1138
1139 2011-09-02 Bob Duff <duff@adacore.com>
1140
1141 * lib-xref.adb: (Hash): Avoid use of 'Mod attribute, because old
1142 compilers don't understand it.
1143
1144 2011-09-02 Gary Dismukes <dismukes@adacore.com>
1145
1146 * exp_attr.adb (Expand_N_Attribute_Reference): Pass the
1147 underlying subtype rather than its base type on the call to
1148 Build_Record_Or_Elementary_Input_Function, so that any
1149 constraints on a discriminated subtype will be available for
1150 doing the check required by AI05-0192.
1151 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function):
1152 If the prefix subtype of the 'Input attribute is a constrained
1153 discriminated subtype, then check each constrained discriminant value
1154 against the corresponding value read from the stream.
1155
1156 2011-09-02 Yannick Moy <moy@adacore.com>
1157
1158 * usage.adb, warnsw.adb, sem_ch6.adb, opt.ads: Disable by default
1159 warnings on suspicious contracts, and enable them with -gnatwa.
1160
1161 2011-09-02 Robert Dewar <dewar@adacore.com>
1162
1163 * exp_util.adb, exp_ch9.adb, sem_attr.adb, sem_ch6.adb: Minor
1164 reformatting.
1165
1166 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
1167
1168 * exp_ch9.adb (Install_Private_Data_Declarations): Add guards
1169 which ensure that restriction No_Dynamic_Attachment has not been
1170 violated.
1171 (Make_Initialize_Protection): Protected types with attach or
1172 interrupt handlers must not violate restriction No_Dynamic_Attachment.
1173 * exp_util.adb (Corresponding_Runtime_Package): Add a guard
1174 which ensures that restriction No_Dynamic_Attachment has not been
1175 violated.
1176 * sem_attr.adb: (Eval_Attribute): Transform
1177 VAX_Float_Type'First and 'Last into references to
1178 the temporaries which store the corresponding bounds. The
1179 transformation is needed since the back end cannot evaluate
1180 'First and 'Last on VAX.
1181 (Is_VAX_Float): New routine.
1182
1183 2011-09-02 Ed Schonberg <schonberg@adacore.com>
1184
1185 * sem_ch12.adb (Analyze_Subprogram_Instantiation): If the
1186 generic unit is not intrinsic and has an explicit convention,
1187 the instance inherits it.
1188
1189 2011-09-02 Robert Dewar <dewar@adacore.com>
1190
1191 * prj-dect.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, prj-tree.adb,
1192 prj.adb, prj.ads, sem_ch5.adb: Minor reformatting.
1193
1194 2011-09-02 Thomas Quinot <quinot@adacore.com>
1195
1196 * sem_attr.adb (Analyze_Attribute, case Unrestriced_Access):
1197 Guard against a prefix that is an N_Has_Entity but has no
1198 associated entity.
1199
1200 2011-09-02 Yannick Moy <moy@adacore.com>
1201
1202 * lib-xref-alfa.adb (Is_Alfa_Reference): Ignore IN parameters in Alfa
1203 references.
1204
1205 2011-09-02 Yannick Moy <moy@adacore.com>
1206
1207 * opt.ads (Warn_On_Suspicious_Contract): New warning flag.
1208 * sem_ch3.adb (Analyze_Declarations): Call checker for suspicious
1209 contracts.
1210 * sem_ch6.adb, sem_ch6.ads (Check_Subprogram_Contract): New
1211 procedure looking for suspicious postconditions.
1212 * usage.adb (Usage): New options -gnatw.t and -gnatw.T.
1213 * warnsw.adb (Set_Dot_Warning_Switch): Take into account new
1214 options -gnatw.t and -gnatw.T.
1215
1216 2011-09-02 Pascal Obry <obry@adacore.com>
1217
1218 * prj.adb: Minor code refactoring. Move check for null project in
1219 Project_Changed.
1220 * projects.texi: Fix minor typos.
1221
1222 2011-09-02 Ed Schonberg <schonberg@adacore.com>
1223
1224 * sem_ch5.adb (Analyze_Iterator_Specification): If the domain
1225 of iteration is an expression, its value must be captured in a
1226 renaming declaration, so that modification of the elements is
1227 propagated to the original container.
1228
1229 2011-09-02 Pascal Obry <obry@adacore.com>
1230
1231 * prj-proc.adb, prj.adb, makeutl.adb, makeutl.ads, prj-dect.adb,
1232 prj-nmsc.adb, prj-util.adb, prj-conf.adb, prj-env.adb,
1233 prj-tree.adb: Minor reformatting and style fixes.
1234
1235 2011-09-02 Robert Dewar <dewar@adacore.com>
1236
1237 * s-rident.ads: Add new restriction No_Implicit_Aliasing
1238 * sem_attr.adb: (Analyze_Access_Attribute): Deal with
1239 No_Implicit_Aliasing
1240 (Analyze_Attribute, case Address): ditto
1241 (Analyze_Attribute, case Unrestricted_Access): ditto
1242 * sem_util.ads, sem_util.adb: (Is_Aliased_View): Handle
1243 No_Implicit_Aliasing restriction.
1244 * gnat_rm.texi: Add documentation for No_Implicit_Aliasing
1245
1246 2011-09-02 Ed Schonberg <schonberg@adacore.com>
1247
1248 * exp_util.adb: (Possible_Bit_Aligned_Object): If the object
1249 is an unchecked conversion, apply test to its expression.
1250
1251 2011-09-02 Javier Miranda <miranda@adacore.com>
1252
1253 * sem_ch3.adb (Check_Abstract_Overriding): When
1254 traversing the chain of aliased subprograms avoid reporting a
1255 redundant error on the current entity.
1256
1257 2011-09-02 Sergey Rybin <rybin@adacore.com>
1258
1259 * gnat_ugn.texi: Minor clean up.
1260
1261 2011-09-02 Bob Duff <duff@adacore.com>
1262
1263 * s-htable.adb (Set_If_Not_Present): Use renaming
1264 instead of ":=", because the type Key is limited in the generic (even
1265 if not in the instances).
1266
1267 2011-09-02 Robert Dewar <dewar@adacore.com>
1268
1269 * exp_util.adb, sem_ch10.adb, sem_attr.adb, s-htable.adb,
1270 g-comlin.adb, g-comlin.ads, lib-xref-alfa.adb, lib-xref.adb: Minor
1271 reformatting.
1272
1273 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
1274
1275 * sem_ch3.adb: (Set_Anonymous_Type): Associate the itype of an
1276 inherited component with the enclosing derived type. Code reformatting.
1277
1278 2011-09-02 Gary Dismukes <dismukes@adacore.com>
1279
1280 * checks.adb: (Determine_Range): Add test of OK1 to prevent the early
1281 return done when overflow checks are enabled, since comparisons against
1282 Lor and Hir should not be done when OK1 is False.
1283
1284 2011-09-02 Gary Dismukes <dismukes@adacore.com>
1285
1286 * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
1287 Add new formal Master_Exp. When present, add that expression to the
1288 call as an extra actual.
1289 (Make_Build_In_Place_Call_In_Object_Declaration): Add variable
1290 Fmaster_Actual and in the case of a BIP call initializing a return
1291 object of an enclosing BIP function set it to a
1292 new reference to the implicit finalization master
1293 formal of the enclosing function. Fmaster_Actual is
1294 then passed to the new formal Master_Exp on the call to
1295 Add_Finalization_Master_Actual_To_Build_ In_Place_Call. Move
1296 initializations of Enclosing_Func to its declaration.
1297
1298 2011-09-02 Thomas Quinot <quinot@adacore.com>
1299
1300 * csets.ads: Minor reformatting
1301
1302 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
1303
1304 * exp_aggr.adb: (Get_Constraint_Association): Add code to retrieve
1305 the full view of a private type coming from an instantiation.
1306 * exp_ch4.adb: (Current_Anonymous_Master): Reimplement the search
1307 loop to iterate over the declarations rather than use the
1308 First_Entity / Next_Entity scheme.
1309
1310 2011-09-02 Ed Schonberg <schonberg@adacore.com>
1311
1312 * sem_attr.adb: (Analyze_Attribute, case 'Range): when expanding
1313 X'range (N) into X'First (N) .. X'Last (N), do not share the
1314 dimension indicator N, if present. Even though it is a static
1315 constant, its source location may be modified when printing
1316 expanded code under -gnatDL, and node sharing will lead to chaos
1317 in Sprint on large files, by generating a sloc value that does
1318 not correspond to any source file.
1319
1320 2011-09-02 Bob Duff <duff@adacore.com>
1321
1322 * einfo.adb: (Has_Xref_Entry): Do not call
1323 Implementation_Base_Type. Lib.Xref has been
1324 rewritten to avoid the need for it, and it was costly.
1325 * s-htable.ads,s-htable.adb: (Present,Set_If_Not_Present): New
1326 functions in support of efficient xref.
1327 * lib-xref-alfa.adb: Misc changes related to Key component of
1328 type Xref_Entry.
1329 * lib-xref.adb: (Add_Entry,etc): Speed improvement.
1330 (New_Entry): Call Implementation_Base_Type, because Has_Xref_Entry
1331 no longer does. This is the one place where it is needed.
1332
1333 2011-09-02 Johannes Kanig <kanig@adacore.com>
1334
1335 * g-comlin.adb (Getopt): New optional argument Concatenate to have
1336 similar interface as the other Getopt function.
1337
1338 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
1339
1340 * exp_ch4.adb: (Expand_Allocator_Expression): Do not generate
1341 a call to Set_Finalize_Address if there is no allocator available.
1342 * exp_util.adb: (Build_Allocate_Deallocate_Proc): Account for
1343 a case of allocator expansion where the allocator is not expanded but
1344 needs a custom allocate routine. Code reformatting.
1345 (Is_Finalizable_Transient): Remove local variables Has_Rens and
1346 Ren_Obj. Code reformatting.
1347 (Is_Renamed): Renamed to Is_Aliased. Add code to detect aliasing
1348 through the use of 'reference.
1349 * sem_ch4.adb: (Analyze_Allocator): Detect allocators generated
1350 as part of build-in-place expansion. They are intentionally marked as
1351 coming from source, but their parents are not.
1352
1353 2011-09-02 Ed Schonberg <schonberg@adacore.com>
1354
1355 * sem_ch10.adb (Analyze_With_Clause): If the library unit
1356 is the generated subprogram declaration for a child unit body
1357 that acts as spec, use the original body in the with_clause,
1358 to prevent binding errors.
1359
1360 2011-09-02 Vincent Celier <celier@adacore.com>
1361
1362 * gnat_ugn.texi: Adapt documentation of -gnateInnn to new VMS
1363 qualifier /MULTI_UNIT_INDEX=
1364
1365 2011-09-02 Johannes Kanig <kanig@adacore.com>
1366
1367 * g-comlin.adb (Getopt): Return when switch is dealt with automatically,
1368 instead of calling the callback function
1369
1370 2011-09-02 Robert Dewar <dewar@adacore.com>
1371
1372 * prj-proc.adb, prj.ads, sem_util.adb, s-taprop-linux.adb,
1373 prj-nmsc.adb, prj-util.ads, prj-env.adb: Minor reformatting.
1374
1375 2011-09-02 Vincent Celier <celier@adacore.com>
1376
1377 * prj-nmsc.adb: (Find_Sources): When the list of sources is
1378 explicitly declared in an extending project, do not warn if a source
1379 for an inherited naming exception is not found.
1380
1381 2011-09-02 Gary Dismukes <dismukes@adacore.com>
1382
1383 * exp_ch6.adb: (Is_Build_In_Place_Function_Call): Return False if
1384 expansion is inactive.
1385
1386 2011-09-02 Ed Schonberg <schonberg@adacore.com>
1387
1388 * sem_util.adb (Note_Possible_Modification): If the entity
1389 being modified is the renaming generated for an Ada2012 iterator
1390 element, the enclosing container or array is modified as well.
1391
1392 2011-09-02 Jose Ruiz <ruiz@adacore.com>
1393
1394 * s-taprop-linux.adb (Initialize_Lock, Initialize_TCB,
1395 Initialize): Define and initialize the
1396 mutex attributes and condition variable attributes locally.
1397
1398 2011-09-02 Vincent Celier <celier@adacore.com>
1399
1400 * prj-nmsc.adb (Check_File): Mark as Locally_Removed a naming
1401 exception replaced in an extending project.
1402 (Check_Object): No error when the other source is locally removed.
1403
1404 2011-09-02 Yannick Moy <moy@adacore.com>
1405
1406 * exp_ch6.adb (Is_Build_In_Place_Function_Call): in Alfa mode, allow
1407 unresolved calls.
1408
1409 2011-08-31 Arnaud Charlet <charlet@adacore.com>
1410
1411 * gcc-interface/Makefile.in: Clean up handling of x86 and x86-64
1412 run-time files.
1413 * gcc-interface/Make-lang.in: Update dependencies.
1414
1415 2011-09-01 Robert Dewar <dewar@adacore.com>
1416
1417 * sem_ch3.adb, s-taprop-linux.adb, gnatls.adb: Minor reformatting.
1418
1419 2011-09-01 Jose Ruiz <ruiz@adacore.com>
1420
1421 * adaint.h (__gnat_cpu_free): Fix the name of this profile.
1422 * adaint.c (__gnat_cpu_alloc, __gnat_cpu_alloc_size, __gnat_cpu_free,
1423 __gnat_cpu_zero, __gnat_cpu_set): Create version of these subprograms
1424 specific for systems where their glibc version does not define the
1425 routines to handle dynamically allocated CPU sets.
1426
1427 2011-09-01 Vincent Celier <celier@adacore.com>
1428
1429 * prj-proc.adb, prj.ads, prj-nmsc.adb, prj-util.adb, prj-util.ads,
1430 prj-env.adb: Implement inheritance of naming exceptions in extending
1431 projects.
1432
1433 2011-09-01 Romain Berrendonner <berrendo@adacore.com>
1434
1435 * gnatls.adb: Display simple message instead of content of
1436 gnatlic.adl.
1437
1438 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
1439
1440 * sem_ch3.adb: (Build_Derived_Record_Type) Remove the kludgy update of
1441 access discriminant and anonymous access component scopes.
1442 (Inherit_Component): Reuse the itype of an access discriminant
1443 or anonymous access component by copying it in order to set the proper
1444 scope. This is done only when the parent and the derived type
1445 are in different scopes.
1446 (Set_Anonymous_Etype): New routine.
1447
1448 2011-09-01 Robert Dewar <dewar@adacore.com>
1449
1450 * a-convec.adb: Minor reformatting throughout.
1451
1452 2011-09-01 Jose Ruiz <ruiz@adacore.com>
1453
1454 * adaint.c, adaint.h (__gnat_cpu_alloc, __gnat_cpu_alloc_size,
1455 __gnat_cpu_set_free): Create these wrappers around the CPU_ALLOC,
1456 CPU_ALLOC_SIZE and CPU_FREE linux macros.
1457 (__gnat_cpu_zero, __gnat_cpu_set): Use the CPU_ZERO_S and
1458 CPU_SET_S respectively because we are now using dynamically allocated
1459 CPU sets which are more portable across different glibc versions.
1460 * s-osinte-linux.ads (cpu_set_t_ptr, CPU_ALLOC, CPU_ALLOC_SIZE,
1461 CPU_FREE): Add this type and subprograms to be able to create cpu_set_t
1462 masks dynamically according to the number of processors in the target
1463 platform.
1464 (CPU_ZERO, CPU_SET): They are now mapped to the CPU_ZERO_S and CPU_SET_S
1465 respectively, so we need to pass the size of the masks as
1466 parameters.
1467 * s-taprop-linux.adb (Create_Task, Set_Task_Affinity): Use dynamically
1468 created cpu_set_t masks
1469 with the number of processors available in the target platform,
1470 instead of static bit arrays. It enhances portability because
1471 it uses the information from the target platform.
1472 * sem_ch8.adb: (Attribute_Renaming): When checking whether we
1473 are using a restricted run-time library, use the flag
1474 Configurable_Run_Time_Mode instead of Restricted_Profile.
1475
1476 2011-09-01 Vincent Celier <celier@adacore.com>
1477
1478 * ug_words: Add /MULTI_UNIT_INDEX= -> -gnateI
1479 * vms_data.ads: Add new VMS qualifier equivalent for -gnateInnn
1480
1481 2011-09-01 Nicolas Roche <roche@adacore.com>
1482
1483 * adaint.c (__gnat_tmp_name): Don't use tmpnam function from the system
1484 on VxWorks in kernel mode.
1485
1486 2011-09-01 Jose Ruiz <ruiz@adacore.com>
1487
1488 * s-taprop-linux.adb (Create_Task, Set_Task_Affinity): Use the linux
1489 macros for handling CPU sets (CPU_ZERO, CPU_SET) instead of modifying
1490 directly the bit array.
1491 * s-osinte-linux.ads (CPU_ZERO, CPU_SET): Import these wrappers around
1492 the linux macros with the same name.
1493 * adaint.h, adaint.c (__gnat_cpu_zero, __gnat_cpu_set): Create these
1494 wrappers around the CPU_ZERO and CPU_SET linux macros.
1495
1496 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
1497
1498 * exp_ch7.adb (Find_Insertion_List): Removed.
1499 (Process_Transient_Objects): Insert the declarations of the hook
1500 access type and the hook object before the associated transient object.
1501
1502 2011-09-01 Jose Ruiz <ruiz@adacore.com>
1503
1504 * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
1505 package System.Aux_Dec when using restricted run-time libraries which
1506 do not have this package.
1507
1508 2011-09-01 Tristan Gingold <gingold@adacore.com>
1509
1510 * s-vaflop-vms-alpha.adb: Remove pragma optimize, useless.
1511
1512 2011-09-01 Bob Duff <duff@adacore.com>
1513
1514 * sem_attr.adb (Analyze_Access_Attribute): Do not call
1515 Kill_Current_Values for P'Unrestricted_Access, where P is library level
1516
1517 2011-09-01 Thomas Quinot <quinot@adacore.com>
1518
1519 * exp_ch5.adb: Minor reformatting
1520 * gnat_ugn.texi: Fix minor typos.
1521 * gcc-interface/Make-lang.in: Update dependencies.
1522
1523 2011-09-01 Robert Dewar <dewar@adacore.com>
1524
1525 * inline.adb, sem_aggr.adb: Minor reformatting.
1526
1527 2011-09-01 Ed Schonberg <schonberg@adacore.com>
1528
1529 * a-convec.adb: Proper handling of cursors for Ada2012 iterators.
1530
1531 2011-09-01 Robert Dewar <dewar@adacore.com>
1532
1533 * prj-proc.adb, exp_ch6.adb, prj-env.adb: Minor reformatting.
1534
1535 2011-09-01 Bob Duff <duff@adacore.com>
1536
1537 * sem_aggr.adb (Resolve_Aggregate): Need to treat "in instance
1538 body" the same as "in inlined body", because visibility shouldn't
1539 apply there.
1540
1541 2011-09-01 Eric Botcazou <ebotcazou@adacore.com>
1542
1543 * inline.adb (Add_Inlined_Body): Refine previous change.
1544
1545 2011-09-01 Gary Dismukes <dismukes@adacore.com>
1546
1547 * exp_ch6.ads (Needs_BIP_Alloc_Form): New utility function.
1548 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
1549 Test for case where call
1550 initializes an object of a return statement before testing for
1551 a constrained call, to ensure that all such cases get handled
1552 by simply passing on the caller's parameters. Also, in that
1553 case call Needs_BIP_Alloc_Form to determine whether to pass on
1554 the BIP_Alloc_Form parameter of the enclosing function rather
1555 than testing Is_Constrained. Add similar tests for the return
1556 of a BIP call to later processing to ensure consistent handling.
1557 (Needs_BIP_Alloc_Form): New utility function.
1558 * sem_ch6.adb: (Create_Extra_Formals): Replace test for adding
1559 a BIP_Alloc_Form formal with call to new utility function
1560 Needs_BIP_Alloc_Form.
1561
1562 2011-09-01 Pascal Obry <obry@adacore.com>
1563
1564 * prj-part.adb: Minor reformatting.
1565
1566 2011-09-01 Vincent Celier <celier@adacore.com>
1567
1568 * prj-env.adb (Create_Mapping_File.Process): Encode the upper
1569 half character in the unit name.
1570
1571 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
1572
1573 * exp_ch4.adb: Minor code and comment reformatting.
1574
1575 2011-09-01 Thomas Quinot <quinot@adacore.com>
1576
1577 * exp_ch6.adb (Expand_Inlined_Call): Remove redundant tests
1578 for Is_Limited_Type and Is_Tagged_Type in condition checking
1579 for by-reference type.
1580 * inline.adb (Add_Inlined_Body): Only exclude init_procs. Other
1581 subprograms may have a completion because of a previous
1582 Inline_Always clause, but the enclosing package must be marked
1583 inlined for the subprogram body to become visible to the backend.
1584
1585 2011-09-01 Thomas Quinot <quinot@adacore.com>
1586
1587 * sem_aux.adb, exp_ch4.adb: Minor reformatting
1588
1589 2011-09-01 Pascal Obry <obry@adacore.com>
1590
1591 * prj-proc.adb, prj.ads, sinput-p.adb: Minor reformatting.
1592
1593 2011-09-01 Ed Schonberg <schonberg@adacore.com>
1594
1595 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Generate references to
1596 the formals of a subprogram stub that acts as a spec.
1597
1598 2011-09-01 Ed Schonberg <schonberg@adacore.com>
1599
1600 * exp_ch6.adb (Expand_Inlined_Call): If an actual is a by_reference
1601 type, declare a renaming for it, not an object declaration.
1602
1603 2011-09-01 Yannick Moy <moy@adacore.com>
1604
1605 * ali-util.adb, ali-util.ads (Read_Withed_ALIs): Add parameter
1606 Ignore_Errors to ignore failures to read ALI files when True.
1607
1608 2011-09-01 Javier Miranda <miranda@adacore.com>
1609
1610 * exp_ch3.adb (Expand_N_Object_Declaration): Handle non-default
1611 constructor calls associated with non-tagged record types.
1612
1613 2011-09-01 Robert Dewar <dewar@adacore.com>
1614
1615 * g-socthi-vms.adb: Minor reformatting.
1616
1617 2011-09-01 Nicolas Roche <roche@adacore.com>
1618
1619 * sysdep.c: Don't use macro functions for stdio functions on VxWorks
1620 in order to avoid impact of imcompatible changes.
1621 * cstreams.c: Likewise
1622 * cio.c: Likewise
1623 * aux-io.c: Likewise
1624
1625 2011-09-01 Yannick Moy <moy@adacore.com>
1626
1627 * lib-writ.adb (Write_With_Lines): Always output complete information
1628 on "with" line in Alfa mode, as this is required by formal verification
1629 back-end.
1630
1631 2011-09-01 Tristan Gingold <gingold@adacore.com>
1632
1633 * g-socthi-vms.adb: Add comments.
1634
1635 2011-09-01 Pascal Obry <obry@adacore.com>
1636
1637 * prj.ads: Minor reformatting.
1638
1639 2011-09-01 Vincent Celier <celier@adacore.com>
1640
1641 * prj-env.adb (Create_Config_Pragmas_File.Check): Put all naming
1642 exceptions in the config pragmas file.
1643
1644 2011-09-01 Tristan Gingold <gingold@adacore.com>
1645
1646 * gnat_ugn.texi: Document GNAT_STACK_SIZE on IVMS.
1647
1648 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
1649
1650 * exp_ch7.adb (Find_Insertion_List): New routine.
1651 (Process_Transient_Objects): Add code to handle the abnormal
1652 finalization of a controlled transient associated with a subprogram
1653 call. Since transients are cleaned up right after the associated
1654 context, an exception raised during a subprogram call may bypass the
1655 finalization code.
1656
1657 2011-09-01 Robert Dewar <dewar@adacore.com>
1658
1659 * exp_ch6.adb (Expand_Call): Check actual for aliased parameter is
1660 aliased.
1661
1662 2011-09-01 Robert Dewar <dewar@adacore.com>
1663
1664 * exp_ch4.adb, a-exexda.adb: Minor reformatting.
1665
1666 2011-09-01 Robert Dewar <dewar@adacore.com>
1667
1668 * s-taskin.ads, s-tassta.adb, sem_ch13.adb: Minor reformatting.
1669
1670 2011-09-01 Thomas Quinot <quinot@adacore.com>
1671
1672 * Makefile.rtl: Move s-oscons.o from GNATRTL_TASKING_OBJS to
1673 GNATRTL_NONTASKING_OBJS.
1674
1675 2011-09-01 Robert Dewar <dewar@adacore.com>
1676
1677 * einfo.ads (Is_Aliased): Fix existing documentation and add note on
1678 possibility of this flag being set for formals in Ada 2012 mode.
1679 * par-ch6.adb (P_Formal_Part): Handle aliased for parameters for Ada
1680 2012.
1681 * sem_ch6.adb (Process_Formals): Handle aliased parameters in Ada 2012
1682 mode.
1683 * sinfo.adb (Aliased_Present): Allowed in N_Parameter_Specification for
1684 Ada 2012.
1685 * sinfo.ads (Aliased_Present): Allowed in N_Parameter_Specification for
1686 Ada 2012.
1687
1688 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
1689
1690 * exp_ch4.adb (Find_Insertion_Node): New routine. Determines the proper
1691 insertion node in a tree of nested Expression_With_Actions nodes.
1692 (Process_Transient_Object): In the case where a complex if statement
1693 has been converted into nested Expression_With_Actions nodes, the
1694 "hook" object and the associated access type must be inserted before
1695 the top most Expression_With_Actions.
1696
1697 2011-09-01 Robert Dewar <dewar@adacore.com>
1698
1699 * a-cbprqu.adb, a-cbprqu.ads, a-cuprqu.adb, a-cuprqu.ads,
1700 a-cbsyqu.adb, a-cbsyqu.ads: Minor reformatting.
1701
1702 2011-09-01 Ed Schonberg <schonberg@adacore.com>
1703
1704 * sem_attr.adb: Conditionalize aliasing predicates to Ada2012.
1705
1706 2011-09-01 Jose Ruiz <ruiz@adacore.com>
1707
1708 * aspects.ads (Aspect_Id, Aspect_Argument, Aspect_Names): Add the CPU
1709 aspect.
1710 * aspects.adb (Canonical_Aspect): Add entry for the CPU aspect.
1711 * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze the CPU aspect
1712 in a similar way as we do for the Priority or Dispatching_Domain aspect.
1713 * s-mudido-affinity.adb (Dispatching_Domain_Tasks,
1714 Dispatching_Domains_Frozen): Move this local data to package
1715 System.Tasking because with the CPU aspect we need to have access
1716 to this data when creating the task in System.Tasking.Stages.Create_Task
1717 * s-taskin.ads (Dispatching_Domain_Tasks, Dispatching_Domains_Frozen):
1718 Move these variables from the body of
1719 System.Multiprocessors.Dispatching_Domains because with the CPU aspect
1720 we need to have access to this data when creating the task in
1721 System.Tasking.Stages.Create_Task.
1722 * s-taskin.adb (Initialize): Signal the allocation of the environment
1723 task to a CPU, if any, so that we know whether the CPU can be
1724 transferred to a different dispatching domain.
1725 * s-tassta.adb (Create_Task): Check whether the CPU to which this task
1726 is being allocated belongs to the dispatching domain where the task
1727 lives. Signal the allocation of the task to a CPU, if any, so that we
1728 know whether the CPU can be transferred to a different dispatching
1729 domain.
1730
1731 2011-09-01 Ed Schonberg <schonberg@adacore.com>
1732
1733 * exp_attr.adb, sem_attr.adb, snames.ads-tmpl: Implementation of
1734 attributes Same_Storage and Overlaps_Storage.
1735
1736 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
1737
1738 * exp_strm.adb: Remove with and use clause for Opt.
1739 (Build_Array_Input_Function): Remove the version-dependent generation
1740 of the return statement. The Ada 2005 tree is now the default.
1741
1742 2011-09-01 Yannick Moy <moy@adacore.com>
1743
1744 * put_alfa.adb: Unconditionnally write files in Alfa section, so that
1745 it is never empty when compiling in Alfa mode.
1746
1747 2011-09-01 Robert Dewar <dewar@adacore.com>
1748
1749 * sem_aggr.adb, sem_ch3.adb, a-direct.adb, s-taprop-vxworks.adb,
1750 comperr.adb, exp_ch9.adb, exp_pakd.adb, sem_ch12.adb, freeze.adb,
1751 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
1752 gnat1drv.adb, a-rbtgbo.adb, exp_dist.adb: Minor reformatting
1753
1754 2011-09-01 Matthew Heaney <heaney@adacore.com>
1755
1756 * Makefile.rtl, impunit.adb: Add a-csquin.ads, a-cusyqu.ad[sb],
1757 a-cuprqu.ad[sb], a-cbsyqu.ad[sb], a-cbprqu.ad[sb]
1758 * a-csquin.ads: New Ada 2012 unit that specifies the queue interface
1759 * a-cusyqu.ads, a-cusyqu.adb: New Ada 2012 unit that specifies the
1760 unbounded queue container.
1761 * a-cbsyqu.ads, a-cbsyqu.adb: New Ada 2012 unit that specifies the
1762 bounded queue container.
1763 * a-cuprqu.ads, a-cuprqu.adb: New Ada 2012 unit that specifies the
1764 unbounded priority queue container.
1765 * a-cbprqu.ads, a-cbprqu.adb: New Ada 2012 unit that specifies the
1766 bounded priority queue container.
1767
1768 2011-08-31 Pascal Obry <obry@adacore.com>
1769
1770 * a-direct.adb: Do not try to create an UNC path on Windows.
1771 (Create_Path): Skip leading computer name in UNC path if any.
1772
1773 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
1774
1775 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): Remove the
1776 version-dependent generation of the return statement. The Ada 2005 tree
1777 is now the default.
1778
1779 2011-08-31 Thomas Quinot <quinot@adacore.com>
1780
1781 * rtsfind.ads, exp_dist.adb (Find_Numeric_Representation): Predefined
1782 types Stream_Element_Offset and Storage_Offset have a different native
1783 type depending on whether the platform is 32 or 64 bits. When
1784 exchanging them, always convert to 64 bits.
1785
1786 2011-08-31 Yannick Moy <moy@adacore.com>
1787
1788 * debug.adb: Reserve debug option -gnatd.E for passing gnatprove option
1789 --force-alfa to gnat2why.
1790
1791 2011-08-31 Ed Schonberg <schonberg@adacore.com>
1792
1793 * sem_ch12.adb (Save_References): If the node has aspects, save
1794 references within the corresponding expressions in a separate step,
1795 because the aspects are not directly in the tree for the declaration
1796 to which they belong.
1797
1798 2011-08-31 Arnaud Charlet <charlet@adacore.com>
1799
1800 * freeze.adb (Freeze_Record_Type): Omit test on variable size component
1801 in CodePeer mode, since representation clauses are partially ignored.
1802 * gcc-interface/Make-lang.in: Update dependencies.
1803
1804 2011-08-31 Jose Ruiz <ruiz@adacore.com>
1805
1806 * s-taprop-vxworks.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
1807 s-taprop-solaris.adb (Create_Task): Not_A_Specific_CPU can be assigned
1808 to any dispatching domain.
1809
1810 2011-08-31 Thomas Quinot <quinot@adacore.com>
1811
1812 * exp_ch4.adb: Minor reformatting.
1813
1814 2011-08-31 Bob Duff <duff@adacore.com>
1815
1816 * sem_ch6.adb (Get_Generic_Parent_Type): Don't query Subtype_Indication
1817 on nodes for which it is not defined.
1818 (Is_Non_Overriding_Operation): Exit the loop when we find a generic
1819 parent type.
1820
1821 2011-08-31 Bob Duff <duff@adacore.com>
1822
1823 * sem_ch3.adb (Process_Full_View): Disable legality check if
1824 In_Instance, to avoid spurious errors.
1825 * sem_ch12.adb (Validate_Derived_Type_Instance): Disable legality check
1826 if In_Instance, to avoid spurious errors.
1827
1828 2011-08-31 Pascal Obry <obry@adacore.com>
1829
1830 * a-direct.adb: Use Dir_Seps everywhere to properly handle all
1831 directory speparators.
1832 (Compose): Use Dir_Seps to handle both forms.
1833 (Create_Path): Use Dir_Seps instead of explicit check, no semantic
1834 changes.
1835 (Extension): Use Dir_Seps to handle both forms.
1836
1837 2011-08-31 Pascal Obry <obry@adacore.com>
1838
1839 * prj-conf.adb: Minor reformatting.
1840
1841 2011-08-31 Jose Ruiz <ruiz@adacore.com>
1842
1843 * aspects.ads (Aspect_Id, Aspect_Argument, Aspect_Names): Add the
1844 dispatching domain aspect.
1845 * aspects.adb (Canonical_Aspect): Add entry for the dispatching domain
1846 aspect.
1847 * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze the
1848 Dispatching_Domain aspect in a similar way as we do for the Priority
1849 aspect.
1850 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add the
1851 Dispatching_Domain component if a Dispatching_Domain pragma or aspect
1852 is present.
1853 (Make_Task_Create_Call): Add the Dispatching_Domain when creating a task
1854 * par-prag.adb (Prag): Add Pragma_Dispatching_Domain as a known pragma.
1855 * sem_prag.adb (Analyze_Pragma): Check the correctness of a pragma
1856 Dispatching_Domain and add it to the task definition.
1857 (Sig_Flags): Add Pragma_Dispatching_Domain.
1858 * rtsfind.ads, rtsfind.adb (RTU_Id, RE_Id, Get_Unit_Name): Add the
1859 support to find the types Dispatching_Domain and
1860 Dispatching_Domain_Access.
1861 * sinfo.ads, sinfo.adb (Has_Pragma_Dispatching_Domain,
1862 Set_Has_Pragma_Dispatching_Domain): Add these subprograms to set and
1863 query the availability of a pragma Dispatching_Domain.
1864 * snames.ads-tmpl (Name_uDispatching_Domain): Add this name required by
1865 the expander to pass the Dispatching_Domain when creating a task.
1866 (Name_Dispatching_Domain): Add this new name for a pragma.
1867 (Pragma_Id): Add the new Pragma_Dispatching_Domain.
1868 * s-tassta.ads, s-tassta.adb (Create_Task): Set the domain to which the
1869 task has been allocated at creation time.
1870 * s-tarest.adb (Create_Restricted_Task): The dispatching domain using
1871 Ravenscar is always null.
1872 * s-taskin.ads, s-taskin.adb (Initialize_ATCB): Set the domain to which
1873 the task has been allocated at creation time.
1874 * s-tporft.adb (Register_Foreign_Thread): A foreign task will not have
1875 a specific dispatching domain.
1876 * s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-vxworks.adb,
1877 s-taprop-mingw.adb (Create_Task): Check whether both Dispatching_Domain
1878 and CPU are specified for the task, and the CPU value is not contained
1879 within the range of processors for the domain.
1880
1881 2011-08-31 Vincent Celier <celier@adacore.com>
1882
1883 * make.adb (Original_Gcc) : New constant String_Access.
1884 (Gnatmake): For VM targets, do not use VM version of the compiler if
1885 --GCC= has been specified.
1886
1887 2011-08-31 Thomas Quinot <quinot@adacore.com>
1888
1889 * sem_ch5.adb: Minor reformatting.
1890
1891 2011-08-31 Ed Schonberg <schonberg@adacore.com>
1892
1893 * exp_pakd.adb (Convert_To_PAT_Type): If prefix is a function call, do
1894 not reanalyze it.
1895
1896 2011-08-31 Bob Duff <duff@adacore.com>
1897
1898 * exp_ch4.adb (Expand_N_Selected_Component): Use the full type, in case
1899 the access type is private; we don't care about privacy in expansion.
1900
1901 2011-08-31 Ed Schonberg <schonberg@adacore.com>
1902
1903 * sem_aggr.adb (Resolve_Aggregate): In an instance, ignore aggregate
1904 subcomponents tnat may be limited, because they originate in view
1905 conflicts. If the original aggregate is legal and the actuals are
1906 legal, the aggregate itself is legal.
1907
1908 2011-08-31 Matthew Heaney <heaney@adacore.com>
1909
1910 * a-rbtgbo.adb (Clear_Tree): Assert representation invariant for lock
1911 status.
1912
1913 2011-08-31 Ed Schonberg <schonberg@adacore.com>
1914
1915 * sem_ch5.adb: Set kind of loop parameter properly, to preserve all
1916 errors in B tests.
1917
1918 2011-08-31 Jose Ruiz <ruiz@adacore.com>
1919
1920 * sem_ch13.adb (Analyze_Aspect_Specifications): For the Priority and
1921 Interrupt_Priority aspects, force the analysis of the aspect expression
1922 (when building the equivalent pragma). Otherwise, its analysis is done
1923 too late, after the task or protected object has been created.
1924 * sem_ch9.adb (Analyze_Single_Protected_Declaration,
1925 Analyze_Single_Task_Declaration): Remove the code to move the aspects
1926 to the object declaration because they are needed in the type
1927 declaration.
1928
1929 2011-08-31 Robert Dewar <dewar@adacore.com>
1930
1931 * exp_ch5.adb, exp_ch7.ads, sem_ch5.adb, put_scos.adb, s-rannum.adb,
1932 a-rbtgbo.adb, exp_intr.adb, a-cbdlli.adb, a-cbdlli.ads: Minor
1933 reformatting.
1934
1935 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
1936
1937 * exp_util.adb (Find_Protection_Type): Do not look for fields _object
1938 if the corresponding type is malformed due to restriction violations.
1939
1940 2011-08-31 Robert Dewar <dewar@adacore.com>
1941
1942 * s-ransee.ads, s-ransee.adb: Minor reformatting.
1943
1944 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
1945
1946 * exp_ch4.adb (Expand_N_Allocator): Correct faulty condition which
1947 would cause the generation of Set_Finalize_Address if the target is a
1948 VM and the designated type is not derived from [Limited_]Controlled.
1949
1950 2011-08-31 Arnaud Charlet <charlet@adacore.com>
1951
1952 * comperr.adb, comperr.ads, gnat1drv.adb (Delete_SCIL_Files): New
1953 subprogram.
1954 (Compiler_Abort, Gnat1drv): Call Delete_SCIL_Files in codepeer mode in
1955 case of a compilation error.
1956
1957 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
1958
1959 * init.c (__gnat_error_handler): Standardize the stack overflow or
1960 erroneous memory access message.
1961 * seh_init.c (__gnat_SEH_error_handler): Standardize the stack overflow
1962 or erroneous memory access message.
1963
1964 2011-08-31 Robert Dewar <dewar@adacore.com>
1965
1966 * sem_ch4.adb: Minor reformatting.
1967 * sem_ch6.adb: Minor code reorganization (use Ekind_In).
1968
1969 2011-08-31 Thomas Quinot <quinot@adacore.com>
1970
1971 * scos.ads: Minor documentation clarification.
1972 * put_scos.adb: Do not generate SCO unit header line for a unit that
1973 has no SCO lines.
1974
1975 2011-08-31 Robert Dewar <dewar@adacore.com>
1976
1977 * a-rbtgbo.adb, alfa_test.adb: Minor reformatting.
1978
1979 2011-08-31 Tristan Gingold <gingold@adacore.com>
1980
1981 * exp_ch7.ads, exp_ch7.adb (Finalization_Exception_Data): New type to
1982 hold variables between these following subprograms.
1983 (Build_Exception_Handler, Build_Object_Declarations,
1984 Build_Raise_Statement): Use the above type as parameter.
1985 Make the above adjustments.
1986 * exp_intr.adb (Expand_Unc_Deallocation): Adjust.
1987
1988 2011-08-31 Pascal Obry <obry@adacore.com>
1989
1990 * projects.texi: Minor reformatting.
1991
1992 2011-08-31 Tristan Gingold <gingold@adacore.com>
1993
1994 * s-ransee.ads, s-ransee.adb: Add system.random_seed unit.
1995 * s-rannum.adb (Reset): Use Get_Seed from s-ransee.
1996
1997 2011-08-31 Ed Schonberg <schonberg@adacore.com>
1998
1999 * exp_ch5.adb: Minor code cleanup.
2000 * sem_ch5.adb (Analyze_Iteration_Scheme): Set ekind of loop variable to
2001 prevent cascaded errors.
2002 (Analyze_Loop_Statement): In semantics-only mode, introduce loop
2003 variable of an iterator specification in current scope.
2004 * sem_ch6.adb (Analyze_Return_Statement, Find_what_It_Apples_To): Skip
2005 postconditions on the stack, as they contain no return statements.
2006
2007 2011-08-31 Yannick Moy <moy@adacore.com>
2008
2009 * exp_alfa.adb (Expand_Alfa_N_Package_Declaration,
2010 Expand_Alfa_N_Subprogram_Body): Remove useless procedures which simply
2011 call Qualify_Entity_Names.
2012 (Expand_Alfa): call Qualify_Entity_Names in more cases
2013 * lib-xref-alfa.adb: Take into account system package.
2014 * sem_prag.adb Take into account restrictions in Alfa mode, contrary to
2015 CodePeer mode in which we are interested in finding bugs even if
2016 compiler cannot compile source.
2017 * sem_util.adb, sem_util.ads (Unique_Entity): Take into account case of
2018 deferred constant.
2019
2020 2011-08-31 Gary Dismukes <dismukes@adacore.com>
2021
2022 * sem_ch3.adb (Constrain_Concurrent): Retrieve Base_Type of the subtype
2023 denoted by the subtype mark to ensure getting the concurrent type in
2024 the case where the subtype mark denotes a private subtype of a
2025 concurrent type (needed when using -gnatc).
2026 (Process_Subtype): For the processing specific to type kinds, case on
2027 the Base_Type kind of the Subtype_Mark_Id, to handle cases where the
2028 subtype denotes a private subtype whose base type is nonprivate (needed
2029 for subtypes of private fulfilled by task types when compiling with
2030 -gnatc).
2031
2032 2011-08-31 Gary Dismukes <dismukes@adacore.com>
2033
2034 * sem_disp.adb (Check_Dispatching_Operation): Bypass registration of
2035 late primitives that override interface operations when the full
2036 expander is not active, to avoid blowups in Register_Primitive when
2037 types don't have associated secondary dispatch tables.
2038
2039 2011-08-31 Yannick Moy <moy@adacore.com>
2040
2041 * alfa_test.adb: Code clean up.
2042
2043 2011-08-31 Marc Sango <sango@adacore.com>
2044
2045 * restrict.adb (Check_SPARK_Restriction): Change Comes_From_Source (N)
2046 by Comes_From_Source (Original_Node (N)) in order to treat also the
2047 nodes which have been rewritten.
2048 * sem_ch4.adb (Analyze_Explicit_Dereference, Analyze_Slice): Guard the
2049 explicit dereference and slice violation in spark mode on the nodes
2050 coming only from the source code.
2051
2052 2011-08-31 Robert Dewar <dewar@adacore.com>
2053
2054 * exp_ch5.adb, exp_alfa.ads, prj.ads, sem_attr.adb,
2055 lib-xref-alfa.adb: Minor reformatting.
2056
2057 2011-08-31 Matthew Heaney <heaney@adacore.com>
2058
2059 * a-crbltr.ads (Tree_Type): Default-initialize the Nodes component.
2060
2061 2011-08-31 Javier Miranda <miranda@adacore.com>
2062
2063 * sem_ch4.adb (Try_Object_Operation): Addition of one formal to search
2064 only for class-wide subprograms conflicting with entities of concurrent
2065 tagged types.
2066
2067 2011-08-31 Matthew Heaney <heaney@adacore.com>
2068
2069 * a-rbtgbo.adb (Generic_Allocate): Initialize pointer components of
2070 node to null value.
2071
2072 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
2073
2074 * sem_ch12.adb (Insert_Freeze_Node_For_Instance): Provide a more
2075 general description of the routine.
2076
2077 2011-08-31 Ed Schonberg <schonberg@adacore.com>
2078
2079 * a-cbdlli.adb, a-cbdlli.ads: Add iterator machinery to bounded
2080 doubly-linked lists.
2081
2082 2011-08-31 Gary Dismukes <dismukes@adacore.com>
2083
2084 * exp_ch5.adb (Expand_N_Assignment_Statement): When a discriminant
2085 check is needed for a left-hand side that is a dereference, and the
2086 base type is private without discriminants (whereas the full type does
2087 have discriminants), an extra retrieval of the underlying type may be
2088 needed in the case where the subtype is a record subtype whose base
2089 type is private. Update comments.
2090
2091 2011-08-31 Javier Miranda <miranda@adacore.com>
2092
2093 * sem_ch4.adb (Try_Object_Operation): When a dispatching primitive is
2094 found check if there is a class-wide subprogram covering the primitive.
2095
2096 2011-08-31 Yannick Moy <moy@adacore.com>
2097
2098 * sem_res.adb: Further cases where full expansion test is needed,
2099 rather than expansion test.
2100
2101 2011-08-31 Pascal Obry <obry@adacore.com>
2102
2103 * prj-attr.adb: Fix Source_File_Switches attribute kind (must be a list)
2104
2105 2011-08-31 Ed Schonberg <schonberg@adacore.com>
2106
2107 * exp_ch5.adb: Handle iterators over derived container types.
2108
2109 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
2110
2111 * einfo.ads, einfo.adb: Add new flag Has_Anonymous_Master.
2112 (Has_Anonymous_Master): New routine.
2113 (Set_Has_Anonymous_Master): New routine.
2114 (Write_Entity_Flags): Add an entry for Has_Anonymous_Master.
2115 * exp_ch4.adb: Add with and use clause for Sem_Ch8.
2116 (Current_Anonymous_Master): New routine.
2117 (Current_Unit_First_Declaration): Removed.
2118 (Current_Unit_Scope): Removed.
2119 (Expand_N_Allocator): Anonymous access-to-controlled types now chain
2120 their objects on a per-unit heterogeneous finalization master.
2121
2122 2011-08-31 Matthew Heaney <heaney@adacore.com>
2123
2124 * a-cbhama.adb, a-cbhase.adb (Insert): Check for zero-length buckets
2125 array.
2126
2127 2011-08-31 Jose Ruiz <ruiz@adacore.com>
2128
2129 * s-taprop-linux.adb (Create_Task): Avoid changing the affinity mask
2130 when not needed.
2131
2132 2011-08-31 Gary Dismukes <dismukes@adacore.com>
2133
2134 * sem_disp.adb (Propagate_Tag): Return without propagating in the case
2135 where the actual is an unexpanded call to 'Input.
2136
2137 2011-08-31 Yannick Moy <moy@adacore.com>
2138
2139 * sem_ch4.adb: Code clean up.
2140
2141 2011-08-31 Yannick Moy <moy@adacore.com>
2142
2143 * exp_alfa.adb, exp_alfa.ads: Minor correction of copyright notice.
2144
2145 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
2146
2147 * exp_ch7.adb (Build_Array_Deep_Procs): Do not generate Deep_Finalize
2148 and TSS primitive Finalize_Address if finalization is suppressed.
2149 (Build_Record_Deep_Procs): Do not generate Deep_Finalize and TSS
2150 primitive Finalize_Address if finalization is suppressed.
2151
2152 2011-08-31 Jose Ruiz <ruiz@adacore.com>
2153
2154 * s-mudido-affinity.adb, s-taprop-linux.adb, s-taprop-mingw.adb,
2155 s-taprop-solaris.adb, s-taprop-vxworks.adb (Set_Task_Affinity): Make
2156 sure that the underlying task has already been created before trying
2157 to change its affinity.
2158 (Set_CPU): Use the term processor instead of CPU, as we do in
2159 Assign_Task.
2160
2161 2011-08-31 Vincent Celier <celier@adacore.com>
2162
2163 * prj-attr.adb: New Compiler attribute Source_File_Switches.
2164 * prj-nmsc.adb (Process_Compiler): Process attribute
2165 Source_File_Switches.
2166 * prj.ads (Language_Config): New name list component
2167 Name_Source_File_Switches.
2168 * snames.ads-tmpl (Name_Source_File_Switches): New standard name.
2169
2170 2011-08-31 Ed Schonberg <schonberg@adacore.com>
2171
2172 * sem_attr.adb (Analyze_Attribute, case 'Old): If prefix may be a
2173 discriminated component of an actual, expand at once to prevent
2174 ouf-of-order references with generated subtypes.
2175
2176 2011-08-31 Yannick Moy <moy@adacore.com>
2177
2178 * lib-xref-alfa.adb (Add_Alfa_Xrefs): Do not take into account read
2179 reference to operator in Alfa xrefs.
2180
2181 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
2182
2183 * sem_ch12.adb (Freeze_Subprogram_Body): Add code to handle the case
2184 where the parent instance was frozen before the current instance due to
2185 the presence of a source body. Update calls to Insert_After_Last_Decl.
2186 (Insert_After_Last_Decl): Renamed to Insert_Freeze_Node_For_Instance.
2187 Update the comment which illustrates the purpose of the routine.
2188 Package instances are now frozen by source bodies which appear after
2189 the instance. This ensures that entities coming from within the
2190 instance are available for use in the said bodies.
2191 (Install_Body): Add code to handle the case where the parent instance
2192 was frozen before the current instance due to the presence of a source
2193 body. Update calls to Insert_After_Last_Decl.
2194
2195 2011-08-31 Jose Ruiz <ruiz@adacore.com>
2196
2197 * s-taprop-linux.adb (Set_Task_Affinity): Avoid the use of anonymous
2198 access types.
2199 * affinity.c (__gnat_set_affinity_mask): Declare index variable.
2200
2201 2011-08-31 Yannick Moy <moy@adacore.com>
2202
2203 * sem_ch8.adb (Analyze_Subprogram_Renaming): Refine expander test in
2204 full-expander test.
2205 * alfa.adb, alfa.ads, alfa_test.adb, ali.adb, debug.adb, errout.adb,
2206 errout.ads, erroutc.adb, expander.adb, exp_ch4.adb, exp_ch7.adb,
2207 freeze.adb, get_alfa.adb, get_alfa.ads, gnat1drv.adb, lib-writ.adb,
2208 lib-writ.ads, lib-xref.adb, lib-xref.ads, lib-xref-alfa.adb, opt.adb,
2209 opt.ads, put_alfa.adb, put_alfa.ads, restrict.adb, sem_ch12.adb,
2210 sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
2211 sem_prag.adb, sem_res.adb, sem_util.adb: Minor reformatting, renaming
2212 ALFA in Alfa (we dropped acronym).
2213 * einfo.adb (Primitive_Operations): Correctly return list of primitive
2214 operations in a case where it returned previously No_Elist.
2215
2216 2011-08-31 Robert Dewar <dewar@adacore.com>
2217
2218 * s-taprop-vxworks.adb, sem_ch5.adb, s-taprop-tru64.adb, exp_alfa.adb,
2219 s-taprop-vms.adb, bindgen.adb, s-mudido.adb, s-mudido.ads,
2220 sem_res.adb, expander.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
2221 s-taprop-solaris.adb, s-mudido-affinity.adb, vms_conv.adb,
2222 s-taprop-irix.adb, s-taprop.ads, s-taskin.adb, s-taskin.ads,
2223 s-taprop-hpux-dce.adb, a-chtgbo.adb, s-taprop-posix.adb: Minor
2224 reformatting.
2225
2226 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
2227
2228 * sem_ch12 (Check_Private_View): Revert previous change.
2229 * sem_res.adb (Conversion_Check): Do not emit the error message if the
2230 conversion is in a generic instance.
2231
2232 2011-08-31 Matthew Heaney <heaney@adacore.com>
2233
2234 * a-cbhase.adb (Symmetric_Difference): Dereference correct node array.
2235 * a-chtgbo.adb (Free): Allow 0 as index value.
2236
2237 2011-08-31 Matthew Heaney <heaney@adacore.com>
2238
2239 * a-cborma.adb (Insert): Add comment to explain why no element
2240 assignment.
2241
2242 2011-08-31 Gary Dismukes <dismukes@adacore.com>
2243
2244 * sem_util.adb (Find_Body_Discriminal): Test whether the scope of the
2245 spec discriminant is already a concurrent type, in which case just use
2246 it, otherwise fetch the Corresponding_Concurrent_Type as before.
2247
2248 2011-08-30 Eric Botcazou <ebotcazou@adacore.com>
2249
2250 * system-irix-n64.ads, system-linux-armeb.ads, system-linux-armel.ads,
2251 system-linux-mips.ads, system-linux-mipsel.ads,
2252 system-linux-mips64el.ads, system-linux-ppc64.ads,
2253 system-linux-sparcv9.ads, system-rtems.ads: Remove GCC_ZCX_Support.
2254
2255 2011-08-30 Eric Botcazou <ebotcazou@adacore.com>
2256
2257 * gcc-interface/ada-tree.h (TYPE_EXTRA_SUBTYPE_P): Add internal check.
2258 * gcc-interface/utils2.c (build_binary_op): Tighten condition.
2259 (build_unary_op): Likewise.
2260
2261 2011-08-30 Eric Botcazou <ebotcazou@adacore.com>
2262
2263 * raise-gcc.c: Do not include coretypes.h and tm.h.
2264 (setup_to_install): Remove test for compiler macro.
2265 * targext.c: Document use for the library.
2266 * gcc-interface/Makefile.in: Fix comment on the use of IN_GCC.
2267
2268 2011-08-30 Eric Botcazou <ebotcazou@adacore.com>
2269
2270 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not convert
2271 the expression to the nominal type if the latter is a record type with
2272 a variant part and the type of the former is a record type without one.
2273
2274 2011-08-30 Yannick Moy <moy@adacore.com>
2275
2276 * exp_aggr.adb, exp_ch11.adb, exp_prag.adb: Remove early exit during
2277 expansion in Alfa mode.
2278 * exp_ch6.adb, exp_ch6.ads (Expand_Actuals): Make subprogram public
2279 * exp_alfa.adb, exp_alfa.ads: New package defining light expansion for
2280 Alfa mode.
2281 * gnat1drv.adb (Adjust_Global_Switches): Update Comment.
2282 * sem_res.adb: Ditto.
2283 * gcc-interface/Make-lang.in: Update dependencies.
2284
2285 2011-08-30 Thomas Quinot <quinot@adacore.com>
2286
2287 * g-socket.ads: Minor documentation adjustment.
2288
2289 2011-08-30 Robert Dewar <dewar@adacore.com>
2290
2291 * exp_ch9.adb, s-tassta.adb, s-secsta.adb: Minor reformatting.
2292
2293 2011-08-30 Yannick Moy <moy@adacore.com>
2294
2295 * exp_ch6_light.adb, exp_ch6_light.ads, exp_attr_light.adb,
2296 exp_attr_light.ads, exp_ch7_light.adb, exp_ch7_light.ads,
2297 exp_light.adb, exp_light.ads, exp_prag.adb, expander.adb,
2298 gnat1drv.adb, exp_ch11.adb, exp_ch6.adb, exp_ch6.ads, exp_aggr.adb:
2299 Revert change which introduced files for "light"
2300 expansion, to be replaced by a single file for Alfa expansion.
2301
2302 2011-08-30 Robert Dewar <dewar@adacore.com>
2303
2304 * opt.ads, s-soflin.adb, exp_ch9.adb, sem_res.adb: Update comment.
2305 Minor code reorg/reformatting.
2306
2307 2011-08-30 Yannick Moy <moy@adacore.com>
2308
2309 * opt.adb, opt.ads (Full_Expander_Active): New function defines a
2310 common shorthand for (Expander_Active and not ALFA_Mode) that can be
2311 used for testing full expansion, that is active expansion not in the
2312 reduced mode for Alfa
2313 * exp_ch4.adb, exp_ch9.adb, exp_disp.adb, sem_ch10.adb, sem_ch12.adb,
2314 sem_ch6.adb, sem_ch9.adb, sem_res.adb: Use newly defined "flag" instead
2315 of the verbose (Expander_Active and not ALFA_Mode)
2316
2317 2011-08-30 Tristan Gingold <gingold@adacore.com>
2318
2319 * s-parame-vms-alpha.ads, s-parame-hpux.ads, s-tassta.adb,
2320 s-tarest.adb, s-parame-vms-ia64.ads, s-soflin.adb, s-secsta.adb,
2321 s-secsta.ads, s-parame.ads, s-parame-vxworks.ads, s-parame-ae653.ads:
2322 Renames Ratio to Percentage, and Sec_Stack_Ratio to Sec_Stack_Percentage
2323
2324 2011-08-30 Gary Dismukes <dismukes@adacore.com>
2325
2326 * sem_res.adb (Valid_Conversion): Revise test for implicit anonymous
2327 access conversions to check that the conversion is a rewritten node,
2328 rather than just having Comes_From_Source set to False, which wasn't
2329 sufficient.
2330
2331 2011-08-30 Robert Dewar <dewar@adacore.com>
2332
2333 * exp_ch9.adb, sem_ch9.adb, sem_ch6.adb, exp_disp.adb,
2334 g-socket.ads: Minor reformatting.
2335
2336 2011-08-30 Thomas Quinot <quinot@adacore.com>
2337
2338 * sem_util.adb: Minor reformatting.
2339
2340 2011-08-30 Tristan Gingold <gingold@adacore.com>
2341
2342 * raise-gcc.c: Never catch exception if _UA_FORCE_UNWIND flag is set,
2343 to be compliant with the ABI.
2344
2345 2011-08-30 Hristian Kirtchev <kirtchev@adacore.com>
2346
2347 * sem_ch12.adb (Check_Private_View): Exchange the private and full view
2348 of a designated type when the related access type is an actual in an
2349 instance. This ensures that the full view of designated type is
2350 available when inside the body of the instance.
2351
2352 2011-08-30 Ed Schonberg <schonberg@adacore.com>
2353
2354 * sem_util.adb (May_Be_Lvalue): To determine whether a reference may be
2355 in a position to be modified, a slice is treated like an indexed
2356 component.
2357
2358 2011-08-30 Thomas Quinot <quinot@adacore.com>
2359
2360 * s-oscons-tmplt.c, g-socket.ads: Adjust maximum allowed value for
2361 field tv_sec in struct timeval.
2362
2363 2011-08-30 Yannick Moy <moy@adacore.com>
2364
2365 * exp_ch9.adb, exp_disp.adb, sem_ch9.adb, sem_res.adb: Protect several
2366 blocks of code doing full expansion, previously only guarded by
2367 Expander_Active, by anding the test that ALFA_Mode is not set
2368
2369 2011-08-30 Ed Schonberg <schonberg@adacore.com>
2370
2371 * sem_ch6.adb (Analyze_Return_Type): If the return type is incomplete,
2372 add the function to the list of private dependents, for subsequent
2373 legality check on Taft amendment types.
2374 * sem_ch12.adb (Analyze_Formal_Incomplete_Type): Initialize
2375 Private_Dependents, as for other incomplete types.
2376 * sem_util.adb (Wrong_Type): Avoid cascaded errors when a
2377 Taft-amendment type is used as the return type of a function.
2378
2379 2011-08-30 Javier Miranda <miranda@adacore.com>
2380
2381 * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup: replace code
2382 which emits an error by a call to a new routine which report the error.
2383 * exp_ch9.adb (Build_Wrapper_Spec): Build the wrapper even if the
2384 entity does not cover an existing interface.
2385 * errout.ads, errout.adb (Error_Msg_PT): New routine. Used to factorize
2386 code.
2387 * sem_ch6.adb (Check_Conformance): Add specific error for wrappers of
2388 protected procedures or entries whose mode is not conformant.
2389 (Check_Synchronized_Overriding): Code cleanup: replace code which emits
2390 an error by a call to a new routine which report the error.
2391
2392 2011-08-30 Robert Dewar <dewar@adacore.com>
2393
2394 * gnat_rm.texi: Minor change.
2395 * exp_attr_light.adb: Minor reformatting.
2396
2397 2011-08-30 Ed Schonberg <schonberg@adacore.com>
2398
2399 * sem_ch3.adb: Patch inheritance of aspects in
2400 Complete_Private_Subtype, to avoid infinite loop.
2401
2402 2011-08-30 Javier Miranda <miranda@adacore.com>
2403
2404 * sem_ch3.adb (Add_Internal_Interface_Entities): If serious errors have
2405 been reported and a subprogram covering an interface primitive is not
2406 found then skip generating the internal entity. Done to avoid crashing
2407 the frontend.
2408 (Check_Abstract_Overriding): Change text of error of wrong formal of
2409 protected subprogram or entry. Done for consistency to emit exactly the
2410 same error reported by Check_Synchronized_Overriding. In addition, the
2411 error is restricted to protected types (bug found working on AI05-0090)
2412
2413 2011-08-30 Yannick Moy <moy@adacore.com>
2414
2415 * exp_aggr.adb, exp_ch11.adb, exp_prag.adb: Remove early exit during
2416 expansion in Alfa mode.
2417 * exp_ch6.adb, exp_ch6.ads (Expand_Actuals): Make subprogram public.
2418 * exp_light.adb, exp_light.ads: New package defining light expansion.
2419 * expander.adb (Expand): Call light expansion in Alfa mode
2420 * exp_ch6_light.adb, exp_ch6_light.ads: Light expansion of chapter 6
2421 constructs.
2422 * exp_ch7_light.adb, exp_ch7_light.ads: Light expansion of chapter 7
2423 constructs.
2424 * exp_attr_light.adb, exp_attr_light.ads: Light expansion of attributes
2425 * gnat1drv.adb (Adjust_Global_Switches): Comment
2426
2427 2011-08-30 Yannick Moy <moy@adacore.com>
2428
2429 * lib-xref-alfa.adb: Minor refactoring.
2430
2431 2011-08-30 Yannick Moy <moy@adacore.com>
2432
2433 * exp_ch9.adb (Expand_Entry_Barrier): Do not perform expansion in Alfa
2434 mode.
2435 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not perform
2436 expansion in Alfa mode.
2437 * sem_ch9.adb (Analyze_Entry_Body): Do not perform expansion in Alfa
2438 mode.
2439
2440 2011-08-30 Robert Dewar <dewar@adacore.com>
2441
2442 * debug_a.adb: Update comment.
2443
2444 2011-08-30 Robert Dewar <dewar@adacore.com>
2445
2446 * exp_ch5.adb, sem_ch3.adb, sem_ch5.adb, einfo.adb, checks.adb,
2447 sem_util.adb, sem_util.ads, sem_res.adb, s-stposu.adb, sem_attr.adb,
2448 exp_ch4.adb, exp_ch6.adb, lib-xref-alfa.adb,
2449 sem_ch8.adb, sem_disp.adb, exp_ch3.adb: Minor reformatting
2450
2451 2011-08-30 Robert Dewar <dewar@adacore.com>
2452
2453 * gnat_rm.texi: Add section on C.6(16) implementation advice for pragma
2454 volatile.
2455
2456 2011-08-30 Hristian Kirtchev <kirtchev@adacore.com>
2457
2458 * exp_ch3.adb (Expand_Freeze_Array_Type): Correct the call to
2459 Build_Finalization_Master by supplying an insertion node and enclosing
2460 scope. In its old version, the call did not generate a finalization
2461 master.
2462 (Expand_Freeze_Record_Type): Add local variable Has_AACC. Add code to
2463 recognize anonymous access-to-controlled components. Rewrite the
2464 machinery which creates finalization masters to service anonymous
2465 access-to-controlled components of a record type. In its current state,
2466 only one heterogeneous master is necessary to handle multiple anonymous
2467 components.
2468 (Freeze_Type): Comment reformatting.
2469 * rtsfind.ads: Add RE_Set_Is_Heterogeneous to tables RE_Id and
2470 RE_Unit_Table.
2471 * s-stposu.adb (Allocate_Any_Controlled): Rewrite the machinery which
2472 associates TSS primitive Finalize_Address with either the master itself
2473 or with the internal hash table depending on the mode of operation of
2474 the master.
2475
2476 2011-08-30 Javier Miranda <miranda@adacore.com>
2477
2478 * exp_ch3.adb (Make_Eq_If): If the etype of the _parent component is an
2479 interface type then do not generate code to compare this component.
2480 Required since they have no components and their equality operator is
2481 abstract.
2482
2483 2011-08-30 Steve Baird <baird@adacore.com>
2484
2485 * sem_util.ads (Deepest_Type_Access_Level): New function; for the type
2486 of a saooaaat (i.e, a stand-alone object of an anonymous access type),
2487 returns the (static) accessibility level of the object. Otherwise, the
2488 same as Type_Access_Level.
2489 (Dynamic_Accessibility_Level): New function; given an expression which
2490 could occur as the rhs of an assignment to a saooaaat (i.e., an
2491 expression of an access-to-object type), return the new value for the
2492 saooaaat's associated Extra_Accessibility object.
2493 (Effective_Extra_Accessibility): New function; same as
2494 Einfo.Extra_Accessibility except that object renames are looked through.
2495 * sem_util.adb
2496 (Deepest_Type_Access_Level): New function; see sem_util.ads description.
2497 (Dynamic_Accessibility_Level): New function; see sem_util.ads
2498 description.
2499 (Effective_Extra_Accessibility): New function; see sem_util.ads
2500 description.
2501 * einfo.ads (Is_Local_Anonymous_Access): Update comments.
2502 (Extra_Accessibility): Update comments.
2503 (Init_Object_Size_Align): New procedure; same as Init_Size_Align
2504 except RM_Size field (which is only for types) is unaffected.
2505 * einfo.adb
2506 (Extra_Accessibility): Expand domain to allow objects, not just formals.
2507 (Set_Extra_Accessibility): Expand domain to allow objects, not just
2508 formals.
2509 (Init_Size): Add assertion that we are not trashing the
2510 Extra_Accessibility attribute of an object.
2511 (Init_Size_Align): Add assertion that we are not trashing the
2512 Extra_Accessibility attribute of an object.
2513 (Init_Object_Size_Align): New procedure; see einfo.ads description.
2514 * sem_ch3.adb (Find_Type_Of_Object): Set Is_Local_Anonymous_Access
2515 differently for the type of a (non-library-level) saooaaat depending
2516 whether Ada_Version < Ada_2012. This is the only point where Ada_Version
2517 is queried in this set of changes - everything else (in particular,
2518 setting of the Extra_Accessibility attribute in exp_ch3.adb) is
2519 driven off of the setting of the Is_Local_Anonymous_Access attribute.
2520 The special treatment of library-level saooaaats is an optimization,
2521 not required for correctnesss. This is based on the observation that the
2522 Ada2012 rules (static and dynamic) for saooaaats turn out to be
2523 equivalent to the Ada2005 rules in the case of a library-level saooaaat.
2524 * exp_ch3.adb
2525 (Expand_N_Object_Declaration): If Is_Local_Anonymous_Access is
2526 false for the type of a saooaaat, declare and initialize its
2527 accessibility level object and set the Extra_Accessibility attribute
2528 of the saooaaat to refer to this object.
2529 * checks.adb (Apply_Accessibility_Check): Add Ada 2012 saooaaat support.
2530 * exp_ch4.adb (Expand_N_In): Replace some Extra_Accessibility calls with
2531 calls to Effective_Extra_Accessibility in order to support
2532 renames of saooaaats.
2533 (Expand_N_Type_Conversion): Add new local function,
2534 Has_Extra_Accessibility, and call it when determining whether an
2535 accessibility check is needed.
2536 It returns True iff Present (Effective_Extra_Accessibility (Id)) would
2537 evaluate to True (without raising an exception).
2538 * exp_ch5.adb
2539 (Expand_N_Assignment_Statement): When assigning to an Ada2012
2540 saooaaat, update its associated Extra_Accessibility object (if
2541 it has one). This includes an accessibility check.
2542 * exp_ch6.adb (Add_Call_By_Copy_Code): When parameter copy-back updates
2543 a saooaaat, update its Extra_Accessibility object too (if it
2544 has one).
2545 (Expand_Call): Replace a couple of calls to Type_Access_Level
2546 with calls to Dynamic_Access_Level to handle cases where
2547 passing a literal (any literal) is incorrect.
2548 * sem_attr.adb (Resolve_Attribute): Handle the static accessibility
2549 checks associated with "Saooaat := Some_Object'Access;"; this must
2550 be rejected if Some_Object is declared in a more nested scope
2551 than Saooaat.
2552 * sem_ch5.adb (Analyze_Assignment): Force accessibility checking for an
2553 assignment to a saooaaat even if Is_Local_Anonymous_Access
2554 returns False for its type (indicating a 2012-style saooaaat).
2555 * sem_ch8.adb
2556 (Analyze_Object_Renaming): Replace a call to Init_Size_Align
2557 (which is only appropriate for objects, not types) with a call
2558 of Init_Object_Size_Align in order to avoid trashing the
2559 Extra_Accessibility attribute of a rename (the two attributes
2560 share storage).
2561 * sem_res.adb
2562 (Valid_Conversion) Replace six calls to Type_Access_Level with
2563 calls to Deepest_Type_Access_Level. This is a bit tricky. For an
2564 Ada2012 non-library-level saooaaat, the former returns library level
2565 while the latter returns the (static) accessibility level of the
2566 saooaaat. A type conversion to the anonymous type of a saooaaat
2567 can only occur as part of an assignment to the saooaaat, so we
2568 know that such a conversion must be in a lhs context, so Deepest
2569 yields the result that we need. If such a conversion could occur,
2570 say, as the operand of an equality operator, then this might not
2571 be right. Also add a test so that static accessibilty checks are
2572 performed for converting to a saooaaat's type even if
2573 Is_Local_Anonymous_Access yields False for the type.
2574
2575 2011-08-30 Javier Miranda <miranda@adacore.com>
2576
2577 * sem_disp.adb (Check_Dispatching_Operation): Complete condition that
2578 controls generation of a warning associated with late declaration of
2579 dispatching functions. Required to avoid generating spurious
2580 warnings.
2581
2582 2011-08-30 Gary Dismukes <dismukes@adacore.com>
2583
2584 * sem_ch6.adb (Check_Return_Subtype_Indication): Issue error if the
2585 return object has an anonymous access type and the function's type is
2586 a named access type.
2587 * sem_ch8.adb (Analyze_Object_Renaming): Suppress error about renaming
2588 conversions on implicit conversions, since such conversions can occur
2589 for anonymous access cases due to expansion. Issue error for attempt
2590 to rename an anonymous expression as an object of a named access type.
2591 * sem_res.ads (Valid_Conversion): Add defaulted parameter Report_Errs,
2592 to indicate whether this function should report errors on invalid
2593 conversions.
2594 * sem_res.adb (Resolve): For Ada 2012, in the case where the type of
2595 the expression is of an anonymous access type and the expected type is
2596 a named general access type, rewrite the expression as a type
2597 conversion, unless this is an expression of a membership test.
2598 (Valid_Conversion.Error_Msg_N): New procedure that conditions the
2599 calling of Error_Msg_N on new formal Report_Errs.
2600 (Valid_Conversion.Error_Msg_NE): New procedure that conditions the
2601 calling of Error_Msg_NE on new formal Report_Errs.
2602 (Valid_Conversion): Move declaration of this function to the package
2603 spec, to allow calls from membership test processing. For Ada 2012,
2604 enforce legality restrictions on implicit conversions of anonymous
2605 access values to general access types, disallowing such conversions in
2606 cases where the expression has a dynamic accessibility level (access
2607 parameters, stand-alone anonymous access objects, or a component of a
2608 dereference of one of the first two cases).
2609 * sem_type.adb (Covers): For Ada 2012, allow an anonymous access type
2610 in the context of a named general access expected type.
2611 * exp_ch4.adb Add with and use of Exp_Ch2.
2612 (Expand_N_In): Add processing for membership tests applied to
2613 expressions of an anonymous access type. First, Valid_Conversion is
2614 called to check whether the test is statically False, and then the
2615 conversion is expanded to test that the expression's accessibility
2616 level is no deeper than that of the tested type. In the case of
2617 anonymous access-to-tagged types, a tagged membership test is applied
2618 as well.
2619 (Tagged_Membership): Extend to handle access type cases, applying the
2620 test to the designated types.
2621 * exp_ch6.adb (Expand_Call): When creating an extra actual for an
2622 accessibility level, and the actual is a 'Access applied to a current
2623 instance, pass the accessibility level of the type of the current
2624 instance rather than applying Object_Access_Level to the prefix. Add a
2625 ??? comment, since this level isn't quite right either (will eventually
2626 need to pass an implicit level parameter to init procs).
2627
2628 2011-08-30 Bob Duff <duff@adacore.com>
2629
2630 * s-taskin.ads: Minor comment fix.
2631
2632 2011-08-30 Ed Schonberg <schonberg@adacore.com>
2633
2634 * sem_res.adb (Check_Parameterless_Call): If the node is a selected
2635 component and the selector is a dispatching operation, check if it is
2636 a prefixed call before rewriting as a parameterless function call.
2637
2638 2011-08-29 Jakub Jelinek <jakub@redhat.com>
2639
2640 * gcc-interface/Makefile.in (../stamp-gnatlib1-$(RTSDIR)): Copy
2641 tsystem.h into $(RTSDIR) instead of rts.
2642
2643 2011-08-29 Robert Dewar <dewar@adacore.com>
2644
2645 * sem_ch10.adb, a-coorse.adb, exp_dist.adb, exp_ch3.adb: Minor
2646 reformatting.
2647 * gcc-interface/Make-lang.in: Update dependencies.
2648
2649 2011-08-29 Yannick Moy <moy@adacore.com>
2650
2651 * alfa.ads (Name_Of_Heap_Variable): New constant name.
2652 * lib-xref-alfa.adb, lib-xref.adb, lib-xref.ads (Drefs): New global
2653 table to hold dereferences.
2654 (Add_ALFA_Xrefs): Take into account dereferences as special
2655 reads/writes to the variable "HEAP".
2656 (Enclosing_Subprogram_Or_Package): Move subprogram here.
2657 (Generate_Dereference): New procedure to store a read/write dereferencew
2658 in the table Drefs.
2659 * put_alfa.adb (Put_ALFA): Use different default than (0,0) used for
2660 the special "HEAP" var.
2661 * sem_ch4.adb (Analyze_Explicit_Dereference): Store read dereference
2662 in ALFA mode.
2663 * sem_util.adb (Note_Possible_Modification): Store write dereference
2664 in ALFA mode.
2665
2666 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
2667
2668 * exp_ch3.adb (Freeze_Type): Generate an accessibility check which
2669 ensures that the level of the subpool access type is not deeper than
2670 that of the pool object.
2671 * sem_util.adb (Object_Access_Level): Expand to handle defining
2672 identifiers.
2673 * sem_res.adb (Resolve_Allocator): Add a guard to avoid examining the
2674 subpool handle name of a rewritten allocator.
2675
2676 2011-08-29 Robert Dewar <dewar@adacore.com>
2677
2678 * impunit.adb, exp_ch4.adb, s-finmas.adb: Minor reformatting.
2679
2680 2011-08-29 Thomas Quinot <quinot@adacore.com>
2681
2682 * exp_dist.adb (TC_Rec_Add_Process_Element): For a choice with multiple
2683 values, we generate multiple triples of parameters in the TypeCode.
2684 Bump Choice_Index for each such triple so that a subsequent default
2685 choice is associated with the correct index in the typecode.
2686
2687 2011-08-29 Ed Schonberg <schonberg@adacore.com>
2688
2689 * a-cdlili.adb (Iterate): Initialize properly an iterator over a null
2690 container.
2691 (First, Last): Handle properly an iterator over a null container.
2692
2693 2011-08-29 Bob Duff <duff@adacore.com>
2694
2695 * sem_ch10.adb (Analyze_With_Clause,Install_Withed_Unit): Abandon
2696 processing if we run across a node with no Scope. This can happen if
2697 we're with-ing an library-level instance, and that instance got errors
2698 that caused "instantiation abandoned".
2699 * sem_util.adb (Unit_Declaration_Node): Make it more robust, by raising
2700 an exception instead of using Assert, so it won't go into an infinite
2701 loop, even when assertions are turned off.
2702
2703 2011-08-29 Ed Schonberg <schonberg@adacore.com>
2704
2705 * a-coorse.adb: Proper handling of empty ordered sets.
2706
2707 2011-08-29 Johannes Kanig <kanig@adacore.com>
2708
2709 * debug.adb: Add comments.
2710
2711 2011-08-29 Thomas Quinot <quinot@adacore.com>
2712
2713 * a-except.adb, a-except-2005.adb: Minor comment rewording and
2714 reformatting.
2715
2716 2011-08-29 Yannick Moy <moy@adacore.com>
2717
2718 * sem_ch3.adb (Array_Type_Declaration): Remove insertion of
2719 declaration for Itypes in Alfa mode.
2720
2721 2011-08-29 Robert Dewar <dewar@adacore.com>
2722
2723 * a-cdlili.ads, a-coinve.ads, a-coorma.adb, a-coorma.ads, s-tassta.adb,
2724 a-cborma.adb, a-cborma.ads, a-cohama.ads, a-coorse.ads, a-cbhama.ads,
2725 a-cborse.ads, a-cobove.adb, a-cobove.ads, a-cbhase.ads: Minor
2726 reformatting.
2727
2728 2011-08-29 Tristan Gingold <gingold@adacore.com>
2729
2730 * exp_ch7.adb, exp_ch7.ads (Build_Exception_Handler): Move its spec to
2731 package spec.
2732 * exp_intr.adb (Expand_Unc_Deallocation): Use Build_Exception_Handler.
2733 * a-except.adb, a-except-2005.adb (Rcheck_22): Do not defer aborts
2734 while raising PE.
2735
2736 2011-08-29 Robert Dewar <dewar@adacore.com>
2737
2738 * a-cbhama.adb, a-cbhama.ads: Minor reformatting.
2739
2740 2011-08-29 Javier Miranda <miranda@adacore.com>
2741
2742 * sem_ch8.adb (Analyze_Subprogram_Renaming): Complete support for
2743 renamings of formal subprograms when the actual for a formal type is
2744 class-wide.
2745
2746 2011-08-29 Matthew Heaney <heaney@adacore.com>
2747
2748 * a-cbhama.ads, a-cbhase.ads (Move): Clear Source following assignment
2749 to Target.
2750
2751 2011-08-29 Matthew Heaney <heaney@adacore.com>
2752
2753 * a-cborma.ads, a-cborse.ads (Cursor): Default-initialize all
2754 components of record type.
2755 * a-cborma.adb, a-cborse.adb (Move): Clear Source following assignmentw
2756 to Target.
2757
2758 2011-08-29 Ed Schonberg <schonberg@adacore.com>
2759
2760 * a-cbhama.adb, a-cbhama.ads, a-cborma.adb, a-cborma.ads, a-cobove.adb,
2761 a-cobove.ads, a-coorma.adb, a-coorma.ads: Add iterator machinery to
2762 container packages.
2763
2764 2011-08-29 Robert Dewar <dewar@adacore.com>
2765
2766 * sem_ch3.adb, sem_util.adb, gnat1drv.adb, s-parint.ads: Minor
2767 reformatting.
2768
2769 2011-08-29 Matthew Heaney <heaney@adacore.com>
2770
2771 * a-cbhama.ads, a-cbhase.ads (Cursor): Default-initialize all
2772 components of record type.
2773
2774 2011-08-29 Bob Duff <duff@adacore.com>
2775
2776 * s-tassta.adb (Task_Wrapper): Handle and ignore exceptions propagated
2777 by the termination handler.
2778
2779 2011-08-29 Yannick Moy <moy@adacore.com>
2780
2781 * sem_ch3.adb (Array_Type_Declaration): Create declarations for Itypes
2782 created in Alfa mode, instead of inserting artificial declarations of
2783 non-Itypes in the tree.
2784 * sem_util.adb, sem_util.ads (Itype_Has_Declaration): New function to
2785 know if an Itype has a corresponding declaration, as defined in
2786 itypes.ads.
2787
2788 2011-08-29 Yannick Moy <moy@adacore.com>
2789
2790 * gnat1drv.adb: Minor rewrite.
2791
2792 2011-08-29 Bob Duff <duff@adacore.com>
2793
2794 * s-tasuti.adb (Make_Passive): Work around race condition in
2795 Make_Independent, which can cause Wait_Count to be zero. So instead of
2796 asserting that Wait_Count > 0, and then decrementing it, decrement it
2797 only if Wait_Count > 0.
2798 * s-taskin.ads (Wait_Count, Alive_Count, Awake_Count): All of these
2799 should be nonnegative, so declare them Natural instead of Integer.
2800
2801 2011-08-29 Robert Dewar <dewar@adacore.com>
2802
2803 * exp_ch5.adb, sem_ch3.adb, a-cihama.adb, a-cihama.ads, exp_ch7.adb,
2804 sem_ch5.adb, a-ciorse.adb, a-ciorse.ads, sem_ch12.adb, a-cidlli.adb,
2805 a-cidlli.ads, sem_util.adb, sem_res.adb, gnat1drv.adb, a-except.adb,
2806 a-except.ads, a-except-2005.ads, sem_ch4.adb, exp_disp.adb,
2807 exp_aggr.adb, sem_ch13.adb, par-ch3.adb: Minor reformatting.
2808
2809 2011-08-29 Tristan Gingold <gingold@adacore.com>
2810
2811 * s-auxdec-vms-alpha.adb: Add comments, remove some HT before labels.
2812
2813 2011-08-29 Vadim Godunko <godunko@adacore.com>
2814
2815 * s-parint.ads: Minor comment clarification.
2816
2817 2011-08-29 Vincent Celier <celier@adacore.com>
2818
2819 * prj.adb (Initialize): Make sure that new reserved words after Ada 95
2820 may be used as identifiers.
2821
2822 2011-08-29 Ed Schonberg <schonberg@adacore.com>
2823
2824 * a-coinho.ads: Minor reformating.
2825
2826 2011-08-29 Ed Schonberg <schonberg@adacore.com>
2827
2828 * exp_ch5.adb (Expand_Iterator_Loop): Handle properly a loop over a
2829 container of a derived type.
2830
2831 2011-08-29 Ed Schonberg <schonberg@adacore.com>
2832
2833 * a-cidlli.adb, a-cidlli.ads, a-cihama.adb, a-cihama.ads,
2834 a-ciorse.adb, a-ciorse.ads: Add iterator machinery to containers.
2835
2836 2011-08-29 Pascal Obry <obry@adacore.com>
2837
2838 * exp_disp.adb: Minor comment fix.
2839 (Make_Disp_Asynchronous_Select_Body): Properly initialize out parameters
2840 to avoid warnings when compiling with -Wall.
2841 (Make_Disp_Conditional_Select_Body): Likewise.
2842 (Make_Disp_Timed_Select_Body): Likewise.
2843
2844 2011-08-29 Ed Schonberg <schonberg@adacore.com>
2845
2846 * sem_ch12.adb (Analyze_Formal_Subprogram_Declaration): If default is
2847 an entity name, generate reference for it.
2848
2849 2011-08-29 Ed Schonberg <schonberg@adacore.com>
2850
2851 * exp_ch5.adb (Expand_Iterator_Loop): Uniform handling of "X of S"
2852 iterator form.
2853 * sem_util.adb (Is_Iterator, Is_Reversible_Iterator): Yield True for
2854 the class-wide type.
2855 * sem_ch5.adb: Move some rewriting to the expander, where it belongs.
2856
2857 2011-08-29 Ed Schonberg <schonberg@adacore.com>
2858
2859 * sem_ch8.adb (Check_Constrained_Object): Do not create an actual
2860 subtype for an object whose type is an unconstrained union.
2861
2862 2011-08-29 Ed Schonberg <schonberg@adacore.com>
2863
2864 * par-ch3.adb (P_Array_Type_Definiation, P_Component_Items): "aliased"
2865 is allowed in a component definition, by AI95-406.
2866
2867 2011-08-29 Matthew Heaney <heaney@adacore.com>
2868
2869 * a-chtgbo.adb (Generic_Iteration): Use correct overloading of Next.
2870
2871 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
2872
2873 * a-except-2005.adb: Alphabetize all routines.
2874 (Triggered_By_Abort): New routine.
2875 * a-except-2005.ads (Triggered_By_Abort): New routine.
2876 * a-except.adb Alphabetize all routines.
2877 (Triggered_By_Abort): New routine.
2878 * a-except.ads (Triggered_By_Abort): New routine.
2879 * exp_ch7.adb: Update all comments involving the detection of aborts in
2880 finalization code.
2881 (Build_Object_Declarations): Do not generate code to detect the
2882 presence of an abort at the start of finalization code, use a runtime
2883 routine istead.
2884 * rtsfind.ads: Add RE_Triggered_By_Abort to tables RE_Id and
2885 RE_Unit_Table.
2886 * sem_res.adb (Resolve_Allocator): Emit a warning when attempting to
2887 allocate a task on a subpool.
2888 * s-stposu.adb: Add library-level flag Finalize_Address_Table_In_Use.
2889 The flag disables all actions related to the maintenance of
2890 Finalize_Address_Table when subpools are not in use.
2891 (Allocate_Any_Controlled): Signal the machinery that subpools are in
2892 use.
2893 (Deallocate_Any_Controlled): Do not call Delete_Finalize_Address which
2894 performs costly task locking when subpools are not in use.
2895
2896 2011-08-29 Yannick Moy <moy@adacore.com>
2897
2898 * gnat1drv.adb (Adjust_Global_Switches): Restore expansion of tagged
2899 types and dispatching calls in Alfa mode.
2900 * lib-xref-alfa.adb (Collect_ALFA): Rewrite computation of
2901 correspondance between body and spec scopes, to reuse utility functions
2902 (Traverse_Declarations_Or_Statements): Protect access to body for stub
2903 by testing the presence of the library unit for the body
2904 * sem_ch6.adb (Set_Actual_Subtypes): take into account that in Alfa
2905 mode the expansion of accept statements is skipped
2906 * sem_util.adb, sem_util.ads (Unique_Entity): New function returning
2907 the unique entity corresponding to the one returned by
2908 Unique_Defining_Entity applied to the enclosing declaration of the
2909 argument.
2910
2911 2011-08-29 Bob Duff <duff@adacore.com>
2912
2913 * treepr.ads: Improve debugging facilities. pn(x) no longer crashes in
2914 gdb when x is not a node (it can be a node list, name_id, etc). pp is
2915 an alias for pn. ppp is an alias for pt.
2916
2917 2011-08-29 Javier Miranda <miranda@adacore.com>
2918
2919 * exp_aggr.adb (Expand_Record_Aggregate): Use the top-level enclosing
2920 aggregate to take a consistent decision on the need to convert into
2921 assignments aggregates that initialize constant objects.
2922
2923 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
2924
2925 * exp_ch4.adb (Expand_Allocator_Expression): Add a call to
2926 Build_Allocate_Deallocate_Proc in order to handle allocation of
2927 non-controlled objects on subpools.
2928 * impunit.adb: Remove s-finmas and s-spsufi since they were never meant
2929 to be end-user visible.
2930 * s-finmas.adb: Add with and use clause for System.HTable.
2931 Add an instantiation of Simple_HTable which provides a mapping between
2932 the address of a controlled object and the corresponding
2933 Finalize_Address used to clean up the object. The table is used when a
2934 master is operating in heterogeneous mode.
2935 (Attach): Explain why the input node is not verified on being already
2936 attached.
2937 (Delete_Finalize_Address): New routine.
2938 (Detach): Add pragma Assert which ensures that a node is already
2939 attached.
2940 (Finalize): Add local variable Cleanup. Rewrite the iteration scheme
2941 since nodes are no longer removed on traversal. Explain why node
2942 detachment is undesirable in this case.
2943 (Get_Finalize_Address): New routine.
2944 (Hash): New routine.
2945 (Is_Empty_List): Removed.
2946 (pm): Renamed to Print_Master. Add output for discriminant
2947 Is_Homogeneous.
2948 Comment reformatting.
2949 (Set_Finalize_Address (Address, Finalize_Address_Ptr)): New routine.
2950 * s-finmas.ads: Various comments additions / improvements.
2951 Type Finalization_Master has a discriminant which determines the mode of
2952 operation.
2953 (Delete_Finalize_Address): New routine.
2954 (Get_Finalize_Address): New routine.
2955 (pm): Renamed to Print_Master.
2956 (Set_Finalize_Address (Address, Finalize_Address_Ptr)): New routine.
2957 * s-stposu.adb: Add with clause for System.Address_Image; Add with and
2958 use clause for System.IO.
2959 (Allocate_Any_Controlled): Add machinery to set TSS primitive
2960 Finalize_Address depending on the mode of allocation and the mode of
2961 the master.
2962 (Deallocate_Any_Controlled): Remove the relation pair object -
2963 Finalize_Address regardless of the master mode. Add comment explaining
2964 the reason.
2965 (Detach): Ensure that fields Prev and Next are null after detachment.
2966 (Finalize_Pool): Remove local variable Next_Ptr. Rewrite the iteration
2967 scheme to check whether the list of subpools is empty. There is no
2968 longer need to store the next subpool or advance the current pointer.
2969 (Is_Empty_List): New routine.
2970 (Print_Pool): New routine.
2971 (Print_Subpool): New routine.
2972 * s-stposu.ads: Various comments additions / improvements.
2973 Field Master of type Root_Subpool is now a heterogeneous collection.
2974 (Print_Pool): New routine.
2975 (Print_Subpool): New routine.
2976
2977 2011-08-29 Ed Schonberg <schonberg@adacore.com>
2978
2979 * exp_ch5.adb (Expand_N_Iterator_Loop): Implement Ada2012 loop iterator
2980 forms, using aspects of container types.
2981 * sem_ch3.adb (Find_Type_Name): Preserve Has_Delayed_Aspects and
2982 Has_Implicit_Dereference flags, that may be set on the partial view.
2983 * sem_ch4.adb (Process_Overloaded_Indexed_Component): Prefix may be a
2984 container type with an indexing aspect.
2985 (Analyze_Quantified_Expression): Analyze construct with expansion
2986 disabled, because it will be rewritten as a loop during expansion.
2987 (Try_Container_Indexing): The prefix itself may be a container type
2988 with an indexing aspect, as with a vector of vectors.
2989 * sem_ch5.adb (Analyze_Iteration_Scheme): In a generic context, analyze
2990 the original doamin of iteration, for name capture.
2991 (Analyze_Iterator_Specification): If the domain is an expression that
2992 needs finalization, create a separate declaration for it.
2993 For an iterator with "of" retrieve default iterator info from aspect of
2994 container type. For "in" iterator, retrieve type of Iterate function.
2995 * sem_ch13.adb (Check_Iterator_Function): Fix typo.
2996 (Check_Aspect_At_End_Of_Declaration): Make type unfrozen before
2997 analysis, to prevent spurious errors about late attributes.
2998 * sprint.adb: Handle quantified expression with either loop or iterator
2999 specification.
3000 * a-convec.ads, a-convec.adb: Iterate function returns a reversible
3001 iterator.
3002
3003 2011-08-29 Vincent Celier <celier@adacore.com>
3004
3005 * make.adb (Scan_Make_Arg): Take any option as is in packages Compiler,
3006 Binder or Linker of the main project file.
3007
3008 2011-08-29 Ed Schonberg <schonberg@adacore.com>
3009
3010 * inline.adb (Add_Scopes_To_Clean): Exclude any entity within a generic
3011 unit.
3012
3013 2011-08-29 Yannick Moy <moy@adacore.com>
3014
3015 * exp_ch9.adb: Partial revert of previous change for Alfa mode
3016
3017 2011-08-29 Yannick Moy <moy@adacore.com>
3018
3019 * exp_ch11.adb: Minor expansion of comment.
3020
3021 2011-08-29 Yannick Moy <moy@adacore.com>
3022
3023 * lib-xref-alfa.adb (Add_ALFA_Scope): Treat generic entities.
3024
3025 2011-08-29 Ed Schonberg <schonberg@adacore.com>
3026
3027 * sem_res.adb (Resolve_Arithmetic_Op): If the node has a universal
3028 interpretation, set the type before resolving the operands, because
3029 legality checks on an exponention operand need to know the type of the
3030 context.
3031
3032 2011-08-29 Ed Schonberg <schonberg@adacore.com>
3033
3034 * sem_ch12.adb (Analyze_Package_Instantiation): Do not set delayed
3035 cleanups on a master if the instance is within a generic unit.
3036 Complement to the corresponding fix to inline.adb for K520-030.
3037
3038 2011-08-29 Tristan Gingold <gingold@adacore.com>
3039
3040 * exp_ch7.adb (Build_Raise_Statement): Raise PE instead of the current
3041 occurrence.
3042 * exp_intr.adb: Minor comment fix.
3043
3044 2011-08-29 Bob Duff <duff@adacore.com>
3045
3046 * sem_ch13.adb (Analyze_Aspect_Specifications): Fix cases where
3047 Delay_Required was used as an uninitialized variable.
3048
3049 2011-08-29 Robert Dewar <dewar@adacore.com>
3050
3051 * a-cdlili.adb, a-cdlili.ads, a-coinve.adb, a-coinve.ads,
3052 sem_util.adb, sem_util.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb,
3053 a-coorse.ads, aspects.ads, sem_ch8.adb: Minor reformatting.
3054
3055 2011-08-29 Thomas Quinot <quinot@adacore.com>
3056
3057 * system-freebsd-x86_64.ads (Backend_Overflow_Checks): Set true True.
3058 Remove unused variables.
3059
3060 2011-08-29 Ed Schonberg <schonberg@adacore.com>
3061
3062 * sem_res.adb: Remove Build_Explicit_Dereference.
3063 * sem_util.adb, sem_util.ads (Build_Explicit_Dereference): Moved here
3064 from sem_res.adb, used in analysis of additional constructs.
3065 (Is_Iterator, Is_Reversible_Iterator): New predicates for Ada2012
3066 expansion of iterators.
3067 (Is_Object_Reference): Recognize variables rewritten as explicit
3068 dereferences in Ada2012.
3069 * snames.ads-tmpl: Add Has_Element, Forward_Iterator,
3070 Reversible_Iterator names, for expansion of Ada2012 iterators.
3071 * aspects.ads, aspects.adb (Find_Aspect): Utility.
3072 * a-cdlili.ads, a-cdlili.adb: Add new iterator machinery to doubly
3073 linked list container.
3074 * a-coinve.ads, a-coinve.adb: Ditto for indefinite vector containers.
3075 * a-coorse.ads, a-coorse.adb: Ditto for ordered sets.
3076
3077 2011-08-29 Ed Schonberg <schonberg@adacore.com>
3078
3079 * a-cohama.adb, a-cohama.ads: Add iterator primitives to hashed map
3080 containers.
3081
3082 2011-08-29 Vincent Celier <celier@adacore.com>
3083
3084 * make.adb (Gnatmake): Get the maximum number of simultaneous
3085 compilation processes after the Builder switches has been scanned, as
3086 there may include -jnn.
3087
3088 2011-08-29 Matthew Heaney <heaney@adacore.com>
3089
3090 * a-chtgbo.adb (Generic_Equal): Use correct overloading of Next.
3091
3092 2011-08-29 Tristan Gingold <gingold@adacore.com>
3093
3094 * gnatcmd.adb (GNATCmd): On OpenVMS, truncate the length of
3095 GNAT_DRIVER_COMMAND_LINE to 255.
3096
3097 2011-08-29 Pascal Obry <obry@adacore.com>
3098
3099 * freeze.adb, sem_ch8.adb, a-convec.adb, a-convec.ads: Minor
3100 reformatting and style fix (class attribute casing).
3101
3102 2011-08-29 Yannick Moy <moy@adacore.com>
3103
3104 * exp_ch11.adb: Yet another case where expansion should be common
3105 between CodePeer and Alfa.
3106
3107 2011-08-29 Yannick Moy <moy@adacore.com>
3108
3109 * exp_ch9.adb: Partial revert of previous change for Alfa mode.
3110
3111 2011-08-29 Ed Schonberg <schonberg@adacore.com>
3112
3113 * sem_ch6.adb (Matches_Limited_With_View): The limited views of an
3114 incomplete type and its completion match.
3115
3116 2011-08-29 Yannick Moy <moy@adacore.com>
3117
3118 * exp_ch13.adb: Adjust previous change.
3119
3120 2011-08-29 Robert Dewar <dewar@adacore.com>
3121
3122 * sem_prag.adb, prj.adb, sem_util.adb, sem_res.adb, gnat1drv.adb,
3123 exp_ch4.adb, sem_ch8.adb: Minor code reorganization
3124 Minor reformatting.
3125
3126 2011-08-29 Emmanuel Briot <briot@adacore.com>
3127
3128 * make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Also
3129 initialize aggregated projects.
3130
3131 2011-08-29 Ed Schonberg <schonberg@adacore.com>
3132
3133 * sem_ch8.adb (Find_Renamed_Entity): Within an instance, use scope
3134 depth of candidates to resolve a potentially spurious ambiguity between
3135 two visible subprograms.
3136
3137 2011-08-29 Yannick Moy <moy@adacore.com>
3138
3139 * sem_prag.adb (Analyze_Pragma): Allow Test_Case pragma without
3140 Requires/Ensures.
3141 * sem_util.adb (Get_Ensures_From_Test_Case_Pragma,
3142 Get_Requires_From_Test_Case_Pragma): Allow Test_Case pragma without
3143 Requires/Ensures.
3144
3145 2011-08-29 Arnaud Charlet <charlet@adacore.com>
3146
3147 * gnat1drv.adb (Adjust_Global_Switches): Improve previous change.
3148 Add comment.
3149
3150 2011-08-29 Thomas Quinot <quinot@adacore.com>
3151
3152 * sem_res.adb: Minor reformatting.
3153
3154 2011-08-29 Johannes Kanig <kanig@adacore.com>
3155
3156 * exp_ch4.adb (Expand_Quantified_Expression): Do not expand in ALFA
3157 mode.
3158 * gnat1drv.adb (Adjust_Global_Switches): Set
3159 Use_Expressions_With_Actions to False in ALFA mode.
3160 * sem_res.adb (Resolve_Quantified_Expression): Simpler treatment in
3161 ALFA mode.
3162
3163 2011-08-29 Yannick Moy <moy@adacore.com>
3164
3165 * exp_ch13.adb (Expand_N_Freeze_Entity): Do nothing in Alfa mode.
3166 * exp_ch9.adb: Do not expand tasking constructs in Alfa mode.
3167 * gnat1drv.adb (Adjust_Global_Switches): Suppress the expansion of
3168 tagged types and dispatching calls in Alfa mode.
3169
3170 2011-08-29 Javier Miranda <miranda@adacore.com>
3171
3172 * sem_ch3.adb (Process_Discriminants): Add missing check to ensure that
3173 we do not report an error on an Empty node.
3174
3175 2011-08-29 Geert Bosch <bosch@adacore.com>
3176
3177 * Makefile.rtl (GNATRTL_NONTASKING_OBJECTS): Add a-nllrar.o,
3178 a-nlrear.o and a-nurear.o.
3179
3180 2011-08-29 Robert Dewar <dewar@adacore.com>
3181
3182 * freeze.adb: Minor code reorganization.
3183 Minor reformatting.
3184 * sem_util.adb, errout.adb, exp_ch11.adb, a-ngrear.adb, s-gearop.adb,
3185 sem_ch6.adb: Minor reformatting
3186
3187 2011-08-29 Tristan Gingold <gingold@adacore.com>
3188
3189 * s-except.ads, s-except.adb: Provide dummy body.
3190
3191 2011-08-29 Yannick Moy <moy@adacore.com>
3192
3193 * sem_warn.adb (Within_Postcondition): Take into account the case of
3194 an Ensures component in a Test_Case.
3195
3196 2011-08-29 Tristan Gingold <gingold@adacore.com>
3197
3198 * s-excdeb.ads, s-excdeb.adb: New files, created from s-except.
3199 * rtsfind.ads (RTU_Id): Replaces System_Exceptions by
3200 System_Exceptions_Debug
3201 (RE_Unit_Table): Search RE_Local_Raise in System_Exceptions_Debug
3202 * a-except.adb: With and use System.Exceptions_Debug instead of
3203 System.Exceptions.
3204 * a-except-2005.adb: Likewise.
3205 * s-assert.adb: Likewise.
3206 * s-except.adb, s-except.ads: Move debugging hooks to s-excdeb.
3207 * Makefile.rtl: Add s-excdeb. Adjust compilation rule.
3208 * gcc-interfaces/Makefile.in, gcc-interface/Make-lang.in: Add
3209 s-excdeb. Update dependencies.
3210 (GNATRTL_LINEARALGEBRA_OBJS): Remove a-nlrear.o a-nurear.o a-nllrar.o
3211 as these no longer need external libraries.
3212
3213 2011-08-29 Ed Schonberg <schonberg@adacore.com>
3214
3215 * sem_res.adb (Resolve_Op_Expon): Additional check to reject an
3216 exponentiation operator on universal values in a context that requires
3217 a fixed-point type.
3218
3219 2011-08-29 Tristan Gingold <gingold@adacore.com>
3220
3221 * raise-gcc.c (personnality_routine): Fix thinko. Set Ada occurrence
3222 before calling notify_handled_exception.
3223 * a-exextr.adb: Fix comment.
3224
3225 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
3226
3227 * exp_ch4.adb (Expand_Allocator_Expression): Add code to set attribute
3228 Finalize_Address of the access type's finalization master.
3229 (Expand_N_Allocator): Add code to set attribute Finalize_Address of the
3230 access type's finalization master. Add a guard to prevent
3231 Associated_Storage_Pool from being set on .NET/JVM.
3232 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Add code to set
3233 attribute Finalize_Address of the access type's finalization master.
3234 * exp_ch7.adb (Make_Finalize_Address_Call): New routine.
3235 * exp_ch7.ads (Make_Finalize_Address_Call): New routine.
3236 * rtsfind.ads: Add RE_Set_Finalize_Address to tables RE_Id and
3237 RE_Unit_Table.
3238 * s-finmas.adb: Add with clause for System.Address_Image. Add with and
3239 use clause for System.IO
3240 (Detach): Relax the assertion, to be reinstated later.
3241 (Finalize): Rewrite the iteration loop to avoid pointer comparison.
3242 Relax the assertion on Finalize_Address, to be reinstated later.
3243 (Is_Empty_List): New routine.
3244 (pm): New debug routine.
3245 (Set_Finalize_Address): New routine.
3246 * s-finmas.ads (pm): New debug routine.
3247 (Set_Finalize_Address): New routine.
3248 * s-stposu.adb (Allocate_Any_Controlled): Code reformatting.
3249
3250 2011-08-29 Tristan Gingold <gingold@adacore.com>
3251
3252 * a-exexpr-gcc.adb (GCC_Exception_Access, GNAT_GCC_Exception_Access):
3253 Remove convention C.
3254
3255 2011-08-29 Tristan Gingold <gingold@adacore.com>
3256
3257 * s-taprop-vms.adb (Get_Exc_Stack_Addr): Remove.
3258 (Initialize_TCB): Remove Exc_Stack_Ptr initialization.
3259 (Finalize_TCB): Remove its finalization.
3260 (Initialize): Remove assignment of GET_Exc_Stack_Addr
3261 * s-soflin.adb (NT_Exc_Stack): Remove
3262 (Get_Exc_Stack_Addr_NT): Likewise.
3263 (Get_Exc_Stack_Addr_Soft): Likewise.
3264 * s-soflin.ads (Get_Exc_Stack_Addr_NT): Remove.
3265 (Get_Exc_Stack_Addr): Likewise.
3266 (Get_Exc_Stack_Addr_Soft): Likewise
3267 * s-taspri-vms.ads (Exc_Stack_T): Remove.
3268 (Exc_Stack_Ptr_T): Likewise.
3269 (Private_Data): Remove Exc_Stack_Ptr component.
3270
3271 2011-08-29 Tristan Gingold <gingold@adacore.com>
3272
3273 * raise-gcc.c (get_ip_from_context): New function. Factorize code.
3274
3275 2011-08-29 Tristan Gingold <gingold@adacore.com>
3276
3277 * gnat_ugn.texi: Fix aix and x86-solaris info for run-time.
3278
3279 2011-08-29 Geert Bosch <bosch@adacore.com>
3280
3281 * s-gearop.ads (Back_Substitute, Diagonal, Forward_Eliminate,
3282 L2_Norm, Swap_Column): New generic subprograms
3283 * s-gearop.adb (Back_Substitute, Diagonal, Forward_Eliminate,
3284 L2_Norm, Swap_Column): Implement new subprograms in order to
3285 eliminate dependency on BLAS and LAPACK libraries in
3286 Ada.Numerics.Generic_Real_Arrays and eventually also the complex
3287 version. Forward_Eliminate/Back_Substitute can be used to put a
3288 matrix in row echelon or reduced row echelon form using partial
3289 pivoting.
3290 * a-ngrear.adb: (Back_Substitute, Diagonal, Forward_Eleminate,
3291 Swap_Column): Instantiate from System.Generic_Array_Operations.
3292 ("*", "abs"): Implement by instantiation from Generic_Array_Operations.
3293 (Sqrt): Local function for simple computation of square root without
3294 adding dependencies on Generic_Elementary_Functions.
3295 (Swap): New subprogram to exchange floating point numbers.
3296 (Inverse): Reimplement using Jordan-Gauss elimination.
3297 (Jacobi): New procedure implementing Jacobi's method for computation
3298 of eigensystems, based on Rutishauser's implementation.
3299 (L2_Norm): Implement directly using the inner product.
3300 (Sort_Eigensystem): Sort eigenvalue/eigenvector pairs in order of
3301 decreasing eigenvalue as required by the Ada RM.
3302 (Swap_Column): New helper procedure for Sort_Eigensystem.
3303 Remove with of System.Generic_Real_BLAS and System.Generic_Real_LAPACK.
3304 Add with of Ada.Containers.Generic_Anonymous_Array_Sort, for
3305 Sort_Eigensystems.
3306
3307 2011-08-29 Thomas Quinot <quinot@adacore.com>
3308
3309 * put_scos.adb (Put_SCOs): Do not emit a newline for an empty
3310 statements line.
3311
3312 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
3313
3314 * s-finmas.adb (Finalize): Check Finalize_Address of the master rather
3315 than the current node.
3316 * s-finmas.ads: Move field Finalize_Address from type FM_Node to
3317 Finalization_Master. The list headers have two fields instead of three.
3318 This should fix alignment issue but subpool allocations are now
3319 unusable. Alphabetize subprograms.
3320 * s-stposu.adb (Allocate_Any_Controlled): Use the offset rather than
3321 the size of the header when converting the beginning of the object to
3322 a FM_Node. Set the master's Finalize_Address attribute if not already
3323 set.
3324 (Deallocate_Any_Controlled): Use the offset rather than the size of the
3325 header when converting the beginning of the object to a FM_Node.
3326
3327 2011-08-29 Gary Dismukes <dismukes@adacore.com>
3328
3329 * exp_ch11.adb (Expand_N_Raise_Statement): Don't suppress expansion of
3330 reraise when compiling for CodePeer.
3331
3332 2011-08-29 Arnaud Charlet <charlet@adacore.com>
3333
3334 * a-iteint.ads, Makefile.rtl: Add missing compilation of a-iteint.ads,
3335 now needed by a-convec.adb. Fix warning.
3336
3337 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
3338
3339 * exp_util.adb (Build_Allocate_Deallocate_Proc): Add a guard for the
3340 processing of TSS routine Finalize_Address when compiling in
3341 CodePeer_Mode.
3342
3343 2011-08-29 Thomas Quinot <quinot@adacore.com>
3344
3345 * a-strunb.ads, einfo.ads, g-comlin.ads, sem_ch6.adb,
3346 sem_warn.adb: Minor reformatting.
3347
3348 2011-08-29 Emmanuel Briot <briot@adacore.com>
3349
3350 * prj-conf.adb (Get_Config_Switches): Also collect the list of
3351 languages from aggregated projects.
3352
3353 2011-08-29 Yannick Moy <moy@adacore.com>
3354
3355 * lib-xref-alfa.adb, lib-xref.ads (Traverse_Declarations_Or_Statements,
3356 Traverse_Handled_Statement_Sequence, Traverse_Package_Body,
3357 Traverse_Package_Declaration, Traverse_Subprogram_Body,
3358 Traverse_Compilation_Unit): Add a parameter Inside_Stubs so that bodies
3359 for stubs are traversed too when parameter is set
3360 (Traverse_All_Compilation_Units): Traverse without going inside stubs
3361 (Traverse_Declarations_Or_Statements): Do the special traversing for
3362 stubs when required.
3363 * sem_util.adb, sem_util.ads (Get_Body_From_Stub): New function to
3364 return subprogram or package body from stub.
3365 (Is_Subprogram_Stub_Without_Prior_Declaration): New function to detect
3366 stubs without prior subprogram decl.
3367
3368 2011-08-29 Vasiliy Fofanov <fofanov@adacore.com>
3369
3370 * gnat_ugn.texi: Fix typo.
3371
3372 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
3373
3374 * s-stposu.adb (Allocate_Any_Controlled): Reimplement the mechanism
3375 which accounts for size vs alignment issues and calculates the size of
3376 the list header.
3377 (Deallocate_Any_Controlled): Ditto.
3378 (Nearest_Multiple_Rounded_Up): New routine.
3379
3380 2011-08-29 Tristan Gingold <gingold@adacore.com>
3381
3382 * a-exstat.adb (String_To_EO): Do no set Cleanup_Flag.
3383 * a-exexda.adb (Set_Exception_C_Msg): Ditto.
3384 (Set_Exception_Msg): Ditto.
3385 * a-exexpr-gcc.adb (Setup_Current_Excep): Ditto. Do not set
3386 Private_Data.
3387 * a-except.adb, a-except-2005.adb (Save_Occurrence_No_Private): Remove.
3388 Use Save_Occurrence instead of Save_Occurrence_No_Private.
3389 (Raise_With_Msg): Remove Cleanup_Flag.
3390 * a-except.ads, a-except-2005.ads (Exception_Occurrence): Remove
3391 Clean_Flag and Private_Data components.
3392
3393 2011-08-29 Yannick Moy <moy@adacore.com>
3394
3395 * freeze.adb (Freeze_Record_Type): Ignore packing in Alfa mode, like
3396 in CodePeer mode.
3397 * sem_ch3.adb (Signed_Integer_Type_Declaration): Correct the generation
3398 of an explicitly declared type, so that the base types of the original
3399 type and this generated type are the same, and a "type" (not a subtype
3400 like previously).
3401 * errout.adb (Special_Msg_Delete): Do not issue messages "Size too
3402 small" in Alfa mode, like in CodePeer mode.
3403 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore rep
3404 clauses in Alfa mode.
3405
3406 2011-08-29 Javier Miranda <miranda@adacore.com>
3407
3408 * exp_ch6.ads, exp_ch6.adb (Is_Null_Procedure): Move the spec of this
3409 function to the package spec.
3410 * sem_ch6.adb (Find_Corresponding_Spec, New_Overloaded_Entity): For
3411 internally generated bodies of null procedures locate the internally
3412 generated spec enforcing mode conformance.
3413 (Is_Interface_Conformant): Ensure that the controlling formal of the
3414 primitives match.
3415
3416 2011-08-29 Ed Schonberg <schonberg@adacore.com>
3417
3418 * sem_prag.adb (Analyze_Pragma, case Inline): In an instance, do not
3419 reject the pragma if it appears to apply to a formal subprogram.
3420
3421 2011-08-29 Ed Schonberg <schonberg@adacore.com>
3422
3423 * exp_ch4.adb (Expand_Allocator_Expression): Use consistent name for
3424 inner expression, to prevent double evaluation.
3425
3426 2011-08-29 Tristan Gingold <gingold@adacore.com>
3427
3428 * a-exexpr.adb (Propagate_Exception): Remove all the parameters as
3429 they were unused.
3430 * a-exexpr-gcc.adb (Propagate_Exception): Ditto.
3431 * a-except-2005.adb (Propagate_Exception): Adjust spec.
3432 (Raise_Current_Excep): Adjust call.
3433 (Raise_From_Signal_Handler): Call now simply call Raise_Current_Excep.
3434
3435 2011-08-29 Thomas Quinot <quinot@adacore.com>
3436
3437 * exp_disp.adb: Minor reformatting.
3438
3439 2011-08-29 Tristan Gingold <gingold@adacore.com>
3440
3441 * a-exexpr.adb (Setup_Exception): Removed.
3442 * a-exexpr-gcc.adb (Setup_Exception): Removed.
3443 * a-except.adb (Exception_Propagation): Removed.
3444 * a-except-2005.adb (Setup_Exception): Removed.
3445 (Reraise): Remove call to Setup_Exception.
3446 (Reraise_Occurrence): Ditto.
3447 (Reraise_Occurrence_Always): Ditto.
3448 (Reraise_Occurrence_No_Defer): Ditto.
3449 (Transfer_Occurrence): Ditto.
3450 * a-exexda.adb (Set_Exception_C_Msg): Remove call to Setup_Exception.
3451 (Set_Exception_Msg): Ditto.
3452
3453 2011-08-29 Robert Dewar <dewar@adacore.com>
3454
3455 * a-convec.adb, exp_disp.adb: Minor reformatting.
3456
3457 2011-08-29 Tristan Gingold <gingold@adacore.com>
3458
3459 * a-exexpr-gcc.adb (GNAT_GCC_Exception_Access): Set to convention C.
3460
3461 2011-08-29 Gary Dismukes <dismukes@adacore.com>
3462
3463 * exp_ch3.adb (Build_Record_Init_Proc.Build_Init_Procedure): Set
3464 Exception_Handlers to No_List instead of Empty_List in the case where
3465 there are no handlers.
3466
3467 2011-08-29 Tristan Gingold <gingold@adacore.com>
3468
3469 * gcc-interface/gigi.h (enum standard_datatypes): Add
3470 ADT_reraise_zcx_decl
3471 (reraise_zcx_decl): New macro.
3472 * gcc-interface/trans.c (gnu_incoming_exc_ptr): New variable.
3473 (gigi): Set reraise_zcx_decl.
3474 (Exception_Handler_to_gnu_zcx): Save and restore gnu_incoming_exc_ptr.
3475 (gnat_to_gnu): Handle N_Raise_Statement.
3476
3477 2011-08-29 Robert Dewar <dewar@adacore.com>
3478
3479 * sem_ch6.adb, exp_ch3.adb, s-stposu.adb, a-undesu.ads,
3480 a-undesu.adb: Minor reformatting.
3481
3482 2011-08-29 Ed Schonberg <schonberg@adacore.com>
3483
3484 * exp_disp.adb (Check_Premature_Freezing): When building a dispatch
3485 table, accept an unfrozen untagged component if it is an actual for a
3486 formal incomplete type.
3487 * a-convec.ads, a-convec.adb: Instantiate Ada.Iterator_Interfaces to
3488 provide new iterator forms over vectors.
3489 Introduce type Iterator in package body to implement operations of
3490 Reversible_Iterator interface.
3491 * a-iteint.ads: Make package pure so it is usable with new container
3492 packages, that are categorized Remote_Types.
3493
3494 2011-08-29 Robert Dewar <dewar@adacore.com>
3495
3496 * a-exexpr-gcc.adb, a-synbar.adb, sem_ch13.adb: Minor reformatting.
3497
3498 2011-08-29 Bob Duff <duff@adacore.com>
3499
3500 * sem_aggr.adb (Resolve_Aggr_Expr): Call this routine even in the case
3501 of <>, because this is the routine that checks for dimensionality
3502 errors (for example, for a two-dimensional array, (others => <>) should
3503 be (others => (others => <>)).
3504
3505 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
3506
3507 * impunit.adb: Add new run-time units.
3508 * freeze.adb, exp_ch7.ads, exp_ch7.adb, exp_util.ads, exp_util.adb,
3509 s-stposu.ads, s-stposu.adb: Code clean up.
3510 Handle protected class-wide or task class-wide types
3511 Handle C/C++/CIL/Java types.
3512 * s-spsufi.adb, s-spsufi.ads: New files.
3513
3514 2011-08-29 Yannick Moy <moy@adacore.com>
3515
3516 * sem_ch13.adb (Analyze_Aspect_Specifications): Reject test-case on
3517 library-level subprogram.
3518 * sem_prag.adb (Check_Test_Case): Stricter rules for test-case
3519 placement.
3520 (Analyze_Pragma): Change name "Normal" for "Nominal" in test-case
3521 component.
3522 * snames.ads-tmpl: Change name "Normal" for "Nominal" in test-case
3523 component.
3524 * gnat_rm.texi: Update doc for Test_Case pragma.
3525
3526 2011-08-29 Tristan Gingold <gingold@adacore.com>
3527
3528 * a-exexpr-gcc.adb (Unwind_Exception): Remove default value, made it
3529 convention C.
3530 (GCC_Exception_Access): New type.
3531 (Unwind_DeleteException): New imported procedure
3532 (Foreign_Exception): Import it.
3533 (GNAT_GCC_Exception): Simply have the occurrence inside.
3534 (To_GCC_Exception): New function.
3535 (To_GNAT_GCC_Exception): New function.
3536 (GNAT_GCC_Exception_Cleanup): New procedure..
3537 (Propagate_GCC_Exception): New procedure.
3538 (Reraise_GCC_Exception): New procedure.
3539 (Setup_Current_Excep): New procedure.
3540 (CleanupUnwind_Handler): Change type of UW_Exception parameter.
3541 (Unwind_RaiseException): Ditto.
3542 (Unwind_ForcedUnwind): Ditto.
3543 (Remove): Removed.
3544 (Begin_Handler): Change type of parameter.
3545 (End_Handler): Ditto. Now delete the exception if still present.
3546 (Setup_Key): Removed.
3547 (Is_Setup_And_Not_Propagated): Removed.
3548 (Set_Setup_And_Not_Propagated): Ditto.
3549 (Clear_Setup_And_Not_Propagated): Ditto.
3550 (Save_Occurrence_And_Private): Ditto.
3551 (EID_For): Add 'not null' constraint on parameter.
3552 (Setup_Exception): Does nothing.
3553 (Propagate_Exception): Simplified.
3554 * exp_ch11.adb (Expand_N_Raise_Statement): In back-end exception model,
3555 re-raise is not expanded anymore.
3556 * s-except.ads (Foreign_Exception): New exception - placeholder for
3557 non Ada exceptions.
3558 * raise-gcc.c (__gnat_setup_current_excep): Declare
3559 (CXX_EXCEPTION_CLASS): Define (not yet used)
3560 (GNAT_EXCEPTION_CLASS): Define.
3561 (is_handled_by): Handle foreign exceptions.
3562 (PERSONALITY_FUNCTION): Call __gnat_setup_current_excep.
3563
3564 2011-08-29 Jose Ruiz <ruiz@adacore.com>
3565
3566 * a-synbar.adb (Synchronous_Barrier): Some additional clarification.
3567
3568 2011-08-29 Thomas Quinot <quinot@adacore.com>
3569
3570 * a-synbar-posix.adb: Minor reformatting.
3571
3572 2011-08-29 Jose Ruiz <ruiz@adacore.com>
3573
3574 * a-exetim-posix.adb, a-exetim-mingw.adb, a-exetim-mingw.ads,
3575 a-exetim-default.ads (Interrupt_Clocks_Supported,
3576 Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these
3577 definitions to be compliant with AI-0171. The target systems do not
3578 support separate account for the execution time of interrupt handlers.
3579
3580 2011-08-29 Jose Ruiz <ruiz@adacore.com>
3581
3582 * a-synbar.adb (Wait): Change the order of evaluation of the conditions
3583 in the barrier to put first the easiest to evaluate (and the one which
3584 will be True more often). More efficient.
3585
3586 2011-08-29 Eric Botcazou <ebotcazou@adacore.com>
3587
3588 * s-atocou-x86.adb: Fix constraint in machine code insertion.
3589
3590 2011-08-29 Bob Duff <duff@adacore.com>
3591
3592 * aspects.ads, aspects.adb: Add new aspects for various pragmas and
3593 attributes that are now aspects, as specified by AI05-0229-1.
3594 * sem_ch13.adb (Analyze_Aspect_Specifications,
3595 Check_Aspect_At_Freeze_Point): Analyze the new aspects. Turn them into
3596 pragmas or attribute references, as appropriate.
3597
3598 2011-08-29 Robert Dewar <dewar@adacore.com>
3599
3600 * a-synbar.ads, a-synbar.adb, a-synbar-posix.adb,
3601 a-synbar-posix.ads: Minor reformatting.
3602
3603 2011-08-29 Yannick Moy <moy@adacore.com>
3604
3605 * snames.ads-tmpl: Add name Force.
3606
3607 2011-08-29 Pascal Obry <obry@adacore.com>
3608
3609 * prj-nmsc.adb: Minor reformatting.
3610
3611 2011-08-29 Jose Ruiz <ruiz@adacore.com>
3612
3613 * a-exetim.ads (Interrupt_Clocks_Supported,
3614 Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these
3615 definitions to be compliant with AI-0171.
3616
3617 2011-08-29 Robert Dewar <dewar@adacore.com>
3618
3619 * a-ngelfu.adb: Add comments.
3620
3621 2011-08-29 Geert Bosch <bosch@adacore.com>
3622
3623 * a-ngelfu.adb (Tan): Do not raise Constraint_Error if the argument is
3624 the closest machine number to Pi / 2.0.
3625
3626 2011-08-29 Jose Ruiz <ruiz@adacore.com>
3627
3628 * impunit.adb (Non_Imp_File_Names_12): Add a-synbar for new Ada 2012
3629 package Ada.Synchronous_Barriers.
3630 * a-synbar.ads, a-synbar.adb, a-synbar-posix.ads, a-synbar-posix.adb:
3631 Add new specs and bodies for Ada.Synchronous_Barriers. There is a
3632 default implementation using protected objects and another one
3633 a-synbar-posix using POSIX barriers as the underlying support.
3634 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for Linux (x86,
3635 x86_64, ia64) and MIPS IRIX): Use the a-synbar-posix implementation of
3636 Ada.Synchronous_Barriers which uses POSIX barriers (more efficient).
3637 Clean up dependencies.
3638 * Makefile.rtl (GNATRTL_TASKING_OBJS): Add a-synbar.o
3639
3640 2011-08-29 Robert Dewar <dewar@adacore.com>
3641
3642 * sem_ch7.adb, make.adb, sem_res.adb, exp_intr.adb,
3643 exp_dist.adb: Minor code reorganization.
3644 Minor reformatting.
3645
3646 2011-08-29 Thomas Quinot <quinot@adacore.com>
3647
3648 * sem_cat.adb (Validate_RACW_Primitive): The return type of an RACW
3649 primitive operation must support external streaming if it is not a
3650 controlling access result.
3651
3652 2011-08-29 Thomas Quinot <quinot@adacore.com>
3653
3654 * sinfo.ads, sem_ch7.adb: Minor reformatting.
3655
3656 2011-08-29 Bob Duff <duff@adacore.com>
3657
3658 * sem_ch4.adb (Analyze_Allocator): Check No_Nested_Finalization
3659 restriction on allocators, as required by AI05-0013-1.
3660 * restrict.ads: Minor comment fix.
3661
3662 2011-08-29 Tristan Gingold <gingold@adacore.com>
3663
3664 * a-exexpr.adb, a-except-2005.ads (Jmpbuf_Address): Move to a-exexpr.adb
3665 (To_Jmpbuf_Address): Ditto
3666 (builtin_longjmp): Ditto
3667
3668 2011-08-29 Thomas Quinot <quinot@adacore.com>
3669
3670 * sem_res.adb: Minor reformatting.
3671
3672 2011-08-29 Vincent Celier <celier@adacore.com>
3673
3674 * make.adb (Gnatmake): Move special processing for VM targets after the
3675 call to Get_Target_Parameters.
3676
3677 2011-08-29 Thomas Quinot <quinot@adacore.com>
3678
3679 * sem_ch12.adb, par-ch12.adb: Minor reformatting.
3680
3681 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
3682
3683 * sem_res.adb (Resolve_Allocator): Implement Ada2012-B052. Detect cases
3684 where an anonymous access discriminant of a limited designated type
3685 appears in a non-immutably limited discriminated type and issue an
3686 error message. Add local variable Desig_T and replace all occurrences
3687 of Designated_Type.
3688
3689 2011-08-29 Jose Ruiz <ruiz@adacore.com>
3690
3691 * a-rttiev.adb (Set_Handler): Update comment to indicate that our
3692 implementation is compliant to RM D.15(15/2) after the modification
3693 imposed by AI05-0094-1 (binding interpretation).
3694
3695 2011-08-29 Robert Dewar <dewar@adacore.com>
3696
3697 * exp_ch9.adb, s-tasren.adb, exp_sel.adb, exp_sel.ads, exp_ch11.adb,
3698 s-interr-hwint.adb, s-tpobop.adb, sem_ch13.adb: Minor reformatting.
3699
3700 2011-08-29 Thomas Quinot <quinot@adacore.com>
3701
3702 * par-endh.adb (Check_End): For an END where it is mandatory to repeat
3703 the scope name, do not report a missing label as a style violation (it
3704 will be diagnosed as an illegality).
3705 * exp_dist.adb (Add_Params_For_Variant_Components): Fix handling of
3706 variant records: Get_Enum_Lit_From_Pos already returns a usage
3707 occurrence of the literal, no need to use New_Occurrence_Of. Set Etype
3708 on Expr in Integer_Literal case so that it can be used by
3709 Build_To_Any_Call.
3710
3711 2011-08-29 Tristan Gingold <gingold@adacore.com>
3712
3713 * exp_sel.ads (Build_Abort_BLock_Handler): New function spec.
3714 Adjust comment.
3715 * exp_sel.adb (Build_Abort_Block): Use Build_Abort_Block_Handler.
3716 (Build_Abort_Block_Handler): New function to build an Abort_Signal
3717 exception handler.
3718 * exp_ch9.adb (Expand_N_Asynchronous_Select): Call
3719 Build_Abort_Block_Handler to build the exception handler. Do not
3720 undefer aborts for the Abort_Signal exception handler if back-end
3721 exception mechanism.
3722 * exp_ch11.adb (Expand_Exception_Handlers): Do not undefer aborts if
3723 back_end exceptions for all others and abort_signal.
3724 * s-except.ads (ZCX_By_Default): New constant.
3725 * a-except-2005.adb (Raise_Exception): Do not defer abort if ZCX.
3726 (Raise_Exception_Always): Ditto.
3727 (Raise_From_Signal_Handler): Ditto.
3728 (Raise_With_Location_And_Msg): Ditto.
3729 (Raise_With_Msg): Ditto.
3730 (Reraise): Ditto.
3731 (Reraise_Occurence): Ditto.
3732 (Reraise_Occurrence_Always): Ditto.
3733 * s-tasren.adb (Exceptional_Complete_Rendezvous): Defer aborts if ZCX.
3734 * s-tpobop.adb: (Exceptional_Complete_Body): Undefer abort if ZCX.
3735
3736 2011-08-29 Thomas Quinot <quinot@adacore.com>
3737
3738 * sem_util.ads (Get_Enum_Lit_From_Pos): Clarify documentation.
3739
3740 2011-08-29 Robert Dewar <dewar@adacore.com>
3741
3742 * snames.adb-tmpl, sem_ch13.adb: Minor reformatting
3743 Minor code reorganization.
3744
3745 2011-08-29 Bob Duff <duff@adacore.com>
3746
3747 * usage.adb (-gnatwy): Fix documentation: this switch applies to Ada
3748 2012, not just Ada 2005.
3749
3750 2011-08-29 Vincent Celier <celier@adacore.com>
3751
3752 * gnat_ugn.texi: Indicate that when the compiler is called by gnatmake
3753 with a project file or with gprbuid, if -gnatep= is specified, the
3754 builder may need to be invoked with -x.
3755
3756 2011-08-29 Tristan Gingold <gingold@adacore.com>
3757
3758 * a-exexpr-gcc.adb: Minor comment fix.
3759
3760 2011-08-29 Robert Dewar <dewar@adacore.com>
3761
3762 * sem_ch8.adb: Minor reformatting.
3763
3764 2011-08-29 Bob Duff <duff@adacore.com>
3765
3766 * par-ch2.adb (P_Identifier): Warn that "some" is reserved in Ada 2012.
3767 * par-ch4.adb (P_Quantified_Expression): Remove unnecessary code for
3768 treating "some" as unreserved in earlier Ada versions. This is now
3769 handled in Snames.Is_Keyword_Name. Parse "for some" using Tok_Some,
3770 rather than Name_Some, since Tok_Some is now recognized as reserved.
3771 * scans.adb (Initialize_Ada_Keywords): Handle Tok_Some like any other
3772 reserved word.
3773 * scans.ads: Minor comment fixes.
3774 * snames.adb-tmpl (Is_Keyword_Name): Handle Ada 2012 reserved words as
3775 for other language versions.
3776 * scn.adb (Scan_Reserved_Identifier): Remove unnecessary code for
3777 treating "some" as unreserved in earlier Ada versions. This is now
3778 handled in Snames.Is_Keyword_Name.
3779 * par-ch3.adb (P_Defining_Identifier): Warn that "some" is reserved in
3780 Ada 2012.
3781 (P_Subtype_Mark_Resync): Remove unnecessary code for treating "some" as
3782 unreserved in earlier Ada versions. This is now handled in
3783 Snames.Is_Keyword_Name.
3784 * snames.ads-tmpl (Ada_2012_Reserved_Words): Handle Ada 2012 reserved
3785 words as for other language versions.
3786 * gnat_ugn.texi (-gnatwy): Fix documentation: this switch applies to
3787 Ada 2012, not just Ada 2005.
3788
3789 2011-08-29 Ed Schonberg <schonberg@adacore.com>
3790
3791 * sem_ch13.adb: Additional semantic checks for aspects involved in
3792 iterators.
3793
3794 2011-08-29 Matthew Heaney <heaney@adacore.com>
3795
3796 * a-comutr.ads, a-comutr.adb, a-cimutr.ads, a-cimutr.adb,
3797 a-cbmutr.ads, a-cbmutr.adb (Find_In_Subtree): Remove superfluous
3798 Container parameter.
3799 (Ancestor_Find): ditto.
3800
3801 2011-08-29 Thomas Quinot <quinot@adacore.com>
3802
3803 * par-endh.adb: Minor reformatting.
3804
3805 2011-08-29 Tristan Gingold <gingold@adacore.com>
3806
3807 * a-exexpr-gcc.adb (Unwind_Action) Rewrite as an integer with constants.
3808 (GNAT_GCC_Exception): Remove N_Cleanups_To_Trigger component.
3809 (Adjust_N_CLeanups_For): Remove.
3810 (CleanupUnwind_Handler): Call Unhandled_Exception_Terminate when end of
3811 stack is reached.
3812 (Propgate_Exception): Adjust.
3813 * raise-gcc.c: Add a few static/const.
3814 (Adjust_N_Cleanups_For): Remove declaration.
3815 (PERSONALITY_FUNCTION): Remove code dealing with N_Cleanups_To_Trigger.
3816
3817 2011-08-29 Ed Schonberg <schonberg@adacore.com>
3818
3819 * sem_ch8.adb: Use type of function return when rewriting as object
3820 declaration.
3821
3822 2011-08-29 Gary Dismukes <dismukes@adacore.com>
3823
3824 * sem_type.adb: Minor reformatting.
3825
3826 2011-08-29 Robert Dewar <dewar@adacore.com>
3827
3828 * makeutl.adb: Minor reformatting.
3829
3830 2011-08-29 Ed Schonberg <schonberg@adacore.com>
3831
3832 * sem_ch8.adb (Analyze_Object_Renaming): If the renamed object is a
3833 function call of a limited type, the expansion of the renaming is
3834 complicated by the presence of various temporaries and subtypes that
3835 capture constraints of the renamed object.
3836 Rewrite node as an object declaration, whose expansion is simpler.
3837 Given that the object is limited there is no copy involved and no
3838 performance hit.
3839
3840 2011-08-29 Robert Dewar <dewar@adacore.com>
3841
3842 * exp_ch5.adb, sinfo.ads, make.adb, s-pooglo.adb, sem_ch12.adb,
3843 freeze.adb, sem_ch6.adb, par-ch12.adb: Minor reformatting.
3844
3845 2011-08-29 Tristan Gingold <gingold@adacore.com>
3846
3847 * system-darwin-x86.ads, system-linux-s390x.ads, system-linux-alpha.ads,
3848 system-tru64.ads, system-irix-n32.ads, system-vxworks-arm.ads,
3849 system-linux-hppa.ads, system-linux-s390.ads,
3850 system-solaris-sparcv9.ads, system-mingw.ads, system-linux-ia64.ads,
3851 system-vms_64.ads, system-vxworks-sparcv9.ads, system-linux-ppc.ads,
3852 system-aix64.ads, system-lynxos-ppc.ads, system-linux-sh4.ads,
3853 system-solaris-x86.ads, system-linux-x86_64.ads, system-linux-x86.ads,
3854 system-vxworks-ppc.ads, system-hpux.ads, system-darwin-ppc.ads,
3855 system-solaris-sparc.ads, system-lynxos-x86.ads,
3856 system-vxworks-m68k.ads, system-hpux-ia64.ads, system-irix-o32.ads,
3857 system-solaris-x86_64.ads, system-mingw-x86_64.ads,
3858 system-vxworks-mips.ads, system-linux-sparc.ads, system-vms-ia64.ads,
3859 system-freebsd-x86.ads, system-aix.ads, system-darwin-x86_64.ads,
3860 system-vxworks-x86.ads: Remove GCC_ZCX_Support.
3861 * s-taprop-posix.adb, s-taprop-irix.adb, s-taprop-vxworks.adb,
3862 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb: Ditto.
3863 * opt.ads: Adjust comment.
3864 * targparm.ads, targparm.adb: Remove GCC_ZCX_Support_On_Target.
3865 * gnat1drv.adb: Do not check for GCC_ZCX_Support_On_Target.
3866 * system.ads: Move GCC_ZCX_Support to obsolete entries.
3867
3868 2011-08-29 Emmanuel Briot <briot@adacore.com>
3869
3870 * makeutl.adb (Do_Complete): Resolve symbolic links when a relative
3871 file name is specified on the gnatmake or gprbuild command line, and
3872 before we search for that file in the project.
3873
3874 2011-08-29 Ed Schonberg <schonberg@adacore.com>
3875
3876 * sem_type.adb (Within_Instance): New predicate in Collect_Interps,
3877 used to determine whether a possible interpretation for an overloadable
3878 entity is declared within the current instantiation and should be
3879 included in the candidate set.
3880
3881 2011-08-29 Vasiliy Fofanov <fofanov@adacore.com>
3882
3883 * gnat_rm.texi, gnat_ugn.texi: Clean ups.
3884
3885 2011-08-29 Ed Schonberg <schonberg@adacore.com>
3886
3887 * sem_res.adb (Resolve_Actuals): Use base type to determine whether an
3888 access subtype is access_to_subprogram, when applying checks for
3889 RM 3.10.2 (27).
3890
3891 2011-08-29 Matthew Heaney <heaney@adacore.com>
3892
3893 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Splice_Subtree): Only check
3894 for sibling when common parent.
3895
3896 2011-08-29 Thomas Quinot <quinot@adacore.com>
3897
3898 * get_scos.adb: Literals of Pragma_Id are pragma names prefixed with
3899 "pragma_".
3900
3901 2011-08-29 Ed Schonberg <schonberg@adacore.com>
3902
3903 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Enable freeze actions
3904 for the return type when in ASIS mode.
3905
3906 2011-08-29 Vincent Celier <celier@adacore.com>
3907
3908 * make.adb (Gnatmake): Get the default search dirs, then the target
3909 parameters after getting the Builder switches, as the Builder switches
3910 may include --RTS= and that could change the default search dirs.
3911
3912 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
3913
3914 * exp_ch7.adb (Make_Adjust_Call): Rewrite to mimic the structure of
3915 Make_Final_Call. Move the processing for class-wide types before the
3916 processing for derivations from [Limited_]Controlled.
3917 (Make_Final_Call): Move the processing for class-wide types before the
3918 processing for derivations from [Limited_]Controlled.
3919 * s-stposu.adb (Allocate_Any_Controlled): Correct the membership check.
3920 Add code to account for alignments larger than the list header. Add a
3921 comment illustrating the structure of the allocated object + padding +
3922 header.
3923 (Deallocate_Any_Controlled): Add code to account for alignments larger
3924 than the list header.
3925
3926 2011-08-29 Ed Schonberg <schonberg@adacore.com>
3927
3928 * sinfo.ads, sinfo.adb: New node kind
3929 N_Formal_Incomplete_Type_Definition, related flags.
3930 par-ch12.adb (P_Formal_Type_Declaration, G_Formal_Type_Definition):
3931 Parse formal incomplete types.
3932 * sem.adb (Analyze): Formal_Incomplete_Type_Definitions are handled in
3933 sem_ch12.
3934 * sem_ch7.adb (Analyze_Package_Specification, Unit_Requires_Body):
3935 Formal incomplete types do not need completion.
3936 * sem_ch12.adb (Analyze_Formal_Incomplete_Type,
3937 Validate_Incomplete_Type_Instance): New procedures to handle formal
3938 incomplete types.
3939 * freeze.adb (Freeze_Entity): Do not freeze the subtype of an actual
3940 that corresponds to a formal incomplete type.
3941 * sprint.adb: Handle formal incomplete type declarations.
3942 * exp_util.adb (Insert_Actions): An incomplete_type_definition is not
3943 an insertion point.
3944
3945 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
3946
3947 * a-fihema.ads, a-fihema.adb: Unit removed.
3948 * a-undesu.ads, a-undesu.adb: New unit implementing
3949 Ada.Unchecked_Deallocate_Subpool.
3950 * einfo.adb: Remove Associated_Collection from the node usage.
3951 Add Finalization_Master to the node usage.
3952 (Associated_Collection): Removed.
3953 (Finalization_Master): New routine.
3954 (Set_Associated_Collection): Removed.
3955 (Set_Finalization_Master): New routine.
3956 (Write_Field23_Name): Remove Associated_Collection from the output. Add
3957 Finalization_Master to the output.
3958 * einfo.ads: Remove attribute Associated_Collection and its uses in
3959 entities.
3960 Add new attribute Finalization_Master along with its uses in entitites.
3961 (Associated_Collection): Removed along with its pragma import.
3962 (Finalization_Master): New routine along with a pragma import.
3963 (Set_Associated_Collection): Removed along with its pragma import.
3964 (Set_Finalization_Master): New routine along with a pragma import.
3965 * exp_ch3.adb (Expand_Freeze_Array_Type): Replace call to
3966 Build_Finalization_Collection with Build_Finalization_Master.
3967 (Expand_Freeze_Record_Type): Move the generation of Finalize_Address
3968 before the bodies of the predefined routines. Add comment explaining
3969 this. Replace call to Build_Finalization_Collection with
3970 Build_Finalization_Master.
3971 (Freeze_Type): Replace call to Build_Finalization_Collection with
3972 Build_Finalization_Master.
3973 (Make_Finalize_Address_Body): Comment reformatting.
3974 (Make_Predefined_Primitive_Specs): Code reformatting.
3975 (Stream_Operation_OK): Update comment mentioning finalization
3976 collections. Replace RE_Finalization_Collection with
3977 RE_Finalization_Master.
3978 * exp_ch4.adb (Complete_Controlled_Allocation): Replace call to
3979 Associated_Collection with Finalization_Master. Replace call to
3980 Build_Finalization_Collection with Build_Finalization_Master.
3981 (Expand_Allocator_Expression): Replace call to Associated_Collection
3982 with Finalization_Master. Replace call to Set_Associated_Collection with
3983 Set_Finalization_Master. Remove the generation of
3984 Set_Finalize_Address_Ptr.
3985 (Expand_N_Allocator): Replace call to Associated_Collection with
3986 Finalization_Master. Remove the generation of Set_Finalize_Address_Ptr.
3987 * exp_ch6.adb (Add_Collection_Actual_To_Build_In_Place_Call): Renamed to
3988 Add_Finalization_Master_Actual_To_Build_In_Place_Call. Update the
3989 comment on usage. Replace call to Needs_BIP_Collection with
3990 Needs_BIP_Finalization_Master Remplace BIP_Collection with
3991 BIP_Finalization_Master. Update all comments which mention finalization
3992 collections. Replace Associated_Collection with
3993 Finalization_Master. Replace Build_Finalization_Collection with
3994 Build_Finalization_Master.
3995 (BIP_Formal_Suffix): Update BIP_Collection's case.
3996 (Build_Heap_Allocator): Update the related comment. Rename local
3997 variable Collect to Fin_Mas_Id and update its occurrences. Update
3998 comments which mention finalization collections. Replace
3999 Set_Associated_Collection with Set_Finalization_Master.
4000 (Expand_Call): Update the code which detects a special piece of library
4001 code for .NET/JVM.
4002 (Make_Build_In_Place_Call_In_Allocator): Replace the call to
4003 Add_Collection_Actual_To_Build_In_Place_Call with
4004 Add_Finalization_Master_Actual_To_Build_In_Place_Call. Remove the code
4005 which generates a call to Make_Set_Finalize_Address_Ptr_Call.
4006 (Make_Build_In_Place_Call_In_Anonymous_Context): Replace call to
4007 Add_Collection_Actual_To_Build_In_Place_Call with
4008 Add_Finalization_Master_Actual_To_Build_In_Place_Call.
4009 (Make_Build_In_Place_Call_In_Assignment): Replace call to
4010 Add_Collection_Actual_To_Build_In_Place_Call with
4011 Add_Finalization_Master_Actual_To_Build_In_Place_Call.
4012 (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master.
4013 * exp_ch6.ads: Rename BIP_Collection to BIP_Finalization_Master.
4014 (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master.
4015 * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Update comment on usage.
4016 Rename local variable Collect to Fin_Mas_Id and update its occurrences.
4017 Replace call to Set_Associated_Collection with Set_Finalization_Master.
4018 (Build_Finalization_Collection): Renamed to Build_Finalization_Master.
4019 Replace the call to Associated_Collection with Finalization_Master.
4020 Rename local variable Coll_Id to Fin_Mas_Id and update its occurrences.
4021 Update the way finalization master names are generated. Update the
4022 retrieval of the correct access type which will carry the pool and
4023 master attributes.
4024 (Make_Final_Call): Reimplement the way [Deep_]Finalize is retrieved.
4025 (Make_Finalize_Address_Body): Abstract types do not need
4026 Finalize_Address. Code reformatting.
4027 (Make_Finalize_Address_Stmts): Update comment on usage.
4028 (Make_Set_Finalize_Address_Ptr_Call): Removed.
4029 (Process_Declarations): Update comments.
4030 * exp_ch7.ads (Build_Finalization_Collection): Renamed to
4031 Build_Finalization_Master. Update associated comment.
4032 (Make_Set_Finalize_Address_Ptr_Call): Removed.
4033 * exp_ch13.adb: Update comments which mention finalization collections.
4034 (Expand_N_Free_Statement): Replace the call to Associated_Collection
4035 with Finalization_Master.
4036 * exp_util.adb (Build_Allocate_Deallocate_Proc): Reimplemented to
4037 create calls to routines Allocate_Any_Controlled and
4038 Deallocate_Any_Controlled.
4039 (Find_Finalize_Address): New routine.
4040 (Is_Allocate_Deallocate_Proc): Update the RTE entities used in the
4041 comparison.
4042 (Requires_Cleanup_Actions): Update the comment on freeze node
4043 inspection.
4044 * exp_util.ads: Remove comment on generated code for
4045 Build_Allocate_Deallocate_Proc. The code is now quite complex and it
4046 is better to simply look in the body.
4047 * freeze.adb (Freeze_All): Update the comment of finalization
4048 collections. Replace the call to Associated_Collection with
4049 Finalization_Master. Replace the call to Build_Finalization_Collection
4050 with Build_Finalization_Master.
4051 * impunit.adb: Add a-undesu and s-stposu to the list of units.
4052 * Makefile.rtl: Add files a-undesu, s-finmas and s-stposu. Remove file
4053 a-fihema.
4054 * rtsfind.adb (Get_Unit_Name): Remove the processing for children of
4055 Ada.Finalization. Add processing for children of System.Storage_Pools.
4056 * rtsfind.ads: Remove the naming of second level children of
4057 Ada.Finalization.
4058 Remove Ada_Finalization_Heap_Management from the list of units.
4059 Remove subtype Ada_Finalization_Child.
4060 Remove the following subprogram entities:
4061
4062 RE_Allocate
4063 RE_Deallocate
4064 RE_Finalization_Collection
4065 RE_Finalization_Collection_Ptr
4066 RE_Set_Finalize_Address_Ptr
4067
4068 Add the naming of second level children of System.Storage_Pools.
4069 Add System_Finalization_Masters and System_Storage_Pools_Subpools to
4070 the list of units.
4071 Add subtype System_Storage_Pools_Child.
4072 Add the following subprogram entities to System.Finalization_Masters:
4073
4074 RE_Finalization_Master
4075 RE_Finalization_Master_Ptr
4076
4077 Add the following subprogram entities to System.Storage_Pools.Subpools:
4078
4079 RE_Allocate_Any_Controlled
4080 RE_Deallocate_Any_Controlled
4081 RE_Root_Storage_Pool_With_Subpools
4082 RE_Root_Subpool
4083 RE_Subpool_Handle
4084
4085 Move the following subprogram entities from
4086 Ada.Finalization.Heap_Management to System.Finalization_Masters:
4087
4088 RE_Add_Offset_To_Address
4089 RE_Attach
4090 RE_Base_Pool
4091 RE_Detach
4092
4093 * sem_ch3.adb (Access_Type_Declaration): Replace the call to
4094 Set_Associated_Collection with Set_Finalization_Master.
4095 * sem_ch6.adb (Create_Extra_Formals): Update the way extra formal
4096 BIP_Finalization_Master is created.
4097 * s-finmas.adb: New unit System.Finalization_Masters.
4098 * s-finmas.ads: New unit System.Finalization_Masters.
4099 * s-stopoo.ads, s-stopoo.adb: Minor code reformatting.
4100 * s-stposu.ads, s-stposu.adb: New unit implementing
4101 System.Storage_Pools.Subpools.
4102
4103 2011-08-29 Bob Duff <duff@adacore.com>
4104
4105 * tbuild.adb: Add assertion.
4106
4107 2011-08-29 Thomas Quinot <quinot@adacore.com>
4108
4109 * s-pooglo.adb: Minor reformatting.
4110
4111 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4112
4113 * exp_ch5.adb (Expand_N_Assignment_Statement): if the left-hand side is
4114 an indexed component of a packed array whose element type is a record
4115 with a representation clause different from that of the right-hand
4116 side, generate a temporary to minimuze the number of bit-field
4117 operations generated.
4118
4119 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4120
4121 * exp_util.adb (Insert_Actions): Use clauses can be part of lists of
4122 declarations, and thus are likely insertion points for actions.
4123
4124 2011-08-29 Bob Duff <duff@adacore.com>
4125
4126 * einfo.ads: Minor comment fix.
4127
4128 2011-08-29 Robert Dewar <dewar@adacore.com>
4129
4130 * frontend.adb, gnat1drv.adb: Minor reformatting.
4131
4132 2011-08-29 Tristan Gingold <gingold@adacore.com>
4133
4134 * s-pooglo.adb (Allocate, Deallocate): Take into account the alignment.
4135 * a-fihema.adb (Allocate, Deallocate): Ditto. Possibly add padding
4136 space in front of the header.
4137
4138 2011-08-29 Johannes Kanig <kanig@adacore.com>
4139
4140 * frontend.adb (Frontend): Exit after creating Standard package when
4141 -gnatd.H is present.
4142 * gnat1drv.adb (Gnat1drv): Call Backend right away when -gnatd.H is
4143 present.
4144
4145 2011-08-29 Robert Dewar <dewar@adacore.com>
4146
4147 * exp_ch9.adb, mlib-prj.adb, prj.adb, prj.ads, ttypes.ads, sem_ch4.adb,
4148 makeutl.adb, makeutl.ads, atree.ads, snames.adb-tmpl,
4149 snames.ads-tmpl: Minor reformatting.
4150
4151 2011-08-29 Philippe Gil <gil@adacore.com>
4152
4153 * prj.adb (Reset_Units_In_Table): New procedure.
4154 Reset units to avoid access to freed memory.
4155
4156 2011-08-29 Thomas Quinot <quinot@adacore.com>
4157
4158 * get_scos.adb: When reading a P statement SCO without a pragma name
4159 (from an older ALI file), ensure that the Pragma_Name component is set
4160 to Unknown_Pragma (not left uninitialized).
4161
4162 2011-08-29 Vincent Celier <celier@adacore.com>
4163
4164 * makeutl.adb (Get_Directories): New procedure moved from Buildgpr and
4165 modified to compute correctly the object path of a SAL project that is
4166 extending another library project.
4167 (Write_Path_File): New procedure.
4168 * makeutl.ads (Directories): New table moved from Buildgpr
4169 (Get_Directories): New procedure moved from Buildgpr
4170 (Write_Path_File): New procedure
4171 * mlib-prj.adb (Build_Library): Use Makeutl.Get_Directories to set the
4172 paths before binding SALs, instead of Set_Ada_Paths.
4173 * prj-env.adb (Set_Path_File_Var): Procedure has been moved to package
4174 Prj.
4175 * prj.adb (Set_Path_File_Var): New procedure moved from Prj.Env
4176 (Current_Source_Path_File_Of): New function
4177 (Set_Current_Object_Path_File_Of): New procedure
4178 (Current_Source_Object_File_Of): New function
4179 (Set_Current_Object_Path_File_Of): New procedure
4180 * prj.ads (Set_Path_File_Var): New procedure moved from Prj.Env
4181 (Current_Source_Path_File_Of): New function
4182 (Set_Current_Object_Path_File_Of): New procedure
4183 (Current_Source_Object_File_Of): New function
4184 (Set_Current_Object_Path_File_Of): New procedure
4185
4186 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4187
4188 * exp_ch5.adb (Expand_N_Assignment_Statement): For an assignment to a
4189 packed entity, use a bit-field assignment only if there is no change of
4190 representation.
4191
4192 2011-08-29 Thomas Quinot <quinot@adacore.com>
4193
4194 * rtsfind.ads, exp_ch3.adb (In_Runtime): Minor code improvement, use
4195 Is_RTU instead of using Chars comparisons.
4196
4197 2011-08-29 Thomas Quinot <quinot@adacore.com>
4198
4199 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do not create a
4200 temporary object if the actual is constrained, and the discriminants
4201 read from the stream don't match.
4202
4203 2011-08-29 Tristan Gingold <gingold@adacore.com>
4204
4205 * sem_attr.adb, exp_attr.adb: Add handling of
4206 Attribute_System_Allocator_Alignment
4207 * snames.ads-tmpl: Add Name_System_Allocator_Alignment and
4208 Attribute_System_Allocator_Alignment.
4209 * ttypes.ads, get_targ.ads: Add Get_System_Allocator_Alignment.
4210 * gcc-interface/targtyps.c, gcc-interface/utils2.c,
4211 gcc-interface/gigi.h: Renames get_target_default_allocator_alignment to
4212 get_target_system_allocator_alignment.
4213
4214 2011-08-29 Arnaud Charlet <charlet@adacore.com>
4215
4216 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
4217 dependencies.
4218
4219 2011-08-29 Arnaud Charlet <charlet@adacore.com>
4220
4221 * exp_ch3.adb (In_Runtime): Fix typo.
4222
4223 2011-08-29 Bob Duff <duff@adacore.com>
4224
4225 * sem_ch4.adb (Analyze_Allocator): Analyze the subpool specification.
4226
4227 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4228
4229 * exp_ch3.adb (Expand_N_Object_Declaration): If the entity is tagged
4230 and a separate tag assignment is generated, ensure that the tag
4231 assignment is analyzed.
4232
4233 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4234
4235 * atree.ads, atree.adb (Copy_Separate_List): New function that applies
4236 Copy_Separate_Tree to a list of nodes. Used to create disjoint copies
4237 of statement lists that may contain local declarations.
4238 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Use Copy_Separate_List to
4239 duplicate the triggering statements needed for the expansion of this
4240 construct, when the trigger is a dispatching call to a synchronized
4241 primitive.
4242
4243 2011-08-29 Arnaud Charlet <charlet@adacore.com>
4244
4245 * gnat_rm.texi: Add doc for 'Elab_Subp_Body.
4246 * bindgen.adb: Add comments.
4247 * snames.adb-tmpl (Is_Attribute_Name): Only recognize 'Elab_Subp_Body
4248 in CodePeer mode.
4249
4250 2011-08-29 Robert Dewar <dewar@adacore.com>
4251
4252 * exp_attr.adb: Minor reformatting.
4253 Minor code reorganization and commenting.
4254 * par_sco.adb, checks.adb, sem_attr.adb, get_scos.adb: Minor
4255 reformatting.
4256
4257 2011-08-29 Thomas Quinot <quinot@adacore.com>
4258
4259 * get_scos.adb: Ignore chaining indicators not currently supported
4260 by Ada.
4261
4262 2011-08-29 Arnaud Charlet <charlet@adacore.com>
4263
4264 * system.ads: Minor editing.
4265
4266 2011-08-29 Arnaud Charlet <charlet@adacore.com>
4267
4268 * bindgen.adb (Gen_Elab_Calls): Generate calls to subp'Elab_Subp_Body in
4269 CodePeer mode.
4270 * sem_attr.ads, sem_attr.adb, exp_Attr.adb, sem_ch6.adb: Add handling of
4271 Attribute_Elab_Subp_Body.
4272 * snames.ads-tmpl (Attribute_Elab_Subp_Body, Name_Elab_Subp_Body): New.
4273 * sem_util.adb: Update comments.
4274
4275 2011-08-29 Thomas Quinot <quinot@adacore.com>
4276
4277 * par_sco.adb, scos.adb, scos.ads, put_scos.adb, get_scos.adb: Record
4278 pragma name for each SCO statement corresponding to a pragma.
4279
4280 2011-08-29 Arnaud Charlet <charlet@adacore.com>
4281
4282 * opt.ads: Minor editing.
4283
4284 2011-08-29 Yannick Moy <moy@adacore.com>
4285
4286 * gnat1drv.adb (Adjust_Global_Switches): Remove options for ALFA mode
4287 that only made sense for CodePeer mode.
4288
4289 2011-08-29 Jose Ruiz <ruiz@adacore.com>
4290
4291 * targparm.ads (Support_64_Bit_Divides_On_Target): Remove this flag
4292 which is no longer used.
4293 * targparm.adb (S64, S64_Str, Get_Target_Parameters): Remove the
4294 handling of the 64-bit division check.
4295 * exp_ch4.adb (Expand_N_Op_Divide): Remove the check for 64-bit
4296 division available.
4297 * system*.ads (Support_64_Bit_Divides): Remove this flag which is no
4298 longer used.
4299
4300 2011-08-29 Thomas Quinot <quinot@adacore.com>
4301
4302 * get_scos.adb: Minor reformatting.
4303
4304 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
4305
4306 * exp_util.adb (Process_Statements_For_Controlled_Objects): Whenever a
4307 statement list is wrapped in a block, the block is explicitly analyzed
4308 in order to properly redecorate the entities and create a servicing
4309 finalizer.
4310
4311 2011-08-29 Tristan Gingold <gingold@adacore.com>
4312
4313 * sinfo.ads, sinfo.adb (Zero_Cost_Handling): Remove.
4314 (Set_Zero_Cost_Handling): Remove.
4315
4316 2011-08-29 Thomas Quinot <quinot@adacore.com>
4317
4318 * par_sco.adb, scos.ads, put_scos.adb, get_scos.adb: Minor reformatting
4319
4320 2011-08-29 Geert Bosch <bosch@adacore.com>
4321
4322 * s-vaflop-vms-alpha.adb (Neg_F): Use subtraction instead of negation
4323 instruction, as the latter may produce -0.0, which is not a valid VAX
4324 F float number.
4325 (Neg_G): Likewise for VAX F float.
4326
4327 2011-08-29 Robert Dewar <dewar@adacore.com>
4328
4329 * exp_util.adb: Minor reformatting.
4330
4331 2011-08-29 Yannick Moy <moy@adacore.com>
4332
4333 * sem_ch3.adb: Minor comment update.
4334
4335 2011-08-29 Thomas Quinot <quinot@adacore.com>
4336
4337 * checks.adb (Apply_Type_Conversion_Checks): Use the Underlying_Type of
4338 the operand type.
4339
4340 2011-08-29 Thomas Quinot <quinot@adacore.com>
4341
4342 * par_sco.adb (Traverse_Declarations_Or_Statements): Do not flush
4343 current statement sequence on a generic instantiation or a subprogram
4344 declaration.
4345
4346 2011-08-29 Robert Dewar <dewar@adacore.com>
4347
4348 * sem_type.adb, einfo.ads, freeze.adb, exp_ch4.adb, sem_ch13.adb:
4349 Minor reformatting.
4350
4351 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
4352
4353 * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)):
4354 Correct the check which involves the freeze node of a controlled or
4355 access-to-controlled type.
4356
4357 2011-08-29 Geert Bosch <bosch@adacore.com>
4358
4359 * sem_warn.adb (Check_Code_Statement): Remove check for consecutive Asm
4360 statements.
4361 * s-vaflop-vms-alpha.adb: Remove bogus Volatile => True arguments from
4362 Asm statements.
4363
4364 2011-08-29 Yannick Moy <moy@adacore.com>
4365
4366 * sem_ch3.adb (Array_Type_Declaration): Insert a subtype declaration
4367 for every index type and component type that is not a subtype_mark.
4368 (Process_Subtype): Set Etype of subtype.
4369
4370 2011-08-29 Robert Dewar <dewar@adacore.com>
4371
4372 * a-cbmutr.adb, a-cimutr.adb, a-comutr.adb, prj-nmsc.adb: Minor code
4373 reorganization. Minor reformatting.
4374
4375 2011-08-29 Steve Baird <baird@adacore.com>
4376
4377 * exp_ch4.adb (Expand_N_Op_Expon): Suppress N_Op_Expon node expansion
4378 for CodePeer and ALFA modes.
4379
4380 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4381
4382 * sem_type.adb (Collect_Interps): Within an instance, collect a homonym
4383 that comes from an enclosing scope if it is not the renaming of an
4384 actual, to handle properly a spurious ambiguity in an instance.
4385
4386 2011-08-29 Eric Botcazou <ebotcazou@adacore.com>
4387
4388 * sem_ch13.adb (Alignment_Check_For_Esize_Change): Rename to...
4389 (Alignment_Check_For_Size_Change): ...this. Add SIZE parameter and
4390 use it instead of the Esize of the first parameter.
4391 (Analyze_Attribute_Definition_Clause) <Object_Size>: Adjust call to
4392 above change.
4393 <Size>: Likewise. Call it for composite types on the RM size.
4394
4395 2011-08-29 Yannick Moy <moy@adacore.com>
4396
4397 * exp_ch4.adb (Expand_N_Op_Not): Do not expand not on array.
4398 * sem_util.adb (Unique_Name): Correct behaviour for names of
4399 compilation units.
4400
4401 2011-08-29 Yannick Moy <moy@adacore.com>
4402
4403 * sem_prag.adb (Check_Precondition_Postcondition): In formal
4404 verification mode, analyze pragma expression for correctness, for
4405 pre/post on library-level subprogram, as it is not expanded later.
4406
4407 2011-08-29 Yannick Moy <moy@adacore.com>
4408
4409 * exp_aggr.adb (Expand_Array_Aggregate): Do not expand array aggregates
4410 in formal verification.
4411
4412 2011-08-29 Thomas Quinot <quinot@adacore.com>
4413
4414 * sem_util.adb: Minor reformatting.
4415 * freeze.adb, sem_ch13.adb: Fix comment: Bit_Order is an attribute,
4416 there's no pragma.
4417 * par_sco.ads, par_sco.adb: Update comments.
4418
4419 2011-08-29 Yannick Moy <moy@adacore.com>
4420
4421 * einfo.adb, einfo.ads: Remove flag Is_Postcondition_Proc and
4422 associated getter/setter.
4423 * sem_ch6.adb: Remove reference to Is_Postcondition_Proc.
4424
4425 2011-08-29 Vincent Celier <celier@adacore.com>
4426
4427 * prj-attr.adb: New Compiler attribute Dependency_Kind and Language_Kind
4428 * prj-conf.adb: Add_Default_GNAT_Naming_Scheme: Add a package Compiler
4429 with declarations for Language_Kind and Dependency_Kind for Ada.
4430 * prj-nmsc.adb (Check_Unit_Name): New name of procedure Check_Ada_Name
4431 (Process_Compiler): Take into account the new attributes Dependency_Kind
4432 and Language_Kind.
4433 (Check_Configuration): Check if language kind is unit based, not if the
4434 language name is Ada.
4435 (Process_Exceptions_Unit_Based): Ditto
4436 (Add_Language): Remove default additions of language and dependency kind
4437 * prj.ads: Minor comment change
4438 * snames.ads-tmpl: New standard names Dependency_Kind and Language_Kind
4439
4440 2011-08-29 Johannes Kanig <kanig@adacore.com>
4441
4442 * debug.adb: Update comments.
4443
4444 2011-08-24 Joseph Myers <joseph@codesourcery.com>
4445
4446 * gcc-interface/Make-lang.in (CFLAGS-ada/tracebak.o)
4447 (CFLAGS-ada/targext.o, CFLAGS-ada/cio.o, CFLAGS-ada/init.o)
4448 (CFLAGS-ada/initialize.o, CFLAGS-ada/raise.o): New.
4449 (ada/tracebak.o, ada/targext.o, ada/cio.o, ada/init.o)
4450 (ada/initialize.o, ada/raise.o): Remove explicit compilation rules.
4451
4452 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4453
4454 * gcc-interface/Makefile.in (PICFLAG_FOR_TARGET): New.
4455 (GNATLIBCFLAGS_FOR_C): Replace
4456 TARGET_LIBGCC2_CFLAGS by PICFLAG_FOR_TARGET.
4457 (gnatlib-shared-default, gnatlib-shared-dual-win32)
4458 (gnatlib-shared-win32, gnatlib-shared-darwin, gnatlib-shared)
4459 (gnatlib-sjlj, gnatlib-zcx): Likewise.
4460
4461 2011-08-07 Eric Botcazou <ebotcazou@adacore.com>
4462
4463 * gcc-interface/Makefile.in (raise-gcc.o): Fix previous change.
4464
4465 * gcc-interface/gigi.h (enumerate_modes): Fix formatting.
4466
4467 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Revert latest change.
4468
4469 2011-08-05 Nicolas Roche <roche@adacore.com>
4470
4471 * gcc-interface/Makefile.in: Don't use directly ../xgcc to build shared
4472 libgnat. Use rather the value of GCC_FOR_TARGET. Fix issue with
4473 canadian cross.
4474 * gcc-interface/Make-lang.in: Add support for canadian cross setting.
4475
4476 2011-08-05 Matthew Heaney <heaney@adacore.com>
4477
4478 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Child_Count, Child_Depth):
4479 subprogram bodies declared out-of-order.
4480
4481 2011-08-05 Yannick Moy <moy@adacore.com>
4482
4483 * sem_util.adb (Unique_Name): only prefix with "standard" the names of
4484 entities directly in package Standard, otherwise skip the standard
4485 prefix.
4486
4487 2011-08-05 Robert Dewar <dewar@adacore.com>
4488
4489 * a-cbmutr.adb: Minor reformatting
4490 (Allocate_Node): refactor node allocation algorithm
4491
4492 2011-08-05 Robert Dewar <dewar@adacore.com>
4493
4494 * opt.ads, opt.adb (Debug_Pragmas_Disabled): New switch.
4495 * sem_prag.adb (Analyze_Pragma, case Debug_Policy): Implement Disable
4496 mode.
4497 (Analyze_Pragma, case Check_Policy): Ditto.
4498 * sem_prag.ads (Check_Disabled): New function
4499 * snames.ads-tmpl: Add Name_Disable.
4500
4501 2011-08-05 Robert Dewar <dewar@adacore.com>
4502
4503 * gnat_rm.texi: Document implementation-defined policy DISABLE for
4504 pragmas Assertion_Policy, Check_Policy, Debug_Policy.
4505
4506 2011-08-05 Ed Schonberg <schonberg@adacore.com>
4507
4508 * sem_prag.adb (Analyze_Pragma, case Inline): reject an Inline pragma
4509 that appears in a generic formal part and applies to a formal
4510 subprogram.
4511
4512 2011-08-05 Robert Dewar <dewar@adacore.com>
4513
4514 * a-cbmutr.ads: Minor reformatting.
4515
4516 2011-08-05 Matthew Heaney <heaney@adacore.com>
4517
4518 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Read): do not use T'Valid
4519 to check count, check sign of value instead.
4520 * a-comutr.adb, a-cimutr.adb (Write): return immediately if tree empty
4521 (Copy_Subtree): allocate copy of source element
4522 (Equal_Subtree): compare elements, not access objects
4523
4524 2011-08-05 Vincent Celier <celier@adacore.com>
4525
4526 * gnat_ugn.texi: Fix VMS alternative.
4527
4528 2011-08-05 Thomas Quinot <quinot@adacore.com>
4529
4530 * sem_ch11.adb: Add comment.
4531
4532 2011-08-05 Robert Dewar <dewar@adacore.com>
4533
4534 * exp_util.adb: Minor comment fix.
4535
4536 2011-08-05 Robert Dewar <dewar@adacore.com>
4537
4538 * scng.adb (Error_Unterminated_String): Improve flag position when
4539 comma present.
4540
4541 2011-08-05 Matthew Heaney <heaney@adacore.com>
4542
4543 * Makefile.rtl, impunit.adb: Added a-cbmutr.ad[sb] (bounded multiway
4544 tree containers).
4545 * a-cbmutr.ads, a-cbmutr.adb: This is the new Ada 2012 unit for bounded
4546 multiway tree containers.
4547
4548 2011-08-05 Robert Dewar <dewar@adacore.com>
4549
4550 * styleg.adb (Check_Comment): Implement comment spacing of 1 or 2
4551 * stylesw.adb: Implement -gnatyC to control comment spacing
4552 * stylesw.ads (Style_Check_Comments_Spacing): New switch (set by
4553 -gnatyc/C).
4554 * usage.adb: Add line for -gnatyC.
4555
4556 2011-08-05 Robert Dewar <dewar@adacore.com>
4557
4558 * gnat_ugn.texi: Document -gnatyC.
4559 * vms_data.ads: Implement COMMENTS1/COMMENTS2 (retaining COMMENTS as a
4560 synonym for COMMENTS2).
4561
4562 2011-08-05 Robert Dewar <dewar@adacore.com>
4563
4564 * par_sco.adb, sem_ch3.adb, scos.ads, a-iteint.ads, sem_ch12.adb,
4565 a-cimutr.adb, a-cimutr.ads, sem_util.ads, sem_res.adb, a-fihema.adb,
4566 sem_ch4.adb, lib-xref-alfa.adb, exp_disp.adb, a-comutr.adb,
4567 a-comutr.ads, lib-xref.adb: Minor reformatting.
4568
4569 2011-08-05 Robert Dewar <dewar@adacore.com>
4570
4571 * sem_ch11.adb (Analyze_Raise_Statement): Kill assignment to formal
4572 warning if there is an exception handler present.
4573
4574 2011-08-05 Pascal Obry <obry@adacore.com>
4575
4576 * a-iteint.ads: Fix copyright year.
4577
4578 2011-08-05 Thomas Quinot <quinot@adacore.com>
4579
4580 * par_sco.adb (Traverse_Declarations_Or_Statements): Do not generate a
4581 statement SCO for a USE clause or a representation clause.
4582
4583 2011-08-05 Yannick Moy <moy@adacore.com>
4584
4585 * lib-xref-alfa.adb (Collect_ALFA): generate the proper relation
4586 between body and spec for stub.
4587 (Detect_And_Add_ALFA_Scope): take into account subprogram stub
4588 * lib-xref.adb (Enclosing_Subprogram_Or_Package): in the case of a
4589 pragma precondition or postcondition, for which the enclosing
4590 subprogram or package in the AST is not the desired one, return empty.
4591
4592 2011-08-05 Thomas Quinot <quinot@adacore.com>
4593
4594 * g-expect.adb: Minor reformatting.
4595
4596 2011-08-05 Bob Duff <duff@adacore.com>
4597
4598 * a-fihema.adb: Comment out OS_Lib.
4599
4600 2011-08-05 Matthew Heaney <heaney@adacore.com>
4601
4602 * Makefile.rtl, impunit.adb: Added a-c[oi]mutr.ad[sb]
4603 (unbounded multiway tree containers) and a-iteint.ads.
4604 * a-comutr.ads, a-comutr.adb:
4605 This is the new Ada 2012 unit for unbounded multiway tree containers
4606 * a-cimutr.ads, a-cimutr.adb
4607 This is the new Ada 2012 unit for indefinite multiway tree containers
4608 * a-iteint.ads: New file.
4609
4610 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4611
4612 * gcc-interface/Makefile.in (raise-gcc.o): Search $(srcdir)/../libgcc.
4613
4614 2011-08-05 Bob Duff <duff@adacore.com>
4615
4616 * sinfo.ads, sinfo.adb (Subpool_Handle_Name): New attribute for
4617 subpools.
4618 * par-ch4.adb (P_Allocator): Parse new subpool specification syntax.
4619
4620 2011-08-05 Ed Schonberg <schonberg@adacore.com>
4621
4622 * sem_ch4.adb (Try_Container_Indexing): New procedure to implement the
4623 general indexing aspects of Ada2012. Called when analyzing indexed
4624 components when other interpretations fail.
4625 * sem_ch8.adb (Find_Direct_Name): check for implicit dereference only
4626 in an expression context where overloading is meaningful. This excludes
4627 the occurrence in an aspect specification (efficiency only).
4628 * sem_attr.adb (Analyze_Attribute): indicate that the attributes
4629 related to iterators can be set by an attribute specification, but
4630 cannot be queried.
4631 * sem_ch13.adb (Analyze_Aspect_Specifications): handle
4632 Constant_Indexing and Variable_Indexing.
4633 (Check_Indexing_Functions): New procedure to perform legality checks.
4634 Additional semantic checks at end of declarations.
4635
4636 2011-08-05 Sergey Rybin <rybin@adacore.com>
4637
4638 * tree_io.ads: Update ASIS_Version_Number because of the change of the
4639 order of calling Tree_Write/Tree_Read routines made for aspects.
4640
4641 2011-08-05 Bob Duff <duff@adacore.com>
4642
4643 * a-fihema.adb (Finalize): Fix race condition.
4644
4645 2011-08-05 Yannick Moy <moy@adacore.com>
4646
4647 * sem_ch12.adb (Analyze_Package_Instantiation,
4648 Need_Subprogram_Instance_Body): do not generate instance bodies in ALFA
4649 mode.
4650
4651 2011-08-05 Ed Schonberg <schonberg@adacore.com>
4652
4653 * sem_type.adb (Specific_Type): in an instance, the type-specific
4654 operand of an equality check that involves null may have a private
4655 type. Use full view to determine legality of construct.
4656
4657 2011-08-05 Vincent Celier <celier@adacore.com>
4658
4659 * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to
4660 delete or close the file when the call to gnatmake was successful.
4661
4662 2011-08-05 Yannick Moy <moy@adacore.com>
4663
4664 * gnat1drv.adb (Adjust_Global_Switches): in ALFA mode, set
4665 Global_Discard_Names.
4666
4667 2011-08-05 Ed Schonberg <schonberg@adacore.com>
4668
4669 * sinfo.ads: comments on use of entity field for aspect specifications.
4670
4671 2011-08-05 Ed Schonberg <schonberg@adacore.com>
4672
4673 * sem_ch12.adb (Reset_Entity): If the entity field of the associated
4674 node is not itself an entity but a selected component, it is a
4675 rewritten parameterless call to an en enclosing synchronized operation,
4676 and this expansion will be performed again in the instance, so there is
4677 no global information to preserve.
4678
4679 2011-08-05 Javier Miranda <miranda@adacore.com>
4680
4681 * exp_disp.adb (Set_All_DT_Position): Cleanup code and improve support
4682 for renamings of predefined primitives.
4683 (In_Predef_Prims_DT): New subprogram.
4684
4685 2011-08-05 Ed Schonberg <schonberg@adacore.com>
4686
4687 * sem_util.adb, sem_util.ads (Check_Implicit_Dereference): If a
4688 possible interpretation of name is a reference type, add an
4689 interpretation that is the designated type of the reference
4690 discriminant of that type.
4691 * sem_res.adb (resolve): If the interpretation imposed by context is an
4692 implicit dereference, rewrite the node as the deference of the
4693 reference discriminant.
4694 * sem_ch3.adb (Analyze_Subtype_Declaration, Build_Derived_Record_Type,
4695 Build_Discriminated_Subtype): Inherit Has_Implicit_Dereference from
4696 parent type or base type.
4697 * sem_ch4.adb (Process_Indexed_Component,
4698 Process_Overloaded_Indexed_Component, Indicate_Name_And_Type,
4699 Analyze_Overloaded_Selected_Component, Analyze_Selected_Component):
4700 Check for implicit dereference.
4701 (List_Operand_Interps): Indicate when an implicit dereference is
4702 ambiguous.
4703 * sem_ch8.adb (Find_Direct_Name): Check for implicit dereference.
4704
4705 2011-08-05 Thomas Quinot <quinot@adacore.com>
4706
4707 * scos.ads: Update documentation of SCO table. Pragma statements can now
4708 be marked as disabled (using 'p' instead of 'P' as the statement kind).
4709 * par_sco.ads, par_sco.adb: Implement the above change.
4710 (Process_Decisions_Defer): Generate a P decision for the first parameter
4711 of a dyadic pragma Debug.
4712 * sem_prag.adb (Analyze_Pragma, case Debug): Mark pragma as enabled if
4713 necessary.
4714 * put_scos.adb: Code simplification based on above change.
4715
4716 2011-08-05 Robert Dewar <dewar@adacore.com>
4717
4718 * sem_ch3.adb, gnatcmd.adb, switch-c.adb, exp_attr.adb, make.adb,
4719 bindgen.adb, einfo.adb, sem_ch12.adb, sem_attr.adb, a-fihema.adb,
4720 a-fihema.ads, sem_elab.adb, sem_elab.ads, aspects.adb, opt.ads,
4721 prj-conf.adb, sem_ch13.adb, s-ficobl.ads: Minor reformatting
4722
4723 2011-08-05 Bob Duff <duff@adacore.com>
4724
4725 * a-stunau.ads, g-spipat.adb: Update comments.
4726
4727 2011-08-05 Bob Duff <duff@adacore.com>
4728
4729 * a-fihema.ads: Minor comment fix.
4730 * a-fihema.adb (Allocate, Deallocate): Assert that the alignment is
4731 correct.
4732 (Attach, Detach): Remove some unnecessary code.
4733 (Finalize): Remove Node_Ptr_To_Address, replace with a constant.
4734
4735 2011-08-05 Bob Duff <duff@adacore.com>
4736
4737 * a-fihema.ads, a-fihema.adb (Finalization_Collection): Avoid heap
4738 allocation for Objects component. This simplifies the code somewhat. It
4739 is also a little more efficient in the not-so-unusual case where there
4740 are no controlled objects allocated.
4741 Make Finalization_Started flag atomic.
4742 (Finalize): Avoid unnecessary detachment of items from the list.
4743 (pcol): Minor cleanup.
4744
4745 2011-08-05 Ed Schonberg <schonberg@adacore.com>
4746
4747 * sem_ch12.adb (Analyze_Formal_Package_Declaration): reject a formal
4748 package whose name is the same as that of the generic unit, or its
4749 ultimate prefix.
4750
4751 2011-08-05 Bob Duff <duff@adacore.com>
4752
4753 * a-fihema.adb, a-fihema.ads: Minor comment improvements.
4754 * sem_ch3.adb, exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb:
4755 Minor comment fixes.
4756
4757 2011-08-05 Arnaud Charlet <charlet@adacore.com>
4758
4759 * make.adb (Linking_Phase): No longer need to set source search path
4760 before calling gnatlink in CodePeer mode.
4761 * gnatlink.adb (Gnatlink): No longer pass -gnat83/95/05/12 switch to
4762 gcc in CodePeer mode, since the binder generated file no longer has a
4763 'with Main'.
4764 * switch.ads, switch.adb (Is_Language_Switch): Removed.
4765 * switch-c.adb: Update comment.
4766
4767 2011-08-05 Thomas Quinot <quinot@adacore.com>
4768
4769 * exp_strm.adb, bindgen.adb, s-ficobl.ads: Minor reformatting.
4770
4771 2011-08-05 Nicolas Roche <roche@adacore.com>
4772
4773 * gnat_ugn.texi: Fix minor syntax error issue.
4774
4775 2011-08-05 Vincent Celier <celier@adacore.com>
4776
4777 * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to
4778 delete or close the file when the call to gnatmake returns a non
4779 successful return code.
4780
4781 2011-08-05 Ed Schonberg <schonberg@adacore.com>
4782
4783 * exp_ch4.adb (Expand_N_Type_Conversion): When expanding a predicate
4784 check, indicate that the copy of the original node does not come from
4785 source, to prevent an infinite recursion of the expansion.
4786
4787 2011-08-05 Johannes Kanig <kanig@adacore.com>
4788
4789 * debug.adb: document switch -gnatd.G for gnat2why, which deactivates
4790 VC generation for subprogram bodies.
4791
4792 2011-08-05 Yannick Moy <moy@adacore.com>
4793
4794 * einfo.ads: Typo.
4795 * sem_ch3.adb (Signed_Integer_Type_Declaration): in ALFA mode, define
4796 the base type with the smallest allowed base type.
4797
4798 2011-08-05 Sergey Rybin <rybin@adacore.com>
4799
4800 * tree_gen.adb, tree_in.adb, aspects.adb: Fix tree read-write for
4801 aspects.
4802
4803 2011-08-05 Ed Schonberg <schonberg@adacore.com>
4804
4805 * sem_ch12.ads: minor comment updates.
4806
4807 2011-08-05 Ed Schonberg <schonberg@adacore.com>
4808
4809 * sem_ch12.adb (Analyze_Formal_Package_Declaration): in an
4810 instantiation and a formal package the compiler generates a package
4811 renaming declaration so that the generic name within the declaration
4812 is interpreted as a renaming of the instance. At the end of a formal
4813 package declaration, this renaming must become invisible.
4814
4815 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
4816
4817 * exp_ch7.adb (Is_Init_Call): Reimplemented to avoid character
4818 comparison and rely on concrete entities instead.
4819
4820 2011-08-05 Ed Schonberg <schonberg@adacore.com>
4821
4822 * einfo.ads, einfo.adb (Has_Implicit_Dereference): new flag on types
4823 and discriminants, to indicate that the type has an access discriminant
4824 that supports implicit dereference.
4825 * snames.ads-tmpl: Add names of aspects and attributes related to
4826 Ada2012 iterators: constant_indexing, default_iterator,
4827 iterator_element, implicit_dereference, variable_indexing.
4828 * aspects.ads, aspects.adb: entries for iterator-related aspects.
4829 * sem_ch13.adb (Analyze_aspect_specifications): dummy entries for
4830 iterator-related aspects.
4831 * sem_attr.adb, exp_attr.adb Dummy entries for iterator-related aspects.
4832
4833 2011-08-05 Sergey Rybin <rybin@adacore.com>
4834
4835 * gnat_ugn.texi, vms_data.ads: Extend the subsection about coupling
4836 metrics in gnatmetric to cover new kinds of coupling mentrics.
4837
4838 2011-08-05 Steve Baird <baird@adacore.com>
4839
4840 * bindgen.adb (Gen_CodePeer_Wrapper): Call Ada_Main_Program instead
4841 of calling the user-defined main subprogram.
4842 (Gen_Main): Declare Ada_Main_Program and (if CodePeer_Mode
4843 is set) Call_Main_Subprogram ahead of, as opposed to
4844 inside of, Main.
4845 (Gen_Output_File_Ada): Remove CodePeer_Mode-conditional
4846 generation of a "with" of the user-defined main subprogram.
4847 Remove CodePeer_Mode-conditional call to Gen_CodePeer_Wrapper
4848 (which is now called from Gen_Main instead).
4849
4850 2011-08-05 Emmanuel Briot <briot@adacore.com>
4851
4852 * projects.texi: Added reference to the Makefile package.
4853
4854 2011-08-05 Thomas Quinot <quinot@adacore.com>
4855
4856 * exp_ch7.adb: Minor comment rewording.
4857
4858 2011-08-05 Ed Falis <falis@adacore.com>
4859
4860 * env.c: Fix comment.
4861
4862 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
4863
4864 * sem_elab.adb (Is_Finalization_Procedure): Reimplemented to avoid
4865 character comparison and rely on concrete entities instead.
4866
4867 2011-08-05 Ed Schonberg <schonberg@adacore.com>
4868
4869 * sem_ch3.adb: (Check_Private_Overriding): better error message,
4870 suggested by AI95-0068.
4871
4872 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
4873
4874 * exp_ch7.adb (Find_Last_Init): Use Next_Suitable_Statement to retrieve
4875 the two potential initialization calls. This accounts for any
4876 access-before-elaboration checks which may precede the initialization
4877 calls.
4878 (Next_Suitable_Statement): New routine. Returns the next real statement
4879 after the input node while skipping generated checks.
4880 * sem_elab.adb (Check_A_Call): New formal parameter In_Init_Proc along
4881 with comment on usage.
4882 Do not generate Elaborate_All when the trigger is a finalization call
4883 coming from a type init proc.
4884 (Check_Elab_Call): Propagate the initialization procedure context to
4885 subsequent calls to Check_A_Call.
4886 (Check_Internal_Call_Continue): Propagate the initialization procedure
4887 context to subsequent calls to Check_Elab_Call.
4888 (Is_Finalization_Procedure): New routine. Returns True if the input
4889 entity denotes a [Deep_]Finalize routine.
4890 * sem_elab.ads (Check_Elab_Call): New formal parameter In_Init_Proc
4891 along with comment on usage.
4892
4893 2011-08-05 Vadim Godunko <godunko@adacore.com>
4894
4895 * s-atocou.ads: Add list of supported platforms.
4896
4897 2011-08-05 Yannick Moy <moy@adacore.com>
4898
4899 * sem_prag.adb, restrict.adb: Correct style for or'ing Boolean variables
4900
4901 * opt.ads (Disable_ALI_File): new Boolean flag
4902 * lib-writ.adb (Write_ALI): when Disable_ALI_File is set, do nothing
4903
4904 2011-08-05 Ed Falis <falis@adacore.com>
4905
4906 * env.c (__gnat_environ): Fix includes for RTPs and VTHREADS so that
4907 environ is properly defined.
4908
4909 2011-08-05 Vincent Celier <celier@adacore.com>
4910
4911 * make.adb (Compilation_Phase): Exit immediately when all objects have
4912 been found up to date, to avoid multiple exit messages.
4913 * prj-nmsc.adb (Add_Source): Allow duplicate source file names in the
4914 same project for languages with no compiler.
4915 * gnat_ugn.texi: Document compiler switch -gnateI and gnatmake switch
4916 -eI.
4917 2011-08-05 Robert Dewar <dewar@adacore.com>
4918
4919 * exp_ch7.ads, sem_type.adb, make.adb, sem_prag.adb, sem_util.adb,
4920 sem_util.ads, sem_attr.adb, restrict.ads, sem_ch6.adb, prj-conf.adb,
4921 prj-conf.ads, s-atocou.ads, s-atocou.adb, s-atocou-x86.adb,
4922 s-atocou-builtin.adb: Minor reformatting.
4923
4924 2011-08-05 Yannick Moy <moy@adacore.com>
4925
4926 * exp_ch7.adb (Establish_Transient_Scope): in formal verification mode,
4927 if the node to wrap is a pragma check, this node and enclosed
4928 expression are not expanded, so do not apply any transformations here.
4929 * exp_prag.adb (Expand_Pragma_Check): document the need to avoid
4930 introducing transient scopes.
4931
4932 2011-08-05 Jose Ruiz <ruiz@adacore.com>
4933
4934 * adaint.c (__gnat_set_writable, __gnat_set_readable,
4935 __gnat_set_executable, __gnat_set_non_writable, __gnat_set_non_readable,
4936 __gnat_copy_attribs): On VxWorks 6.x and later, the required chmod
4937 routine is available, so we use the default implementation of these
4938 functions.
4939 * s-os_lib.ads (Copy_File, Copy_Time_Stamps): Document that there is
4940 support for copying attributes on VxWorks 6.
4941
4942 2011-08-05 Yannick Moy <moy@adacore.com>
4943
4944 * debug.adb: Remove use of -gnatd.D.
4945 * gnat1drv.adb (Adjust_Global_Switches): adjust switches for ALFA mode
4946 * opt.ads: Simplify variables for ALFA mode, to keep one only
4947 * restrict.adb, sem_prag.adb: Adapt treatment done for CodePeer mode
4948 to ALFA mode.
4949
4950 2011-08-05 Vincent Celier <celier@adacore.com>
4951
4952 * prj-conf.adb (Do_Autoconf): Look also for --RTS in
4953 Builder'Default_Switches.
4954
4955 2011-08-05 Vincent Celier <celier@adacore.com>
4956
4957 * makeusg.adb: Add lines for --create-map-file switches.
4958
4959 2011-08-05 Ed Schonberg <schonberg@adacore.com>
4960
4961 * freeze.adb (Freeze_Entity): For a subprogram, if a type in the
4962 profile is incomplete and the full view is available, replace it with
4963 the full view.
4964 * sem_ch6.adb (Possible_Freeze): if a type in the profile is
4965 incomplete, freezing the subprogram is delayed until the full view is
4966 frozen.
4967 * sem_type.adb (Disambiguate): an ambiguity between a user-defined
4968 fixed-point multiplication operator and the predefined operator is
4969 resolved in favor of the user-defined one.
4970
4971 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4972
4973 * init.c [__alpha__ && __osf__] (__gnat_error_handler): Use
4974 CONST_CAST.
4975
4976 2011-08-04 Ed Schonberg <schonberg@adacore.com>
4977
4978 * sem_util.ads, sem_unit.adb (Type_Without_Stream_Operation): determine
4979 whether a type lacks user-defined Read or Write operations, or has a
4980 component that lacks them.
4981 * sem_attr.adb (Check_Stream_Attribute): if restriction
4982 No_Default_Stream_Attributes is active, verify that all subcomponent
4983 types of the target have user-defined stream operations, and report
4984 error otherwise.
4985 * exp_ch3.adb (Stream_Operqtion_OK): use Type_Without_Stream_Operation.
4986 * exp_strm.adb: Build_Elementary_Input_Call,
4987 Build_Elementary_Write_Call): remove checks for restriction
4988 No_Default_Stream_Attributes, now checked in semantics.
4989
4990 2011-08-04 Vincent Celier <celier@adacore.com>
4991
4992 * prj-conf.ads, prj-conf.adb (Do_Autoconf): If there is no --RTS
4993 switches on the command line, look for all valid --RTS switches in the
4994 Builder switches and for each language use the first runtime name found
4995 to invoke gprconfig.
4996 (Get_Or_Create_Configuration_File): Warn if --RTS is specified on the
4997 command line and there is no auto-configuration.
4998 (Runtime_Name_Set_For): New function.
4999
5000 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5001
5002 * exp_ch7.adb (Build_Object_Declarations): Do not generate the
5003 elaborate initialization expression for variable Abort when processing
5004 a package body or a declaration.
5005 (Create_Finalizer): Propagate the package context when creating the
5006 exception-related variables.
5007 * exp_ch7.ads (Build_Object_Declarations): New formal parameter
5008 For_Package along with usage comment.
5009
5010 2011-08-04 Arnaud Charlet <charlet@adacore.com>
5011
5012 * gcc-interface/Makefile.in: Clean up targets.
5013 Enable new package for atomic counters and copy-on-write implementation
5014 of unbounded strings on x86 platforms.
5015 * gcc-interface/Make-lang.in: Update dependencies.
5016
5017 2011-08-04 Robert Dewar <dewar@adacore.com>
5018
5019 * exp_ch7.adb: Minor reformatting.
5020
5021 2011-08-04 Robert Dewar <dewar@adacore.com>
5022
5023 * exp_strm.adb: Minor reformatting.
5024
5025 2011-08-04 Vadim Godunko <godunko@adacore.com>
5026
5027 * s-atocou.adb: Replace by dummy version and use on targets where atomic
5028 operations are not supported.
5029 * s-atocou-builtin.adb: Renamed from s-atocou.adb.
5030 * s-atocou-x86.adb: New file.
5031 * Makefile.rtl: Add s-atocou.o file
5032
5033 2011-08-04 Arnaud Charlet <charlet@adacore.com>
5034
5035 * make.adb (Compile): Move setting of CodePeer_Mode to ...
5036 (Compilation_Phase): ... here.
5037 (Scan_Make_Arg): Now bind and link by default in CodePeer mode.
5038
5039 2011-08-04 Thomas Quinot <quinot@adacore.com>
5040
5041 * Make-generated.in: Fix minor typo in comment.
5042
5043 2011-08-04 Thomas Quinot <quinot@adacore.com>
5044
5045 * gnatls.adb: Use Prj.Env.Initialize_Default_Project_Path to retrieve
5046 the project path.
5047
5048 2011-08-04 Robert Dewar <dewar@adacore.com>
5049
5050 * a-coinho.adb: Minor reformatting.
5051
5052 2011-08-04 Robert Dewar <dewar@adacore.com>
5053
5054 * a-coinho.ads: Minor reformatting.
5055
5056 2011-08-04 Vadim Godunko <godunko@adacore.com>
5057
5058 * s-atocou.ads, s-atocou.adb: New files.
5059 * a-strunb-shared.ads, a-strunb-shared.adb, a-stwiun-shared.ads,
5060 a-stwiun-shared.adb, a-stzunb-shared.ads, a-stzunb-shared.adb: Remove
5061 direct use of GCC's atomic builtins and replace them by use of new
5062 atomic counter package.
5063
5064 2011-08-04 Ed Schonberg <schonberg@adacore.com>
5065
5066 * exp_strm.adb: better error message for No_Default_Stream_Attributes.
5067
5068 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5069
5070 * a-tags.adb (Unregister_Tag): Replace the complex address arithmetic
5071 with a call to Get_External_Tag.
5072 * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on
5073 subprogram usage. Remove the guard against package declarations and
5074 bodies since Build_Cleanup_Statements is no longer invoked in that
5075 context.
5076 (Build_Components): Initialize Tagged_Type_Stmts when the context
5077 contains at least one library-level tagged type.
5078 (Build_Finalizer): New local variables Has_Tagged_Types and
5079 Tagged_Type_Stmts along with associated comments on usage. Update the
5080 logic to include tagged type processing.
5081 (Create_Finalizer): Insert all library-level tagged type unregistration
5082 code before the jump block circuitry.
5083 (Expand_N_Package_Body): Remove the call to Build_Cleanup_Statements.
5084 (Expand_N_Package_Declaration): Remove the call to
5085 Build_Cleanup_Statements.
5086 (Process_Tagged_Type_Declaration): New routine. Generate a call to
5087 unregister the external tag of a tagged type.
5088 (Processing_Actions): Reimplemented to handle tagged types.
5089 (Process_Declarations): Detect the declaration of a library-level
5090 tagged type and carry out the appropriate actions.
5091 (Unregister_Tagged_Types): Removed. The machinery has been directly
5092 merged with Build_Finalizer.
5093
5094 2011-08-04 Robert Dewar <dewar@adacore.com>
5095
5096 * bindgen.ads, gnatlink.adb, sem_ch4.adb, gnatbind.adb, put_alfa.adb,
5097 gnatls.adb, exp_ch3.adb: Minor reformatting.
5098
5099 2011-08-04 Marc Sango <sango@adacore.com>
5100
5101 * sem_attr.adb (Analyze_Attribute): Replace the message
5102 "invisible attribute of}" of the spark restriction violation in
5103 attribute reference by the simple message "invisible attribute of type".
5104 Indeed, the node value Error_Msg_Node_1 used is in conflit with the
5105 two insertion characters: '&' and '}'.
5106
5107 2011-08-04 Vadim Godunko <godunko@adacore.com>
5108
5109 * impunit.adb (Non_Imp_File_Names_12): Add "a-coinho".
5110 * a-coinho.ads, a-coinho.adb: New file.
5111 * Makefile.rtl: Add Ada.Containers.Indefinite_Holders.
5112
5113 2011-08-04 Nicolas Roche <roche@adacore.com>
5114
5115 * alfa_test.adb: Not all ali files are containing alfa information even
5116 if compiled with -gnatd.F. So suppress warning about missing ALFA
5117 information.
5118
5119 2011-08-04 Yannick Moy <moy@adacore.com>
5120
5121 * lib-xref-alfa.adb (Add_ALFA_Scope): use non-empty unique name for
5122 scope.
5123 * put_alfa.adb: Check that scope name is not empty.
5124
5125 2011-08-04 Ed Schonberg <schonberg@adacore.com>
5126
5127 * exp_ch3.adb (Stream_Operation_Ok): new predicate
5128 Needs_Elementary_Stream_Operation, to determine whether user-defined
5129 Read and Write attributes are available for the elementary components
5130 of the given type. If only the predefined attributes are available,
5131 then when restriction No_Default_Stream_Attributes is active the
5132 predefined stream attributes for the composite type cannot be created.
5133
5134 2011-08-04 Robert Dewar <dewar@adacore.com>
5135
5136 * bindgen.adb: Fix obsolete comments and names from Ada/C days.
5137 Put routines in alpha order
5138
5139 2011-08-04 Jose Ruiz <ruiz@adacore.com>
5140
5141 * gcc-interface/Makefile.in: Remove xenomai specific versions of system.
5142 * gcc-interface/Make-lang.in: Update dependencies.
5143
5144 2011-08-04 Arnaud Charlet <charlet@adacore.com>
5145
5146 * gcc-interface/lang.opt: Add AdaWhy language, simimlar to Ada.
5147 * gcc-interface/lang-specs.h: Add handling of AdaWhy specs (calls
5148 gnat1why).
5149
5150 2011-08-04 Robert Dewar <dewar@adacore.com>
5151
5152 * sem_ch3.adb, make.adb, a-cohata.ads, sem_prag.adb, makeutl.adb,
5153 lib-xref-alfa.adb: Minor reformatting.
5154
5155 2011-08-04 Marc Sango <sango@adacore.com>
5156
5157 * sem_ch12.adb (Analyze_Generic_Package_Declaration,
5158 Analyze_Generic_Subprogram_Declaration, Analyze_Package_Instantiation,
5159 Analyze_Subprogram_Instantiation): Check absence of generic in SPARK
5160 mode.
5161
5162 2011-08-04 Tristan Gingold <gingold@adacore.com>
5163
5164 * bindgen.adb (Gen_Adainit_C): Remove.
5165 (Gen_Adafinal_C): Ditto.
5166 (Gen_Elab_Externals_C): Ditto.
5167 (Gen_Elab_Calls_C): Ditto.
5168 (Gen_Elab_Order_C): Ditto.
5169 (Gen_Elab_Defs_C): Ditto.
5170 (Gen_Finalize_Library_C): Ditto.
5171 (Gen_Finalize_Library_Defs_C): Ditto.
5172 (Gen_Main_C): Ditto.
5173 (Gen_Output_File_C): Ditto.
5174 (Gen_Restrictions_C): Ditto.
5175 (Gen_Versions_C): Ditto.
5176 (Write_Info_Ada_C): Ditto.
5177 (Gen_Object_Files_Options): Call WBI instead of Write_Info_Ada_C
5178 (Gen_Output_File): Do not force Ada_Bind_File anymore.
5179 Always call Gen_Output_File_Ada.
5180 * gnatlink.adb (Begin_Info): Now a constant.
5181 (End_Info): Ditto.
5182 (Ada_Bind_File): Remove
5183 (Process_Args): Do not handle -A/-C. Remove not Ada_Bind_File cases.
5184 * switch-b.adb (Scan_Binder_Switches): Do not handle -C.
5185 * gnatbind.adb (Gnatbind): Remove not Ada_Bind_File cases.
5186 * opt.ads (Ada_Bind_File): Remove.
5187
5188 2011-08-04 Thomas Quinot <quinot@adacore.com>
5189
5190 * projects.texi: Document target-specific directory in default project
5191 path for gnatmake.
5192
5193 2011-08-04 Thomas Quinot <quinot@adacore.com>
5194
5195 * gnatls.adb, prj-env.adb: Add $prefix/share/gpr to default project
5196 path in all cases .
5197
5198 2011-08-04 Yannick Moy <moy@adacore.com>
5199
5200 * sem_ch3.adb, sem_ch5.adb, sem_util.adb, sem_ch4.adb, sem_ch8.adb,
5201 opt.ads, lib-xref.ads: Code clean up.
5202
5203 2011-08-04 Yannick Moy <moy@adacore.com>
5204
5205 * gnat_rm.texi: Update description of Test_Case
5206 * gnat_ugn.texi: Typo.
5207
5208 2011-08-04 Ed Falis <falis@adacore.com>
5209
5210 * adaint.c (__gnat_get_number_of_cpus): fix typo in last checkin.
5211
5212 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5213
5214 * exp_ch4.adb (Suitable_Element): Skip field _parent on .NET/JVM when
5215 it is of type Root_Controlled. This action eliminates fields Prev and
5216 Next from type equality.
5217
5218 2011-08-04 Yannick Moy <moy@adacore.com>
5219
5220 * lib-xref-alfa.adb: Correct typo.
5221
5222 2011-08-04 Matthew Heaney <heaney@adacore.com>
5223
5224 * a-cohata.ads (Hash_Table_Type): default-initialize the Nodes
5225 component.
5226
5227 2011-08-04 Yannick Moy <moy@adacore.com>
5228
5229 * sem_prag.adb (Check_Arg_Is_String_Literal): remove useless procedure
5230 (Analyze_Pragma): allow static string expression for name of Test_Case,
5231 instead of simply string literals.
5232 * sem_util.adb (Get_Name_From_Test_Case_Pragma): adapt to static string
5233 expressions.
5234
5235 2011-08-04 Vincent Celier <celier@adacore.com>
5236
5237 * makeutl.adb (Complete_Mains.Find_File_Add_Extension): Use canonical
5238 case suffixes to find truncated main sources.
5239
5240 2011-08-04 Tristan Gingold <gingold@adacore.com>
5241
5242 * impunit.adb (Non_Imp_File_Names_95): Add g-tastus.
5243 s-stusta.adb (Compute_All_Task): Use Put_Line instead of Put.
5244 (Compute_Current_Task): Ditto.
5245
5246 2011-08-04 Tristan Gingold <gingold@adacore.com>
5247
5248 * gnat_ugn.texi: Mention GNAT.Task_Stack_Usage.
5249
5250 2011-08-04 Yannick Moy <moy@adacore.com>
5251
5252 * lib-xref-alfa.adb (Is_Global_Constant): new function that detects
5253 library-level constant.
5254 (Add_ALFA_Xrefs): ignore global constants in ALFA xref.
5255 * sem_res.adb (Resolve_Actuals): do not add cross-reference to Formal
5256 used as selector of parameter association, in ALFA mode.
5257
5258 2011-08-04 Robert Dewar <dewar@adacore.com>
5259
5260 * exp_ch5.adb, exp_ch7.adb, exp_util.adb, bindgen.adb, sem_prag.adb,
5261 s-tassta.adb, exp_ch4.adb, exp_disp.adb, s-stausa.adb: Minor
5262 reformatting.
5263
5264 2011-08-04 Arnaud Charlet <charlet@adacore.com>
5265
5266 * make.adb (Linking_Phase): Set source search path before calling
5267 gnatlink in CodePeer mode.
5268
5269 2011-08-04 Javier Miranda <miranda@adacore.com>
5270
5271 * exp_ch7.adb (Expand_N_Package_Body, Expand_N_Package_Declaration):
5272 Remove code which takes care of building TSDs.
5273 * rtsfind.ads (RE_Check_Interface_Conversion): New entity.
5274 * exp_ch4.adb (Apply_Accessibility_Check): Add support for generating
5275 the accessibility check in VM targets.
5276 * exp_disp.adb (Make_VM_TSD): Spec moved to exp_disp.ads
5277 (Building_Static_DT): Now returns false for VM targets.
5278 (Build_VM_TSDs): Removed.
5279 (Expand_Interface_Conversion): Generate missing runtime check for
5280 conversions to interface types whose target type is unknown at compile
5281 time.
5282 (Make_VM_TSD): Add missing code to disable the generation of calls to
5283 Check_TSD if the tagged type is not defined at library level, or not
5284 has a representation clause specifying its external tag, or -gnatdQ is
5285 active.
5286 * exp_disp.ads (Build_VM_TSDs): Removed.
5287 (Make_VM_TSDs): Spec relocated from exp_disp.adb
5288 * sem_disp.adb (Check_Dispatching_Operation): No code required to
5289 register primitives in the dispatch tables in VM targets.
5290 * exp_ch3.adb (Expand_N_Object_Declaration): Remove wrong expansion of
5291 initialization of class-wide interface objects in VM targets.
5292 (Expand_Freeze_Record_Type): For VM targets call Make_VM_TSD (instead
5293 of Make_DT).
5294
5295 2011-08-04 Jerome Lambourg <lambourg@adacore.com>
5296
5297 * gnatlink.adb (Gnatlink): Correct missleading error message displayed
5298 when dotnet-ld cannot be found.
5299
5300 2011-08-04 Arnaud Charlet <charlet@adacore.com>
5301
5302 * bindgen.adb: Simplify significantly generation of binder body file in
5303 CodePeer mode.
5304 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Prevent assert failure
5305 when compiling binder generated file in CodePeer mode (xxx'Elab_Spec
5306 not expanded).
5307
5308 2011-08-04 Yannick Moy <moy@adacore.com>
5309
5310 * sem_prag.adb, sem.ads: Code cleanup.
5311
5312 2011-08-04 Tristan Gingold <gingold@adacore.com>
5313
5314 * s-tassta.adb (Task_Wrapper): Rewrite the dynamic stack usage part.
5315 * s-stausa.adb, s-stausa.ads: Major rewrite. Now provides accurate
5316 results if possible.
5317 * s-stusta.adb (Print): Adjust after changes in s-stausa.
5318 * gnat_ugn.texi: Update dynamic stack usage section.
5319
5320 2011-08-04 Steve Baird <baird@adacore.com>
5321
5322 * bindgen.adb (Gen_CodePeer_Wrapper): new procedure.
5323 Generate (if CodePeer_Mode is set) a "wrapper" subprogram which
5324 contains only a call to the user-defined main subprogram.
5325 (Gen_Main_Ada) - If CodePeer_Mode is set, then
5326 call the "wrapper" subprogram instead of directly
5327 calling the user-defined main subprogram.
5328
5329 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5330
5331 * exp_ch5.adb (Expand_N_Case_Statement): Check the statements of all
5332 alternatives of a case statement for controlled objects. Rename local
5333 variable A to Dead_Alt.
5334 (Expand_N_If_Statement): Check the then and else statements of an if
5335 statement for controlled objects. Check the then statements of all
5336 elsif parts of an if statement for controlled objects.
5337 (Expand_N_Loop_Statement): Check the statements of a loop for controlled
5338 objects.
5339 * exp_ch7.adb (Process_Transient_Objects): Rewrite the condition which
5340 detects a loop associated with the expansion of an array object.
5341 Augment the processing of the loop statements to account for a possible
5342 wrap done by Process_Statements_For_Controlled_Objects.
5343 * exp_ch9.adb (Expand_N_Asynchronous_Select): Check the triggering
5344 statements and abortable part of an asynchronous select for controlled
5345 objects.
5346 (Expand_N_Conditional_Entry_Call): Check the else statements of a
5347 conditional entry call for controlled objects.
5348 (Expand_N_Selective_Accept): Check the alternatives of a selective
5349 accept for controlled objects.
5350 (Expand_N_Timed_Entry_Call): Check the entry call and delay
5351 alternatives of a timed entry call for controlled objects.
5352 * exp_ch11.adb (Expand_Exception_Handlers): Check the statements of an
5353 exception handler for controlled objects.
5354 * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)):
5355 Add formal parameter Nested_Constructs along with its associated
5356 comment.
5357 (Requires_Cleanup_Actions (Node_Id)): Update all calls to
5358 Requires_Cleanup_Actions.
5359 (Process_Statements_For_Controlled_Objects): New routine.
5360 * exp_util.ads (Process_Statements_For_Controlled_Objects): New
5361 routine. Inspect a node which contains a non-handled sequence of
5362 statements for controlled objects. If such an object is found, the
5363 statements are wrapped in a block.
5364
5365 2011-08-04 Bob Duff <duff@adacore.com>
5366
5367 * sem_type.adb (Covers): If T2 is a subtype of a class-wide type, we
5368 need to compare with Class_Wide_Type (T2), in order to get at the
5369 original class-wide type node.
5370 * sem_type.ads (Covers): Improve the comment.
5371 * einfo.ads (Class_Wide_Type): Improve the comment.
5372 * exp_intr.adb (Expand_Unc_Deallocation): Remove unnecessary setting of
5373 the type of the Deref.
5374
5375 2011-08-04 Yannick Moy <moy@adacore.com>
5376
5377 * gnat_rm.texi: Document that Test_Case pragma can only appear on
5378 separate declarations.
5379 * sem_prag.adb (procedure Check_Identifier_Is_One_Of): new procedure to
5380 check identifier of pragma argument.
5381 (Chain_TC): check that no other test case associated to the same entity
5382 share the same name.
5383 (Check_Test_Case): disallow test case inside subprogram body
5384 (Analyze_Pragma): correct call to check identifier and not argument
5385 * sem_util.adb, sem_util.ads (Get_Name_From_Test_Case_Pragma): new
5386 function gets name from test case pragma.
5387
5388 2011-08-04 Yannick Moy <moy@adacore.com>
5389
5390 * gnat_rm.texi: Document new pragma and aspect.
5391 * aspects.adb, aspects.ads (Aspect_Id): new value Aspect_Test_Case
5392 (No_Duplicates_Allowed): new constant array defining whether duplicates
5393 aspects of each kind can appear on the same declaration.
5394 * einfo.adb, einfo.ads (Spec_PPC_List): replace field with Contract
5395 field, which points to a node holding the previous Spec_PPC_List.
5396 * exp_ch9.adb, sem_ch6.adb, sem_prag.adb: Reach to Spec_PPC_List
5397 through the indirection with Contract.
5398 * exp_util.adb (Insert_Actions): raise Program_Error on N_Contract node
5399 * par-prag.adb (Prag): do nothing on Test_Case pragma
5400 * sem.adb (Analyze): abort on N_Contract, on which Analyze should not
5401 be called directly.
5402 * sem_attr.adb (Analyze_Attribute): allow attribute 'Result in
5403 component Ensures of Test_Case.
5404 * sem_ch12.adb, sem_ch6.adb, sem_ch9.adb
5405 (Analyze_Generic_Subprogram_Declaration,
5406 Analyze_Subprogram_Instantiation,
5407 Analyze_Abstract_Subprogram_Declaration,
5408 Analyze_Subprogram_Body_Helper,
5409 Analyze_Subprogram_Specification, Analyze_Entry_Declaration):
5410 insert contract in subprogram node at point of definition
5411 * sem_ch13.adb
5412 (Aspect_Loop): do not raise error on duplicate Test_Case aspect
5413 (Analyze_Aspect_Specifications): analyze Test_Case aspect and create
5414 corresponding pragma
5415 (Check_Aspect_At_Freeze_Point): raise Program_Error on Test_Case aspect
5416 * sem_ch3.adb (Analyze_Declarations): insert analysis of test-cases,
5417 similar to the analysis of pre/post
5418 (Derive_Subprogram): insert contract in subprogram node at point of
5419 derivation.
5420 * sem_prag.adb, sem_prag.ads
5421 (Check_Arg_Is_String_Literal, Check_Identifier):
5422 new checking procedures to be called in treatment of pragmas
5423 (Check_Test_Case): new procedure to check that a Test_Case aspect or
5424 pragma is well-formed. This does not check currently that 'Result is
5425 used only in the Ensures component of a Test_Case.
5426 (Analyze_Pragma): add case for Test_Case
5427 (Analyze_TC_In_Decl_Part): pre-analyze the Requires and Ensures
5428 components of a Test_Case.
5429 (Preanalyze_TC_Args): new procedure to preanalyze the boolean
5430 expressions in the 3rd (and 4th if present) arguments of a Test_Case
5431 pragma, treated as spec expressions.
5432 (Sig_Flags): add value -1 for Test_Case.
5433 * sem_util.adb, sem_util.ads (Get_Ensures_From_Test_Case_Pragma,
5434 Get_Requires_From_Test_Case_Pragma): getters for both expression
5435 components of a Test_Case.
5436 * sinfo.adb, sinfo.ads (N_Contract): new kind of node used as
5437 indirection between an entry or [generic] subprogram entity and its
5438 pre/post + test-cases.
5439 (Spec_PPC_List, Spec_TC_List, Set_Spec_PPC_List, Set_Spec_TC_List):
5440 get/set for fields of an N_Contract node.
5441 * snames.ads-tmpl (Name_Test_Case, Name_Ensures, Name_Mode,
5442 Name_Normal, Name_Requires, Name_Robustness, Pragma_Test_Case): new
5443 names and pragma for Test_Case.
5444 * sprint.adb (Sprint_Node): raise Program_Error on N_Contract node
5445
5446 2011-08-04 Vincent Celier <celier@adacore.com>
5447
5448 * gnat_ugn.texi: Improve documentation of gnatmake switch
5449 --source-info-file=.
5450
5451 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5452
5453 * exp_ch7.adb (Make_Final_Call): Add local variable Atyp (assertion
5454 type). Initialize Atyp to the appropriate type which is later checked
5455 for completion. Rewrite the assertion associated with private type
5456 completion.
5457
5458 2011-08-04 Ed Falis <falis@adacore.com>
5459
5460 * adaint.c: Add call to vxCpuConfiguredGet for VxWorks SMP to
5461 initialize the number of CPUs.
5462
5463 2011-08-04 Ed Schonberg <schonberg@adacore.com>
5464
5465 * sem_type.adb (Disambiguate): New subsidiary routine
5466 In_Same_Declaration_List, to implement AI05-0020: a user-defined
5467 equality on an anonymous access type whose designated type is private
5468 does not lead to an ambiguity with the universal access equality
5469 operator in the body or child units of the defining package. The same
5470 is true for a multiplication operator on a private type completed with
5471 a fixed-point-type.
5472
5473 2011-08-04 Javier Miranda <miranda@adacore.com>
5474
5475 * opt.ads (Init_Or_Norm_Scalars_Config): Removed.
5476 (Normalize_Scalars_Config): Removed.
5477 * opt.adb
5478 (Register_Opt_Config_Switches): Remove registering config values of
5479 Init_Or_Norm_Scalars_Config and Normalize_Scalars_Config.
5480 (Restore_Opt_Config_Switches): Remove code which restores the values of
5481 Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of
5482 Init_Or_Norm_Scalars.
5483 (Save_Opt_Config_Switches): Remove code which saves values of
5484 Init_Or_Norm_Scalars and Normalize_Scalars.
5485 (Set_Opt_Config_Switches): Remove code which restores config values of
5486 Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of
5487 Init_Or_Norm_Scalars.
5488
5489 2011-08-04 Yannick Moy <moy@adacore.com>
5490
5491 * frontend.adb (Frontend): remove previous patch to avoid full
5492 qualification in ALFA mode.
5493 * lib-xref-alfa.adb (Add_ALFA_Xrefs): use unique name for variables.
5494 * sem_util.adb, sem_util.ads (Unique_Name): new function to define a
5495 unique name for an entity, which could be used to identify the entity
5496 across compilation units.
5497
5498 2011-08-04 Thomas Quinot <quinot@adacore.com>
5499
5500 * prj-env.adb
5501 (Initialize_Default_Project_Path): Add target specific directory
5502 ($prefix/$target/lib/gnat) in front of project path in all cases
5503 (making gnatmake's behaviour consistent with gprbuild).
5504 * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb:
5505 Pass target name from Sdefault to project subsystem.
5506 * gnatls.adb: Show new target specific default project directory.
5507
5508 2011-08-04 Johannes Kanig <kanig@adacore.com>
5509
5510 * cstand.adb: Add Information to Identifier in Standard
5511 (Identifer_For): Set Entity to the corresponding entity
5512
5513 2011-08-04 Sergey Rybin <rybin@adacore.com>
5514
5515 * gnat_ugn.texi: Update doc on gnatcheck.
5516
5517 2011-08-04 Yannick Moy <moy@adacore.com>
5518
5519 * lib-xref-alfa.adb (Add_ALFA_Xrefs): correct definition of ranges of
5520 xrefs in a scope.
5521
5522 2011-08-04 Yannick Moy <moy@adacore.com>
5523
5524 * exp_prag.adb (Expand_Pragma_Check): in ALFA mode, return without
5525 performing expansion.
5526 * sem_ch6.adb (Analyze_Subprogram_Body_Helper,
5527 Analyze_Generic_Subprogram_Body): protect call to Process_PCCs so that
5528 it is not called in ALFA mode.
5529
5530 2011-08-04 Emmanuel Briot <briot@adacore.com>
5531
5532 * make.adb, osint.adb, osint.ads (Reset_Command_Line_Files): not used
5533 after all, so removed.
5534
5535 2011-08-04 Sergey Rybin <rybin@adacore.com>
5536
5537 * vms_data.ads: Add missing VMS qualifiers.
5538
5539 2011-08-04 Emmanuel Briot <briot@adacore.com>
5540
5541 * make.adb, makeutl.adb, osint.adb, osint.ads (Check_Mains): rebuild
5542 the list of files on the command line after processing it through
5543 Complete_Mains.
5544
5545 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5546
5547 * exp_ch7.adb (Build_Raise_Statement): Remove the specialized
5548 processing for .NET/JVM. These targets can now benefit from
5549 Raise_From_Controlled_Operation and they share the same processing with
5550 standard targets.
5551 (Establish_Transient_Scope): Remove the restriction for .NET/JVM.
5552 These targets need transient scopes in order to properly finalize short
5553 lived controlled objects.
5554 (Make_Handler_For_Ctrl_Operation): Remove the specialized processing for
5555 NET/JVM. These targets can now benefit from
5556 Raise_From_Controlled_Operation and they share the same processing with
5557 standard targets.
5558
5559 2011-08-04 Geert Bosch <bosch@adacore.com>
5560
5561 * tracebak.c (STOP_FRAME): Stop at any next pointer outside the stack
5562
5563 2011-08-04 Ed Schonberg <schonberg@adacore.com>
5564
5565 * exp_aggr.adb (Has_Visible_Private_Ancestor): subsidiary routine to
5566 Expand_Record_Aggregate, to determine whether aggregate must be
5567 expanded into assignments. This is the case if the ancestor part is
5568 private, regarless of the setting of the flag Has_Private_Ancestor.
5569
5570 2011-08-04 Ed Falis <falis@adacore.com>
5571
5572 * vxaddr2line.adb: Add support for e500v2 and for Linux hosts
5573
5574 2011-08-04 Bob Duff <duff@adacore.com>
5575
5576 * sinfo.ads: Fix comment.
5577
5578 2011-08-04 Steve Baird <baird@adacore.com>
5579
5580 * bindgen.adb (Get_Ada_Main_Name): If CodePeer_Mode is set, then
5581 choose a package name in much the same way as is
5582 done for JGNAT when VM_Target /= No_VM, except that
5583 a slightly more distinctive prefix string is used.
5584
5585 2011-08-04 Emmanuel Briot <briot@adacore.com>
5586
5587 * makeutl.adb (Complete_Mains): no longer accept unit names on the
5588 gnatmake command line.
5589 This behavior was never documented (and was supported only because of
5590 an early bug in the code). This case might lead to ambiguous cases
5591 (between unit names and truncated base names without suffixes).
5592
5593 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5594
5595 * a-tags.ads, a-tags.adb (Unregister_Tag): New routine.
5596 Remove the external tag of a tagged type from the internal hash table.
5597 * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on the
5598 expanded usage of the routine. Strenghten the check for Is_Master. Add
5599 processing for tagged types.
5600 (Build_Finalizer): Create all the necessary lists used in finalizer
5601 creation when the processed context is a package that may contain
5602 tagged types.
5603 (Expand_Cleanup_Actions): Rename the call to Has_Controlled_Objects to
5604 Requires_Cleanup_Actions.
5605 (Expand_N_Package_Body): Package bodies may need clean up code
5606 depending on whether they contain tagged types.
5607 (Expand_N_Package_Declaration): Package declarations may need clean up
5608 code depending on whether they contain tagged types.
5609 (Unregister_Tagged_Types): New routine. Search through a list of
5610 declarations or statements, looking for non-abstract Ada tagged types.
5611 For each such type, generate code to unregister the external tag.
5612 * exp_util.adb (Has_Controlled_Objects (Node_Id)): Renamed to
5613 Requires_Cleanup_Actions.
5614 (Requires_Cleanup_Actions (List_Id, Boolean)): New routine. Search
5615 through a list of declarations or statements looking for non-abstract
5616 Ada tagged types or controlled objects.
5617 * exp_util.ads (Has_Controlled_Objects (Node_Id)): Renamed to
5618 Requires_Cleanup_Actions.
5619 (Has_Controlled_Objects (List_Id, Boolean)): Removed.
5620 * rtsfind.ads: Add entry RE_Unregister_Tag to tables RE_Id and
5621 RE_Unit_Table.
5622
5623 2011-08-04 Vincent Celier <celier@adacore.com>
5624
5625 * prj-env.adb (For_All_Source_Dirs.For_Project): Check if project Prj
5626 has Ada sources, not project Project, because if the root project
5627 Project has no sources of its own, all projects will be deemed without
5628 sources.
5629
5630 2011-08-04 Gary Dismukes <dismukes@adacore.com>
5631
5632 * bindgen.adb (Gen_Adainit_Ada): Move the generation of the declaration
5633 of the No_Param_Proc acc-to-subp type used for initialization of
5634 __gnat_finalize_library_objects so that it's declared at library level
5635 rather than nested inside of the adainit routine.
5636
5637 2011-08-04 Javier Miranda <miranda@adacore.com>
5638
5639 * exp_disp.adb (Make_DT): Generate code to check the external tag ONLY
5640 if the tagged type has a representation clause which specifies its
5641 external tag.
5642
5643 2011-08-04 Ed Schonberg <schonberg@adacore.com>
5644
5645 * einfo.ads, einfo.adb (Has_Private_Ancestor): now a flag on types.
5646 Remove previous procedure with that name.
5647 * sem_ch3.adb (Build_Derived_Record_Type): set Has_Private_Ancestor
5648 when appropriate.
5649 * sem_aggr.adb (Resolve_Extension_Aggregate): if the ancestor part is a
5650 subtype mark, the ancestor cannot have unknown discriminants.
5651 (Resolve_Record_Aggregate): if the type has invisible components
5652 because of a private ancestor, the aggregate is illegal.
5653
5654 2011-08-04 Vincent Celier <celier@adacore.com>
5655
5656 * switch-m.adb (Normalize_Compiler_Switches): Recognize and take into
5657 account switches -gnat2005, -gnat12 and -gnat2012.
5658
5659 2011-08-04 Bob Duff <duff@adacore.com>
5660
5661 * s-tasdeb.ads: Minor comment fix.
5662
5663 2011-08-04 Arnaud Charlet <charlet@adacore.com>
5664
5665 * gnatlink.adb (Gnatlink): Pass -gnat83/95/05/12 switch to gcc in
5666 CodePeer mode.
5667 * switch.ads, switch.adb (Is_Language_Switch): New function.
5668
5669 2011-08-04 Vincent Celier <celier@adacore.com>
5670
5671 * switch-c.adb: Minor comment addition.
5672
5673 2011-08-04 Vincent Celier <celier@adacore.com>
5674
5675 * vms_conv.adb (Process_Argument): Fail graciously when qualifier
5676 ending with '=' is followed by a space (missing file name).
5677
5678 2011-08-04 Pascal Obry <obry@adacore.com>
5679
5680 * g-regist.ads: Fix size of HKEY on x86_64-windows.
5681
5682 2011-08-04 Ed Schonberg <schonberg@adacore.com>
5683
5684 * sem_ch12.adb (Analyze_Associations): New routine
5685 Check_Overloaded_Formal_Subprogram to reject a formal package when
5686 there is a named association or a box initialisation for an overloaded
5687 formal subprogram of the corresponding generic.
5688
5689 2011-08-04 Yannick Moy <moy@adacore.com>
5690
5691 * alfa.ads (ALFA_Xref_Record): add component for type of entity
5692 * get_alfa.adb, put_alfa.adb: Read and write new component of
5693 cross-reference.
5694 * lib-xref-alfa.adb (Collect_ALFA): generate new component.
5695
5696 2011-08-04 Pascal Obry <obry@adacore.com>
5697
5698 * urealp.adb: Minor reformatting.
5699
5700 2011-08-04 Tristan Gingold <gingold@adacore.com>
5701
5702 * exp_ch7.adb (build_finalizer.process_declarations.processing_actions):
5703 Handle the case when Cleanup_Protected_Object returns Empty.
5704
5705 2011-08-04 Yannick Moy <moy@adacore.com>
5706
5707 * frontend.adb (Frontend): only qualify names in non-ALFA mode
5708
5709 2011-08-04 Ed Schonberg <schonberg@adacore.com>
5710
5711 * sem_ch4.adb (Try_Class_Wide_Operation): if the context is a procedure
5712 call, ignore functions.
5713
5714 2011-08-04 Geert Bosch <bosch@adacore.com>
5715
5716 * urealp.adb (Equivalent_Decimal_Exponent): Avoid the use of floating
5717 point.
5718
5719 2011-08-04 Emmanuel Briot <briot@adacore.com>
5720
5721 * makeutl.adb (Compute_Builder_Switches): no longer accept a unit name
5722 as an index for Builder'Switches. This conforms to the documentation.
5723 * make.adb (Insert_Project_Sources): avoid duplicate code
5724
5725 2011-08-04 Emmanuel Briot <briot@adacore.com>
5726
5727 * makeutl.adb (Complete_Mains): if the user has passed a relative file
5728 name on the command line (for instance "../dummy"), never assume it can
5729 be a unit name.
5730
5731 2011-08-04 Tristan Gingold <gingold@adacore.com>
5732
5733 * bindgen.adb: Remove code the reference or create the
5734 Break_Start/__gnat_break_start procedure.
5735 * s-stalib.adb (Break_Start): Removed.
5736
5737 2011-08-04 Emmanuel Briot <briot@adacore.com>
5738
5739 * make.adb, makeutl.adb, makeutl.ads (Compute_Builder_Switches): now
5740 shared with gprbuild.
5741
5742 2011-08-04 Yannick Moy <moy@adacore.com>
5743
5744 * par-ch4.adb (P_Primary): preferentially issue an error message about
5745 a missing parenthesis arount a conditional or case expression in Ada
5746 2012 mode, if we detect that the alignment is not correct for a
5747 statement.
5748
5749 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5750
5751 * exp_ch7.adb (Process_Declarations): Do not consider the result of a
5752 tag-to-class-wide conversion as needing finalization actions.
5753 * exp_util.adb (Has_Controlled_Objects): Do not consider the result of
5754 a tag-to-class-wide conversion as needing finalization actions.
5755 (Is_Finalizable_Transient): The result of a tag-to-class-wide
5756 conversion does not need finalization actions.
5757 (Is_Tag_To_CW_Conversion): New routine.
5758 * exp_util.ads (Is_Tag_To_CW_Conversion): New routine. Determines
5759 whether an object is the result of a tag-to-class-wide conversion.
5760
5761 2011-08-04 Yannick Moy <moy@adacore.com>
5762
5763 * sem_ch13.adb (Analyze_Aspect_Specifications): correct order in which
5764 the left-hand-side and right-hand-side of a conjunct are inserted when
5765 translating a pre- or postcondition
5766 * sem_ch6.adb: Correct typo in comment
5767
5768 2011-08-04 Ed Schonberg <schonberg@adacore.com>
5769
5770 * gnat_rm.texi: Ravenscar does not prohibit dependence on
5771 Unchecked_Conversion and Unchecked_Deallocation.
5772
5773 2011-08-04 Thomas Quinot <quinot@adacore.com>
5774
5775 * make.adb: Minor reformatting.
5776
5777 2011-08-04 Emmanuel Briot <briot@adacore.com>
5778
5779 * prj.adb, prj.ads, makeutl.adb (Complete_Mains): search for the
5780 sources in the project and its imported projects, but not in the whole
5781 tree.
5782
5783 2011-08-04 Emmanuel Briot <briot@adacore.com>
5784
5785 * make.adb: Remove debug trace.
5786
5787 2011-08-04 Vincent Celier <celier@adacore.com>
5788
5789 * makeutl.adb (Do_Complete): Get the absolute path name of a relative
5790 path in canonical form, to be able to compare path names on platforms
5791 such as Windows or Darwin.
5792
5793 2011-08-04 Thomas Quinot <quinot@adacore.com>
5794
5795 * par_sco.adb (Traverse_Declarations_Or_Statements.Set_Statement_Entry):
5796 For a pragma (statement with C1 = 'P'), record the sloc of the pragma.
5797 * scos.ads: Update documentation accordingly.
5798 * put_scos.adb (Output_SCO_Line): Omit statement SCOs for disabled
5799 pragmas.
5800
5801 2011-08-04 Ed Schonberg <schonberg@adacore.com>
5802
5803 * sem_attr.adb (Bad_Attribute_For_Predicate): flag illegal use of
5804 attribute only if prefix type is scalar.
5805
5806 2011-08-04 Emmanuel Briot <briot@adacore.com>
5807
5808 * make.adb, makeutl.adb, prj-env.adb (Check_Mains): put back support
5809 in gnatmake for specifying mains on the command line that do not belong
5810 to the main project. These mains must currently all belong to the same
5811 project, though.
5812 (Ultimate_Extension_Of): removed, since duplicated
5813 Ultimate_Extending_Project.
5814
5815 2011-08-04 Arnaud Charlet <charlet@adacore.com>
5816
5817 * make.adb (Do_Codepeer_Globalize_Step): Removed. Use CodePeer_Mode
5818 instead.
5819 (CodePeer_Mode_String): New.
5820 (Linking_Phase, Binding_Phase): Call gnatlink with -P switch in
5821 CodePeer mode.
5822 (Scan_Make_Arg): Do not disable binding/linking phase in CodePeer mode.
5823 * bindgen.adb (Gen_Elab_Calls_Ada): Ignore subprograms in CodePeer
5824 mode, since no useful elaboration subprogram is needed by CodePeer.
5825 * gnatlink.adb (Gnatlink): Add support for -P switch (CodePeer mode).
5826 In this mode, compile binder file with -gnatC and do stop after this
5827 step.
5828
5829 2011-08-04 Vincent Celier <celier@adacore.com>
5830
5831 * exp_ch7.adb: Minor comment fix.
5832
5833 2011-08-04 Robert Dewar <dewar@adacore.com>
5834
5835 * exp_ch7.adb, make.adb, sem_ch10.adb, bindgen.adb, sem_res.adb,
5836 exp_ch4.adb, makeutl.adb: Minor reformatting.
5837
5838 2011-08-04 Emmanuel Briot <briot@adacore.com>
5839
5840 * make.adb, makeutl.adb, makeutl.ads (Make): major refactoring.
5841 Create several new subprograms to move code out of Make. This makes the
5842 code more readable, removes code duplication, and is a preparation work
5843 for adding support for aggregate projects.
5844
5845 2011-08-04 Tristan Gingold <gingold@adacore.com>
5846
5847 * s-po32gl.ads, s-po32gl.adb: New files.
5848 * exp_ch7.ads (Get_Global_Pool_For_Access_Type): New function.
5849 * exp_ch7.adb (Get_Global_Pool_For_Access_Type): New function.
5850 (Build_Finalization_Collection): Use it.
5851 * exp_ch4.adb (Complete_Controlled_Allocation): Ditto.
5852 * rtsfind.ads: System_Pool_32_Global, Re_Global_Pool_32_Object: New
5853 literals.
5854 * gcc-interface/Makefile.in: Use s-po32gl.o on VMS.
5855 * gcc-interface/Make-lang.in: Update dependencies.
5856
5857 2011-08-04 Emmanuel Briot <briot@adacore.com>
5858
5859 * makeutl.adb (Complete_Mains): add support for specs with no suffix on
5860 the command line.
5861
5862 2011-08-04 Emmanuel Briot <briot@adacore.com>
5863
5864 * make.adb, makeutl.adb (Complete_Mains): if a main specified on the
5865 command line is not a file name, also check whether it could be a unit
5866 name.
5867
5868 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
5869
5870 * bindgen.adb (Gen_Finalize_Library_Ada): Factor out code to generate
5871 the header of the finalization routine.
5872 If the unit has no finalizer but is a body whose spec has one, then
5873 generate the decrement of the elaboration entity only.
5874 If the unit has a finalizer and is a spec, then do not generate the
5875 decrement of the elaboration entity.
5876 (Gen_Finalize_Library_C): Likewise.
5877
5878 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5879
5880 * exp_ch7.adb (Alignment_Of): New subsidiary routine.
5881 (Bounds_Size_Expression): Removed.
5882 (Double_Alignment_Of): New subsidiary routine.
5883 (Make_Finalize_Address_Stmts): New local variable Index_Typ. Account
5884 for a hole in the dope vector of unconstrained arrays due to different
5885 index and element alignments.
5886
5887 2011-08-04 Ed Schonberg <schonberg@adacore.com>
5888
5889 * sem_res.adb (Resolve_Allocator): diagnose task allocator that will
5890 raise program_error because body has not been seen yet.
5891
5892 2011-08-04 Ed Schonberg <schonberg@adacore.com>
5893
5894 * sem_ch10.adb (Analyze_With_Clause): Protect against child unit with
5895 an unresolved name.
5896
5897 2011-08-04 Vincent Celier <celier@adacore.com>
5898
5899 * makeutl.adb (Do_Complete): Check absolute paths in canonical forms
5900
5901 2011-08-04 Yannick Moy <moy@adacore.com>
5902
5903 * alfa.adb, alfa.ads (Unique_Defining_Entity): move function from here
5904 * sem_util.adb, sem_util.ads (Unique_Defining_Entity): ...to here
5905
5906 2011-08-04 Thomas Quinot <quinot@adacore.com>
5907
5908 * sem_ch12.adb (Analyze_Package_Instantiation): Do not omit body for
5909 instantiation in RCI.
5910
5911 2011-08-04 Emmanuel Briot <briot@adacore.com>
5912
5913 * make.adb: Share more code with gprbuild
5914
5915 2011-08-04 Emmanuel Briot <briot@adacore.com>
5916
5917 * projects.texi: Added documentation for the IDE'Gnat project file
5918 attribute.
5919
5920 2011-08-04 Nicolas Roche <roche@adacore.com>
5921
5922 * gnat_rm.texi: Minor editing.
5923
5924 2011-08-04 Javier Miranda <miranda@adacore.com>
5925
5926 * bindgen.adb (Gen_Adafinal_Ada): Do not differentiate the main case
5927 and the library case for VM targets.
5928 (Gen_Adainit_Ada): Likewise.
5929
5930 2011-08-04 Robert Dewar <dewar@adacore.com>
5931
5932 * g-altive.ads: Minor comment updates.
5933 * prj-nmsc.adb: Minor reformatting.
5934
5935 2011-08-04 Javier Miranda <miranda@adacore.com>
5936
5937 * opt.ads
5938 (Normalize_Scalars_Config): Value of the configuration switch set by
5939 pragma Normalize_Scalars when it appears in the gnat.adc file.
5940 (Normalize_Scalars): New field for record Config_Switches_Type. Used
5941 to save and restore settings of this pragma.
5942 * opt.adb
5943 (Register_Opt_Config_Switches, Save_Opt_Config_Switches,
5944 Restore_Opt_Config_Switches): Add missing support for Normalize_Scalars.
5945
5946 2011-08-04 Vincent Celier <celier@adacore.com>
5947
5948 * gnat_ugn.texi: Document gnatlink options -M and -M=mapfile
5949
5950 2011-08-04 Arnaud Charlet <charlet@adacore.com>
5951
5952 * makeutl.adb: Minor reformatting.
5953
5954 2011-08-04 Olivier Hainque <hainque@adacore.com>
5955
5956 * g-altive.ads: Update comments to reflect that only the soft
5957 binding is available today.
5958
5959 2011-08-04 Robert Dewar <dewar@adacore.com>
5960
5961 * bindgen.adb, einfo.adb, sem_ch12.adb, s-tasren.adb, sem_res.adb,
5962 makeutl.adb, prj-nmsc.adb, opt.ads, prj-env.adb: Minor reformatting
5963 * gcc-interface/Make-lang.in: Update dependencies.
5964
5965 2011-08-04 Arnaud Charlet <charlet@adacore.com>
5966
5967 * prj-env.adb: Remove local debug traces.
5968
5969 2011-08-04 Yannick Moy <moy@adacore.com>
5970
5971 * checks.adb (Apply_Float_Conversion_Check): correct a typo where Lo_OK
5972 was used instead of Hi_OK, which could cause a read of an uninitialized
5973 value later on. Detected while working on the new warning.
5974 * exp_ch9.adb (Expand_N_Entry_Declaration): remove useless assignment
5975 to local variable.
5976 * sem_ch5.adb (Analyze_Assignment): set the last assignment component
5977 in more cases, in order to detect more unreferenced values.
5978 * sem_util.adb, sem_util.ads (Get_Enclosing_Object): return enclosing
5979 object for expression, if any.
5980
5981 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
5982
5983 * exp_intr.adb (Expand_Binary_Operator_Call): Look at the RM size of
5984 the operand types instead of the Esize.
5985
5986 2011-08-04 Steve Baird <baird@adacore.com>
5987
5988 * switch-b.adb (Scan_Binder_Switches): Add -P binder switch, used to
5989 enable CodePeer_Mode.
5990 * bindusg.adb (Display): Add help message describing -P binder switch.
5991 * gnat_ugn.texi: Document -P binder switch.
5992 * bindgen.adb (Gen_Main_Ada): If CodePeer_Mode is set, then call the
5993 user-defined main program directly.
5994 (Gen_Output_File_Ada): If CodePeer_Mode is set, generate a with of the
5995 user-defined main program in the context clause of the package body.
5996
5997 2011-08-04 Yannick Moy <moy@adacore.com>
5998
5999 * alfa.adb, alfa.ads (Get_Entity_For_Decl): remove function, partial
6000 duplicate of Defining_Entity
6001 (Get_Unique_Entity_For_Decl): rename function into
6002 Unique_Defining_Entity
6003 * einfo.adb, einfo.ads (Is_In_ALFA, Body_Is_In_ALFA): remove flags
6004 (Formal_Proof_On): remove synthesized flag
6005 * cstand.adb, sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb,
6006 sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_res.adb, sem_util.adb,
6007 sem_util.ads, stand.ads: Remove treatment associated to entities in ALFA
6008 * sem_prag.adb (Analyze_Pragma): remove special treatment for pragma
6009 Annotate (Formal_Proof)
6010
6011 2011-08-04 Emmanuel Briot <briot@adacore.com>
6012
6013 * prj-env.adb (Create_Config_Pragmas_File): fix handling of multi-unit
6014 source files with non-standard naming schemes, in imported projects
6015
6016 2011-08-04 Emmanuel Briot <briot@adacore.com>
6017
6018 * makeutl.adb (Complete_Mains): when a multi-unit source file is
6019 specified on the gprbuild command line, we need to compile all units
6020 within that file, not just the first one we find
6021 Fix error message for mains that are not found.
6022
6023 2011-08-04 Thomas Quinot <quinot@adacore.com>
6024
6025 * sem_ch6.adb: Update comment.
6026 * sem_ch12.adb: Minor reformatting.
6027
6028 2011-08-04 Bob Duff <duff@adacore.com>
6029
6030 * s-tasren.adb (Task_Do_Or_Queue): Previous code was reading
6031 Acceptor.Terminate_Alternative without locking Acceptor, which causes a
6032 race condition whose symptom is to fail to lock Parent. That, in turn,
6033 causes Parent.Awake_Count to be accessed without locking Parent, which
6034 causes another race condition whose symptom is that Parent.Awake_Count
6035 can be off by 1 (either too high or too low). The solution is to lock
6036 Parent unconditionally, and then lock Acceptor, before reading
6037 Acceptor.Terminate_Alternative.
6038
6039 2011-08-04 Arnaud Charlet <charlet@adacore.com>
6040
6041 * debug.adb: Update comment.
6042
6043 2011-08-04 Robert Dewar <dewar@adacore.com>
6044
6045 * par_sco.adb, exp_util.adb, make.adb, a-tags.adb, sem_prag.adb,
6046 sem_util.adb, sem_attr.adb, exp_ch4.adb, g-comlin.adb, g-comlin.ads,
6047 exp_ch6.adb: Minor reformatting.
6048
6049 2011-08-04 Gary Dismukes <dismukes@adacore.com>
6050
6051 * gnat_ugn.texi: Add sentence about the case of compile-time-detected
6052 checks for -gnateE.
6053
6054 2011-08-04 Ed Schonberg <schonberg@adacore.com>
6055
6056 * gnat_rm.texi: update Ravenscar desription to reflect Ada2012 RM.
6057
6058 2011-08-04 Thomas Quinot <quinot@adacore.com>
6059
6060 * sinfo.ads: Minor reformatting.
6061
6062 2011-08-04 Emmanuel Briot <briot@adacore.com>
6063
6064 * makeutl.adb, makeutl.ads, prj-nmsc.adb (Complete_Mains): report error
6065 even if there is no location.
6066
6067 2011-08-04 Ed Schonberg <schonberg@adacore.com>
6068
6069 * sem_res.adb, sem_ch4.adb: move check for restriction
6070 No_Task_Hierarchy to resolve_allocator.
6071
6072 2011-08-04 Thomas Quinot <quinot@adacore.com>
6073
6074 * sinfo.adb, sinfo.ads, sem_prag.adb, sem_ch12.adb (Pragma_Enabled):
6075 This flag of N_Pragma nodes is not used, remove it as well as all of
6076 the associated circuitry.
6077
6078 2011-08-04 Javier Miranda <miranda@adacore.com>
6079
6080 * exp_disp.adb (Make_DT): Switch -gnatdQ disables the generation of the
6081 runtime check on duplicated externa tags
6082 * debug.adb Document switch -gnatdQ.
6083
6084 2011-08-04 Gary Dismukes <dismukes@adacore.com>
6085
6086 * a-fihema.ads: Minor typo fix.
6087
6088 2011-08-04 Yannick Moy <moy@adacore.com>
6089
6090 * sem_ch10.adb: Minor comment update.
6091
6092 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6093
6094 * einfo.adb: Update the node field usage to reflect the renaming of
6095 Return_Flag to Return_ Flag_Or_Transient_Decl.
6096 (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl.
6097 (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl.
6098 (Write_Field15_Name): Change Return_Flag to
6099 Return_Flag_Or_Transient_Decl.
6100 * einfo.ads: Rename node field Return_Flag to
6101 Return_Flag_Or_Transient_Decl. Update the associated comment and all
6102 occurrences in entities.
6103 (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. Update
6104 associated Inline pragma.
6105 (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. Update
6106 associated Inline pragma.
6107 * exp_ch4.ads, exp_ch4.adb (Expand_N_Expression_With_Actions): New
6108 routine.
6109 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Update the calls to
6110 Return_Flag and Set_Return_Flag.
6111 * exp_ch7.adb (Process_Declarations): Add code to recognize hook
6112 objects generated for controlled transients declared inside an
6113 Exception_With_Actions. Update the calls to Return_Flag.
6114 (Process_Object_Declaration): Add code to add a null guard for hook
6115 objects generated for controlled transients declared inside an
6116 Exception_With_Actions. Update related comment.
6117 * exp_util.adb (Has_Controlled_Objects): Add code to recognize hook
6118 objects generated for controlled transients declared inside an
6119 Exception_With_Actions. Update the calls to Return_Flag.
6120 * expander.adb (Expand): Add new case for N_Expression_With_Actions.
6121
6122 2011-08-04 Ed Schonberg <schonberg@adacore.com>
6123
6124 * sem_util.adb:(Wrong_Type): Improve error message on a one-element
6125 positional aggregate.
6126
6127 2011-08-04 Vincent Celier <celier@adacore.com>
6128
6129 * par_sco.adb (Process_Decisions.Output_Header): Check and record pragma
6130 SLOC only for pragmas.
6131
6132 2011-08-04 Emmanuel Briot <briot@adacore.com>
6133
6134 * projects.texi: Minor typo fix.
6135
6136 2011-08-04 Emmanuel Briot <briot@adacore.com>
6137
6138 * prj-nmsc.adb (Check_File): Minor change to traces, to help debugging
6139 on case-sensitive file systems.
6140
6141 2011-08-04 Thomas Quinot <quinot@adacore.com>
6142
6143 * put_scos.adb (Put_SCOs): Do not emit decision SCO for an X decision
6144 nested in a disabled pragma.
6145 * scos.ads, scos.adb, par_sco.ads, par_sco.adb: Record sloc of
6146 enclosing pragma, if any, for X decisions.
6147
6148 2011-08-04 Thomas Quinot <quinot@adacore.com>
6149
6150 * sem_prag.adb: Minor reformatting.
6151
6152 2011-08-04 Vincent Celier <celier@adacore.com>
6153
6154 * a-tags.adb (Check_TSD): Avoid concatenation of strings, as it is not
6155 allowed in no run time mode.
6156
6157 2011-08-04 Vincent Celier <celier@adacore.com>
6158
6159 * make.adb (Check): When -gnatc is used, check for the source file
6160 inside the ALI file with a canonical case file name.
6161
6162 2011-08-04 Emmanuel Briot <briot@adacore.com>
6163
6164 * g-comlin.adb, g-comlin.ads (Add_Switch): Put back support for
6165 overriding the separator.
6166
6167 2011-08-04 Robert Dewar <dewar@adacore.com>
6168
6169 * sem_aggr.adb, par_sco.adb, sem_type.adb, exp_util.adb, exp_ch9.adb,
6170 prj-nmsc.adb, sem_ch13.adb, exp_strm.adb: Minor reformatting.
6171
6172 2011-08-04 Robert Dewar <dewar@adacore.com>
6173
6174 * gnat_rm.texi: Minor documentation fix for pragma Annotate.
6175
6176 2011-08-04 Yannick Moy <moy@adacore.com>
6177
6178 * sem_attr.adb (Analyze_Attribute): add check during pre-analysis that
6179 'Result only appears in postcondition of function.
6180
6181 2011-08-04 Thomas Quinot <quinot@adacore.com>
6182
6183 * a-tags.adb (Check_TSD): When raising PROGRAM_ERROR for a duplicated
6184 external tag, include the value of the external tag in the exception
6185 message.
6186
6187 2011-08-04 Yannick Moy <moy@adacore.com>
6188
6189 * sem_attr.adb (Result): modify error message for misplaced 'Result
6190
6191 2011-08-04 Sergey Rybin <rybin@adacore.com>
6192
6193 * gnat_rm.texi (pragma Annotate): Fix syntax description to make it
6194 clear that the second argument must be an identifier.
6195
6196 2011-08-04 Thomas Quinot <quinot@adacore.com>
6197
6198 * exp_ch9.adb (Build_Barrier_Function): When compiling with
6199 -fpreserve-control-flow, insert an IF statement on the barrier
6200 condition to ensure that a conditional branch instruction is generated.
6201
6202 2011-08-04 Emmanuel Briot <briot@adacore.com>
6203
6204 * prj-part.adb, prj.adb, prj.ads, prj-tree.ads
6205 (Processing_Flags.Ignore_Missing_With): new flag.
6206
6207 2011-08-04 Emmanuel Briot <briot@adacore.com>
6208
6209 * prj-nmsc.adb (Find_Sources, Path_Name_Of): Fix handling of
6210 Source_List_File on case-insensitive systems where the file is actually
6211 on a case-sensitive file system (NFS,...).
6212
6213 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6214
6215 * sem_ch6.adb (Analyze_Function_Return): In a rare case where a
6216 function return contains a controlled [extension] aggregate and the
6217 return statement is not part of a handled sequence of statements, wrap
6218 the return in a block. This ensures that all controlled temporaries
6219 generated during aggregate resolution will be picked up by the
6220 finalization machinery.
6221
6222 2011-08-04 Ed Schonberg <schonberg@adacore.com>
6223
6224 * sem_aggr.adb (Resolve_Aggregate): If aggregate has box-initialized
6225 components, freeze type before resolution, to ensure that default
6226 initializations are present for all components.
6227 * sem_res.adb (Resolve_Actuals): the designated object of an
6228 accces-to-constant type is a legal actual in a call to an
6229 initialization procedure.
6230
6231 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6232
6233 * exp_util.adb (Extract_Renamed_Object): Add N_Type_Conversion and
6234 N_Unchecked_Type_Conversion to the possible containers of a renamed
6235 transient variable.
6236
6237 2011-08-04 Yannick Moy <moy@adacore.com>
6238
6239 * par-ch13.adb (Aspect_Specifications_Present): recognize
6240 "with Identifier'Class =>" as an aspect, so that a meaningful warning
6241 is issued in Strict mode.
6242 * par.adb: Fix typos in comments.
6243
6244 2011-08-04 Yannick Moy <moy@adacore.com>
6245
6246 * sem_attr.adb (Result): modify error message to take into account Post
6247 aspect when compiling Ada 2012 (or newer) code.
6248
6249 2011-08-04 Nicolas Roche <roche@adacore.com>
6250
6251 * env.c (__gnat_clearenv): Avoid use of dynamic size array in order to
6252 remove need for GCC exceptions.
6253
6254 2011-08-04 Vincent Celier <celier@adacore.com>
6255
6256 * makeutl.adb (Do_Complete): Call Debug_Output with the name of the
6257 project, not the source file name.
6258 * prj.adb (Find_Sources.Look_For_Sources): If the source has been
6259 excluded, continue looking. This excluded source will only be returned
6260 if there is no other source with the same base name that is not locally
6261 removed.
6262
6263 2011-08-04 Ed Schonberg <schonberg@adacore.com>
6264
6265 * sem_res.adb (Resolve_Intrinsic_Operator): if the result type is
6266 private and one of the operands is a real literal, use a qualified
6267 expression rather than a conversion which is not meaningful to the
6268 back-end.
6269
6270 2011-08-04 Yannick Moy <moy@adacore.com>
6271
6272 * sem_ch13.adb (Aspect_Loop): when an aspect X and its classwise
6273 corresponding aspect X'Class are allowed, proceed with analysis of the
6274 aspect instead of skipping it.
6275
6276 2011-08-04 Tristan Gingold <gingold@adacore.com>
6277
6278 * s-flocon.adb, s-flocon.ads: Add a body for s-flocon.ads
6279 This will allow to have an Ada implementation for the subprogram.
6280
6281 2011-08-04 Ed Schonberg <schonberg@adacore.com>
6282
6283 * sem_ch3.adb (Analyze_Full_Type_Declaration): If the declaration is a
6284 completion and aspects are present, apply them to the entity for the
6285 type which is currently the partial view, but which is the one that
6286 will be frozen.
6287 * sem_ch13.adb (Analyze_Aspect_Specifications): if the predicate
6288 applies to a partial view, indicate that the full view has predicates
6289 and delayed aspects.
6290 (Replace_Type_Reference): Handle properly predicates that apply to the
6291 full view of a private completion.
6292
6293 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
6294
6295 * layout.adb (Layout_Type): For composite types, do not set Esize.
6296 * freeze.adb (Set_Small_Size): Remove test on alignment and do not
6297 set Esize.
6298 (Size_Known): Look at the RM size of components instead of the Esize.
6299 (Freeze_Record_Type): Look at the RM size instead of the Esize to
6300 issue warning and activate Implicit_Packing.
6301 (Freeze_Entity): Likewise. Do not issue a warning for alias/atomic
6302 if the Esize is not known.
6303 * sem_ch13.adb (Analyze_Attribute_Definition_Clause) <Size>: Set Esize
6304 for elementary types only.
6305 (Analyze_Record_Representation_Clause): Look at the RM size instead
6306 of the Esize to issue errors.
6307 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set Esize if it
6308 is not known.
6309 <E_Record_Type>: Look at the RM size instead of the Esize. Remove
6310 obsolete block.
6311 Look at the RM size instead of the Esize for types if the latter is
6312 not known.
6313 (gnat_to_gnu_field): Use Known_Esize instead of Known_Static_Esize.
6314
6315 2011-08-04 Ed Schonberg <schonberg@adacore.com>
6316
6317 * sem_type.adb: proper handling of equality not involving anonymous
6318 access types.
6319
6320 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6321
6322 * exp_ch7.adb (Create_Finalizer): Remove local variables Spec_Nod and
6323 Vis_Decls. When creating a library-level finalizer for a package spec,
6324 both the declaration and body of the finalizer are inserted either in
6325 the visible or private declarations of the package spec.
6326
6327 2011-08-04 Javier Miranda <miranda@adacore.com>
6328
6329 * sem_ch3.adb (Derive_Subprograms): Complete assertion to request the
6330 use of the full-view of a type when invoking Is_Ancestor.
6331 * sem_type.adb (Is_Ancestor): For consistency, when the traversal of
6332 the full-view of private parents is requested, then use also the
6333 full-view of the parent of the first derivation.
6334
6335 2011-08-04 Tristan Gingold <gingold@adacore.com>
6336
6337 * s-taprop-vxworks.adb (Enter_Task): Use System.Float_Control.Reset
6338 instead of the locally imported procedure.
6339 * s-taprop-mingw.adb (Enter_Task): Ditto.
6340 * s-valrea.adb (Scan_Real): Ditto.
6341 * s-imgrea.adb (Set_Image_Real): Ditto.
6342 * s-flocon.ads: Make the package pure.
6343
6344 2011-08-04 Thomas Quinot <quinot@adacore.com>
6345
6346 * sinfo.ads, sinfo.adb (Debug_Statement, Set_Debug_Statement): Remove.
6347 * tbuild.ads, tbuild.adb (Make_Pragma): Adjust accordingly.
6348 * sinfo-cn.ads, sinfo-cn.adb (Change_Name_To_Procedure_Call_Statement):
6349 New subprogram, moved here from...
6350 * par.adb, par-ch5.adb (P_Statement_Name): ... here.
6351 * par-prag.adb (Par.Prag, case Pragma_Debug): Do not perform any
6352 rewriting of the last argument into a procedure call statement here...
6353 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): ...do it there
6354 instead.
6355
6356 2011-08-04 Thomas Quinot <quinot@adacore.com>
6357
6358 * par_sco.adb: Minor reformatting.
6359
6360 2011-08-04 Robert Dewar <dewar@adacore.com>
6361
6362 * erroutc.adb: Minor reformatting.
6363
6364 2011-08-04 Thomas Quinot <quinot@adacore.com>
6365
6366 * par_sco.adb: Comment update.
6367
6368 2011-08-04 Tristan Gingold <gingold@adacore.com>
6369
6370 * s-flocon.ads: New file.
6371 * g-flocon.ads: Now a renaming of s-flocon.
6372 * Makefile.rtl: Add s-flocon.o
6373
6374 2011-08-04 Javier Miranda <miranda@adacore.com>
6375
6376 * exp_strm.adb (Build_Array_Input_Function): if the array type is
6377 constrained, do not attempt to build a subtype of it.
6378
6379 2011-08-04 Yannick Moy <moy@adacore.com>
6380
6381 * errout.ads Change comments: remove 'R'M as an example where quotes
6382 are needed; add ALFA as another case where quotes are not needed
6383 * erroutc.adb (Set_Msg_Insertion_Reserved_Word): add ALFA as another
6384 case where quotes are not needed.
6385 * sem_ch11.adb, sem_ch13.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb,
6386 sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_prag.adb, sem_res.adb:
6387 Remove all occurrences of 'A'L'F'A
6388
6389 2011-08-04 Ed Schonberg <schonberg@adacore.com>
6390
6391 * sem_ch13.adb: check legality of invariant pragma.
6392
6393 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
6394
6395 * bindgen.adb: Add comments.
6396
6397 2011-08-04 Yannick Moy <moy@adacore.com>
6398
6399 * einfo.adb, einfo.ads: Free Flag254 and make Formal_Proof_On a
6400 synthesized flag.
6401 * sem_prag.adb (Analyze_Pragma): record the pragma Annotate
6402 (Formal_Proof, On/Off) in the Rep_Item list of the current subprogram.
6403
6404 2011-08-04 Robert Dewar <dewar@adacore.com>
6405
6406 * exp_ch7.adb, exp_ch6.adb, sem_ch3.adb, layout.adb, sem_ch5.adb,
6407 osint-c.ads, sem_util.ads, gnat1drv.adb, targparm.ads, sem_ch6.adb,
6408 sem_ch13.adb, s-pooloc.adb: Minor reformatting.
6409
6410 2011-08-04 Thomas Quinot <quinot@adacore.com>
6411
6412 * s-pooloc.ads, s-pooglo.ads: Minor reformatting
6413
6414 2011-08-04 Thomas Quinot <quinot@adacore.com>
6415
6416 PR ada/47880
6417 * s-pooloc.adb (Deallocate): Fix the case of deallocating the only
6418 allocated object.
6419
6420 2011-08-04 Robert Dewar <dewar@adacore.com>
6421
6422 * einfo.ads, exp_ch4.adb: Minor reformatting.
6423
6424 2011-08-04 Jerome Lambourg <lambourg@adacore.com>
6425
6426 * back_end.ads (Gen_Or_Update_Object_File): Add more comments.
6427
6428 2011-08-04 Ed Schonberg <schonberg@adacore.com>
6429
6430 * exp_ch4.adb (Expand_Composite_Equality): code cleanup: use component
6431 type in all cases to compute list of primitive operations, because full
6432 view may be an itype that is not attached to the list of declarations.
6433
6434 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
6435
6436 * bindgen.adb (Gen_Adafinal_Ada): Generate an early return if the
6437 library has already been finalized.
6438 (Gen_Adafinal_C): Likewise.
6439 (Gen_Adainit_Ada): Generate an early return if the library has
6440 already been elaborated.
6441 (Gen_Adainit_C): Likewise.
6442 (Gen_Output_File_Ada): Generate an elaboration flag.
6443 (Gen_Output_File_C): Likewise.
6444
6445 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6446
6447 * exp_ch4.adb (Expand_Allocator_Expression): Disable the generation of
6448 Set_Finalize_Address_Ptr for CodePeer because Finalize_Address was not
6449 built in the first place.
6450 (Expand_N_Allocator): Disable the generation of Set_Finalize_Address_Ptr
6451 for CodePeer because Finalize_Address was not built to begin with.
6452 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Ditto.
6453
6454 2011-08-04 Pascal Obry <obry@adacore.com>
6455
6456 * adaint.c (__gnat_tmp_name): Use current process id to create temp
6457 filenames, this ensures unicity of filenames across processes.
6458
6459 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6460
6461 * bindgen.adb (Gen_Finalize_Library_Ada): Rename generated routine
6462 Raise_Controlled to Raise_From_Controlled_Operation. Update the
6463 signature of Raise_From_Controlled_Operation by adding flag From_Abort.
6464 Add False as the actual to From_Abort in the generated call to
6465 Raise_From_Controlled_Operation.
6466
6467 2011-08-04 Jerome Lambourg <lambourg@adacore.com>
6468
6469 * osint-c.ads, osint-c.adb (Set_Library_Info_Name): Move to declaration
6470 so that the ali file name can be retrieved from outside of this package.
6471 * back_end.ads, back_end.adb (Gen_Or_Update_Object_File): New method
6472 doing nothing in the general case, but used to update the object file
6473 timestamp if directly generated by the backend.
6474 * gnat1drv.adb (Gnat1drv): Make sure the object file's timestamp is set
6475 to a later time than the ali file one.
6476
6477 2011-08-04 Yannick Moy <moy@adacore.com>
6478
6479 * einfo.adb, einfo.ads (Formal_Proof_On): new flag set on subprogram
6480 entities whose body contains an Annotate pragma which forces formal
6481 proof on this body.
6482 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
6483 sem_ch6.adb, sem_ch9.adb, sem_res.adb: Adapt call to
6484 Mark_Non_ALFA_Subprogram to pass in a message and node.
6485 * sem_prag.adb (Analyze_Pragma): add treatment of pragma Annotate
6486 (Forma_Proof, On) which sets the flag Formal_Proof_On in the
6487 surrounding subprogram.
6488 * sem_util.adb, sem_util.ads (Mark_Non_ALFA_Subprogram,
6489 Mark_Non_ALFA_Subprogram_Unconditional): if the subprogram being marked
6490 as not in ALFA is annotated with Formal_Proof being On, then an error
6491 is issued based on the additional parameters for message and node.
6492 * snames.ads-tmpl (Name_Formal_Proof): new name for annotation.
6493 * gcc-interface/Make-lang.in: Update dependencies.
6494
6495 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6496
6497 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not generate
6498 Finalize_Address when CodePeer is enabled.
6499
6500 2011-08-04 Pascal Obry <obry@adacore.com>
6501
6502 * adaint.c (__gnat_tmp_name): Use _tempnam() instead of tempnam() as
6503 the latter returns a pointer to a static buffer which is deallocated
6504 at the end of the routine.
6505
6506 2011-08-04 Yannick Moy <moy@adacore.com>
6507
6508 * sem_ch3.adb (Array_Type_Declaration): move test for type in ALFA
6509 after index creation; mark unconstrained base array type generated as
6510 being in/not in ALFA as well
6511 (Make_Index): mark subtype created as in/not in ALFA
6512 * sem_ch5.adb (Analyze_Iteration_Scheme): mark entity for iterating
6513 over a loop as in/not in ALFA, depending on its type and form of loop
6514 iteration.
6515
6516 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6517
6518 * exp_ch7.adb (Build_Object_Declarations): Initialize flag Abort
6519 directly to False on .NET and JVM.
6520
6521 2011-08-04 Yannick Moy <moy@adacore.com>
6522
6523 * sem_ch3.adb (Constrain_Enumeration, Constrain_Integer): remove
6524 constraint that subtype must come from source code to be in ALFA, so
6525 that anonymous subtypes can be in ALFA too.
6526
6527 2011-08-04 Yannick Moy <moy@adacore.com>
6528
6529 * sem_ch3.adb (Analyze_Object_Declaration): remove obsolete addition of
6530 reference for ALFA mode.
6531 * lib-xref-alfa.adb, lib-xref.ads (Traverse_Compilation_Unit): make
6532 procedure public so as to use it from formal verification back-end.
6533
6534 2011-08-04 Jerome Lambourg <lambourg@adacore.com>
6535
6536 * g-comlin.adb (For_Each_Simple_Switch.Is_In_Config): Remove the
6537 invalid checks of the Parameter, making Remove_Switch not working
6538 correctly.
6539
6540 2011-08-04 Arnaud Charlet <charlet@adacore.com>
6541
6542 * targparm.ads: Update header: no run-time exception is needed on this
6543 file.
6544
6545 2011-08-04 Vincent Celier <celier@adacore.com>
6546
6547 * a-fihema.adb: Use System.IO instead of GNAT.IO
6548
6549 2011-08-04 Thomas Quinot <quinot@adacore.com>
6550
6551 * sem_ch3.adb (Access_Definition): Anonymous access to subprogram types
6552 are forbidden in Compiler_Unit mode.
6553
6554 2011-08-04 Robert Dewar <dewar@adacore.com>
6555
6556 * sem_util.adb: Minor reformatting.
6557
6558 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6559
6560 * bindgen.adb (Gen_Finalize_Library_Ada): Update the import string for
6561 library-level finalizers.
6562 (Gen_Finalize_Library_C): Update the import string for library-level
6563 finalizers.
6564 (Gen_Finalize_Library_Defs_C): Update the definition name of a
6565 library-level finalizer.
6566 * exp_ch7.adb: Remove with and use clauses for Stringt.
6567 (Create_Finalizer): Remove local variables Conv_Name, Prag_Decl,
6568 Spec_Decl. Add local variable Body_Id. The names of library-level
6569 finalizers are now manually fully qualified and are no longer external.
6570 A single name is now capable of servicing .NET, JVM and non-VM targets.
6571 Pragma Export is no longer required to provide visibility for the name.
6572 (Create_Finalizer_String): Removed.
6573 (New_Finalizer_Name): New routine which mimics New_..._Name.
6574
6575 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
6576
6577 * sem_elab.adb (Check_Internal_Call_Continue): Change the type of the
6578 elaboration counter to Standard_Short_Integer.
6579 * sem_util.adb (Build_Elaboration_Entity): Likewise.
6580 * bindgen.adb (Gen_Elab_Externals_Ada): Adjust to above change.
6581 (Gen_Elab_Externals_C): Likewise.
6582
6583 2011-08-04 Ed Falis <falis@adacore.com>
6584
6585 * system-vxworks-arm.ads, system-vxworks-sparcv9.ads,
6586 system-vxworks-ppc.ads, system-vxworks-m68k.ads,
6587 system-vxworks-mips.ads, system-vxworks-x86.ads
6588 (Always_Compatible_Rep): set to False for all VxWorks targets.
6589
6590 2011-08-04 Robert Dewar <dewar@adacore.com>
6591
6592 * par_sco.adb, prj-proc.adb, make.adb, bindgen.adb, prj.adb, prj.ads,
6593 makeutl.adb, makeutl.ads, prj-nmsc.adb, exp_ch5.adb, exp_ch12.adb,
6594 exp_ch7.ads, exp_util.ads, sem_util.ads, g-comlin.ads, exp_ch6.adb,
6595 exp_ch6.ads, lib-xref.ads, exp_ch7.adb, exp_util.adb, exp_dist.adb,
6596 exp_strm.adb, gnatcmd.adb, freeze.adb, g-comlin.adb, lib-xref-alfa.adb,
6597 sem_attr.adb, sem_prag.adb, sem_util.adb, sem_elab.adb, sem_ch8.adb,
6598 sem_ch11.adb, sem_eval.adb, sem_ch13.adb, sem_disp.adb, a-fihema.adb:
6599 Minor reformatting and code reorganization.
6600
6601 2011-08-04 Emmanuel Briot <briot@adacore.com>
6602
6603 * projects.texi: Added doc for aggregate projects.
6604
6605 2011-08-04 Emmanuel Briot <briot@adacore.com>
6606
6607 * prj-proc.adb, prj-nmsc.adb, prj-env.adb (Process_Declarative_Items):
6608 Add support for overriding the Project_Path in aggregate projects.
6609
6610 2011-08-04 Robert Dewar <dewar@adacore.com>
6611
6612 * a-cofove.ads: Minor reformatting.
6613
6614 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6615
6616 * exp_ch7.adb (Build_Adjust_Or_Finalize_Statements): Update the comment
6617 on the generated code.
6618 (Build_Finalize_Statements): Update the comment on the generated code.
6619 (Build_Initialize_Statements): Update the comment on the generated code.
6620 (Build_Object_Declarations): Add local variable Result. The object
6621 declarations are now built in sequence.
6622 * rtsfind.ads: Add RE_Exception_Occurrence_Access to tables RE_Id and
6623 RE_Unit_Table.
6624
6625 2011-08-04 Robert Dewar <dewar@adacore.com>
6626
6627 * checks.adb, alfa.adb, alfa.ads: Minor reformatting.
6628
6629 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
6630
6631 * einfo.ads (Elaboration_Entity): Document new definition and use.
6632 (Elaboration_Entity_Required): Adjust to above change.
6633 * exp_attr.adb (Expand_N_Attribute_Reference): Likewise.
6634 * exp_ch12.adb: And with and use for Snames.
6635 (Expand_N_Generic_Instantiation): Test 'Elaborated attribute.
6636 * exp_util.adb (Set_Elaboration_Flag): Likewise.
6637 * sem_attr.adb (Analyze_Attribute) <Check_Library_Unit>: Delete.
6638 <Check_Unit_Name>: Deal with N_Expanded_Name.
6639 <Attribute_Elaborated>: Extend to all unit names.
6640 * sem_elab.adb: And with and use for Uintp.
6641 (Check_Internal_Call_Continue): Adjust to Elaboration_Entity change.
6642 * sem_util.ads (Build_Elaboration_Entity): Adjust comment.
6643 * sem_util.adb (Build_Elaboration_Entity): Change type to Integer.
6644 * bindgen.adb (Gen_Elab_Externals_Ada): New local subprogram taken
6645 from Gen_Adainit_Ada.
6646 (Gen_Elab_Externals_C): Likewise, but taken from Gen_Adainit_C.
6647 (Gen_Adafinal_Ada): Remove redundant test. In the non-main program
6648 case, do not call System.Standard_Library.Adafinal; instead call
6649 finalize_library if needed.
6650 (Gen_Adafinal_C): Likewise.
6651 (Gen_Adainit_Ada): Do not set SSL.Finalize_Library_Objects in the
6652 non-main program case.
6653 (Gen_Adainit_C): Generate a couple of external declarations here.
6654 In the main program case, set SSL.Finalize_Library_Objects.
6655 (Gen_Elab_Calls_Ada): Adjust to Elaboration_Entity change.
6656 (Gen_Elab_Calls_C): Likewise.
6657 (Gen_Finalize_Library_Ada): Likewise. Skip SAL interface units.
6658 (Gen_Finalize_Library_C): Likewise. Generate a full function.
6659 (Gen_Main_C): Put back call to Ada_Final and don't finalize library
6660 objects here.
6661 (Gen_Output_File_Ada): Generate pragma Linker_Destructor for Ada_Final
6662 if -a is specified. Call Gen_Elab_Externals_Ada. Move around call to
6663 Gen_Adafinal_Ada.
6664 (Gen_Output_File_C): Generate __attribute__((destructor)) for Ada_Final
6665 if -a is specified. Call Gen_Elab_Externals_C. Remove useless couple
6666 of external declarations. Call Gen_Finalize_Library_C.
6667
6668 2011-08-04 Emmanuel Briot <briot@adacore.com>
6669
6670 * prj.adb, prj.ads, makeutl.adb, makeutl.ads (Complete_Mains,
6671 Compute_Compilation_Phases): new subprogram.
6672 (Builder_Data, Builder_Project_Tree_Data): new subprogram and type
6673 The number of mains as well as the various compilation phases that
6674 need to be run are now project tree specific, since various
6675 aggregated trees might have different requirements. In particular,
6676 they do not all require bind or link phases.
6677
6678 2011-08-04 Emmanuel Briot <briot@adacore.com>
6679
6680 * prj.adb, prj.ads, makeutl.adb, makeutl.ads, prj-env.adb
6681 (Project_Tree_Appdata): New type.
6682 It is now possible to associate application-specific data to a project
6683 tree. In particular, this is used in the gprbuild builder to avoid a
6684 number of global tables and htables, especially now that there can be
6685 several project trees loaded at once because of aggregate projects.
6686 (Debug_Name): new procedure.
6687 * projects.texi: Clarify syntax of "**" for Source_Dirs
6688
6689 2011-08-03 Emmanuel Briot <briot@adacore.com>
6690
6691 * prj.ads, makeutl.adb, makeutl.ads (Queue.Insert): now also inserts
6692 the "roots" for a main.
6693 (Fill_From_Project): add support for aggregate projects. Main units
6694 in aggregated projects are now automatically added in the list of
6695 files to build (although this fails later on in gprbuild, because
6696 these files are not using the root proejct tree, so this needs
6697 further cleanup)
6698 * gcc-interface/Make-lang.in: Update dependencies.
6699
6700 2011-08-03 Yannick Moy <moy@adacore.com>
6701
6702 * sem_ch4.adb (Analyze_Conditional_Expression): only allow boolean
6703 conditional expression in ALFA.
6704 * sem_res.adb (Resolve_Conditional_Expression): mark non-boolean
6705 expressions as not in ALFA.
6706
6707 2011-08-03 Robert Dewar <dewar@adacore.com>
6708
6709 * a-cofove.adb: Minor reformatting.
6710
6711 2011-08-03 Emmanuel Briot <briot@adacore.com>
6712
6713 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads
6714 (Insert_Project_Sources, Insert_withed_Sources_For): moved from the
6715 gprbuild sources.
6716 These packages are more logically placed in the Queue package, since
6717 they manipulate the queue. It is also likely that they can be adapted
6718 for gnatmake, thus sharing more code.
6719 (Finish_Program, Fail_Program): moved from the gprbuild sources, so
6720 that we could move the above.
6721
6722 2011-08-03 Emmanuel Briot <briot@adacore.com>
6723
6724 * errutil.adb (Finalize): clean up the list of error messages on exit.
6725 Calling this subprogram multiple times will no longer show duplicate
6726 error messages on stderr.
6727
6728 2011-08-03 Emmanuel Briot <briot@adacore.com>
6729
6730 * g-comlin.adb, g-comlin.ads (Set_Command_Line): ignore the parameter
6731 Getopt_Switches when we have already define a command line
6732 configuration.
6733
6734 2011-08-03 Yannick Moy <moy@adacore.com>
6735
6736 * sem_ch11.adb (Analyze_Raise_xxx_Error): do not mark such nodes as not
6737 in ALFA. Instead, they are considered as assertions to prove.
6738 * sem_ch4.adb (Analyze_Conditional_Expression): do not always mark such
6739 nodes as not in ALFA. Instead, include conditional expressions in ALFA
6740 if they have no ELSE part, or if they occur in pre- and postconditions,
6741 where the Condition cannot have side-effects in ALFA
6742 (Analyze_Membership_Op): do not mark such nodes as not in ALFA
6743 (Analyze_Type_Conversion): do not always mark such nodes as not in ALFA.
6744 Instead, include type conversion between scalar types in ALFA.
6745 * sem_ch6.adb (Process_Formals): correctly mark a parameter in ALFA
6746 if-and-only-if its type is in ALFA.
6747
6748 2011-08-03 Thomas Quinot <quinot@adacore.com>
6749
6750 * scos.adb, get_scos.adb, put_scos.adb
6751 New code letter for decisions: G (entry guard)
6752 * par_sco.adb
6753 (Traverse_Subprogram_Body): Rename to...
6754 (Traverse_Subprogram_Or_Task_Body): New subrpogram.
6755 (Traverse_Protected_Body): New subprogram
6756 (Traverse_Declarations_Or_Statements): Add traversal of task bodies,
6757 protected bodies and entry bodies.
6758
6759 2011-08-03 Yannick Moy <moy@adacore.com>
6760
6761 * einfo.adb, einfo.ads (Is_Postcondition_Proc): new flag for procedure
6762 entities with get/set subprograms, which is set on procedure entities
6763 generated by the compiler for a postcondition.
6764 * sem_ch6.adb (Process_PPCs): set new flag on postcondition procedures
6765 * alfa.adb, alfa.ads (Get_Entity_For_Decl): new function returning the
6766 entity for a declaration
6767 (Get_Unique_Entity_For_Decl): new function returning an entity which
6768 represents a declaration, so that matching spec and body have the same
6769 entity.
6770
6771 2011-08-03 Robert Dewar <dewar@adacore.com>
6772
6773 * a-except-2005.adb, a-cfhama.adb, a-cfhase.adb, a-cfhase.ads,
6774 a-cforma.adb, a-cforse.ads, a-cforse.adb: Minor reformatting
6775
6776 2011-08-03 Yannick Moy <moy@adacore.com>
6777
6778 * lib-xref-alfa.adb (Detect_And_Add_ALFA_Scope): make the subprogram
6779 library-level because retriction No_Implicit_Dynamic_Code in the
6780 front-end prevents its definition as a local subprogram
6781 (Traverse_Compilation_Unit): extract new procedure from Add_ALFA_File,
6782 for reuse in other contexts
6783 (Traverse_Declarations_Or_Statements,
6784 Traverse_Handled_Statement_Sequence, Traverse_Package_Body,
6785 Traverse_Package_Declaration, Traverse_Subprogram_Body): make all these
6786 procedures take a callback parameter to be called on all declarations
6787 * lib-xref.ads
6788 (Traverse_All_Compilation_Units): new generic function to traverse a
6789 compilation unit and call a callback parameter on all declarations
6790
6791 2011-08-03 Javier Miranda <miranda@adacore.com>
6792
6793 * sem_prag.adb (Process_Interface_Name): Allow duplicated export names
6794 in Java since they are always enclosed in a namespace that
6795 differentiates them, and overloaded entities are supported by the VM.
6796
6797 2011-08-03 Ed Schonberg <schonberg@adacore.com>
6798
6799 * checks.adb (Determine_Range): If a computed bound of an operation is
6800 outside the range of the base type of the expression, and overflow
6801 checks are enabled, the result is unknown and cannot be used for any
6802 subsequent constant folding.
6803 * sem_eval.adb (Compile_Time_Compare): if the bounds of one operand are
6804 unknown, so is the result of the comparison.
6805
6806 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
6807
6808 * a-except-2005.adb (Raise_From_Controlled_Operation): Add new formal
6809 From_Abort. When finalization was triggered by an abort, propagate
6810 Standard'Abort_Signal rather than Program_Error.
6811 * a-except-2005.ads (Raise_From_Controlled_Operation): Add new formal
6812 From_Abort.
6813 * a-except.adb (Raise_From_Controlled_Operation): Add new formal
6814 From_Abort. When finalization was triggered by an abort, propagate
6815 Standard'Abort_Signal rather than Program_Error.
6816 * a-except.ads:(Raise_From_Controlled_Operation): Add new formal
6817 From_Abort.
6818 * exp_ch7.adb:(Build_Adjust_Or_Finalize_Statements): New local variable
6819 Abort_Id. Update the calls to Build_Object_Declarations and
6820 Build_Raise_Statement to include Abort_Id.
6821 (Build_Adjust_Statements): New local variable Abort_Id. Update the
6822 calls to Build_Object_Declarations and Build_Raise_Statement to include
6823 Abort_Id.
6824 (Build_Finalize_Statements): New local variable Abort_Id. Update the
6825 calls to Build_Object_Declarations and Build_Raise_Statement to include
6826 Abort_Id.
6827 (Build_Components): Create an entity for Abort_Id when exceptions are
6828 allowed on the target.
6829 (Build_Finalizer): New local variable Abort_Id.
6830 (Build_Initialize_Statements): New local variable Abort_Id. Update the
6831 calls to Build_Object_Declarations and Build_Raise_Statement to include
6832 Abort_Id.
6833 (Build_Object_Declarations): Add new formal Abort_Id. Create the
6834 declaration of flag Abort_Id to preserve the original abort status
6835 before finalization code is executed.
6836 (Build_Raise_Statement): Add new formal Abort_Id. Pass Abort_Id to
6837 runtime routine Raise_From_Controlled_Operation.
6838 (Create_Finalizer): Update the call to Build_Raise_Statement to include
6839 Abort_Id. Update the call to Build_Object_Declarations to include
6840 Abort_Id. Update the layout of the finalizer body.
6841 (Make_Handler_For_Ctrl_Operation): Add an actual for From_Abort.
6842 (Process_Transient_Objects): New local variable Abort_Id. Remove the
6843 clunky code to create all flags and objects related to
6844 exception propagation and replace it with a call to
6845 Build_Object_Declarations. Update the call to Build_Raise_Statement to
6846 include Abort_Id.
6847 * exp_ch7.ads (Build_Object_Declarations): Moved from body to spec.
6848 Add new formal Abort_Id and associated comment on its use.
6849 (Build_Raise_Statement): Add new formal Abort_Id and associated comment
6850 on its use.
6851 * exp_intr.adb (Expand_Unc_Deallocation): New local variable Abort_Id.
6852 Remove the clunky code to create all flags and objects related to
6853 exception propagation and replace it with a call to
6854 Build_Object_Declarations. Update the call to Build_Raise_Statement.
6855
6856 2011-08-03 Eric Botcazou <ebotcazou@adacore.com>
6857
6858 * s-tassta.adb: Fix minor typos.
6859
6860 2011-08-03 Robert Dewar <dewar@adacore.com>
6861
6862 * rtsfind.ads, makeutl.ads, prj.ads, prj.adb, make.adb,
6863 lib-writ.adb, makeutl.adb, s-soflin.ads, clean.adb: Minor reformatting.
6864
6865 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
6866
6867 * exp_ch7.adb (Create_Finalizer): Treat freeze nodes in similar fashion
6868 to packages. This ensures that the finalizer body will not end up
6869 inside the freeze node.
6870 (Process_Declarations): Add code to detect whether a freeze node has a
6871 nested finalization collection.
6872
6873 2011-08-03 Pascal Obry <obry@adacore.com>
6874
6875 * g-awk.adb, g-awk.ads: Make GNAT.AWK API compatible with Ada 2005.
6876 (Current_Session): Return a not null access to Session_Type.
6877 (Default_Session): Likewise.
6878
6879 2011-08-03 Robert Dewar <dewar@adacore.com>
6880
6881 * a-cfdlli.adb, bindgen.adb, exp_ch4.adb, exp_ch13.adb, sem_warn.adb,
6882 exp_ch3.adb, exp_ch3.ads: Minor reformatting.
6883
6884 2011-08-03 Pascal Obry <obry@adacore.com>
6885
6886 * g-awk.ads: Minor comment fix.
6887
6888 2011-08-03 Sergey Rybin <rybin@adacore.com>
6889
6890 * tree_io.ads (ASIS_Version_Number): Update because of the changes in
6891 the tree structure related to discriminant constraints.
6892 Original_Discriminant cannot be used any more for computing the
6893 defining name for the reference to a discriminant.
6894
6895 2011-08-03 Ed Schonberg <schonberg@adacore.com>
6896
6897 * sem_disp.adb (Is_Tag_Indeterminate): If the return type of the
6898 function is not visibly tagged, this is not a dispatching call and
6899 therfore is not Tag_Indeterminate, even if the function is marked as
6900 dispatching on result.
6901
6902 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
6903
6904 * exp_ch13.adb: Add with and use clauses for Restrict and Rident.
6905 (Expand_N_Free_Statement): Add a guard to protect against run-times
6906 which do not support controlled types.
6907 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Add a guard to protect
6908 against run-times which do not support controlled types.
6909 * exp_ch4.adb (Complete_Controlled_Allocation): Add a guard to protect
6910 against run-times which do not support controlled types.
6911 * exp_ch7.adb (Build_Finalization_Collection): Add a guard to protect
6912 against run-times which do not support controlled types.
6913 * exp_util.adb (Needs_Finalization): Code reformatting. Add a guard to
6914 protect against run-times which do not support controlled types.
6915
6916 2011-08-03 Eric Botcazou <ebotcazou@adacore.com>
6917
6918 * exp_intr.adb: Put back with and use clauses for Exp_Ch11.
6919 (Expand_Unc_Deallocation): Expand the AT_END handler at the very end.
6920
6921 2011-08-03 Ed Schonberg <schonberg@adacore.com>
6922
6923 * exp_ch5.adb (Expand_Iterator_Loop): indicate that the cursor is
6924 modified in the source, to prevent spurious warnings when compiling
6925 with -gnatg.
6926
6927 2011-08-03 Thomas Quinot <quinot@adacore.com>
6928
6929 * a-except-2005.adb: Minor reformatting.
6930
6931 2011-08-03 Ed Schonberg <schonberg@adacore.com>
6932
6933 * sem_warn.adb (Check_One_Unit): if the only mention of a withed unit
6934 is a renaming declaration in the private part of a package, do not emit
6935 a warning that the with_clause could be moved because the renaming may
6936 be used in the body or in a child unit.
6937
6938 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
6939
6940 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
6941 Propagate the Comes_From_Source attribute from the original return
6942 object to the renaming.
6943
6944 2011-08-03 Jose Ruiz <ruiz@adacore.com>
6945
6946 * exp_ch7.adb (Build_Raise_Statement): Do not call
6947 Raise_From_Controlled_Operation when this routine is not present in
6948 the run-time library.
6949 (Cleanup_Protected_Object, Cleanup_Task): For restricted run-time
6950 libraries (Ravenscar), tasks are non-terminating, and protected objects
6951 and tasks can only appear at library level, so we do not want
6952 finalization of protected objects nor tasks.
6953 * exp_intr.adb: Minor clarification in comment.
6954 bindgen.adb (Gen_Adainit_Ada, Gen_Main_C, Gen_Output_File_Ada,
6955 Gen_Output_File_C): Remove references to finalization of library-level
6956 objects when using restricted run-time libraries.
6957
6958 2011-08-03 Ed Schonberg <schonberg@adacore.com>
6959
6960 * sem_ch3.adb (Build_Discriminant_Constraints): Set
6961 Original_Discriminant only if the parent type is a generic formal.
6962
6963 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
6964
6965 * exp_ch13.adb: Add with and use clause for Targparm;
6966 (Expand_N_Free_Statement): Prevent the generation of a custom
6967 Deallocate on .NET/JVM targets since this requires pools and address
6968 arithmetic.
6969 * exp_ch4.adb (Expand_Allocator_Expression): When compiling for
6970 .NET/JVM targets, attach the newly allocated object to the access
6971 type's finalization collection. Do not generate a call to
6972 Set_Finalize_Address_Ptr on .NET/JVM because this routine does not
6973 exist in the runtime.
6974 (Expand_N_Allocator): When compiling for .NET/JVM targets, do not
6975 create a custom Allocate for object that do not require initialization.
6976 Attach a newly allocated object to the access type's finalization
6977 collection on .NET/JVM.
6978 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add special processing for
6979 assignment of controlled types on .NET/JVM. The two hidden pointers
6980 Prev and Next and stored and later restored after the assignment takes
6981 place.
6982 * exp_ch6.adb (Expand_Call): Add local constant Curr_S. Add specialized
6983 kludge for .NET/JVM to recognize a particular piece of code coming from
6984 Heap_Management and change the call to Finalize into Deep_Finalize.
6985 * exp_ch7.adb (Build_Finalization_Collection): Allow the creation of
6986 finalization collections on .NET/JVM only for types derived from
6987 Controlled. Separate the association of storage pools with a collection
6988 and only allow it on non-.NET/JVM targets.
6989 (Make_Attach_Call): New routine.
6990 (Make_Detach_Call): New routine.
6991 (Process_Object_Declarations): Suppress the generation of
6992 build-in-place return object clean up code on .NET/JVM since it uses
6993 pools.
6994 * exp_ch7.ads (Make_Attach_Call): New routine.
6995 (Make_Detach_Call): New routine.
6996 * exp_intr.adb Add with and use clause for Targparm.
6997 (Expand_Unc_Deallocation): Detach a controlled object from a collection
6998 on .NET/JVM targets.
6999 * rtsfind.ads: Add entries RE_Attach, RE_Detach and
7000 RE_Root_Controlled_Ptr to tables RE_Id and RE_Unit_Table.
7001 * snames.ads-tmpl: Add name Name_Prev. Move Name_Prev to the special
7002 names used in finalization.
7003
7004 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
7005
7006 * a-fihema.adb: Add with and use clauses for System.Soft_Links.
7007 (Attach, Detach): Lock the current task when chaining an object onto a
7008 collection.
7009
7010 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
7011
7012 * a-except.adb, a-except-2005.adb (Raise_From_Controlled_Operation):
7013 Rewritten to create the message strings when the exception is not
7014 raised by an abort during finalization.
7015 * a-except.ads, a-except-2005.ads: Add pragma Export for procedure
7016 Raise_From_Controlled_Operation and update its associated comment.
7017 * a-fihema.ads, a-fihema.adb: New GNAT unit.
7018 Ada.Finalization.Heap_Management provides key functionality
7019 associated with controlled objects on the heap, their creation,
7020 finalization and reclamation. Type Finalization_Collection is
7021 effectively a wrapper which sits ontop of a storage pool and performs
7022 all necessary bookkeeping for all the objects it contains. Each
7023 access-to-controlled or access-to-class-wide type receives a collection
7024 as part of its expansion. The compiler generates buffer code and
7025 invokes Allocate / Deallocate to create and destroy allocated
7026 controlled objects.
7027 * a-finali.adb ("="): Removed.
7028 * a-finali.ads ("="): Removed. Controlled types no longer carry hidden
7029 fields Prev and Next.
7030 * ali.adb (Scan_ALI): Add parsing code to process PF / Has_Finalizer.
7031 A library unit with at least one controlled object on the library level
7032 has a special finalizer which is invoked by the binder. To signal this,
7033 ali files carry field PF.
7034 * ali.ads: New field in type Unit_Record called Has_Finalizer. Add
7035 associated comment on field usage.
7036 * a-tags.adb (Get_RC_Offset): Removed.
7037 (Needs_Finalization): New routine.
7038 * a-tags.ads: Update the structure of the GNAT dispatch tables.
7039 Dispatch tables now carry field Needs_Finalization which provides
7040 runtime indication whether a type is controlled or has controlled
7041 components or both. Remove field RC_Offset.
7042 (Get_RC_Offset): Removed along with its associated pragma Export.
7043 Since tagged types with controlled components no longer carry hidden
7044 field _controller, the special mechanism to retrieve its location is no
7045 longer needed.
7046 (Needs_Finalization): New routine.
7047 * atree.ads, atree.adb (Elist24): New routine.
7048 (Set_Elist24): New routine.
7049 * atree.h: Add a define clause for Elist24.
7050 * bindgen.adb New library-level variable Lib_Final_Built.
7051 (Gen_Adafinal_Ada): Reimplemented. Depending on the restrictions or the
7052 presence of a VM target, the routine generates calls to the proper
7053 library finalization routine.
7054 (Gen_Adainit_Ada): Import Finalize_Library_Objects only on non-VM
7055 targets. Set the correct library finalization routine depending on
7056 whether the library has controlled objects or this is a VM compilation.
7057 (Gen_Finalize_Library_Ada): New routine. This procedure generates calls
7058 to library-level finalizers of compiled units in reverse order of
7059 elaboration. It also produces exception management code and reraises a
7060 potential exception after all units have been finalized.
7061 (Gen_Finalize_Library_C): New routine. This procedure generates calls to
7062 library-level finalizers of compiled units in reverse order of
7063 elaboration.
7064 (Gen_Finalize_Library_Defs_C): New routine. This procedure generates the
7065 definitions of all library-level finalizers available to the compilation
7066 (Gen_Main_Ada): Directly call Adafinal which now contails all target
7067 dependent code.
7068 (Gen_Main_C): Add new local constant Needs_Library_Finalization. Call
7069 System.Standard_Library.Adafinal directly. If the library needs
7070 finalization actions, create the sequence of finalization calls.
7071 (Gen_Output_File_Ada): Alphabetize local variables and constants.
7072 Generate a with clause for System.Soft_Links when compiling for a VM.
7073 Remove the code which imports System.Standard_Library.Adafinal as
7074 Do_Finalize. Generate the library finalization routine.
7075 (Gen_Output_File_C): Add new local constant Needs_Library_Finalization.
7076 If the library needs finalization actions, create all the definitions
7077 of library- level finalizers.
7078 (Has_Finalizer): New routine. Determines whether at least one compiled
7079 unit has a library-level finalizer.
7080 Add type Qualification_Mode.
7081 (Set_Unit_Name): Add a formal which controls the replacement of a dot.
7082 * einfo.adb: New usage of field 15 as Return_Flag.
7083 Remove Finalization_Chain_Entity from the usages of field 19.
7084 Remove Associated_Final_Chain from the usages of field 23.
7085 New usage of field 23 as Associated_Collection.
7086 New usage of field 24 as Finalizer.
7087 New usage of flag 252 as Is_Processed_Transient.
7088 (Associated_Final_Chain): Removed.
7089 (Associated_Collection): New routine.
7090 (Finalization_Chain_Entity): Removed.
7091 (Finalizer): New routine.
7092 (Is_Finalizer): New routine.
7093 (Is_Processed_Transient): New routine.
7094 (Return_Flag): New routine.
7095 (Set_Associated_Final_Chain): Removed.
7096 (Set_Associated_Collection): New routine.
7097 (Set_Finalization_Chain_Entity): Removed.
7098 (Set_Finalizer): New routine.
7099 (Set_Is_Processed_Transient): New routine.
7100 (Set_Return_Flag): New routine.
7101 (Write_Entity_Flags): Include Is_Processed_Transient to the list of
7102 displayed flags.
7103 (Write_Field8_Name): Alphabetize the output.
7104 (Write_Field11_Name): Alphabetize the output.
7105 (Write_Field12_Name): Alphabetize the output.
7106 (Write_Field13_Name): Alphabetize the output.
7107 (Write_Field14_Name): Alphabetize the output.
7108 (Write_Field15_Name): Alphabetize the output.
7109 (Write_Field16_Name): Alphabetize the output.
7110 (Write_Field17_Name): Alphabetize the output.
7111 (Write_Field18_Name): Alphabetize the output.
7112 (Write_Field19_Name): Alphabetize the output. Remove the output of
7113 Finalization_Chain_Entity.
7114 (Write_Field20_Name): Alphabetize the output.
7115 (Write_Field21_Name): Alphabetize the output.
7116 (Write_Field22_Name): Alphabetize the output.
7117 (Write_Field23_Name): Alphabetize the output. Remove the output of
7118 Associated_Final_Chain. Add output for Associated_Collection.
7119 (Write_Field24_Name): Alphabetize the output.
7120 (Write_Field25_Name): Add output for Finalizer.
7121 (Write_Field26_Name): Alphabetize the output.
7122 (Write_Field27_Name): Alphabetize the output.
7123 (Write_Field28_Name): Alphabetize the output.
7124 * einfo.ads: Add new field description for Associated_Collection and
7125 its uses in nodes.
7126 Remove Associated_Final_Chain and its uses in nodes.
7127 Remove Finalization_Chain_Entity and its uses in nodes.
7128 Add new field description for Finalizer and its uses in nodes.
7129 Add new synthesized attribute Is_Finalizer.
7130 Add new flag description for Is_Processed_Transient and its uses in
7131 nodes.
7132 Add new field description for Return_Flag and its uses in nodes.
7133 (Associated_Final_Chain): Removed along with its pragma Inline.
7134 (Associated_Collection): New routine and pragma Inline.
7135 (Finalization_Chain_Entity): Removed along with its pragma Inline.
7136 (Finalizer): New routine and pragma Inline.
7137 (Is_Finalizer): New routine and pragma Inline.
7138 (Is_Processed_Transient): New routine and pragma Inline.
7139 (Return_Flag): New routine and pragma Inline.
7140 (Set_Associated_Final_Chain): Removed along with its pragma Inline.
7141 (Set_Associated_Collection): New routine and pragma Inline.
7142 (Set_Finalization_Chain_Entity): Removed along with its pragma Inline.
7143 (Set_Finalizer): New routine and pragma Inline.
7144 (Set_Is_Processed_Transient): New routine and pragma Inline.
7145 (Set_Return_Flag): New routine and pragma Inline.
7146 * exp_aggr.adb: Alphabetize subprograms.
7147 (Build_Array_Aggr_Code): Remove formal Flist and its associated comment.
7148 (Build_Record_Aggr_Code): Remove formals Flist and Obj along with their
7149 associated comments. Remove local variables External_Final_List and
7150 Attach.
7151 Rename Ctrl_Stuff_Done to Finalization_Done. Rename local variable A to
7152 Ancestor. Remove the retrieval of finalization lists. Update the call to
7153 Make_Adjust_Call.
7154 (Convert_Aggr_In_Allocator): Remove the retrieval of finalization
7155 lists. Update the call to Late_Expansion.
7156 (Convert_Aggr_In_Assignment): Update the call to Late_Expansion.
7157 (Convert_Aggr_In_Object_Decl): Update the call to Late_Expansion.
7158 (Gen_Assign): Remove the retrieval of the finalization list used to
7159 build the assignment. Update the calls to Make_Init_Call and
7160 Make_Adjust_Call.
7161 (Gen_Ctrl_Actions_For_Aggr): Renamed to Generate_Finalization_Actions.
7162 Remove the mechanism to determine attachment levels and finalization
7163 list retrieval. Remove the processing for coextensions.
7164 (Init_Controller): Removed. Controllers no longer exist.
7165 (Late_Expansion): Remove formals Flist and Obj along with their
7166 associated comments. Update the calls to Build_Record_Aggr_Code and
7167 Build_Array_Aggr_Code.
7168 * exp_ch13.adb (Expand_N_Free_Statement): New routine.
7169 (Expand_N_Freeze_Entity): Add special processing for finalizers which
7170 appear in entry bodies, protected subprograms and task bodies.
7171 * exp_ch13.ads (Expand_N_Free_Statement): New routine.
7172 * exp_ch3.adb (Add_Final_Chain): Removed.
7173 (Build_Array_Init_Proc): Alphabetize local variables.
7174 (Build_Assignment): Alphabetize local variables. Update the call to
7175 Maked_Adjust_Call.
7176 (Build_Class_Wide_Master): Rename local variables to better reflect
7177 their role.
7178 (Build_Discriminant_Assignments): Code reformatting.
7179 (Build_Init_Call_Thru): Code reformatting.
7180 (Build_Init_Procedure): Code reformatting. Generate a special version
7181 of Deep_Finalize which is capable of finalizing all initialized
7182 components and ignore the rest.
7183 (Build_Init_Statements): Rename local variables to better reflect their
7184 role.
7185 Reimplement the mechanism to include the creation and update of an index
7186 variable called a "counter". It is used as a bookmark for tracing
7187 initialized and non-initialized components.
7188 (Build_Initialization_Call): Remove local variable Controller_Typ.
7189 Alphabetize all local variables. Remove the initialization of the
7190 record controller and update the call to Make_Init_Call.
7191 (Build_Record_Init_Proc): Rename formal Pe to Rec_Ent.
7192 New local variable Counter.
7193 (Constrain_Array): Alphabetize.
7194 (Expand_Freeze_Array_Type): Create a collection instead of a
7195 finalization list.
7196 (Expand_Freeze_Class_Wide_Type): New routine. Creates TSS primitive
7197 Finalize_Address which is used in conjunction with allocated controlled
7198 objects.
7199 (Expand_N_Object_Declaration): Remove the creation of a finalization
7200 list for anonymous access types. Update the calls to Make_Init_Call and
7201 Make_Adjust_Call.
7202 (Expand_Freeze_Record_Type): Remove local variable Flist. Remove the
7203 retrieval of finalization lists. Remove the expansion of the record
7204 controller. Create TSS primitive Finalize_Address used in conjunction
7205 with controlled objects on the heap. Create finalization collections
7206 for access-to-controlled record components.
7207 (Expand_Record_Controller): Removed.
7208 (Freeze_Type): Remove the freezing of record controllers. Freezing of
7209 class-wide types now requires additional processing. Create
7210 finalization collections for access-to-controlled types.
7211 (Increment_Counter): New routine.
7212 (Make_Counter): New routine.
7213 (Make_Eq_If): Remove the mention of Name_uController.
7214 (Make_Predefined_Primitive_Specs): There is no longer need to skip
7215 types coming from System.Finalization_Root.
7216 (Predef_Deep_Spec): Reimplemented to reflect the new parameter profiles.
7217 (Predefined_Primitive_Bodies): There is no longer need to skip types
7218 coming from System.Finalization_Root.
7219 (Stream_Operation_OK): Do not generate stream routines for
7220 type Ada.Finalization.Heap_Management.Finalization_Collection.
7221 * exp_ch3.ads: Alphabetize subprograms.
7222 * exp_ch4.adb: Remove with and use clause for Sem_Ch8.
7223 Add with and use clause for Lib.
7224 (Complete_Coextension_Finalization): Removed.
7225 (Complete_Controlled_Allocation): New routine. Create a finalization
7226 collection for anonymous access-to-controlled types. Create a custom
7227 Allocate which interfaces with the back end and the machinery in
7228 Heap_Management.
7229 (Expand_Allocator_Expression): Add necessary calls to
7230 Complete_Controlled_Allocation. Remove the retrieval of finalization
7231 lists. Update the calls to Make_Adjust_Call. Generate a call to
7232 Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate
7233 the associated collection.
7234 (Expand_N_Allocator): Remove the processing for dynamic coextensions.
7235 Code clean up. Remove the retrieval of finalization lists and
7236 attachment levels.
7237 Update the call to Make_Init_Call. Generate a call to
7238 Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate
7239 the associated collection.
7240 (Get_Allocator_Final_List): Removed. Finalization lists are not
7241 available.
7242 (Suitable_Element): Remove the mention of Name_uController.
7243 * exp_ch5.adb: Remove with and use clauses for Ttypes and Uintp.
7244 (Make_Tag_Ctrl_Assignment): Rewritten to simply do a finalization of
7245 the left hand side, carry out the assignment and adjust the left hand
7246 side.
7247 * exp_ch6.adb (Add_Final_List_Actual_To_Build_In_Place_Call): Removed.
7248 (Add_Collection_Actual_To_Build_In_Place_Call): New routine.
7249 (BIP_Formal_Suffix): Rename BIP_Final_List and BIPfinallist to
7250 BIP_Collection and BIPcollection.
7251 (Build_Heap_Allocator): New routine used to allocate the return object
7252 of a build-in-place function onto a collection.
7253 (Expand_Ctrl_Function_Call): Moved from Exp_Ch7.
7254 (Expand_Call): Do not replace direct calls to Deep routines with their
7255 aliases.
7256 (Expand_N_Extended_Return_Statement): Give all variables shorter names
7257 and update their occurrences. Add a special return flag to monitor the
7258 [ab]normal execution of the function. The flag is set right before the
7259 return statement.
7260 Rewrite the mechanism used to allocate a build-in-place return object
7261 on the heap or on a storage pool.
7262 (Is_Direct_Deep_Call): New routine.
7263 (Make_Build_In_Place_Call_In_Allocator): Add a collection to a
7264 build-in-place function call instead of a final list. Build a call to
7265 Set_Finalize_Address_Ptr to decorate the associated collection.
7266 (Make_Build_In_Place_Call_In_Anonymous_Context): Create a temporary in
7267 order to name the build-in-place function call's result for later
7268 finalization. Add a collection to a build-in-place function call
7269 instead of a final list.
7270 (Make_Build_In_Place_Call_In_Assignment): Add a collection to a
7271 build-in-place function call instead of a final list. Remove the code
7272 which moves one final list and transforms it into the actual in a
7273 nested build-in-place call.
7274 (Make_Build_In_Place_Call_In_Object_Declaration): Add a collection to a
7275 build-in-place function call instead of a final list.
7276 (Move_Final_List): Removed.
7277 (Needs_BIP_Collection): New routine.
7278 (Needs_BIP_Final_List): Removed.
7279 * exp_ch6.ads: Replace BIP_Final_List with BIP_Collection in
7280 enumeration type BIP_Formal_Kind.
7281 Update the related comment.
7282 (Needs_BIP_Collection): New routine.
7283 (Needs_BIP_Final_List): Removed.
7284 * exp_ch7.adb: Add with and use clauses for Elists, Exp_Ch6, Stringt
7285 and Ttypes. Remove with and use clauses for Sem_Type. Alphabetize the
7286 majority of subprograms in this unit. Add Name_Finalize_Address to
7287 array Name_Of and TSS_Finalize_Address to array Deep_Name_Of.
7288 (Build_Adjust_Or_Finalize_Statements): Create the adjust or finalization
7289 statements for an array type.
7290 (Build_Adjust_Statements): Create the adjust statements for a record
7291 type.
7292 (Build_Cleanup_Statements): New routine. A procedure which given any
7293 construct containing asynchronous calls, references to _master, or is a
7294 task body, a task allocation or a protected body produces the necessary
7295 runtime calls to clean up these constructs.
7296 (Build_Exception_Handler): New routine.
7297 (Build_Final_List): Removed.
7298 (Build_Finalization_Collection): New routine. A core procedure which
7299 creates a collection to service heap allocated controlled objects
7300 associated with an access-to-controlled type.
7301 (Build_Finalize_Statements): Create the finalization statements for a
7302 record types.
7303 (Build_Finalizer): New routine. A core procedure which given any
7304 construct with declarations and/or statements detects all objects which
7305 need any type of clean up (controlled objects, protected objects) and
7306 generates all necessary code to clean up the said objects in the proper
7307 order.
7308 (Build_Finalizer_Call): New routine.
7309 (Build_Initialize_Statements): Create the initialization statements for
7310 an array type. The generated routine contains code to finalize partially
7311 initialized arrays.
7312 (Build_Object_Declarations): New routine.
7313 (Build_Raise_Statement): New routine.
7314 (Clean_Simple_Protected_Objects): Removed.
7315 (Controller_Component): Removed.
7316 (Enclosing_Function): New routine.
7317 (Expand_Cleanup_Actions): Create a finalizer for a construct which has
7318 either declarations or statements or both.
7319 (Expand_N_Package_Body): Create a finalizer for a non-generic package.
7320 (Expand_N_Package_Declaration): Create a finalizer for a non-generic
7321 package.
7322 (Find_Final_List): Removed.
7323 (Global_Flist_Ref): Removed.
7324 (In_Finalization_Root): Removed.
7325 (Insert_Actions_In_Scope_Around): Determine the range of the transient
7326 scope in terms of tree nodes. Process all transient variables within
7327 that range.
7328 (Make_Adjust_Call): Rewritten. There is no longer an attach call
7329 generated after the adjust.
7330 (Make_Attach_Call): Removed.
7331 (Make_Call): New routine.
7332 (Make_Clean): Removed.
7333 (Make_Deep_Array_Body): Rewritten to simply invoke the appropriate
7334 build routines.
7335 (Make_Deep_Proc): Rewritten to generate the new profile signature used
7336 in Deep routines.
7337 (Make_Deep_Record_Body): Rewritten to simply invoke the appropriate
7338 build routines.
7339 (Make_Final_Call): Modified to simply create a call to either
7340 Deep_Finalize or Finalize.
7341 (Make_Finalize_Address_Body): New routine.
7342 (Make_Finalize_Address_Stmts): New routine. A function which produces
7343 TSS primitive Finalize_Address used in conjunction with heap allocated
7344 controlled objects.
7345 (Make_Handler_For_Ctrl_Operation): Add specialized code for .NET/JVM.
7346 (Make_Init_Call): Rewritten. There is no longer an attach call
7347 generated after initialization.
7348 (Make_Local_Deep_Finalize): New routine.
7349 (Make_Set_Finalize_Address_Ptr_Call): New routine.
7350 (Make_Transient_Block): Remove the finalization list retrieval and
7351 manipulation.
7352 (Needs_Finalization): Moved to Exp_Util.
7353 (Parent_Field_Type): New routine.
7354 (Preprocess_Components): New routine.
7355 (Process_Transient_Objects): New routine.
7356 (Wrap_HSS_In_Block): New routine.
7357 (Wrap_Transient_Declaration): Remove finalization list management and
7358 controller insertion.
7359 (Wrap_Transient_Expression): Code reformatting.
7360 (Wrap_Transient_Statement): Code reformatting.
7361 * exp_ch7.ads (Build_Final_List): Removed.
7362 (Build_Finalization_Collection): New routine.
7363 (Build_Raise_Statement): New routine.
7364 (Controller_Component): Removed.
7365 (Expand_Ctrl_Function_Call): Moved to Exp_Ch6.
7366 (Find_Final_List): Removed.
7367 (In_Finalization_Root): Removed.
7368 (Is_Simple_Protected_Type): Update related comment.
7369 (Make_Adjust_Call): New parameter profile and associated comments.
7370 (Make_Attach_Call): Removed.
7371 (Make_Final_Call): New parameter profile and associated comments.
7372 (Make_Finalize_Address_Body): New routine.
7373 (Make_Init_Call): New parameter profile and associated comments.
7374 (Make_Local_Deep_Finalize): New routine.
7375 (Make_Set_Finalize_Address_Ptr_Call): New routine.
7376 (Needs_Finalization): Moved to Exp_Util.
7377 * exp_ch9.adb (Add_Object_Pointer): Code reformatting.
7378 (Expand_N_Protected_Body): Remove the handling of finalization lists.
7379 (Find_Protection_Type): Moved to Exp_Util.
7380 * exp_disp.adb: Remove with and use clauses for Exp_Ch7.
7381 (Make_DT): Update sequence of dispatch table initialization. Remove the
7382 initialization of field RC_Offset. Add initialization of field Needs_
7383 Finalization.
7384 * exp_intr.adb (Expand_Unc_Deallocation): Code reformatting.
7385 Reimplement how an object is first finalized, then deallocated.
7386 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function):
7387 Code reformatting.
7388 * exp_tss.ads: Add special suffix for TSS primitive Finalize_Address.
7389 Register TSS_Finalize_Address with type TSS_Names.
7390 * exp_util.adb (Build_Allocate_Deallocate_Proc): New routine. This core
7391 procedure provides the interface between an allocation / deallocation
7392 and the support machinery in Ada.Finalization.Heap_Management.
7393 (Find_Init_Call): Code reformatting.
7394 (Find_Init_Call_In_List): Code reformatting.
7395 (Find_Protection_Type): Moved from Exp_Ch9.
7396 (Find_Prim_Op): Reimplement to add preference of recovered primitive.
7397 (Has_Controlled_Coextensions): Removed.
7398 (Has_Controlled_Objects): New routine.
7399 (In_Library_Level_Package_Body): New routine.
7400 (Insert_Action_After): New routine.
7401 (Is_Finalizable_Transient): New routine. This predicate determines
7402 whether an object declaration is one of the many variants of controlled
7403 transients.
7404 (Is_Null_Access_BIP_Func_Call): New routine.
7405 (Is_Non_BIP_Func_Call): New routine.
7406 (Is_Related_To_Func_Return): New routine.
7407 (Needs_Finalization): Moved from Exp_Ch7.
7408 * exp_util.ads (Build_Allocate_Deallocate_Proc): New routine.
7409 (Find_Protection_Type): Moved from Exp_Ch9.
7410 (Has_Controlled_Coextensions): Removed.
7411 (Has_Controlled_Objects): New routine.
7412 (In_Library_Level_Package_Body): New routine.
7413 (Insert_Action_After): New routine.
7414 (Is_Finalizable_Transient): New routine.
7415 (Is_Null_Access_BIP_Func_Call): New routine.
7416 (Is_Non_BIP_Func_Call): New routine.
7417 (Is_Related_To_Func_Return): New routine.
7418 (Needs_Finalization): Moved from Exp_ch7.
7419 * expander.adb (Expand): Add a case for N_Free_Statement.
7420 * freeze.adb (Freeze_All): Replace the generation of a finalization
7421 list with a collection for access-to-controlled types.
7422 (Freeze_Entity): Code reformatting.
7423 (Freeze_Record_Type): Remove the freezing of a record controller
7424 component.
7425 (Freeze_Subprogram): Code reformatting.
7426 * inline.adb (Cleanup_Scopes): Remove the reset of the scope
7427 finalization list.
7428 * lib-writ.adb (Write_Unit_Information): Output "PF" when a package
7429 has a library-level finalizer.
7430 * lib-writ.ads: Add "PF" to the sequence of unit attributes.
7431 * a-filico.ads, a-filico.adb, s-finimp.ads, s-finimp.adb: Removed.
7432 * Makefile.rtl: Remove a-filico and s-finimp from the list of object
7433 files. Add a-fihema to the list of object files.
7434 * par-ch4.adb:
7435 Alphabetize the associations in type Is_Parameterless_Attribute.
7436 * rtsfind.ads: Ada.Finalization_List.Controller and
7437 System.Finalization_Implementation are no longer a GNAT unit.
7438 Update the range of type Ada_Finalization_Child. Remove the following
7439 recoverable entities:
7440
7441 RE_Attach_To_Final_List
7442 RE_Deep_Tag_Attach
7443 RE_Finalize_List
7444 RE_Finalize_One
7445 RE_Finalizable_Ptr_Ptr
7446 RE_Global_Final_List
7447 RE_Limited_Record_Controller
7448 RE_List_Controller
7449 RE_Move_Final_List
7450 RE_Record_Controller
7451 RE_Simple_List_Controller
7452
7453 Add the following recoverable entities:
7454
7455 RE_Add_Offset_To_Address
7456 RE_Allocate
7457 RE_Base_Pool
7458 RE_Deallocate
7459 RE_Exception_Identity
7460 RE_Finalization_Collection
7461 RE_Finalization_Collection_Ptr
7462 RE_Needs_Finalization
7463 RE_Save_Library_Occurrence
7464 RE_Set_Finalize_Address_Ptr
7465 RE_Set_Storage_Pool_Ptr
7466 RE_Storage_Count
7467 * sem_aggr.adb (Resolve_Record_Aggregate): Remove mention of
7468 Name_uController.
7469 * sem_aux.adb (First_Discriminant): Remove mention of Name_uController.
7470 (First_Stored_Discriminant): Remove the mention of Name_uController.
7471 * sem_aux.ads: Comment reformatting.
7472 * sem_ch10.adb (Build_Chain): Signal the class-wide creation machinery
7473 to redecorate an already existing class-wide type.
7474 (Decorate_Tagged_Type): New parameter profile and associated comment.
7475 Create a "shadow class-wide type" for a shadow entity.
7476 * sem_ch11.adb (Analyze_Exception_Handlers): Remove the dubious setting
7477 of the final chain along with the associated comment.
7478 * sem_ch3.adb (Access_Type_Declaration): Add new local variable
7479 Full_Desig and set it to the full view of the designated type.
7480 Initialize the finalization collection to empty.
7481 (Build_Derived_Record_Type): Alphabetize local variables. Code
7482 reformatting.
7483 (Collect_Fixed_Components): Remove the mention of Name_uController.
7484 (Create_Constrained_Components): Remove the mention of Name_uController.
7485 (Make_Class_Wide_Type): Add specialized code to redecorate an existing
7486 class-wide type of a shadow entity.
7487 (Process_Full_View): Update the machinery which marks type
7488 Limited_Controlled's entity as limited.
7489 * sem_ch4.adb (Analyze_One_Call): Code reformatting.
7490 * sem_ch6.adb (Create_Extra_Formals): Do not generate a finalization
7491 list, instead make a collection build-in-place formal.
7492 * sem_ch8.adb (Analyze_Object_Renaming): Look at the available view of
7493 a designated type in order to establish a match between the renaming
7494 and the renamed entity.
7495 (Find_Selected_Component): Add guard to prevent spurious exceptions
7496 from being raised on .NET/JVM.
7497 * sem_disp.adb (Check_Dispatching_Operation): Include Finalize_Address
7498 to the list of primitive that need special processing. Update arrays
7499 C_Names and D_Names.
7500 (Replace_Types): Handle class-wide types.
7501 * sem_elab.adb (Check_A_Call): Since Deep_Initialize now has a
7502 different parameter profile, look at the first formal.
7503 * sem_prag.adb: Remove with and use clauses for Exp_Ch7. Add with and
7504 use clauses for Exp_Util.
7505 * sem_res.adb: Remove with and use clauses for Elists.
7506 (Propagate_Coextensions): Removed.
7507 (Resolve_Allocator): Do not propagate the list of coextensions from one
7508 allocator to another.
7509 * sem_util.adb (Build_Actual_Subtype_Of_Component): Rename variable
7510 Deaccessed_T to Desig_Typ.
7511 (Enter_Name): Remove the mention of Name_uController.
7512 (Gather_Components): Remove the mention of Name_uController.
7513 (Incomplete_Or_Private_View): New routine.
7514 (Is_Coextension_Root): Removed.
7515 (Is_Fully_Initialized_Type): Remove the mention of Name_uController.
7516 * sem_util.ads (Incomplete_Or_Private_View): New routine.
7517 (Is_Coextension_Root): Removed.
7518 * s-finroo.ads: Remove with clause for Ada.Unchecked_Conversion.
7519 Controlled types are now derived from a null tagged record. Remove
7520 types Finalizable_Ptr, Finalizable and Empty_Root_Controlled.
7521 * sinfo.adb (Coextensions): Removed.
7522 (Set_Coextensions): Removed.
7523 * sinfo.ads: Remove Coextensions from the explanation of node fields
7524 and its uses in nodes.
7525 Update the field usage of N_Allocator.
7526 (Coextensions): Removed along with its pragma Inline.
7527 (Set_Coextensions): Removed along with its pragma Inline.
7528 * snames.ads-tmpl: Remove names
7529
7530 Name_uClean
7531 Name_uController
7532 Name_uFinal_List
7533 Name_uLocal_Final_List
7534 Name_Finalization_Root
7535 Name_Next
7536 Name_Prev
7537
7538 Add names
7539
7540 Name_uFinalizer
7541 Name_Finalize_Address
7542 * s-pooglo.adb (Allocate): Add overriding indicator.
7543 (Deallocate): Add overriding indicator.
7544 (Storage_Size): Add overriding indicator.
7545 * s-soflin.adb (Adafinal_NT): Invoke Finalize_Library_Objects rather
7546 than Finalize_Global_List.
7547 (Null_Finalize_Global_List): Removed.
7548 (Save_Library_Occurrence): New routine.
7549 * s-soflin.ads: Remove variable Finalize_Global_List along with its
7550 initialization. Add variable Finalize_Library_Objects along with its
7551 pragma Export. Add variables Library_Exception and
7552 Library_Exception_Set along with their pragma Export.
7553 (Null_Finalize_Global_List): Removed.
7554 (Save_Library_Occurrence): New routine.
7555 * s-tassta.adb (Finalize_Global_Tasks): Call Finalize_Library_Objects
7556 rather than Finalize_Global_List.
7557 * tbuild.adb (Unchecked_Convert_To): Capture and set the parent field
7558 of the constructed node.
7559
7560 2011-08-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7561
7562 * link.c: Include "auto-host.h" before system headers.
7563
7564 2011-08-03 Vincent Celier <celier@adacore.com>
7565
7566 * make.adb (Gnatmake): Add to table Library_Projs only library projects
7567 that are not extended. Do not check if a library project that is
7568 extended should be regenerated. Do not add to table Library_Paths the
7569 libraries that are in extended projects. Link only with libraries that
7570 are in libray projects that are not extended.
7571 * prj-nmsc.adb (Check_Library_Attributes): Do not reset flag Library
7572 for a library project that is extended.
7573
7574 2011-08-03 Gary Dismukes <dismukes@adacore.com>
7575
7576 * sem_ch6.adb (Find_Corresponding_Spec): When in an instance, skip
7577 conforming subprogram renamings that appear to be completions if they
7578 are not fully conformant.
7579 Such renamings are homographs but not completions.
7580 * sem_type.adb (Disambiguate): Handle disambiguation of overloaded
7581 names in a subprogram renaming that appears in an instance.
7582
7583 2011-08-03 Ed Schonberg <schonberg@adacore.com>
7584
7585 * exp_util.adb (Expand_Subtype_From_Expr): if the type is limited but
7586 not immutably limited, build actual subtype from expression to provide
7587 proper bounds to caller.
7588
7589 2011-08-03 Gary Dismukes <dismukes@adacore.com>
7590
7591 * sem_ch8.adb: Minor comment correction.
7592
7593 2011-08-03 Thomas Quinot <quinot@adacore.com>
7594
7595 * exp_strm.adb (Build_Array_Input_Function): In Ada 2005 mode, when
7596 returning a limited array, use an extended return statement.
7597
7598 2011-08-03 Vincent Celier <celier@adacore.com>
7599
7600 * make.adb (Initialize): If --subdirs= is used, but no project file is
7601 specified, attempt to create the specify subdir if it does not already
7602 exist and use it as the object directory as if -D had been specified.
7603
7604 2011-08-03 Arnaud Charlet <charlet@adacore.com>
7605
7606 * s-tpopsp-vms.adb: New file.
7607 * s-taprop-vms.adb: Put back ATCB_Key, since needed by this file on VMS.
7608 * gcc-interfaces/Makefile.in: Use s-taprop-vms.adb on VMS.
7609
7610 2011-08-03 Emmanuel Briot <briot@adacore.com>
7611
7612 * make.adb, makeutl.adb, makeutl.ads, clean.adb (Makeutl.Queue): new
7613 package.
7614
7615 2011-08-03 Yannick Moy <moy@adacore.com>
7616
7617 * cstand.adb (Create_Standard): select Universal_Integer as an ALFA type
7618 * sem_ch3.adb (Array_Type_Declaration): detect array types in ALFA
7619 * sem_util.adb, sem_util.ads (Has_Static_Array_Bounds): new function to
7620 detect that an array has static bounds.
7621
7622 2011-08-03 Thomas Quinot <quinot@adacore.com>
7623
7624 * exp_dist.adb: Minor reformatting.
7625
7626 2011-08-03 Arnaud Charlet <charlet@adacore.com>
7627
7628 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-vms.adb
7629 (ATCB_Key): Removed, not always used.
7630
7631 2011-08-03 Emmanuel Briot <briot@adacore.com>
7632
7633 * gnatcmd.adb, make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads,
7634 clean.adb, prj-conf.adb, prj-env.adb, prj-env.ads (Makeutl): remove
7635 most remaining global variables.
7636
7637 2011-08-03 Robert Dewar <dewar@adacore.com>
7638
7639 * gnatcmd.adb, prj-proc.adb, mlib-prj.adb, prj.adb, makeutl.ads,
7640 prj-util.adb, prj-util.ads, prj-conf.adb, prj-env.adb: Minor
7641 reformatting.
7642
7643 2011-08-03 Javier Miranda <miranda@adacore.com>
7644
7645 * exp_util.adb (Is_VM_By_Copy_Actual): Include N_Slide nodes as actuals
7646 that must be passed by copy in VM targets.
7647
7648 2011-08-03 Emmanuel Briot <briot@adacore.com>
7649
7650 * prj.ads, prj-nmsc.adb (Files_Htable): removed this htable, which
7651 duplicates a similar htable now in the project tree.
7652
7653 2011-08-03 Claire Dross <dross@adacore.com>
7654
7655 * a-cfdlli.adb, a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb,
7656 a-cofove.adb ("=", Length, Is_Empty, Clear, Assign, Copy, Element,
7657 Replace_Element, Query_Element, Update_Element, Move, Insert, Prepend,
7658 Append, Delete, Delete_First, Delete_Last, Reverse_Element, Swap,
7659 Splice, First, First_Element, Last, Last_Element, Next, Previous, Find,
7660 Reverse_Find, Contains, Has_Element, Iterate, Reverse_Iterate, Capacity,
7661 Reserve_Length, Length, Strict_Equal, Left, Right): Data-structure
7662 update.
7663
7664 2011-08-03 Arnaud Charlet <charlet@adacore.com>
7665
7666 * s-taprop-posix.adb, s-taprop-linux.adb, s-taprop-tru64.adb
7667 (ATCB_Key): Removed, not always used.
7668 * s-tpopsp-posix.adb, s-tpopsp-posix-foreign.adb (ATCB_Key): Moved from
7669 s-taprop-posix.adb.
7670 * s-tpopsp-tls.adb: New file.
7671 * gcc-interface/Makefile.in: Use TLS implementation of s-tpopsp.adb on
7672 x86/x64/ia64/powerpc/sparc Linux.
7673
7674 2011-08-03 Arnaud Charlet <charlet@adacore.com>
7675
7676 * system-aix.ads, system-aix64.ads: Set ZCX_By_Default to True.
7677 * gcc-interface/Makefile.in: Switch to ZCX by default on AIX ports.
7678
7679 2011-08-03 Thomas Quinot <quinot@adacore.com>
7680
7681 * rtsfind.ads, exp_dist.adb, exp_dist.ads
7682 (Build_From_Any_Call, Build_To_Any_Call, Build_TypeCode_Call):
7683 Fix type selection for mapping integer types to PolyORB types.
7684
7685 2011-08-03 Bob Duff <duff@adacore.com>
7686
7687 * sem_ch7.adb: Minor comment clarification.
7688
7689 2011-08-03 Bob Duff <duff@adacore.com>
7690
7691 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): If we get
7692 an error analyzing a choice, skip further processing. Further
7693 processing could cause a crash or cascade errors.
7694
7695 2011-08-03 Emmanuel Briot <briot@adacore.com>
7696
7697 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, mlib-prj.adb,
7698 prj.adb, prj.ads, makeutl.adb, makeutl.ads, clean.adb, prj-nmsc.adb,
7699 prj-util.adb, prj-util.ads, prj-conf.adb, prj-conf.ads, prj-env.adb,
7700 prj-env.ads (Shared_Project_Tree_Data): new type
7701 An aggregate project and its aggregated trees need to share the common
7702 data structures used for lists of strings, packages,... This makes the
7703 code simpler since otherwise we have to pass the root tree (also used
7704 for the configuration file data) in addition to the current project
7705 tree. This also avoids ambiguities as to which tree should be used.
7706 And finally this saves a bit of memory.
7707 (For_Every_Project_Imported): new parameter Tree.
7708 Since aggregated projects are using a different tree, we need to let
7709 the caller know which tree to use to manipulate the returned project.
7710
7711 2011-08-03 Robert Dewar <dewar@adacore.com>
7712
7713 * prj-proc.adb, exp_util.ads, exp_ch9.adb, make.adb, prj-ext.adb,
7714 prj-ext.ads, alfa.ads, sem_ch4.adb, makeutl.adb, makeutl.ads,
7715 lib-xref-alfa.adb, sem_cat.adb, exp_dist.adb, get_alfa.adb,
7716 prj-env.adb, prj-env.ads, prj-tree.adb, alfa.ads: Minor reformatting.
7717
7718 2011-08-03 Javier Miranda <miranda@adacore.com>
7719
7720 * exp_util.adb, sem_aux.adb, exp_util.ads, sem_aux.ads:
7721 Move routine Is_VM_By_Copy_Actual from sem_aux to exp_util.
7722
7723 2011-08-03 Bob Duff <duff@adacore.com>
7724
7725 * sem_ch8.adb (Is_Primitive_Operator_In_Use): Always check In_Use on
7726 the Base_Type.
7727
7728 2011-08-03 Joel Brobecker <brobecker@adacore.com brobecker>
7729
7730 * g-sha256.ads, g-sha512.ads, g-sha1.ads, g-sha224.ads, g-sha384.ads,
7731 g-sehash.ads: Fix typo. Update header.
7732
7733 2011-08-03 Thomas Quinot <quinot@adacore.com>
7734
7735 * exp_ch6.adb (Expand_Actuals): Remove Ada_2005 guard on build-in-place
7736 expansion.
7737
7738 2011-08-03 Gary Dismukes <dismukes@adacore.com>
7739
7740 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): Consider
7741 prefixes of private types along with records, since the selector may be
7742 a discriminant.
7743 * sem_res.adb (Resolve_Selected_Component): Consider prefixes of
7744 private types along with records, since the selector may be a
7745 discriminant.
7746
7747 2011-08-03 Emmanuel Briot <briot@adacore.com>
7748
7749 * prj-pp.adb (Pretty_Print): Remove trailing blank line.
7750
7751 2011-08-03 Javier Miranda <miranda@adacore.com>
7752
7753 * sem_aux.adb (Is_VM_By_Copy_Actual): Fix wrong use of
7754 Tagged_Type_Expansion.
7755
7756 2011-08-03 Yannick Moy <moy@adacore.com>
7757
7758 * sem_res.adb (Resolve_Op_Concat_Arg): Do not issue a SPARK
7759 violation when the argument of concatenation is the name of a
7760 constant.
7761
7762 2011-08-03 Emmanuel Briot <briot@adacore.com>
7763
7764 * prj-proc.adb, prj-ext.adb, prj-ext.ads, prj-env.adb, prj-env.ads,
7765 prj-tree.adb, prj-tree.ads (Initialize_And_Copy, Copy): new subprograms
7766 (Process_Declarative_Items): new parameter Child_Env.
7767
7768 2011-08-03 Yannick Moy <moy@adacore.com>
7769
7770 * alfa.ads: Update format of ALFA section in ALI file in order to
7771 add a mapping from bodies to specs when both are present.
7772 (ALFA_Scope_Record): Add components for spec file/scope.
7773 * get_alfa.adb (Get_ALFA): Read the new file/scope for spec when
7774 present.
7775 * lib-xref-alfa.adb (Collect_ALFA): After all scopes have been
7776 collected, fill in the spec information when relevant.
7777 * put_alfa.adb (Put_ALFA): Write the new file/scope for spec when
7778 present.
7779
7780 2011-08-03 Eric Botcazou <ebotcazou@adacore.com>
7781
7782 * inline.adb (Add_Inlined_Subprogram): Do not consider the enclosing
7783 code unit to decide whether to add internally generated subprograms.
7784
7785 2011-08-03 Javier Miranda <miranda@adacore.com>
7786
7787 * sem_aux.ads, sem_aux.adb (Is_VM_By_Copy_Actual): New subprogram.
7788 * exp_ch9.adb (Build_Simple_Entry_Call): Handle actuals that must
7789 be handled by copy in VM targets.
7790
7791 2011-08-03 Emmanuel Briot <briot@adacore.com>
7792
7793 * make.adb, makeutl.adb, makeutl.ads (Make.Switches_Of): Share
7794 code with Makeutl.Get_Switches.
7795 * prj-tree.adb: Update comment.
7796
7797 2011-08-03 Thomas Quinot <quinot@adacore.com>
7798
7799 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Reject a remote
7800 subprogram with a limited formal that does not support external
7801 streaming.
7802
7803 2011-08-03 Yannick Moy <moy@adacore.com>
7804
7805 * get_alfa.adb (Get_ALFA): add missing Skip_Spaces at start of
7806 continuation line
7807 * lib-xref-alfa.adb (Add_ALFA_File): split removal of scopes that are
7808 not from current unit in two phases, because it is not possible to
7809 change the table while iterating over its content.
7810 * put_alfa.adb (Put_ALFA): reset current file/scope at each new entity
7811
7812 2011-08-03 Sergey Rybin <rybin@adacore.com>
7813
7814 * vms_data.ads: Add qualifier for gnatmetric --no-static-loop option
7815 * gnat_ugn.texi: Update description of complexity metrics (gnatmetric)
7816
7817 2011-08-03 Ed Schonberg <schonberg@adacore.com>
7818
7819 * sem_res.adb (Resolve_Op_Concat_Arg): if the argument is an aggregate
7820 and the component type is composite, this is ambiguous for predefined
7821 concatenation, but if the node is not overloaded and the entity is a use
7822 -defined function its profile can be used to resolve that aggregate.
7823
7824 2011-08-03 Robert Dewar <dewar@adacore.com>
7825
7826 * exp_ch4.adb: Minor code cleanup.
7827
7828 2011-08-03 Thomas Quinot <quinot@adacore.com>
7829
7830 * exp_dist.adb: Do not generate distribution stubs if serious errors
7831 have been diagnosed.
7832
7833 2011-08-03 Ed Schonberg <schonberg@adacore.com>
7834
7835 * sem_ch4.adb (Try_Primitive_Operation): when checking the validity of
7836 the first formal of a primitive operation, go to the base type to
7837 handle properly an access to a derived type with constrained
7838 discriminants.
7839 * sem_type.adb (Disambiguate): an immediately visible operator hides a
7840 user-defined function that is only use-visible.
7841
7842 2011-08-03 Robert Dewar <dewar@adacore.com>
7843
7844 * sem_aggr.adb, sem_ch3.adb, lib.ads, gnatcmd.adb, prj-proc.adb,
7845 make.adb, lib-writ.adb, prj-part.adb, prj-part.ads, prj-ext.adb,
7846 fname-uf.adb, prj-ext.ads, prj.adb, prj.ads, sem_attr.adb, alfa.adb,
7847 prj-makr.adb, errout.adb, makeutl.adb, makeutl.ads, restrict.ads,
7848 sem_ch6.adb, g-pehage.adb, clean.adb, put_alfa.adb, lib-xref-alfa.adb,
7849 prj-nmsc.adb, prj-nmsc.ads, sem_ch8.adb, prj-pars.ads, exp_aggr.adb,
7850 prj-attr.ads, sem_ch13.adb, get_alfa.adb, prj-env.adb, prj-env.ads,
7851 alfa_test.adb, prj-tree.adb, prj-tree.ads, einfo.ads: Minor reformatting
7852
7853 2011-08-03 Robert Dewar <dewar@adacore.com>
7854
7855 * repinfo.adb (List_Mechanism): Add handling of
7856 Convention_Ada_Pass_By_XXX.
7857 * sem_mech.adb (Set_Mechanism): Ditto.
7858 * sem_prag.adb (Process_Convention): Add entries for
7859 Convention_Ada_Pass_By_XXX.
7860 * snames.adb-tmpl, snames.ads-tmpl: Ditto.
7861
7862 2011-08-03 Pascal Obry <obry@adacore.com>
7863
7864 * makeutl.adb: Minor reformatting.
7865
7866 2011-08-03 Vincent Celier <celier@adacore.com>
7867
7868 * fname-uf.adb
7869 (Get_File_Name) If the file cannot be found when there are no config
7870 pragmas file and May_Fail is True, return No_File instead of the file
7871 name, to be consistent.
7872
7873 2011-08-03 Pascal Obry <obry@adacore.com>
7874
7875 * adaint.c (__gnat_is_executable_file_attr): Avoid access
7876 to null pointer.
7877
7878 2011-08-03 Javier Miranda <miranda@adacore.com>
7879
7880 * sem_ch13.adb
7881 (Same_Representation): In VM targets the representation of arrays with
7882 aliased components differs from arrays with non-aliased components.
7883
7884 2011-08-03 Emmanuel Briot <briot@adacore.com>
7885
7886 * prj-proc.adb, prj-attr.adb, prj-attr.ads (Get_Attribute_Index): do
7887 not systematically lower case attribute indexes that contain no "."
7888 Fix definition of several Naming attributes, which take
7889 a unit name as index and therefore should be case insensitive.
7890 Minor refactoring (reduce length of variable names).
7891
7892 2011-08-03 Emmanuel Briot <briot@adacore.com>
7893
7894 * makeutl.adb, makeutl.ads (Get_Switches): new subprogram.
7895
7896 2011-08-03 Emmanuel Briot <briot@adacore.com>
7897
7898 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
7899 prj-part.ads, switch-m.adb, switch-m.ads, prj-makr.adb, clean.adb,
7900 prj-pars.adb, prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
7901 prj-tree.ads (Prj.Tree.Environment): new type.
7902
7903 2011-08-03 Emmanuel Briot <briot@adacore.com>
7904
7905 * prj-proc.adb, prj.ads, makeutl.adb, makeutl.ads, prj-conf.adb,
7906 prj-tree.adb, prj-tree.ads (Environment): new type.
7907
7908 2011-08-03 Emmanuel Briot <briot@adacore.com>
7909
7910 * prj-tree.ads: Remove unused variable.
7911
7912 2011-08-03 Yannick Moy <moy@adacore.com>
7913
7914 * restrict.adb (Restriction_Msg): set "SPARK" all in upper case for
7915 issuing messages related to SPARK restriction violation.
7916
7917 2011-08-03 Ed Schonberg <schonberg@adacore.com>
7918
7919 * sem_ch6.adb: guard against error nodes in return statements.
7920
7921 2011-08-03 Arnaud Charlet <charlet@adacore.com>
7922
7923 * errout.adb (Error_Msg_Internal): the main unit has not been read yet,
7924 a warning can only appear on a configuration file, so emit warning
7925 without further checks.
7926
7927 2011-08-03 Arnaud Charlet <charlet@adacore.com>
7928
7929 * s-interr.ads: add overriding keyword.
7930
7931 2011-08-03 Geert Bosch <bosch@adacore.com>
7932
7933 * exp_attr.adb: Fix minor typo.
7934
7935 2011-08-03 Ed Schonberg <schonberg@adacore.com>
7936
7937 * par-ch4.adb: improve error recovery.
7938
7939 2011-08-03 Emmanuel Briot <briot@adacore.com>
7940
7941 * prj-part.adb, prj-part.ads, prj-makr.adb, prj-pars.adb, prj-conf.adb,
7942 prj-env.adb (Prj.Part.Parse): change parameter Always_Errout_Finalize
7943 to Errout_Handling.
7944
7945 2011-08-03 Emmanuel Briot <briot@adacore.com>
7946
7947 * prj-dect.adb (Parse_Attribute_Declaration): make sure we can use
7948 "external" as an attribute name in aggregate projects.
7949
7950 2011-08-03 Jose Ruiz <ruiz@adacore.com>
7951
7952 * s-taprop-vxworks.adb: (Create_Task, Initialize): Ada 2012 pragma CPU
7953 uses CPU numbers starting 1, while VxWorks uses CPU numbers starting
7954 from 0, so we need to adjust.
7955
7956 2011-08-03 Emmanuel Briot <briot@adacore.com>
7957
7958 * prj-proc.adb, prj-ext.adb, prj-ext.ads, makeutl.adb, prj-tree.adb,
7959 prj-tree.ads, gnatcmd.adb, clean.adb (External_References): new type.
7960
7961 2011-08-03 Yannick Moy <moy@adacore.com>
7962
7963 * sem_ch6.adb (New_Overloaded_Entity): only issue error for SPARK
7964 restriction on overloaded entity if the entity is not an operator.
7965
7966 2011-08-03 Yannick Moy <moy@adacore.com>
7967
7968 * sem_ch7.adb, sem_res.adb, sem_attr.adb, restrict.adb,
7969 restrict.ads: Rename remaining Check_Formal_Restriction* into
7970 Check_SPARK_Restriction*.
7971
7972 2011-08-03 Emmanuel Briot <briot@adacore.com>
7973
7974 * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb,
7975 prj-nmsc.ads, prj-err.adb (Project_Data): now discriminated on its
7976 qualifier.
7977 (Project_Empty): removed
7978 (Empty_Project): new parameter Qualifier
7979 This is used to have fields specific to aggregate projects, cleaner
7980 New field to store the list of aggregated projects.
7981 (Check_Aggregate_Project): removed
7982 (Process_Aggregated_Projects, Free): new subprograms.
7983
7984 2011-08-03 Olivier Hainque <hainque@adacore.com>
7985
7986 * tracebak.c (STOP_FRAME ppc AIX): Stop at null return address as well.
7987
7988 2011-08-03 Ed Schonberg <schonberg@adacore.com>
7989
7990 * sem_ch8.adb (Analyze_Object_Renaming): if the renamed object is an
7991 explicit dereference of an unconstrained type, create a constrained
7992 subtype for it, as is done for function calls that return an
7993 unconstrained type.
7994
7995 2011-08-03 Thomas Quinot <quinot@adacore.com>
7996
7997 * g-pehage.adb (Finalize): Avoid possible double-free.
7998
7999 2011-08-03 Steve Baird <baird@adacore.com>
8000
8001 * exp_attr.adb (Expand_N_Attribute_Reference): Don't expand
8002 Elab_Spec/Body attrs in CodePeer_Mode.
8003
8004 2011-08-03 Javier Miranda <miranda@adacore.com>
8005
8006 * exp_aggr.adb (Flatten): Convert to positional form aggregates whose
8007 low bound is not known at compile time but they have no others choice.
8008 Done because in this case the bounds can be obtained directly from the
8009 aggregate.
8010
8011 2011-08-03 Ed Falis <falis@adacore.com>
8012
8013 * s-tasinf-vxworks.ads: Update comment to reflect 0 indexing of CPUs
8014 on VxWorks SMP. Remove unusable constant ANY_CPU.
8015
8016 2011-08-03 Emmanuel Briot <briot@adacore.com>
8017
8018 * gnatcmd.adb, make.adb, prj-part.adb, prj-part.ads, prj-makr.adb,
8019 clean.adb, prj-nmsc.adb, prj-pars.adb, prj-conf.adb, prj-env.adb,
8020 prj-env.ads (Prj.Env.Initialize_Default_Project_Path,
8021 Prj.Env.Initialize_Empty): new subprograms
8022 (Get_Env, Find_Project): remove parameter Target_Name.
8023
8024 2011-08-03 Gary Dismukes <dismukes@adacore.com>
8025
8026 * sem_ch3.adb (Build_Derived_Record_Type): Test the Derive_Subps formal
8027 as a condition for the delayed call to Derived_Subprograms done for the
8028 case of the rewriting of a derived type that constrains the
8029 discriminants of its parent type.
8030 Avoids redundant subprogram derivations for private subtype derivations.
8031
8032 2011-08-03 Javier Miranda <miranda@adacore.com>
8033
8034 * exp_aggr.adb (Init_Hidden_Discriminants): New subprogram of
8035 Build_Record_Aggr_Code.
8036 (Build_Record_Aggr_Code): Add missing support to initialize hidden
8037 discriminants in extension aggregates.
8038
8039 2011-08-03 Emmanuel Briot <briot@adacore.com>
8040
8041 * prj-pp.adb (Print): also output project qualifiers, since in
8042 particular "aggregate" is mandatory in an aggregate project.
8043
8044 2011-08-03 Emmanuel Briot <briot@adacore.com>
8045
8046 * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb:
8047 (Debug_Output): new function.
8048
8049 2011-08-03 Eric Botcazou <ebotcazou@adacore.com>
8050
8051 * gnat_ugn.texi: Document -Wstack-usage.
8052 * gcc-interface/misc.c (enumerate_modes): Add guard for ghost FP modes.
8053
8054 2011-08-03 Thomas Quinot <quinot@adacore.com>
8055
8056 * sem_prag.adb Issue an error (not a warning) when a C++ type does not
8057 have keyword LIMITED.
8058
8059 2011-08-03 Yannick Moy <moy@adacore.com>
8060
8061 * alfa.adb, alfa.ads, alfa_test.adb: New files.
8062 * ali.adb (Known_ALI_Lines): add 'C' lines (SCO) and 'F' lines (ALFA)
8063 (Scan_ALI): do not issue a fatal error if parsing known lines after Xref
8064 section (does not happen in compiler, only if code directly calls
8065 Scan_ALI).
8066 * get_alfa.adb, get_alfa.ads: New files.
8067 * lib-writ.adb, lib-writ.ads (Write_ALI): output ALFA information if
8068 needed.
8069 * lib-xref-alfa.adb: New file.
8070 * lib-xref.adb, lib-xref.ads
8071 (Xref_Entry): redefine information needed in cross-references for ALFA.
8072 Push ALFA treatments in separated local package.
8073 (Enclosing_Subpragram_Or_Package): treat specially subprogram
8074 identifiers. Return entity of package body instead of spec. Return
8075 Empty for a scope with no location.
8076 (Generate_Reference): adapt to new components for ALFA information.
8077 Remove the need for D references on definitions.
8078 (Is_Local_Reference): moved to ALFA local package
8079 (Output_References): extract subfunction as Extract_Source_Name
8080 (Output_Local_References): remove procedure, replaced by filtering of
8081 cross-references in package ALFA and printing in Put_ALFA.
8082 (Write_Entity_Name): remove procedure
8083 * lib.adb, lib.ads (Extract_Source_Name): extract here function to
8084 print exact name of entity as it appears in source file
8085 (Unit_Ref_Table): make type public for use in Lib.Xref.ALFA
8086 * put_alfa.adb, put_alfa.ads: New files.
8087 * xref_lib.adb (Search_Xref): protect read of cross-references against
8088 reading other sections of the ALI file, in gnatxref
8089 (Search): protect read of cross-references against reading other
8090 sections of the ALI file, in gnatfind.
8091 * gcc-interface/Make-lang.in: Update dependencies.
8092
8093 2011-08-03 Thomas Quinot <quinot@adacore.com>
8094
8095 * sem_ch3.adb: Minor reformatting.
8096
8097 2011-08-03 Jose Ruiz <ruiz@adacore.com>
8098
8099 * s-inmaop-vxworks.adb (Setup_Interrupt_Mask): Do nothing instead of
8100 raising an exception.
8101
8102 2011-08-03 Ed Schonberg <schonberg@adacore.com>
8103
8104 * sem_res.adb (Set_String_Literal_Subtype): if index type is an integer
8105 type, always use 1 as the lower bound or string, even if lower bound of
8106 context is not static, to handle properly null strings in a non-static
8107 context.
8108
8109 2011-08-03 Bob Duff <duff@adacore.com>
8110
8111 * sem_prag.adb (Resolve_Aggregate): An array aggregate with 'others' is
8112 always legal on the right-hand side of an assignment statement; there
8113 is always an applicable index constraint in this case. Therefore, the
8114 check for Pkind = N_Assignment_Statement is now unconditional -- it
8115 doesn't depend on whether Is_Constrained (Typ).
8116
8117 2011-08-03 Robert Dewar <dewar@adacore.com>
8118
8119 * exp_ch5.adb, sem_prag.adb, exp_ch4.adb: Minor reformatting.
8120
8121 2011-08-03 Ed Schonberg <schonberg@adacore.com>
8122
8123 * sem_ch3.adb (Build_Itype_Reference): do not create an itype reference
8124 for an itype created within a generic unit.
8125
8126 2011-08-03 Eric Botcazou <ebotcazou@adacore.com>
8127
8128 * gnat_ugn.texi (Switches for gcc): Make it clearer that -fno-inline
8129 suppresses all inlining.
8130
8131 2011-08-03 Robert Dewar <dewar@adacore.com>
8132
8133 * sem_ch3.adb, sem_res.adb, exp_ch13.adb, exp_disp.adb,
8134 exp_aggr.adb: Minor reformatting.
8135
8136 2011-08-03 Thomas Quinot <quinot@adacore.com>
8137
8138 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not force inlining of
8139 tagged assignment when discriminant checks are suppressed. This is
8140 useless and extremely costly in terms of static stack usage.
8141
8142 2011-08-03 Bob Duff <duff@adacore.com>
8143
8144 * sem_prag.adb (Get_Base_Subprogram): Do not follow Alias for instances
8145 of generics, because this leads to the wrong entity in the wrong scope,
8146 causing (e.g.) pragma Export_Procedure to get an error if the entity is
8147 an instance.
8148 (Process_Interface_Name): Follow Alias for instances of generics, to
8149 correct for the above change.
8150
8151 2011-08-03 Ed Schonberg <schonberg@adacore.com>
8152
8153 * exp_ch4.adb (Expand_N_Selected_Component): If the discriminant value
8154 is an integer literal it is always safe to replace the reference. In
8155 addition, if the reference appears in the generated code for an object
8156 declaration it is necessary to copy because otherwise the reference
8157 might be to the uninitilized value of the discriminant of the object
8158 itself.
8159
8160 2011-08-03 Pascal Obry <obry@adacore.com>
8161
8162 * adaint.c (__gnat_is_executable_file_attr): Fix Win32 circuitry when no
8163 ACL used, in this case we want to check for ending .exe, not .exe
8164 anywhere in the path.
8165
8166 2011-08-03 Sergey Rybin <rybin@adacore.com>
8167
8168 * tree_io.ads (ASIS_Version_Number): Update because of the changes in
8169 the tree structure (semantic decoration of references to record
8170 discriminants).
8171
8172 2011-08-03 Gary Dismukes <dismukes@adacore.com>
8173
8174 * sem_aggr.adb (Analyze_Array_Aggregate): When checking the discrete
8175 choices of a named array aggregate, bail out when any choices are
8176 marked as Errors_Posted.
8177
8178 2011-08-03 Ed Schonberg <schonberg@adacore.com>
8179
8180 * exp_ch13.adb (Expand_N_Freeze_Entity): cleanup determination of scope
8181 in which entity is frozen, to handle properly loop variables in
8182 iterators.
8183
8184 2011-08-03 Ed Schonberg <schonberg@adacore.com>
8185
8186 * sem_res.adb (Set_String_Literal_Subtype): if the lower bound of the
8187 subtype is not static, compute the upper bound using attributes, to
8188 handle properly index types that are not integer types.
8189
8190 2011-08-03 Bob Duff <duff@adacore.com>
8191
8192 * gnat_rm.texi, gnat_ugn.texi: Fix some dangling URLs.
8193 Update copyright notice.
8194
8195 2011-08-03 Ed Schonberg <schonberg@adacore.com>
8196
8197 * sem_ch3.adb (Build_Discriminant_Constraints): Only use
8198 Original_Discriminant if within an instance.
8199 * sem_ch4.adb (Analyze_Selected_Component): Ditto.
8200
8201 2011-08-03 Thomas Quinot <quinot@adacore.com>
8202
8203 * einfo.ads: Minor reformatting.
8204
8205 2011-08-03 Ed Schonberg <schonberg@adacore.com>
8206
8207 * exp_disp.adb (Check_Premature_Freezing): diagnose the presence of a
8208 composite type with an unfrozen subcomponent, in the profile of a
8209 primitive operation.
8210
8211 2011-08-03 Robert Dewar <dewar@adacore.com>
8212
8213 * sem_util.ads, exp_aggr.adb, exp_ch3.adb: Minor reformatting.
8214
8215 2011-08-03 Ed Schonberg <schonberg@adacore.com>
8216
8217 * sem_ch3.adb (Analyze_Object_Declaration): if a constant object of an
8218 unconstrained type with discriminants is initialized with an aggregate,
8219 use the constrained subtype of the aggregate as the type of the object,
8220 because it is immutable, and this allows the back-end to generate no
8221 code for the object declaration.
8222
8223 2011-08-03 Robert Dewar <dewar@adacore.com>
8224
8225 * exp_ch4.adb (Optimize_Length_Check): Fix bad handling of case where
8226 comparison operand is variable, and turns out to be zero or negative.
8227
8228 2011-08-03 Javier Miranda <miranda@adacore.com>
8229
8230 * exp_intr.adb
8231 (Expand_Dispatching_Constructor_Call): Disable expansion of
8232 code required for native targets. Done to avoid generating
8233 references to unavailable runtime entities in VM targets.
8234 * exp_ch3.adb
8235 (Expand_N_Object_Declaration): Add missing support to handle
8236 the explicit initialization of class-wide interface objects.
8237 Fix documentation.
8238
8239 2011-08-03 Matthew Heaney <heaney@adacore.com>
8240
8241 * a-cobove.adb (Merge): Move source onto target, instead of using Assign
8242
8243 2011-08-03 Matthew Heaney <heaney@adacore.com>
8244
8245 * a-cbdlli.adb (Splice): move source items from first to last
8246
8247 2011-08-03 Yannick Moy <moy@adacore.com>
8248
8249 * sem_util.ads: comment added.
8250
8251 2011-08-03 Javier Miranda <miranda@adacore.com>
8252
8253 * exp_aggr.adb
8254 (Expand_Record_Aggregate): In VM targets disable the expansion into
8255 assignments of aggregates whose type is not known at compile time.
8256
8257 2011-08-03 Ed Schonberg <schonberg@adacore.com>
8258
8259 * exp_ch9.adb (Build_Renamed_Formal_Declaration): common procedure for
8260 protected entries and task entries, to build the proper renaming
8261 declaration for entry formals, used in debugging.
8262 * exp_ch2.adb (Expand_Entry_Parameter): handle task and entry
8263 parameters in the same way.
8264
8265 2011-08-02 Robert Dewar <dewar@adacore.com>
8266
8267 * a-direct.adb, sinfo.ads, exp_ch9.adb, scng.adb, sem_util.adb,
8268 sem_util.ads, restrict.ads, par-prag.adb: Minor reformatting and/or
8269 code reorganization.
8270
8271 2011-08-02 Robert Dewar <dewar@adacore.com>
8272
8273 * debug.adb: Debug flag d.P to suppress length comparison optimization
8274 * exp_ch4.adb (Optimize_Length_Comparison): New routine to optimize
8275 comparison of Length by comparing First/Last instead.
8276
8277 2011-08-02 Matthew Heaney <heaney@adacore.com>
8278
8279 * a-cobove.ads: Code clean up.
8280
8281 2011-08-02 Vincent Celier <celier@adacore.com>
8282
8283 * adaint.c (file_names_case_sensitive_cache): New static int.
8284 (__gnat_get_file_names_case_sensitive): Cache the return value in
8285 file_names_case_sensitive_cache at the first invocation, to avoid
8286 multiple calls to getenv.
8287
8288 2011-08-02 Bob Duff <duff@adacore.com>
8289
8290 * sem_ch12.adb (Validate_Derived_Type_Instance): Implement AI05-0218-1.
8291
8292 2011-08-02 Yannick Moy <moy@adacore.com>
8293
8294 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem.ads,
8295 sem_util.adb, sem_util.ads, sem_res.adb, sem_ch2.adb, sem_ch4.adb,
8296 sem_ch6.adb, sem_ch11.adb: Add semantic flag In_Pre_Post_Expression to
8297 indicate that we are in a precondition or postcondition. This is used in
8298 Mark_Non_ALFA_Subprogram (renaming of Mark_Non_ALFA_Subprogram_Body) to
8299 decide whether to flag the spec or body of the current subprogram as
8300 not in ALFA.
8301
8302 2011-08-02 Fabien Chouteau <chouteau@adacore.com>
8303
8304 * impunit.adb: Add Ada.Execution_Time.Interrupts in the Ada2012 package
8305 list.
8306 * a-extiin.ads: New file.
8307
8308 2011-08-02 Bob Duff <duff@adacore.com>
8309
8310 * a-direct.adb (Rename): Implement AI05-0231-1. In particular, Rename
8311 now raises Name_Error instead of Use_Error in certain cases. The other
8312 parts of this AI were already implemented properly.
8313
8314 2011-08-02 Vincent Celier <celier@adacore.com>
8315
8316 * link.c: Only import "auto-host.h" when building the gnattools.
8317
8318 2011-08-02 Yannick Moy <moy@adacore.com>
8319
8320 * sem_util.adb: Inter-unit inlining does not work for a subprogram
8321 which calls a local subprogram, so extract subprogram
8322 from Mark_Non_ALFA_Subprogram_Body.
8323
8324 2011-08-02 Javier Miranda <miranda@adacore.com>
8325
8326 * exp_ch9.adb
8327 (Extract_Dispatching_Call): If the type of the dispatching object is an
8328 access type then return an explicit dereference in the Object out-mode
8329 parameter.
8330
8331 2011-08-02 Gary Dismukes <dismukes@adacore.com>
8332
8333 * sem_ch3.adb (Analyze_Subtype_Declaration): Generate range
8334 compatibility checks for all indexes of an array subtype, not just the
8335 first. Reset Has_Dynamic_Range_Check on the subtype before each
8336 potential check to ensure that Insert_Range_Checks will not elide any
8337 of the dynamic checks.
8338
8339 2011-08-02 Yannick Moy <moy@adacore.com>
8340
8341 * par-prag.ad (Process_Restrictions_Or_Restriction_Warnings): recognize
8342 SPARK restriction at parsing time.
8343 * scng.adb (Scan): Generate a token Tok_SPARK_Hide for a SPARK HIDE
8344 directive only if the SPARK restriction is set for this unit.
8345
8346 2011-08-02 Yannick Moy <moy@adacore.com>
8347
8348 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb, sem_util.ads,
8349 sem_res.adb, sem_ch2.adb, sem_ch4.adb, sem_ch6.adb,
8350 sem_ch11.adb: Protect call to Current_Subprogram which might be costly
8351 when repeated. Rename Current_Subprogram_Is_Not_In_ALFA into
8352 Mark_Non_ALFA_Subprogram_Body.
8353 Split body of Mark_Non_ALFA_Subprogram_Body to get body small and
8354 inlined.
8355
8356 2011-08-02 Yannick Moy <moy@adacore.com>
8357
8358 * sem_res.adb: Protect calls to Matching_Static_Array_Bounds which
8359 might be costly.
8360
8361 2011-08-02 Robert Dewar <dewar@adacore.com>
8362
8363 * exp_ch9.adb, exp_sel.adb, restrict.ads, exp_disp.adb, erroutc.ads,
8364 exp_ch3.adb: Minor reformatting.
8365
8366 2011-08-02 Emmanuel Briot <briot@adacore.com>
8367
8368 * adaint.c (__gnat_locate_exec_on_path): only returns executable
8369 files, not any regular file.
8370 (__gnat_locate_file_with_predicate): new subprogram.
8371
8372 2011-08-02 Yannick Moy <moy@adacore.com>
8373
8374 * sinfo.adb, sinfo.ads: Restrict the use of flags
8375 Has_Dynamic_Length_Check and Has_Dynamic_Range_Check to expression
8376 nodes, plus N_Subtype_Declaration for the 2nd one.
8377
8378 2011-08-02 Sergey Rybin <rybin@adacore.com>
8379
8380 * gnat_rm.texi: Ramification of pragma Eliminate documentation
8381 - fix bugs in the description of Source_Trace;
8382 - get rid of UNIT_NAME;
8383
8384 2011-08-02 Javier Miranda <miranda@adacore.com>
8385
8386 * exp_ch9.adb
8387 (Build_Dispatching_Requeue): Adding support for VM targets
8388 since we cannot directly reference the Tag entity.
8389 * exp_sel.adb (Build_K): Adding support for VM targets.
8390 (Build_S_Assignment): Adding support for VM targets.
8391 * exp_disp.adb
8392 (Default_Prim_Op_Position): In VM targets do not restrict availability
8393 of predefined interface primitives to compiling in Ada 2005 mode.
8394 (Is_Predefined_Interface_Primitive): In VM targets this service is not
8395 restricted to compiling in Ada 2005 mode.
8396 (Make_VM_TSD): Generate code that declares and initializes the OSD
8397 record. Needed to support dispatching calls through synchronized
8398 interfaces.
8399 * exp_ch3.adb
8400 (Make_Predefined_Primitive_Specs): Enable generation of predefined
8401 primitives associated with synchronized interfaces.
8402 (Make_Predefined_Primitive_Bodies): Enable generation of predefined
8403 primitives associated with synchronized interfaces.
8404
8405 2011-08-02 Yannick Moy <moy@adacore.com>
8406
8407 * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of
8408 statements hidden in SPARK if preceded by the HIDE directive
8409 (Parse_Exception_Handlers): mark each exception handler in a sequence of
8410 exception handlers as hidden in SPARK if preceded by the HIDE directive
8411 * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK
8412 if starting with the HIDE directive
8413 * par-ch7.adb (P_Package): mark a package body hidden in SPARK if
8414 starting with the HIDE directive; mark the declarations in a private
8415 part as hidden in SPARK if the private part starts with the HIDE
8416 directive
8417 * restrict.adb, restrict.ads
8418 (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK
8419 (Is_In_Hidden_Part_In_SPARK): new function which returns whether its
8420 argument node belongs to a part which is hidden in SPARK
8421 (Check_SPARK_Restriction): do not issue violations on nodes in hidden
8422 parts in SPARK; protect the possibly costly call to
8423 Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on
8424 * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration
8425 * scng.adb (Accumulate_Token_Checksum_GNAT_6_3,
8426 Accumulate_Token_Checksum_GNAT_5_03): add case for new token
8427 Tok_SPARK_Hide.
8428 (Scan): recognize special comment starting with '#' and followed by
8429 SPARK keyword "hide" as a HIDE directive.
8430
8431 2011-08-02 Yannick Moy <moy@adacore.com>
8432
8433 * types.ads, erroutc.ads: Minor reformatting.
8434
8435 2011-08-02 Vincent Celier <celier@adacore.com>
8436
8437 * link.c: Add response file support for cross platforms.
8438
8439 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8440
8441 * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression
8442 in an association, set parent field of copy before partial analysis.
8443 * sem_res.adb (Resolve_Slice): create reference to itype only when
8444 expansion is enabled.
8445
8446 2011-08-02 Yannick Moy <moy@adacore.com>
8447
8448 * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set
8449 for new flag denoting which subprogram bodies are in ALFA
8450 * restrict.adb, sem_ch7.adb: Update comment
8451 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
8452 sem_ch9.adb, sem_res.adb: Add calls to
8453 Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs.
8454 * sem_ch6.adb (Analyze_Function_Return): add calls to
8455 Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the
8456 middle of the body, and extended return.
8457 (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument
8458 False when missing return.
8459 (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA
8460 to True for subprograms whose spec is in ALFA. Remove later on the flag
8461 on the entity used for a subprogram body when there exists a separate
8462 declaration.
8463 * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA):
8464 if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to
8465 False, otherwise do nothing.
8466
8467 2011-08-02 Robert Dewar <dewar@adacore.com>
8468
8469 * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
8470
8471 2011-08-02 Yannick Moy <moy@adacore.com>
8472
8473 * sem_ch4.ads: minor formatting.
8474
8475 2011-08-02 Yannick Moy <moy@adacore.com>
8476
8477 * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb,
8478 debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb,
8479 errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb,
8480 restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb,
8481 opt.ads: cleanup of SPARK mode
8482
8483 2011-08-02 Yannick Moy <moy@adacore.com>
8484
8485 * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard
8486 types.
8487 * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities
8488 (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA
8489 * sem_ch3.adb
8490 (Analyze_Object_Declaration): set Is_In_ALFA flag for objects
8491 (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes
8492 (Constrain_Integer): set Is_In_ALFA flag for integer subtypes
8493 (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration
8494 types.
8495 (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with
8496 non-static range.
8497 * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for
8498 functions whose return type is not in ALFA.
8499 (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram
8500 specifications.
8501 (Process_Formals): unset Is_In_ALFA flag for subprograms if a
8502 parameter's type is not in ALFA.
8503 * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard
8504 types are in ALFA.
8505
8506 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8507
8508 * sem_ch6 (Analyze_Expression_Function): treat the function as
8509 Inline_Always, and introduce a subprogram declaration for it when it is
8510 not a completion.
8511 * inline.adb (Add_Inlined_Body): recognize bodies that come from
8512 expression functions, so that the back-end can determine whether they
8513 can in fact be inlined.
8514 * sem_util.adb (Is_Expression_Function): predicate to determine whether
8515 a function body comes from an expression function.
8516
8517 2011-08-02 Gary Dismukes <dismukes@adacore.com>
8518
8519 * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming
8520 null exclusions to test Can_Never_Be_Null on the anonymous access types
8521 of the formals rather than testing the formals themselves. Exclude this
8522 check in cases where the Old_Formal is marked as a controlling formal,
8523 to avoid issuing spurious errors for bodies completing dispatching
8524 operations (due to the flag not getting set on controlling access
8525 formals in body specs).
8526 (Find_Corresponding_Spec): When checking full and subtype conformance of
8527 subprogram bodies in instances, pass Designated and E in that order, for
8528 consistency with the expected order of the formals (New_Id followed by
8529 Old_Id).
8530
8531 2011-08-02 Robert Dewar <dewar@adacore.com>
8532
8533 * sem_ch8.adb: Minor reformatting.
8534
8535 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8536
8537 * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure
8538 Check_Class_Wide_Actual, to implement AI05-0071, on defaulted
8539 primitive operations of class-wide actuals.
8540
8541 2011-08-02 Javier Miranda <miranda@adacore.com>
8542
8543 * exp_atag.ads, exp_atag.adb
8544 (Build_Common_Dispatching_Select_Statements): Remove argument Loc
8545 since its value is implicitly passed in argument Typ.
8546 * exp_disp.adb (Make_Disp_Conditional_Select_Body,
8547 Make_Disp_Timed_Select_Body): Remove Loc in calls to routine
8548 Build_Common_Dispatching_Select_Statements.
8549
8550 2011-08-02 Robert Dewar <dewar@adacore.com>
8551
8552 * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads,
8553 exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments.
8554 Minor reformatting.
8555
8556 2011-08-02 Robert Dewar <dewar@adacore.com>
8557
8558 * sem_res.adb: Minor reformatting.
8559 * sem_prag.adb: Minor reformatting.
8560
8561 2011-08-02 Javier Miranda <miranda@adacore.com>
8562
8563 * exp_atag.adb, exp_atags.ads
8564 (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr
8565 by the tagged type Entity. Required to use this routine in the VM
8566 targets since we do not have available the Tag entity in the VM
8567 platforms.
8568 * exp_ch6.adb
8569 (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package
8570 Ada.Tags has not been previously loaded.
8571 * exp_ch7.adb
8572 (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke
8573 Build_VM_TSDs if package Ada.Tags has not been previously loaded.
8574 * sem_aux.adb
8575 (Enclosing_Dynamic_Scope): Add missing support to handle the full
8576 view of enclosing scopes. Required to handle enclosing scopes that
8577 are synchronized types whose full view is a task type.
8578 * exp_disp.adb
8579 (Build_VM_TSDs): Minor code improvement to avoid generating and
8580 analyzing lists with empty nodes.
8581 (Make_Disp_Asynchronous_Select_Body): Add support for VM targets.
8582 (Make_Disp_Conditional_Select_Body): Add support for VM targets.
8583 (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets.
8584 (Make_Disp_Timed_Select_Body): Add support for VM targets.
8585 (Make_Select_Specific_Data_Table): Add support for VM targets.
8586 (Make_VM_TSD): Generate code to initialize the SSD structure of
8587 the TSD.
8588
8589 2011-08-02 Yannick Moy <moy@adacore.com>
8590
8591 * lib-writ.adb (Write_ALI): when ALFA mode is set, write local
8592 cross-references section in ALI.
8593 * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub
8594 (enclosing subprogram), Slc (location of Sub) and Sun (unit number of
8595 Sub).
8596 (Enclosing_Subprogram_Or_Package): new function to return the enclosing
8597 subprogram or package entity of a node
8598 (Is_Local_Reference_Type): new function returns True for references
8599 selected in local cross-references.
8600 (Lt): function extracted from Lt in Output_References
8601 (Write_Entity_Name): function extracted from Output_References
8602 (Generate_Definition): generate reference with type 'D' for definition
8603 of objects (object declaration and parameter specification), with
8604 appropriate locations and units, for use in local cross-references.
8605 (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created
8606 references of type 'I' for initialization in object definition.
8607 (Output_References): move part of function Lt and procedure
8608 Write_Entity_Name outside of the body. Ignore references of types 'D'
8609 and 'I' introduced for local cross-references.
8610 (Output_Local_References): new procedure to output the local
8611 cross-references sections.
8612 (Lref_Entity_Status): new array defining whether an entity is a local
8613 * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference
8614 with 'I' type when initialization expression is present.
8615 * get_scos.adb, get_scos.ads: Correct comments and typos
8616
8617 2011-08-02 Javier Miranda <miranda@adacore.com>
8618
8619 * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in
8620 the JVM target.
8621 * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in
8622 the JVM target.
8623 * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no
8624 TSD support.
8625
8626 2011-08-02 Vincent Celier <celier@adacore.com>
8627
8628 * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line
8629 (No_Space_Img): New function
8630 (Find_Excluded_Sources): When reading from a file, record the file name
8631 and the line number for each excluded source.
8632 (Mark_Excluded_Sources): When reporting an error, if the excluded
8633 sources were read from a file, include file name and line number in
8634 the error message.
8635
8636 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8637
8638 * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2).
8639
8640 2011-08-02 Robert Dewar <dewar@adacore.com>
8641
8642 * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting
8643
8644 2011-08-02 Javier Miranda <miranda@adacore.com>
8645
8646 * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
8647 generation of TSDs to the DOTNET compiler.
8648 * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
8649 generation of TSDs to the DOTNET compiler.
8650
8651 2011-08-02 Javier Miranda <miranda@adacore.com>
8652
8653 * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
8654 record of all the tagged types declared inside library level package
8655 declarations, library level package bodies or library level subprograms.
8656 * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD
8657 associated with a given tagged type.
8658 (Build_VM_TSDs): New subprogram.
8659 * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main
8660 compilation units that are subprograms.
8661 * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main
8662 compilation units that are package bodies.
8663 (Expand_N_Package_Declaration): Generate TSDs of the main compilation
8664 units that are a package declaration or a package instantiation.
8665 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code
8666 reorganization to improve the error generated by the frontend when the
8667 function Ada.Tags.Secondary_Tag is not available.
8668 * rtsfind.ads (RE_Register_TSD): New runtime entity.
8669 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup.
8670
8671 2011-08-02 Javier Miranda <miranda@adacore.com>
8672
8673 * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode.
8674
8675 2011-08-02 Robert Dewar <dewar@adacore.com>
8676
8677 * s-imenne.ads: Minor reformatting.
8678
8679 2011-08-02 Robert Dewar <dewar@adacore.com>
8680
8681 * a-stunau.ads: Add pragma Suppress_Initialization for Big_String
8682 * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed
8683 * s-stalib.ads: Add pragma Suppress_Initialization for Big_String
8684
8685 2011-08-02 Robert Dewar <dewar@adacore.com>
8686
8687 * einfo.ads (Materialize_Entity): Document this is only for renamings
8688 * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate
8689 required debug information in the case where we transform the object
8690 declaration into a renaming declaration.
8691 * exp_ch4.adb (Expand_Concatenate): Generate debug info for result
8692 object
8693 * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of
8694 Materialize_Entity.
8695
8696 2011-08-02 Robert Dewar <dewar@adacore.com>
8697
8698 * einfo.ads, einfo.adb (Suppress_Initialization): Replaces
8699 Suppress_Init_Procs.
8700 * exp_ch3.adb, exp_disp.adb, freeze.adb: Use
8701 Suppress_Initialization/Initialization_Suppressed.
8702 * gnat_rm.texi: New documentation for pragma Suppress_Initialization
8703 * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function
8704 * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed
8705 * sem_prag.adb: New processing for pragma Suppress_Initialization.
8706
8707 2011-08-02 Robert Dewar <dewar@adacore.com>
8708
8709 * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb:
8710 Minor reformatting.
8711
8712 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8713
8714 * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can
8715 only have inheritable classwide pre/postconditions.
8716
8717 2011-08-02 Javier Miranda <miranda@adacore.com>
8718
8719 * a-tags.ads, a-tags.adb (Check_TSD): New subprogram.
8720 * rtsfind.ads (RE_Check_TSD): New runtime entity.
8721 * exp_disp.adb (Make_DT): Generate call to the new runtime routine that
8722 checks if the external tag of a type is the same as the external tag
8723 of some other declaration.
8724
8725 2011-08-02 Thomas Quinot <quinot@adacore.com>
8726
8727 * s-taskin.ads: Minor reformatting.
8728
8729 2011-08-02 Emmanuel Briot <briot@adacore.com>
8730
8731 * g-comlin.adb (Display_Help): swap the order in which it prints the
8732 short help and the general usage.
8733
8734 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8735
8736 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly
8737 the aspect declarations and attach them to the generic copy for
8738 subsequent analysis.
8739 (Analyze_Subprogram_Instantiation): copy explicitly the aspect
8740 declarations of the generic tree to the new subprogram declarations.
8741 * sem_attr.adb (Check_Precondition_Postcondition): recognize
8742 conditions that apply to a subprogram instance.
8743
8744 2011-08-02 Robert Dewar <dewar@adacore.com>
8745
8746 * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project].
8747
8748 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8749
8750 * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged
8751 private type with a tagged full view is not derived in the immediate
8752 scope of the partial view, (RM 7.3 (7)) use the scope of the base type.
8753
8754 2011-08-02 Robert Dewar <dewar@adacore.com>
8755
8756 * exp_ch4.adb: Minor reformatting.
8757
8758 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8759
8760 * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an
8761 Ada2012 iterator, the loop will be rewritten during expansion into a
8762 while loop with a cursor and an element declaration. Do not analyze the
8763 body in this case, because if the container is for indefinite types the
8764 actual subtype of the elements will only be determined when the cursor
8765 declaration is analyzed.
8766
8767 2011-08-02 Arnaud Charlet <charlet@adacore.com>
8768
8769 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore
8770 size/alignment related attributes in CodePeer_Mode.
8771
8772 2011-08-02 Gary Dismukes <dismukes@adacore.com>
8773
8774 * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to
8775 Prepend_Element, since this can result in the operation getting the
8776 wrong slot in the full type's dispatch table if the full type has
8777 inherited operations. The incomplete type's operation will get added
8778 to the proper position in the full type's primitives
8779 list later in Sem_Disp.Check_Operation_From_Incomplete_Type.
8780 (Process_Incomplete_Dependents): Add Is_Primitive test when checking for
8781 dispatching operations, since there are cases where nonprimitive
8782 subprograms can get added to the list of incomplete dependents (such
8783 as subprograms in nested packages).
8784 * sem_ch6.adb (Process_Formals): First, remove test for being in a
8785 private part when determining whether to add a primitive with a
8786 parameter of a tagged incomplete type to the Private_Dependents list.
8787 Such primitives can also occur in the visible part, and should not have
8788 been excluded from being private dependents.
8789 * sem_ch7.adb (Uninstall_Declarations): When checking the rule of
8790 RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents
8791 list of a Taft-amendment incomplete type is a primitive before issuing
8792 an error that the full type must appear in the same unit. There are
8793 cases where nonprimitives can be in the list (such as subprograms in
8794 nested packages).
8795 * sem_disp.adb (Derives_From): Use correct condition for checking that
8796 a formal's type is derived from the type of the corresponding formal in
8797 the parent subprogram (the condition was completely wrong). Add
8798 checking that was missing for controlling result types being derived
8799 from the result type of the parent operation.
8800
8801 2011-08-02 Yannick Moy <moy@adacore.com>
8802
8803 * errout.adb (First_Node): minor renaming
8804 * restrict.adb (Check_Formal_Restriction): put restriction warning on
8805 first node.
8806
8807 2011-08-02 Yannick Moy <moy@adacore.com>
8808
8809 * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator
8810 before accessing operands.
8811 * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to
8812 decide whether an initialization expression respects SPARK rules, as
8813 the plain node is the expanded one. This allows for more valid warnings
8814 to be issued.
8815 * gnat_rm.texi: Minor update.
8816
8817 2011-08-02 Arnaud Charlet <charlet@adacore.com>
8818
8819 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert
8820 previous change.
8821
8822 2011-08-02 Robert Dewar <dewar@adacore.com>
8823
8824 * sem_ch3.adb, sem_ch4.adb: Minor reformatting.
8825
8826 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
8827
8828 * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original
8829 loop statements and the element renaming declaration with a block when
8830 the element type is controlled.
8831
8832 2011-08-02 Yannick Moy <moy@adacore.com>
8833
8834 * sinfo.ads: Minor formatting.
8835
8836 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8837
8838 * sem_aggr.adb (Add_Association): if the association has a box and no
8839 expression, use the Sloc of the aggregate itself for the new
8840 association.
8841 * errout.adb (First_Node): Exclude nodes with no Sloc, and always use
8842 the Original_Node.
8843
8844 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
8845
8846 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring.
8847 When a container is provided via a function call, generate a renaming
8848 of the function result. This avoids the creation of a transient scope
8849 and the premature finalization of the container.
8850 * exp_ch7.adb (Is_Container_Cursor): Removed.
8851 (Wrap_Transient_Declaration): Remove the supression of the finalization
8852 of the list controller when the declaration denotes a container cursor,
8853 it is not needed.
8854
8855 2011-08-02 Yannick Moy <moy@adacore.com>
8856
8857 * restrict.adb (Check_Formal_Restriction): only issue a warning if the
8858 node is from source, instead of the original node being from source.
8859 * sem_aggr.adb
8860 (Resolve_Array_Aggregate): refine the check for a static expression, to
8861 recognize also static ranges
8862 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration,
8863 Array_Type_Declaration): postpone the test for the type being a subtype
8864 mark after the type has been resolved, so that component-selection and
8865 expanded-name are discriminated.
8866 (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm
8867 to distinguish the case of an iteration scheme, so that an error is
8868 issed on a non-static range in SPARK except in an iteration scheme.
8869 * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with
8870 In_Iter_Schm = True.
8871 * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for
8872 user-defined operators so that they are allowed in renaming
8873 * sem_ch8.adb
8874 (Find_Selected_Component): refine the check for prefixing of operators
8875 so that they are allowed in renaming. Move the checks for restrictions
8876 on selector name after analysis discriminated between
8877 component-selection and expanded-name.
8878 * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on
8879 concatenation argument of string type if it is static.
8880 * sem_util.adb, sem_util.ads
8881 (Check_Later_Vs_Basic_Declarations): add a new function
8882 Is_Later_Declarative_Item to decice which declarations are allowed as
8883 later items, in the two different modes Ada 83 and SPARK. In the SPARK
8884 mode, add that renamings are considered as later items.
8885 (Enclosing_Package): new function to return the enclosing package
8886 (Enter_Name): correct the rule for homonyms in SPARK
8887 (Is_SPARK_Initialization_Expr): default to returning True on nodes not
8888 from source (result of expansion) to avoid issuing wrong warnings.
8889
8890 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8891
8892 * errout.adb: On anything but an expression First_Node returns its
8893 argument.
8894
8895 2011-08-02 Pascal Obry <obry@adacore.com>
8896
8897 * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting.
8898
8899 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
8900
8901 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization.
8902 Set the associated loop as the related expression of internally
8903 generated cursors.
8904 * exp_ch7.adb (Is_Container_Cursor): New routine.
8905 (Wrap_Transient_Declaration): Supress the finalization of the list
8906 controller when the declaration denotes a container cursor.
8907
8908 2011-08-02 Yannick Moy <moy@adacore.com>
8909
8910 * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through
8911 command line now.
8912 * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the
8913 expression is a simple expression. This check cannot be performed in
8914 the semantics, so just drop it.
8915 (P_Index_Or_Discriminant_Constraint): move check that the index or
8916 discriminant is a subtype mark to Analyze_Subtype_Declaration in the
8917 semantics. Other cases were previously checked in the semantics.
8918 * par-ch4.adb (P_Name): move checks that a selector name is not
8919 character literal or an operator symbol to Find_Selected_Component in
8920 the semantics
8921 * par-ch5.adb (Parse_Decls_Begin_End): move check that basic
8922 declarations are not placed after later declarations in a separate
8923 procedure in Sem_Util (possibly not the best choice?), to be used both
8924 during parsing, for Ada 83 mode, and during semantic analysis, for
8925 SPARK mode.
8926 * par-endh.adb (Check_End): move check that end label is not missing
8927 to Process_End_Label in the semantics
8928 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove
8929 the special case for SPARK restriction
8930 * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End
8931 * restrict.adb, restrict.ads (Check_Formal_Restriction): add a
8932 parameter Force to issue the error message even on internal node (used
8933 for generated end label). Call Check_Restriction to check when an error
8934 must be issued. In SPARK mode, issue an error message even if the
8935 restriction is not set.
8936 (Check_Restriction): new procedure with an additional out parameter to
8937 inform the caller that a message has been issued
8938 * sem_aggr.adb: Minor modification of message
8939 * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction
8940 instead of issuing an error message directly
8941 * sem_ch3.adb (Analyze_Declarations): move here the check that basic
8942 declarations are not placed after later declarations, by calling
8943 Check_Later_Vs_Basic_Declarations
8944 (Analyze_Subtype_Declaration): move here the check that an index or
8945 discriminant constraint must be a subtype mark. Change the check that
8946 a subtype of String must start at one so that it works on subtype marks.
8947 * sem_ch4.adb (Analyze_Call): move here the check that a named
8948 association cannot follow a positional one in a call
8949 * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction
8950 instead of issuing an error message directly
8951 * sem_ch8.adb (Find_Selected_Component): move here the check that a
8952 selector name is not a character literal or an operator symbol. Move
8953 here the check that the prefix of an expanded name cannot be a
8954 subprogram or a loop statement.
8955 * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new
8956 procedure called from parsing and semantics to check that basic
8957 declarations are not placed after later declarations
8958 (Process_End_Label): move here the check that end label is not missing
8959
8960 2011-08-02 Arnaud Charlet <charlet@adacore.com>
8961
8962 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum
8963 representation clause in codepeer mode, since it confuses CodePeer and
8964 does not bring useful info.
8965
8966 2011-08-02 Ed Falis <falis@adacore.com>
8967
8968 * init.c: initialize fp hw on MILS.
8969
8970 2011-08-02 Ed Schonberg <schonberg@adacore.com>
8971
8972 * errout.adb (First_Node): for bodies, return the node itself (small
8973 optimization). For other nodes, do not check source_unit if the node
8974 comes from Standard.
8975
8976 2011-08-02 Robert Dewar <dewar@adacore.com>
8977
8978 * exp_ch3.adb: Minor comment additions.
8979 * sem_ch13.adb: Minor reformatting.
8980
8981 2011-08-02 Pascal Obry <obry@adacore.com>
8982
8983 * make.adb, makeutl.adb: Removes some superfluous directory separator.
8984
8985 2011-08-02 Robert Dewar <dewar@adacore.com>
8986
8987 * sem_attr.adb: Minor reformatting.
8988
8989 2011-08-02 Robert Dewar <dewar@adacore.com>
8990
8991 * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value
8992 (Has_Default_Component_Value): Removed
8993 * einfo.ads Comment updates
8994 (Has_Default_Aspect): Replaces Has_Default_Value
8995 (Has_Default_Component_Value): Removed
8996 * exp_ch13.adb
8997 (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects
8998 * exp_ch3.adb
8999 (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects
9000 (Get_Simple_Init_Val): Handle Default_Value aspect
9001 (Needs_Simple_Initialization): Handle Default_Value aspect
9002 * exp_ch3.ads: Needs_Simple_Initialization
9003 * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect
9004 * par-prag.adb (Pragma_Default[_Component]Value) Removed
9005 * sem_ch13.adb
9006 (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects
9007 * sem_prag.adb (Pragma_Default[_Component]Value) Removed
9008 * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed
9009
9010 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9011
9012 * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate
9013 package containing iteration primitives.
9014 exp_ch5.adb (Expand_Iterator_Loop): ditto.
9015
9016 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9017
9018 * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with
9019 "of", pre-analyze expression in case it is a function call with
9020 finalization actions that must be placed ahead of the loop.
9021 * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present
9022 on an Ada2012 iterator, insert them ahead of the rewritten loop.
9023
9024 2011-08-02 Geert Bosch <bosch@adacore.com>
9025
9026 * cstand.adb (Create_Float_Types): Only consider C's long double for
9027 Long_Long_Float, in addition to double.
9028
9029 2011-08-02 Robert Dewar <dewar@adacore.com>
9030
9031 * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads,
9032 sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads,
9033 prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb:
9034 Minor reformatting.
9035
9036 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9037
9038 * sem_attr.adb: handle properly 'Result when it is a prefix of an
9039 indexed component.
9040
9041 2011-08-02 Javier Miranda <miranda@adacore.com>
9042
9043 * einfo.ads, einfo.adb
9044 (Original_Access_Type): Move this attribute to Node26 since there was
9045 an undocumented use of Node21 in E_Access_Subprogram_Type entities
9046 which causes conflicts and breaks the generation of the .NET compiler.
9047 (Interface_Name): Add missing documentation on JGNAT only uses of
9048 this attribute.
9049
9050 2011-08-02 Geert Bosch <bosch@adacore.com>
9051
9052 * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist
9053 (Find_Back_End_Float_Type): Likewise
9054 (Create_Back_End_Float_Types): Likewise
9055 (Create_Float_Types): Likewise
9056 (Register_Float_Type): Likewise
9057 * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of
9058 Nlist and split out type selection in new local Find_Base_Type function.
9059 * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of
9060 Nlist
9061 * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist
9062
9063 2011-08-02 Robert Dewar <dewar@adacore.com>
9064
9065 * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in
9066 alpha order).
9067 * opt.ads: Minor comment change.
9068 * sem_ch12.adb: Minor code reorganization.
9069
9070 2011-08-02 Gary Dismukes <dismukes@adacore.com>
9071
9072 * sem_ch3.adb (Complete_Private_Subtype): Don't append the private
9073 subtype's list of rep items to the list on the full subtype in the case
9074 where the lists are the same.
9075
9076 2011-08-02 Geert Bosch <bosch@adacore.com>
9077
9078 * switch-c.adb (Free): New deallocation procedure to avoid implicitly
9079 using the one from System.Strings, which also deallocates all strings.
9080
9081 2011-08-02 Geert Bosch <bosch@adacore.com>
9082
9083 * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New
9084 function.
9085 * gcc-interface/Make-lang.in: Update dependencies.
9086
9087 2011-08-02 Olivier Hainque <hainque@adacore.com>
9088
9089 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function
9090 end_locus.
9091
9092 2011-08-02 Javier Miranda <miranda@adacore.com>
9093
9094 * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals
9095 associated with anonymous access to subprograms.
9096
9097 2011-08-02 Geert Bosch <bosch@adacore.com>
9098
9099 * opt.ads
9100 (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions.
9101 (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition.
9102 * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads
9103 (Add_Symbol_Definition): Move to switch-c.adb
9104 (Process_Command_Line_Symbol_Definitions): Adjust references to above.
9105 * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation.
9106 (Add_Symbol_Definition): Move to switch-c.adb.
9107 * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw.
9108 * sem_warn.adb
9109 (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
9110 Move to warnsw.adb.
9111 * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size,
9112 Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
9113 Move to warnsw.adb.
9114 * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw.
9115 (Add_Symbol_Definition): Moved from Prepcomp.
9116 * switch-c.ads: Update copyright notice. Use String_List instead of
9117 Argument_List, removing dependency on System.OS_Lib.
9118
9119 2011-08-02 Yannick Moy <moy@adacore.com>
9120
9121 * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal
9122 mode on initialization expression which does not respect SPARK
9123 restrictions.
9124 * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines
9125 if the tree referenced by its argument represents an initialization
9126 expression in SPARK, suitable for initializing an object in an object
9127 declaration.
9128
9129 2011-08-02 Javier Miranda <miranda@adacore.com>
9130
9131 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the
9132 internally generated access to subprogram with its associated protected
9133 subprogram type.
9134 * einfo.ads, einfo.adb (Original_Access_Type): New attribute.
9135
9136 2011-08-02 Geert Bosch <bosch@adacore.com>
9137
9138 * cstand.adb (Register_Float_Type): Print information about type to
9139 register, if the Debug_Flag_Dot_B is set.
9140 * debug.adb (Debug_Flag_Dot_B): Document d.b debug option.
9141 * rtsfind.ads (RE_Max_Base_Digits): New run time entity.
9142 * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations
9143 with a requested precision of more than Max_Digits digits and no more
9144 than Max_Base_Digits digits, if a range specification is present and the
9145 Predefined_Float_Types list has a suitable type to derive from.
9146 * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the
9147 case of type completion with pragma Import
9148 * sem_prag.adb
9149 (Process_Import_Predefined_Type): Processing to complete a type
9150 with pragma Import. Currently supports floating point types only.
9151 (Set_Convention_From_Pragma): Do nothing without underlying type.
9152 (Process_Convention): Guard against absence of underlying type,
9153 which may happen when importing incomplete types.
9154 (Process_Import_Or_Interface): Handle case of importing predefined
9155 types. Tweak error message.
9156
9157 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9158
9159 * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined
9160 functions to previous change. Reorganize code slightly.
9161
9162 2011-08-02 Geert Bosch <bosch@adacore.com>
9163
9164 * back_end.ads (Register_Type_Proc): New call back procedure type for
9165 allowing the back end to provide information about available types.
9166 (Register_Back_End_Types): New procedure to register back end types.
9167 * back_end.adb (Register_Back_End_Types): Call the back end to enumerate
9168 available types.
9169 * cstand.adb (Back_End_Float_Types): New list for floating point types
9170 supported by the back end.
9171 (Build_Float_Type): Add extra parameter for Float_Rep_Kind.
9172 (Copy_Float_Type): New procedure to make new copies of predefined types.
9173 (Register_Float_Type): New call back procedure to populate the BEFT list
9174 (Find_Back_End_Float_Type): New procedure to find a BEFT by name
9175 (Create_Back_End_Float_Types): New procedure to populate the BEFT list.
9176 (Create_Float_Types): New procedure to create entities for floating
9177 point types predefined in Standard, and put these and any remaining
9178 BEFTs on the Predefined_Float_Types list.
9179 * stand.ads (Predefined_Float_Types): New list for predefined floating
9180 point types that do not have declarations in package Standard.
9181
9182 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9183
9184 * inline.adb (Get_Code_Unit_Entity): New local function. Returns the
9185 entity node for the unit containing the parameter.
9186 (Add_Inlined_Body): Use it to find the unit containing the subprogram.
9187 (Add_Inlined_Subprogram): Likewise.
9188 * gcc-interface/Make-lang.in: Update dependencies.
9189
9190 2011-08-02 Thomas Quinot <quinot@adacore.com>
9191
9192 * s-stusta.adb (Print): Make sure Pos is always initialized to a
9193 suitable value.
9194
9195 2011-08-02 Geert Bosch <bosch@adacore.com>
9196
9197 * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image.
9198
9199 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9200
9201 * sem_type.adb (Covers): Move trivial case to the top and reuse the
9202 computed value of Base_Type.
9203
9204 2011-08-02 Yannick Moy <moy@adacore.com>
9205
9206 * restrict.adb (Check_Restriction): issue an error for any use of
9207 class-wide, even if the No_Dispatch restriction is not set.
9208 * sem_aggr.adb: Correct typos in comments and messages in formal mode
9209 * sem_ch3.adb (Process_Full_View): issue an error in formal mode is,
9210 when completing a private extension, the type named in the private part
9211 is not the same as that named in the visible part.
9212 * sem_res.adb (Resolve_Call): issue an error in formal mode on the use
9213 of an inherited primitive operations of a tagged type or type extension
9214 that returns the tagged type.
9215 * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new
9216 function which returns True for an implicit operation inherited by the
9217 derived type declaration for the argument type.
9218 (Is_SPARK_Object_Reference): move to appropriate place in alphabetic
9219 order.
9220
9221 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9222
9223 * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from
9224 Process_Bounds, to perform analysis with expansion of a range or an
9225 expression that is the iteration scheme for a loop.
9226 (Analyze_Iterator_Specification): If domain of iteration is given by a
9227 function call with a controlled result, as is the case if call returns
9228 a predefined container, ensure that finalization actions are properly
9229 generated.
9230 * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range.
9231
9232 2011-08-02 Javier Miranda <miranda@adacore.com>
9233
9234 * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo.
9235 * gcc-interface/Make-lang.in: Update dependencies.
9236
9237 2011-08-02 Javier Miranda <miranda@adacore.com>
9238
9239 * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to
9240 determine if the analysis is performed using N or Original_Node (N).
9241 * exp_util.adb (Side_Effect_Free): Code cleanup since the new
9242 functionality of routine Is_Variable avoids code duplication.
9243 * checks.adb (Determine_Range): Handle temporaries generated by
9244 Remove_Side_Effects.
9245
9246 2011-08-02 Javier Miranda <miranda@adacore.com>
9247
9248 * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and
9249 expansion of the condition. Required since the previous analysis was
9250 done with expansion disabled (see Resolve_Quantified_Expression) and
9251 hence checks were not inserted and record comparisons have not been
9252 expanded.
9253
9254 2011-08-02 Ed Falis <falis@adacore.com>
9255
9256 * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads:
9257 Update header.
9258
9259 2011-08-02 Bob Duff <duff@adacore.com>
9260
9261 * opt.ads: Minor comment fix.
9262
9263 2011-08-02 Bob Duff <duff@adacore.com>
9264
9265 * sem_ch12.adb (Analyze_Package_Instantiation,
9266 Analyze_Subprogram_Instantiation): Turn off style checking while
9267 analyzing an instance. Whatever style checks that apply to the generic
9268 unit should apply, so it makes no sense to apply them in an instance.
9269 This was causing trouble when compiling an instance of a runtime
9270 unit that violates the -gnatyO switch.
9271 * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from
9272 one of the two case statements, causing spurious errors.
9273
9274 2011-08-02 Robert Dewar <dewar@adacore.com>
9275
9276 * uname.adb: Minor reformatting.
9277 * gnatcmd.adb: Minor reformatting.
9278 * exp_attr.adb: Minor reformatting.
9279
9280 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9281
9282 * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction
9283 No_Dispatching_Calls, do not look for the Assign primitive, because
9284 predefined primitives are not created in this case.
9285
9286 2011-08-02 Bob Duff <duff@adacore.com>
9287
9288 * stylesw.ads: Minor comment fixes.
9289
9290 2011-08-02 Robert Dewar <dewar@adacore.com>
9291
9292 * freeze.adb (Add_To_Result): New procedure.
9293
9294 2011-08-02 Jose Ruiz <ruiz@adacore.com>
9295
9296 * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run
9297 time, if the specific run-time routines for handling streams of strings
9298 are not available, use the default mechanism.
9299
9300 2011-08-02 Arnaud Charlet <charlet@adacore.com>
9301
9302 * s-regpat.ads: Fix typo.
9303
9304 2011-08-02 Vincent Celier <celier@adacore.com>
9305
9306 * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is
9307 not null, call it to create the in memory config project file without
9308 parsing an existing default config project file.
9309
9310 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9311
9312 * atree.adb (Allocate_Initialize_Node): Remove useless temporaries.
9313
9314 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9315
9316 * sem_elim.adb: an abstract subprogram does not need an eliminate
9317 pragma for its descendant to be eliminable.
9318
9319 2011-08-02 Ed Falis <falis@adacore.com>
9320
9321 * init.c: revert to handling before previous checkin for VxWorks
9322 * s-intman-vxworks.adb: delete unnecessary declarations related to
9323 using Ada interrupt facilities for handling signals.
9324 Delete Initialize_Interrupts. Use __gnat_install_handler instead.
9325 * s-intman-vxworks.ads: Import __gnat_install_handler as
9326 Initialize_Interrupts.
9327 * s-taprop-vxworks.adb: Delete Signal_Mask.
9328 (Abort_Handler): change construction of mask to unblock exception
9329 signals.
9330
9331 2011-08-02 Jerome Guitton <guitton@adacore.com>
9332
9333 * a-except-2005.adb (Raise_From_Signal_Handler): Call
9334 Debug_Raise_Exception before propagation starts.
9335
9336 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9337
9338 * exp_ch6.adb (Expand_Call): Guard restriction checks with a call
9339 to Restriction_Check_Required.
9340 * sem_ch3.adb (Analyze_Object_Declaration): Likewise.
9341 * sem_res.adb (Resolve_Call): Likewise.
9342 * sem_attr.adb (Check_Stream_Attribute): Likewise.
9343
9344 2011-08-02 Bob Duff <duff@adacore.com>
9345
9346 * stylesw.ads: Update comment.
9347 * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
9348 * errout.ads: Remove obsolete comment.
9349
9350 2011-08-02 Javier Miranda <miranda@adacore.com>
9351
9352 * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
9353 (Set_Is_Safe_To_Reevaluate): new procedure.
9354 * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
9355 assignment is allowed on safe-to-reevaluate variables.
9356 (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
9357 temporary created to remove side effects in expressions that use
9358 the secondary stack as safe-to-reevaluate.
9359 * exp_util.adb (Side_Effect_Free): Add missing code to handle well
9360 variables that are not true constants.
9361
9362 2011-08-02 Robert Dewar <dewar@adacore.com>
9363
9364 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
9365 sem_res.adb, sem_ch6.adb: Minor reformatting.
9366
9367 2011-08-02 Jerome Guitton <guitton@adacore.com>
9368
9369 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
9370
9371 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9372
9373 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
9374 not set Overridden_Operation if subprogram is an initialization
9375 procedure.
9376
9377 2011-08-02 Yannick Moy <moy@adacore.com>
9378
9379 * par-ch6.adb: Correct obsolete name in comments
9380 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
9381 which takes two message arguments (existing function takes one), with
9382 second message used for continuation.
9383 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
9384 block statements that originate from a source block statement, not
9385 generated block statements
9386 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
9387 symmetry with procedure case
9388 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
9389 function to issue an error in formal mode if a package specification
9390 contains more than one tagged type or type extension.
9391 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
9392 parameters matching formals of tagged types are objects (or ancestor
9393 type conversions of objects), not general expressions. Issue an error
9394 on view conversions that are not involving ancestor conversion of an
9395 extended type.
9396 (Resolve_Type_Conversion): in formal mode, issue an error on the
9397 operand of an ancestor type conversion which is not an object
9398 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
9399 procedure so that it works also for actuals of function calls
9400 (Is_Actual_Tagged_Parameter): new function which determines if its
9401 argument is an actual parameter of a formal of tagged type in a
9402 subprogram call
9403 (Is_SPARK_Object_Reference): new function which determines if the tree
9404 referenced by its argument represents an object in SPARK
9405
9406 2011-08-02 Robert Dewar <dewar@adacore.com>
9407
9408 * sem_ch3.adb: Minor reformatting
9409 Minor comment addition
9410 Minor error msg text change
9411
9412 2011-08-02 Javier Miranda <miranda@adacore.com>
9413
9414 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
9415 function. Used to be more precise when we generate a variable plus one
9416 assignment to remove side effects in the evaluation of the Bound
9417 expressions.
9418 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
9419 of the bound expression to force its re-analysis and thus expand the
9420 associated transient scope (if required). Code cleanup replacing the
9421 previous code that declared the constant entity by an invocation to
9422 routine Force_Evaluation which centralizes this work in the frontend.
9423
9424 2011-08-02 Robert Dewar <dewar@adacore.com>
9425
9426 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
9427 (Base_Type): Now uses improved Is_Base_Type function
9428 * einfo.ads (Base_Type): Inline this function
9429
9430 2011-08-02 Robert Dewar <dewar@adacore.com>
9431
9432 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
9433 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
9434
9435 2011-08-02 Arnaud Charlet <charlet@adacore.com>
9436
9437 * gcc-interface/Make-lang.in: Update dependencies.
9438 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
9439 targets.
9440
9441 2011-08-02 Yannick Moy <moy@adacore.com>
9442
9443 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
9444 non-simple expression used in delta constraint
9445 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
9446 index constraint which is not a subtype mark
9447 * par.adb: With and use Restrict
9448 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
9449 mode on component type which is not a subtype mark and default
9450 expression on component
9451 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
9452 of string which does not have a lower index bound equal to 1
9453 (Array_Type_Declaration): issue an error in formal mode on index or
9454 component type which is not a subtype mark, and on aliased keyword on
9455 component
9456 (Derived_Type_Declaration): issue an error in formal mode on interface,
9457 limited or abstract type
9458 (Record_Type_Declaration): issue an error in formal mode on interface
9459 (Record_Type_Definition): issue an error in formal mode on tagged types
9460 and type extensions not declared in the specification of a library unit
9461 package; on null non-tagged record; on variant part
9462
9463 2011-08-02 Vincent Celier <celier@adacore.com>
9464
9465 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
9466 not declared for qualified library project when Library_Name is not
9467 declared, but Library_Dir is.
9468
9469 2011-08-02 Robert Dewar <dewar@adacore.com>
9470
9471 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
9472 pragmas (affects aspects [Component_]Default_Value
9473 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
9474 component type for the resolution
9475
9476 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9477
9478 * einfo.adb (Base_Type): Tune implementation for speed.
9479
9480 2011-08-02 Robert Dewar <dewar@adacore.com>
9481
9482 * freeze.adb: Minor reformatting.
9483
9484 2011-08-02 Thomas Quinot <quinot@adacore.com>
9485
9486 * scos.ads: Update comments.
9487
9488 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9489
9490 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
9491 base type, because the parent may be a subtype of a private type whose
9492 convention is established in a private part.
9493
9494 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
9495
9496 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
9497 statement in a block when the expansion of the return expression has
9498 created a finalization chain.
9499 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
9500 with the parent node.
9501 Add N_Extended_Return_Statement to handle the case where a transient
9502 object declaration appears in the Return_Object_Declarations list of
9503 an extended return statement.
9504
9505 2011-08-02 Matthew Gingell <gingell@adacore.com>
9506
9507 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
9508 unused parameter 'name'.
9509
9510 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9511
9512 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
9513 inherited operation, check whether its alias, which is the source
9514 operastion that it renames, has been marked eliminated.
9515
9516 2011-08-02 Javier Miranda <miranda@adacore.com>
9517
9518 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
9519 in-mode parameter whose type is an access type since it can be used to
9520 modify its designated object. Enforce code that handles as safe an
9521 access type that is not access-to-constant but it is the result of a
9522 previous removal of side-effects.
9523 (Remove_Side_Effects): Minor code reorganization of cases which require
9524 no action. Done to incorporate documentation on new cases uncovered
9525 working in this ticket: no action needed if this routine was invoked
9526 too early and the nodes are not yet decorated.
9527 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
9528 to routine Remove_Side_Effects by calls to Force_Evaluation since they
9529 were issued with actuals that are implicitly provided by
9530 Force_Evaluation.
9531
9532 2011-08-02 Robert Dewar <dewar@adacore.com>
9533
9534 * sem_ch3.adb, sem_res.adb: Minor reformatting.
9535
9536 2011-08-02 Yannick Moy <moy@adacore.com>
9537
9538 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
9539 to issue an error in formal mode on attribute not supported in this mode
9540 (Analyze_Attribute): issue errors on standard attributes not supported
9541 in formal mode.
9542 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
9543 comment, and issue error in formal mode on modulus which is not a power
9544 of 2.
9545 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
9546 range.
9547 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
9548 subtype mark.
9549 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
9550 operator on modular type (except 'not').
9551
9552 2011-08-02 Robert Dewar <dewar@adacore.com>
9553
9554 * gnat_rm.texi: Minor reformatting.
9555
9556 2011-08-02 Arnaud Charlet <charlet@adacore.com>
9557
9558 * s-osinte-linux.ads: Minor comment update and reformatting.
9559 * i-cexten.ads: Make this unit pure, as for its parent.
9560 Will allow its usage in more contexts if needed.
9561
9562 2011-08-02 Robert Dewar <dewar@adacore.com>
9563
9564 * s-utf_32.ads: Minor comment fix.
9565
9566 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9567
9568 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
9569 operation of a tagged synchronized type, handle the case where the
9570 controlling argument is overloaded.
9571
9572 2011-08-02 Yannick Moy <moy@adacore.com>
9573
9574 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
9575 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
9576 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
9577 SPARK mode and formal verification mode on processing SPARK restriction
9578 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
9579 requiring consistency checking.
9580
9581 2011-08-02 Robert Dewar <dewar@adacore.com>
9582
9583 * sem_res.adb: Minor reformatting.
9584
9585 2011-08-02 Robert Dewar <dewar@adacore.com>
9586
9587 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
9588 a-cforse.ads: Remove unneeded with of Ada.Containers
9589 Remove commented out pragma Inline's
9590 Move specifications of new subprograms to the actual specs
9591
9592 2011-08-02 Yannick Moy <moy@adacore.com>
9593
9594 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
9595 a-cforse.ads: Update comments.
9596
9597 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9598
9599 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
9600
9601 2011-08-02 Robert Dewar <dewar@adacore.com>
9602
9603 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
9604 a-cforse.ads, a-cofove.ads: Minor reformatting.
9605
9606 2011-08-02 Claire Dross <dross@adacore.com>
9607
9608 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
9609 a-cofove.ads: Add comments.
9610
9611 2011-08-02 Yannick Moy <moy@adacore.com>
9612
9613 * gnat_rm.texi: Document formal containers.
9614
9615 2011-08-02 Emmanuel Briot <briot@adacore.com>
9616
9617 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
9618 are empty sections.
9619
9620 2011-08-02 Robert Dewar <dewar@adacore.com>
9621
9622 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
9623 reformatting.
9624
9625 2011-08-02 Robert Dewar <dewar@adacore.com>
9626
9627 * aspects.adb: New aspects Default_Value and Default_Component_Value
9628 New format of Aspect_Names table checks for omitted entries
9629 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
9630 handling of boolean aspects for derived types.
9631 New aspects Default_Value and Default_Component_Value
9632 New format of Aspect_Names table checks for omitted entries
9633 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
9634 (Has_Default_Value): New flag
9635 (Has_Default_Component_Value): New flag
9636 (Has_Default_Value): New flag
9637 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
9638 table.
9639 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
9640 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
9641 Default_Value and Default_Component_Value
9642 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
9643 New aspects Default_Value and Default_Component_Value
9644 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
9645 * sprint.adb: Print N_Aspect_Specification node when called from gdb
9646
9647 2011-08-02 Vincent Celier <celier@adacore.com>
9648
9649 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
9650 inherit library kind.
9651
9652 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9653
9654 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
9655 Minor reformatting.
9656
9657 2011-08-02 Robert Dewar <dewar@adacore.com>
9658
9659 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
9660
9661 2011-08-02 Yannick Moy <moy@adacore.com>
9662
9663 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
9664
9665 2011-08-02 Robert Dewar <dewar@adacore.com>
9666
9667 * impunit.adb: Add comment.
9668
9669 2011-08-02 Yannick Moy <moy@adacore.com>
9670
9671 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
9672 qualification of aggregates in formal mode
9673 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
9674 another aggregate
9675 (Resolve_Aggregate): complete the test that an aggregate is adequately
9676 qualified in formal mode
9677
9678 2011-08-02 Pascal Obry <obry@adacore.com>
9679
9680 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
9681 * mlib-prj.adb: Supress warning when compiling binder generated file.
9682 (Build_Library): Supress all warnings when compiling the binder
9683 generated file.
9684
9685 2011-08-02 Yannick Moy <moy@adacore.com>
9686
9687 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
9688 from here...
9689 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
9690 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
9691 Add with/use clauses to make Check_Formal_Restriction visible
9692
9693 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9694
9695 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
9696 in-parameters when type of the generic formal is private in the generic
9697 spec and non-private in the body.
9698
9699 2011-08-02 Claire Dross <dross@adacore.com>
9700
9701 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
9702 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
9703 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
9704 * impunit.adb, Makefile.rtl: Take new files into account.
9705
9706 2011-08-02 Robert Dewar <dewar@adacore.com>
9707
9708 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
9709 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
9710
9711 2011-08-02 Yannick Moy <moy@adacore.com>
9712
9713 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
9714 formal mode
9715 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
9716 matching static array bounds, taking into account the special case of
9717 string literals
9718 * sem_ch3.adb: Typo in comment.
9719
9720 2011-08-02 Yannick Moy <moy@adacore.com>
9721
9722 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
9723 which issues an error in formal mode if its argument node is originally
9724 from source
9725 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
9726 has a discriminant specification so that it does not include the case
9727 of derived types
9728 (Derived_Type_Declaration): move here the test that a derived type has a
9729 discriminant specification
9730 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
9731 first element of a component association before accessing its choices
9732 (presence of component association is not enough)
9733 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
9734 declaration is a library item before accessing the next element in a
9735 list, as library items are not member of lists
9736 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
9737 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
9738 Check_Formal_Restriction whenever possible.
9739
9740 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9741
9742 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
9743 reference when needed.
9744
9745 2011-08-02 Bob Duff <duff@adacore.com>
9746
9747 * gnat_ugn.texi: Fix typo.
9748
9749 2011-08-02 Vincent Celier <celier@adacore.com>
9750
9751 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
9752 archive file name. Do not use the full path name of archives for Open
9753 VMS.
9754
9755 2011-08-02 Robert Dewar <dewar@adacore.com>
9756
9757 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
9758 Analyze_Aspect_Specifications
9759 * sem_ch13.adb
9760 (Analyze_Aspect_Specifications): New handling for boolean aspects
9761 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
9762 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
9763 sequence for Analyze_Aspect_Specifications
9764 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
9765 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
9766
9767 2011-08-02 Robert Dewar <dewar@adacore.com>
9768
9769 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
9770 aspects, since these no longer exist.
9771
9772 2011-08-02 Robert Dewar <dewar@adacore.com>
9773
9774 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
9775 semicolon, do not try to see if there are aspects following it.
9776 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
9777 aspect spec.
9778
9779 2011-08-02 Robert Dewar <dewar@adacore.com>
9780
9781 * sem_ch8.adb, aspects.ads: Minor reformatting.
9782
9783 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9784
9785 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
9786 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
9787 extracted from...
9788 (Analyze_Aspect_Specifications): ...here. Call above procedure.
9789
9790 2011-08-02 Yannick Moy <moy@adacore.com>
9791
9792 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
9793 mode on subprogram declaration outside of package specification, unless
9794 it is followed by a pragma Import
9795 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
9796 Access_Type_Declaration): issue error in formal mode on access type
9797 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
9798 incomplete type
9799 (Analyze_Object_Declaration): issue error in formal mode on object
9800 declaration which does not respect SPARK restrictions
9801 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
9802 declaration which does not respect SPARK restrictions
9803 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
9804 error in formal mode on digits or delta constraint
9805 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
9806 decimal fixed point type
9807 (Derived_Type_Declaration): issue error in formal mode on derived type
9808 other than type extensions of tagged record types
9809 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
9810 with check on access definition
9811 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
9812 mode on protected definition.
9813 (Analyze_Task_Definition): issue error in formal mode on task definition
9814
9815 2011-08-02 Robert Dewar <dewar@adacore.com>
9816
9817 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
9818
9819 2011-08-02 Javier Miranda <miranda@adacore.com>
9820
9821 * sem_ch6.adb (Can_Override_Operator): New function.
9822 (Verify_Overriding_Indicator): Add missing code to check overriding
9823 indicator in operators. Fixes regression.
9824 (Check_Overriding_Indicator): Minor reformating after replacing the
9825 code that evaluates if the subprogram can override an operator by
9826 invocations to the above new function.
9827 * einfo.adb
9828 (Write_Field26_Name): Add missing code to ensure that, following
9829 the documentation in einfo.ads, this field is not shown as attribute
9830 "Static_Initialization" on non-dispatching functions.
9831
9832 2011-08-02 Jose Ruiz <ruiz@adacore.com>
9833
9834 * sem_res.adb (Resolve_Call): A call to
9835 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
9836 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
9837 i.e., when the second parameter is of type Time_Span.
9838
9839 2011-08-02 Vincent Celier <celier@adacore.com>
9840
9841 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
9842 with an archive instead of -L<library dir> -l<library name>.
9843
9844 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9845
9846 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
9847 mark the base types In_Use in addition to making the operations
9848 use_visible.
9849
9850 2011-08-02 Ed Falis <falis@adacore.com>
9851
9852 * init.c: add and setup __gnat_signal_mask for the exception signals
9853 * s-inmaop-vxworks.adb: new file.
9854 * s-intman-vxworks.adb: remove unnecessary initializations and
9855 simplify remaining
9856 * s-intman-vxworks.ads: remove unnecessary variable
9857 * s-taprop-vxworks.adb: simplify signal initialization
9858
9859 2011-08-02 Robert Dewar <dewar@adacore.com>
9860
9861 * sem_ch8.adb: Minor code reorganization, comment updates.
9862
9863 2011-08-02 Robert Dewar <dewar@adacore.com>
9864
9865 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
9866 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
9867 here from Sem_Res.
9868 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
9869 (Matching_Static_Array_Bounds): Moved here from Sem_Res
9870
9871 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9872
9873 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
9874 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
9875 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
9876 use_type_clauses, to handle more efficiently use_type and use_all_type
9877 constructs.
9878 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
9879 Ada2012 Use_All_Type clause.
9880 (Use_Class_Wide_Operations): new procedure.
9881
9882 2011-08-02 Robert Dewar <dewar@adacore.com>
9883
9884 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
9885 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
9886 expression to expression function.
9887
9888 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9889
9890 * sem_ch4.adb: transform simple Ada2012 membership into equality only
9891 if types are compatible.
9892
9893 2011-08-02 Yannick Moy <moy@adacore.com>
9894
9895 * sem_res.adb (Matching_Static_Array_Bounds): new function which
9896 returns True if its argument array types have same dimension and same
9897 static bounds at each index.
9898 (Resolve_Actuals): issue an error in formal mode on actuals passed as
9899 OUT or IN OUT paramaters which are not view conversions in SPARK.
9900 (Resolve_Arithmetic_Op): issue an error in formal mode on
9901 multiplication or division with operands of fixed point types which are
9902 not qualified or explicitly converted.
9903 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
9904 Boolean or array type (except String) operands.
9905 (Resolve_Equality_Op): issue an error in formal mode on equality
9906 operators for array types other than String with non-matching static
9907 bounds.
9908 (Resolve_Logical_Op): issue an error in formal mode on logical operators
9909 for array types with non-matching static bounds. Factorize the code in
9910 Matching_Static_Array_Bounds.
9911 (Resolve_Qualified_Expression): issue an error in formal mode on
9912 qualified expressions for array types with non-matching static bounds.
9913 (Resolve_Type_Conversion): issue an error in formal mode on type
9914 conversion for array types with non-matching static bounds
9915
9916 2011-08-02 Robert Dewar <dewar@adacore.com>
9917
9918 * par-ch10.adb: Minor code reorganization (use Nkind_In).
9919
9920 2011-08-02 Ed Schonberg <schonberg@adacore.com>
9921
9922 * par-ch9.adb: save location of entry for proper error message.
9923
9924 2011-08-02 Javier Miranda <miranda@adacore.com>
9925
9926 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
9927 (Use_Full_View) which permits this routine to climb through the
9928 ancestors using the full-view of private parents.
9929 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
9930 Use_Full_View to true in calls to Is_Ancestor.
9931 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
9932 true in call to Is_Ancestor.
9933 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
9934 Use_Full_View to true in call to Is_Ancestor.
9935 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
9936 call to Is_Ancestor.
9937 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
9938 Use_Full_View to true in calls to Is_Ancestor.
9939 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
9940 Make_Select_Specific_Data_Table, Register_Primitive,
9941 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
9942 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
9943 to true in call to Is_Ancestor.
9944 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
9945 Use_Full_View to true in calls to Is_Ancestor.
9946 * exp_cg.adb
9947 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
9948 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
9949
9950 2011-08-02 Robert Dewar <dewar@adacore.com>
9951
9952 * gnat_rm.texi: Minor reformatting.
9953 * sem_prag.adb: Minor reformatting.
9954
9955 2011-08-02 Tristan Gingold <gingold@adacore.com>
9956
9957 * vms_data.ads: Add VMS qualifier for -gnateP.
9958
9959 2011-08-02 Robert Dewar <dewar@adacore.com>
9960
9961 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
9962 * par-ch7.adb (P_Package): Proper placement of aspects for package
9963 decl/instantiation.
9964 * par-endh.adb (Check_End): Ad Is_Sloc parameter
9965 (End_Statements): Add Is_Sloc parameterr
9966 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
9967 (Check_End): Ad Is_Sloc parameter
9968 (End_Statements): Add Is_Sloc parameterr
9969
9970 2011-08-02 Vincent Celier <celier@adacore.com>
9971
9972 * ug_words: Add VMS qualifier equivalent to -gnateP:
9973 /SYMBOL_PREPROCESSING.
9974
9975 2011-08-02 Jose Ruiz <ruiz@adacore.com>
9976
9977 * gnat-style.texi: For hexadecimal numeric literals the typical
9978 grouping of digits is 4 to represent 2 bytes.
9979 A procedure spec which is split into several lines is indented two
9980 characters.
9981
9982 2011-08-02 Yannick Moy <moy@adacore.com>
9983
9984 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
9985 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
9986 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
9987 properly qualified
9988 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
9989 choice in array aggregate
9990 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
9991 mark as ancestor
9992 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
9993 positional and named aggregate for record, or others in record
9994 aggregate, or multiple choice in record aggregate
9995 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
9996 array operands to logical operations AND, OR and XOR do not have the
9997 same static lower and higher bounds
9998 * sem_ch5.adb, sinfo.ads: Correct typos in comments
9999
10000 2011-08-01 Robert Dewar <dewar@adacore.com>
10001
10002 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
10003 Replaces Last_Source_Node_In_Sequence.
10004 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
10005 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
10006 parens and blank in string (this was inconsistently implemented).
10007 * errout.ads
10008 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
10009 blank in string (this was inconsistently implemented).
10010 * gnat1drv.adb
10011 (Set_Global_Switches): Set formal mode switches appropriately
10012 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
10013 * par-prag.adb
10014 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
10015 call Set_Error_Msg_Lang to set "spark" as language name.
10016 * par.adb: Remove unnecessary call to set formal language for errout
10017 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
10018 appropriately and call Set_Error_Msg_Lang to set "spark" as language
10019 name.
10020 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
10021 calls to it, moved after resolution so that types are known
10022 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
10023 result of concatenation is not of type String
10024 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
10025 concatenation is not properly restricted
10026 * gnat_rm.texi: Add doc on pragma Spark_95.
10027 * gcc-interface/Makefile.in: Remove obsolete target pairs for
10028 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
10029 * gcc-interface/Make-lang.in: Update dependencies.
10030
10031 2011-08-01 Javier Miranda <miranda@adacore.com>
10032
10033 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
10034 condition that detects if the overridden operation must replace an
10035 existing entity.
10036
10037 2011-08-01 Javier Miranda <miranda@adacore.com>
10038
10039 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
10040 code declarations inserted by Insert_Actions in each alternative of the
10041 N_Case_Expression node.
10042
10043 2011-08-01 Robert Dewar <dewar@adacore.com>
10044
10045 * sem_ch6.adb: Minor code reorganization.
10046 * sem_util.adb: Minor reformatting.
10047
10048 2011-08-01 Pascal Obry <obry@adacore.com>
10049
10050 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
10051 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
10052
10053 2011-08-01 Yannick Moy <moy@adacore.com>
10054
10055 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
10056 literal or operator symbol which is prefixed
10057 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
10058 mode on access attributes.
10059 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
10060 that concatenation operands are properly restricted in formal mode
10061 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
10062 Analyze_Concatenation_Operand. Issue an error in formal mode if the
10063 result of the concatenation has a type different from String.
10064 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
10065 Analyze_Quantified_Expression, Analyze_Slice,
10066 Analyze_Null): issue an error in formal mode on unsupported constructs
10067 * sem_ch5.adb
10068 (Analyze_Block_Statement): only issue error on source block statement
10069 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
10070 function which returns the last node in a list of nodes for which
10071 Comes_From_Source returns True, if any
10072 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
10073 Last_Source_Node_In_Sequence
10074 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
10075 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
10076 mode on unsupported constructs
10077 * sem_ch9.adb Do not return after issuing error in formal mode, as the
10078 rest of the actions may be needed later on since the error is marked as
10079 not serious.
10080 * sinfo.ads: Typos in comments.
10081
10082 2011-08-01 Pascal Obry <obry@adacore.com>
10083
10084 * projects.texi: Minor editing.
10085
10086 2011-08-01 Yannick Moy <moy@adacore.com>
10087
10088 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
10089 insertion character ~~
10090 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
10091 (Set_Error_Msg_Lang): new procedure which fixes the language for use
10092 with insertion character ~~
10093 (Set_Msg_Text): treat insertion character ~~
10094 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
10095 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
10096 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
10097 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
10098 errors related to the formal language restriction not serious
10099 (insertion character |).
10100 * par.adb (Par): set formal language for error messages if needed
10101 * sem_ch6.adb (Check_Missing_Return): take into account possible
10102 generated statements at the end of the function
10103 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
10104 enumeration value to define a new pragma SPARK_95
10105 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
10106 SPARK_Version): new type and variables to store the SPARK version
10107 (none by default).
10108 (SPARK_Mode): return True when SPARK_Version is set
10109 * par-prag.adb: Correct indentation
10110 (Prag): take Pragma_SPARK_95 into account
10111 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
10112 into account.
10113
10114 2011-08-01 Robert Dewar <dewar@adacore.com>
10115
10116 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
10117 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
10118 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
10119
10120 2011-08-01 Pascal Obry <obry@adacore.com>
10121
10122 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
10123 Target_Name to Get_Path call.
10124 (Parse_Single_Project): Likewise.
10125 (Post_Parse_Context_Clause): Likewise.
10126 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
10127 Call Initialise_Project_Path with the proper Target_Name.
10128 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
10129 search path.
10130 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
10131 with the proper Target_Name.
10132 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
10133 Part.Parse routine.
10134 (Parse_Project_And_Apply_Config): Likewise.
10135 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
10136 This is fine as this part of the code is supporting only native
10137 compilation.
10138 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
10139 is fine as this part of the code is supporting only native compilation.
10140
10141 2011-08-01 Yannick Moy <moy@adacore.com>
10142
10143 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
10144 of homonym, unless the homonym is one of the cases allowed in SPARK
10145 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
10146 package declaration occurring after a body.
10147
10148 2011-08-01 Robert Dewar <dewar@adacore.com>
10149
10150 * checks.adb, exp_ch4.adb: Minor reformatting.
10151
10152 2011-08-01 Javier Miranda <miranda@adacore.com>
10153
10154 * einfo.ads (Access_Disp_Table): Fix documentation.
10155 (Dispatch_Table_Wrappers): Fix documentation.
10156
10157 2011-08-01 Pascal Obry <obry@adacore.com>
10158
10159 * prj-env.adb, prj-env.ads: Minor reformatting.
10160
10161 2011-08-01 Yannick Moy <moy@adacore.com>
10162
10163 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
10164 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
10165 procedures out of these packages.
10166 * errout.ads, errout.adb
10167 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
10168 procedures in of this package
10169 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
10170 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
10171 on misplaced later vs initial declarations, like in Ada 83
10172 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
10173 formal mode on attribute of private type whose full type declaration
10174 is not visible
10175 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
10176 package declaration inside a package specification
10177 (Analyze_Full_Type_Declaration): issue error in formal mode on
10178 controlled type or discriminant type
10179 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
10180 user-defined operator means that it should come from the source
10181 (New_Overloaded_Entity): issue error in formal mode on overloaded
10182 entity.
10183 * sem_ch6.ads, sem_ch13.ads: typos in comments.
10184
10185 2011-08-01 Thomas Quinot <quinot@adacore.com>
10186
10187 * atree.adb: Minor reformatting.
10188 * checks.adb: Minor reformatting.
10189
10190 2011-08-01 Vincent Celier <celier@adacore.com>
10191
10192 * s-parame-vms-ia64.ads: Fix typo in comment
10193 Minor reformatting
10194 * s-parame-vms-restrict.ads: Removed, unused.
10195
10196 2011-08-01 Javier Miranda <miranda@adacore.com>
10197
10198 * exp_ch3.adb
10199 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
10200 * sem_ch3.adb
10201 (Constrain_Index): Remove side effects in the evaluation of the bounds.
10202 * sem_ch3.ads, sem_ch3.adb
10203 (Is_Constant_Bound): New extended version of the subprogram that was
10204 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
10205 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
10206 * sem_aux.ads (Constant_Value): Fix typo in comment.
10207 * checks.adb (Generate_Index_Checks): New implementation which, for
10208 array objects with constant bounds, generates the runtime check
10209 referencing the bounds of the array type. For other cases this routine
10210 provides its previous behavior obtaining such values from the array
10211 object.
10212 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
10213 parent type.
10214 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
10215 we cannot have semantic interpretations of the new node.
10216
10217 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10218
10219 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
10220 expressions.
10221
10222 2011-08-01 Arnaud Charlet <charlet@adacore.com>
10223
10224 * sem_ch8.adb: Minor code editing.
10225 * s-vxwext.adb: Remove trailing space.
10226 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
10227 consistency with other files.
10228
10229 2011-08-01 Thomas Quinot <quinot@adacore.com>
10230
10231 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
10232
10233 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10234
10235 * par-ch10.adb: reject parameterized expressions as compilation unit.
10236 * sem_ch4.adb: handle properly conditional expression with overloaded
10237 then_clause and no else_clause.
10238
10239 2011-08-01 Tristan Gingold <gingold@adacore.com>
10240
10241 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
10242 like done by System.Aux_DEC.
10243 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
10244
10245 2011-08-01 Yannick Moy <moy@adacore.com>
10246
10247 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
10248 missing label at end of declaration (subprogram or package)
10249 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
10250 of positional and named parameter association
10251 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
10252 Error_Msg_SP which adds a prefix to the error message giving the name
10253 of the formal language analyzed
10254 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
10255 access result type in subprogram, unconstrained array as result type,.
10256 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
10257 procedure
10258 * sem_ch8.adb: Code clean up.
10259
10260 2011-08-01 Javier Miranda <miranda@adacore.com>
10261
10262 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
10263 * einfo.ads (Access_Disp_Table): Fix documentation.
10264 (Dispatch_Table_Wrappers): Fix documentation.
10265 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
10266 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
10267 to enforce the documentation of this attribute.
10268 (Set_Is_Interface): Cleanup the assertion.
10269 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
10270 the Underlying_Type entity before reading attribute Access_Disp_Table.
10271 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
10272 Locate the Underlying_Type before reading attribute Access_Disp_Table.
10273 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
10274 the Underlying_Type entity before reading attribute Access_Disp_Table.
10275 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
10276 Locate the Underlying_Type entity before reading attribute
10277 Access_Disp_Table.
10278
10279 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10280
10281 * s-poosiz.ads: Additional overriding indicators.
10282
10283 2011-08-01 Yannick Moy <moy@adacore.com>
10284
10285 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
10286 formal mode.
10287 (Analyze_Iteration_Scheme): issue error in formal mode when loop
10288 parameter specification does not include a subtype mark.
10289 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
10290 formal mode on abstract subprogram.
10291 (Analyze_Subprogram_Specification): issue error in formal mode on
10292 user-defined operator.
10293 (Process_Formals): issue error in formal mode on access parameter and
10294 default expression.
10295 * sem_ch9.adb (Analyze_Abort_Statement,
10296 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
10297 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
10298 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
10299 Analyze_Requeue, Analyze_Selective_Accept,
10300 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
10301 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
10302 issue error in formal mode on user-defined raise statement.
10303
10304 2011-08-01 Thomas Quinot <quinot@adacore.com>
10305
10306 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
10307 declaration being hidden when overriding an implicit inherited
10308 subprogram.
10309 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
10310 (-gnats), do not complain about a source file that contains only a
10311 pragma No_Body.
10312
10313 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10314
10315 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
10316 variable if already set.
10317
10318 2011-08-01 Arnaud Charlet <charlet@adacore.com>
10319
10320 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
10321 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
10322 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
10323 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
10324 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
10325 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
10326 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
10327 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
10328 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
10329 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
10330 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
10331 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
10332 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
10333 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
10334 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
10335 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
10336 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
10337 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
10338 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
10339 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
10340 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
10341 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
10342 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
10343 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
10344 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
10345 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
10346 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
10347 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
10348 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
10349 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
10350 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
10351 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
10352 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
10353 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
10354 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
10355 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
10356 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
10357 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
10358 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
10359 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
10360 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
10361 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
10362 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
10363 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
10364 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
10365 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
10366 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
10367 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
10368 s-osinte-mingw.ads: Update to GPLv3 run-time license.
10369 Use GNAT instead of GNARL.
10370
10371 2011-08-01 Bob Duff <duff@adacore.com>
10372
10373 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
10374 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
10375 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
10376 reformatting.
10377
10378 2011-08-01 Yannick Moy <moy@adacore.com>
10379
10380 * debug.adb (d.D) reverve flag for the SPARK mode
10381 (d.E) reverve flag for SPARK generation mode
10382 (d.F) reverve flag for Why generation mode
10383 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
10384 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
10385 functions which return True when the corresponding modes are set
10386 (Formal_Language): return "spark" or "alfa" when in formal verification
10387 mode.
10388 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
10389 Error_Msg to prefix the error message with a tag giving the formal
10390 language
10391 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
10392 message with a tag giving the formal language
10393 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
10394 block statement
10395 (Analyze_Case_Statement): issue error in formal mode on case statement
10396 with a single "others" case alternative
10397 (Analyze_Exit_Statement): issue errors in formal mode on exit
10398 statements which do not respect SPARK restrictions
10399 (Analyze_Goto_Statement): issue error in formal mode on goto statement
10400 (Check_Unreachable_Code): always issue an error (not a warning) in
10401 formal mode on unreachable code (concerns both code after an infinite
10402 loop and after an unconditional jump, both not allowed in SPARK)
10403 * sem_ch6.adb (Analyze_Return_Statement): add call to
10404 Set_Return_Present for a procedure containing a return statement
10405 (already done for functions in Analyze_Function_Return)
10406 (Analyze_Function_Return): issue error in formal mode on extended
10407 return or if return is not last statement in function
10408 (Check_Missing_Return): issue error in formal mode if function does
10409 not end with return or if procedure contains a return
10410 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
10411 function to detect if there is an inner scope of its parameter S which
10412 is a loop.
10413
10414 2011-08-01 Thomas Quinot <quinot@adacore.com>
10415
10416 * sem_ch6.ads: Minor reformatting.
10417
10418 2011-08-01 Javier Miranda <miranda@adacore.com>
10419
10420 * sem_util.adb (Abstract_Interface_List): Complete condition when
10421 processing private type declarations to avoid reading unavailable
10422 attribute.
10423 (Is_Synchronized_Tagged_Type): Complete condition when processing
10424 private extension declaration nodes to avoid reading unavailable
10425 attribute.
10426
10427 2011-08-01 Thomas Quinot <quinot@adacore.com>
10428
10429 * sem_ch3.adb: Minor reformatting.
10430
10431 2011-08-01 Thomas Quinot <quinot@adacore.com>
10432
10433 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
10434 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
10435 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
10436 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
10437 for VMS, instead parametrize the common implementation with
10438 System.Parameters declarations.
10439
10440 2011-08-01 Eric Botcazou <ebotcazou@adacore.com>
10441
10442 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
10443
10444 2011-08-01 Tristan Gingold <gingold@adacore.com>
10445
10446 * seh_init.c: Fix SEH handler installation on win64.
10447
10448 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10449
10450 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
10451 double analysis of an anonymous access to subprogram, because it can
10452 lead to improper sharing of profiles and a back-end crash.
10453
10454 2011-08-01 Robert Dewar <dewar@adacore.com>
10455
10456 * make.adb, sem_ch4.adb: Minor reformatting.
10457 * gcc-interface/Make-lang.in: Update dependencies.
10458 * sem_util.adb, exp_ch5.adb: Minor reformatting.
10459
10460 2011-08-01 Arnaud Charlet <charlet@adacore.com>
10461
10462 * gnat_rm.texi: Fix definition of Long_Integer.
10463
10464 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10465
10466 * exp_aggr.adb: check limit size of static aggregate unconditionally,
10467 to prevent storage exhaustion.
10468 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
10469 finalized is a function body, insert the cleanup code before the final
10470 return statement, to prevent spurious warnings.
10471 * s-pooglo.ads: add overriding indicator.
10472
10473 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10474
10475 * sem_ch4.adb (Operator_Check): improve error message when both a
10476 with_clause and a use_clause are needed to make operator usage legal.
10477 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
10478 determine whether a compilation unit is visible within an other,
10479 either through a with_clause in the current unit, or a with_clause in
10480 its library unit or one one of its parents.
10481
10482 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10483
10484 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
10485 over an arbitrary expression of an array or container type.
10486 * lib-xref.adb: clarify comment.
10487
10488 2011-08-01 Bob Duff <duff@adacore.com>
10489
10490 * einfo.ads: Minor reformatting.
10491 * debug.adb: Minor comment improvement.
10492
10493 2011-08-01 Javier Miranda <miranda@adacore.com>
10494
10495 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
10496 consider hidden subprograms as valid candidates.
10497
10498 2011-08-01 Arnaud Charlet <charlet@adacore.com>
10499
10500 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
10501
10502 2011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
10503
10504 * gnat_ugn.texi: Fix typo.
10505
10506 2011-08-01 Robert Dewar <dewar@adacore.com>
10507
10508 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
10509 lib-xref.adb: Minor reformatting
10510
10511 2011-08-01 Gary Dismukes <dismukes@adacore.com>
10512
10513 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
10514 when to generate a call to Move_Final_List.
10515 (Has_Controlled_Parts): Remove this function.
10516
10517 2011-08-01 Geert Bosch <bosch@adacore.com>
10518
10519 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
10520 "," in choice list.
10521
10522 2011-08-01 Thomas Quinot <quinot@adacore.com>
10523
10524 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
10525 explicit raise of a predefined exception as Comes_From_Source if the
10526 original N_Raise_Statement comes from source.
10527
10528 2011-08-01 Robert Dewar <dewar@adacore.com>
10529
10530 * sinfo.ads: Add comment.
10531 * sem_ch6.adb: Minor reformatting.
10532
10533 2011-08-01 Robert Dewar <dewar@adacore.com>
10534
10535 * freeze.adb (Freeze_Entity): Refine check for bad component size
10536 clause to avoid rejecting confirming clause when atomic/aliased present.
10537
10538 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10539
10540 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
10541 better determine whether an entity reference is a write.
10542 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
10543 subcomponent.
10544 * lib-xref.adb (Output_References): Do no suppress a read reference at
10545 the same location as an immediately preceeding modify-reference, to
10546 handle properly in-out actuals.
10547
10548 2011-08-01 Tristan Gingold <gingold@adacore.com>
10549
10550 * env.c (__gnat_setenv) [VMS]: Refine previous change.
10551
10552 2011-08-01 Quentin Ochem <ochem@adacore.com>
10553
10554 * i-cstrin.adb (New_String): Changed implementation, now uses only the
10555 heap to compute the result.
10556
10557 2011-08-01 Robert Dewar <dewar@adacore.com>
10558
10559 * atree.ads: Minor reformatting.
10560
10561 2011-08-01 Emmanuel Briot <briot@adacore.com>
10562
10563 * g-expect.adb (Get_Command_Output): Fix memory leak.
10564
10565 2011-08-01 Geert Bosch <bosch@adacore.com>
10566
10567 * cstand.adb (P_Float_Type): New procedure to print the definition of
10568 predefined fpt types.
10569 (P_Mixed_Name): New procedure to print a name using mixed case
10570 (Print_Standard): Use P_Float_Type for printing floating point types
10571 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
10572 precision IEEE float.
10573
10574 2011-08-01 Thomas Quinot <quinot@adacore.com>
10575
10576 * sem_ch3.adb: Minor reformatting.
10577
10578 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10579
10580 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
10581 the completion of a generic function, insert the new body rather than
10582 rewriting the original.
10583
10584 2011-08-01 Yannick Moy <moy@adacore.com>
10585
10586 * sinfo.ads, errout.ads: Typos in comments.
10587
10588 2011-08-01 Robert Dewar <dewar@adacore.com>
10589
10590 * par-endh.adb: Minor reformatting.
10591
10592 2011-08-01 Robert Dewar <dewar@adacore.com>
10593
10594 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
10595 (Pre_Post_Aspects): New subtype.
10596 * par-ch12.adb (P_Generic): New syntax for aspects in packages
10597 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
10598 * par-ch7.adb (P_Package): Remove Decl parameter
10599 (P_Package): Handle new syntax for aspects (before IS)
10600 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
10601 new aspect syntax
10602 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
10603 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
10604 (P_Package): Remove Decl parameter
10605 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
10606 aspects
10607 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
10608 specs
10609 * sem_util.ads, sem_util.adb (Static_Boolean): New function
10610 * sinfo.ads: Document new syntax for aspects in packages etc.
10611 * sprint.adb: Handle new syntax of aspects before IS in package
10612
10613 2011-08-01 Thomas Quinot <quinot@adacore.com>
10614
10615 * atree.ads: Minor reformatting.
10616 * sem_prag.adb: Minor reformatting.
10617
10618 2011-08-01 Robert Dewar <dewar@adacore.com>
10619
10620 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
10621 case expr alternative.
10622
10623 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10624
10625 * sem_ch12.adb: Fix typo.
10626
10627 2011-08-01 Geert Bosch <bosch@adacore.com>
10628
10629 * sem_prag.adb (Check_No_Link_Name): New procedure.
10630 (Process_Import_Or_Interface): Use Check_No_Link_Name.
10631 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
10632 instead of Standard_Long_Long_Float_Size global. Preparation for
10633 eventual removal of per type constants.
10634 * exp_util.ads (Get_Stream_Size): New function returning the stream
10635 size value of subtype E.
10636 * exp_util.adb (Get_Stream_Size): Implement new function.
10637 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
10638 function.
10639 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
10640 * einfo.adb:
10641 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
10642
10643 2011-08-01 Geert Bosch <bosch@adacore.com>
10644
10645 * cstand.adb: Fix comments.
10646 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
10647 count of arguments.
10648
10649 2011-08-01 Robert Dewar <dewar@adacore.com>
10650
10651 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
10652
10653 2011-08-01 Geert Bosch <bosch@adacore.com>
10654
10655 * atree.ads: Fix comment.
10656
10657 2011-08-01 Robert Dewar <dewar@adacore.com>
10658
10659 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
10660 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
10661 * par.adb: Add with for Namet.Sp.
10662 * par-tchk.adb: Minor reformatting.
10663
10664 2011-08-01 Vincent Celier <celier@adacore.com>
10665
10666 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
10667 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
10668 of the init procedure of a SAL.
10669 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
10670 New procedure.
10671
10672 2011-08-01 Thomas Quinot <quinot@adacore.com>
10673
10674 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
10675 reformatting.
10676
10677 2011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10678
10679 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
10680
10681 2011-08-01 Thomas Quinot <quinot@adacore.com>
10682
10683 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
10684 conformant with its spec (return True only for types that have
10685 an overriding Initialize primitive operation that prevents them from
10686 having preelaborable initialization).
10687 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
10688 initialization for controlled types in Ada 2005 or later mode.
10689
10690 2011-08-01 Robert Dewar <dewar@adacore.com>
10691
10692 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
10693 Postcondition.
10694 (Same_Aspect): New function.
10695 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
10696 Type_Invariant, Precondition, Postcondition.
10697 * snames.ads-tmpl: Add Name_Type_Invariant.
10698
10699 2011-08-01 Robert Dewar <dewar@adacore.com>
10700
10701 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
10702 here.
10703 (Freeze_All_Ent): Fix error in handling inherited aspects.
10704 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
10705 already analyzed, but don't skip entire processing of a declaration,
10706 that's wrong in some cases of declarations being rewritten.
10707 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
10708 Don't delay for integer, string literals
10709 Treat predicates in usual manner for delay, remove special case code,
10710 not needed.
10711 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
10712 (Build_Predicate_Function): Update saved expression in aspect
10713 (Build_Invariant_Procedure): Update saved expression in aspect
10714 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
10715 of replacement of discriminant references if the reference is simple.
10716
10717 2011-08-01 Robert Dewar <dewar@adacore.com>
10718
10719 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
10720 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
10721 Static_Predicate and Dynamic_Predicate.
10722 (Build_Predicate_Function): Add processing for Static_Predicate
10723 and Dynamic_Predicate.
10724 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
10725 (From_Static_Predicate): New flag
10726 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
10727
10728 2011-08-01 Robert Dewar <dewar@adacore.com>
10729
10730 * usage.adb: Documentation cleanup for Ada version modes in usage.
10731 * expander.adb: Minor reformatting.
10732
10733 2011-08-01 Robert Dewar <dewar@adacore.com>
10734
10735 * atree.ads: Minor comment fix.
10736 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
10737 a-witeio.ads, sem_prag.adb: Minor reformatting.
10738
10739 2011-08-01 Doug Rupp <rupp@adacore.com>
10740
10741 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
10742 pointers. Use descrip.h header file for convenience. Add some
10743 comments.
10744
10745 2011-08-01 Robert Dewar <dewar@adacore.com>
10746
10747 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
10748 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
10749 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
10750 New procedure.
10751 (Check_Aspect_At_End_Of_Declarations): New procedure
10752 (Analye_Aspect_Specification): Minor changes for above procedures
10753 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
10754 specification node as well.
10755
10756 2011-08-01 Pascal Obry <obry@adacore.com>
10757
10758 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
10759 Windows files. Use GetFilesAttributes() in this case to check for file
10760 existence instead of returning with an error code.
10761
10762 2011-08-01 Vincent Celier <celier@adacore.com>
10763
10764 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
10765 High is above Source length.
10766
10767 2011-08-01 Robert Dewar <dewar@adacore.com>
10768
10769 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
10770
10771 2011-08-01 Robert Dewar <dewar@adacore.com>
10772
10773 * aspects.ads (Boolean_Aspects): New subtype.
10774 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
10775 for derived types in cases where the parent type and derived type have
10776 aspects.
10777 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
10778 with aspects when parent type also has aspects.
10779 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
10780 boolean expression at this point).
10781 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
10782 accordance with final decision on the Ada 2012 feature.
10783 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
10784
10785 2011-08-01 Matthew Heaney <heaney@adacore.com>
10786
10787 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
10788
10789 2011-08-01 Pascal Obry <obry@adacore.com>
10790
10791 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
10792 Fix Replace_Slice when High is above current string size.
10793 (Replace_Slice): Fix DL computation when High is above current
10794 string length.
10795
10796 2011-08-01 Gary Dismukes <dismukes@adacore.com>
10797
10798 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
10799
10800 2011-08-01 Matthew Heaney <heaney@adacore.com>
10801
10802 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
10803 of node.
10804
10805 2011-08-01 Pascal Obry <obry@adacore.com>
10806
10807 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
10808 reformatting.
10809
10810 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10811
10812 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
10813 access to protected subprograms in generic bodies.
10814 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
10815 protected type, indicate that the convention of the subprogram is
10816 Convention_Protected, because it may be used in subsequent declarations
10817 within the protected declaration.
10818
10819 2011-08-01 Vincent Celier <celier@adacore.com>
10820
10821 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
10822 and "final" procedures when the name of the library is "ada", to avoid
10823 duplicate symbols "adainit" and "adafinal" in executables.
10824
10825 2011-08-01 Ed Schonberg <schonberg@adacore.com>
10826
10827 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
10828 quantified expression that appears within a postcondition and uses the
10829 Ada2012 'Result attribute.
10830
10831 2011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10832
10833 * init.c (__gnat_error_handler): Cast reason to int.
10834 (__gnat_install_handler): Explain sa_sigaction use.
10835
10836 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
10837
10838 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
10839 subprogram has copy-in copy-out parameters, try to promote the mode of
10840 the return type if it is passed in registers.
10841
10842 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
10843
10844 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
10845 left operand as addressable.
10846
10847 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
10848
10849 * gcc-interface/gigi.h (build_function_stub): Remove.
10850 (build_return_expr): Likewise.
10851 (convert_vms_descriptor): Declare.
10852 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
10853 (build_function_stub): Move to...
10854 * gcc-interface/utils2.c (build_return_expr): Move to...
10855 * gcc-interface/trans.c (build_function_stub): ...here.
10856 (build_return_expr): ...here.
10857 (Subprogram_Body_to_gnu): Add local variable for language_function.
10858 Disconnect the parameter attributes cache, if any, once done with it.
10859 Call end_subprog_body only after setting the end_locus.
10860 Build the stub associated with the function, if any, at the very end.
10861 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
10862 variables and streamline control flow.
10863
10864 2011-07-23 Arnaud Charlet <charlet@adacore.com>
10865
10866 PR ada/49819
10867 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
10868 g-trasym-dwarf.adb.
10869
10870 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10871
10872 PR bootstrap/49794
10873 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
10874 Assign to act.sa_sigaction.
10875 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
10876 current->return_address to char * before arithmetic.
10877
10878 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10879
10880 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
10881 Correct argument types.
10882 Extract code from reason.
10883 (__gnat_install_handler): Assign to act.sa_sigaction.
10884
10885 2011-07-21 Eric Botcazou <ebotcazou@adacore.com>
10886
10887 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
10888 (GNAT1_OBJS): ...here.
10889
10890 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
10891
10892 PR ada/48711
10893 * g-socthi-mingw.adb (Fill): Fix formatting.
10894
10895 * gcc-interface/gigi.h: Move around comment.
10896
10897 2011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10898
10899 PR ada/46350
10900 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
10901
10902 2011-07-14 Florian Weimer <fw@deneb.enyo.de>
10903
10904 PR ada/48711
10905 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
10906
10907 2011-07-13 Eric Botcazou <ebotcazou@adacore.com>
10908
10909 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
10910 range comparison if Pmode is SImode.
10911
10912 2011-07-12 Laurent GUERBY <laurent@guerby.net>
10913 Eric Botcazou <ebotcazou@adacore.com>
10914
10915 * adadecode.c: Wrap up in extern "C" block.
10916 * adadecode.h: Likewise.
10917 * adaint.c: Likewise. Remove 'const' keyword.
10918 * adaint.h: Likewise.
10919 * argv.c: Likewise.
10920 * atree.h: Likewise.
10921 * cio.c: Likewise.
10922 * cstreams.c: Likewise.
10923 * env.c: Likewise.
10924 * exit.c: Likewise.
10925 * fe.h: Likewise.
10926 * final.c: Likewise.
10927 * init.c: Likewise.
10928 * initialize.c: Likewise.
10929 * link.c: Likewise.
10930 * namet.h: Likewise.
10931 * nlists.h: Likewise.
10932 * raise.c: Likewise.
10933 * raise.h: Likewise.
10934 * repinfo.h: Likewise.
10935 * seh_init.c: Likewise.
10936 * targext.c: Likewise.
10937 * tracebak.c: Likewise.
10938 * uintp.h: Likewise.
10939 * urealp.h: Likewise.
10940 * xeinfo.adb: Wrap up generated C code in extern "C" block.
10941 * xsinfo.adb: Likewise.
10942 * xsnamest.adb: Likewise.
10943 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
10944 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
10945 * gcc-interface/misc.c: Likewise.
10946 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
10947 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
10948 ada/targext.o here...
10949 (GNAT_ADA_OBJS): ...and not here.
10950 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
10951 (GNATBIND_OBJS): Reorder.
10952
10953 2011-07-07 Richard Henderson <rth@redhat.com>
10954
10955 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
10956 dwarf2out_frame_init.
10957
10958 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
10959
10960 * gcc-interface/misc.c (gnat_init): Tweak previous change.
10961
10962 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10963
10964 PR target/39150
10965 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
10966
10967 2011-07-06 Richard Guenther <rguenther@suse.de>
10968
10969 * gcc-interface/misc.c (gnat_init): Merge calls to
10970 build_common_tree_nodes and build_common_tree_nodes_2.
10971 Re-initialize boolean_false_node.
10972
10973 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
10974 Olivier Hainque <hainque@adacore.com>
10975 Nicolas Setton <setton@adacore.com>
10976
10977 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
10978 the type according to the ARTIFICIAL_P parameter.
10979 (create_type_decl): Likewise.
10980 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
10981
10982 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
10983
10984 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
10985 (gnatbind): Likewise.
10986
10987 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10988
10989 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
10990
10991 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
10992
10993 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
10994 local variable throughout. Remove useless call to Base_Type.
10995 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
10996 Take it also into account for the volatileness of the field. Set the
10997 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
10998
10999 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
11000
11001 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
11002 on a dereference built for a by-ref object if it has an address clause.
11003
11004 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
11005
11006 * einfo.ads (Address_Taken): Document use for the second argument of
11007 Asm_Input and Asm_Output attributes.
11008 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
11009 argument is an entity name, then set Address_Taken on it.
11010 <Attribute_Asm_Output>: Likewise.
11011 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
11012 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
11013 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
11014 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
11015
11016 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
11017
11018 PR middle-end/46500
11019 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
11020
11021 2011-06-14 Joseph Myers <joseph@codesourcery.com>
11022
11023 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
11024 (ada/utils.o): Update dependencies.
11025 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
11026 ../../../libcpp/libcpp.a.
11027 * gcc-interface/utils.c: Include common/common-target.h.
11028 (process_attributes): Use targetm_common.have_named_sections.
11029
11030 2011-06-07 Richard Guenther <rguenther@suse.de>
11031
11032 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
11033 set_sizetype.
11034
11035 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
11036
11037 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
11038 TREE_THIS_NOTRAP flag.
11039
11040 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
11041
11042 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
11043 Fix thinko.
11044
11045 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
11046
11047 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
11048 constants whose full view has discriminants specially.
11049
11050 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
11051
11052 * gcc-interface/utils.c: Include diagnostic.h.
11053 (gnat_write_global_declarations): Output debug information for all
11054 global type declarations before finalizing the compilation unit.
11055 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
11056
11057 2011-05-25 Jakub Jelinek <jakub@redhat.com>
11058
11059 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
11060
11061 2011-05-25 Kai Tietz <ktietz@redhat.com>
11062
11063 * adaint.c (__gnat_to_canonical_file_list_next): Use array
11064 initialization instead of const/none-const pointer assignment.
11065
11066 2011-05-24 Joseph Myers <joseph@codesourcery.com>
11067
11068 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
11069 $(EXTRA_GNAT1_OBJS).
11070 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
11071 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
11072 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
11073 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
11074 libcommon-target.a instead of prefix.o.
11075
11076 2011-05-21 Joseph Myers <joseph@codesourcery.com>
11077
11078 PR ada/49097
11079 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
11080
11081 2011-05-20 Joseph Myers <joseph@codesourcery.com>
11082
11083 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
11084 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
11085 instead of version.o.
11086
11087 2011-05-18 Kai Tietz <ktietz@redhat.com>
11088
11089 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
11090 boolean_false_node instead of integer_zero_node.
11091 (convert_with_check): Likewise.
11092 * gcc-interface/decl.c (choices_to_gnu): Likewise.
11093
11094 2011-05-12 Eric Botcazou <ebotcazou@adacore.com>
11095
11096 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
11097 type of the parameter is an unconstrained array, convert the actual to
11098 the type of the formal in the In Out and Out cases as well.
11099
11100 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
11101
11102 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
11103 call build_function_type_array or build_varargs_function_type_array
11104 instead.
11105 (create_subprog_type): Don't call build_function_type; call
11106 build_function_type_vec instead.
11107
11108 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
11109
11110 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
11111 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
11112 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
11113
11114 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
11115
11116 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
11117
11118 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
11119 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
11120
11121 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
11122
11123 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
11124
11125 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
11126
11127 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
11128 instead of accessing TYPE_ARG_TYPES directly.
11129 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
11130
11131 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
11132
11133 PR ada/48844
11134 * gcc-interface/gigi.h (get_variant_part): Declare.
11135 * gcc-interface/decl.c (get_variant_part): Make global.
11136 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
11137 types have the same constant size, are record types and T1 has a
11138 variant part while T2 doesn't.
11139
11140 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
11141
11142 * gcc-interface/utils.c (begin_subprog_body): Do not call
11143 get_pending_sizes.
11144 (end_subprog_body): Likewise.
11145
11146 2011-05-04 Richard Guenther <rguenther@suse.de>
11147
11148 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
11149 int_const_binop.
11150 (pos_to_constructor): Likewise.
11151
11152 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
11153 Eric Botcazou <ebotcazou@adacore.com>
11154
11155 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
11156 of build_function_type. Adjust calls to...
11157 (build_raise_check): ...this. Do not take a void_tree parameter.
11158 Call build_function_type_list instead of build_function_type.
11159 Fix head comment and swap couple of conditional blocks.
11160
11161 2011-04-30 Eric Botcazou <ebotcazou@adacore.com>
11162
11163 * gnatvsn.ads (Library_Version): Bump to 4.7.
11164 (Current_Year): Bump to 2011.
11165
11166 2011-04-29 Michael Matz <matz@suse.de>
11167
11168 * gcc-interface/misc.c (gnat_handle_option): Set
11169 warn_maybe_uninitialized.
11170
11171 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
11172
11173 * gnat_ugn.texi (Complexity Metrics Control): Update link to
11174 the Watson/McCabe paper.
11175
11176 2011-04-23 Jim Meyering <meyering@redhat.com>
11177
11178 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
11179
11180 2011-04-22 Eric Botcazou <ebotcazou@adacore.com>
11181
11182 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
11183 onto the new type.
11184
11185 2011-04-22 Eric Botcazou <ebotcazou@adacore.com>
11186
11187 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
11188 parameter.
11189 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
11190 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
11191 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
11192 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
11193 <all>: Do not set flags on the reused DECL node coming from an alias.
11194 Set DECL_IGNORED_P on the DECL node built for subprograms if they
11195 don't need debug info here...
11196 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
11197 (gigi): Adjust calls to create_subprog_decl.
11198 (build_raise_check): Likewise.
11199 (establish_gnat_vms_condition_handler): Likewise.
11200 (Compilation_Unit_to_gnu): Likewise.
11201 (gnat_to_gnu): Likewise.
11202
11203 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
11204
11205 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
11206 (NO_REORDER_ADAFLAGS): New variable.
11207 (EXTRA_GNATTOOLS): Always define.
11208 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
11209 Clean up and adjust list of files compiled with special options.
11210 * gcc-interface/Make-lang.in: Likewise.
11211 (ada/decl.o): Cosmetical change.
11212 (ada/misc.o): Remove dependency on $(PLUGIN_H).
11213
11214 2011-04-20 Jim Meyering <meyering@redhat.com>
11215
11216 * initialize.c (__gnat_initialize): Remove useless if-before-free.
11217
11218 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
11219
11220 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
11221 $(CFLAGS) on the link line.
11222
11223 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
11224
11225 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
11226 padded type built for the return type if it is unconstrained.
11227
11228 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
11229
11230 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
11231
11232 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
11233
11234 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
11235 before calling TREE_CHAIN.
11236 * gcc-interface/misc.c (gnat_init_ts): New function.
11237 (LANG_HOOKS_INIT_TS): Define.
11238
11239 2011-04-12 Martin Jambor <mjambor@suse.cz>
11240
11241 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
11242 instead of cgraph_node.
11243
11244 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
11245
11246 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
11247 alignment on fields of the RETURN type built for the Copy-In Copy-Out
11248 mechanism.
11249
11250 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
11251
11252 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
11253 of aggregate types that contain a placeholder.
11254
11255 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
11256
11257 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
11258 TYPE_ARG_TYPES.
11259 (handle_type_generic_attribute): Likewise.
11260
11261 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
11262
11263 PR ada/47163
11264 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
11265
11266 2011-04-04 Kai Tietz <ktietz@redhat.com>
11267
11268 PR ada/47163
11269 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
11270 to flag value.
11271
11272 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11273
11274 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
11275 type case, do not strip a padding type around the array type.
11276
11277 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11278
11279 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
11280 types.
11281
11282 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11283
11284 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
11285 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
11286 code for -feliminate-unused-debug-types.
11287 (gnat_post_options): Likewise.
11288
11289 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11290
11291 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
11292 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
11293 distinct copy.
11294
11295 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11296
11297 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
11298 DECL_ARTIFICIAL flag on enumeration types.
11299
11300 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11301
11302 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
11303 fat pointer types artificial unconditionally.
11304 <E_Array_Subtype>: Attach the base array type as a parallel type if it
11305 isn't artificial.
11306
11307 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11308
11309 * gcc-interface/gigi.h (get_dummy_type): Declare.
11310 (build_dummy_unc_pointer_types): Likewise.
11311 (finish_fat_pointer_type): Likewise.
11312 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
11313 fat pointer type has been built, complete it in place.
11314 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
11315 and thin pointers. Remove useless variable.
11316 (finish_fat_pointer_type): Make global and move to...
11317 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
11318 (get_dummy_type): New function.
11319 (build_dummy_unc_pointer_types): Likewise.
11320 (gnat_pushdecl): Propage the name to the anonymous variants only.
11321 (update_pointer_to): Only adjust the pointer types in the unconstrained
11322 array case.
11323
11324 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11325
11326 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
11327 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
11328 if this is a Taft amendment type and the full declaration is available.
11329 * gcc-interface/trans.c (process_type): Likewise.
11330 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
11331 (process_freeze_entity): Likewise.
11332 * gcc-interface/utils.c (dummy_global): New static variable.
11333 (gnat_write_global_declarations): If there are types declared as used
11334 at the global level, insert them in the global hash table.
11335
11336 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11337
11338 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
11339 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
11340 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
11341 copy.
11342 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
11343 flag of the type accordingly.
11344 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
11345
11346 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11347
11348 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
11349 finalizing types when updating the pointers to the designated type.
11350 <all>: Finalize the deferred types even if we didn't defer processing
11351 of incomplete types in this invocation.
11352
11353 2011-04-01 Olivier Hainque <hainque@adacore.com>
11354 Nicolas Setton <setton@adacore.com>
11355 Eric Botcazou <ebotcazou@adacore.com>
11356
11357 * gcc-interface/misc.c (gnat_descriptive_type): New function.
11358 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
11359
11360 2011-03-28 Kai Tietz <ktietz@redhat.com>
11361
11362 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
11363 Windows targets.
11364 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
11365 * system-mingw.ads (System): Change ZCX_By_Default default to True.
11366
11367 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
11368
11369 2011-03-28 Tristan Gingold <gingold@adacore.com>
11370
11371 PR ada/44431
11372 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
11373 Use ada output of gnatbind.
11374 (ada/b_gnatb.adb): Ditto.
11375 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
11376 (ada.mostlyclean, ada.stage1)
11377 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
11378 (ada.stagefeedback): Adjust.
11379 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
11380 Use ada output of gnatbind.
11381 (b_gnatm.adb): Ditto.
11382 (b_gnatl.o, b_gnatm.o): New rules.
11383
11384 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11385
11386 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
11387 for the padded type built to support a specified size or alignment.
11388
11389 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11390
11391 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
11392 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
11393 unconditionally to the end of the unit when the designated type is
11394 limited_with'ed.
11395 <all>: Rename local variable. Attempt to un-defer types only and do it
11396 for limited_with'ed types as well.
11397 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
11398 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
11399 consistently and remove redundant call to finalize_from_with_types.
11400
11401 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11402
11403 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
11404 subprograms without a previous spec declared in the same unit.
11405 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
11406 subprograms at the end of the unit instead of at the beginning.
11407 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
11408 isn't public for the special handling of non-inline functions nested
11409 inside inline external functions.
11410
11411 2011-03-25 Jeff Law <law@redhat.com>
11412
11413 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
11414
11415 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11416
11417 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
11418 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
11419 to compute Set_Size_Depends_On_Discriminant.
11420 (Layout_Type): Call it on array types in back-end layout mode.
11421 * sem_util.adb (Requires_Transient_Scope): Return true for array
11422 types only if the size depends on the value of discriminants.
11423 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
11424 type if the RHS is a call to a function that returns an unconstrained
11425 type with default discriminant.
11426
11427 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11428
11429 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
11430 non-conversion to the nominal result type at the end.
11431
11432 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
11433
11434 * gcc-interface/trans.c (create_temporary): New function taken from...
11435 (create_init_temporary): ...here. Call it.
11436 (call_to_gnu): Create the temporary for the return value early, if any.
11437 Create it for a function with copy-in/copy-out parameters if there is
11438 no target; in other cases of copy-in/copy-out, use another temporary.
11439 Push the new binding level lazily. Add and rename local variables.
11440
11441 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
11442
11443 * gcc-interface/decl.c (validate_size): Improve comments and tweak
11444 error message.
11445 (set_rm_size): Likewise.
11446
11447 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
11448
11449 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
11450 for the padded type built in order to support a specified alignment.
11451 Fix incorrect formatting.
11452
11453 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11454
11455 PR bootstrap/48216
11456 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
11457
11458 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11459
11460 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
11461 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
11462 to the end of the list. Adjust recursive call. Rename local variable.
11463 If REORDER is true, reorder components of the record type.
11464 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
11465 components_to_record and adjust the parameter list.
11466
11467 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11468
11469 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
11470 disabled, use the variable for bounds of loop iteration scheme.
11471
11472 2011-03-21 Kai Tietz <ktietz@redhat.com>
11473
11474 PR target/12171
11475 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
11476
11477 2011-03-17 Eric Botcazou <ebotcazou@adacore.com>
11478
11479 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
11480 out whether the expression is read-only. Short-circuit placeholder
11481 case and rename a couple of local variables.
11482
11483 2011-03-17 Eric Botcazou <ebotcazou@adacore.com>
11484
11485 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
11486 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
11487 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
11488 (convert): Deal with conversions from a smaller form type specially.
11489
11490 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11491
11492 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
11493 its argument, except for the special -I- switch.
11494
11495 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
11496
11497 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
11498 "Ada Issues".
11499
11500 2011-02-08 Eric Botcazou <ebotcazou@adacore.com>
11501
11502 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
11503
11504 2011-02-03 Eric Botcazou <ebotcazou@adacore.com>
11505
11506 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
11507 GNAT_FORMAL.
11508 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
11509 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
11510 instead of GNAT_FORMAL. Protect the expression against multiple uses.
11511 Do not generate the check directly, instead instantiate the template
11512 check present in the descriptor.
11513 (make_descriptor_field): Move around.
11514 (build_vms_descriptor32): Build a template check in the POINTER field.
11515 (build_vms_descriptor): Remove useless suffixes.
11516 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
11517
11518 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11519
11520 PR bootstrap/47467
11521 * targext.c: Include target files if IN_RTS is defined.
11522
11523 2011-01-26 Richard Guenther <rguenther@suse.de>
11524
11525 PR bootstrap/47467
11526 * targext.c: Include config.h.
11527 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
11528 dependency.
11529
11530 2011-01-04 Pascal Obry <obry@adacore.com>
11531 Eric Botcazou <ebotcazou@adacore.com>
11532
11533 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
11534
11535 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11536
11537 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
11538 end-of-case on the end label and its associated gotos, if any.
11539
11540 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11541
11542 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
11543 expressions of the parameter cache within the statement group of
11544 the CICO mechanism.
11545
11546 2011-01-04 Olivier Hainque <hainque@adacore.com>
11547 Eric Botcazou <ebotcazou@adacore.com>
11548
11549 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
11550 (set_end_locus_from_node): New function.
11551 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
11552 make and the function end_locus.
11553 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
11554 for the elaboration subprogram.
11555 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
11556 set the end_locus of the expression as well.
11557
11558 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11559
11560 PR ada/47131
11561 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
11562 variables that are referenced in exception handlers volatile.
11563
11564
11565 \f
11566 Copyright (C) 2011 Free Software Foundation, Inc.
11567
11568 Copying and distribution of this file, with or without modification,
11569 are permitted in any medium without royalty provided the copyright
11570 notice and this notice are preserved.
11571
11572 * gnat_rm.texi: Ramification of pragma Eliminate documentation
11573 - fix bugs in the description of Source_Trace;
11574 - get rid of UNIT_NAME;
11575
11576 2011-08-02 Javier Miranda <miranda@adacore.com>
11577
11578 * exp_ch9.adb
11579 (Build_Dispatching_Requeue): Adding support for VM targets
11580 since we cannot directly reference the Tag entity.
11581 * exp_sel.adb (Build_K): Adding support for VM targets.
11582 (Build_S_Assignment): Adding support for VM targets.
11583 * exp_disp.adb
11584 (Default_Prim_Op_Position): In VM targets do not restrict availability
11585 of predefined interface primitives to compiling in Ada 2005 mode.
11586 (Is_Predefined_Interface_Primitive): In VM targets this service is not
11587 restricted to compiling in Ada 2005 mode.
11588 (Make_VM_TSD): Generate code that declares and initializes the OSD
11589 record. Needed to support dispatching calls through synchronized
11590 interfaces.
11591 * exp_ch3.adb
11592 (Make_Predefined_Primitive_Specs): Enable generation of predefined
11593 primitives associated with synchronized interfaces.
11594 (Make_Predefined_Primitive_Bodies): Enable generation of predefined
11595 primitives associated with synchronized interfaces.
11596
11597 2011-08-02 Yannick Moy <moy@adacore.com>
11598
11599 * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of
11600 statements hidden in SPARK if preceded by the HIDE directive
11601 (Parse_Exception_Handlers): mark each exception handler in a sequence of
11602 exception handlers as hidden in SPARK if preceded by the HIDE directive
11603 * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK
11604 if starting with the HIDE directive
11605 * par-ch7.adb (P_Package): mark a package body hidden in SPARK if
11606 starting with the HIDE directive; mark the declarations in a private
11607 part as hidden in SPARK if the private part starts with the HIDE
11608 directive
11609 * restrict.adb, restrict.ads
11610 (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK
11611 (Is_In_Hidden_Part_In_SPARK): new function which returns whether its
11612 argument node belongs to a part which is hidden in SPARK
11613 (Check_SPARK_Restriction): do not issue violations on nodes in hidden
11614 parts in SPARK; protect the possibly costly call to
11615 Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on
11616 * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration
11617 * scng.adb (Accumulate_Token_Checksum_GNAT_6_3,
11618 Accumulate_Token_Checksum_GNAT_5_03): add case for new token
11619 Tok_SPARK_Hide.
11620 (Scan): recognize special comment starting with '#' and followed by
11621 SPARK keyword "hide" as a HIDE directive.
11622
11623 2011-08-02 Yannick Moy <moy@adacore.com>
11624
11625 * types.ads, erroutc.ads: Minor reformatting.
11626
11627 2011-08-02 Vincent Celier <celier@adacore.com>
11628
11629 * link.c: Add response file support for cross platforms.
11630
11631 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11632
11633 * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression
11634 in an association, set parent field of copy before partial analysis.
11635 * sem_res.adb (Resolve_Slice): create reference to itype only when
11636 expansion is enabled.
11637
11638 2011-08-02 Yannick Moy <moy@adacore.com>
11639
11640 * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set
11641 for new flag denoting which subprogram bodies are in ALFA
11642 * restrict.adb, sem_ch7.adb: Update comment
11643 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
11644 sem_ch9.adb, sem_res.adb: Add calls to
11645 Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs.
11646 * sem_ch6.adb (Analyze_Function_Return): add calls to
11647 Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the
11648 middle of the body, and extended return.
11649 (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument
11650 False when missing return.
11651 (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA
11652 to True for subprograms whose spec is in ALFA. Remove later on the flag
11653 on the entity used for a subprogram body when there exists a separate
11654 declaration.
11655 * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA):
11656 if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to
11657 False, otherwise do nothing.
11658
11659 2011-08-02 Robert Dewar <dewar@adacore.com>
11660
11661 * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
11662
11663 2011-08-02 Yannick Moy <moy@adacore.com>
11664
11665 * sem_ch4.ads: minor formatting.
11666
11667 2011-08-02 Yannick Moy <moy@adacore.com>
11668
11669 * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb,
11670 debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb,
11671 errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb,
11672 restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb,
11673 opt.ads: cleanup of SPARK mode
11674
11675 2011-08-02 Yannick Moy <moy@adacore.com>
11676
11677 * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard
11678 types.
11679 * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities
11680 (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA
11681 * sem_ch3.adb
11682 (Analyze_Object_Declaration): set Is_In_ALFA flag for objects
11683 (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes
11684 (Constrain_Integer): set Is_In_ALFA flag for integer subtypes
11685 (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration
11686 types.
11687 (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with
11688 non-static range.
11689 * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for
11690 functions whose return type is not in ALFA.
11691 (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram
11692 specifications.
11693 (Process_Formals): unset Is_In_ALFA flag for subprograms if a
11694 parameter's type is not in ALFA.
11695 * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard
11696 types are in ALFA.
11697
11698 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11699
11700 * sem_ch6 (Analyze_Expression_Function): treat the function as
11701 Inline_Always, and introduce a subprogram declaration for it when it is
11702 not a completion.
11703 * inline.adb (Add_Inlined_Body): recognize bodies that come from
11704 expression functions, so that the back-end can determine whether they
11705 can in fact be inlined.
11706 * sem_util.adb (Is_Expression_Function): predicate to determine whether
11707 a function body comes from an expression function.
11708
11709 2011-08-02 Gary Dismukes <dismukes@adacore.com>
11710
11711 * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming
11712 null exclusions to test Can_Never_Be_Null on the anonymous access types
11713 of the formals rather than testing the formals themselves. Exclude this
11714 check in cases where the Old_Formal is marked as a controlling formal,
11715 to avoid issuing spurious errors for bodies completing dispatching
11716 operations (due to the flag not getting set on controlling access
11717 formals in body specs).
11718 (Find_Corresponding_Spec): When checking full and subtype conformance of
11719 subprogram bodies in instances, pass Designated and E in that order, for
11720 consistency with the expected order of the formals (New_Id followed by
11721 Old_Id).
11722
11723 2011-08-02 Robert Dewar <dewar@adacore.com>
11724
11725 * sem_ch8.adb: Minor reformatting.
11726
11727 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11728
11729 * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure
11730 Check_Class_Wide_Actual, to implement AI05-0071, on defaulted
11731 primitive operations of class-wide actuals.
11732
11733 2011-08-02 Javier Miranda <miranda@adacore.com>
11734
11735 * exp_atag.ads, exp_atag.adb
11736 (Build_Common_Dispatching_Select_Statements): Remove argument Loc
11737 since its value is implicitly passed in argument Typ.
11738 * exp_disp.adb (Make_Disp_Conditional_Select_Body,
11739 Make_Disp_Timed_Select_Body): Remove Loc in calls to routine
11740 Build_Common_Dispatching_Select_Statements.
11741
11742 2011-08-02 Robert Dewar <dewar@adacore.com>
11743
11744 * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads,
11745 exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments.
11746 Minor reformatting.
11747
11748 2011-08-02 Robert Dewar <dewar@adacore.com>
11749
11750 * sem_res.adb: Minor reformatting.
11751 * sem_prag.adb: Minor reformatting.
11752
11753 2011-08-02 Javier Miranda <miranda@adacore.com>
11754
11755 * exp_atag.adb, exp_atags.ads
11756 (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr
11757 by the tagged type Entity. Required to use this routine in the VM
11758 targets since we do not have available the Tag entity in the VM
11759 platforms.
11760 * exp_ch6.adb
11761 (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package
11762 Ada.Tags has not been previously loaded.
11763 * exp_ch7.adb
11764 (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke
11765 Build_VM_TSDs if package Ada.Tags has not been previously loaded.
11766 * sem_aux.adb
11767 (Enclosing_Dynamic_Scope): Add missing support to handle the full
11768 view of enclosing scopes. Required to handle enclosing scopes that
11769 are synchronized types whose full view is a task type.
11770 * exp_disp.adb
11771 (Build_VM_TSDs): Minor code improvement to avoid generating and
11772 analyzing lists with empty nodes.
11773 (Make_Disp_Asynchronous_Select_Body): Add support for VM targets.
11774 (Make_Disp_Conditional_Select_Body): Add support for VM targets.
11775 (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets.
11776 (Make_Disp_Timed_Select_Body): Add support for VM targets.
11777 (Make_Select_Specific_Data_Table): Add support for VM targets.
11778 (Make_VM_TSD): Generate code to initialize the SSD structure of
11779 the TSD.
11780
11781 2011-08-02 Yannick Moy <moy@adacore.com>
11782
11783 * lib-writ.adb (Write_ALI): when ALFA mode is set, write local
11784 cross-references section in ALI.
11785 * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub
11786 (enclosing subprogram), Slc (location of Sub) and Sun (unit number of
11787 Sub).
11788 (Enclosing_Subprogram_Or_Package): new function to return the enclosing
11789 subprogram or package entity of a node
11790 (Is_Local_Reference_Type): new function returns True for references
11791 selected in local cross-references.
11792 (Lt): function extracted from Lt in Output_References
11793 (Write_Entity_Name): function extracted from Output_References
11794 (Generate_Definition): generate reference with type 'D' for definition
11795 of objects (object declaration and parameter specification), with
11796 appropriate locations and units, for use in local cross-references.
11797 (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created
11798 references of type 'I' for initialization in object definition.
11799 (Output_References): move part of function Lt and procedure
11800 Write_Entity_Name outside of the body. Ignore references of types 'D'
11801 and 'I' introduced for local cross-references.
11802 (Output_Local_References): new procedure to output the local
11803 cross-references sections.
11804 (Lref_Entity_Status): new array defining whether an entity is a local
11805 * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference
11806 with 'I' type when initialization expression is present.
11807 * get_scos.adb, get_scos.ads: Correct comments and typos
11808
11809 2011-08-02 Javier Miranda <miranda@adacore.com>
11810
11811 * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in
11812 the JVM target.
11813 * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in
11814 the JVM target.
11815 * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no
11816 TSD support.
11817
11818 2011-08-02 Vincent Celier <celier@adacore.com>
11819
11820 * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line
11821 (No_Space_Img): New function
11822 (Find_Excluded_Sources): When reading from a file, record the file name
11823 and the line number for each excluded source.
11824 (Mark_Excluded_Sources): When reporting an error, if the excluded
11825 sources were read from a file, include file name and line number in
11826 the error message.
11827
11828 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11829
11830 * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2).
11831
11832 2011-08-02 Robert Dewar <dewar@adacore.com>
11833
11834 * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting
11835
11836 2011-08-02 Javier Miranda <miranda@adacore.com>
11837
11838 * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
11839 generation of TSDs to the DOTNET compiler.
11840 * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
11841 generation of TSDs to the DOTNET compiler.
11842
11843 2011-08-02 Javier Miranda <miranda@adacore.com>
11844
11845 * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
11846 record of all the tagged types declared inside library level package
11847 declarations, library level package bodies or library level subprograms.
11848 * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD
11849 associated with a given tagged type.
11850 (Build_VM_TSDs): New subprogram.
11851 * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main
11852 compilation units that are subprograms.
11853 * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main
11854 compilation units that are package bodies.
11855 (Expand_N_Package_Declaration): Generate TSDs of the main compilation
11856 units that are a package declaration or a package instantiation.
11857 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code
11858 reorganization to improve the error generated by the frontend when the
11859 function Ada.Tags.Secondary_Tag is not available.
11860 * rtsfind.ads (RE_Register_TSD): New runtime entity.
11861 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup.
11862
11863 2011-08-02 Javier Miranda <miranda@adacore.com>
11864
11865 * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode.
11866
11867 2011-08-02 Robert Dewar <dewar@adacore.com>
11868
11869 * s-imenne.ads: Minor reformatting.
11870
11871 2011-08-02 Robert Dewar <dewar@adacore.com>
11872
11873 * a-stunau.ads: Add pragma Suppress_Initialization for Big_String
11874 * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed
11875 * s-stalib.ads: Add pragma Suppress_Initialization for Big_String
11876
11877 2011-08-02 Robert Dewar <dewar@adacore.com>
11878
11879 * einfo.ads (Materialize_Entity): Document this is only for renamings
11880 * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate
11881 required debug information in the case where we transform the object
11882 declaration into a renaming declaration.
11883 * exp_ch4.adb (Expand_Concatenate): Generate debug info for result
11884 object
11885 * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of
11886 Materialize_Entity.
11887
11888 2011-08-02 Robert Dewar <dewar@adacore.com>
11889
11890 * einfo.ads, einfo.adb (Suppress_Initialization): Replaces
11891 Suppress_Init_Procs.
11892 * exp_ch3.adb, exp_disp.adb, freeze.adb: Use
11893 Suppress_Initialization/Initialization_Suppressed.
11894 * gnat_rm.texi: New documentation for pragma Suppress_Initialization
11895 * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function
11896 * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed
11897 * sem_prag.adb: New processing for pragma Suppress_Initialization.
11898
11899 2011-08-02 Robert Dewar <dewar@adacore.com>
11900
11901 * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb:
11902 Minor reformatting.
11903
11904 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11905
11906 * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can
11907 only have inheritable classwide pre/postconditions.
11908
11909 2011-08-02 Javier Miranda <miranda@adacore.com>
11910
11911 * a-tags.ads, a-tags.adb (Check_TSD): New subprogram.
11912 * rtsfind.ads (RE_Check_TSD): New runtime entity.
11913 * exp_disp.adb (Make_DT): Generate call to the new runtime routine that
11914 checks if the external tag of a type is the same as the external tag
11915 of some other declaration.
11916
11917 2011-08-02 Thomas Quinot <quinot@adacore.com>
11918
11919 * s-taskin.ads: Minor reformatting.
11920
11921 2011-08-02 Emmanuel Briot <briot@adacore.com>
11922
11923 * g-comlin.adb (Display_Help): swap the order in which it prints the
11924 short help and the general usage.
11925
11926 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11927
11928 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly
11929 the aspect declarations and attach them to the generic copy for
11930 subsequent analysis.
11931 (Analyze_Subprogram_Instantiation): copy explicitly the aspect
11932 declarations of the generic tree to the new subprogram declarations.
11933 * sem_attr.adb (Check_Precondition_Postcondition): recognize
11934 conditions that apply to a subprogram instance.
11935
11936 2011-08-02 Robert Dewar <dewar@adacore.com>
11937
11938 * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project].
11939
11940 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11941
11942 * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged
11943 private type with a tagged full view is not derived in the immediate
11944 scope of the partial view, (RM 7.3 (7)) use the scope of the base type.
11945
11946 2011-08-02 Robert Dewar <dewar@adacore.com>
11947
11948 * exp_ch4.adb: Minor reformatting.
11949
11950 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11951
11952 * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an
11953 Ada2012 iterator, the loop will be rewritten during expansion into a
11954 while loop with a cursor and an element declaration. Do not analyze the
11955 body in this case, because if the container is for indefinite types the
11956 actual subtype of the elements will only be determined when the cursor
11957 declaration is analyzed.
11958
11959 2011-08-02 Arnaud Charlet <charlet@adacore.com>
11960
11961 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore
11962 size/alignment related attributes in CodePeer_Mode.
11963
11964 2011-08-02 Gary Dismukes <dismukes@adacore.com>
11965
11966 * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to
11967 Prepend_Element, since this can result in the operation getting the
11968 wrong slot in the full type's dispatch table if the full type has
11969 inherited operations. The incomplete type's operation will get added
11970 to the proper position in the full type's primitives
11971 list later in Sem_Disp.Check_Operation_From_Incomplete_Type.
11972 (Process_Incomplete_Dependents): Add Is_Primitive test when checking for
11973 dispatching operations, since there are cases where nonprimitive
11974 subprograms can get added to the list of incomplete dependents (such
11975 as subprograms in nested packages).
11976 * sem_ch6.adb (Process_Formals): First, remove test for being in a
11977 private part when determining whether to add a primitive with a
11978 parameter of a tagged incomplete type to the Private_Dependents list.
11979 Such primitives can also occur in the visible part, and should not have
11980 been excluded from being private dependents.
11981 * sem_ch7.adb (Uninstall_Declarations): When checking the rule of
11982 RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents
11983 list of a Taft-amendment incomplete type is a primitive before issuing
11984 an error that the full type must appear in the same unit. There are
11985 cases where nonprimitives can be in the list (such as subprograms in
11986 nested packages).
11987 * sem_disp.adb (Derives_From): Use correct condition for checking that
11988 a formal's type is derived from the type of the corresponding formal in
11989 the parent subprogram (the condition was completely wrong). Add
11990 checking that was missing for controlling result types being derived
11991 from the result type of the parent operation.
11992
11993 2011-08-02 Yannick Moy <moy@adacore.com>
11994
11995 * errout.adb (First_Node): minor renaming
11996 * restrict.adb (Check_Formal_Restriction): put restriction warning on
11997 first node.
11998
11999 2011-08-02 Yannick Moy <moy@adacore.com>
12000
12001 * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator
12002 before accessing operands.
12003 * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to
12004 decide whether an initialization expression respects SPARK rules, as
12005 the plain node is the expanded one. This allows for more valid warnings
12006 to be issued.
12007 * gnat_rm.texi: Minor update.
12008
12009 2011-08-02 Arnaud Charlet <charlet@adacore.com>
12010
12011 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert
12012 previous change.
12013
12014 2011-08-02 Robert Dewar <dewar@adacore.com>
12015
12016 * sem_ch3.adb, sem_ch4.adb: Minor reformatting.
12017
12018 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
12019
12020 * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original
12021 loop statements and the element renaming declaration with a block when
12022 the element type is controlled.
12023
12024 2011-08-02 Yannick Moy <moy@adacore.com>
12025
12026 * sinfo.ads: Minor formatting.
12027
12028 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12029
12030 * sem_aggr.adb (Add_Association): if the association has a box and no
12031 expression, use the Sloc of the aggregate itself for the new
12032 association.
12033 * errout.adb (First_Node): Exclude nodes with no Sloc, and always use
12034 the Original_Node.
12035
12036 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
12037
12038 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring.
12039 When a container is provided via a function call, generate a renaming
12040 of the function result. This avoids the creation of a transient scope
12041 and the premature finalization of the container.
12042 * exp_ch7.adb (Is_Container_Cursor): Removed.
12043 (Wrap_Transient_Declaration): Remove the supression of the finalization
12044 of the list controller when the declaration denotes a container cursor,
12045 it is not needed.
12046
12047 2011-08-02 Yannick Moy <moy@adacore.com>
12048
12049 * restrict.adb (Check_Formal_Restriction): only issue a warning if the
12050 node is from source, instead of the original node being from source.
12051 * sem_aggr.adb
12052 (Resolve_Array_Aggregate): refine the check for a static expression, to
12053 recognize also static ranges
12054 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration,
12055 Array_Type_Declaration): postpone the test for the type being a subtype
12056 mark after the type has been resolved, so that component-selection and
12057 expanded-name are discriminated.
12058 (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm
12059 to distinguish the case of an iteration scheme, so that an error is
12060 issed on a non-static range in SPARK except in an iteration scheme.
12061 * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with
12062 In_Iter_Schm = True.
12063 * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for
12064 user-defined operators so that they are allowed in renaming
12065 * sem_ch8.adb
12066 (Find_Selected_Component): refine the check for prefixing of operators
12067 so that they are allowed in renaming. Move the checks for restrictions
12068 on selector name after analysis discriminated between
12069 component-selection and expanded-name.
12070 * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on
12071 concatenation argument of string type if it is static.
12072 * sem_util.adb, sem_util.ads
12073 (Check_Later_Vs_Basic_Declarations): add a new function
12074 Is_Later_Declarative_Item to decice which declarations are allowed as
12075 later items, in the two different modes Ada 83 and SPARK. In the SPARK
12076 mode, add that renamings are considered as later items.
12077 (Enclosing_Package): new function to return the enclosing package
12078 (Enter_Name): correct the rule for homonyms in SPARK
12079 (Is_SPARK_Initialization_Expr): default to returning True on nodes not
12080 from source (result of expansion) to avoid issuing wrong warnings.
12081
12082 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12083
12084 * errout.adb: On anything but an expression First_Node returns its
12085 argument.
12086
12087 2011-08-02 Pascal Obry <obry@adacore.com>
12088
12089 * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting.
12090
12091 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
12092
12093 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization.
12094 Set the associated loop as the related expression of internally
12095 generated cursors.
12096 * exp_ch7.adb (Is_Container_Cursor): New routine.
12097 (Wrap_Transient_Declaration): Supress the finalization of the list
12098 controller when the declaration denotes a container cursor.
12099
12100 2011-08-02 Yannick Moy <moy@adacore.com>
12101
12102 * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through
12103 command line now.
12104 * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the
12105 expression is a simple expression. This check cannot be performed in
12106 the semantics, so just drop it.
12107 (P_Index_Or_Discriminant_Constraint): move check that the index or
12108 discriminant is a subtype mark to Analyze_Subtype_Declaration in the
12109 semantics. Other cases were previously checked in the semantics.
12110 * par-ch4.adb (P_Name): move checks that a selector name is not
12111 character literal or an operator symbol to Find_Selected_Component in
12112 the semantics
12113 * par-ch5.adb (Parse_Decls_Begin_End): move check that basic
12114 declarations are not placed after later declarations in a separate
12115 procedure in Sem_Util (possibly not the best choice?), to be used both
12116 during parsing, for Ada 83 mode, and during semantic analysis, for
12117 SPARK mode.
12118 * par-endh.adb (Check_End): move check that end label is not missing
12119 to Process_End_Label in the semantics
12120 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove
12121 the special case for SPARK restriction
12122 * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End
12123 * restrict.adb, restrict.ads (Check_Formal_Restriction): add a
12124 parameter Force to issue the error message even on internal node (used
12125 for generated end label). Call Check_Restriction to check when an error
12126 must be issued. In SPARK mode, issue an error message even if the
12127 restriction is not set.
12128 (Check_Restriction): new procedure with an additional out parameter to
12129 inform the caller that a message has been issued
12130 * sem_aggr.adb: Minor modification of message
12131 * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction
12132 instead of issuing an error message directly
12133 * sem_ch3.adb (Analyze_Declarations): move here the check that basic
12134 declarations are not placed after later declarations, by calling
12135 Check_Later_Vs_Basic_Declarations
12136 (Analyze_Subtype_Declaration): move here the check that an index or
12137 discriminant constraint must be a subtype mark. Change the check that
12138 a subtype of String must start at one so that it works on subtype marks.
12139 * sem_ch4.adb (Analyze_Call): move here the check that a named
12140 association cannot follow a positional one in a call
12141 * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction
12142 instead of issuing an error message directly
12143 * sem_ch8.adb (Find_Selected_Component): move here the check that a
12144 selector name is not a character literal or an operator symbol. Move
12145 here the check that the prefix of an expanded name cannot be a
12146 subprogram or a loop statement.
12147 * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new
12148 procedure called from parsing and semantics to check that basic
12149 declarations are not placed after later declarations
12150 (Process_End_Label): move here the check that end label is not missing
12151
12152 2011-08-02 Arnaud Charlet <charlet@adacore.com>
12153
12154 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum
12155 representation clause in codepeer mode, since it confuses CodePeer and
12156 does not bring useful info.
12157
12158 2011-08-02 Ed Falis <falis@adacore.com>
12159
12160 * init.c: initialize fp hw on MILS.
12161
12162 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12163
12164 * errout.adb (First_Node): for bodies, return the node itself (small
12165 optimization). For other nodes, do not check source_unit if the node
12166 comes from Standard.
12167
12168 2011-08-02 Robert Dewar <dewar@adacore.com>
12169
12170 * exp_ch3.adb: Minor comment additions.
12171 * sem_ch13.adb: Minor reformatting.
12172
12173 2011-08-02 Pascal Obry <obry@adacore.com>
12174
12175 * make.adb, makeutl.adb: Removes some superfluous directory separator.
12176
12177 2011-08-02 Robert Dewar <dewar@adacore.com>
12178
12179 * sem_attr.adb: Minor reformatting.
12180
12181 2011-08-02 Robert Dewar <dewar@adacore.com>
12182
12183 * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value
12184 (Has_Default_Component_Value): Removed
12185 * einfo.ads Comment updates
12186 (Has_Default_Aspect): Replaces Has_Default_Value
12187 (Has_Default_Component_Value): Removed
12188 * exp_ch13.adb
12189 (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects
12190 * exp_ch3.adb
12191 (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects
12192 (Get_Simple_Init_Val): Handle Default_Value aspect
12193 (Needs_Simple_Initialization): Handle Default_Value aspect
12194 * exp_ch3.ads: Needs_Simple_Initialization
12195 * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect
12196 * par-prag.adb (Pragma_Default[_Component]Value) Removed
12197 * sem_ch13.adb
12198 (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects
12199 * sem_prag.adb (Pragma_Default[_Component]Value) Removed
12200 * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed
12201
12202 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12203
12204 * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate
12205 package containing iteration primitives.
12206 exp_ch5.adb (Expand_Iterator_Loop): ditto.
12207
12208 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12209
12210 * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with
12211 "of", pre-analyze expression in case it is a function call with
12212 finalization actions that must be placed ahead of the loop.
12213 * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present
12214 on an Ada2012 iterator, insert them ahead of the rewritten loop.
12215
12216 2011-08-02 Geert Bosch <bosch@adacore.com>
12217
12218 * cstand.adb (Create_Float_Types): Only consider C's long double for
12219 Long_Long_Float, in addition to double.
12220
12221 2011-08-02 Robert Dewar <dewar@adacore.com>
12222
12223 * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads,
12224 sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads,
12225 prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb:
12226 Minor reformatting.
12227
12228 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12229
12230 * sem_attr.adb: handle properly 'Result when it is a prefix of an
12231 indexed component.
12232
12233 2011-08-02 Javier Miranda <miranda@adacore.com>
12234
12235 * einfo.ads, einfo.adb
12236 (Original_Access_Type): Move this attribute to Node26 since there was
12237 an undocumented use of Node21 in E_Access_Subprogram_Type entities
12238 which causes conflicts and breaks the generation of the .NET compiler.
12239 (Interface_Name): Add missing documentation on JGNAT only uses of
12240 this attribute.
12241
12242 2011-08-02 Geert Bosch <bosch@adacore.com>
12243
12244 * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist
12245 (Find_Back_End_Float_Type): Likewise
12246 (Create_Back_End_Float_Types): Likewise
12247 (Create_Float_Types): Likewise
12248 (Register_Float_Type): Likewise
12249 * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of
12250 Nlist and split out type selection in new local Find_Base_Type function.
12251 * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of
12252 Nlist
12253 * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist
12254
12255 2011-08-02 Robert Dewar <dewar@adacore.com>
12256
12257 * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in
12258 alpha order).
12259 * opt.ads: Minor comment change.
12260 * sem_ch12.adb: Minor code reorganization.
12261
12262 2011-08-02 Gary Dismukes <dismukes@adacore.com>
12263
12264 * sem_ch3.adb (Complete_Private_Subtype): Don't append the private
12265 subtype's list of rep items to the list on the full subtype in the case
12266 where the lists are the same.
12267
12268 2011-08-02 Geert Bosch <bosch@adacore.com>
12269
12270 * switch-c.adb (Free): New deallocation procedure to avoid implicitly
12271 using the one from System.Strings, which also deallocates all strings.
12272
12273 2011-08-02 Geert Bosch <bosch@adacore.com>
12274
12275 * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New
12276 function.
12277 * gcc-interface/Make-lang.in: Update dependencies.
12278
12279 2011-08-02 Olivier Hainque <hainque@adacore.com>
12280
12281 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function
12282 end_locus.
12283
12284 2011-08-02 Javier Miranda <miranda@adacore.com>
12285
12286 * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals
12287 associated with anonymous access to subprograms.
12288
12289 2011-08-02 Geert Bosch <bosch@adacore.com>
12290
12291 * opt.ads
12292 (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions.
12293 (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition.
12294 * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads
12295 (Add_Symbol_Definition): Move to switch-c.adb
12296 (Process_Command_Line_Symbol_Definitions): Adjust references to above.
12297 * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation.
12298 (Add_Symbol_Definition): Move to switch-c.adb.
12299 * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw.
12300 * sem_warn.adb
12301 (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
12302 Move to warnsw.adb.
12303 * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size,
12304 Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
12305 Move to warnsw.adb.
12306 * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw.
12307 (Add_Symbol_Definition): Moved from Prepcomp.
12308 * switch-c.ads: Update copyright notice. Use String_List instead of
12309 Argument_List, removing dependency on System.OS_Lib.
12310
12311 2011-08-02 Yannick Moy <moy@adacore.com>
12312
12313 * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal
12314 mode on initialization expression which does not respect SPARK
12315 restrictions.
12316 * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines
12317 if the tree referenced by its argument represents an initialization
12318 expression in SPARK, suitable for initializing an object in an object
12319 declaration.
12320
12321 2011-08-02 Javier Miranda <miranda@adacore.com>
12322
12323 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the
12324 internally generated access to subprogram with its associated protected
12325 subprogram type.
12326 * einfo.ads, einfo.adb (Original_Access_Type): New attribute.
12327
12328 2011-08-02 Geert Bosch <bosch@adacore.com>
12329
12330 * cstand.adb (Register_Float_Type): Print information about type to
12331 register, if the Debug_Flag_Dot_B is set.
12332 * debug.adb (Debug_Flag_Dot_B): Document d.b debug option.
12333 * rtsfind.ads (RE_Max_Base_Digits): New run time entity.
12334 * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations
12335 with a requested precision of more than Max_Digits digits and no more
12336 than Max_Base_Digits digits, if a range specification is present and the
12337 Predefined_Float_Types list has a suitable type to derive from.
12338 * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the
12339 case of type completion with pragma Import
12340 * sem_prag.adb
12341 (Process_Import_Predefined_Type): Processing to complete a type
12342 with pragma Import. Currently supports floating point types only.
12343 (Set_Convention_From_Pragma): Do nothing without underlying type.
12344 (Process_Convention): Guard against absence of underlying type,
12345 which may happen when importing incomplete types.
12346 (Process_Import_Or_Interface): Handle case of importing predefined
12347 types. Tweak error message.
12348
12349 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12350
12351 * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined
12352 functions to previous change. Reorganize code slightly.
12353
12354 2011-08-02 Geert Bosch <bosch@adacore.com>
12355
12356 * back_end.ads (Register_Type_Proc): New call back procedure type for
12357 allowing the back end to provide information about available types.
12358 (Register_Back_End_Types): New procedure to register back end types.
12359 * back_end.adb (Register_Back_End_Types): Call the back end to enumerate
12360 available types.
12361 * cstand.adb (Back_End_Float_Types): New list for floating point types
12362 supported by the back end.
12363 (Build_Float_Type): Add extra parameter for Float_Rep_Kind.
12364 (Copy_Float_Type): New procedure to make new copies of predefined types.
12365 (Register_Float_Type): New call back procedure to populate the BEFT list
12366 (Find_Back_End_Float_Type): New procedure to find a BEFT by name
12367 (Create_Back_End_Float_Types): New procedure to populate the BEFT list.
12368 (Create_Float_Types): New procedure to create entities for floating
12369 point types predefined in Standard, and put these and any remaining
12370 BEFTs on the Predefined_Float_Types list.
12371 * stand.ads (Predefined_Float_Types): New list for predefined floating
12372 point types that do not have declarations in package Standard.
12373
12374 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12375
12376 * inline.adb (Get_Code_Unit_Entity): New local function. Returns the
12377 entity node for the unit containing the parameter.
12378 (Add_Inlined_Body): Use it to find the unit containing the subprogram.
12379 (Add_Inlined_Subprogram): Likewise.
12380 * gcc-interface/Make-lang.in: Update dependencies.
12381
12382 2011-08-02 Thomas Quinot <quinot@adacore.com>
12383
12384 * s-stusta.adb (Print): Make sure Pos is always initialized to a
12385 suitable value.
12386
12387 2011-08-02 Geert Bosch <bosch@adacore.com>
12388
12389 * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image.
12390
12391 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12392
12393 * sem_type.adb (Covers): Move trivial case to the top and reuse the
12394 computed value of Base_Type.
12395
12396 2011-08-02 Yannick Moy <moy@adacore.com>
12397
12398 * restrict.adb (Check_Restriction): issue an error for any use of
12399 class-wide, even if the No_Dispatch restriction is not set.
12400 * sem_aggr.adb: Correct typos in comments and messages in formal mode
12401 * sem_ch3.adb (Process_Full_View): issue an error in formal mode is,
12402 when completing a private extension, the type named in the private part
12403 is not the same as that named in the visible part.
12404 * sem_res.adb (Resolve_Call): issue an error in formal mode on the use
12405 of an inherited primitive operations of a tagged type or type extension
12406 that returns the tagged type.
12407 * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new
12408 function which returns True for an implicit operation inherited by the
12409 derived type declaration for the argument type.
12410 (Is_SPARK_Object_Reference): move to appropriate place in alphabetic
12411 order.
12412
12413 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12414
12415 * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from
12416 Process_Bounds, to perform analysis with expansion of a range or an
12417 expression that is the iteration scheme for a loop.
12418 (Analyze_Iterator_Specification): If domain of iteration is given by a
12419 function call with a controlled result, as is the case if call returns
12420 a predefined container, ensure that finalization actions are properly
12421 generated.
12422 * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range.
12423
12424 2011-08-02 Javier Miranda <miranda@adacore.com>
12425
12426 * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo.
12427 * gcc-interface/Make-lang.in: Update dependencies.
12428
12429 2011-08-02 Javier Miranda <miranda@adacore.com>
12430
12431 * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to
12432 determine if the analysis is performed using N or Original_Node (N).
12433 * exp_util.adb (Side_Effect_Free): Code cleanup since the new
12434 functionality of routine Is_Variable avoids code duplication.
12435 * checks.adb (Determine_Range): Handle temporaries generated by
12436 Remove_Side_Effects.
12437
12438 2011-08-02 Javier Miranda <miranda@adacore.com>
12439
12440 * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and
12441 expansion of the condition. Required since the previous analysis was
12442 done with expansion disabled (see Resolve_Quantified_Expression) and
12443 hence checks were not inserted and record comparisons have not been
12444 expanded.
12445
12446 2011-08-02 Ed Falis <falis@adacore.com>
12447
12448 * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads:
12449 Update header.
12450
12451 2011-08-02 Bob Duff <duff@adacore.com>
12452
12453 * opt.ads: Minor comment fix.
12454
12455 2011-08-02 Bob Duff <duff@adacore.com>
12456
12457 * sem_ch12.adb (Analyze_Package_Instantiation,
12458 Analyze_Subprogram_Instantiation): Turn off style checking while
12459 analyzing an instance. Whatever style checks that apply to the generic
12460 unit should apply, so it makes no sense to apply them in an instance.
12461 This was causing trouble when compiling an instance of a runtime
12462 unit that violates the -gnatyO switch.
12463 * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from
12464 one of the two case statements, causing spurious errors.
12465
12466 2011-08-02 Robert Dewar <dewar@adacore.com>
12467
12468 * uname.adb: Minor reformatting.
12469 * gnatcmd.adb: Minor reformatting.
12470 * exp_attr.adb: Minor reformatting.
12471
12472 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12473
12474 * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction
12475 No_Dispatching_Calls, do not look for the Assign primitive, because
12476 predefined primitives are not created in this case.
12477
12478 2011-08-02 Bob Duff <duff@adacore.com>
12479
12480 * stylesw.ads: Minor comment fixes.
12481
12482 2011-08-02 Robert Dewar <dewar@adacore.com>
12483
12484 * freeze.adb (Add_To_Result): New procedure.
12485
12486 2011-08-02 Jose Ruiz <ruiz@adacore.com>
12487
12488 * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run
12489 time, if the specific run-time routines for handling streams of strings
12490 are not available, use the default mechanism.
12491
12492 2011-08-02 Arnaud Charlet <charlet@adacore.com>
12493
12494 * s-regpat.ads: Fix typo.
12495
12496 2011-08-02 Vincent Celier <celier@adacore.com>
12497
12498 * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is
12499 not null, call it to create the in memory config project file without
12500 parsing an existing default config project file.
12501
12502 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12503
12504 * atree.adb (Allocate_Initialize_Node): Remove useless temporaries.
12505
12506 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12507
12508 * sem_elim.adb: an abstract subprogram does not need an eliminate
12509 pragma for its descendant to be eliminable.
12510
12511 2011-08-02 Ed Falis <falis@adacore.com>
12512
12513 * init.c: revert to handling before previous checkin for VxWorks
12514 * s-intman-vxworks.adb: delete unnecessary declarations related to
12515 using Ada interrupt facilities for handling signals.
12516 Delete Initialize_Interrupts. Use __gnat_install_handler instead.
12517 * s-intman-vxworks.ads: Import __gnat_install_handler as
12518 Initialize_Interrupts.
12519 * s-taprop-vxworks.adb: Delete Signal_Mask.
12520 (Abort_Handler): change construction of mask to unblock exception
12521 signals.
12522
12523 2011-08-02 Jerome Guitton <guitton@adacore.com>
12524
12525 * a-except-2005.adb (Raise_From_Signal_Handler): Call
12526 Debug_Raise_Exception before propagation starts.
12527
12528 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12529
12530 * exp_ch6.adb (Expand_Call): Guard restriction checks with a call
12531 to Restriction_Check_Required.
12532 * sem_ch3.adb (Analyze_Object_Declaration): Likewise.
12533 * sem_res.adb (Resolve_Call): Likewise.
12534 * sem_attr.adb (Check_Stream_Attribute): Likewise.
12535
12536 2011-08-02 Bob Duff <duff@adacore.com>
12537
12538 * stylesw.ads: Update comment.
12539 * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
12540 * errout.ads: Remove obsolete comment.
12541
12542 2011-08-02 Javier Miranda <miranda@adacore.com>
12543
12544 * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
12545 (Set_Is_Safe_To_Reevaluate): new procedure.
12546 * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
12547 assignment is allowed on safe-to-reevaluate variables.
12548 (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
12549 temporary created to remove side effects in expressions that use
12550 the secondary stack as safe-to-reevaluate.
12551 * exp_util.adb (Side_Effect_Free): Add missing code to handle well
12552 variables that are not true constants.
12553
12554 2011-08-02 Robert Dewar <dewar@adacore.com>
12555
12556 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
12557 sem_res.adb, sem_ch6.adb: Minor reformatting.
12558
12559 2011-08-02 Jerome Guitton <guitton@adacore.com>
12560
12561 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
12562
12563 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12564
12565 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
12566 not set Overridden_Operation if subprogram is an initialization
12567 procedure.
12568
12569 2011-08-02 Yannick Moy <moy@adacore.com>
12570
12571 * par-ch6.adb: Correct obsolete name in comments
12572 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
12573 which takes two message arguments (existing function takes one), with
12574 second message used for continuation.
12575 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
12576 block statements that originate from a source block statement, not
12577 generated block statements
12578 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
12579 symmetry with procedure case
12580 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
12581 function to issue an error in formal mode if a package specification
12582 contains more than one tagged type or type extension.
12583 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
12584 parameters matching formals of tagged types are objects (or ancestor
12585 type conversions of objects), not general expressions. Issue an error
12586 on view conversions that are not involving ancestor conversion of an
12587 extended type.
12588 (Resolve_Type_Conversion): in formal mode, issue an error on the
12589 operand of an ancestor type conversion which is not an object
12590 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
12591 procedure so that it works also for actuals of function calls
12592 (Is_Actual_Tagged_Parameter): new function which determines if its
12593 argument is an actual parameter of a formal of tagged type in a
12594 subprogram call
12595 (Is_SPARK_Object_Reference): new function which determines if the tree
12596 referenced by its argument represents an object in SPARK
12597
12598 2011-08-02 Robert Dewar <dewar@adacore.com>
12599
12600 * sem_ch3.adb: Minor reformatting
12601 Minor comment addition
12602 Minor error msg text change
12603
12604 2011-08-02 Javier Miranda <miranda@adacore.com>
12605
12606 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
12607 function. Used to be more precise when we generate a variable plus one
12608 assignment to remove side effects in the evaluation of the Bound
12609 expressions.
12610 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
12611 of the bound expression to force its re-analysis and thus expand the
12612 associated transient scope (if required). Code cleanup replacing the
12613 previous code that declared the constant entity by an invocation to
12614 routine Force_Evaluation which centralizes this work in the frontend.
12615
12616 2011-08-02 Robert Dewar <dewar@adacore.com>
12617
12618 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
12619 (Base_Type): Now uses improved Is_Base_Type function
12620 * einfo.ads (Base_Type): Inline this function
12621
12622 2011-08-02 Robert Dewar <dewar@adacore.com>
12623
12624 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
12625 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
12626
12627 2011-08-02 Arnaud Charlet <charlet@adacore.com>
12628
12629 * gcc-interface/Make-lang.in: Update dependencies.
12630 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
12631 targets.
12632
12633 2011-08-02 Yannick Moy <moy@adacore.com>
12634
12635 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
12636 non-simple expression used in delta constraint
12637 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
12638 index constraint which is not a subtype mark
12639 * par.adb: With and use Restrict
12640 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
12641 mode on component type which is not a subtype mark and default
12642 expression on component
12643 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
12644 of string which does not have a lower index bound equal to 1
12645 (Array_Type_Declaration): issue an error in formal mode on index or
12646 component type which is not a subtype mark, and on aliased keyword on
12647 component
12648 (Derived_Type_Declaration): issue an error in formal mode on interface,
12649 limited or abstract type
12650 (Record_Type_Declaration): issue an error in formal mode on interface
12651 (Record_Type_Definition): issue an error in formal mode on tagged types
12652 and type extensions not declared in the specification of a library unit
12653 package; on null non-tagged record; on variant part
12654
12655 2011-08-02 Vincent Celier <celier@adacore.com>
12656
12657 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
12658 not declared for qualified library project when Library_Name is not
12659 declared, but Library_Dir is.
12660
12661 2011-08-02 Robert Dewar <dewar@adacore.com>
12662
12663 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
12664 pragmas (affects aspects [Component_]Default_Value
12665 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
12666 component type for the resolution
12667
12668 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12669
12670 * einfo.adb (Base_Type): Tune implementation for speed.
12671
12672 2011-08-02 Robert Dewar <dewar@adacore.com>
12673
12674 * freeze.adb: Minor reformatting.
12675
12676 2011-08-02 Thomas Quinot <quinot@adacore.com>
12677
12678 * scos.ads: Update comments.
12679
12680 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12681
12682 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
12683 base type, because the parent may be a subtype of a private type whose
12684 convention is established in a private part.
12685
12686 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
12687
12688 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
12689 statement in a block when the expansion of the return expression has
12690 created a finalization chain.
12691 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
12692 with the parent node.
12693 Add N_Extended_Return_Statement to handle the case where a transient
12694 object declaration appears in the Return_Object_Declarations list of
12695 an extended return statement.
12696
12697 2011-08-02 Matthew Gingell <gingell@adacore.com>
12698
12699 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
12700 unused parameter 'name'.
12701
12702 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12703
12704 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
12705 inherited operation, check whether its alias, which is the source
12706 operastion that it renames, has been marked eliminated.
12707
12708 2011-08-02 Javier Miranda <miranda@adacore.com>
12709
12710 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
12711 in-mode parameter whose type is an access type since it can be used to
12712 modify its designated object. Enforce code that handles as safe an
12713 access type that is not access-to-constant but it is the result of a
12714 previous removal of side-effects.
12715 (Remove_Side_Effects): Minor code reorganization of cases which require
12716 no action. Done to incorporate documentation on new cases uncovered
12717 working in this ticket: no action needed if this routine was invoked
12718 too early and the nodes are not yet decorated.
12719 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
12720 to routine Remove_Side_Effects by calls to Force_Evaluation since they
12721 were issued with actuals that are implicitly provided by
12722 Force_Evaluation.
12723
12724 2011-08-02 Robert Dewar <dewar@adacore.com>
12725
12726 * sem_ch3.adb, sem_res.adb: Minor reformatting.
12727
12728 2011-08-02 Yannick Moy <moy@adacore.com>
12729
12730 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
12731 to issue an error in formal mode on attribute not supported in this mode
12732 (Analyze_Attribute): issue errors on standard attributes not supported
12733 in formal mode.
12734 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
12735 comment, and issue error in formal mode on modulus which is not a power
12736 of 2.
12737 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
12738 range.
12739 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
12740 subtype mark.
12741 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
12742 operator on modular type (except 'not').
12743
12744 2011-08-02 Robert Dewar <dewar@adacore.com>
12745
12746 * gnat_rm.texi: Minor reformatting.
12747
12748 2011-08-02 Arnaud Charlet <charlet@adacore.com>
12749
12750 * s-osinte-linux.ads: Minor comment update and reformatting.
12751 * i-cexten.ads: Make this unit pure, as for its parent.
12752 Will allow its usage in more contexts if needed.
12753
12754 2011-08-02 Robert Dewar <dewar@adacore.com>
12755
12756 * s-utf_32.ads: Minor comment fix.
12757
12758 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12759
12760 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
12761 operation of a tagged synchronized type, handle the case where the
12762 controlling argument is overloaded.
12763
12764 2011-08-02 Yannick Moy <moy@adacore.com>
12765
12766 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
12767 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
12768 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
12769 SPARK mode and formal verification mode on processing SPARK restriction
12770 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
12771 requiring consistency checking.
12772
12773 2011-08-02 Robert Dewar <dewar@adacore.com>
12774
12775 * sem_res.adb: Minor reformatting.
12776
12777 2011-08-02 Robert Dewar <dewar@adacore.com>
12778
12779 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
12780 a-cforse.ads: Remove unneeded with of Ada.Containers
12781 Remove commented out pragma Inline's
12782 Move specifications of new subprograms to the actual specs
12783
12784 2011-08-02 Yannick Moy <moy@adacore.com>
12785
12786 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
12787 a-cforse.ads: Update comments.
12788
12789 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12790
12791 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
12792
12793 2011-08-02 Robert Dewar <dewar@adacore.com>
12794
12795 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
12796 a-cforse.ads, a-cofove.ads: Minor reformatting.
12797
12798 2011-08-02 Claire Dross <dross@adacore.com>
12799
12800 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
12801 a-cofove.ads: Add comments.
12802
12803 2011-08-02 Yannick Moy <moy@adacore.com>
12804
12805 * gnat_rm.texi: Document formal containers.
12806
12807 2011-08-02 Emmanuel Briot <briot@adacore.com>
12808
12809 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
12810 are empty sections.
12811
12812 2011-08-02 Robert Dewar <dewar@adacore.com>
12813
12814 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
12815 reformatting.
12816
12817 2011-08-02 Robert Dewar <dewar@adacore.com>
12818
12819 * aspects.adb: New aspects Default_Value and Default_Component_Value
12820 New format of Aspect_Names table checks for omitted entries
12821 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
12822 handling of boolean aspects for derived types.
12823 New aspects Default_Value and Default_Component_Value
12824 New format of Aspect_Names table checks for omitted entries
12825 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
12826 (Has_Default_Value): New flag
12827 (Has_Default_Component_Value): New flag
12828 (Has_Default_Value): New flag
12829 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
12830 table.
12831 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
12832 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
12833 Default_Value and Default_Component_Value
12834 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
12835 New aspects Default_Value and Default_Component_Value
12836 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
12837 * sprint.adb: Print N_Aspect_Specification node when called from gdb
12838
12839 2011-08-02 Vincent Celier <celier@adacore.com>
12840
12841 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
12842 inherit library kind.
12843
12844 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12845
12846 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
12847 Minor reformatting.
12848
12849 2011-08-02 Robert Dewar <dewar@adacore.com>
12850
12851 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
12852
12853 2011-08-02 Yannick Moy <moy@adacore.com>
12854
12855 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
12856
12857 2011-08-02 Robert Dewar <dewar@adacore.com>
12858
12859 * impunit.adb: Add comment.
12860
12861 2011-08-02 Yannick Moy <moy@adacore.com>
12862
12863 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
12864 qualification of aggregates in formal mode
12865 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
12866 another aggregate
12867 (Resolve_Aggregate): complete the test that an aggregate is adequately
12868 qualified in formal mode
12869
12870 2011-08-02 Pascal Obry <obry@adacore.com>
12871
12872 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
12873 * mlib-prj.adb: Supress warning when compiling binder generated file.
12874 (Build_Library): Supress all warnings when compiling the binder
12875 generated file.
12876
12877 2011-08-02 Yannick Moy <moy@adacore.com>
12878
12879 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
12880 from here...
12881 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
12882 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
12883 Add with/use clauses to make Check_Formal_Restriction visible
12884
12885 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12886
12887 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
12888 in-parameters when type of the generic formal is private in the generic
12889 spec and non-private in the body.
12890
12891 2011-08-02 Claire Dross <dross@adacore.com>
12892
12893 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
12894 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
12895 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
12896 * impunit.adb, Makefile.rtl: Take new files into account.
12897
12898 2011-08-02 Robert Dewar <dewar@adacore.com>
12899
12900 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
12901 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
12902
12903 2011-08-02 Yannick Moy <moy@adacore.com>
12904
12905 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
12906 formal mode
12907 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
12908 matching static array bounds, taking into account the special case of
12909 string literals
12910 * sem_ch3.adb: Typo in comment.
12911
12912 2011-08-02 Yannick Moy <moy@adacore.com>
12913
12914 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
12915 which issues an error in formal mode if its argument node is originally
12916 from source
12917 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
12918 has a discriminant specification so that it does not include the case
12919 of derived types
12920 (Derived_Type_Declaration): move here the test that a derived type has a
12921 discriminant specification
12922 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
12923 first element of a component association before accessing its choices
12924 (presence of component association is not enough)
12925 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
12926 declaration is a library item before accessing the next element in a
12927 list, as library items are not member of lists
12928 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
12929 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
12930 Check_Formal_Restriction whenever possible.
12931
12932 2011-08-02 Ed Schonberg <schonberg@adacore.com>
12933
12934 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
12935 reference when needed.
12936
12937 2011-08-02 Bob Duff <duff@adacore.com>
12938
12939 * gnat_ugn.texi: Fix typo.
12940
12941 2011-08-02 Vincent Celier <celier@adacore.com>
12942
12943 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
12944 archive file name. Do not use the full path name of archives for Open
12945 VMS.
12946
12947 2011-08-02 Robert Dewar <dewar@adacore.com>
12948
12949 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
12950 Analyze_Aspect_Specifications
12951 * sem_ch13.adb
12952 (Analyze_Aspect_Specifications): New handling for boolean aspects
12953 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
12954 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
12955 sequence for Analyze_Aspect_Specifications
12956 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
12957 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
12958
12959 2011-08-02 Robert Dewar <dewar@adacore.com>
12960
12961 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
12962 aspects, since these no longer exist.
12963
12964 2011-08-02 Robert Dewar <dewar@adacore.com>
12965
12966 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
12967 semicolon, do not try to see if there are aspects following it.
12968 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
12969 aspect spec.
12970
12971 2011-08-02 Robert Dewar <dewar@adacore.com>
12972
12973 * sem_ch8.adb, aspects.ads: Minor reformatting.
12974
12975 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12976
12977 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
12978 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
12979 extracted from...
12980 (Analyze_Aspect_Specifications): ...here. Call above procedure.
12981
12982 2011-08-02 Yannick Moy <moy@adacore.com>
12983
12984 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
12985 mode on subprogram declaration outside of package specification, unless
12986 it is followed by a pragma Import
12987 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
12988 Access_Type_Declaration): issue error in formal mode on access type
12989 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
12990 incomplete type
12991 (Analyze_Object_Declaration): issue error in formal mode on object
12992 declaration which does not respect SPARK restrictions
12993 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
12994 declaration which does not respect SPARK restrictions
12995 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
12996 error in formal mode on digits or delta constraint
12997 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
12998 decimal fixed point type
12999 (Derived_Type_Declaration): issue error in formal mode on derived type
13000 other than type extensions of tagged record types
13001 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
13002 with check on access definition
13003 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
13004 mode on protected definition.
13005 (Analyze_Task_Definition): issue error in formal mode on task definition
13006
13007 2011-08-02 Robert Dewar <dewar@adacore.com>
13008
13009 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
13010
13011 2011-08-02 Javier Miranda <miranda@adacore.com>
13012
13013 * sem_ch6.adb (Can_Override_Operator): New function.
13014 (Verify_Overriding_Indicator): Add missing code to check overriding
13015 indicator in operators. Fixes regression.
13016 (Check_Overriding_Indicator): Minor reformating after replacing the
13017 code that evaluates if the subprogram can override an operator by
13018 invocations to the above new function.
13019 * einfo.adb
13020 (Write_Field26_Name): Add missing code to ensure that, following
13021 the documentation in einfo.ads, this field is not shown as attribute
13022 "Static_Initialization" on non-dispatching functions.
13023
13024 2011-08-02 Jose Ruiz <ruiz@adacore.com>
13025
13026 * sem_res.adb (Resolve_Call): A call to
13027 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
13028 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
13029 i.e., when the second parameter is of type Time_Span.
13030
13031 2011-08-02 Vincent Celier <celier@adacore.com>
13032
13033 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
13034 with an archive instead of -L<library dir> -l<library name>.
13035
13036 2011-08-02 Ed Schonberg <schonberg@adacore.com>
13037
13038 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
13039 mark the base types In_Use in addition to making the operations
13040 use_visible.
13041
13042 2011-08-02 Ed Falis <falis@adacore.com>
13043
13044 * init.c: add and setup __gnat_signal_mask for the exception signals
13045 * s-inmaop-vxworks.adb: new file.
13046 * s-intman-vxworks.adb: remove unnecessary initializations and
13047 simplify remaining
13048 * s-intman-vxworks.ads: remove unnecessary variable
13049 * s-taprop-vxworks.adb: simplify signal initialization
13050
13051 2011-08-02 Robert Dewar <dewar@adacore.com>
13052
13053 * sem_ch8.adb: Minor code reorganization, comment updates.
13054
13055 2011-08-02 Robert Dewar <dewar@adacore.com>
13056
13057 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
13058 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
13059 here from Sem_Res.
13060 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
13061 (Matching_Static_Array_Bounds): Moved here from Sem_Res
13062
13063 2011-08-02 Ed Schonberg <schonberg@adacore.com>
13064
13065 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
13066 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
13067 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
13068 use_type_clauses, to handle more efficiently use_type and use_all_type
13069 constructs.
13070 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
13071 Ada2012 Use_All_Type clause.
13072 (Use_Class_Wide_Operations): new procedure.
13073
13074 2011-08-02 Robert Dewar <dewar@adacore.com>
13075
13076 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
13077 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
13078 expression to expression function.
13079
13080 2011-08-02 Ed Schonberg <schonberg@adacore.com>
13081
13082 * sem_ch4.adb: transform simple Ada2012 membership into equality only
13083 if types are compatible.
13084
13085 2011-08-02 Yannick Moy <moy@adacore.com>
13086
13087 * sem_res.adb (Matching_Static_Array_Bounds): new function which
13088 returns True if its argument array types have same dimension and same
13089 static bounds at each index.
13090 (Resolve_Actuals): issue an error in formal mode on actuals passed as
13091 OUT or IN OUT paramaters which are not view conversions in SPARK.
13092 (Resolve_Arithmetic_Op): issue an error in formal mode on
13093 multiplication or division with operands of fixed point types which are
13094 not qualified or explicitly converted.
13095 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
13096 Boolean or array type (except String) operands.
13097 (Resolve_Equality_Op): issue an error in formal mode on equality
13098 operators for array types other than String with non-matching static
13099 bounds.
13100 (Resolve_Logical_Op): issue an error in formal mode on logical operators
13101 for array types with non-matching static bounds. Factorize the code in
13102 Matching_Static_Array_Bounds.
13103 (Resolve_Qualified_Expression): issue an error in formal mode on
13104 qualified expressions for array types with non-matching static bounds.
13105 (Resolve_Type_Conversion): issue an error in formal mode on type
13106 conversion for array types with non-matching static bounds
13107
13108 2011-08-02 Robert Dewar <dewar@adacore.com>
13109
13110 * par-ch10.adb: Minor code reorganization (use Nkind_In).
13111
13112 2011-08-02 Ed Schonberg <schonberg@adacore.com>
13113
13114 * par-ch9.adb: save location of entry for proper error message.
13115
13116 2011-08-02 Javier Miranda <miranda@adacore.com>
13117
13118 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
13119 (Use_Full_View) which permits this routine to climb through the
13120 ancestors using the full-view of private parents.
13121 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
13122 Use_Full_View to true in calls to Is_Ancestor.
13123 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
13124 true in call to Is_Ancestor.
13125 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
13126 Use_Full_View to true in call to Is_Ancestor.
13127 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
13128 call to Is_Ancestor.
13129 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
13130 Use_Full_View to true in calls to Is_Ancestor.
13131 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
13132 Make_Select_Specific_Data_Table, Register_Primitive,
13133 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
13134 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
13135 to true in call to Is_Ancestor.
13136 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
13137 Use_Full_View to true in calls to Is_Ancestor.
13138 * exp_cg.adb
13139 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
13140 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
13141
13142 2011-08-02 Robert Dewar <dewar@adacore.com>
13143
13144 * gnat_rm.texi: Minor reformatting.
13145 * sem_prag.adb: Minor reformatting.
13146
13147 2011-08-02 Tristan Gingold <gingold@adacore.com>
13148
13149 * vms_data.ads: Add VMS qualifier for -gnateP.
13150
13151 2011-08-02 Robert Dewar <dewar@adacore.com>
13152
13153 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
13154 * par-ch7.adb (P_Package): Proper placement of aspects for package
13155 decl/instantiation.
13156 * par-endh.adb (Check_End): Ad Is_Sloc parameter
13157 (End_Statements): Add Is_Sloc parameterr
13158 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
13159 (Check_End): Ad Is_Sloc parameter
13160 (End_Statements): Add Is_Sloc parameterr
13161
13162 2011-08-02 Vincent Celier <celier@adacore.com>
13163
13164 * ug_words: Add VMS qualifier equivalent to -gnateP:
13165 /SYMBOL_PREPROCESSING.
13166
13167 2011-08-02 Jose Ruiz <ruiz@adacore.com>
13168
13169 * gnat-style.texi: For hexadecimal numeric literals the typical
13170 grouping of digits is 4 to represent 2 bytes.
13171 A procedure spec which is split into several lines is indented two
13172 characters.
13173
13174 2011-08-02 Yannick Moy <moy@adacore.com>
13175
13176 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
13177 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
13178 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
13179 properly qualified
13180 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
13181 choice in array aggregate
13182 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
13183 mark as ancestor
13184 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
13185 positional and named aggregate for record, or others in record
13186 aggregate, or multiple choice in record aggregate
13187 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
13188 array operands to logical operations AND, OR and XOR do not have the
13189 same static lower and higher bounds
13190 * sem_ch5.adb, sinfo.ads: Correct typos in comments
13191
13192 2011-08-01 Robert Dewar <dewar@adacore.com>
13193
13194 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
13195 Replaces Last_Source_Node_In_Sequence.
13196 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
13197 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
13198 parens and blank in string (this was inconsistently implemented).
13199 * errout.ads
13200 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
13201 blank in string (this was inconsistently implemented).
13202 * gnat1drv.adb
13203 (Set_Global_Switches): Set formal mode switches appropriately
13204 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
13205 * par-prag.adb
13206 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
13207 call Set_Error_Msg_Lang to set "spark" as language name.
13208 * par.adb: Remove unnecessary call to set formal language for errout
13209 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
13210 appropriately and call Set_Error_Msg_Lang to set "spark" as language
13211 name.
13212 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
13213 calls to it, moved after resolution so that types are known
13214 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
13215 result of concatenation is not of type String
13216 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
13217 concatenation is not properly restricted
13218 * gnat_rm.texi: Add doc on pragma Spark_95.
13219 * gcc-interface/Makefile.in: Remove obsolete target pairs for
13220 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
13221 * gcc-interface/Make-lang.in: Update dependencies.
13222
13223 2011-08-01 Javier Miranda <miranda@adacore.com>
13224
13225 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
13226 condition that detects if the overridden operation must replace an
13227 existing entity.
13228
13229 2011-08-01 Javier Miranda <miranda@adacore.com>
13230
13231 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
13232 code declarations inserted by Insert_Actions in each alternative of the
13233 N_Case_Expression node.
13234
13235 2011-08-01 Robert Dewar <dewar@adacore.com>
13236
13237 * sem_ch6.adb: Minor code reorganization.
13238 * sem_util.adb: Minor reformatting.
13239
13240 2011-08-01 Pascal Obry <obry@adacore.com>
13241
13242 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
13243 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
13244
13245 2011-08-01 Yannick Moy <moy@adacore.com>
13246
13247 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
13248 literal or operator symbol which is prefixed
13249 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
13250 mode on access attributes.
13251 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
13252 that concatenation operands are properly restricted in formal mode
13253 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
13254 Analyze_Concatenation_Operand. Issue an error in formal mode if the
13255 result of the concatenation has a type different from String.
13256 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
13257 Analyze_Quantified_Expression, Analyze_Slice,
13258 Analyze_Null): issue an error in formal mode on unsupported constructs
13259 * sem_ch5.adb
13260 (Analyze_Block_Statement): only issue error on source block statement
13261 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
13262 function which returns the last node in a list of nodes for which
13263 Comes_From_Source returns True, if any
13264 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
13265 Last_Source_Node_In_Sequence
13266 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
13267 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
13268 mode on unsupported constructs
13269 * sem_ch9.adb Do not return after issuing error in formal mode, as the
13270 rest of the actions may be needed later on since the error is marked as
13271 not serious.
13272 * sinfo.ads: Typos in comments.
13273
13274 2011-08-01 Pascal Obry <obry@adacore.com>
13275
13276 * projects.texi: Minor editing.
13277
13278 2011-08-01 Yannick Moy <moy@adacore.com>
13279
13280 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
13281 insertion character ~~
13282 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
13283 (Set_Error_Msg_Lang): new procedure which fixes the language for use
13284 with insertion character ~~
13285 (Set_Msg_Text): treat insertion character ~~
13286 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
13287 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
13288 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
13289 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
13290 errors related to the formal language restriction not serious
13291 (insertion character |).
13292 * par.adb (Par): set formal language for error messages if needed
13293 * sem_ch6.adb (Check_Missing_Return): take into account possible
13294 generated statements at the end of the function
13295 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
13296 enumeration value to define a new pragma SPARK_95
13297 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
13298 SPARK_Version): new type and variables to store the SPARK version
13299 (none by default).
13300 (SPARK_Mode): return True when SPARK_Version is set
13301 * par-prag.adb: Correct indentation
13302 (Prag): take Pragma_SPARK_95 into account
13303 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
13304 into account.
13305
13306 2011-08-01 Robert Dewar <dewar@adacore.com>
13307
13308 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
13309 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
13310 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
13311
13312 2011-08-01 Pascal Obry <obry@adacore.com>
13313
13314 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
13315 Target_Name to Get_Path call.
13316 (Parse_Single_Project): Likewise.
13317 (Post_Parse_Context_Clause): Likewise.
13318 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
13319 Call Initialise_Project_Path with the proper Target_Name.
13320 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
13321 search path.
13322 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
13323 with the proper Target_Name.
13324 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
13325 Part.Parse routine.
13326 (Parse_Project_And_Apply_Config): Likewise.
13327 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
13328 This is fine as this part of the code is supporting only native
13329 compilation.
13330 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
13331 is fine as this part of the code is supporting only native compilation.
13332
13333 2011-08-01 Yannick Moy <moy@adacore.com>
13334
13335 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
13336 of homonym, unless the homonym is one of the cases allowed in SPARK
13337 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
13338 package declaration occurring after a body.
13339
13340 2011-08-01 Robert Dewar <dewar@adacore.com>
13341
13342 * checks.adb, exp_ch4.adb: Minor reformatting.
13343
13344 2011-08-01 Javier Miranda <miranda@adacore.com>
13345
13346 * einfo.ads (Access_Disp_Table): Fix documentation.
13347 (Dispatch_Table_Wrappers): Fix documentation.
13348
13349 2011-08-01 Pascal Obry <obry@adacore.com>
13350
13351 * prj-env.adb, prj-env.ads: Minor reformatting.
13352
13353 2011-08-01 Yannick Moy <moy@adacore.com>
13354
13355 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
13356 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
13357 procedures out of these packages.
13358 * errout.ads, errout.adb
13359 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
13360 procedures in of this package
13361 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
13362 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
13363 on misplaced later vs initial declarations, like in Ada 83
13364 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
13365 formal mode on attribute of private type whose full type declaration
13366 is not visible
13367 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
13368 package declaration inside a package specification
13369 (Analyze_Full_Type_Declaration): issue error in formal mode on
13370 controlled type or discriminant type
13371 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
13372 user-defined operator means that it should come from the source
13373 (New_Overloaded_Entity): issue error in formal mode on overloaded
13374 entity.
13375 * sem_ch6.ads, sem_ch13.ads: typos in comments.
13376
13377 2011-08-01 Thomas Quinot <quinot@adacore.com>
13378
13379 * atree.adb: Minor reformatting.
13380 * checks.adb: Minor reformatting.
13381
13382 2011-08-01 Vincent Celier <celier@adacore.com>
13383
13384 * s-parame-vms-ia64.ads: Fix typo in comment
13385 Minor reformatting
13386 * s-parame-vms-restrict.ads: Removed, unused.
13387
13388 2011-08-01 Javier Miranda <miranda@adacore.com>
13389
13390 * exp_ch3.adb
13391 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
13392 * sem_ch3.adb
13393 (Constrain_Index): Remove side effects in the evaluation of the bounds.
13394 * sem_ch3.ads, sem_ch3.adb
13395 (Is_Constant_Bound): New extended version of the subprogram that was
13396 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
13397 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
13398 * sem_aux.ads (Constant_Value): Fix typo in comment.
13399 * checks.adb (Generate_Index_Checks): New implementation which, for
13400 array objects with constant bounds, generates the runtime check
13401 referencing the bounds of the array type. For other cases this routine
13402 provides its previous behavior obtaining such values from the array
13403 object.
13404 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
13405 parent type.
13406 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
13407 we cannot have semantic interpretations of the new node.
13408
13409 2011-08-01 Ed Schonberg <schonberg@adacore.com>
13410
13411 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
13412 expressions.
13413
13414 2011-08-01 Arnaud Charlet <charlet@adacore.com>
13415
13416 * sem_ch8.adb: Minor code editing.
13417 * s-vxwext.adb: Remove trailing space.
13418 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
13419 consistency with other files.
13420
13421 2011-08-01 Thomas Quinot <quinot@adacore.com>
13422
13423 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
13424
13425 2011-08-01 Ed Schonberg <schonberg@adacore.com>
13426
13427 * par-ch10.adb: reject parameterized expressions as compilation unit.
13428 * sem_ch4.adb: handle properly conditional expression with overloaded
13429 then_clause and no else_clause.
13430
13431 2011-08-01 Tristan Gingold <gingold@adacore.com>
13432
13433 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
13434 like done by System.Aux_DEC.
13435 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
13436
13437 2011-08-01 Yannick Moy <moy@adacore.com>
13438
13439 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
13440 missing label at end of declaration (subprogram or package)
13441 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
13442 of positional and named parameter association
13443 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
13444 Error_Msg_SP which adds a prefix to the error message giving the name
13445 of the formal language analyzed
13446 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
13447 access result type in subprogram, unconstrained array as result type,.
13448 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
13449 procedure
13450 * sem_ch8.adb: Code clean up.
13451
13452 2011-08-01 Javier Miranda <miranda@adacore.com>
13453
13454 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
13455 * einfo.ads (Access_Disp_Table): Fix documentation.
13456 (Dispatch_Table_Wrappers): Fix documentation.
13457 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
13458 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
13459 to enforce the documentation of this attribute.
13460 (Set_Is_Interface): Cleanup the assertion.
13461 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
13462 the Underlying_Type entity before reading attribute Access_Disp_Table.
13463 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
13464 Locate the Underlying_Type before reading attribute Access_Disp_Table.
13465 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
13466 the Underlying_Type entity before reading attribute Access_Disp_Table.
13467 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
13468 Locate the Underlying_Type entity before reading attribute
13469 Access_Disp_Table.
13470
13471 2011-08-01 Ed Schonberg <schonberg@adacore.com>
13472
13473 * s-poosiz.ads: Additional overriding indicators.
13474
13475 2011-08-01 Yannick Moy <moy@adacore.com>
13476
13477 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
13478 formal mode.
13479 (Analyze_Iteration_Scheme): issue error in formal mode when loop
13480 parameter specification does not include a subtype mark.
13481 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
13482 formal mode on abstract subprogram.
13483 (Analyze_Subprogram_Specification): issue error in formal mode on
13484 user-defined operator.
13485 (Process_Formals): issue error in formal mode on access parameter and
13486 default expression.
13487 * sem_ch9.adb (Analyze_Abort_Statement,
13488 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
13489 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
13490 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
13491 Analyze_Requeue, Analyze_Selective_Accept,
13492 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
13493 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
13494 issue error in formal mode on user-defined raise statement.
13495
13496 2011-08-01 Thomas Quinot <quinot@adacore.com>
13497
13498 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
13499 declaration being hidden when overriding an implicit inherited
13500 subprogram.
13501 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
13502 (-gnats), do not complain about a source file that contains only a
13503 pragma No_Body.
13504
13505 2011-08-01 Ed Schonberg <schonberg@adacore.com>
13506
13507 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
13508 variable if already set.
13509
13510 2011-08-01 Arnaud Charlet <charlet@adacore.com>
13511
13512 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
13513 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
13514 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
13515 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
13516 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
13517 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
13518 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
13519 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
13520 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
13521 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
13522 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
13523 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
13524 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
13525 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
13526 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
13527 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
13528 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
13529 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
13530 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
13531 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
13532 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
13533 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
13534 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
13535 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
13536 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
13537 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
13538 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
13539 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
13540 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
13541 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
13542 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
13543 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
13544 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
13545 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
13546 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
13547 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
13548 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
13549 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
13550 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
13551 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
13552 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
13553 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
13554 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
13555 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
13556 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
13557 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
13558 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
13559 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
13560 s-osinte-mingw.ads: Update to GPLv3 run-time license.
13561 Use GNAT instead of GNARL.
13562
13563 2011-08-01 Bob Duff <duff@adacore.com>
13564
13565 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
13566 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
13567 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
13568 reformatting.
13569
13570 2011-08-01 Yannick Moy <moy@adacore.com>
13571
13572 * debug.adb (d.D) reverve flag for the SPARK mode
13573 (d.E) reverve flag for SPARK generation mode
13574 (d.F) reverve flag for Why generation mode
13575 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
13576 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
13577 functions which return True when the corresponding modes are set
13578 (Formal_Language): return "spark" or "alfa" when in formal verification
13579 mode.
13580 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
13581 Error_Msg to prefix the error message with a tag giving the formal
13582 language
13583 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
13584 message with a tag giving the formal language
13585 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
13586 block statement
13587 (Analyze_Case_Statement): issue error in formal mode on case statement
13588 with a single "others" case alternative
13589 (Analyze_Exit_Statement): issue errors in formal mode on exit
13590 statements which do not respect SPARK restrictions
13591 (Analyze_Goto_Statement): issue error in formal mode on goto statement
13592 (Check_Unreachable_Code): always issue an error (not a warning) in
13593 formal mode on unreachable code (concerns both code after an infinite
13594 loop and after an unconditional jump, both not allowed in SPARK)
13595 * sem_ch6.adb (Analyze_Return_Statement): add call to
13596 Set_Return_Present for a procedure containing a return statement
13597 (already done for functions in Analyze_Function_Return)
13598 (Analyze_Function_Return): issue error in formal mode on extended
13599 return or if return is not last statement in function
13600 (Check_Missing_Return): issue error in formal mode if function does
13601 not end with return or if procedure contains a return
13602 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
13603 function to detect if there is an inner scope of its parameter S which
13604 is a loop.
13605
13606 2011-08-01 Thomas Quinot <quinot@adacore.com>
13607
13608 * sem_ch6.ads: Minor reformatting.
13609
13610 2011-08-01 Javier Miranda <miranda@adacore.com>
13611
13612 * sem_util.adb (Abstract_Interface_List): Complete condition when
13613 processing private type declarations to avoid reading unavailable
13614 attribute.
13615 (Is_Synchronized_Tagged_Type): Complete condition when processing
13616 private extension declaration nodes to avoid reading unavailable
13617 attribute.
13618
13619 2011-08-01 Thomas Quinot <quinot@adacore.com>
13620
13621 * sem_ch3.adb: Minor reformatting.
13622
13623 2011-08-01 Thomas Quinot <quinot@adacore.com>
13624
13625 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
13626 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
13627 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
13628 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
13629 for VMS, instead parametrize the common implementation with
13630 System.Parameters declarations.
13631
13632 2011-08-01 Eric Botcazou <ebotcazou@adacore.com>
13633
13634 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
13635
13636 2011-08-01 Tristan Gingold <gingold@adacore.com>
13637
13638 * seh_init.c: Fix SEH handler installation on win64.
13639
13640 2011-08-01 Ed Schonberg <schonberg@adacore.com>
13641
13642 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
13643 double analysis of an anonymous access to subprogram, because it can
13644 lead to improper sharing of profiles and a back-end crash.
13645
13646 2011-08-01 Robert Dewar <dewar@adacore.com>
13647
13648 * make.adb, sem_ch4.adb: Minor reformatting.
13649 * gcc-interface/Make-lang.in: Update dependencies.
13650 * sem_util.adb, exp_ch5.adb: Minor reformatting.
13651
13652 2011-08-01 Arnaud Charlet <charlet@adacore.com>
13653
13654 * gnat_rm.texi: Fix definition of Long_Integer.
13655
13656 2011-08-01 Ed Schonberg <schonberg@adacore.com>
13657
13658 * exp_aggr.adb: check limit size of static aggregate unconditionally,
13659 to prevent storage exhaustion.
13660 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
13661 finalized is a function body, insert the cleanup code before the final
13662 return statement, to prevent spurious warnings.
13663 * s-pooglo.ads: add overriding indicator.
13664
13665 2011-08-01 Ed Schonberg <schonberg@adacore.com>
13666
13667 * sem_ch4.adb (Operator_Check): improve error message when both a
13668 with_clause and a use_clause are needed to make operator usage legal.
13669 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
13670 determine whether a compilation unit is visible within an other,
13671 either through a with_clause in the current unit, or a with_clause in
13672 its library unit or one one of its parents.
13673
13674 2011-08-01 Ed Schonberg <schonberg@adacore.com>
13675
13676 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
13677 over an arbitrary expression of an array or container type.
13678 * lib-xref.adb: clarify comment.
13679
13680 2011-08-01 Bob Duff <duff@adacore.com>
13681
13682 * einfo.ads: Minor reformatting.
13683 * debug.adb: Minor comment improvement.
13684
13685 2011-08-01 Javier Miranda <miranda@adacore.com>
13686
13687 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
13688 consider hidden subprograms as valid candidates.
13689
13690 2011-08-01 Arnaud Charlet <charlet@adacore.com>
13691
13692 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
13693
13694 2011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
13695
13696 * gnat_ugn.texi: Fix typo.
13697
13698 2011-08-01 Robert Dewar <dewar@adacore.com>
13699
13700 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
13701 lib-xref.adb: Minor reformatting
13702
13703 2011-08-01 Gary Dismukes <dismukes@adacore.com>
13704
13705 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
13706 when to generate a call to Move_Final_List.
13707 (Has_Controlled_Parts): Remove this function.
13708
13709 2011-08-01 Geert Bosch <bosch@adacore.com>
13710
13711 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
13712 "," in choice list.
13713
13714 2011-08-01 Thomas Quinot <quinot@adacore.com>
13715
13716 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
13717 explicit raise of a predefined exception as Comes_From_Source if the
13718 original N_Raise_Statement comes from source.
13719
13720 2011-08-01 Robert Dewar <dewar@adacore.com>
13721
13722 * sinfo.ads: Add comment.
13723 * sem_ch6.adb: Minor reformatting.
13724
13725 2011-08-01 Robert Dewar <dewar@adacore.com>
13726
13727 * freeze.adb (Freeze_Entity): Refine check for bad component size
13728 clause to avoid rejecting confirming clause when atomic/aliased present.
13729
13730 2011-08-01 Ed Schonberg <schonberg@adacore.com>
13731
13732 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
13733 better determine whether an entity reference is a write.
13734 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
13735 subcomponent.
13736 * lib-xref.adb (Output_References): Do no suppress a read reference at
13737 the same location as an immediately preceeding modify-reference, to
13738 handle properly in-out actuals.
13739
13740 2011-08-01 Tristan Gingold <gingold@adacore.com>
13741
13742 * env.c (__gnat_setenv) [VMS]: Refine previous change.
13743
13744 2011-08-01 Quentin Ochem <ochem@adacore.com>
13745
13746 * i-cstrin.adb (New_String): Changed implementation, now uses only the
13747 heap to compute the result.
13748
13749 2011-08-01 Robert Dewar <dewar@adacore.com>
13750
13751 * atree.ads: Minor reformatting.
13752
13753 2011-08-01 Emmanuel Briot <briot@adacore.com>
13754
13755 * g-expect.adb (Get_Command_Output): Fix memory leak.
13756
13757 2011-08-01 Geert Bosch <bosch@adacore.com>
13758
13759 * cstand.adb (P_Float_Type): New procedure to print the definition of
13760 predefined fpt types.
13761 (P_Mixed_Name): New procedure to print a name using mixed case
13762 (Print_Standard): Use P_Float_Type for printing floating point types
13763 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
13764 precision IEEE float.
13765
13766 2011-08-01 Thomas Quinot <quinot@adacore.com>
13767
13768 * sem_ch3.adb: Minor reformatting.
13769
13770 2011-08-01 Ed Schonberg <schonberg@adacore.com>
13771
13772 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
13773 the completion of a generic function, insert the new body rather than
13774 rewriting the original.
13775
13776 2011-08-01 Yannick Moy <moy@adacore.com>
13777
13778 * sinfo.ads, errout.ads: Typos in comments.
13779
13780 2011-08-01 Robert Dewar <dewar@adacore.com>
13781
13782 * par-endh.adb: Minor reformatting.
13783
13784 2011-08-01 Robert Dewar <dewar@adacore.com>
13785
13786 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
13787 (Pre_Post_Aspects): New subtype.
13788 * par-ch12.adb (P_Generic): New syntax for aspects in packages
13789 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
13790 * par-ch7.adb (P_Package): Remove Decl parameter
13791 (P_Package): Handle new syntax for aspects (before IS)
13792 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
13793 new aspect syntax
13794 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
13795 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
13796 (P_Package): Remove Decl parameter
13797 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
13798 aspects
13799 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
13800 specs
13801 * sem_util.ads, sem_util.adb (Static_Boolean): New function
13802 * sinfo.ads: Document new syntax for aspects in packages etc.
13803 * sprint.adb: Handle new syntax of aspects before IS in package
13804
13805 2011-08-01 Thomas Quinot <quinot@adacore.com>
13806
13807 * atree.ads: Minor reformatting.
13808 * sem_prag.adb: Minor reformatting.
13809
13810 2011-08-01 Robert Dewar <dewar@adacore.com>
13811
13812 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
13813 case expr alternative.
13814
13815 2011-08-01 Ed Schonberg <schonberg@adacore.com>
13816
13817 * sem_ch12.adb: Fix typo.
13818
13819 2011-08-01 Geert Bosch <bosch@adacore.com>
13820
13821 * sem_prag.adb (Check_No_Link_Name): New procedure.
13822 (Process_Import_Or_Interface): Use Check_No_Link_Name.
13823 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
13824 instead of Standard_Long_Long_Float_Size global. Preparation for
13825 eventual removal of per type constants.
13826 * exp_util.ads (Get_Stream_Size): New function returning the stream
13827 size value of subtype E.
13828 * exp_util.adb (Get_Stream_Size): Implement new function.
13829 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
13830 function.
13831 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
13832 * einfo.adb:
13833 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
13834
13835 2011-08-01 Geert Bosch <bosch@adacore.com>
13836
13837 * cstand.adb: Fix comments.
13838 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
13839 count of arguments.
13840
13841 2011-08-01 Robert Dewar <dewar@adacore.com>
13842
13843 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
13844
13845 2011-08-01 Geert Bosch <bosch@adacore.com>
13846
13847 * atree.ads: Fix comment.
13848
13849 2011-08-01 Robert Dewar <dewar@adacore.com>
13850
13851 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
13852 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
13853 * par.adb: Add with for Namet.Sp.
13854 * par-tchk.adb: Minor reformatting.
13855
13856 2011-08-01 Vincent Celier <celier@adacore.com>
13857
13858 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
13859 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
13860 of the init procedure of a SAL.
13861 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
13862 New procedure.
13863
13864 2011-08-01 Thomas Quinot <quinot@adacore.com>
13865
13866 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
13867 reformatting.
13868
13869 2011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13870
13871 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
13872
13873 2011-08-01 Thomas Quinot <quinot@adacore.com>
13874
13875 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
13876 conformant with its spec (return True only for types that have
13877 an overriding Initialize primitive operation that prevents them from
13878 having preelaborable initialization).
13879 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
13880 initialization for controlled types in Ada 2005 or later mode.
13881
13882 2011-08-01 Robert Dewar <dewar@adacore.com>
13883
13884 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
13885 Postcondition.
13886 (Same_Aspect): New function.
13887 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
13888 Type_Invariant, Precondition, Postcondition.
13889 * snames.ads-tmpl: Add Name_Type_Invariant.
13890
13891 2011-08-01 Robert Dewar <dewar@adacore.com>
13892
13893 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
13894 here.
13895 (Freeze_All_Ent): Fix error in handling inherited aspects.
13896 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
13897 already analyzed, but don't skip entire processing of a declaration,
13898 that's wrong in some cases of declarations being rewritten.
13899 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
13900 Don't delay for integer, string literals
13901 Treat predicates in usual manner for delay, remove special case code,
13902 not needed.
13903 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
13904 (Build_Predicate_Function): Update saved expression in aspect
13905 (Build_Invariant_Procedure): Update saved expression in aspect
13906 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
13907 of replacement of discriminant references if the reference is simple.
13908
13909 2011-08-01 Robert Dewar <dewar@adacore.com>
13910
13911 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
13912 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
13913 Static_Predicate and Dynamic_Predicate.
13914 (Build_Predicate_Function): Add processing for Static_Predicate
13915 and Dynamic_Predicate.
13916 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
13917 (From_Static_Predicate): New flag
13918 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
13919
13920 2011-08-01 Robert Dewar <dewar@adacore.com>
13921
13922 * usage.adb: Documentation cleanup for Ada version modes in usage.
13923 * expander.adb: Minor reformatting.
13924
13925 2011-08-01 Robert Dewar <dewar@adacore.com>
13926
13927 * atree.ads: Minor comment fix.
13928 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
13929 a-witeio.ads, sem_prag.adb: Minor reformatting.
13930
13931 2011-08-01 Doug Rupp <rupp@adacore.com>
13932
13933 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
13934 pointers. Use descrip.h header file for convenience. Add some
13935 comments.
13936
13937 2011-08-01 Robert Dewar <dewar@adacore.com>
13938
13939 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
13940 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
13941 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
13942 New procedure.
13943 (Check_Aspect_At_End_Of_Declarations): New procedure
13944 (Analye_Aspect_Specification): Minor changes for above procedures
13945 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
13946 specification node as well.
13947
13948 2011-08-01 Pascal Obry <obry@adacore.com>
13949
13950 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
13951 Windows files. Use GetFilesAttributes() in this case to check for file
13952 existence instead of returning with an error code.
13953
13954 2011-08-01 Vincent Celier <celier@adacore.com>
13955
13956 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
13957 High is above Source length.
13958
13959 2011-08-01 Robert Dewar <dewar@adacore.com>
13960
13961 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
13962
13963 2011-08-01 Robert Dewar <dewar@adacore.com>
13964
13965 * aspects.ads (Boolean_Aspects): New subtype.
13966 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
13967 for derived types in cases where the parent type and derived type have
13968 aspects.
13969 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
13970 with aspects when parent type also has aspects.
13971 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
13972 boolean expression at this point).
13973 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
13974 accordance with final decision on the Ada 2012 feature.
13975 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
13976
13977 2011-08-01 Matthew Heaney <heaney@adacore.com>
13978
13979 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
13980
13981 2011-08-01 Pascal Obry <obry@adacore.com>
13982
13983 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
13984 Fix Replace_Slice when High is above current string size.
13985 (Replace_Slice): Fix DL computation when High is above current
13986 string length.
13987
13988 2011-08-01 Gary Dismukes <dismukes@adacore.com>
13989
13990 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
13991
13992 2011-08-01 Matthew Heaney <heaney@adacore.com>
13993
13994 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
13995 of node.
13996
13997 2011-08-01 Pascal Obry <obry@adacore.com>
13998
13999 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
14000 reformatting.
14001
14002 2011-08-01 Ed Schonberg <schonberg@adacore.com>
14003
14004 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
14005 access to protected subprograms in generic bodies.
14006 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
14007 protected type, indicate that the convention of the subprogram is
14008 Convention_Protected, because it may be used in subsequent declarations
14009 within the protected declaration.
14010
14011 2011-08-01 Vincent Celier <celier@adacore.com>
14012
14013 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
14014 and "final" procedures when the name of the library is "ada", to avoid
14015 duplicate symbols "adainit" and "adafinal" in executables.
14016
14017 2011-08-01 Ed Schonberg <schonberg@adacore.com>
14018
14019 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
14020 quantified expression that appears within a postcondition and uses the
14021 Ada2012 'Result attribute.
14022
14023 2011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14024
14025 * init.c (__gnat_error_handler): Cast reason to int.
14026 (__gnat_install_handler): Explain sa_sigaction use.
14027
14028 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
14029
14030 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
14031 subprogram has copy-in copy-out parameters, try to promote the mode of
14032 the return type if it is passed in registers.
14033
14034 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
14035
14036 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
14037 left operand as addressable.
14038
14039 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
14040
14041 * gcc-interface/gigi.h (build_function_stub): Remove.
14042 (build_return_expr): Likewise.
14043 (convert_vms_descriptor): Declare.
14044 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
14045 (build_function_stub): Move to...
14046 * gcc-interface/utils2.c (build_return_expr): Move to...
14047 * gcc-interface/trans.c (build_function_stub): ...here.
14048 (build_return_expr): ...here.
14049 (Subprogram_Body_to_gnu): Add local variable for language_function.
14050 Disconnect the parameter attributes cache, if any, once done with it.
14051 Call end_subprog_body only after setting the end_locus.
14052 Build the stub associated with the function, if any, at the very end.
14053 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
14054 variables and streamline control flow.
14055
14056 2011-07-23 Arnaud Charlet <charlet@adacore.com>
14057
14058 PR ada/49819
14059 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
14060 g-trasym-dwarf.adb.
14061
14062 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14063
14064 PR bootstrap/49794
14065 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
14066 Assign to act.sa_sigaction.
14067 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
14068 current->return_address to char * before arithmetic.
14069
14070 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14071
14072 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
14073 Correct argument types.
14074 Extract code from reason.
14075 (__gnat_install_handler): Assign to act.sa_sigaction.
14076
14077 2011-07-21 Eric Botcazou <ebotcazou@adacore.com>
14078
14079 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
14080 (GNAT1_OBJS): ...here.
14081
14082 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
14083
14084 PR ada/48711
14085 * g-socthi-mingw.adb (Fill): Fix formatting.
14086
14087 * gcc-interface/gigi.h: Move around comment.
14088
14089 2011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14090
14091 PR ada/46350
14092 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
14093
14094 2011-07-14 Florian Weimer <fw@deneb.enyo.de>
14095
14096 PR ada/48711
14097 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
14098
14099 2011-07-13 Eric Botcazou <ebotcazou@adacore.com>
14100
14101 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
14102 range comparison if Pmode is SImode.
14103
14104 2011-07-12 Laurent GUERBY <laurent@guerby.net>
14105 Eric Botcazou <ebotcazou@adacore.com>
14106
14107 * adadecode.c: Wrap up in extern "C" block.
14108 * adadecode.h: Likewise.
14109 * adaint.c: Likewise. Remove 'const' keyword.
14110 * adaint.h: Likewise.
14111 * argv.c: Likewise.
14112 * atree.h: Likewise.
14113 * cio.c: Likewise.
14114 * cstreams.c: Likewise.
14115 * env.c: Likewise.
14116 * exit.c: Likewise.
14117 * fe.h: Likewise.
14118 * final.c: Likewise.
14119 * init.c: Likewise.
14120 * initialize.c: Likewise.
14121 * link.c: Likewise.
14122 * namet.h: Likewise.
14123 * nlists.h: Likewise.
14124 * raise.c: Likewise.
14125 * raise.h: Likewise.
14126 * repinfo.h: Likewise.
14127 * seh_init.c: Likewise.
14128 * targext.c: Likewise.
14129 * tracebak.c: Likewise.
14130 * uintp.h: Likewise.
14131 * urealp.h: Likewise.
14132 * xeinfo.adb: Wrap up generated C code in extern "C" block.
14133 * xsinfo.adb: Likewise.
14134 * xsnamest.adb: Likewise.
14135 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
14136 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
14137 * gcc-interface/misc.c: Likewise.
14138 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
14139 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
14140 ada/targext.o here...
14141 (GNAT_ADA_OBJS): ...and not here.
14142 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
14143 (GNATBIND_OBJS): Reorder.
14144
14145 2011-07-07 Richard Henderson <rth@redhat.com>
14146
14147 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
14148 dwarf2out_frame_init.
14149
14150 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
14151
14152 * gcc-interface/misc.c (gnat_init): Tweak previous change.
14153
14154 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14155
14156 PR target/39150
14157 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
14158
14159 2011-07-06 Richard Guenther <rguenther@suse.de>
14160
14161 * gcc-interface/misc.c (gnat_init): Merge calls to
14162 build_common_tree_nodes and build_common_tree_nodes_2.
14163 Re-initialize boolean_false_node.
14164
14165 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
14166 Olivier Hainque <hainque@adacore.com>
14167 Nicolas Setton <setton@adacore.com>
14168
14169 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
14170 the type according to the ARTIFICIAL_P parameter.
14171 (create_type_decl): Likewise.
14172 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
14173
14174 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
14175
14176 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
14177 (gnatbind): Likewise.
14178
14179 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14180
14181 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
14182
14183 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
14184
14185 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
14186 local variable throughout. Remove useless call to Base_Type.
14187 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
14188 Take it also into account for the volatileness of the field. Set the
14189 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
14190
14191 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
14192
14193 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
14194 on a dereference built for a by-ref object if it has an address clause.
14195
14196 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
14197
14198 * einfo.ads (Address_Taken): Document use for the second argument of
14199 Asm_Input and Asm_Output attributes.
14200 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
14201 argument is an entity name, then set Address_Taken on it.
14202 <Attribute_Asm_Output>: Likewise.
14203 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
14204 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
14205 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
14206 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
14207
14208 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
14209
14210 PR middle-end/46500
14211 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
14212
14213 2011-06-14 Joseph Myers <joseph@codesourcery.com>
14214
14215 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
14216 (ada/utils.o): Update dependencies.
14217 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
14218 ../../../libcpp/libcpp.a.
14219 * gcc-interface/utils.c: Include common/common-target.h.
14220 (process_attributes): Use targetm_common.have_named_sections.
14221
14222 2011-06-07 Richard Guenther <rguenther@suse.de>
14223
14224 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
14225 set_sizetype.
14226
14227 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
14228
14229 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
14230 TREE_THIS_NOTRAP flag.
14231
14232 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
14233
14234 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
14235 Fix thinko.
14236
14237 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
14238
14239 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
14240 constants whose full view has discriminants specially.
14241
14242 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
14243
14244 * gcc-interface/utils.c: Include diagnostic.h.
14245 (gnat_write_global_declarations): Output debug information for all
14246 global type declarations before finalizing the compilation unit.
14247 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
14248
14249 2011-05-25 Jakub Jelinek <jakub@redhat.com>
14250
14251 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
14252
14253 2011-05-25 Kai Tietz <ktietz@redhat.com>
14254
14255 * adaint.c (__gnat_to_canonical_file_list_next): Use array
14256 initialization instead of const/none-const pointer assignment.
14257
14258 2011-05-24 Joseph Myers <joseph@codesourcery.com>
14259
14260 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
14261 $(EXTRA_GNAT1_OBJS).
14262 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
14263 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
14264 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
14265 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
14266 libcommon-target.a instead of prefix.o.
14267
14268 2011-05-21 Joseph Myers <joseph@codesourcery.com>
14269
14270 PR ada/49097
14271 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
14272
14273 2011-05-20 Joseph Myers <joseph@codesourcery.com>
14274
14275 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
14276 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
14277 instead of version.o.
14278
14279 2011-05-18 Kai Tietz <ktietz@redhat.com>
14280
14281 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
14282 boolean_false_node instead of integer_zero_node.
14283 (convert_with_check): Likewise.
14284 * gcc-interface/decl.c (choices_to_gnu): Likewise.
14285
14286 2011-05-12 Eric Botcazou <ebotcazou@adacore.com>
14287
14288 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
14289 type of the parameter is an unconstrained array, convert the actual to
14290 the type of the formal in the In Out and Out cases as well.
14291
14292 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
14293
14294 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
14295 call build_function_type_array or build_varargs_function_type_array
14296 instead.
14297 (create_subprog_type): Don't call build_function_type; call
14298 build_function_type_vec instead.
14299
14300 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
14301
14302 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
14303 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
14304 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
14305
14306 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
14307
14308 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
14309
14310 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
14311 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
14312
14313 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
14314
14315 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
14316
14317 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
14318
14319 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
14320 instead of accessing TYPE_ARG_TYPES directly.
14321 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
14322
14323 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
14324
14325 PR ada/48844
14326 * gcc-interface/gigi.h (get_variant_part): Declare.
14327 * gcc-interface/decl.c (get_variant_part): Make global.
14328 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
14329 types have the same constant size, are record types and T1 has a
14330 variant part while T2 doesn't.
14331
14332 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
14333
14334 * gcc-interface/utils.c (begin_subprog_body): Do not call
14335 get_pending_sizes.
14336 (end_subprog_body): Likewise.
14337
14338 2011-05-04 Richard Guenther <rguenther@suse.de>
14339
14340 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
14341 int_const_binop.
14342 (pos_to_constructor): Likewise.
14343
14344 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14345 Eric Botcazou <ebotcazou@adacore.com>
14346
14347 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
14348 of build_function_type. Adjust calls to...
14349 (build_raise_check): ...this. Do not take a void_tree parameter.
14350 Call build_function_type_list instead of build_function_type.
14351 Fix head comment and swap couple of conditional blocks.
14352
14353 2011-04-30 Eric Botcazou <ebotcazou@adacore.com>
14354
14355 * gnatvsn.ads (Library_Version): Bump to 4.7.
14356 (Current_Year): Bump to 2011.
14357
14358 2011-04-29 Michael Matz <matz@suse.de>
14359
14360 * gcc-interface/misc.c (gnat_handle_option): Set
14361 warn_maybe_uninitialized.
14362
14363 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
14364
14365 * gnat_ugn.texi (Complexity Metrics Control): Update link to
14366 the Watson/McCabe paper.
14367
14368 2011-04-23 Jim Meyering <meyering@redhat.com>
14369
14370 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
14371
14372 2011-04-22 Eric Botcazou <ebotcazou@adacore.com>
14373
14374 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
14375 onto the new type.
14376
14377 2011-04-22 Eric Botcazou <ebotcazou@adacore.com>
14378
14379 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
14380 parameter.
14381 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
14382 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
14383 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
14384 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
14385 <all>: Do not set flags on the reused DECL node coming from an alias.
14386 Set DECL_IGNORED_P on the DECL node built for subprograms if they
14387 don't need debug info here...
14388 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
14389 (gigi): Adjust calls to create_subprog_decl.
14390 (build_raise_check): Likewise.
14391 (establish_gnat_vms_condition_handler): Likewise.
14392 (Compilation_Unit_to_gnu): Likewise.
14393 (gnat_to_gnu): Likewise.
14394
14395 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
14396
14397 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
14398 (NO_REORDER_ADAFLAGS): New variable.
14399 (EXTRA_GNATTOOLS): Always define.
14400 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
14401 Clean up and adjust list of files compiled with special options.
14402 * gcc-interface/Make-lang.in: Likewise.
14403 (ada/decl.o): Cosmetical change.
14404 (ada/misc.o): Remove dependency on $(PLUGIN_H).
14405
14406 2011-04-20 Jim Meyering <meyering@redhat.com>
14407
14408 * initialize.c (__gnat_initialize): Remove useless if-before-free.
14409
14410 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
14411
14412 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
14413 $(CFLAGS) on the link line.
14414
14415 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
14416
14417 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
14418 padded type built for the return type if it is unconstrained.
14419
14420 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
14421
14422 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
14423
14424 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
14425
14426 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
14427 before calling TREE_CHAIN.
14428 * gcc-interface/misc.c (gnat_init_ts): New function.
14429 (LANG_HOOKS_INIT_TS): Define.
14430
14431 2011-04-12 Martin Jambor <mjambor@suse.cz>
14432
14433 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
14434 instead of cgraph_node.
14435
14436 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
14437
14438 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
14439 alignment on fields of the RETURN type built for the Copy-In Copy-Out
14440 mechanism.
14441
14442 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
14443
14444 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
14445 of aggregate types that contain a placeholder.
14446
14447 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
14448
14449 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
14450 TYPE_ARG_TYPES.
14451 (handle_type_generic_attribute): Likewise.
14452
14453 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
14454
14455 PR ada/47163
14456 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
14457
14458 2011-04-04 Kai Tietz <ktietz@redhat.com>
14459
14460 PR ada/47163
14461 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
14462 to flag value.
14463
14464 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14465
14466 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
14467 type case, do not strip a padding type around the array type.
14468
14469 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14470
14471 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
14472 types.
14473
14474 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14475
14476 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
14477 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
14478 code for -feliminate-unused-debug-types.
14479 (gnat_post_options): Likewise.
14480
14481 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14482
14483 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
14484 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
14485 distinct copy.
14486
14487 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14488
14489 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
14490 DECL_ARTIFICIAL flag on enumeration types.
14491
14492 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14493
14494 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
14495 fat pointer types artificial unconditionally.
14496 <E_Array_Subtype>: Attach the base array type as a parallel type if it
14497 isn't artificial.
14498
14499 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14500
14501 * gcc-interface/gigi.h (get_dummy_type): Declare.
14502 (build_dummy_unc_pointer_types): Likewise.
14503 (finish_fat_pointer_type): Likewise.
14504 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
14505 fat pointer type has been built, complete it in place.
14506 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
14507 and thin pointers. Remove useless variable.
14508 (finish_fat_pointer_type): Make global and move to...
14509 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
14510 (get_dummy_type): New function.
14511 (build_dummy_unc_pointer_types): Likewise.
14512 (gnat_pushdecl): Propage the name to the anonymous variants only.
14513 (update_pointer_to): Only adjust the pointer types in the unconstrained
14514 array case.
14515
14516 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14517
14518 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
14519 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
14520 if this is a Taft amendment type and the full declaration is available.
14521 * gcc-interface/trans.c (process_type): Likewise.
14522 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
14523 (process_freeze_entity): Likewise.
14524 * gcc-interface/utils.c (dummy_global): New static variable.
14525 (gnat_write_global_declarations): If there are types declared as used
14526 at the global level, insert them in the global hash table.
14527
14528 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14529
14530 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
14531 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
14532 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
14533 copy.
14534 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
14535 flag of the type accordingly.
14536 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
14537
14538 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14539
14540 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
14541 finalizing types when updating the pointers to the designated type.
14542 <all>: Finalize the deferred types even if we didn't defer processing
14543 of incomplete types in this invocation.
14544
14545 2011-04-01 Olivier Hainque <hainque@adacore.com>
14546 Nicolas Setton <setton@adacore.com>
14547 Eric Botcazou <ebotcazou@adacore.com>
14548
14549 * gcc-interface/misc.c (gnat_descriptive_type): New function.
14550 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
14551
14552 2011-03-28 Kai Tietz <ktietz@redhat.com>
14553
14554 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
14555 Windows targets.
14556 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
14557 * system-mingw.ads (System): Change ZCX_By_Default default to True.
14558
14559 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
14560
14561 2011-03-28 Tristan Gingold <gingold@adacore.com>
14562
14563 PR ada/44431
14564 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
14565 Use ada output of gnatbind.
14566 (ada/b_gnatb.adb): Ditto.
14567 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
14568 (ada.mostlyclean, ada.stage1)
14569 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
14570 (ada.stagefeedback): Adjust.
14571 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
14572 Use ada output of gnatbind.
14573 (b_gnatm.adb): Ditto.
14574 (b_gnatl.o, b_gnatm.o): New rules.
14575
14576 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
14577
14578 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
14579 for the padded type built to support a specified size or alignment.
14580
14581 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
14582
14583 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
14584 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
14585 unconditionally to the end of the unit when the designated type is
14586 limited_with'ed.
14587 <all>: Rename local variable. Attempt to un-defer types only and do it
14588 for limited_with'ed types as well.
14589 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
14590 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
14591 consistently and remove redundant call to finalize_from_with_types.
14592
14593 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
14594
14595 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
14596 subprograms without a previous spec declared in the same unit.
14597 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
14598 subprograms at the end of the unit instead of at the beginning.
14599 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
14600 isn't public for the special handling of non-inline functions nested
14601 inside inline external functions.
14602
14603 2011-03-25 Jeff Law <law@redhat.com>
14604
14605 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
14606
14607 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14608
14609 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
14610 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
14611 to compute Set_Size_Depends_On_Discriminant.
14612 (Layout_Type): Call it on array types in back-end layout mode.
14613 * sem_util.adb (Requires_Transient_Scope): Return true for array
14614 types only if the size depends on the value of discriminants.
14615 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
14616 type if the RHS is a call to a function that returns an unconstrained
14617 type with default discriminant.
14618
14619 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14620
14621 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
14622 non-conversion to the nominal result type at the end.
14623
14624 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
14625
14626 * gcc-interface/trans.c (create_temporary): New function taken from...
14627 (create_init_temporary): ...here. Call it.
14628 (call_to_gnu): Create the temporary for the return value early, if any.
14629 Create it for a function with copy-in/copy-out parameters if there is
14630 no target; in other cases of copy-in/copy-out, use another temporary.
14631 Push the new binding level lazily. Add and rename local variables.
14632
14633 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
14634
14635 * gcc-interface/decl.c (validate_size): Improve comments and tweak
14636 error message.
14637 (set_rm_size): Likewise.
14638
14639 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
14640
14641 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
14642 for the padded type built in order to support a specified alignment.
14643 Fix incorrect formatting.
14644
14645 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14646
14647 PR bootstrap/48216
14648 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
14649
14650 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14651
14652 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
14653 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
14654 to the end of the list. Adjust recursive call. Rename local variable.
14655 If REORDER is true, reorder components of the record type.
14656 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
14657 components_to_record and adjust the parameter list.
14658
14659 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14660
14661 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
14662 disabled, use the variable for bounds of loop iteration scheme.
14663
14664 2011-03-21 Kai Tietz <ktietz@redhat.com>
14665
14666 PR target/12171
14667 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
14668
14669 2011-03-17 Eric Botcazou <ebotcazou@adacore.com>
14670
14671 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
14672 out whether the expression is read-only. Short-circuit placeholder
14673 case and rename a couple of local variables.
14674
14675 2011-03-17 Eric Botcazou <ebotcazou@adacore.com>
14676
14677 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
14678 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
14679 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
14680 (convert): Deal with conversions from a smaller form type specially.
14681
14682 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
14683
14684 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
14685 its argument, except for the special -I- switch.
14686
14687 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
14688
14689 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
14690 "Ada Issues".
14691
14692 2011-02-08 Eric Botcazou <ebotcazou@adacore.com>
14693
14694 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
14695
14696 2011-02-03 Eric Botcazou <ebotcazou@adacore.com>
14697
14698 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
14699 GNAT_FORMAL.
14700 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
14701 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
14702 instead of GNAT_FORMAL. Protect the expression against multiple uses.
14703 Do not generate the check directly, instead instantiate the template
14704 check present in the descriptor.
14705 (make_descriptor_field): Move around.
14706 (build_vms_descriptor32): Build a template check in the POINTER field.
14707 (build_vms_descriptor): Remove useless suffixes.
14708 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
14709
14710 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14711
14712 PR bootstrap/47467
14713 * targext.c: Include target files if IN_RTS is defined.
14714
14715 2011-01-26 Richard Guenther <rguenther@suse.de>
14716
14717 PR bootstrap/47467
14718 * targext.c: Include config.h.
14719 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
14720 dependency.
14721
14722 2011-01-04 Pascal Obry <obry@adacore.com>
14723 Eric Botcazou <ebotcazou@adacore.com>
14724
14725 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
14726
14727 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14728
14729 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
14730 end-of-case on the end label and its associated gotos, if any.
14731
14732 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14733
14734 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
14735 expressions of the parameter cache within the statement group of
14736 the CICO mechanism.
14737
14738 2011-01-04 Olivier Hainque <hainque@adacore.com>
14739 Eric Botcazou <ebotcazou@adacore.com>
14740
14741 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
14742 (set_end_locus_from_node): New function.
14743 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
14744 make and the function end_locus.
14745 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
14746 for the elaboration subprogram.
14747 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
14748 set the end_locus of the expression as well.
14749
14750 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14751
14752 PR ada/47131
14753 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
14754 variables that are referenced in exception handlers volatile.
14755
14756
14757 \f
14758 Copyright (C) 2011 Free Software Foundation, Inc.
14759
14760 Copying and distribution of this file, with or without modification,
14761 are permitted in any medium without royalty provided the copyright
14762 notice and this notice are preserved.