]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ada/ChangeLog
re PR tree-optimization/50318 (ICE optimizing widening multiply-and-accumulate)
[thirdparty/gcc.git] / gcc / ada / ChangeLog
CommitLineData
88b76013
IS
12011-09-08 Iain Sandoe <iains@gcc.gnu.org>
2
3 * traceback.c (Darwin) USE_GCC_UNWINDER for Darwin
4 versions >= 8.
5
1aeee5ad
IS
62011-09-07 Iain Sandoe <iains@gcc.gnu.org>
7
8 * gcc-interface/Makefile.in (darwin): Provide powerpc64 system
9 implementation.
10 * system-darwin-ppc64.ads: New file.
11
f61fc398
IS
122011-09-06 Iain Sandoe <iains@gcc.gnu.org>
13
14 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Remove
15 reference to "-lm".
16
84ef27d3
IS
172011-09-06 Iain Sandoe <iains@gcc.gnu.org>
18
19 * gcc-interface/Makefile.in (darwin, SO_OPTS): Provide architecture
20 size switches to the link phase for shared libs.
21
a1bf1ec7
IS
222011-09-06 Iain Sandoe <iains@gcc.gnu.org>
23
24 * gcc-interface/Makefile.in (x86_64 darwin arch): Adjust
25 LIBGNAT_TARGET_PAIRS for x86 and x86_64 variants.
26
e972fd52
AC
272011-09-06 Arnaud Charlet <charlet@adacore.com>
28
29 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in
30 (gnattools, regnattools, cross-gnattools, canadian-gnattools,
31 gnatlib, gnatlib-sjlj, gnatlib-zcx, gnatlib-shared, gnatlib_and_tools):
32 New targets.
33 (TOOLS_FLAGS_TO_PASS): New.
34 (../stamp-tools): Reintroduce, to avoid merge conflicts.
35
ef417be1
RD
362011-09-06 Robert Dewar <dewar@adacore.com>
37
38 * sem_ch10.adb, impunit.ads, impunit.adb (Not_Impl_Defined_Unit): New
39 name for Is_RM_Defined_Unit. Also several fixes to this unit.
40
0a034606
RD
412011-09-06 Robert Dewar <dewar@adacore.com>
42
43 * impunit.ads, impunit.adb (Is_RM_Defined_Unit): New function.
44 * s-rident.ads: New restriction No_Implementation_Units
45 (this restriction is also part of the profile
46 No_Implementation_Extensions)
47 * sem_ch10.adb (Analyze_With_Clause): Add check for
48 No_Implementation_Units restriction.
49
ebb6faaa
AC
502011-09-06 Jerome Guitton <guitton@adacore.com>
51
52 * sysdep.c (__gnat_get_task_options): Disable VX_SPE_TASK
53 on vThreads.
54
552011-09-06 Thomas Quinot <quinot@adacore.com>
56
57 * s-solita.adb: Minor reformatting.
58
592011-09-06 Ed Schonberg <schonberg@adacore.com>
60
61 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The body that
62 is a rewriting of an expression function does not freeze previous
63 entities.
64
652011-09-06 Robert Dewar <dewar@adacore.com>
66
67 * impunit.adb (Is_Known_Unit): Fix bad handling of Ada 2012 case
68
60435286
TG
692011-09-06 Tristan Gingold <gingold@adacore.com>
70
71 * gcc-interface/Makefile.in: Handle e500v2-wrs-vxworksae like
72 powerpc-wrs-vxworksae.
73
08f8a983
AC
742011-09-06 Thomas Quinot <quinot@adacore.com>
75
76 * s-os_lib.ads (Spawn): Minor documentation clarification,
77 Success is True for a zero exit status.
78
792011-09-06 Ed Schonberg <schonberg@adacore.com>
80
81 * sem_ch5.adb: Add message for common iterator error.
82
832011-09-06 Ed Schonberg <schonberg@adacore.com>
84
85 * exp_ch3.adb (Build_Initialization_Call): If the target is a
86 selected component discriminated by a current instance, replace
87 the constraint with a reference to the target object, regardless
88 of whether the context is an init_proc.
89
902011-09-06 Robert Dewar <dewar@adacore.com>
91
92 * exp_attr.adb: Descriptor_Size is never static.
93
942011-09-06 Robert Dewar <dewar@adacore.com>
95
96 * gnat_ugn.texi: Add documentation for LSLOC metric in gnatmetric
97
982011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
99
100 * gnat_rm.texi: Clarify that attribute Descriptor_Size is
101 non-static.
102
1032011-09-06 Ed Schonberg <schonberg@adacore.com>
104
105 * sem_res.adb (Resolve): An expression that is the body of an
106 expression function does not freeze.
107
1082011-09-06 Matthew Heaney <heaney@adacore.com>
109
110 * a-csquin.ads, a-cusyqu.adb, a-cbprqu.adb, a-cbsyqu.adb,
111 a-cuprqu.adb: Changed copyright notice to indicate current
112 year only.
113
1142011-09-06 Vincent Celier <celier@adacore.com>
115
116 * prj.adb: Minor spelling error fix in comment
117 * sem_res.adb: Minor reformatting
118
1192011-09-06 Pascal Obry <obry@adacore.com>
120
121 * sysdep.c (winflush_nt): Removed as not needed anymore.
122 (winflush_95): Likewise.
123 (winflush_init): Likewise.
124 (winflush_function): Likewise.
125 (getc_immediate_common): Remove call to winflush_function.
126
cb3d8731
HK
1272011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
128
129 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite the
130 processing for Descriptor_Size.
131 * gnat_rm.texi: Rephrase the wording for attribute Descriptor_Size
132 to account for its broader usage.
133 * sem_attr.adb (Analyze_Attribute): Change the error detection
134 circuitry for Descriptor_Size as the attribute is now applicable
135 to all types.
136
f7e6fc47
RD
1372011-09-06 Robert Dewar <dewar@adacore.com>
138
139 * sem_attr.adb, prj-nmsc.adb, exp_aggr.adb: Minor reformatting.
140
f8e9fc30
AC
1412011-09-06 Ed Schonberg <schonberg@adacore.com>
142
143 * lib-xref.adb (OK_To_Set_Referenced): A reference to a formal
144 in a parameter association must not set the Referenced flag on
145 the formal.
146 * prj-nmsc.adb (Check_File_Naming_Schemes): Remove useless formal
147
1482011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
149
150 * gnat_rm.texi: Add a section on attribute Descriptor_Size
151
e8e38f35
AC
1522011-09-06 Arnaud Charlet <charlet@adacore.com>
153
154 * gcc-interface/Makefile.in (common-tools, gnatmake-re,
155 gnatlink-re): Speed up by using -j0.
156
ba759acd
AC
1572011-09-06 Yannick Moy <moy@adacore.com>
158
159 * sem_ch13.adb (Analyze_Aspect_Specifications): Call
160 Set_Corresponding_Aspect when creating pragma from aspect.
161 (Add_Predicates): Use new field Corresponding_Aspect.
162 * sem_prag.adb (Analyze_Pragma): Make Pname hold source aspect
163 name when present, for the purpose of issuing error messages;
164 remove local procedure Error_Pragma_Arg_Alternate_Name.
165 * sinfo.adb, sinfo.ads (Corresponding_Aspect): New field in
166 N_Pragma node.
167 (From_Dynamic_Predicate, From_Static_Predicate): Remove fields from
168 N_Pragma node.
169
1702011-09-06 Robert Dewar <dewar@adacore.com>
171
172 * checks.adb, s-except.ads, g-socket.adb: Minor reformatting.
173
1742011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
175
176 * exp_ch6.adb (Build_Heap_Allocator): Add new
177 local variable Desig_Typ. Code and comment reformatting. Add
178 machinery to ensure that the allocation uses a fat pointer when
179 the type of the return object is a constrained array and the
180 function return type is an unconstrained array.
181
1822011-09-06 Vincent Celier <celier@adacore.com>
183
184 * make.adb, prj-part.adb, prj-nmsc.adb: Remove unused formal
185 parameters in subprograms.
186
1872011-09-06 Arnaud Charlet <charlet@adacore.com>
188
189 * s-taprop-mingw.adb (Finalize_TCB): Fix typo.
190
1912011-09-06 Thomas Quinot <quinot@adacore.com>
192
193 * s-taprop-vxworks.adb, s-tpoaal.adb, s-tpopsp-vxworks.adb
194 (System.Tasking.Primitive_Operations.Specific.Delete): Remove
195 subprogram.
196 (System.Tasking.Primitive_Operations.Specific.Set): If argument
197 is null, destroy task specific data, to make API consistent with
198 other platforms, and thus compatible with the shared version
199 of s-tpoaal.adb.
200 (System.Tasking.Primitive_Operations.ATCB_Allocation.Free_ATCB):
201 Document the above assumption.
202
f4f92d9d
AC
2032011-09-06 Ed Schonberg <schonberg@adacore.com>
204
205 * exp_ch6.adb (Expand_Inlined_Call): Fix use of uninitialized
206 variable for type of return value when return type is
207 unconstrained and context is an assignment.
208
2092011-09-06 Ed Schonberg <schonberg@adacore.com>
210
211 * sem_ch8.adb (Check_Class_Wide_Actual): Do not generate body of
212 class-wide operation if expansion is not enabled.
213
2142011-09-06 Eric Botcazou <ebotcazou@adacore.com>
215
216 * checks.adb (Apply_Scalar_Range_Check): Deal with access
217 type prefix.
218
2192011-09-06 Yannick Moy <moy@adacore.com>
220
221 * sem_ch13.adb (Analyze_Aspect_Specifications, case
222 Aspect_Invariant): Do not issue error at this point on illegal
223 pragma placement, as this is checked later on when analyzing
224 the corresponding pragma.
225 * sem_prag.adb (Error_Pragma_Arg_Alternate_Name): New procedure
226 similar to Error_Pragma_Arg, except the source name of the
227 aspect/pragma to use in warnings may be equal to parameter
228 Alt_Name (Analyze_Pragma, case Pragma_Invariant): refine error
229 message to distinguish source name of pragma/aspect, and whether
230 the illegality resides in the type being public, or being private
231 without a public declaration
232
2332011-09-06 Thomas Quinot <quinot@adacore.com>
234
235 * g-socket.adb (Check_For_Fd_Set): On Windows, no need for bitmap
236 size check (fd_set is implemented differently on that platform).
237
2382011-09-06 Thomas Quinot <quinot@adacore.com>
239
240 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
241 s-tpoaal.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
242 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop.ads,
243 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-posix.adb
244 (ATCB_Allocation): New subpackage of
245 System.Tasking.Primitive_Operations, shared across all targets
246 with full tasking runtime.
247 (ATCB_Allocation.New_ATCB): Moved there (from target specific
248 s-taprop bodies).
249 (ATCB_Allocation.Free_ATCB): New subprogram. Deallocate an ATCB,
250 taking care of establishing a local temporary ATCB if the one
251 being deallocated is Self, to avoid a reference to the freed
252 ATCB in Abort_Undefer.
253
2542011-09-06 Thomas Quinot <quinot@adacore.com>
255
256 * s-tassta.adb, s-taskin.ads (Free_Task): If the task is not
257 terminated, mark it for deallocation upon termination.
258 (Terminate_Task): Call Free_Task again if the task is marked
259 for automatic deallocation upon termination.
260
df177175
RD
2612011-09-06 Robert Dewar <dewar@adacore.com>
262
263 * a-cbprqu.ads, a-cbsyqu.ads, a-cuprqu.ads, a-cusyqu.ads,
264 a-intnam-aix.ads, a-intnam-darwin.ads, a-intnam-dummy.ads,
265 a-intnam-freebsd.ads, a-intnam-hpux.ads, a-intnam-irix.ads,
266 a-intnam-linux.ads, a-intnam-lynxos.ads, a-intnam-mingw.ads,
267 a-intnam-solaris.ads, a-intnam-tru64.ads,
268 a-intnam-vms.ads, a-intnam-vxworks.ads, a-intnam.ads, interfac.ads,
269 cstand.adb, s-maccod.ads: Mark all entities as Implementation_Defined
270 * einfo.ads, einfo.adb (Is_Implementation_Defined): New flag
271 * par-prag.adb: Add dummy entry for pragma Implementation_Defined
272 * s-rident.ads: Add new restriction No_Implementation_Identifiers
273 Add new profile No_Implementation_Extensions
274 * sem_prag.adb: Implement pragma Implementation_Defined Implement
275 profile No_Implementation_Extensions
276 * sem_util.adb: Minor reformatting (Set_Entity_With_Style_Check):
277 Check violation of restriction No_Implementation_Identifiers
278 * snames.ads-tmpl: Add entries for pragma Implementation_Defined
279 Add entry for Name_No_Implementation_Extensions
280
2812011-09-06 Robert Dewar <dewar@adacore.com>
282
283 * impunit.ads: Minor reformatting.
284
b991dd43
AC
2852011-09-06 Robert Dewar <dewar@adacore.com>
286
287 * ali.adb, sem_ch13.adb, lib-xref.adb: Minor reformatting.
288
2892011-09-06 Pascal Obry <obry@adacore.com>
290
291 * s-osinte-linux.ads, s-oscons-tmplt.c: Use oscons to define sigset_t
292 types.
293
516785cc
AC
2942011-09-06 Robert Dewar <dewar@adacore.com>
295
296 * g-socket.adb: Minor reformatting
297
2982011-09-06 Javier Miranda <miranda@adacore.com>
299
300 * ali.adb (Scan_ALI): Add missing support to load references of
301 entities imported from other languages.
302 * ali.ads (Xref_Record): Adding new fields to store the language and
303 name of an imported entity.
304 * lib-xref.adb (Output_Import_Export_Info): Fix typo
305 in comment.
306
3072011-09-06 Ed Schonberg <schonberg@adacore.com>
308
309 * sem_prag.adb (Analyze_Pragma, case Type_Invariant): A type invariant
310 is allowed on a full type declaration if it is the completion of
311 a private declarations.
312 * sem_ch13.adb (Analyze_Aspect_Specifications): An invariant
313 aspect is allowed on a full type declaration in the private part
314 of a package.
315
96691943
AC
3162011-09-06 Robert Dewar <dewar@adacore.com>
317
318 * sem_ch8.ads: Minor reformatting
319
3202011-09-06 Thomas Quinot <quinot@adacore.com>
321
322 * s-oscons-tmplt.c, g-socket.adb (GNAT.Sockets.Clear,Set,Is_Set):
323 Guard against socket values that are not in [0;FD_SETSIZE[
324
54bf19e4
AC
3252011-09-06 Robert Dewar <dewar@adacore.com>
326
327 * s-osinte-linux.ads, a-iteint.ads, exp_ch6.adb, s-solita.adb: Minor
328 reformatting.
329
3302011-09-06 Arnaud Charlet <charlet@adacore.com>
331
332 * s-linux-alpha.ads: Minor reformatting
333 * s-oscons-tmplt.c: Fix generated comments in s-oscons template.
334 Use sizeof instead of corresponding C defines in s-oscons template.
335
5d42cba1
VG
3362011-09-06 Vadim Godunko <godunko@adacore.com>
337
338 * a-convec.ads, a-iteint.ads: Minor reformatting.
339
77aa62e7
AC
3402011-09-06 Vincent Celier <celier@adacore.com>
341
342 * projects.texi: Add menus and @node lines.
343
3442011-09-06 Ed Schonberg <schonberg@adacore.com>
345
346 * exp_ch6.adb (Expand_Inlined_Call): Handle properly the case
347 where the return type is an unconstrained array and the context
348 is an assignment. Optimize the case when the target of the
349 assignment is a selected component.
350
3512011-09-06 Arnaud Charlet <charlet@adacore.com>
352
353 * s-solita.adb: Update comments.
354
3552011-09-06 Pascal Obry <obry@adacore.com>
356
357 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, s-linux-mipsel.ads,
358 s-linux-sparc.ads: Remove hard coded and now wrong definitions.
359 * s-oscons-tmplt.c: Add support for generating pthread related
360 types size on GNU/Linux as done for Darwin.
361 * s-osinte-linux.ads: Use s-oscons to define the pthread types.
362
886b5a18
AC
3632011-09-06 Robert Dewar <dewar@adacore.com>
364
365 * exp_ch6.adb: Fix minor typo.
366
3672011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
368
369 * exp_ch7.adb: Remove with and use clauses for Get_Targ.
370 (Alignment_Of): Moved to the body of Nearest_Multiple_Rounded_Up.
371 (Double_Size_Of): Alphabetized. Update the comment on usage.
372 (Make_Finalize_Address_Stmts): Update comments and reformat code.
373 (Nearest_Multiple_Rounded_Up): New routine.
374 (Size_Of): Update comment on usage. The generated expression now
375 accounts for alignment gaps by rounding the size of the type to the
376 nearest multiple rounded up of the type's alignment.
377
57a3fca9
AC
3782011-09-06 Robert Dewar <dewar@adacore.com>
379
380 * exp_ch7.adb, g-comlin.adb: Minor reformatting.
381
3822011-09-06 Steve Baird <baird@adacore.com>
383
384 * exp_ch4.adb (Expand_Allocator_Expression): Look through
385 derived subprograms in checking for presence of an
386 Extra_Accessibility_Of_Result formal parameter.
387 * exp_ch6.adb (Expand_Call): Look through derived subprograms in
388 checking for presence of an Extra_Accessibility_Of_Result formal
389 parameter.
390 (Expand_Call.Add_Actual_Parameter): Fix a bug in the
391 case where the Parameter_Associatiations attribute is already set,
392 but set to an empty list.
393 (Needs_Result_Accessibility_Level):
394 Unconditionally return False. This is a temporary
395 change, disabling the Extra_Accessibility_Of_Result
396 mechanism.
397 (Expand_Simple_Function_Return): Check for
398 Extra_Accessibility_Of_Result parameter's presence instead of
399 testing Ada_Version when generating a runtime accessibility
400 check which makes use of the parameter.
401
eaed0c37
AC
4022011-09-06 Ed Schonberg <schonberg@adacore.com>
403
404 * exp_ch4.adb (Expand_N_Case_Expression): Actions created for the
405 expression in a given case alternative must be attached to the
406 statement list of the ccrresponding case statement alternative
407 They cannot be propagated ahead of the case statement, because
408 the validity of the expression that generated the action may
409 hold only for that alternative.
410
4112011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
412
413 * exp_ch7.adb: Remove with and use clauses for Get_Targ.
414 (Alignment_Of): Remove the code for strict alignment targets.
415 (Double_Alignment_Of): Removed.
416 (Double_Size_Of): New routine.
417 (Make_Finalize_Address_Stmts): Change the
418 calculation of the dope's size. Update relevant comments.
419 (Size_Of): New routine.
420
b8a93198
AC
4212011-09-06 Steve Baird <baird@adacore.com>
422
423 * einfo.ads (Extra_Accessibility): Update associated comment to use
424 the term "present" correctly ("present" just means that it is not
425 an error to query the value of the attribute - it does not imply
426 that the value must be non-null).
427 (Extra_Constrained): Ditto.
428 (Is_Visible_Formal): Ditto.
429 (Extra_Accessibility_Of_Result) Ditto; also add Inline pragma.
430 (Set_Extra_Accessibility_Of_Result): Add Inline pragma.
431 * exp_ch4.adb (Expand_Allocator_Expression): Improve a comment.
432 * exp_ch6.adb (Expand_Call): The callee may require an
433 Extra_Accessibility_Of_Result actual parameter even if Ada_Version
434 < Ada_2012. This can occur if the callee is exported from a Gnat
435 runtimes unit. Also improve a comment.
436
4372011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
438
439 * exp_ch7.adb: Add with and use clauses for Get_Targ.
440 (Alignment_Of): Rename formal parameter Some_Typ
441 to Typ, update related comment. Use the allocator alignment on
442 strict alignment targets such as SPARC.
443 (Double_Alignment_Of): Rename formal parameter Some_Typ to Typ, update
444 related comment.
445
4462011-09-06 Gary Dismukes <dismukes@adacore.com>
447
448 * sem_ch9.adb (Check_Interfaces): Test
449 Is_Limited_Type rather than Is_Limited_Record when checking that
450 the partial view of a synchronized full view must be limited.
451
4522011-09-06 Emmanuel Briot <briot@adacore.com>
453
454 * g-comlin.adb (Free): Fix memory leak.
455
ebf494ec
RD
4562011-09-06 Robert Dewar <dewar@adacore.com>
457
458 * sem_util.adb, exp_ch6.adb: Minor reformatting and code reorganization.
459
63585f75
SB
4602011-09-06 Steve Baird <baird@adacore.com>
461
462 * einfo.ads (Extra_Accessibility_Of_Result): New function; in the
463 (Ada2012) cases described in AI05-0234 where the accessibility
464 level of a function result is "determined by the point of
465 call", an implicit parameter representing that accessibility
466 level is passed in. Extra_Accessibilty_Of_Result yields this
467 additional formal parameter. Extra_Accessibility_Of_Result
468 is analogous to the existing Extra_Accessibility
469 function used in the implementation of access parameters.
470 (Set_Extra_Accessibility_Of_Result): New procedure; sets
471 Extra_Accessibility_Of_Result attribute.
472 * einfo.adb (Extra_Accessibility_Of_Result): New function.
473 (Set_Extra_Accessibility_Of_Result): New procedure.
474 (Write_Field19_Name): Display Extra_Accessibilty_Of_Result attribute.
475 * sem_util.adb (Dynamic_Accessibility_Level): Set Etype of
476 an accessibility level literal to Natural; introduce a nested
477 function, Make_Level_Literal, to do this.
478 * exp_ch6.ads (Needs_Result_Accessibility_Level): New function;
479 determines whether a given function (or access-to-function
480 type) needs to have an implicitly-declared accessibility-level
481 parameter added to its profile.
482 (Add_Extra_Actual_To_Call): Export an existing procedure which was
483 previously declared in the body of Exp_Ch6.
484 * exp_ch6.adb (Add_Extra_Actual_To_Call): Export declaration by moving
485 it to exp_ch6.ads.
486 (Has_Unconstrained_Access_Discriminants): New Function; a
487 predicate on subtype entities which returns True if the given
488 subtype is unconstrained and has one or more access discriminants.
489 (Expand_Call): When expanding a call to a function which takes an
490 Extra_Accessibility_Of_Result parameter, pass in the appropriate
491 actual parameter value. In the case of a function call which is
492 used to initialize an allocator, this may not be possible because
493 the Etype of the allocator may not have been set yet. In this
494 case, we defer passing in the parameter and handle it later in
495 Expand_Allocator_Expression.
496 (Expand_Simple_Function_Return): When returning from a function which
497 returns an unconstrained subtype having at least one access
498 discriminant, generate the accessibility check needed to ensure that
499 the function result will not outlive any objects designated by its
500 discriminants.
501 (Needs_Result_Accessibility_Level): New function; see exp_ch6.ads
502 description.
503 * exp_ch4.adb (Expand_Allocator_Expression): When a function call
504 is used to initialize an allocator, we may need to pass in "the
505 accessibility level determined by the point of call" (AI05-0234)
506 to the function. Expand_Call, where such actual parameters are
507 usually generated, is too early in this case because the Etype of
508 the allocator (which is used in determining the level to be passed
509 in) may not have been set yet when Expand_Call executes. Instead,
510 we generate code to pass in the appropriate actual parameter
511 in Expand_Allocator_Expression.
512 * sem_ch6.adb (Create_Extra_Formals): Create
513 the new Extra_Accessibility_Of_Result formal if
514 Needs_Result_Accessibility_Level returns True. This includes the
515 introduction of a nested procedure, Check_Against_Result_Level.
516
1a982c6e
AC
5172011-09-06 Arnaud Charlet <charlet@adacore.com>
518
519 * gcc-interface/Makefile.in (X86_TARGET_PAIRS): Remove duplicate
520 declaration.
521
e42bcfa3
AC
5222011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
523
524 * s-finmas.adb (Set_Finalize_Address): Explain the reason
525 for the synchronization. Move the test for null from
526 s-stposu.Allocate_Any_Controlled to this routine since the check
527 needs to be protected too.
528 (Set_Heterogeneous_Finalize_Address): Explain the reason for the
529 synchronization code.
530 * s-finmas.ads (Set_Heterogeneous_Finalize_Address): Add comment
531 explaining the context in which this routine is used.
532 * s-stposu.adb (Allocate_Any_Controlled): Move the test for null
533 to s-finmas.Set_Finalize_Address.
534
5352011-09-05 Ed Schonberg <schonberg@adacore.com>
536
537 * einfo.ads: Document that itypes have no parent field.
538
5392011-09-05 Robert Dewar <dewar@adacore.com>
540
541 * rtsfind.adb (Check_CRT): Check for overloaded entity
542 * rtsfind.ads: Document that entities to be found by rtsfind
543 cannot be overloaded
544 * s-taenca.adb, s-tasren.adb, s-tpobop.adb, s-tpoben.ads, s-tpoben.adb
545 (Lock_Entries_With_Status): New name for Lock_Entries with two
546 arguments (changed to meet rtsfind no overloading rule).
547
544e7c17
AC
5482011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
549
550 * s-finmas.adb (Set_Finalize_Address (Address,
551 Finalize_Address_Ptr)): Renamed to Set_Heterogeneous_Finalize_Address.
552 (Set_Finalize_Address (in out Finalization_Master,
553 Finalize_Address_Ptr): Add synchronization code.
554 * s-finmas.ads (Set_Finalize_Address (Address,
555 Finalize_Address_Ptr)): Renamed to Set_Heterogeneous_Finalize_Address.
556 * s-stposu.adb (Allocate_Any_Controlled): Update the call to
557 Set_Finalize_Address for the heterogeneous case.
558
5592011-09-05 Ed Schonberg <schonberg@adacore.com>
560
561 * sem_ch3.adb: Undo previous change, not suitable after all.
562
5632011-09-05 Robert Dewar <dewar@adacore.com>
564
565 * einfo.ads: Minor comment clarification.
566
0613fb33
AC
5672011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
568
569 * exp_ch6.adb (Move_Activation_Chain): Rewritten. The routine
570 no longer needs to search through the entities of the return
571 statement scope to find the _chain.
572 * sem_ch5.adb: Add with and use clauses for Exp_Ch6 and Sem_Ch6.
573 (Analyze_Block_Statement): Add local variable
574 Is_BIP_Return_Statement. Add machinery to install all entities
575 produced by the expansion of the return object declaration.
576 (Install_Return_Entities): New routine.
577 * sem_ch6.ads, sem_ch6.adb (Install_Entity): Moved from body to spec.
578
5792011-09-05 Ed Schonberg <schonberg@adacore.com>
580
581 * sem_ch10.adb (Analyze_Context): Apply simple fixup if context
582 of subunit is incomplete.
583 (Analyze_Proper_Body): If parent spec is not available, do not
584 attempt analysis.
585
5dcab3ca
AC
5862011-09-05 Ed Schonberg <schonberg@adacore.com>
587
588 * sem_disp.adb (Find_Controlling_Arg): Add checks for
589 interface type conversions, that are expanded into dereferences.
590
5912011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
592
593 * sem_ch6.adb (Analyze_Subprogram_Body_Helper):
594 Examine the parameter and return profile of a subprogram and swap
595 any incomplete types coming from a limited context with their
596 corresponding non-limited views.
597 (Exchange_Limited_Views): New routine.
598
5992011-09-05 Ed Schonberg <schonberg@adacore.com>
600
601 * sem_ch3.adb (Prepare_Private_Subtype_Completion): Set parent
602 of internal entity to the subtype declaration, so that when
603 entities are subsequently exchanged in a package body, the tree
604 remains properly formatted for ASIS.
605
8da1a312
AC
6062011-09-05 Johannes Kanig <kanig@adacore.com>
607
608 * g-comlin.adb (Set_Usage): Additional optional argument to set help
609 message.
610 (Display_Help): display the user given help message, if available.
611
6122011-09-05 Ed Schonberg <schonberg@adacore.com>
613
614 * sem_ch3.adb (OK_For_Limited_Init_In_05): The expression
615 is legal if the original node is an identifier that is a
616 parameterless function call.
617
69b73847
PO
6182011-09-05 Pascal Obry <obry@adacore.com>
619
620 * prj-nmsc.adb: Minor reformatting.
621 Add support for standalone aggregate library.
622 (Check_Stand_Alone_Library): Handle standalone aggregate library.
623 * projects.texi: Fix documentation for aggregate library projects.
624
81bf2382
AC
6252011-09-05 Robert Dewar <dewar@adacore.com>
626
627 * sem_ch6.adb: Minor reformatting.
628
6292011-09-05 Matthew Gingell <gingell@adacore.com>
630
631 * s-tassta.adb (Task_Wrapper): Ensure that we don't try to write the
632 stack guard page on PPC Linux. This patch ensures the 64K guard page at
633 the bottom of the stack is not overwritten.
634
13a0b1e8
AC
6352011-09-05 Thomas Quinot <quinot@adacore.com>
636
637 * exp_intr.adb, s-tasini.adb: Minor reformatting.
638
6392011-09-05 Ed Schonberg <schonberg@adacore.com>
640
641 * sem_ch3.adb (Access_Definition): If an access type declaration
642 appears in a child unit, the scope of whatever anonymous type
643 may be generated is the child unit itself.
644
6452011-09-05 Ed Schonberg <schonberg@adacore.com>
646
647 * sem_ch6.adb (Analyze_Expression_Function): Do not set
648 Comes_From_Source on rewritten body.
649 (Analyze_Subprogram_Body_Helper): Check that the original node for
650 the body comes from source, when determining whether expansion
651 of a protected operation is needed.
652
20428725
AC
6532011-09-05 Ed Schonberg <schonberg@adacore.com>
654
655 * exp_aggr.adb (Replace_Type): If the target of the assignment is
656 a selected component and the right-hand side is a self-referential
657 access, the proper prefix of the rewritten attribute is a copy
658 of the left-hand side, not of its prefix.
659
6602011-09-05 Robert Dewar <dewar@adacore.com>
661
662 * sem_ch5.adb: Minor reformatting.
663 * sem_ch3.adb: Minor code clean up.
664
6652011-09-05 Jose Ruiz <ruiz@adacore.com>
666
667 * exp_ch9.adb (Make_Initialize_Protection): The fact that
668 restriction No_Dynamic_Attachment is in effect or not should
669 not influence the default priority associated to a protected
670 object. With this change, when the restriction is in effect (as
671 is the case for the Ravenscar profile) the default priority of
672 a protected object with an interrupt handler is in the range of
673 interrupt priorities (Default_Interrupt_Priority) as required
674 by D.3(10).
675
6762011-09-05 Arnaud Charlet <charlet@adacore.com>
677
678 * a-iteint.ads: Fix header.
679
6802011-09-05 Vincent Celier <celier@adacore.com>
681
682 * prj-conf.adb (Do_Autoconf): Make sure Obj_Dir always ends
683 with a directory separator to avoid output such as:
684 "/path/to/objauto.cgpr" has been deleted.
685
4a1bfefb
AC
6862011-09-05 Robert Dewar <dewar@adacore.com>
687
688 * sem_ch3.adb: Minor reformatting.
689
6902011-09-05 Ed Schonberg <schonberg@adacore.com>
691
692 * sem_ch5.adb: Better error message.
693
6942011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
695
696 * exp_aggr.adb: Add with and use clause for Exp_Ch6.
697 (Expand_Array_Aggregate): Detect a special case of an aggregate
698 which contains tasks in the context of an unexpanded return
699 statement of a build-in-place function.
700 * exp_ch6.adb: Add with and use clause for Exp_Aggr.
701 (Expand_N_Extended_Return_Statement): Detect a delayed aggregate
702 which contains tasks and expand it now that the original simple
703 return statement has been rewritten.
704 * exp_ch9.adb (Build_Activation_Chain_Entity): Code
705 reformatting. Do not create a chain for an extended return
706 statement if one is already available.
707 (Has_Activation_Chain): New routine.
708
9ec080cb
AC
7092011-09-05 Marc Sango <sango@adacore.com>
710
711 * sem_ch3.adb (Analyze_Object_Declaration): Remove
712 the wrong test and add the correct test to detect the violation
713 of illegal use of unconstrained string type in SPARK mode.
714
7152011-09-05 Ed Schonberg <schonberg@adacore.com>
716
717 * sem_ch5.adb (Analyze_Iteration_Specification): Improve error
718 message on an iterator over an array.
719
7202011-09-05 Robert Dewar <dewar@adacore.com>
721
722 * lib-xref-alfa.adb: Minor reformatting.
723
aeae67ed
RD
7242011-09-05 Robert Dewar <dewar@adacore.com>
725
726 * sem_ch3.adb, sem_res.adb, par.adb, par-ch6.adb, g-comlin.adb,
727 exp_ch6.adb, lib-xref-alfa.adb: Minor reformatting.
728
d72e7628
AC
7292011-09-05 Gary Dismukes <dismukes@adacore.com>
730
731 * exp_ch7.adb, exp_ch6.adb: Minor reformatting.
732
7332011-09-05 Johannes Kanig <kanig@adacore.com>
734
735 * lib-xref-alfa.adb: Update comments.
736
7372011-09-05 Thomas Quinot <quinot@adacore.com>
738
739 * sem_res.adb: Minor reformatting
740
0d566e01
ES
7412011-09-05 Ed Schonberg <schonberg@adacore.com>
742
743 * exp_ch6.adb (Build_In_Place_Formal): If extra formals are not
744 present, create them now. Needed in case the return type was
745 a limited view in the function declaration.
746 (Make_Build_In_Place_Call_In_Allocator): If return type contains
747 tasks, build the activation chain for it. Pass a reference to
748 the Master_Id in call to Add_Task_Actuals_To_Build_In_Place call.
749 * exp_ch7.adb (Make_Set_Finalize_Address_Call): Clean up interface
750 with build_in_place calls.
751 * sem_ch9.adb (Analyze_Task_Type_Declaration): If partial view was
752 incomplete, inatialize its Corresponding_Record_Type component.
753 * sem_ch10.adb (Build_Chain): Initialize Private_Dependents field
754 of limited views.
755
ec09f261
AC
7562011-09-05 Johannes Kanig <kanig@adacore.com>
757
758 * lib-xref-alfa.adb (Is_Alfa_Reference): Filter constants from effect
759 information.
760
7612011-09-05 Ed Schonberg <schonberg@adacore.com>
762
763 * par-ch6.adb (P_Subprogram): In Ada2012 mode, if the subprogram
764 appears within a package specification and the token after "IS"
765 is not a parenthesis, assume that this is an unparenthesized
766 expression function, even if the token appears in a line by
767 itself.
768 * par.adb: Clarify use of Labl field of scope stack in error
769 recovery.
770
7109f4f5
AC
7712011-09-05 Bob Duff <duff@adacore.com>
772
773 * sem_res.adb (Resolve_Intrinsic_Operator): Use unchecked
774 conversions instead of normal type conversions in all cases where a
775 type conversion would be illegal. In particular, use unchecked
776 conversions when the operand types are private.
777
7782011-09-05 Johannes Kanig <kanig@adacore.com>
779
780 * lib-xref-alfa.adb (Is_Alfa_Reference): Never declare effects on
781 objects of task type or protected type.
782
66dc8075
AC
7832011-09-05 Ed Schonberg <schonberg@adacore.com>
784
785 * sem_ch6.adb (Analyze_Expression_Function): If the expression
786 function comes from source, indicate that so does its rewriting,
787 so it is compatible with any subsequent expansion of the
788 subprogram body (e.g. when it is a protected operation).
789 * sem_ch4.adb: minor reformatting
790
7912011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
792
793 * lib.adb (Check_Same_Extended_Unit): Comment rewriting. Use
794 Get_Source_Unit rather than Get_Code_Unit as instantiation unfolding
795 may lead to wrong ancestor package in the case of instantiated subunit
796 bodies. If a subunit is instantiated, follow the chain of instantiations
797 rather than the stub structure.
798
bd38b431
AC
7992011-09-02 Robert Dewar <dewar@adacore.com>
800
801 * sem_ch4.adb, sem_ch6.adb: Minor reformatting.
802 * gcc-interface/Make-lang.in: Update dependencies.
803
8042011-09-02 Marc Sango <sango@adacore.com>
805
806 * sem_ch3.adb (Analyze_Object_Declaration): Change
807 comment and add additional check to differentiate constant of
808 type string from others unconstrained type.
809
99d520ad
ES
8102011-09-02 Ed Schonberg <schonberg@adacore.com>
811
812 * sinfo.ads, sinfo.adb: New semantic attribute Premature_Use,
813 present in incomplete type declarations to refine the error
814 message the full declaration is in the same unit.
815 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of
816 an incomplete type, set the Premature_Use for additional message.
817 * sem_ch3.adb (Find_Type_Name): If partial view is incomplete
818 and Premature_Use is set, place additional information at the
819 point of premature use.
820
5b5588dd
AC
8212011-09-02 Bob Duff <duff@adacore.com>
822
823 * sem_ch6.adb: (Check_Post_State): Suppress warning
824 "postcondition refers only to pre-state" when the expression has not
825 yet been analyzed, because it causes false alarms. This can happen when
826 the postcondition contains a quantified expression, because those are
827 analyzed later. This is a temporary/partial fix.
828 (Process_Post_Conditions): Minor: change wording of warning.
829
8302011-09-02 Marc Sango <sango@adacore.com>
831
832 * sem_ch3.adb (Analyze_Object_Declaration): Detect the violation of
833 illegal use of unconstrained string type in SPARK mode.
834 * sem_res.adb (Analyze_Operator_Symbol): Set the
835 right place where the string operand of concatenation should be
836 violate in SPARK mode.
837
bd603506
RD
8382011-09-02 Robert Dewar <dewar@adacore.com>
839
840 * sem_prag.adb, sem_util.adb, sem_ch6.adb, prj-nmsc.adb,
841 exp_ch3.adb: Minor reformatting.
842
24a120ac
AC
8432011-09-02 Vincent Celier <celier@adacore.com>
844
845 * prj-conf.adb (Add_Default_GNAT_Naming_Scheme): Declare "gcc"
846 as the compiler driver so Is_Compilable returns True for sources.
847 * prj-nmsc.adb (Override_Kind): When Kind is Sep, set the source
848 for the body.
849
8502011-09-02 Ed Schonberg <schonberg@adacore.com>
851
852 * sem_prag.adb (Analyze_PPC_In_Decl_Part): for a class-wide
853 condition, a reference to a controlling formal must be interpreted
854 as having the class-wide type (or an access to such) so that the
855 inherited condition can be properly applied to any overriding
856 operation (see ARM12 6.6.1 (7)).
857
8582011-09-02 Tristan Gingold <gingold@adacore.com>
859
860 * init.c (__gnat_is_vms_v7): Fix case and add prototype
861 for LIB$GETSYI.
862
8632011-09-02 Javier Miranda <miranda@adacore.com>
864
865 * exp_ch3.adb (Expand_N_Object_Declaration): Do not copy the
866 initializing expression of a class-wide interface object declaration
867 if its type is limited.
868
8692011-09-02 Johannes Kanig <kanig@adacore.com>
870
871 * sem_util.adb (Unique_Name): To obtain a unique name for enumeration
872 literals, take into account the type name; the type is *not*
873 the scope for an enumeration literal.
874
8752011-09-02 Ed Schonberg <schonberg@adacore.com>
876
877 * sem_ch6.adb (Check_Overriding_Indicator): add special check
878 to reject an overriding indicator on a user-defined Adjust
879 subprogram for a limited controlled type.
880
8812011-09-02 Ed Schonberg <schonberg@adacore.com>
882
883 * sem_res.adb (Resolve_Actuals): add missing call to Resolve
884 for an actual that is a function call returning an unconstrained
885 limited controlled type.
886
8872011-09-02 Tristan Gingold <gingold@adacore.com>
888
889 * g-socthi-vms.adb (c_sendmsg, c_recvmsg): Use unpacked msg if on vms 7
890
8912011-09-02 Johannes Kanig <kanig@adacore.com>
892
893 * alfa.ads (Name_Of_Heap_Variable): Change value of the HEAP variable
894 from "HEAP" to __HEAP Change comment that refers to that variable
895 * put_alfa.adb: Change comment that refers to that variable
896
c5f5123f
AC
8972011-09-02 Robert Dewar <dewar@adacore.com>
898
899 * exp_ch4.adb, exp_ch6.adb, prj-nmsc.adb: Minor reformatting.
900
9012011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
902
903 * exp_util.adb (Extract_Renamed_Object): Renamed to
904 Find_Renamed_Object. This routine has been reimplemented and now uses
905 tree traversal to locate a renamed object.
906 (Is_Aliased): Replace call to Extract_Renamed_Object with
907 Find_Renamed_Object.
908
9092011-09-02 Tristan Gingold <gingold@adacore.com>
910
911 * init.c: (__gnat_is_vms_v7): New function.
912
9132011-09-02 Olivier Hainque <hainque@adacore.com>
914
915 * tracebak.c (STOP_FRAME, ppc elf/vxworks case): Stop on frames
916 that have a misaligned backchain, necessarily bogus.
917
2bfa5484
HK
9182011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
919
920 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not create
921 TSS routine Finalize_Address when compiling in Alfa mode.
922 (Expand_Freeze_Record_Type): Do not create TSS routine
923 Finalize_Address when compiling in Alfa mode.
924 * exp_ch4.adb (Expand_Allocator_Expression): Do not produce a
925 call to Set_Finalize_Address in Alfa mode because Finalize_Address is
926 not built.
927 (Expand_N_Allocator): Do not produce a call to
928 Set_Finalize_Address in Alfa mode because Finalize_Address is not built.
929 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not
930 produce a call to primitive Set_Finalize_Address in Alfa mode because
931 Finalize_Address is not built.
932 * exp_ch7.adb (Build_Finalization_Master): Do not create
933 finalization masters in Afa mode since they are not needed.
934 (Build_Finalizer): Do not create scope and library-level
935 finalizers in Alfa mode since they are not needed.
936 * exp_util.adb (Build_Allocate_Deallocate_Proc): Do not expand
937 "new" and "free" when applied to controlled objects in Alfa mode since
938 this is not needed.
939
7a0ddd20
AC
9402011-09-02 Vincent Celier <celier@adacore.com>
941
942 * prj-nmsc.db: (Check_Stand_Alone_Library): For SALs, allow
943 only library names with the syntax of Ada identifiers, to avoid errors
944 when compiling the binder generated files.
945 * projects.texi: Document restriction on SAL library names
946
9472011-09-02 Thomas Quinot <quinot@adacore.com>
948
949 * a-chtgbo.adb: Minor comment fix.
950
439b6dfa
AC
9512011-09-02 Robert Dewar <dewar@adacore.com>
952
953 * lib-xref.adb: Minor reformatting
954
9552011-09-02 Vincent Celier <celier@adacore.com>
956
957 * bindusg.adb, clean.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
958 gnatls.adb, gnatname.adb, gnatxref.adb, gprep.adb, makeusg.adb: Add
959 --version and --help in usage.
960 * switch.ads, switch.adb (Display_Usage_Version_And_Help): New procedure
961
f2404867
AC
9622011-09-02 Bob Duff <duff@adacore.com>
963
964 * lib-xref.adb: (Hash): Avoid use of 'Mod attribute, because old
965 compilers don't understand it.
966
9672011-09-02 Gary Dismukes <dismukes@adacore.com>
968
969 * exp_attr.adb (Expand_N_Attribute_Reference): Pass the
970 underlying subtype rather than its base type on the call to
971 Build_Record_Or_Elementary_Input_Function, so that any
972 constraints on a discriminated subtype will be available for
973 doing the check required by AI05-0192.
974 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function):
975 If the prefix subtype of the 'Input attribute is a constrained
976 discriminated subtype, then check each constrained discriminant value
977 against the corresponding value read from the stream.
978
029b67ba
YM
9792011-09-02 Yannick Moy <moy@adacore.com>
980
981 * usage.adb, warnsw.adb, sem_ch6.adb, opt.ads: Disable by default
982 warnings on suspicious contracts, and enable them with -gnatwa.
983
dc36a7e3
RD
9842011-09-02 Robert Dewar <dewar@adacore.com>
985
986 * exp_util.adb, exp_ch9.adb, sem_attr.adb, sem_ch6.adb: Minor
987 reformatting.
988
d5aa443c
AC
9892011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
990
991 * exp_ch9.adb (Install_Private_Data_Declarations): Add guards
992 which ensure that restriction No_Dynamic_Attachment has not been
993 violated.
994 (Make_Initialize_Protection): Protected types with attach or
995 interrupt handlers must not violate restriction No_Dynamic_Attachment.
996 * exp_util.adb (Corresponding_Runtime_Package): Add a guard
997 which ensures that restriction No_Dynamic_Attachment has not been
998 violated.
999 * sem_attr.adb: (Eval_Attribute): Transform
1000 VAX_Float_Type'First and 'Last into references to
1001 the temporaries which store the corresponding bounds. The
1002 transformation is needed since the back end cannot evaluate
1003 'First and 'Last on VAX.
1004 (Is_VAX_Float): New routine.
1005
10062011-09-02 Ed Schonberg <schonberg@adacore.com>
1007
1008 * sem_ch12.adb (Analyze_Subprogram_Instantiation): If the
1009 generic unit is not intrinsic and has an explicit convention,
1010 the instance inherits it.
1011
67c86178
AC
10122011-09-02 Robert Dewar <dewar@adacore.com>
1013
1014 * prj-dect.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, prj-tree.adb,
1015 prj.adb, prj.ads, sem_ch5.adb: Minor reformatting.
1016
10172011-09-02 Thomas Quinot <quinot@adacore.com>
1018
1019 * sem_attr.adb (Analyze_Attribute, case Unrestriced_Access):
1020 Guard against a prefix that is an N_Has_Entity but has no
1021 associated entity.
1022
10232011-09-02 Yannick Moy <moy@adacore.com>
1024
1025 * lib-xref-alfa.adb (Is_Alfa_Reference): Ignore IN parameters in Alfa
1026 references.
1027
10282011-09-02 Yannick Moy <moy@adacore.com>
1029
1030 * opt.ads (Warn_On_Suspicious_Contract): New warning flag.
1031 * sem_ch3.adb (Analyze_Declarations): Call checker for suspicious
1032 contracts.
1033 * sem_ch6.adb, sem_ch6.ads (Check_Subprogram_Contract): New
1034 procedure looking for suspicious postconditions.
1035 * usage.adb (Usage): New options -gnatw.t and -gnatw.T.
1036 * warnsw.adb (Set_Dot_Warning_Switch): Take into account new
1037 options -gnatw.t and -gnatw.T.
1038
735ca1b9
PO
10392011-09-02 Pascal Obry <obry@adacore.com>
1040
1041 * prj.adb: Minor code refactoring. Move check for null project in
1042 Project_Changed.
1043 * projects.texi: Fix minor typos.
1044
86828d40
AC
10452011-09-02 Ed Schonberg <schonberg@adacore.com>
1046
1047 * sem_ch5.adb (Analyze_Iterator_Specification): If the domain
1048 of iteration is an expression, its value must be captured in a
1049 renaming declaration, so that modification of the elements is
1050 propagated to the original container.
1051
10522011-09-02 Pascal Obry <obry@adacore.com>
1053
1054 * prj-proc.adb, prj.adb, makeutl.adb, makeutl.ads, prj-dect.adb,
1055 prj-nmsc.adb, prj-util.adb, prj-conf.adb, prj-env.adb,
1056 prj-tree.adb: Minor reformatting and style fixes.
1057
83de674b
AC
10582011-09-02 Robert Dewar <dewar@adacore.com>
1059
1060 * s-rident.ads: Add new restriction No_Implicit_Aliasing
1061 * sem_attr.adb: (Analyze_Access_Attribute): Deal with
1062 No_Implicit_Aliasing
1063 (Analyze_Attribute, case Address): ditto
1064 (Analyze_Attribute, case Unrestricted_Access): ditto
1065 * sem_util.ads, sem_util.adb: (Is_Aliased_View): Handle
1066 No_Implicit_Aliasing restriction.
1067 * gnat_rm.texi: Add documentation for No_Implicit_Aliasing
1068
10692011-09-02 Ed Schonberg <schonberg@adacore.com>
1070
1071 * exp_util.adb: (Possible_Bit_Aligned_Object): If the object
1072 is an unchecked conversion, apply test to its expression.
1073
10742011-09-02 Javier Miranda <miranda@adacore.com>
1075
1076 * sem_ch3.adb (Check_Abstract_Overriding): When
1077 traversing the chain of aliased subprograms avoid reporting a
1078 redundant error on the current entity.
1079
10802011-09-02 Sergey Rybin <rybin@adacore.com>
1081
1082 * gnat_ugn.texi: Minor clean up.
1083
10842011-09-02 Bob Duff <duff@adacore.com>
1085
1086 * s-htable.adb (Set_If_Not_Present): Use renaming
1087 instead of ":=", because the type Key is limited in the generic (even
1088 if not in the instances).
1089
2c17ca0a
AC
10902011-09-02 Robert Dewar <dewar@adacore.com>
1091
1092 * exp_util.adb, sem_ch10.adb, sem_attr.adb, s-htable.adb,
1093 g-comlin.adb, g-comlin.ads, lib-xref-alfa.adb, lib-xref.adb: Minor
1094 reformatting.
1095
10962011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
1097
1098 * sem_ch3.adb: (Set_Anonymous_Type): Associate the itype of an
1099 inherited component with the enclosing derived type. Code reformatting.
1100
11012011-09-02 Gary Dismukes <dismukes@adacore.com>
1102
1103 * checks.adb: (Determine_Range): Add test of OK1 to prevent the early
1104 return done when overflow checks are enabled, since comparisons against
1105 Lor and Hir should not be done when OK1 is False.
1106
11072011-09-02 Gary Dismukes <dismukes@adacore.com>
1108
1109 * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
1110 Add new formal Master_Exp. When present, add that expression to the
1111 call as an extra actual.
1112 (Make_Build_In_Place_Call_In_Object_Declaration): Add variable
1113 Fmaster_Actual and in the case of a BIP call initializing a return
1114 object of an enclosing BIP function set it to a
1115 new reference to the implicit finalization master
1116 formal of the enclosing function. Fmaster_Actual is
1117 then passed to the new formal Master_Exp on the call to
1118 Add_Finalization_Master_Actual_To_Build_ In_Place_Call. Move
1119 initializations of Enclosing_Func to its declaration.
1120
11212011-09-02 Thomas Quinot <quinot@adacore.com>
1122
1123 * csets.ads: Minor reformatting
1124
11252011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
1126
1127 * exp_aggr.adb: (Get_Constraint_Association): Add code to retrieve
1128 the full view of a private type coming from an instantiation.
1129 * exp_ch4.adb: (Current_Anonymous_Master): Reimplement the search
1130 loop to iterate over the declarations rather than use the
1131 First_Entity / Next_Entity scheme.
1132
ed32b82e
ES
11332011-09-02 Ed Schonberg <schonberg@adacore.com>
1134
1135 * sem_attr.adb: (Analyze_Attribute, case 'Range): when expanding
1136 X'range (N) into X'First (N) .. X'Last (N), do not share the
1137 dimension indicator N, if present. Even though it is a static
1138 constant, its source location may be modified when printing
1139 expanded code under -gnatDL, and node sharing will lead to chaos
1140 in Sprint on large files, by generating a sloc value that does
1141 not correspond to any source file.
1142
f7bb41af
AC
11432011-09-02 Bob Duff <duff@adacore.com>
1144
1145 * einfo.adb: (Has_Xref_Entry): Do not call
1146 Implementation_Base_Type. Lib.Xref has been
1147 rewritten to avoid the need for it, and it was costly.
1148 * s-htable.ads,s-htable.adb: (Present,Set_If_Not_Present): New
1149 functions in support of efficient xref.
1150 * lib-xref-alfa.adb: Misc changes related to Key component of
1151 type Xref_Entry.
1152 * lib-xref.adb: (Add_Entry,etc): Speed improvement.
1153 (New_Entry): Call Implementation_Base_Type, because Has_Xref_Entry
1154 no longer does. This is the one place where it is needed.
1155
11562011-09-02 Johannes Kanig <kanig@adacore.com>
1157
1158 * g-comlin.adb (Getopt): New optional argument Concatenate to have
1159 similar interface as the other Getopt function.
1160
11612011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
1162
1163 * exp_ch4.adb: (Expand_Allocator_Expression): Do not generate
1164 a call to Set_Finalize_Address if there is no allocator available.
1165 * exp_util.adb: (Build_Allocate_Deallocate_Proc): Account for
1166 a case of allocator expansion where the allocator is not expanded but
1167 needs a custom allocate routine. Code reformatting.
1168 (Is_Finalizable_Transient): Remove local variables Has_Rens and
1169 Ren_Obj. Code reformatting.
1170 (Is_Renamed): Renamed to Is_Aliased. Add code to detect aliasing
1171 through the use of 'reference.
1172 * sem_ch4.adb: (Analyze_Allocator): Detect allocators generated
1173 as part of build-in-place expansion. They are intentionally marked as
1174 coming from source, but their parents are not.
1175
bd0bc43e
AC
11762011-09-02 Ed Schonberg <schonberg@adacore.com>
1177
1178 * sem_ch10.adb (Analyze_With_Clause): If the library unit
1179 is the generated subprogram declaration for a child unit body
1180 that acts as spec, use the original body in the with_clause,
1181 to prevent binding errors.
1182
11832011-09-02 Vincent Celier <celier@adacore.com>
1184
1185 * gnat_ugn.texi: Adapt documentation of -gnateInnn to new VMS
1186 qualifier /MULTI_UNIT_INDEX=
1187
11882011-09-02 Johannes Kanig <kanig@adacore.com>
1189
1190 * g-comlin.adb (Getopt): Return when switch is dealt with automatically,
1191 instead of calling the callback function
1192
9fdb5d21
RD
11932011-09-02 Robert Dewar <dewar@adacore.com>
1194
1195 * prj-proc.adb, prj.ads, sem_util.adb, s-taprop-linux.adb,
1196 prj-nmsc.adb, prj-util.ads, prj-env.adb: Minor reformatting.
1197
c6d5d1ac
AC
11982011-09-02 Vincent Celier <celier@adacore.com>
1199
1200 * prj-nmsc.adb: (Find_Sources): When the list of sources is
1201 explicitly declared in an extending project, do not warn if a source
1202 for an inherited naming exception is not found.
1203
12042011-09-02 Gary Dismukes <dismukes@adacore.com>
1205
1206 * exp_ch6.adb: (Is_Build_In_Place_Function_Call): Return False if
1207 expansion is inactive.
1208
12092011-09-02 Ed Schonberg <schonberg@adacore.com>
1210
1211 * sem_util.adb (Note_Possible_Modification): If the entity
1212 being modified is the renaming generated for an Ada2012 iterator
1213 element, the enclosing container or array is modified as well.
1214
2ba1a7c7
AC
12152011-09-02 Jose Ruiz <ruiz@adacore.com>
1216
1217 * s-taprop-linux.adb (Initialize_Lock, Initialize_TCB,
1218 Initialize): Define and initialize the
1219 mutex attributes and condition variable attributes locally.
1220
12212011-09-02 Vincent Celier <celier@adacore.com>
1222
1223 * prj-nmsc.adb (Check_File): Mark as Locally_Removed a naming
1224 exception replaced in an extending project.
1225 (Check_Object): No error when the other source is locally removed.
1226
12272011-09-02 Yannick Moy <moy@adacore.com>
1228
1229 * exp_ch6.adb (Is_Build_In_Place_Function_Call): in Alfa mode, allow
1230 unresolved calls.
1231
d51813db
AC
12322011-08-31 Arnaud Charlet <charlet@adacore.com>
1233
1234 * gcc-interface/Makefile.in: Clean up handling of x86 and x86-64
1235 run-time files.
1236 * gcc-interface/Make-lang.in: Update dependencies.
1237
9f55bc62
AC
12382011-09-01 Robert Dewar <dewar@adacore.com>
1239
1240 * sem_ch3.adb, s-taprop-linux.adb, gnatls.adb: Minor reformatting.
1241
12422011-09-01 Jose Ruiz <ruiz@adacore.com>
1243
1244 * adaint.h (__gnat_cpu_free): Fix the name of this profile.
1245 * adaint.c (__gnat_cpu_alloc, __gnat_cpu_alloc_size, __gnat_cpu_free,
1246 __gnat_cpu_zero, __gnat_cpu_set): Create version of these subprograms
1247 specific for systems where their glibc version does not define the
1248 routines to handle dynamically allocated CPU sets.
1249
12502011-09-01 Vincent Celier <celier@adacore.com>
1251
1252 * prj-proc.adb, prj.ads, prj-nmsc.adb, prj-util.adb, prj-util.ads,
1253 prj-env.adb: Implement inheritance of naming exceptions in extending
1254 projects.
1255
d7386a7a
AC
12562011-09-01 Romain Berrendonner <berrendo@adacore.com>
1257
1258 * gnatls.adb: Display simple message instead of content of
1259 gnatlic.adl.
1260
12612011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
1262
1263 * sem_ch3.adb: (Build_Derived_Record_Type) Remove the kludgy update of
1264 access discriminant and anonymous access component scopes.
1265 (Inherit_Component): Reuse the itype of an access discriminant
1266 or anonymous access component by copying it in order to set the proper
1267 scope. This is done only when the parent and the derived type
1268 are in different scopes.
1269 (Set_Anonymous_Etype): New routine.
1270
12712011-09-01 Robert Dewar <dewar@adacore.com>
1272
1273 * a-convec.adb: Minor reformatting throughout.
1274
9d1e0e72
JR
12752011-09-01 Jose Ruiz <ruiz@adacore.com>
1276
1277 * adaint.c, adaint.h (__gnat_cpu_alloc, __gnat_cpu_alloc_size,
1278 __gnat_cpu_set_free): Create these wrappers around the CPU_ALLOC,
1279 CPU_ALLOC_SIZE and CPU_FREE linux macros.
1280 (__gnat_cpu_zero, __gnat_cpu_set): Use the CPU_ZERO_S and
1281 CPU_SET_S respectively because we are now using dynamically allocated
1282 CPU sets which are more portable across different glibc versions.
1283 * s-osinte-linux.ads (cpu_set_t_ptr, CPU_ALLOC, CPU_ALLOC_SIZE,
1284 CPU_FREE): Add this type and subprograms to be able to create cpu_set_t
1285 masks dynamically according to the number of processors in the target
1286 platform.
1287 (CPU_ZERO, CPU_SET): They are now mapped to the CPU_ZERO_S and CPU_SET_S
1288 respectively, so we need to pass the size of the masks as
1289 parameters.
1290 * s-taprop-linux.adb (Create_Task, Set_Task_Affinity): Use dynamically
1291 created cpu_set_t masks
1292 with the number of processors available in the target platform,
1293 instead of static bit arrays. It enhances portability because
1294 it uses the information from the target platform.
1295 * sem_ch8.adb: (Attribute_Renaming): When checking whether we
1296 are using a restricted run-time library, use the flag
1297 Configurable_Run_Time_Mode instead of Restricted_Profile.
1298
a95be2d4
AC
12992011-09-01 Vincent Celier <celier@adacore.com>
1300
1301 * ug_words: Add /MULTI_UNIT_INDEX= -> -gnateI
1302 * vms_data.ads: Add new VMS qualifier equivalent for -gnateInnn
1303
13042011-09-01 Nicolas Roche <roche@adacore.com>
1305
1306 * adaint.c (__gnat_tmp_name): Don't use tmpnam function from the system
1307 on VxWorks in kernel mode.
1308
6b81741c
AC
13092011-09-01 Jose Ruiz <ruiz@adacore.com>
1310
1311 * s-taprop-linux.adb (Create_Task, Set_Task_Affinity): Use the linux
1312 macros for handling CPU sets (CPU_ZERO, CPU_SET) instead of modifying
1313 directly the bit array.
1314 * s-osinte-linux.ads (CPU_ZERO, CPU_SET): Import these wrappers around
1315 the linux macros with the same name.
1316 * adaint.h, adaint.c (__gnat_cpu_zero, __gnat_cpu_set): Create these
1317 wrappers around the CPU_ZERO and CPU_SET linux macros.
1318
13192011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
1320
1321 * exp_ch7.adb (Find_Insertion_List): Removed.
1322 (Process_Transient_Objects): Insert the declarations of the hook
1323 access type and the hook object before the associated transient object.
1324
13252011-09-01 Jose Ruiz <ruiz@adacore.com>
1326
1327 * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
1328 package System.Aux_Dec when using restricted run-time libraries which
1329 do not have this package.
1330
13312011-09-01 Tristan Gingold <gingold@adacore.com>
1332
1333 * s-vaflop-vms-alpha.adb: Remove pragma optimize, useless.
1334
13352011-09-01 Bob Duff <duff@adacore.com>
1336
1337 * sem_attr.adb (Analyze_Access_Attribute): Do not call
1338 Kill_Current_Values for P'Unrestricted_Access, where P is library level
1339
13402011-09-01 Thomas Quinot <quinot@adacore.com>
1341
1342 * exp_ch5.adb: Minor reformatting
1343 * gnat_ugn.texi: Fix minor typos.
1344 * gcc-interface/Make-lang.in: Update dependencies.
1345
8256c1bf
AC
13462011-09-01 Robert Dewar <dewar@adacore.com>
1347
1348 * inline.adb, sem_aggr.adb: Minor reformatting.
1349
13502011-09-01 Ed Schonberg <schonberg@adacore.com>
1351
1352 * a-convec.adb: Proper handling of cursors for Ada2012 iterators.
1353
d1c5f424
AC
13542011-09-01 Robert Dewar <dewar@adacore.com>
1355
1356 * prj-proc.adb, exp_ch6.adb, prj-env.adb: Minor reformatting.
1357
13582011-09-01 Bob Duff <duff@adacore.com>
1359
1360 * sem_aggr.adb (Resolve_Aggregate): Need to treat "in instance
1361 body" the same as "in inlined body", because visibility shouldn't
1362 apply there.
1363
13642011-09-01 Eric Botcazou <ebotcazou@adacore.com>
1365
1366 * inline.adb (Add_Inlined_Body): Refine previous change.
1367
1bb6e262
AC
13682011-09-01 Gary Dismukes <dismukes@adacore.com>
1369
1370 * exp_ch6.ads (Needs_BIP_Alloc_Form): New utility function.
1371 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
1372 Test for case where call
1373 initializes an object of a return statement before testing for
1374 a constrained call, to ensure that all such cases get handled
1375 by simply passing on the caller's parameters. Also, in that
1376 case call Needs_BIP_Alloc_Form to determine whether to pass on
1377 the BIP_Alloc_Form parameter of the enclosing function rather
1378 than testing Is_Constrained. Add similar tests for the return
1379 of a BIP call to later processing to ensure consistent handling.
1380 (Needs_BIP_Alloc_Form): New utility function.
1381 * sem_ch6.adb: (Create_Extra_Formals): Replace test for adding
1382 a BIP_Alloc_Form formal with call to new utility function
1383 Needs_BIP_Alloc_Form.
1384
13852011-09-01 Pascal Obry <obry@adacore.com>
1386
1387 * prj-part.adb: Minor reformatting.
1388
13892011-09-01 Vincent Celier <celier@adacore.com>
1390
1391 * prj-env.adb (Create_Mapping_File.Process): Encode the upper
1392 half character in the unit name.
1393
db15225a
AC
13942011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
1395
1396 * exp_ch4.adb: Minor code and comment reformatting.
1397
13982011-09-01 Thomas Quinot <quinot@adacore.com>
1399
1400 * exp_ch6.adb (Expand_Inlined_Call): Remove redundant tests
1401 for Is_Limited_Type and Is_Tagged_Type in condition checking
1402 for by-reference type.
1403 * inline.adb (Add_Inlined_Body): Only exclude init_procs. Other
1404 subprograms may have a completion because of a previous
1405 Inline_Always clause, but the enclosing package must be marked
1406 inlined for the subprogram body to become visible to the backend.
1407
9d641fc0
TQ
14082011-09-01 Thomas Quinot <quinot@adacore.com>
1409
1410 * sem_aux.adb, exp_ch4.adb: Minor reformatting
1411
dbe36d67
AC
14122011-09-01 Pascal Obry <obry@adacore.com>
1413
1414 * prj-proc.adb, prj.ads, sinput-p.adb: Minor reformatting.
1415
14162011-09-01 Ed Schonberg <schonberg@adacore.com>
1417
1418 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Generate references to
1419 the formals of a subprogram stub that acts as a spec.
1420
14212011-09-01 Ed Schonberg <schonberg@adacore.com>
1422
1423 * exp_ch6.adb (Expand_Inlined_Call): If an actual is a by_reference
1424 type, declare a renaming for it, not an object declaration.
1425
f5037886
AC
14262011-09-01 Yannick Moy <moy@adacore.com>
1427
1428 * ali-util.adb, ali-util.ads (Read_Withed_ALIs): Add parameter
1429 Ignore_Errors to ignore failures to read ALI files when True.
1430
14312011-09-01 Javier Miranda <miranda@adacore.com>
1432
1433 * exp_ch3.adb (Expand_N_Object_Declaration): Handle non-default
1434 constructor calls associated with non-tagged record types.
1435
14362011-09-01 Robert Dewar <dewar@adacore.com>
1437
1438 * g-socthi-vms.adb: Minor reformatting.
1439
14402011-09-01 Nicolas Roche <roche@adacore.com>
1441
1442 * sysdep.c: Don't use macro functions for stdio functions on VxWorks
1443 in order to avoid impact of imcompatible changes.
1444 * cstreams.c: Likewise
1445 * cio.c: Likewise
1446 * aux-io.c: Likewise
1447
14482011-09-01 Yannick Moy <moy@adacore.com>
1449
1450 * lib-writ.adb (Write_With_Lines): Always output complete information
1451 on "with" line in Alfa mode, as this is required by formal verification
1452 back-end.
1453
549e4558
AC
14542011-09-01 Tristan Gingold <gingold@adacore.com>
1455
1456 * g-socthi-vms.adb: Add comments.
1457
14582011-09-01 Pascal Obry <obry@adacore.com>
1459
1460 * prj.ads: Minor reformatting.
1461
70c0422d
AC
14622011-09-01 Vincent Celier <celier@adacore.com>
1463
1464 * prj-env.adb (Create_Config_Pragmas_File.Check): Put all naming
1465 exceptions in the config pragmas file.
1466
14672011-09-01 Tristan Gingold <gingold@adacore.com>
1468
1469 * gnat_ugn.texi: Document GNAT_STACK_SIZE on IVMS.
1470
8c5b03a0
AC
14712011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
1472
1473 * exp_ch7.adb (Find_Insertion_List): New routine.
1474 (Process_Transient_Objects): Add code to handle the abnormal
1475 finalization of a controlled transient associated with a subprogram
1476 call. Since transients are cleaned up right after the associated
1477 context, an exception raised during a subprogram call may bypass the
1478 finalization code.
1479
14802011-09-01 Robert Dewar <dewar@adacore.com>
1481
1482 * exp_ch6.adb (Expand_Call): Check actual for aliased parameter is
1483 aliased.
1484
3040dbd4
RD
14852011-09-01 Robert Dewar <dewar@adacore.com>
1486
1487 * exp_ch4.adb, a-exexda.adb: Minor reformatting.
1488
fecbd779
AC
14892011-09-01 Robert Dewar <dewar@adacore.com>
1490
1491 * s-taskin.ads, s-tassta.adb, sem_ch13.adb: Minor reformatting.
1492
14932011-09-01 Thomas Quinot <quinot@adacore.com>
1494
1495 * Makefile.rtl: Move s-oscons.o from GNATRTL_TASKING_OBJS to
1496 GNATRTL_NONTASKING_OBJS.
1497
14982011-09-01 Robert Dewar <dewar@adacore.com>
1499
1500 * einfo.ads (Is_Aliased): Fix existing documentation and add note on
1501 possibility of this flag being set for formals in Ada 2012 mode.
1502 * par-ch6.adb (P_Formal_Part): Handle aliased for parameters for Ada
1503 2012.
1504 * sem_ch6.adb (Process_Formals): Handle aliased parameters in Ada 2012
1505 mode.
1506 * sinfo.adb (Aliased_Present): Allowed in N_Parameter_Specification for
1507 Ada 2012.
1508 * sinfo.ads (Aliased_Present): Allowed in N_Parameter_Specification for
1509 Ada 2012.
1510
15112011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
1512
1513 * exp_ch4.adb (Find_Insertion_Node): New routine. Determines the proper
1514 insertion node in a tree of nested Expression_With_Actions nodes.
1515 (Process_Transient_Object): In the case where a complex if statement
1516 has been converted into nested Expression_With_Actions nodes, the
1517 "hook" object and the associated access type must be inserted before
1518 the top most Expression_With_Actions.
1519
516f608f
AC
15202011-09-01 Robert Dewar <dewar@adacore.com>
1521
1522 * a-cbprqu.adb, a-cbprqu.ads, a-cuprqu.adb, a-cuprqu.ads,
1523 a-cbsyqu.adb, a-cbsyqu.ads: Minor reformatting.
1524
15252011-09-01 Ed Schonberg <schonberg@adacore.com>
1526
1527 * sem_attr.adb: Conditionalize aliasing predicates to Ada2012.
1528
15292011-09-01 Jose Ruiz <ruiz@adacore.com>
1530
1531 * aspects.ads (Aspect_Id, Aspect_Argument, Aspect_Names): Add the CPU
1532 aspect.
1533 * aspects.adb (Canonical_Aspect): Add entry for the CPU aspect.
1534 * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze the CPU aspect
1535 in a similar way as we do for the Priority or Dispatching_Domain aspect.
1536 * s-mudido-affinity.adb (Dispatching_Domain_Tasks,
1537 Dispatching_Domains_Frozen): Move this local data to package
1538 System.Tasking because with the CPU aspect we need to have access
1539 to this data when creating the task in System.Tasking.Stages.Create_Task
1540 * s-taskin.ads (Dispatching_Domain_Tasks, Dispatching_Domains_Frozen):
1541 Move these variables from the body of
1542 System.Multiprocessors.Dispatching_Domains because with the CPU aspect
1543 we need to have access to this data when creating the task in
1544 System.Tasking.Stages.Create_Task.
1545 * s-taskin.adb (Initialize): Signal the allocation of the environment
1546 task to a CPU, if any, so that we know whether the CPU can be
1547 transferred to a different dispatching domain.
1548 * s-tassta.adb (Create_Task): Check whether the CPU to which this task
1549 is being allocated belongs to the dispatching domain where the task
1550 lives. Signal the allocation of the task to a CPU, if any, so that we
1551 know whether the CPU can be transferred to a different dispatching
1552 domain.
1553
2d42e881
ES
15542011-09-01 Ed Schonberg <schonberg@adacore.com>
1555
1556 * exp_attr.adb, sem_attr.adb, snames.ads-tmpl: Implementation of
1557 attributes Same_Storage and Overlaps_Storage.
1558
579fda56
AC
15592011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
1560
1561 * exp_strm.adb: Remove with and use clause for Opt.
1562 (Build_Array_Input_Function): Remove the version-dependent generation
1563 of the return statement. The Ada 2005 tree is now the default.
1564
15652011-09-01 Yannick Moy <moy@adacore.com>
1566
1567 * put_alfa.adb: Unconditionnally write files in Alfa section, so that
1568 it is never empty when compiling in Alfa mode.
1569
15702011-09-01 Robert Dewar <dewar@adacore.com>
1571
1572 * sem_aggr.adb, sem_ch3.adb, a-direct.adb, s-taprop-vxworks.adb,
1573 comperr.adb, exp_ch9.adb, exp_pakd.adb, sem_ch12.adb, freeze.adb,
1574 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
1575 gnat1drv.adb, a-rbtgbo.adb, exp_dist.adb: Minor reformatting
1576
15772011-09-01 Matthew Heaney <heaney@adacore.com>
1578
1579 * Makefile.rtl, impunit.adb: Add a-csquin.ads, a-cusyqu.ad[sb],
1580 a-cuprqu.ad[sb], a-cbsyqu.ad[sb], a-cbprqu.ad[sb]
1581 * a-csquin.ads: New Ada 2012 unit that specifies the queue interface
1582 * a-cusyqu.ads, a-cusyqu.adb: New Ada 2012 unit that specifies the
1583 unbounded queue container.
1584 * a-cbsyqu.ads, a-cbsyqu.adb: New Ada 2012 unit that specifies the
1585 bounded queue container.
1586 * a-cuprqu.ads, a-cuprqu.adb: New Ada 2012 unit that specifies the
1587 unbounded priority queue container.
1588 * a-cbprqu.ads, a-cbprqu.adb: New Ada 2012 unit that specifies the
1589 bounded priority queue container.
1590
24c34107
AC
15912011-08-31 Pascal Obry <obry@adacore.com>
1592
1593 * a-direct.adb: Do not try to create an UNC path on Windows.
1594 (Create_Path): Skip leading computer name in UNC path if any.
1595
15962011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
1597
1598 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): Remove the
1599 version-dependent generation of the return statement. The Ada 2005 tree
1600 is now the default.
1601
16022011-08-31 Thomas Quinot <quinot@adacore.com>
1603
1604 * rtsfind.ads, exp_dist.adb (Find_Numeric_Representation): Predefined
1605 types Stream_Element_Offset and Storage_Offset have a different native
1606 type depending on whether the platform is 32 or 64 bits. When
1607 exchanging them, always convert to 64 bits.
1608
16092011-08-31 Yannick Moy <moy@adacore.com>
1610
1611 * debug.adb: Reserve debug option -gnatd.E for passing gnatprove option
1612 --force-alfa to gnat2why.
1613
16142011-08-31 Ed Schonberg <schonberg@adacore.com>
1615
1616 * sem_ch12.adb (Save_References): If the node has aspects, save
1617 references within the corresponding expressions in a separate step,
1618 because the aspects are not directly in the tree for the declaration
1619 to which they belong.
1620
16212011-08-31 Arnaud Charlet <charlet@adacore.com>
1622
1623 * freeze.adb (Freeze_Record_Type): Omit test on variable size component
1624 in CodePeer mode, since representation clauses are partially ignored.
1625 * gcc-interface/Make-lang.in: Update dependencies.
1626
702d2020
AC
16272011-08-31 Jose Ruiz <ruiz@adacore.com>
1628
1629 * s-taprop-vxworks.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
1630 s-taprop-solaris.adb (Create_Task): Not_A_Specific_CPU can be assigned
1631 to any dispatching domain.
1632
16332011-08-31 Thomas Quinot <quinot@adacore.com>
1634
1635 * exp_ch4.adb: Minor reformatting.
1636
16372011-08-31 Bob Duff <duff@adacore.com>
1638
1639 * sem_ch6.adb (Get_Generic_Parent_Type): Don't query Subtype_Indication
1640 on nodes for which it is not defined.
1641 (Is_Non_Overriding_Operation): Exit the loop when we find a generic
1642 parent type.
1643
16442011-08-31 Bob Duff <duff@adacore.com>
1645
1646 * sem_ch3.adb (Process_Full_View): Disable legality check if
1647 In_Instance, to avoid spurious errors.
1648 * sem_ch12.adb (Validate_Derived_Type_Instance): Disable legality check
1649 if In_Instance, to avoid spurious errors.
1650
16512011-08-31 Pascal Obry <obry@adacore.com>
1652
1653 * a-direct.adb: Use Dir_Seps everywhere to properly handle all
1654 directory speparators.
1655 (Compose): Use Dir_Seps to handle both forms.
1656 (Create_Path): Use Dir_Seps instead of explicit check, no semantic
1657 changes.
1658 (Extension): Use Dir_Seps to handle both forms.
1659
16602011-08-31 Pascal Obry <obry@adacore.com>
1661
1662 * prj-conf.adb: Minor reformatting.
1663
67645bde
AC
16642011-08-31 Jose Ruiz <ruiz@adacore.com>
1665
1666 * aspects.ads (Aspect_Id, Aspect_Argument, Aspect_Names): Add the
1667 dispatching domain aspect.
1668 * aspects.adb (Canonical_Aspect): Add entry for the dispatching domain
1669 aspect.
1670 * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze the
1671 Dispatching_Domain aspect in a similar way as we do for the Priority
1672 aspect.
1673 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add the
1674 Dispatching_Domain component if a Dispatching_Domain pragma or aspect
1675 is present.
1676 (Make_Task_Create_Call): Add the Dispatching_Domain when creating a task
1677 * par-prag.adb (Prag): Add Pragma_Dispatching_Domain as a known pragma.
1678 * sem_prag.adb (Analyze_Pragma): Check the correctness of a pragma
1679 Dispatching_Domain and add it to the task definition.
1680 (Sig_Flags): Add Pragma_Dispatching_Domain.
1681 * rtsfind.ads, rtsfind.adb (RTU_Id, RE_Id, Get_Unit_Name): Add the
1682 support to find the types Dispatching_Domain and
1683 Dispatching_Domain_Access.
1684 * sinfo.ads, sinfo.adb (Has_Pragma_Dispatching_Domain,
1685 Set_Has_Pragma_Dispatching_Domain): Add these subprograms to set and
1686 query the availability of a pragma Dispatching_Domain.
1687 * snames.ads-tmpl (Name_uDispatching_Domain): Add this name required by
1688 the expander to pass the Dispatching_Domain when creating a task.
1689 (Name_Dispatching_Domain): Add this new name for a pragma.
1690 (Pragma_Id): Add the new Pragma_Dispatching_Domain.
1691 * s-tassta.ads, s-tassta.adb (Create_Task): Set the domain to which the
1692 task has been allocated at creation time.
1693 * s-tarest.adb (Create_Restricted_Task): The dispatching domain using
1694 Ravenscar is always null.
1695 * s-taskin.ads, s-taskin.adb (Initialize_ATCB): Set the domain to which
1696 the task has been allocated at creation time.
1697 * s-tporft.adb (Register_Foreign_Thread): A foreign task will not have
1698 a specific dispatching domain.
1699 * s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-vxworks.adb,
1700 s-taprop-mingw.adb (Create_Task): Check whether both Dispatching_Domain
1701 and CPU are specified for the task, and the CPU value is not contained
1702 within the range of processors for the domain.
1703
17042011-08-31 Vincent Celier <celier@adacore.com>
1705
1706 * make.adb (Original_Gcc) : New constant String_Access.
1707 (Gnatmake): For VM targets, do not use VM version of the compiler if
1708 --GCC= has been specified.
1709
17102011-08-31 Thomas Quinot <quinot@adacore.com>
1711
1712 * sem_ch5.adb: Minor reformatting.
1713
17142011-08-31 Ed Schonberg <schonberg@adacore.com>
1715
1716 * exp_pakd.adb (Convert_To_PAT_Type): If prefix is a function call, do
1717 not reanalyze it.
1718
17192011-08-31 Bob Duff <duff@adacore.com>
1720
1721 * exp_ch4.adb (Expand_N_Selected_Component): Use the full type, in case
1722 the access type is private; we don't care about privacy in expansion.
1723
17242011-08-31 Ed Schonberg <schonberg@adacore.com>
1725
1726 * sem_aggr.adb (Resolve_Aggregate): In an instance, ignore aggregate
1727 subcomponents tnat may be limited, because they originate in view
1728 conflicts. If the original aggregate is legal and the actuals are
1729 legal, the aggregate itself is legal.
1730
b8789727
AC
17312011-08-31 Matthew Heaney <heaney@adacore.com>
1732
1733 * a-rbtgbo.adb (Clear_Tree): Assert representation invariant for lock
1734 status.
1735
17362011-08-31 Ed Schonberg <schonberg@adacore.com>
1737
1738 * sem_ch5.adb: Set kind of loop parameter properly, to preserve all
1739 errors in B tests.
1740
17412011-08-31 Jose Ruiz <ruiz@adacore.com>
1742
1743 * sem_ch13.adb (Analyze_Aspect_Specifications): For the Priority and
1744 Interrupt_Priority aspects, force the analysis of the aspect expression
1745 (when building the equivalent pragma). Otherwise, its analysis is done
1746 too late, after the task or protected object has been created.
1747 * sem_ch9.adb (Analyze_Single_Protected_Declaration,
1748 Analyze_Single_Task_Declaration): Remove the code to move the aspects
1749 to the object declaration because they are needed in the type
1750 declaration.
1751
e0c32166
AC
17522011-08-31 Robert Dewar <dewar@adacore.com>
1753
1754 * exp_ch5.adb, exp_ch7.ads, sem_ch5.adb, put_scos.adb, s-rannum.adb,
1755 a-rbtgbo.adb, exp_intr.adb, a-cbdlli.adb, a-cbdlli.ads: Minor
1756 reformatting.
1757
17582011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
1759
1760 * exp_util.adb (Find_Protection_Type): Do not look for fields _object
1761 if the corresponding type is malformed due to restriction violations.
1762
17632011-08-31 Robert Dewar <dewar@adacore.com>
1764
1765 * s-ransee.ads, s-ransee.adb: Minor reformatting.
1766
17672011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
1768
1769 * exp_ch4.adb (Expand_N_Allocator): Correct faulty condition which
1770 would cause the generation of Set_Finalize_Address if the target is a
1771 VM and the designated type is not derived from [Limited_]Controlled.
1772
17732011-08-31 Arnaud Charlet <charlet@adacore.com>
1774
1775 * comperr.adb, comperr.ads, gnat1drv.adb (Delete_SCIL_Files): New
1776 subprogram.
1777 (Compiler_Abort, Gnat1drv): Call Delete_SCIL_Files in codepeer mode in
1778 case of a compilation error.
1779
17802011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
1781
1782 * init.c (__gnat_error_handler): Standardize the stack overflow or
1783 erroneous memory access message.
1784 * seh_init.c (__gnat_SEH_error_handler): Standardize the stack overflow
1785 or erroneous memory access message.
1786
11bc76df
AC
17872011-08-31 Robert Dewar <dewar@adacore.com>
1788
1789 * sem_ch4.adb: Minor reformatting.
1790 * sem_ch6.adb: Minor code reorganization (use Ekind_In).
1791
17922011-08-31 Thomas Quinot <quinot@adacore.com>
1793
1794 * scos.ads: Minor documentation clarification.
1795 * put_scos.adb: Do not generate SCO unit header line for a unit that
1796 has no SCO lines.
1797
876d4394
RD
17982011-08-31 Robert Dewar <dewar@adacore.com>
1799
1800 * a-rbtgbo.adb, alfa_test.adb: Minor reformatting.
1801
36b8f95f
AC
18022011-08-31 Tristan Gingold <gingold@adacore.com>
1803
1804 * exp_ch7.ads, exp_ch7.adb (Finalization_Exception_Data): New type to
1805 hold variables between these following subprograms.
1806 (Build_Exception_Handler, Build_Object_Declarations,
1807 Build_Raise_Statement): Use the above type as parameter.
1808 Make the above adjustments.
1809 * exp_intr.adb (Expand_Unc_Deallocation): Adjust.
1810
18112011-08-31 Pascal Obry <obry@adacore.com>
1812
1813 * projects.texi: Minor reformatting.
1814
18152011-08-31 Tristan Gingold <gingold@adacore.com>
1816
1817 * s-ransee.ads, s-ransee.adb: Add system.random_seed unit.
1818 * s-rannum.adb (Reset): Use Get_Seed from s-ransee.
1819
18202011-08-31 Ed Schonberg <schonberg@adacore.com>
1821
1822 * exp_ch5.adb: Minor code cleanup.
1823 * sem_ch5.adb (Analyze_Iteration_Scheme): Set ekind of loop variable to
1824 prevent cascaded errors.
1825 (Analyze_Loop_Statement): In semantics-only mode, introduce loop
1826 variable of an iterator specification in current scope.
1827 * sem_ch6.adb (Analyze_Return_Statement, Find_what_It_Apples_To): Skip
1828 postconditions on the stack, as they contain no return statements.
1829
18302011-08-31 Yannick Moy <moy@adacore.com>
1831
1832 * exp_alfa.adb (Expand_Alfa_N_Package_Declaration,
1833 Expand_Alfa_N_Subprogram_Body): Remove useless procedures which simply
1834 call Qualify_Entity_Names.
1835 (Expand_Alfa): call Qualify_Entity_Names in more cases
1836 * lib-xref-alfa.adb: Take into account system package.
1837 * sem_prag.adb Take into account restrictions in Alfa mode, contrary to
1838 CodePeer mode in which we are interested in finding bugs even if
1839 compiler cannot compile source.
1840 * sem_util.adb, sem_util.ads (Unique_Entity): Take into account case of
1841 deferred constant.
1842
18432011-08-31 Gary Dismukes <dismukes@adacore.com>
1844
1845 * sem_ch3.adb (Constrain_Concurrent): Retrieve Base_Type of the subtype
1846 denoted by the subtype mark to ensure getting the concurrent type in
1847 the case where the subtype mark denotes a private subtype of a
1848 concurrent type (needed when using -gnatc).
1849 (Process_Subtype): For the processing specific to type kinds, case on
1850 the Base_Type kind of the Subtype_Mark_Id, to handle cases where the
1851 subtype denotes a private subtype whose base type is nonprivate (needed
1852 for subtypes of private fulfilled by task types when compiling with
1853 -gnatc).
1854
18552011-08-31 Gary Dismukes <dismukes@adacore.com>
1856
1857 * sem_disp.adb (Check_Dispatching_Operation): Bypass registration of
1858 late primitives that override interface operations when the full
1859 expander is not active, to avoid blowups in Register_Primitive when
1860 types don't have associated secondary dispatch tables.
1861
18622011-08-31 Yannick Moy <moy@adacore.com>
1863
1864 * alfa_test.adb: Code clean up.
1865
18662011-08-31 Marc Sango <sango@adacore.com>
1867
1868 * restrict.adb (Check_SPARK_Restriction): Change Comes_From_Source (N)
1869 by Comes_From_Source (Original_Node (N)) in order to treat also the
1870 nodes which have been rewritten.
1871 * sem_ch4.adb (Analyze_Explicit_Dereference, Analyze_Slice): Guard the
1872 explicit dereference and slice violation in spark mode on the nodes
1873 coming only from the source code.
1874
8cf23b91
AC
18752011-08-31 Robert Dewar <dewar@adacore.com>
1876
1877 * exp_ch5.adb, exp_alfa.ads, prj.ads, sem_attr.adb,
1878 lib-xref-alfa.adb: Minor reformatting.
1879
18802011-08-31 Matthew Heaney <heaney@adacore.com>
1881
1882 * a-crbltr.ads (Tree_Type): Default-initialize the Nodes component.
1883
18842011-08-31 Javier Miranda <miranda@adacore.com>
1885
1886 * sem_ch4.adb (Try_Object_Operation): Addition of one formal to search
1887 only for class-wide subprograms conflicting with entities of concurrent
1888 tagged types.
1889
18902011-08-31 Matthew Heaney <heaney@adacore.com>
1891
1892 * a-rbtgbo.adb (Generic_Allocate): Initialize pointer components of
1893 node to null value.
1894
18952011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
1896
1897 * sem_ch12.adb (Insert_Freeze_Node_For_Instance): Provide a more
1898 general description of the routine.
1899
19002011-08-31 Ed Schonberg <schonberg@adacore.com>
1901
1902 * a-cbdlli.adb, a-cbdlli.ads: Add iterator machinery to bounded
1903 doubly-linked lists.
1904
0bb3bfb8
GD
19052011-08-31 Gary Dismukes <dismukes@adacore.com>
1906
1907 * exp_ch5.adb (Expand_N_Assignment_Statement): When a discriminant
1908 check is needed for a left-hand side that is a dereference, and the
1909 base type is private without discriminants (whereas the full type does
1910 have discriminants), an extra retrieval of the underlying type may be
1911 needed in the case where the subtype is a record subtype whose base
1912 type is private. Update comments.
1913
11fa950b
AC
19142011-08-31 Javier Miranda <miranda@adacore.com>
1915
1916 * sem_ch4.adb (Try_Object_Operation): When a dispatching primitive is
1917 found check if there is a class-wide subprogram covering the primitive.
1918
19192011-08-31 Yannick Moy <moy@adacore.com>
1920
1921 * sem_res.adb: Further cases where full expansion test is needed,
1922 rather than expansion test.
1923
19242011-08-31 Pascal Obry <obry@adacore.com>
1925
1926 * prj-attr.adb: Fix Source_File_Switches attribute kind (must be a list)
1927
19282011-08-31 Ed Schonberg <schonberg@adacore.com>
1929
1930 * exp_ch5.adb: Handle iterators over derived container types.
1931
19322011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
1933
1934 * einfo.ads, einfo.adb: Add new flag Has_Anonymous_Master.
1935 (Has_Anonymous_Master): New routine.
1936 (Set_Has_Anonymous_Master): New routine.
1937 (Write_Entity_Flags): Add an entry for Has_Anonymous_Master.
1938 * exp_ch4.adb: Add with and use clause for Sem_Ch8.
1939 (Current_Anonymous_Master): New routine.
1940 (Current_Unit_First_Declaration): Removed.
1941 (Current_Unit_Scope): Removed.
1942 (Expand_N_Allocator): Anonymous access-to-controlled types now chain
1943 their objects on a per-unit heterogeneous finalization master.
1944
19452011-08-31 Matthew Heaney <heaney@adacore.com>
1946
1947 * a-cbhama.adb, a-cbhase.adb (Insert): Check for zero-length buckets
1948 array.
1949
19502011-08-31 Jose Ruiz <ruiz@adacore.com>
1951
1952 * s-taprop-linux.adb (Create_Task): Avoid changing the affinity mask
1953 when not needed.
1954
19552011-08-31 Gary Dismukes <dismukes@adacore.com>
1956
1957 * sem_disp.adb (Propagate_Tag): Return without propagating in the case
1958 where the actual is an unexpanded call to 'Input.
1959
d2b4b3da
AC
19602011-08-31 Yannick Moy <moy@adacore.com>
1961
1962 * sem_ch4.adb: Code clean up.
1963
19642011-08-31 Yannick Moy <moy@adacore.com>
1965
1966 * exp_alfa.adb, exp_alfa.ads: Minor correction of copyright notice.
1967
19682011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
1969
1970 * exp_ch7.adb (Build_Array_Deep_Procs): Do not generate Deep_Finalize
1971 and TSS primitive Finalize_Address if finalization is suppressed.
1972 (Build_Record_Deep_Procs): Do not generate Deep_Finalize and TSS
1973 primitive Finalize_Address if finalization is suppressed.
1974
19752011-08-31 Jose Ruiz <ruiz@adacore.com>
1976
1977 * s-mudido-affinity.adb, s-taprop-linux.adb, s-taprop-mingw.adb,
1978 s-taprop-solaris.adb, s-taprop-vxworks.adb (Set_Task_Affinity): Make
1979 sure that the underlying task has already been created before trying
1980 to change its affinity.
1981 (Set_CPU): Use the term processor instead of CPU, as we do in
1982 Assign_Task.
1983
19842011-08-31 Vincent Celier <celier@adacore.com>
1985
1986 * prj-attr.adb: New Compiler attribute Source_File_Switches.
1987 * prj-nmsc.adb (Process_Compiler): Process attribute
1988 Source_File_Switches.
1989 * prj.ads (Language_Config): New name list component
1990 Name_Source_File_Switches.
1991 * snames.ads-tmpl (Name_Source_File_Switches): New standard name.
1992
19932011-08-31 Ed Schonberg <schonberg@adacore.com>
1994
1995 * sem_attr.adb (Analyze_Attribute, case 'Old): If prefix may be a
1996 discriminated component of an actual, expand at once to prevent
1997 ouf-of-order references with generated subtypes.
1998
19992011-08-31 Yannick Moy <moy@adacore.com>
2000
2001 * lib-xref-alfa.adb (Add_Alfa_Xrefs): Do not take into account read
2002 reference to operator in Alfa xrefs.
2003
20042011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
2005
2006 * sem_ch12.adb (Freeze_Subprogram_Body): Add code to handle the case
2007 where the parent instance was frozen before the current instance due to
2008 the presence of a source body. Update calls to Insert_After_Last_Decl.
2009 (Insert_After_Last_Decl): Renamed to Insert_Freeze_Node_For_Instance.
2010 Update the comment which illustrates the purpose of the routine.
2011 Package instances are now frozen by source bodies which appear after
2012 the instance. This ensures that entities coming from within the
2013 instance are available for use in the said bodies.
2014 (Install_Body): Add code to handle the case where the parent instance
2015 was frozen before the current instance due to the presence of a source
2016 body. Update calls to Insert_After_Last_Decl.
2017
56812278
AC
20182011-08-31 Jose Ruiz <ruiz@adacore.com>
2019
2020 * s-taprop-linux.adb (Set_Task_Affinity): Avoid the use of anonymous
2021 access types.
2022 * affinity.c (__gnat_set_affinity_mask): Declare index variable.
2023
20242011-08-31 Yannick Moy <moy@adacore.com>
2025
2026 * sem_ch8.adb (Analyze_Subprogram_Renaming): Refine expander test in
2027 full-expander test.
16c3301a
AC
2028 * alfa.adb, alfa.ads, alfa_test.adb, ali.adb, debug.adb, errout.adb,
2029 errout.ads, erroutc.adb, expander.adb, exp_ch4.adb, exp_ch7.adb,
2030 freeze.adb, get_alfa.adb, get_alfa.ads, gnat1drv.adb, lib-writ.adb,
2031 lib-writ.ads, lib-xref.adb, lib-xref.ads, lib-xref-alfa.adb, opt.adb,
2032 opt.ads, put_alfa.adb, put_alfa.ads, restrict.adb, sem_ch12.adb,
2033 sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
2034 sem_prag.adb, sem_res.adb, sem_util.adb: Minor reformatting, renaming
2035 ALFA in Alfa (we dropped acronym).
56812278
AC
2036 * einfo.adb (Primitive_Operations): Correctly return list of primitive
2037 operations in a case where it returned previously No_Elist.
2038
7cda9727
RD
20392011-08-31 Robert Dewar <dewar@adacore.com>
2040
2041 * s-taprop-vxworks.adb, sem_ch5.adb, s-taprop-tru64.adb, exp_alfa.adb,
2042 s-taprop-vms.adb, bindgen.adb, s-mudido.adb, s-mudido.ads,
2043 sem_res.adb, expander.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
2044 s-taprop-solaris.adb, s-mudido-affinity.adb, vms_conv.adb,
2045 s-taprop-irix.adb, s-taprop.ads, s-taskin.adb, s-taskin.ads,
2046 s-taprop-hpux-dce.adb, a-chtgbo.adb, s-taprop-posix.adb: Minor
2047 reformatting.
2048
0a190dfd
AC
20492011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
2050
2051 * sem_ch12 (Check_Private_View): Revert previous change.
2052 * sem_res.adb (Conversion_Check): Do not emit the error message if the
2053 conversion is in a generic instance.
2054
20552011-08-31 Matthew Heaney <heaney@adacore.com>
2056
2057 * a-cbhase.adb (Symmetric_Difference): Dereference correct node array.
2058 * a-chtgbo.adb (Free): Allow 0 as index value.
2059
20602011-08-31 Matthew Heaney <heaney@adacore.com>
2061
2062 * a-cborma.adb (Insert): Add comment to explain why no element
2063 assignment.
2064
20652011-08-31 Gary Dismukes <dismukes@adacore.com>
2066
2067 * sem_util.adb (Find_Body_Discriminal): Test whether the scope of the
2068 spec discriminant is already a concurrent type, in which case just use
2069 it, otherwise fetch the Corresponding_Concurrent_Type as before.
2070
7d266442
EB
20712011-08-30 Eric Botcazou <ebotcazou@adacore.com>
2072
2073 * system-irix-n64.ads, system-linux-armeb.ads, system-linux-armel.ads,
2074 system-linux-mips.ads, system-linux-mipsel.ads,
2075 system-linux-mips64el.ads, system-linux-ppc64.ads,
2076 system-linux-sparcv9.ads, system-rtems.ads: Remove GCC_ZCX_Support.
2077
4f1a975c
EB
20782011-08-30 Eric Botcazou <ebotcazou@adacore.com>
2079
2080 * gcc-interface/ada-tree.h (TYPE_EXTRA_SUBTYPE_P): Add internal check.
2081 * gcc-interface/utils2.c (build_binary_op): Tighten condition.
2082 (build_unary_op): Likewise.
2083
f2991b48
EB
20842011-08-30 Eric Botcazou <ebotcazou@adacore.com>
2085
2086 * raise-gcc.c: Do not include coretypes.h and tm.h.
2087 (setup_to_install): Remove test for compiler macro.
2088 * targext.c: Document use for the library.
2089 * gcc-interface/Makefile.in: Fix comment on the use of IN_GCC.
2090
10a22f43
EB
20912011-08-30 Eric Botcazou <ebotcazou@adacore.com>
2092
2093 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not convert
2094 the expression to the nominal type if the latter is a record type with
2095 a variant part and the type of the former is a record type without one.
2096
bfa2e39d
AC
20972011-08-30 Yannick Moy <moy@adacore.com>
2098
2099 * exp_aggr.adb, exp_ch11.adb, exp_prag.adb: Remove early exit during
2100 expansion in Alfa mode.
2101 * exp_ch6.adb, exp_ch6.ads (Expand_Actuals): Make subprogram public
2102 * exp_alfa.adb, exp_alfa.ads: New package defining light expansion for
2103 Alfa mode.
2104 * gnat1drv.adb (Adjust_Global_Switches): Update Comment.
2105 * sem_res.adb: Ditto.
bd34109a 2106 * gcc-interface/Make-lang.in: Update dependencies.
bfa2e39d
AC
2107
21082011-08-30 Thomas Quinot <quinot@adacore.com>
2109
2110 * g-socket.ads: Minor documentation adjustment.
2111
a0347839
AC
21122011-08-30 Robert Dewar <dewar@adacore.com>
2113
2114 * exp_ch9.adb, s-tassta.adb, s-secsta.adb: Minor reformatting.
2115
21162011-08-30 Yannick Moy <moy@adacore.com>
2117
2118 * exp_ch6_light.adb, exp_ch6_light.ads, exp_attr_light.adb,
2119 exp_attr_light.ads, exp_ch7_light.adb, exp_ch7_light.ads,
2120 exp_light.adb, exp_light.ads, exp_prag.adb, expander.adb,
2121 gnat1drv.adb, exp_ch11.adb, exp_ch6.adb, exp_ch6.ads, exp_aggr.adb:
2122 Revert change which introduced files for "light"
2123 expansion, to be replaced by a single file for Alfa expansion.
2124
3597c0e9
RD
21252011-08-30 Robert Dewar <dewar@adacore.com>
2126
2127 * opt.ads, s-soflin.adb, exp_ch9.adb, sem_res.adb: Update comment.
2128 Minor code reorg/reformatting.
2129
da94696d
AC
21302011-08-30 Yannick Moy <moy@adacore.com>
2131
2132 * opt.adb, opt.ads (Full_Expander_Active): New function defines a
2133 common shorthand for (Expander_Active and not ALFA_Mode) that can be
2134 used for testing full expansion, that is active expansion not in the
2135 reduced mode for Alfa
2136 * exp_ch4.adb, exp_ch9.adb, exp_disp.adb, sem_ch10.adb, sem_ch12.adb,
2137 sem_ch6.adb, sem_ch9.adb, sem_res.adb: Use newly defined "flag" instead
2138 of the verbose (Expander_Active and not ALFA_Mode)
2139
21402011-08-30 Tristan Gingold <gingold@adacore.com>
2141
2142 * s-parame-vms-alpha.ads, s-parame-hpux.ads, s-tassta.adb,
2143 s-tarest.adb, s-parame-vms-ia64.ads, s-soflin.adb, s-secsta.adb,
5b8ca141
TG
2144 s-secsta.ads, s-parame.ads, s-parame-vxworks.ads, s-parame-ae653.ads:
2145 Renames Ratio to Percentage, and Sec_Stack_Ratio to Sec_Stack_Percentage
da94696d 2146
c199ccf7
AC
21472011-08-30 Gary Dismukes <dismukes@adacore.com>
2148
2149 * sem_res.adb (Valid_Conversion): Revise test for implicit anonymous
2150 access conversions to check that the conversion is a rewritten node,
2151 rather than just having Comes_From_Source set to False, which wasn't
2152 sufficient.
2153
21542011-08-30 Robert Dewar <dewar@adacore.com>
2155
2156 * exp_ch9.adb, sem_ch9.adb, sem_ch6.adb, exp_disp.adb,
2157 g-socket.ads: Minor reformatting.
2158
21592011-08-30 Thomas Quinot <quinot@adacore.com>
2160
2161 * sem_util.adb: Minor reformatting.
2162
21632011-08-30 Tristan Gingold <gingold@adacore.com>
2164
2165 * raise-gcc.c: Never catch exception if _UA_FORCE_UNWIND flag is set,
2166 to be compliant with the ABI.
2167
dff99e1a
AC
21682011-08-30 Hristian Kirtchev <kirtchev@adacore.com>
2169
2170 * sem_ch12.adb (Check_Private_View): Exchange the private and full view
2171 of a designated type when the related access type is an actual in an
2172 instance. This ensures that the full view of designated type is
2173 available when inside the body of the instance.
2174
21752011-08-30 Ed Schonberg <schonberg@adacore.com>
2176
2177 * sem_util.adb (May_Be_Lvalue): To determine whether a reference may be
2178 in a position to be modified, a slice is treated like an indexed
2179 component.
2180
63be2a5a
AC
21812011-08-30 Thomas Quinot <quinot@adacore.com>
2182
2183 * s-oscons-tmplt.c, g-socket.ads: Adjust maximum allowed value for
2184 field tv_sec in struct timeval.
2185
21862011-08-30 Yannick Moy <moy@adacore.com>
2187
2188 * exp_ch9.adb, exp_disp.adb, sem_ch9.adb, sem_res.adb: Protect several
2189 blocks of code doing full expansion, previously only guarded by
2190 Expander_Active, by anding the test that ALFA_Mode is not set
2191
21922011-08-30 Ed Schonberg <schonberg@adacore.com>
2193
2194 * sem_ch6.adb (Analyze_Return_Type): If the return type is incomplete,
2195 add the function to the list of private dependents, for subsequent
2196 legality check on Taft amendment types.
2197 * sem_ch12.adb (Analyze_Formal_Incomplete_Type): Initialize
2198 Private_Dependents, as for other incomplete types.
2199 * sem_util.adb (Wrong_Type): Avoid cascaded errors when a
2200 Taft-amendment type is used as the return type of a function.
2201
dd54644b
JM
22022011-08-30 Javier Miranda <miranda@adacore.com>
2203
2204 * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup: replace code
2205 which emits an error by a call to a new routine which report the error.
2206 * exp_ch9.adb (Build_Wrapper_Spec): Build the wrapper even if the
2207 entity does not cover an existing interface.
2208 * errout.ads, errout.adb (Error_Msg_PT): New routine. Used to factorize
2209 code.
2210 * sem_ch6.adb (Check_Conformance): Add specific error for wrappers of
2211 protected procedures or entries whose mode is not conformant.
2212 (Check_Synchronized_Overriding): Code cleanup: replace code which emits
2213 an error by a call to a new routine which report the error.
2214
d3ba478e
AC
22152011-08-30 Robert Dewar <dewar@adacore.com>
2216
2217 * gnat_rm.texi: Minor change.
2218 * exp_attr_light.adb: Minor reformatting.
2219
22202011-08-30 Ed Schonberg <schonberg@adacore.com>
2221
2222 * sem_ch3.adb: Patch inheritance of aspects in
2223 Complete_Private_Subtype, to avoid infinite loop.
2224
c01817d2
AC
22252011-08-30 Javier Miranda <miranda@adacore.com>
2226
2227 * sem_ch3.adb (Add_Internal_Interface_Entities): If serious errors have
2228 been reported and a subprogram covering an interface primitive is not
2229 found then skip generating the internal entity. Done to avoid crashing
2230 the frontend.
2231 (Check_Abstract_Overriding): Change text of error of wrong formal of
2232 protected subprogram or entry. Done for consistency to emit exactly the
2233 same error reported by Check_Synchronized_Overriding. In addition, the
2234 error is restricted to protected types (bug found working on AI05-0090)
2235
22362011-08-30 Yannick Moy <moy@adacore.com>
2237
2238 * exp_aggr.adb, exp_ch11.adb, exp_prag.adb: Remove early exit during
2239 expansion in Alfa mode.
2240 * exp_ch6.adb, exp_ch6.ads (Expand_Actuals): Make subprogram public.
2241 * exp_light.adb, exp_light.ads: New package defining light expansion.
2242 * expander.adb (Expand): Call light expansion in Alfa mode
2243 * exp_ch6_light.adb, exp_ch6_light.ads: Light expansion of chapter 6
2244 constructs.
2245 * exp_ch7_light.adb, exp_ch7_light.ads: Light expansion of chapter 7
2246 constructs.
2247 * exp_attr_light.adb, exp_attr_light.ads: Light expansion of attributes
2248 * gnat1drv.adb (Adjust_Global_Switches): Comment
2249
22502011-08-30 Yannick Moy <moy@adacore.com>
2251
2252 * lib-xref-alfa.adb: Minor refactoring.
2253
22542011-08-30 Yannick Moy <moy@adacore.com>
2255
2256 * exp_ch9.adb (Expand_Entry_Barrier): Do not perform expansion in Alfa
2257 mode.
2258 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not perform
2259 expansion in Alfa mode.
2260 * sem_ch9.adb (Analyze_Entry_Body): Do not perform expansion in Alfa
2261 mode.
2262
22632011-08-30 Robert Dewar <dewar@adacore.com>
2264
2265 * debug_a.adb: Update comment.
2266
996c8821
RD
22672011-08-30 Robert Dewar <dewar@adacore.com>
2268
2269 * exp_ch5.adb, sem_ch3.adb, sem_ch5.adb, einfo.adb, checks.adb,
2270 sem_util.adb, sem_util.ads, sem_res.adb, s-stposu.adb, sem_attr.adb,
2271 exp_ch4.adb, exp_ch6.adb, lib-xref-alfa.adb,
2272 sem_ch8.adb, sem_disp.adb, exp_ch3.adb: Minor reformatting
2273
22742011-08-30 Robert Dewar <dewar@adacore.com>
2275
2276 * gnat_rm.texi: Add section on C.6(16) implementation advice for pragma
2277 volatile.
2278
3647ca26
HK
22792011-08-30 Hristian Kirtchev <kirtchev@adacore.com>
2280
2281 * exp_ch3.adb (Expand_Freeze_Array_Type): Correct the call to
2282 Build_Finalization_Master by supplying an insertion node and enclosing
2283 scope. In its old version, the call did not generate a finalization
2284 master.
2285 (Expand_Freeze_Record_Type): Add local variable Has_AACC. Add code to
2286 recognize anonymous access-to-controlled components. Rewrite the
2287 machinery which creates finalization masters to service anonymous
2288 access-to-controlled components of a record type. In its current state,
2289 only one heterogeneous master is necessary to handle multiple anonymous
2290 components.
2291 (Freeze_Type): Comment reformatting.
2292 * rtsfind.ads: Add RE_Set_Is_Heterogeneous to tables RE_Id and
2293 RE_Unit_Table.
2294 * s-stposu.adb (Allocate_Any_Controlled): Rewrite the machinery which
2295 associates TSS primitive Finalize_Address with either the master itself
2296 or with the internal hash table depending on the mode of operation of
2297 the master.
2298
6d4e4fbc
JM
22992011-08-30 Javier Miranda <miranda@adacore.com>
2300
2301 * exp_ch3.adb (Make_Eq_If): If the etype of the _parent component is an
2302 interface type then do not generate code to compare this component.
2303 Required since they have no components and their equality operator is
2304 abstract.
2305
d15f9422
AC
23062011-08-30 Steve Baird <baird@adacore.com>
2307
2308 * sem_util.ads (Deepest_Type_Access_Level): New function; for the type
2309 of a saooaaat (i.e, a stand-alone object of an anonymous access type),
2310 returns the (static) accessibility level of the object. Otherwise, the
2311 same as Type_Access_Level.
2312 (Dynamic_Accessibility_Level): New function; given an expression which
2313 could occur as the rhs of an assignment to a saooaaat (i.e., an
2314 expression of an access-to-object type), return the new value for the
2315 saooaaat's associated Extra_Accessibility object.
2316 (Effective_Extra_Accessibility): New function; same as
2317 Einfo.Extra_Accessibility except that object renames are looked through.
2318 * sem_util.adb
2319 (Deepest_Type_Access_Level): New function; see sem_util.ads description.
2320 (Dynamic_Accessibility_Level): New function; see sem_util.ads
2321 description.
2322 (Effective_Extra_Accessibility): New function; see sem_util.ads
2323 description.
2324 * einfo.ads (Is_Local_Anonymous_Access): Update comments.
2325 (Extra_Accessibility): Update comments.
2326 (Init_Object_Size_Align): New procedure; same as Init_Size_Align
2327 except RM_Size field (which is only for types) is unaffected.
2328 * einfo.adb
2329 (Extra_Accessibility): Expand domain to allow objects, not just formals.
2330 (Set_Extra_Accessibility): Expand domain to allow objects, not just
2331 formals.
2332 (Init_Size): Add assertion that we are not trashing the
2333 Extra_Accessibility attribute of an object.
2334 (Init_Size_Align): Add assertion that we are not trashing the
2335 Extra_Accessibility attribute of an object.
2336 (Init_Object_Size_Align): New procedure; see einfo.ads description.
2337 * sem_ch3.adb (Find_Type_Of_Object): Set Is_Local_Anonymous_Access
2338 differently for the type of a (non-library-level) saooaaat depending
2339 whether Ada_Version < Ada_2012. This is the only point where Ada_Version
2340 is queried in this set of changes - everything else (in particular,
2341 setting of the Extra_Accessibility attribute in exp_ch3.adb) is
2342 driven off of the setting of the Is_Local_Anonymous_Access attribute.
2343 The special treatment of library-level saooaaats is an optimization,
2344 not required for correctnesss. This is based on the observation that the
2345 Ada2012 rules (static and dynamic) for saooaaats turn out to be
2346 equivalent to the Ada2005 rules in the case of a library-level saooaaat.
2347 * exp_ch3.adb
2348 (Expand_N_Object_Declaration): If Is_Local_Anonymous_Access is
2349 false for the type of a saooaaat, declare and initialize its
2350 accessibility level object and set the Extra_Accessibility attribute
2351 of the saooaaat to refer to this object.
2352 * checks.adb (Apply_Accessibility_Check): Add Ada 2012 saooaaat support.
2353 * exp_ch4.adb (Expand_N_In): Replace some Extra_Accessibility calls with
2354 calls to Effective_Extra_Accessibility in order to support
2355 renames of saooaaats.
2356 (Expand_N_Type_Conversion): Add new local function,
2357 Has_Extra_Accessibility, and call it when determining whether an
2358 accessibility check is needed.
2359 It returns True iff Present (Effective_Extra_Accessibility (Id)) would
2360 evaluate to True (without raising an exception).
2361 * exp_ch5.adb
2362 (Expand_N_Assignment_Statement): When assigning to an Ada2012
2363 saooaaat, update its associated Extra_Accessibility object (if
2364 it has one). This includes an accessibility check.
2365 * exp_ch6.adb (Add_Call_By_Copy_Code): When parameter copy-back updates
2366 a saooaaat, update its Extra_Accessibility object too (if it
2367 has one).
2368 (Expand_Call): Replace a couple of calls to Type_Access_Level
2369 with calls to Dynamic_Access_Level to handle cases where
2370 passing a literal (any literal) is incorrect.
2371 * sem_attr.adb (Resolve_Attribute): Handle the static accessibility
2372 checks associated with "Saooaat := Some_Object'Access;"; this must
2373 be rejected if Some_Object is declared in a more nested scope
2374 than Saooaat.
2375 * sem_ch5.adb (Analyze_Assignment): Force accessibility checking for an
2376 assignment to a saooaaat even if Is_Local_Anonymous_Access
2377 returns False for its type (indicating a 2012-style saooaaat).
2378 * sem_ch8.adb
2379 (Analyze_Object_Renaming): Replace a call to Init_Size_Align
2380 (which is only appropriate for objects, not types) with a call
2381 of Init_Object_Size_Align in order to avoid trashing the
2382 Extra_Accessibility attribute of a rename (the two attributes
2383 share storage).
2384 * sem_res.adb
2385 (Valid_Conversion) Replace six calls to Type_Access_Level with
2386 calls to Deepest_Type_Access_Level. This is a bit tricky. For an
2387 Ada2012 non-library-level saooaaat, the former returns library level
2388 while the latter returns the (static) accessibility level of the
2389 saooaaat. A type conversion to the anonymous type of a saooaaat
2390 can only occur as part of an assignment to the saooaaat, so we
2391 know that such a conversion must be in a lhs context, so Deepest
2392 yields the result that we need. If such a conversion could occur,
2393 say, as the operand of an equality operator, then this might not
2394 be right. Also add a test so that static accessibilty checks are
2395 performed for converting to a saooaaat's type even if
2396 Is_Local_Anonymous_Access yields False for the type.
2397
23982011-08-30 Javier Miranda <miranda@adacore.com>
2399
2400 * sem_disp.adb (Check_Dispatching_Operation): Complete condition that
2401 controls generation of a warning associated with late declaration of
2402 dispatching functions. Required to avoid generating spurious
2403 warnings.
2404
6cce2156
GD
24052011-08-30 Gary Dismukes <dismukes@adacore.com>
2406
2407 * sem_ch6.adb (Check_Return_Subtype_Indication): Issue error if the
2408 return object has an anonymous access type and the function's type is
2409 a named access type.
2410 * sem_ch8.adb (Analyze_Object_Renaming): Suppress error about renaming
2411 conversions on implicit conversions, since such conversions can occur
2412 for anonymous access cases due to expansion. Issue error for attempt
2413 to rename an anonymous expression as an object of a named access type.
2414 * sem_res.ads (Valid_Conversion): Add defaulted parameter Report_Errs,
2415 to indicate whether this function should report errors on invalid
2416 conversions.
2417 * sem_res.adb (Resolve): For Ada 2012, in the case where the type of
2418 the expression is of an anonymous access type and the expected type is
2419 a named general access type, rewrite the expression as a type
2420 conversion, unless this is an expression of a membership test.
2421 (Valid_Conversion.Error_Msg_N): New procedure that conditions the
2422 calling of Error_Msg_N on new formal Report_Errs.
2423 (Valid_Conversion.Error_Msg_NE): New procedure that conditions the
2424 calling of Error_Msg_NE on new formal Report_Errs.
2425 (Valid_Conversion): Move declaration of this function to the package
2426 spec, to allow calls from membership test processing. For Ada 2012,
2427 enforce legality restrictions on implicit conversions of anonymous
2428 access values to general access types, disallowing such conversions in
2429 cases where the expression has a dynamic accessibility level (access
2430 parameters, stand-alone anonymous access objects, or a component of a
2431 dereference of one of the first two cases).
2432 * sem_type.adb (Covers): For Ada 2012, allow an anonymous access type
2433 in the context of a named general access expected type.
2434 * exp_ch4.adb Add with and use of Exp_Ch2.
2435 (Expand_N_In): Add processing for membership tests applied to
2436 expressions of an anonymous access type. First, Valid_Conversion is
2437 called to check whether the test is statically False, and then the
2438 conversion is expanded to test that the expression's accessibility
2439 level is no deeper than that of the tested type. In the case of
2440 anonymous access-to-tagged types, a tagged membership test is applied
2441 as well.
2442 (Tagged_Membership): Extend to handle access type cases, applying the
2443 test to the designated types.
2444 * exp_ch6.adb (Expand_Call): When creating an extra actual for an
2445 accessibility level, and the actual is a 'Access applied to a current
2446 instance, pass the accessibility level of the type of the current
2447 instance rather than applying Object_Access_Level to the prefix. Add a
2448 ??? comment, since this level isn't quite right either (will eventually
2449 need to pass an implicit level parameter to init procs).
2450
747de90b
AC
24512011-08-30 Bob Duff <duff@adacore.com>
2452
2453 * s-taskin.ads: Minor comment fix.
2454
24552011-08-30 Ed Schonberg <schonberg@adacore.com>
2456
2457 * sem_res.adb (Check_Parameterless_Call): If the node is a selected
2458 component and the selector is a dispatching operation, check if it is
2459 a prefixed call before rewriting as a parameterless function call.
2460
cdc4cc65
JJ
24612011-08-29 Jakub Jelinek <jakub@redhat.com>
2462
2463 * gcc-interface/Makefile.in (../stamp-gnatlib1-$(RTSDIR)): Copy
2464 tsystem.h into $(RTSDIR) instead of rts.
2465
226a7fa4
AC
24662011-08-29 Robert Dewar <dewar@adacore.com>
2467
2468 * sem_ch10.adb, a-coorse.adb, exp_dist.adb, exp_ch3.adb: Minor
2469 reformatting.
2470 * gcc-interface/Make-lang.in: Update dependencies.
2471
24722011-08-29 Yannick Moy <moy@adacore.com>
2473
2474 * alfa.ads (Name_Of_Heap_Variable): New constant name.
2475 * lib-xref-alfa.adb, lib-xref.adb, lib-xref.ads (Drefs): New global
2476 table to hold dereferences.
2477 (Add_ALFA_Xrefs): Take into account dereferences as special
2478 reads/writes to the variable "HEAP".
2479 (Enclosing_Subprogram_Or_Package): Move subprogram here.
2480 (Generate_Dereference): New procedure to store a read/write dereferencew
2481 in the table Drefs.
2482 * put_alfa.adb (Put_ALFA): Use different default than (0,0) used for
2483 the special "HEAP" var.
2484 * sem_ch4.adb (Analyze_Explicit_Dereference): Store read dereference
2485 in ALFA mode.
2486 * sem_util.adb (Note_Possible_Modification): Store write dereference
2487 in ALFA mode.
2488
dfbcb149
HK
24892011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
2490
2491 * exp_ch3.adb (Freeze_Type): Generate an accessibility check which
2492 ensures that the level of the subpool access type is not deeper than
2493 that of the pool object.
2494 * sem_util.adb (Object_Access_Level): Expand to handle defining
2495 identifiers.
2496 * sem_res.adb (Resolve_Allocator): Add a guard to avoid examining the
2497 subpool handle name of a rewritten allocator.
2498
1df4f514
AC
24992011-08-29 Robert Dewar <dewar@adacore.com>
2500
2501 * impunit.adb, exp_ch4.adb, s-finmas.adb: Minor reformatting.
2502
25032011-08-29 Thomas Quinot <quinot@adacore.com>
2504
2505 * exp_dist.adb (TC_Rec_Add_Process_Element): For a choice with multiple
2506 values, we generate multiple triples of parameters in the TypeCode.
2507 Bump Choice_Index for each such triple so that a subsequent default
2508 choice is associated with the correct index in the typecode.
2509
25102011-08-29 Ed Schonberg <schonberg@adacore.com>
2511
2512 * a-cdlili.adb (Iterate): Initialize properly an iterator over a null
2513 container.
2514 (First, Last): Handle properly an iterator over a null container.
2515
25162011-08-29 Bob Duff <duff@adacore.com>
2517
2518 * sem_ch10.adb (Analyze_With_Clause,Install_Withed_Unit): Abandon
2519 processing if we run across a node with no Scope. This can happen if
2520 we're with-ing an library-level instance, and that instance got errors
2521 that caused "instantiation abandoned".
2522 * sem_util.adb (Unit_Declaration_Node): Make it more robust, by raising
2523 an exception instead of using Assert, so it won't go into an infinite
2524 loop, even when assertions are turned off.
2525
25262011-08-29 Ed Schonberg <schonberg@adacore.com>
2527
2528 * a-coorse.adb: Proper handling of empty ordered sets.
2529
14f0f659
AC
25302011-08-29 Johannes Kanig <kanig@adacore.com>
2531
2532 * debug.adb: Add comments.
2533
8027b455
AC
25342011-08-29 Thomas Quinot <quinot@adacore.com>
2535
2536 * a-except.adb, a-except-2005.adb: Minor comment rewording and
2537 reformatting.
2538
25392011-08-29 Yannick Moy <moy@adacore.com>
2540
2541 * sem_ch3.adb (Array_Type_Declaration): Remove insertion of
2542 declaration for Itypes in Alfa mode.
2543
d85fd922
AC
25442011-08-29 Robert Dewar <dewar@adacore.com>
2545
2546 * a-cdlili.ads, a-coinve.ads, a-coorma.adb, a-coorma.ads, s-tassta.adb,
2547 a-cborma.adb, a-cborma.ads, a-cohama.ads, a-coorse.ads, a-cbhama.ads,
2548 a-cborse.ads, a-cobove.adb, a-cobove.ads, a-cbhase.ads: Minor
2549 reformatting.
2550
25512011-08-29 Tristan Gingold <gingold@adacore.com>
2552
2553 * exp_ch7.adb, exp_ch7.ads (Build_Exception_Handler): Move its spec to
2554 package spec.
2555 * exp_intr.adb (Expand_Unc_Deallocation): Use Build_Exception_Handler.
2556 * a-except.adb, a-except-2005.adb (Rcheck_22): Do not defer aborts
2557 while raising PE.
2558
fd3d2680
AC
25592011-08-29 Robert Dewar <dewar@adacore.com>
2560
2561 * a-cbhama.adb, a-cbhama.ads: Minor reformatting.
2562
25632011-08-29 Javier Miranda <miranda@adacore.com>
2564
2565 * sem_ch8.adb (Analyze_Subprogram_Renaming): Complete support for
2566 renamings of formal subprograms when the actual for a formal type is
2567 class-wide.
2568
dfbf013f
MH
25692011-08-29 Matthew Heaney <heaney@adacore.com>
2570
2571 * a-cbhama.ads, a-cbhase.ads (Move): Clear Source following assignment
2572 to Target.
2573
25742011-08-29 Matthew Heaney <heaney@adacore.com>
2575
2576 * a-cborma.ads, a-cborse.ads (Cursor): Default-initialize all
2577 components of record type.
2578 * a-cborma.adb, a-cborse.adb (Move): Clear Source following assignmentw
2579 to Target.
2580
a6dd3a54
ES
25812011-08-29 Ed Schonberg <schonberg@adacore.com>
2582
2583 * a-cbhama.adb, a-cbhama.ads, a-cborma.adb, a-cborma.ads, a-cobove.adb,
2584 a-cobove.ads, a-coorma.adb, a-coorma.ads: Add iterator machinery to
2585 container packages.
2586
c54796e0
AC
25872011-08-29 Robert Dewar <dewar@adacore.com>
2588
2589 * sem_ch3.adb, sem_util.adb, gnat1drv.adb, s-parint.ads: Minor
2590 reformatting.
2591
25922011-08-29 Matthew Heaney <heaney@adacore.com>
2593
2594 * a-cbhama.ads, a-cbhase.ads (Cursor): Default-initialize all
2595 components of record type.
2596
25972011-08-29 Bob Duff <duff@adacore.com>
2598
2599 * s-tassta.adb (Task_Wrapper): Handle and ignore exceptions propagated
2600 by the termination handler.
2601
9fd9d2be
AC
26022011-08-29 Yannick Moy <moy@adacore.com>
2603
2604 * sem_ch3.adb (Array_Type_Declaration): Create declarations for Itypes
2605 created in Alfa mode, instead of inserting artificial declarations of
2606 non-Itypes in the tree.
2607 * sem_util.adb, sem_util.ads (Itype_Has_Declaration): New function to
2608 know if an Itype has a corresponding declaration, as defined in
2609 itypes.ads.
2610
26112011-08-29 Yannick Moy <moy@adacore.com>
2612
2613 * gnat1drv.adb: Minor rewrite.
2614
26152011-08-29 Bob Duff <duff@adacore.com>
2616
2617 * s-tasuti.adb (Make_Passive): Work around race condition in
2618 Make_Independent, which can cause Wait_Count to be zero. So instead of
2619 asserting that Wait_Count > 0, and then decrementing it, decrement it
2620 only if Wait_Count > 0.
2621 * s-taskin.ads (Wait_Count, Alive_Count, Awake_Count): All of these
2622 should be nonnegative, so declare them Natural instead of Integer.
2623
833eaa8a
AC
26242011-08-29 Robert Dewar <dewar@adacore.com>
2625
2626 * exp_ch5.adb, sem_ch3.adb, a-cihama.adb, a-cihama.ads, exp_ch7.adb,
2627 sem_ch5.adb, a-ciorse.adb, a-ciorse.ads, sem_ch12.adb, a-cidlli.adb,
2628 a-cidlli.ads, sem_util.adb, sem_res.adb, gnat1drv.adb, a-except.adb,
2629 a-except.ads, a-except-2005.ads, sem_ch4.adb, exp_disp.adb,
2630 exp_aggr.adb, sem_ch13.adb, par-ch3.adb: Minor reformatting.
2631
26322011-08-29 Tristan Gingold <gingold@adacore.com>
2633
2634 * s-auxdec-vms-alpha.adb: Add comments, remove some HT before labels.
2635
26362011-08-29 Vadim Godunko <godunko@adacore.com>
2637
2638 * s-parint.ads: Minor comment clarification.
2639
26402011-08-29 Vincent Celier <celier@adacore.com>
2641
2642 * prj.adb (Initialize): Make sure that new reserved words after Ada 95
2643 may be used as identifiers.
2644
26452011-08-29 Ed Schonberg <schonberg@adacore.com>
2646
2647 * a-coinho.ads: Minor reformating.
2648
3a613a36
AC
26492011-08-29 Ed Schonberg <schonberg@adacore.com>
2650
2651 * exp_ch5.adb (Expand_Iterator_Loop): Handle properly a loop over a
2652 container of a derived type.
2653
3a613a36
AC
26542011-08-29 Ed Schonberg <schonberg@adacore.com>
2655
2656 * a-cidlli.adb, a-cidlli.ads, a-cihama.adb, a-cihama.ads,
2657 a-ciorse.adb, a-ciorse.ads: Add iterator machinery to containers.
2658
14848f57
AC
26592011-08-29 Pascal Obry <obry@adacore.com>
2660
2661 * exp_disp.adb: Minor comment fix.
2662 (Make_Disp_Asynchronous_Select_Body): Properly initialize out parameters
2663 to avoid warnings when compiling with -Wall.
2664 (Make_Disp_Conditional_Select_Body): Likewise.
2665 (Make_Disp_Timed_Select_Body): Likewise.
2666
26672011-08-29 Ed Schonberg <schonberg@adacore.com>
2668
2669 * sem_ch12.adb (Analyze_Formal_Subprogram_Declaration): If default is
2670 an entity name, generate reference for it.
2671
26722011-08-29 Ed Schonberg <schonberg@adacore.com>
2673
2674 * exp_ch5.adb (Expand_Iterator_Loop): Uniform handling of "X of S"
2675 iterator form.
2676 * sem_util.adb (Is_Iterator, Is_Reversible_Iterator): Yield True for
2677 the class-wide type.
2678 * sem_ch5.adb: Move some rewriting to the expander, where it belongs.
2679
26802011-08-29 Ed Schonberg <schonberg@adacore.com>
2681
2682 * sem_ch8.adb (Check_Constrained_Object): Do not create an actual
2683 subtype for an object whose type is an unconstrained union.
2684
26852011-08-29 Ed Schonberg <schonberg@adacore.com>
2686
2687 * par-ch3.adb (P_Array_Type_Definiation, P_Component_Items): "aliased"
2688 is allowed in a component definition, by AI95-406.
2689
26902011-08-29 Matthew Heaney <heaney@adacore.com>
2691
2692 * a-chtgbo.adb (Generic_Iteration): Use correct overloading of Next.
2693
26942011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
2695
2696 * a-except-2005.adb: Alphabetize all routines.
2697 (Triggered_By_Abort): New routine.
2698 * a-except-2005.ads (Triggered_By_Abort): New routine.
2699 * a-except.adb Alphabetize all routines.
2700 (Triggered_By_Abort): New routine.
2701 * a-except.ads (Triggered_By_Abort): New routine.
2702 * exp_ch7.adb: Update all comments involving the detection of aborts in
2703 finalization code.
2704 (Build_Object_Declarations): Do not generate code to detect the
2705 presence of an abort at the start of finalization code, use a runtime
2706 routine istead.
2707 * rtsfind.ads: Add RE_Triggered_By_Abort to tables RE_Id and
2708 RE_Unit_Table.
2709 * sem_res.adb (Resolve_Allocator): Emit a warning when attempting to
2710 allocate a task on a subpool.
2711 * s-stposu.adb: Add library-level flag Finalize_Address_Table_In_Use.
2712 The flag disables all actions related to the maintenance of
2713 Finalize_Address_Table when subpools are not in use.
2714 (Allocate_Any_Controlled): Signal the machinery that subpools are in
2715 use.
2716 (Deallocate_Any_Controlled): Do not call Delete_Finalize_Address which
2717 performs costly task locking when subpools are not in use.
2718
57a8057a
AC
27192011-08-29 Yannick Moy <moy@adacore.com>
2720
2721 * gnat1drv.adb (Adjust_Global_Switches): Restore expansion of tagged
2722 types and dispatching calls in Alfa mode.
2723 * lib-xref-alfa.adb (Collect_ALFA): Rewrite computation of
2724 correspondance between body and spec scopes, to reuse utility functions
2725 (Traverse_Declarations_Or_Statements): Protect access to body for stub
2726 by testing the presence of the library unit for the body
2727 * sem_ch6.adb (Set_Actual_Subtypes): take into account that in Alfa
2728 mode the expansion of accept statements is skipped
2729 * sem_util.adb, sem_util.ads (Unique_Entity): New function returning
2730 the unique entity corresponding to the one returned by
2731 Unique_Defining_Entity applied to the enclosing declaration of the
2732 argument.
2733
27342011-08-29 Bob Duff <duff@adacore.com>
2735
2736 * treepr.ads: Improve debugging facilities. pn(x) no longer crashes in
2737 gdb when x is not a node (it can be a node list, name_id, etc). pp is
2738 an alias for pn. ppp is an alias for pt.
2739
27402011-08-29 Javier Miranda <miranda@adacore.com>
2741
2742 * exp_aggr.adb (Expand_Record_Aggregate): Use the top-level enclosing
2743 aggregate to take a consistent decision on the need to convert into
2744 assignments aggregates that initialize constant objects.
2745
27462011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
2747
2748 * exp_ch4.adb (Expand_Allocator_Expression): Add a call to
2749 Build_Allocate_Deallocate_Proc in order to handle allocation of
2750 non-controlled objects on subpools.
2751 * impunit.adb: Remove s-finmas and s-spsufi since they were never meant
2752 to be end-user visible.
2753 * s-finmas.adb: Add with and use clause for System.HTable.
2754 Add an instantiation of Simple_HTable which provides a mapping between
2755 the address of a controlled object and the corresponding
2756 Finalize_Address used to clean up the object. The table is used when a
2757 master is operating in heterogeneous mode.
2758 (Attach): Explain why the input node is not verified on being already
2759 attached.
2760 (Delete_Finalize_Address): New routine.
2761 (Detach): Add pragma Assert which ensures that a node is already
2762 attached.
2763 (Finalize): Add local variable Cleanup. Rewrite the iteration scheme
2764 since nodes are no longer removed on traversal. Explain why node
2765 detachment is undesirable in this case.
2766 (Get_Finalize_Address): New routine.
2767 (Hash): New routine.
2768 (Is_Empty_List): Removed.
2769 (pm): Renamed to Print_Master. Add output for discriminant
2770 Is_Homogeneous.
2771 Comment reformatting.
2772 (Set_Finalize_Address (Address, Finalize_Address_Ptr)): New routine.
2773 * s-finmas.ads: Various comments additions / improvements.
2774 Type Finalization_Master has a discriminant which determines the mode of
2775 operation.
2776 (Delete_Finalize_Address): New routine.
2777 (Get_Finalize_Address): New routine.
2778 (pm): Renamed to Print_Master.
2779 (Set_Finalize_Address (Address, Finalize_Address_Ptr)): New routine.
2780 * s-stposu.adb: Add with clause for System.Address_Image; Add with and
2781 use clause for System.IO.
2782 (Allocate_Any_Controlled): Add machinery to set TSS primitive
2783 Finalize_Address depending on the mode of allocation and the mode of
2784 the master.
2785 (Deallocate_Any_Controlled): Remove the relation pair object -
2786 Finalize_Address regardless of the master mode. Add comment explaining
2787 the reason.
2788 (Detach): Ensure that fields Prev and Next are null after detachment.
2789 (Finalize_Pool): Remove local variable Next_Ptr. Rewrite the iteration
2790 scheme to check whether the list of subpools is empty. There is no
2791 longer need to store the next subpool or advance the current pointer.
2792 (Is_Empty_List): New routine.
2793 (Print_Pool): New routine.
2794 (Print_Subpool): New routine.
2795 * s-stposu.ads: Various comments additions / improvements.
2796 Field Master of type Root_Subpool is now a heterogeneous collection.
2797 (Print_Pool): New routine.
2798 (Print_Subpool): New routine.
2799
28002011-08-29 Ed Schonberg <schonberg@adacore.com>
2801
2802 * exp_ch5.adb (Expand_N_Iterator_Loop): Implement Ada2012 loop iterator
2803 forms, using aspects of container types.
2804 * sem_ch3.adb (Find_Type_Name): Preserve Has_Delayed_Aspects and
2805 Has_Implicit_Dereference flags, that may be set on the partial view.
2806 * sem_ch4.adb (Process_Overloaded_Indexed_Component): Prefix may be a
2807 container type with an indexing aspect.
2808 (Analyze_Quantified_Expression): Analyze construct with expansion
2809 disabled, because it will be rewritten as a loop during expansion.
2810 (Try_Container_Indexing): The prefix itself may be a container type
2811 with an indexing aspect, as with a vector of vectors.
2812 * sem_ch5.adb (Analyze_Iteration_Scheme): In a generic context, analyze
2813 the original doamin of iteration, for name capture.
2814 (Analyze_Iterator_Specification): If the domain is an expression that
2815 needs finalization, create a separate declaration for it.
2816 For an iterator with "of" retrieve default iterator info from aspect of
2817 container type. For "in" iterator, retrieve type of Iterate function.
2818 * sem_ch13.adb (Check_Iterator_Function): Fix typo.
2819 (Check_Aspect_At_End_Of_Declaration): Make type unfrozen before
2820 analysis, to prevent spurious errors about late attributes.
2821 * sprint.adb: Handle quantified expression with either loop or iterator
2822 specification.
2823 * a-convec.ads, a-convec.adb: Iterate function returns a reversible
2824 iterator.
2825
ddf67a1d
AC
28262011-08-29 Vincent Celier <celier@adacore.com>
2827
2828 * make.adb (Scan_Make_Arg): Take any option as is in packages Compiler,
2829 Binder or Linker of the main project file.
2830
28312011-08-29 Ed Schonberg <schonberg@adacore.com>
2832
2833 * inline.adb (Add_Scopes_To_Clean): Exclude any entity within a generic
2834 unit.
2835
28362011-08-29 Yannick Moy <moy@adacore.com>
2837
2838 * exp_ch9.adb: Partial revert of previous change for Alfa mode
2839
28402011-08-29 Yannick Moy <moy@adacore.com>
2841
2842 * exp_ch11.adb: Minor expansion of comment.
2843
28442011-08-29 Yannick Moy <moy@adacore.com>
2845
2846 * lib-xref-alfa.adb (Add_ALFA_Scope): Treat generic entities.
2847
28482011-08-29 Ed Schonberg <schonberg@adacore.com>
2849
2850 * sem_res.adb (Resolve_Arithmetic_Op): If the node has a universal
2851 interpretation, set the type before resolving the operands, because
2852 legality checks on an exponention operand need to know the type of the
2853 context.
2854
28552011-08-29 Ed Schonberg <schonberg@adacore.com>
2856
2857 * sem_ch12.adb (Analyze_Package_Instantiation): Do not set delayed
2858 cleanups on a master if the instance is within a generic unit.
2859 Complement to the corresponding fix to inline.adb for K520-030.
2860
28612011-08-29 Tristan Gingold <gingold@adacore.com>
2862
2863 * exp_ch7.adb (Build_Raise_Statement): Raise PE instead of the current
2864 occurrence.
2865 * exp_intr.adb: Minor comment fix.
2866
28672011-08-29 Bob Duff <duff@adacore.com>
2868
2869 * sem_ch13.adb (Analyze_Aspect_Specifications): Fix cases where
2870 Delay_Required was used as an uninitialized variable.
2871
690943fc
RD
28722011-08-29 Robert Dewar <dewar@adacore.com>
2873
2874 * a-cdlili.adb, a-cdlili.ads, a-coinve.adb, a-coinve.ads,
2875 sem_util.adb, sem_util.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb,
2876 a-coorse.ads, aspects.ads, sem_ch8.adb: Minor reformatting.
2877
9f0ee988
TQ
28782011-08-29 Thomas Quinot <quinot@adacore.com>
2879
2880 * system-freebsd-x86_64.ads (Backend_Overflow_Checks): Set true True.
2881 Remove unused variables.
2882
3e24afaa
AC
28832011-08-29 Ed Schonberg <schonberg@adacore.com>
2884
2885 * sem_res.adb: Remove Build_Explicit_Dereference.
2886 * sem_util.adb, sem_util.ads (Build_Explicit_Dereference): Moved here
2887 from sem_res.adb, used in analysis of additional constructs.
2888 (Is_Iterator, Is_Reversible_Iterator): New predicates for Ada2012
2889 expansion of iterators.
2890 (Is_Object_Reference): Recognize variables rewritten as explicit
2891 dereferences in Ada2012.
2892 * snames.ads-tmpl: Add Has_Element, Forward_Iterator,
2893 Reversible_Iterator names, for expansion of Ada2012 iterators.
2894 * aspects.ads, aspects.adb (Find_Aspect): Utility.
2895 * a-cdlili.ads, a-cdlili.adb: Add new iterator machinery to doubly
2896 linked list container.
2897 * a-coinve.ads, a-coinve.adb: Ditto for indefinite vector containers.
2898 * a-coorse.ads, a-coorse.adb: Ditto for ordered sets.
2899
29002011-08-29 Ed Schonberg <schonberg@adacore.com>
2901
2902 * a-cohama.adb, a-cohama.ads: Add iterator primitives to hashed map
2903 containers.
2904
29052011-08-29 Vincent Celier <celier@adacore.com>
2906
2907 * make.adb (Gnatmake): Get the maximum number of simultaneous
2908 compilation processes after the Builder switches has been scanned, as
2909 there may include -jnn.
2910
29112011-08-29 Matthew Heaney <heaney@adacore.com>
2912
2913 * a-chtgbo.adb (Generic_Equal): Use correct overloading of Next.
2914
29152011-08-29 Tristan Gingold <gingold@adacore.com>
2916
2917 * gnatcmd.adb (GNATCmd): On OpenVMS, truncate the length of
2918 GNAT_DRIVER_COMMAND_LINE to 255.
2919
29202011-08-29 Pascal Obry <obry@adacore.com>
2921
2922 * freeze.adb, sem_ch8.adb, a-convec.adb, a-convec.ads: Minor
2923 reformatting and style fix (class attribute casing).
2924
29252011-08-29 Yannick Moy <moy@adacore.com>
2926
2927 * exp_ch11.adb: Yet another case where expansion should be common
2928 between CodePeer and Alfa.
2929
29302011-08-29 Yannick Moy <moy@adacore.com>
2931
2932 * exp_ch9.adb: Partial revert of previous change for Alfa mode.
2933
29342011-08-29 Ed Schonberg <schonberg@adacore.com>
2935
2936 * sem_ch6.adb (Matches_Limited_With_View): The limited views of an
2937 incomplete type and its completion match.
2938
3ddd922e
AC
29392011-08-29 Yannick Moy <moy@adacore.com>
2940
2941 * exp_ch13.adb: Adjust previous change.
2942
29432011-08-29 Robert Dewar <dewar@adacore.com>
2944
2945 * sem_prag.adb, prj.adb, sem_util.adb, sem_res.adb, gnat1drv.adb,
2946 exp_ch4.adb, sem_ch8.adb: Minor code reorganization
2947 Minor reformatting.
2948
444acbdd
AC
29492011-08-29 Emmanuel Briot <briot@adacore.com>
2950
2951 * make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Also
2952 initialize aggregated projects.
2953
29542011-08-29 Ed Schonberg <schonberg@adacore.com>
2955
2956 * sem_ch8.adb (Find_Renamed_Entity): Within an instance, use scope
2957 depth of candidates to resolve a potentially spurious ambiguity between
2958 two visible subprograms.
2959
e0296583
AC
29602011-08-29 Yannick Moy <moy@adacore.com>
2961
2962 * sem_prag.adb (Analyze_Pragma): Allow Test_Case pragma without
2963 Requires/Ensures.
2964 * sem_util.adb (Get_Ensures_From_Test_Case_Pragma,
2965 Get_Requires_From_Test_Case_Pragma): Allow Test_Case pragma without
2966 Requires/Ensures.
2967
29682011-08-29 Arnaud Charlet <charlet@adacore.com>
2969
2970 * gnat1drv.adb (Adjust_Global_Switches): Improve previous change.
2971 Add comment.
2972
29732011-08-29 Thomas Quinot <quinot@adacore.com>
2974
2975 * sem_res.adb: Minor reformatting.
2976
69794413
JK
29772011-08-29 Johannes Kanig <kanig@adacore.com>
2978
2979 * exp_ch4.adb (Expand_Quantified_Expression): Do not expand in ALFA
2980 mode.
2981 * gnat1drv.adb (Adjust_Global_Switches): Set
2982 Use_Expressions_With_Actions to False in ALFA mode.
2983 * sem_res.adb (Resolve_Quantified_Expression): Simpler treatment in
2984 ALFA mode.
2985
59e6b23c
AC
29862011-08-29 Yannick Moy <moy@adacore.com>
2987
2988 * exp_ch13.adb (Expand_N_Freeze_Entity): Do nothing in Alfa mode.
2989 * exp_ch9.adb: Do not expand tasking constructs in Alfa mode.
2990 * gnat1drv.adb (Adjust_Global_Switches): Suppress the expansion of
2991 tagged types and dispatching calls in Alfa mode.
2992
29932011-08-29 Javier Miranda <miranda@adacore.com>
2994
2995 * sem_ch3.adb (Process_Discriminants): Add missing check to ensure that
2996 we do not report an error on an Empty node.
2997
29982011-08-29 Geert Bosch <bosch@adacore.com>
2999
3000 * Makefile.rtl (GNATRTL_NONTASKING_OBJECTS): Add a-nllrar.o,
3001 a-nlrear.o and a-nurear.o.
3002
30032011-08-29 Robert Dewar <dewar@adacore.com>
3004
3005 * freeze.adb: Minor code reorganization.
3006 Minor reformatting.
3007 * sem_util.adb, errout.adb, exp_ch11.adb, a-ngrear.adb, s-gearop.adb,
3008 sem_ch6.adb: Minor reformatting
3009
30102011-08-29 Tristan Gingold <gingold@adacore.com>
3011
3012 * s-except.ads, s-except.adb: Provide dummy body.
3013
30142011-08-29 Yannick Moy <moy@adacore.com>
3015
3016 * sem_warn.adb (Within_Postcondition): Take into account the case of
3017 an Ensures component in a Test_Case.
3018
4d792549
AC
30192011-08-29 Tristan Gingold <gingold@adacore.com>
3020
3021 * s-excdeb.ads, s-excdeb.adb: New files, created from s-except.
3022 * rtsfind.ads (RTU_Id): Replaces System_Exceptions by
3023 System_Exceptions_Debug
3024 (RE_Unit_Table): Search RE_Local_Raise in System_Exceptions_Debug
3025 * a-except.adb: With and use System.Exceptions_Debug instead of
3026 System.Exceptions.
3027 * a-except-2005.adb: Likewise.
3028 * s-assert.adb: Likewise.
3029 * s-except.adb, s-except.ads: Move debugging hooks to s-excdeb.
3030 * Makefile.rtl: Add s-excdeb. Adjust compilation rule.
3031 * gcc-interfaces/Makefile.in, gcc-interface/Make-lang.in: Add
3032 s-excdeb. Update dependencies.
3033 (GNATRTL_LINEARALGEBRA_OBJS): Remove a-nlrear.o a-nurear.o a-nllrar.o
3034 as these no longer need external libraries.
3035
30362011-08-29 Ed Schonberg <schonberg@adacore.com>
3037
3038 * sem_res.adb (Resolve_Op_Expon): Additional check to reject an
3039 exponentiation operator on universal values in a context that requires
3040 a fixed-point type.
3041
30422011-08-29 Tristan Gingold <gingold@adacore.com>
3043
3044 * raise-gcc.c (personnality_routine): Fix thinko. Set Ada occurrence
3045 before calling notify_handled_exception.
3046 * a-exextr.adb: Fix comment.
3047
b254da66
AC
30482011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
3049
3050 * exp_ch4.adb (Expand_Allocator_Expression): Add code to set attribute
3051 Finalize_Address of the access type's finalization master.
3052 (Expand_N_Allocator): Add code to set attribute Finalize_Address of the
3053 access type's finalization master. Add a guard to prevent
3054 Associated_Storage_Pool from being set on .NET/JVM.
3055 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Add code to set
3056 attribute Finalize_Address of the access type's finalization master.
3057 * exp_ch7.adb (Make_Finalize_Address_Call): New routine.
3058 * exp_ch7.ads (Make_Finalize_Address_Call): New routine.
3059 * rtsfind.ads: Add RE_Set_Finalize_Address to tables RE_Id and
3060 RE_Unit_Table.
3061 * s-finmas.adb: Add with clause for System.Address_Image. Add with and
3062 use clause for System.IO
3063 (Detach): Relax the assertion, to be reinstated later.
3064 (Finalize): Rewrite the iteration loop to avoid pointer comparison.
3065 Relax the assertion on Finalize_Address, to be reinstated later.
3066 (Is_Empty_List): New routine.
3067 (pm): New debug routine.
3068 (Set_Finalize_Address): New routine.
3069 * s-finmas.ads (pm): New debug routine.
3070 (Set_Finalize_Address): New routine.
3071 * s-stposu.adb (Allocate_Any_Controlled): Code reformatting.
3072
30732011-08-29 Tristan Gingold <gingold@adacore.com>
3074
3075 * a-exexpr-gcc.adb (GCC_Exception_Access, GNAT_GCC_Exception_Access):
3076 Remove convention C.
3077
30782011-08-29 Tristan Gingold <gingold@adacore.com>
3079
3080 * s-taprop-vms.adb (Get_Exc_Stack_Addr): Remove.
3081 (Initialize_TCB): Remove Exc_Stack_Ptr initialization.
3082 (Finalize_TCB): Remove its finalization.
3083 (Initialize): Remove assignment of GET_Exc_Stack_Addr
3084 * s-soflin.adb (NT_Exc_Stack): Remove
3085 (Get_Exc_Stack_Addr_NT): Likewise.
3086 (Get_Exc_Stack_Addr_Soft): Likewise.
3087 * s-soflin.ads (Get_Exc_Stack_Addr_NT): Remove.
3088 (Get_Exc_Stack_Addr): Likewise.
3089 (Get_Exc_Stack_Addr_Soft): Likewise
3090 * s-taspri-vms.ads (Exc_Stack_T): Remove.
3091 (Exc_Stack_Ptr_T): Likewise.
3092 (Private_Data): Remove Exc_Stack_Ptr component.
3093
30942011-08-29 Tristan Gingold <gingold@adacore.com>
3095
3096 * raise-gcc.c (get_ip_from_context): New function. Factorize code.
3097
30982011-08-29 Tristan Gingold <gingold@adacore.com>
3099
3100 * gnat_ugn.texi: Fix aix and x86-solaris info for run-time.
3101
31022011-08-29 Geert Bosch <bosch@adacore.com>
3103
3104 * s-gearop.ads (Back_Substitute, Diagonal, Forward_Eliminate,
3105 L2_Norm, Swap_Column): New generic subprograms
3106 * s-gearop.adb (Back_Substitute, Diagonal, Forward_Eliminate,
3107 L2_Norm, Swap_Column): Implement new subprograms in order to
3108 eliminate dependency on BLAS and LAPACK libraries in
3109 Ada.Numerics.Generic_Real_Arrays and eventually also the complex
3110 version. Forward_Eliminate/Back_Substitute can be used to put a
3111 matrix in row echelon or reduced row echelon form using partial
3112 pivoting.
3113 * a-ngrear.adb: (Back_Substitute, Diagonal, Forward_Eleminate,
3114 Swap_Column): Instantiate from System.Generic_Array_Operations.
3115 ("*", "abs"): Implement by instantiation from Generic_Array_Operations.
3116 (Sqrt): Local function for simple computation of square root without
3117 adding dependencies on Generic_Elementary_Functions.
3118 (Swap): New subprogram to exchange floating point numbers.
3119 (Inverse): Reimplement using Jordan-Gauss elimination.
3120 (Jacobi): New procedure implementing Jacobi's method for computation
3121 of eigensystems, based on Rutishauser's implementation.
3122 (L2_Norm): Implement directly using the inner product.
3123 (Sort_Eigensystem): Sort eigenvalue/eigenvector pairs in order of
3124 decreasing eigenvalue as required by the Ada RM.
3125 (Swap_Column): New helper procedure for Sort_Eigensystem.
3126 Remove with of System.Generic_Real_BLAS and System.Generic_Real_LAPACK.
3127 Add with of Ada.Containers.Generic_Anonymous_Array_Sort, for
3128 Sort_Eigensystems.
3129
31302011-08-29 Thomas Quinot <quinot@adacore.com>
3131
3132 * put_scos.adb (Put_SCOs): Do not emit a newline for an empty
3133 statements line.
3134
60370fb1
AC
31352011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
3136
3137 * s-finmas.adb (Finalize): Check Finalize_Address of the master rather
3138 than the current node.
3139 * s-finmas.ads: Move field Finalize_Address from type FM_Node to
3140 Finalization_Master. The list headers have two fields instead of three.
3141 This should fix alignment issue but subpool allocations are now
3142 unusable. Alphabetize subprograms.
3143 * s-stposu.adb (Allocate_Any_Controlled): Use the offset rather than
3144 the size of the header when converting the beginning of the object to
3145 a FM_Node. Set the master's Finalize_Address attribute if not already
3146 set.
3147 (Deallocate_Any_Controlled): Use the offset rather than the size of the
3148 header when converting the beginning of the object to a FM_Node.
3149
31502011-08-29 Gary Dismukes <dismukes@adacore.com>
3151
3152 * exp_ch11.adb (Expand_N_Raise_Statement): Don't suppress expansion of
3153 reraise when compiling for CodePeer.
3154
31552011-08-29 Arnaud Charlet <charlet@adacore.com>
3156
3157 * a-iteint.ads, Makefile.rtl: Add missing compilation of a-iteint.ads,
3158 now needed by a-convec.adb. Fix warning.
3159
31602011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
3161
3162 * exp_util.adb (Build_Allocate_Deallocate_Proc): Add a guard for the
3163 processing of TSS routine Finalize_Address when compiling in
3164 CodePeer_Mode.
3165
31662011-08-29 Thomas Quinot <quinot@adacore.com>
3167
3168 * a-strunb.ads, einfo.ads, g-comlin.ads, sem_ch6.adb,
3169 sem_warn.adb: Minor reformatting.
3170
31712011-08-29 Emmanuel Briot <briot@adacore.com>
3172
3173 * prj-conf.adb (Get_Config_Switches): Also collect the list of
3174 languages from aggregated projects.
3175
31762011-08-29 Yannick Moy <moy@adacore.com>
3177
3178 * lib-xref-alfa.adb, lib-xref.ads (Traverse_Declarations_Or_Statements,
3179 Traverse_Handled_Statement_Sequence, Traverse_Package_Body,
3180 Traverse_Package_Declaration, Traverse_Subprogram_Body,
3181 Traverse_Compilation_Unit): Add a parameter Inside_Stubs so that bodies
3182 for stubs are traversed too when parameter is set
3183 (Traverse_All_Compilation_Units): Traverse without going inside stubs
3184 (Traverse_Declarations_Or_Statements): Do the special traversing for
3185 stubs when required.
3186 * sem_util.adb, sem_util.ads (Get_Body_From_Stub): New function to
3187 return subprogram or package body from stub.
3188 (Is_Subprogram_Stub_Without_Prior_Declaration): New function to detect
3189 stubs without prior subprogram decl.
3190
31912011-08-29 Vasiliy Fofanov <fofanov@adacore.com>
3192
3193 * gnat_ugn.texi: Fix typo.
3194
e9c9d122
HK
31952011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
3196
3197 * s-stposu.adb (Allocate_Any_Controlled): Reimplement the mechanism
3198 which accounts for size vs alignment issues and calculates the size of
3199 the list header.
3200 (Deallocate_Any_Controlled): Ditto.
3201 (Nearest_Multiple_Rounded_Up): New routine.
3202
25ebc085
AC
32032011-08-29 Tristan Gingold <gingold@adacore.com>
3204
3205 * a-exstat.adb (String_To_EO): Do no set Cleanup_Flag.
3206 * a-exexda.adb (Set_Exception_C_Msg): Ditto.
3207 (Set_Exception_Msg): Ditto.
3208 * a-exexpr-gcc.adb (Setup_Current_Excep): Ditto. Do not set
3209 Private_Data.
3210 * a-except.adb, a-except-2005.adb (Save_Occurrence_No_Private): Remove.
3211 Use Save_Occurrence instead of Save_Occurrence_No_Private.
3212 (Raise_With_Msg): Remove Cleanup_Flag.
3213 * a-except.ads, a-except-2005.ads (Exception_Occurrence): Remove
3214 Clean_Flag and Private_Data components.
3215
32162011-08-29 Yannick Moy <moy@adacore.com>
3217
3218 * freeze.adb (Freeze_Record_Type): Ignore packing in Alfa mode, like
3219 in CodePeer mode.
3220 * sem_ch3.adb (Signed_Integer_Type_Declaration): Correct the generation
3221 of an explicitly declared type, so that the base types of the original
3222 type and this generated type are the same, and a "type" (not a subtype
3223 like previously).
3224 * errout.adb (Special_Msg_Delete): Do not issue messages "Size too
3225 small" in Alfa mode, like in CodePeer mode.
3226 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore rep
3227 clauses in Alfa mode.
3228
32292011-08-29 Javier Miranda <miranda@adacore.com>
3230
3231 * exp_ch6.ads, exp_ch6.adb (Is_Null_Procedure): Move the spec of this
3232 function to the package spec.
3233 * sem_ch6.adb (Find_Corresponding_Spec, New_Overloaded_Entity): For
3234 internally generated bodies of null procedures locate the internally
3235 generated spec enforcing mode conformance.
3236 (Is_Interface_Conformant): Ensure that the controlling formal of the
3237 primitives match.
3238
32392011-08-29 Ed Schonberg <schonberg@adacore.com>
3240
3241 * sem_prag.adb (Analyze_Pragma, case Inline): In an instance, do not
3242 reject the pragma if it appears to apply to a formal subprogram.
3243
32442011-08-29 Ed Schonberg <schonberg@adacore.com>
3245
3246 * exp_ch4.adb (Expand_Allocator_Expression): Use consistent name for
3247 inner expression, to prevent double evaluation.
3248
590549fb
AC
32492011-08-29 Tristan Gingold <gingold@adacore.com>
3250
3251 * a-exexpr.adb (Propagate_Exception): Remove all the parameters as
3252 they were unused.
3253 * a-exexpr-gcc.adb (Propagate_Exception): Ditto.
3254 * a-except-2005.adb (Propagate_Exception): Adjust spec.
3255 (Raise_Current_Excep): Adjust call.
3256 (Raise_From_Signal_Handler): Call now simply call Raise_Current_Excep.
3257
32582011-08-29 Thomas Quinot <quinot@adacore.com>
3259
3260 * exp_disp.adb: Minor reformatting.
3261
62380e66
TG
32622011-08-29 Tristan Gingold <gingold@adacore.com>
3263
3264 * a-exexpr.adb (Setup_Exception): Removed.
3265 * a-exexpr-gcc.adb (Setup_Exception): Removed.
3266 * a-except.adb (Exception_Propagation): Removed.
3267 * a-except-2005.adb (Setup_Exception): Removed.
3268 (Reraise): Remove call to Setup_Exception.
3269 (Reraise_Occurrence): Ditto.
3270 (Reraise_Occurrence_Always): Ditto.
3271 (Reraise_Occurrence_No_Defer): Ditto.
3272 (Transfer_Occurrence): Ditto.
3273 * a-exexda.adb (Set_Exception_C_Msg): Remove call to Setup_Exception.
3274 (Set_Exception_Msg): Ditto.
3275
c95aa61c
AC
32762011-08-29 Robert Dewar <dewar@adacore.com>
3277
3278 * a-convec.adb, exp_disp.adb: Minor reformatting.
3279
32802011-08-29 Tristan Gingold <gingold@adacore.com>
3281
3282 * a-exexpr-gcc.adb (GNAT_GCC_Exception_Access): Set to convention C.
3283
624e1688
AC
32842011-08-29 Gary Dismukes <dismukes@adacore.com>
3285
3286 * exp_ch3.adb (Build_Record_Init_Proc.Build_Init_Procedure): Set
3287 Exception_Handlers to No_List instead of Empty_List in the case where
3288 there are no handlers.
3289
32902011-08-29 Tristan Gingold <gingold@adacore.com>
3291
3292 * gcc-interface/gigi.h (enum standard_datatypes): Add
3293 ADT_reraise_zcx_decl
3294 (reraise_zcx_decl): New macro.
3295 * gcc-interface/trans.c (gnu_incoming_exc_ptr): New variable.
3296 (gigi): Set reraise_zcx_decl.
3297 (Exception_Handler_to_gnu_zcx): Save and restore gnu_incoming_exc_ptr.
3298 (gnat_to_gnu): Handle N_Raise_Statement.
3299
7134062a
AC
33002011-08-29 Robert Dewar <dewar@adacore.com>
3301
3302 * sem_ch6.adb, exp_ch3.adb, s-stposu.adb, a-undesu.ads,
3303 a-undesu.adb: Minor reformatting.
3304
33052011-08-29 Ed Schonberg <schonberg@adacore.com>
3306
3307 * exp_disp.adb (Check_Premature_Freezing): When building a dispatch
3308 table, accept an unfrozen untagged component if it is an actual for a
3309 formal incomplete type.
3310 * a-convec.ads, a-convec.adb: Instantiate Ada.Iterator_Interfaces to
3311 provide new iterator forms over vectors.
3312 Introduce type Iterator in package body to implement operations of
3313 Reversible_Iterator interface.
3314 * a-iteint.ads: Make package pure so it is usable with new container
3315 packages, that are categorized Remote_Types.
3316
ca5af305
AC
33172011-08-29 Robert Dewar <dewar@adacore.com>
3318
3319 * a-exexpr-gcc.adb, a-synbar.adb, sem_ch13.adb: Minor reformatting.
3320
33212011-08-29 Bob Duff <duff@adacore.com>
3322
3323 * sem_aggr.adb (Resolve_Aggr_Expr): Call this routine even in the case
3324 of <>, because this is the routine that checks for dimensionality
3325 errors (for example, for a two-dimensional array, (others => <>) should
3326 be (others => (others => <>)).
3327
33282011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
3329
3330 * impunit.adb: Add new run-time units.
3331 * freeze.adb, exp_ch7.ads, exp_ch7.adb, exp_util.ads, exp_util.adb,
3332 s-stposu.ads, s-stposu.adb: Code clean up.
3333 Handle protected class-wide or task class-wide types
3334 Handle C/C++/CIL/Java types.
3335 * s-spsufi.adb, s-spsufi.ads: New files.
3336
5accd7b6
AC
33372011-08-29 Yannick Moy <moy@adacore.com>
3338
3339 * sem_ch13.adb (Analyze_Aspect_Specifications): Reject test-case on
3340 library-level subprogram.
3341 * sem_prag.adb (Check_Test_Case): Stricter rules for test-case
3342 placement.
3343 (Analyze_Pragma): Change name "Normal" for "Nominal" in test-case
3344 component.
3345 * snames.ads-tmpl: Change name "Normal" for "Nominal" in test-case
3346 component.
3347 * gnat_rm.texi: Update doc for Test_Case pragma.
3348
33492011-08-29 Tristan Gingold <gingold@adacore.com>
3350
3351 * a-exexpr-gcc.adb (Unwind_Exception): Remove default value, made it
3352 convention C.
3353 (GCC_Exception_Access): New type.
3354 (Unwind_DeleteException): New imported procedure
3355 (Foreign_Exception): Import it.
3356 (GNAT_GCC_Exception): Simply have the occurrence inside.
3357 (To_GCC_Exception): New function.
3358 (To_GNAT_GCC_Exception): New function.
3359 (GNAT_GCC_Exception_Cleanup): New procedure..
3360 (Propagate_GCC_Exception): New procedure.
3361 (Reraise_GCC_Exception): New procedure.
3362 (Setup_Current_Excep): New procedure.
3363 (CleanupUnwind_Handler): Change type of UW_Exception parameter.
3364 (Unwind_RaiseException): Ditto.
3365 (Unwind_ForcedUnwind): Ditto.
3366 (Remove): Removed.
3367 (Begin_Handler): Change type of parameter.
3368 (End_Handler): Ditto. Now delete the exception if still present.
3369 (Setup_Key): Removed.
3370 (Is_Setup_And_Not_Propagated): Removed.
3371 (Set_Setup_And_Not_Propagated): Ditto.
3372 (Clear_Setup_And_Not_Propagated): Ditto.
3373 (Save_Occurrence_And_Private): Ditto.
3374 (EID_For): Add 'not null' constraint on parameter.
3375 (Setup_Exception): Does nothing.
3376 (Propagate_Exception): Simplified.
3377 * exp_ch11.adb (Expand_N_Raise_Statement): In back-end exception model,
3378 re-raise is not expanded anymore.
3379 * s-except.ads (Foreign_Exception): New exception - placeholder for
3380 non Ada exceptions.
3381 * raise-gcc.c (__gnat_setup_current_excep): Declare
3382 (CXX_EXCEPTION_CLASS): Define (not yet used)
3383 (GNAT_EXCEPTION_CLASS): Define.
3384 (is_handled_by): Handle foreign exceptions.
3385 (PERSONALITY_FUNCTION): Call __gnat_setup_current_excep.
3386
33872011-08-29 Jose Ruiz <ruiz@adacore.com>
3388
3389 * a-synbar.adb (Synchronous_Barrier): Some additional clarification.
3390
2ef48385
AC
33912011-08-29 Thomas Quinot <quinot@adacore.com>
3392
3393 * a-synbar-posix.adb: Minor reformatting.
3394
33952011-08-29 Jose Ruiz <ruiz@adacore.com>
3396
3397 * a-exetim-posix.adb, a-exetim-mingw.adb, a-exetim-mingw.ads,
3398 a-exetim-default.ads (Interrupt_Clocks_Supported,
3399 Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these
3400 definitions to be compliant with AI-0171. The target systems do not
3401 support separate account for the execution time of interrupt handlers.
3402
34032011-08-29 Jose Ruiz <ruiz@adacore.com>
3404
3405 * a-synbar.adb (Wait): Change the order of evaluation of the conditions
3406 in the barrier to put first the easiest to evaluate (and the one which
3407 will be True more often). More efficient.
3408
34092011-08-29 Eric Botcazou <ebotcazou@adacore.com>
3410
3411 * s-atocou-x86.adb: Fix constraint in machine code insertion.
3412
34132011-08-29 Bob Duff <duff@adacore.com>
3414
3415 * aspects.ads, aspects.adb: Add new aspects for various pragmas and
3416 attributes that are now aspects, as specified by AI05-0229-1.
3417 * sem_ch13.adb (Analyze_Aspect_Specifications,
3418 Check_Aspect_At_Freeze_Point): Analyze the new aspects. Turn them into
3419 pragmas or attribute references, as appropriate.
3420
0db16b1e
AC
34212011-08-29 Robert Dewar <dewar@adacore.com>
3422
3423 * a-synbar.ads, a-synbar.adb, a-synbar-posix.adb,
3424 a-synbar-posix.ads: Minor reformatting.
3425
34262011-08-29 Yannick Moy <moy@adacore.com>
3427
3428 * snames.ads-tmpl: Add name Force.
3429
978ffe02
AC
34302011-08-29 Pascal Obry <obry@adacore.com>
3431
3432 * prj-nmsc.adb: Minor reformatting.
3433
34342011-08-29 Jose Ruiz <ruiz@adacore.com>
3435
3436 * a-exetim.ads (Interrupt_Clocks_Supported,
3437 Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these
3438 definitions to be compliant with AI-0171.
3439
34402011-08-29 Robert Dewar <dewar@adacore.com>
3441
3442 * a-ngelfu.adb: Add comments.
3443
718f39dc
AC
34442011-08-29 Geert Bosch <bosch@adacore.com>
3445
3446 * a-ngelfu.adb (Tan): Do not raise Constraint_Error if the argument is
3447 the closest machine number to Pi / 2.0.
3448
34492011-08-29 Jose Ruiz <ruiz@adacore.com>
3450
3451 * impunit.adb (Non_Imp_File_Names_12): Add a-synbar for new Ada 2012
3452 package Ada.Synchronous_Barriers.
3453 * a-synbar.ads, a-synbar.adb, a-synbar-posix.ads, a-synbar-posix.adb:
3454 Add new specs and bodies for Ada.Synchronous_Barriers. There is a
3455 default implementation using protected objects and another one
3456 a-synbar-posix using POSIX barriers as the underlying support.
3457 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for Linux (x86,
3458 x86_64, ia64) and MIPS IRIX): Use the a-synbar-posix implementation of
3459 Ada.Synchronous_Barriers which uses POSIX barriers (more efficient).
3460 Clean up dependencies.
3461 * Makefile.rtl (GNATRTL_TASKING_OBJS): Add a-synbar.o
3462
ee2e3f6b
AC
34632011-08-29 Robert Dewar <dewar@adacore.com>
3464
3465 * sem_ch7.adb, make.adb, sem_res.adb, exp_intr.adb,
3466 exp_dist.adb: Minor code reorganization.
3467 Minor reformatting.
3468
34692011-08-29 Thomas Quinot <quinot@adacore.com>
3470
3471 * sem_cat.adb (Validate_RACW_Primitive): The return type of an RACW
3472 primitive operation must support external streaming if it is not a
3473 controlling access result.
3474
646e2823
AC
34752011-08-29 Thomas Quinot <quinot@adacore.com>
3476
3477 * sinfo.ads, sem_ch7.adb: Minor reformatting.
3478
34792011-08-29 Bob Duff <duff@adacore.com>
3480
3481 * sem_ch4.adb (Analyze_Allocator): Check No_Nested_Finalization
3482 restriction on allocators, as required by AI05-0013-1.
3483 * restrict.ads: Minor comment fix.
3484
5d59eef2
AC
34852011-08-29 Tristan Gingold <gingold@adacore.com>
3486
3487 * a-exexpr.adb, a-except-2005.ads (Jmpbuf_Address): Move to a-exexpr.adb
3488 (To_Jmpbuf_Address): Ditto
3489 (builtin_longjmp): Ditto
3490
34912011-08-29 Thomas Quinot <quinot@adacore.com>
3492
3493 * sem_res.adb: Minor reformatting.
3494
34952011-08-29 Vincent Celier <celier@adacore.com>
3496
3497 * make.adb (Gnatmake): Move special processing for VM targets after the
3498 call to Get_Target_Parameters.
3499
35002011-08-29 Thomas Quinot <quinot@adacore.com>
3501
3502 * sem_ch12.adb, par-ch12.adb: Minor reformatting.
3503
949a18cc
AC
35042011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
3505
3506 * sem_res.adb (Resolve_Allocator): Implement Ada2012-B052. Detect cases
3507 where an anonymous access discriminant of a limited designated type
3508 appears in a non-immutably limited discriminated type and issue an
3509 error message. Add local variable Desig_T and replace all occurrences
3510 of Designated_Type.
3511
35122011-08-29 Jose Ruiz <ruiz@adacore.com>
3513
3514 * a-rttiev.adb (Set_Handler): Update comment to indicate that our
3515 implementation is compliant to RM D.15(15/2) after the modification
3516 imposed by AI05-0094-1 (binding interpretation).
3517
cb25faf8
AC
35182011-08-29 Robert Dewar <dewar@adacore.com>
3519
3520 * exp_ch9.adb, s-tasren.adb, exp_sel.adb, exp_sel.ads, exp_ch11.adb,
3521 s-interr-hwint.adb, s-tpobop.adb, sem_ch13.adb: Minor reformatting.
3522
35232011-08-29 Thomas Quinot <quinot@adacore.com>
3524
3525 * par-endh.adb (Check_End): For an END where it is mandatory to repeat
3526 the scope name, do not report a missing label as a style violation (it
3527 will be diagnosed as an illegality).
3528 * exp_dist.adb (Add_Params_For_Variant_Components): Fix handling of
3529 variant records: Get_Enum_Lit_From_Pos already returns a usage
3530 occurrence of the literal, no need to use New_Occurrence_Of. Set Etype
3531 on Expr in Integer_Literal case so that it can be used by
3532 Build_To_Any_Call.
3533
1d10f669
AC
35342011-08-29 Tristan Gingold <gingold@adacore.com>
3535
3536 * exp_sel.ads (Build_Abort_BLock_Handler): New function spec.
3537 Adjust comment.
3538 * exp_sel.adb (Build_Abort_Block): Use Build_Abort_Block_Handler.
3539 (Build_Abort_Block_Handler): New function to build an Abort_Signal
3540 exception handler.
3541 * exp_ch9.adb (Expand_N_Asynchronous_Select): Call
3542 Build_Abort_Block_Handler to build the exception handler. Do not
3543 undefer aborts for the Abort_Signal exception handler if back-end
3544 exception mechanism.
3545 * exp_ch11.adb (Expand_Exception_Handlers): Do not undefer aborts if
3546 back_end exceptions for all others and abort_signal.
3547 * s-except.ads (ZCX_By_Default): New constant.
3548 * a-except-2005.adb (Raise_Exception): Do not defer abort if ZCX.
3549 (Raise_Exception_Always): Ditto.
3550 (Raise_From_Signal_Handler): Ditto.
3551 (Raise_With_Location_And_Msg): Ditto.
3552 (Raise_With_Msg): Ditto.
3553 (Reraise): Ditto.
3554 (Reraise_Occurence): Ditto.
3555 (Reraise_Occurrence_Always): Ditto.
3556 * s-tasren.adb (Exceptional_Complete_Rendezvous): Defer aborts if ZCX.
3557 * s-tpobop.adb: (Exceptional_Complete_Body): Undefer abort if ZCX.
1d10f669
AC
3558
35592011-08-29 Thomas Quinot <quinot@adacore.com>
3560
3561 * sem_util.ads (Get_Enum_Lit_From_Pos): Clarify documentation.
3562
d986066d
AC
35632011-08-29 Robert Dewar <dewar@adacore.com>
3564
3565 * snames.adb-tmpl, sem_ch13.adb: Minor reformatting
3566 Minor code reorganization.
3567
35682011-08-29 Bob Duff <duff@adacore.com>
3569
3570 * usage.adb (-gnatwy): Fix documentation: this switch applies to Ada
3571 2012, not just Ada 2005.
3572
35732011-08-29 Vincent Celier <celier@adacore.com>
3574
3575 * gnat_ugn.texi: Indicate that when the compiler is called by gnatmake
3576 with a project file or with gprbuid, if -gnatep= is specified, the
3577 builder may need to be invoked with -x.
3578
35792011-08-29 Tristan Gingold <gingold@adacore.com>
3580
3581 * a-exexpr-gcc.adb: Minor comment fix.
3582
ff4f0ed0
AC
35832011-08-29 Robert Dewar <dewar@adacore.com>
3584
3585 * sem_ch8.adb: Minor reformatting.
3586
35872011-08-29 Bob Duff <duff@adacore.com>
3588
3589 * par-ch2.adb (P_Identifier): Warn that "some" is reserved in Ada 2012.
3590 * par-ch4.adb (P_Quantified_Expression): Remove unnecessary code for
3591 treating "some" as unreserved in earlier Ada versions. This is now
3592 handled in Snames.Is_Keyword_Name. Parse "for some" using Tok_Some,
3593 rather than Name_Some, since Tok_Some is now recognized as reserved.
3594 * scans.adb (Initialize_Ada_Keywords): Handle Tok_Some like any other
3595 reserved word.
3596 * scans.ads: Minor comment fixes.
3597 * snames.adb-tmpl (Is_Keyword_Name): Handle Ada 2012 reserved words as
3598 for other language versions.
3599 * scn.adb (Scan_Reserved_Identifier): Remove unnecessary code for
3600 treating "some" as unreserved in earlier Ada versions. This is now
3601 handled in Snames.Is_Keyword_Name.
3602 * par-ch3.adb (P_Defining_Identifier): Warn that "some" is reserved in
3603 Ada 2012.
3604 (P_Subtype_Mark_Resync): Remove unnecessary code for treating "some" as
3605 unreserved in earlier Ada versions. This is now handled in
3606 Snames.Is_Keyword_Name.
3607 * snames.ads-tmpl (Ada_2012_Reserved_Words): Handle Ada 2012 reserved
3608 words as for other language versions.
3609 * gnat_ugn.texi (-gnatwy): Fix documentation: this switch applies to
3610 Ada 2012, not just Ada 2005.
3611
d941cee6
AC
36122011-08-29 Ed Schonberg <schonberg@adacore.com>
3613
3614 * sem_ch13.adb: Additional semantic checks for aspects involved in
3615 iterators.
3616
36172011-08-29 Matthew Heaney <heaney@adacore.com>
3618
3619 * a-comutr.ads, a-comutr.adb, a-cimutr.ads, a-cimutr.adb,
3620 a-cbmutr.ads, a-cbmutr.adb (Find_In_Subtree): Remove superfluous
3621 Container parameter.
3622 (Ancestor_Find): ditto.
3623
b970af39
TQ
36242011-08-29 Thomas Quinot <quinot@adacore.com>
3625
3626 * par-endh.adb: Minor reformatting.
d941cee6 3627
92db5dee
AC
36282011-08-29 Tristan Gingold <gingold@adacore.com>
3629
3630 * a-exexpr-gcc.adb (Unwind_Action) Rewrite as an integer with constants.
3631 (GNAT_GCC_Exception): Remove N_Cleanups_To_Trigger component.
3632 (Adjust_N_CLeanups_For): Remove.
3633 (CleanupUnwind_Handler): Call Unhandled_Exception_Terminate when end of
3634 stack is reached.
3635 (Propgate_Exception): Adjust.
3636 * raise-gcc.c: Add a few static/const.
3637 (Adjust_N_Cleanups_For): Remove declaration.
3638 (PERSONALITY_FUNCTION): Remove code dealing with N_Cleanups_To_Trigger.
3639
36402011-08-29 Ed Schonberg <schonberg@adacore.com>
3641
3642 * sem_ch8.adb: Use type of function return when rewriting as object
3643 declaration.
3644
1378bf10
AC
36452011-08-29 Gary Dismukes <dismukes@adacore.com>
3646
3647 * sem_type.adb: Minor reformatting.
3648
36492011-08-29 Robert Dewar <dewar@adacore.com>
3650
3651 * makeutl.adb: Minor reformatting.
3652
36532011-08-29 Ed Schonberg <schonberg@adacore.com>
3654
3655 * sem_ch8.adb (Analyze_Object_Renaming): If the renamed object is a
3656 function call of a limited type, the expansion of the renaming is
3657 complicated by the presence of various temporaries and subtypes that
3658 capture constraints of the renamed object.
3659 Rewrite node as an object declaration, whose expansion is simpler.
3660 Given that the object is limited there is no copy involved and no
3661 performance hit.
3662
164e06c6
AC
36632011-08-29 Robert Dewar <dewar@adacore.com>
3664
3665 * exp_ch5.adb, sinfo.ads, make.adb, s-pooglo.adb, sem_ch12.adb,
3666 freeze.adb, sem_ch6.adb, par-ch12.adb: Minor reformatting.
3667
36682011-08-29 Tristan Gingold <gingold@adacore.com>
3669
3670 * system-darwin-x86.ads, system-linux-s390x.ads, system-linux-alpha.ads,
3671 system-tru64.ads, system-irix-n32.ads, system-vxworks-arm.ads,
3672 system-linux-hppa.ads, system-linux-s390.ads,
3673 system-solaris-sparcv9.ads, system-mingw.ads, system-linux-ia64.ads,
3674 system-vms_64.ads, system-vxworks-sparcv9.ads, system-linux-ppc.ads,
3675 system-aix64.ads, system-lynxos-ppc.ads, system-linux-sh4.ads,
3676 system-solaris-x86.ads, system-linux-x86_64.ads, system-linux-x86.ads,
3677 system-vxworks-ppc.ads, system-hpux.ads, system-darwin-ppc.ads,
3678 system-solaris-sparc.ads, system-lynxos-x86.ads,
3679 system-vxworks-m68k.ads, system-hpux-ia64.ads, system-irix-o32.ads,
3680 system-solaris-x86_64.ads, system-mingw-x86_64.ads,
3681 system-vxworks-mips.ads, system-linux-sparc.ads, system-vms-ia64.ads,
3682 system-freebsd-x86.ads, system-aix.ads, system-darwin-x86_64.ads,
7d266442 3683 system-vxworks-x86.ads: Remove GCC_ZCX_Support.
164e06c6
AC
3684 * s-taprop-posix.adb, s-taprop-irix.adb, s-taprop-vxworks.adb,
3685 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb: Ditto.
3686 * opt.ads: Adjust comment.
3687 * targparm.ads, targparm.adb: Remove GCC_ZCX_Support_On_Target.
3688 * gnat1drv.adb: Do not check for GCC_ZCX_Support_On_Target.
3689 * system.ads: Move GCC_ZCX_Support to obsolete entries.
3690
36912011-08-29 Emmanuel Briot <briot@adacore.com>
3692
3693 * makeutl.adb (Do_Complete): Resolve symbolic links when a relative
3694 file name is specified on the gnatmake or gprbuild command line, and
3695 before we search for that file in the project.
3696
36972011-08-29 Ed Schonberg <schonberg@adacore.com>
3698
3699 * sem_type.adb (Within_Instance): New predicate in Collect_Interps,
3700 used to determine whether a possible interpretation for an overloadable
3701 entity is declared within the current instantiation and should be
3702 included in the candidate set.
3703
37042011-08-29 Vasiliy Fofanov <fofanov@adacore.com>
3705
3706 * gnat_rm.texi, gnat_ugn.texi: Clean ups.
3707
97216ca8
ES
37082011-08-29 Ed Schonberg <schonberg@adacore.com>
3709
3710 * sem_res.adb (Resolve_Actuals): Use base type to determine whether an
3711 access subtype is access_to_subprogram, when applying checks for
3712 RM 3.10.2 (27).
3713
d3cb4cc0
AC
37142011-08-29 Matthew Heaney <heaney@adacore.com>
3715
3716 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Splice_Subtree): Only check
3717 for sibling when common parent.
3718
37192011-08-29 Thomas Quinot <quinot@adacore.com>
3720
3721 * get_scos.adb: Literals of Pragma_Id are pragma names prefixed with
3722 "pragma_".
3723
37242011-08-29 Ed Schonberg <schonberg@adacore.com>
3725
3726 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Enable freeze actions
3727 for the return type when in ASIS mode.
3728
37292011-08-29 Vincent Celier <celier@adacore.com>
3730
3731 * make.adb (Gnatmake): Get the default search dirs, then the target
3732 parameters after getting the Builder switches, as the Builder switches
3733 may include --RTS= and that could change the default search dirs.
3734
37352011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
3736
3737 * exp_ch7.adb (Make_Adjust_Call): Rewrite to mimic the structure of
3738 Make_Final_Call. Move the processing for class-wide types before the
3739 processing for derivations from [Limited_]Controlled.
3740 (Make_Final_Call): Move the processing for class-wide types before the
3741 processing for derivations from [Limited_]Controlled.
3742 * s-stposu.adb (Allocate_Any_Controlled): Correct the membership check.
3743 Add code to account for alignments larger than the list header. Add a
3744 comment illustrating the structure of the allocated object + padding +
3745 header.
3746 (Deallocate_Any_Controlled): Add code to account for alignments larger
3747 than the list header.
3748
37492011-08-29 Ed Schonberg <schonberg@adacore.com>
3750
3751 * sinfo.ads, sinfo.adb: New node kind
3752 N_Formal_Incomplete_Type_Definition, related flags.
3753 par-ch12.adb (P_Formal_Type_Declaration, G_Formal_Type_Definition):
3754 Parse formal incomplete types.
3755 * sem.adb (Analyze): Formal_Incomplete_Type_Definitions are handled in
3756 sem_ch12.
3757 * sem_ch7.adb (Analyze_Package_Specification, Unit_Requires_Body):
3758 Formal incomplete types do not need completion.
3759 * sem_ch12.adb (Analyze_Formal_Incomplete_Type,
3760 Validate_Incomplete_Type_Instance): New procedures to handle formal
3761 incomplete types.
3762 * freeze.adb (Freeze_Entity): Do not freeze the subtype of an actual
3763 that corresponds to a formal incomplete type.
3764 * sprint.adb: Handle formal incomplete type declarations.
3765 * exp_util.adb (Insert_Actions): An incomplete_type_definition is not
3766 an insertion point.
3767
d3f70b35
AC
37682011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
3769
3770 * a-fihema.ads, a-fihema.adb: Unit removed.
3771 * a-undesu.ads, a-undesu.adb: New unit implementing
3772 Ada.Unchecked_Deallocate_Subpool.
3773 * einfo.adb: Remove Associated_Collection from the node usage.
3774 Add Finalization_Master to the node usage.
3775 (Associated_Collection): Removed.
3776 (Finalization_Master): New routine.
3777 (Set_Associated_Collection): Removed.
3778 (Set_Finalization_Master): New routine.
3779 (Write_Field23_Name): Remove Associated_Collection from the output. Add
3780 Finalization_Master to the output.
3781 * einfo.ads: Remove attribute Associated_Collection and its uses in
3782 entities.
3783 Add new attribute Finalization_Master along with its uses in entitites.
3784 (Associated_Collection): Removed along with its pragma import.
3785 (Finalization_Master): New routine along with a pragma import.
3786 (Set_Associated_Collection): Removed along with its pragma import.
3787 (Set_Finalization_Master): New routine along with a pragma import.
3788 * exp_ch3.adb (Expand_Freeze_Array_Type): Replace call to
3789 Build_Finalization_Collection with Build_Finalization_Master.
3790 (Expand_Freeze_Record_Type): Move the generation of Finalize_Address
3791 before the bodies of the predefined routines. Add comment explaining
3792 this. Replace call to Build_Finalization_Collection with
3793 Build_Finalization_Master.
3794 (Freeze_Type): Replace call to Build_Finalization_Collection with
3795 Build_Finalization_Master.
3796 (Make_Finalize_Address_Body): Comment reformatting.
3797 (Make_Predefined_Primitive_Specs): Code reformatting.
3798 (Stream_Operation_OK): Update comment mentioning finalization
3799 collections. Replace RE_Finalization_Collection with
3800 RE_Finalization_Master.
3801 * exp_ch4.adb (Complete_Controlled_Allocation): Replace call to
3802 Associated_Collection with Finalization_Master. Replace call to
3803 Build_Finalization_Collection with Build_Finalization_Master.
3804 (Expand_Allocator_Expression): Replace call to Associated_Collection
3805 with Finalization_Master. Replace call to Set_Associated_Collection with
3806 Set_Finalization_Master. Remove the generation of
3807 Set_Finalize_Address_Ptr.
3808 (Expand_N_Allocator): Replace call to Associated_Collection with
3809 Finalization_Master. Remove the generation of Set_Finalize_Address_Ptr.
3810 * exp_ch6.adb (Add_Collection_Actual_To_Build_In_Place_Call): Renamed to
3811 Add_Finalization_Master_Actual_To_Build_In_Place_Call. Update the
3812 comment on usage. Replace call to Needs_BIP_Collection with
3813 Needs_BIP_Finalization_Master Remplace BIP_Collection with
3814 BIP_Finalization_Master. Update all comments which mention finalization
3815 collections. Replace Associated_Collection with
3816 Finalization_Master. Replace Build_Finalization_Collection with
3817 Build_Finalization_Master.
3818 (BIP_Formal_Suffix): Update BIP_Collection's case.
3819 (Build_Heap_Allocator): Update the related comment. Rename local
3820 variable Collect to Fin_Mas_Id and update its occurrences. Update
3821 comments which mention finalization collections. Replace
3822 Set_Associated_Collection with Set_Finalization_Master.
3823 (Expand_Call): Update the code which detects a special piece of library
3824 code for .NET/JVM.
3825 (Make_Build_In_Place_Call_In_Allocator): Replace the call to
3826 Add_Collection_Actual_To_Build_In_Place_Call with
3827 Add_Finalization_Master_Actual_To_Build_In_Place_Call. Remove the code
3828 which generates a call to Make_Set_Finalize_Address_Ptr_Call.
3829 (Make_Build_In_Place_Call_In_Anonymous_Context): Replace call to
3830 Add_Collection_Actual_To_Build_In_Place_Call with
3831 Add_Finalization_Master_Actual_To_Build_In_Place_Call.
3832 (Make_Build_In_Place_Call_In_Assignment): Replace call to
3833 Add_Collection_Actual_To_Build_In_Place_Call with
3834 Add_Finalization_Master_Actual_To_Build_In_Place_Call.
3835 (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master.
3836 * exp_ch6.ads: Rename BIP_Collection to BIP_Finalization_Master.
3837 (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master.
3838 * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Update comment on usage.
3839 Rename local variable Collect to Fin_Mas_Id and update its occurrences.
3840 Replace call to Set_Associated_Collection with Set_Finalization_Master.
3841 (Build_Finalization_Collection): Renamed to Build_Finalization_Master.
3842 Replace the call to Associated_Collection with Finalization_Master.
3843 Rename local variable Coll_Id to Fin_Mas_Id and update its occurrences.
3844 Update the way finalization master names are generated. Update the
3845 retrieval of the correct access type which will carry the pool and
3846 master attributes.
3847 (Make_Final_Call): Reimplement the way [Deep_]Finalize is retrieved.
3848 (Make_Finalize_Address_Body): Abstract types do not need
3849 Finalize_Address. Code reformatting.
3850 (Make_Finalize_Address_Stmts): Update comment on usage.
3851 (Make_Set_Finalize_Address_Ptr_Call): Removed.
3852 (Process_Declarations): Update comments.
3853 * exp_ch7.ads (Build_Finalization_Collection): Renamed to
3854 Build_Finalization_Master. Update associated comment.
3855 (Make_Set_Finalize_Address_Ptr_Call): Removed.
3856 * exp_ch13.adb: Update comments which mention finalization collections.
3857 (Expand_N_Free_Statement): Replace the call to Associated_Collection
3858 with Finalization_Master.
3859 * exp_util.adb (Build_Allocate_Deallocate_Proc): Reimplemented to
3860 create calls to routines Allocate_Any_Controlled and
3861 Deallocate_Any_Controlled.
3862 (Find_Finalize_Address): New routine.
3863 (Is_Allocate_Deallocate_Proc): Update the RTE entities used in the
3864 comparison.
3865 (Requires_Cleanup_Actions): Update the comment on freeze node
3866 inspection.
3867 * exp_util.ads: Remove comment on generated code for
3868 Build_Allocate_Deallocate_Proc. The code is now quite complex and it
3869 is better to simply look in the body.
3870 * freeze.adb (Freeze_All): Update the comment of finalization
3871 collections. Replace the call to Associated_Collection with
3872 Finalization_Master. Replace the call to Build_Finalization_Collection
3873 with Build_Finalization_Master.
3874 * impunit.adb: Add a-undesu and s-stposu to the list of units.
3875 * Makefile.rtl: Add files a-undesu, s-finmas and s-stposu. Remove file
3876 a-fihema.
3877 * rtsfind.adb (Get_Unit_Name): Remove the processing for children of
3878 Ada.Finalization. Add processing for children of System.Storage_Pools.
3879 * rtsfind.ads: Remove the naming of second level children of
3880 Ada.Finalization.
3881 Remove Ada_Finalization_Heap_Management from the list of units.
3882 Remove subtype Ada_Finalization_Child.
3883 Remove the following subprogram entities:
3884
3885 RE_Allocate
3886 RE_Deallocate
3887 RE_Finalization_Collection
3888 RE_Finalization_Collection_Ptr
3889 RE_Set_Finalize_Address_Ptr
3890
3891 Add the naming of second level children of System.Storage_Pools.
3892 Add System_Finalization_Masters and System_Storage_Pools_Subpools to
3893 the list of units.
3894 Add subtype System_Storage_Pools_Child.
3895 Add the following subprogram entities to System.Finalization_Masters:
3896
3897 RE_Finalization_Master
3898 RE_Finalization_Master_Ptr
3899
3900 Add the following subprogram entities to System.Storage_Pools.Subpools:
3901
3902 RE_Allocate_Any_Controlled
3903 RE_Deallocate_Any_Controlled
3904 RE_Root_Storage_Pool_With_Subpools
3905 RE_Root_Subpool
3906 RE_Subpool_Handle
3907
3908 Move the following subprogram entities from
3909 Ada.Finalization.Heap_Management to System.Finalization_Masters:
3910
3911 RE_Add_Offset_To_Address
3912 RE_Attach
3913 RE_Base_Pool
3914 RE_Detach
3915
3916 * sem_ch3.adb (Access_Type_Declaration): Replace the call to
3917 Set_Associated_Collection with Set_Finalization_Master.
3918 * sem_ch6.adb (Create_Extra_Formals): Update the way extra formal
3919 BIP_Finalization_Master is created.
3920 * s-finmas.adb: New unit System.Finalization_Masters.
3921 * s-finmas.ads: New unit System.Finalization_Masters.
3922 * s-stopoo.ads, s-stopoo.adb: Minor code reformatting.
3923 * s-stposu.ads, s-stposu.adb: New unit implementing
3924 System.Storage_Pools.Subpools.
3925
39262011-08-29 Bob Duff <duff@adacore.com>
3927
3928 * tbuild.adb: Add assertion.
3929
8c889ae4
AC
39302011-08-29 Thomas Quinot <quinot@adacore.com>
3931
3932 * s-pooglo.adb: Minor reformatting.
3933
39342011-08-29 Ed Schonberg <schonberg@adacore.com>
3935
3936 * exp_ch5.adb (Expand_N_Assignment_Statement): if the left-hand side is
3937 an indexed component of a packed array whose element type is a record
3938 with a representation clause different from that of the right-hand
3939 side, generate a temporary to minimuze the number of bit-field
3940 operations generated.
3941
39422011-08-29 Ed Schonberg <schonberg@adacore.com>
3943
3944 * exp_util.adb (Insert_Actions): Use clauses can be part of lists of
3945 declarations, and thus are likely insertion points for actions.
3946
39472011-08-29 Bob Duff <duff@adacore.com>
3948
3949 * einfo.ads: Minor comment fix.
3950
1a07a71a
AC
39512011-08-29 Robert Dewar <dewar@adacore.com>
3952
3953 * frontend.adb, gnat1drv.adb: Minor reformatting.
3954
39552011-08-29 Tristan Gingold <gingold@adacore.com>
3956
3957 * s-pooglo.adb (Allocate, Deallocate): Take into account the alignment.
3958 * a-fihema.adb (Allocate, Deallocate): Ditto. Possibly add padding
3959 space in front of the header.
3960
4bcd6411
JK
39612011-08-29 Johannes Kanig <kanig@adacore.com>
3962
3963 * frontend.adb (Frontend): Exit after creating Standard package when
3964 -gnatd.H is present.
3965 * gnat1drv.adb (Gnat1drv): Call Backend right away when -gnatd.H is
3966 present.
3967
f0f88eb6
RD
39682011-08-29 Robert Dewar <dewar@adacore.com>
3969
3970 * exp_ch9.adb, mlib-prj.adb, prj.adb, prj.ads, ttypes.ads, sem_ch4.adb,
3971 makeutl.adb, makeutl.ads, atree.ads, snames.adb-tmpl,
3972 snames.ads-tmpl: Minor reformatting.
3973
3e37be71
PG
39742011-08-29 Philippe Gil <gil@adacore.com>
3975
3976 * prj.adb (Reset_Units_In_Table): New procedure.
3977 Reset units to avoid access to freed memory.
3978
94fb7608
AC
39792011-08-29 Thomas Quinot <quinot@adacore.com>
3980
3981 * get_scos.adb: When reading a P statement SCO without a pragma name
3982 (from an older ALI file), ensure that the Pragma_Name component is set
3983 to Unknown_Pragma (not left uninitialized).
3984
39852011-08-29 Vincent Celier <celier@adacore.com>
3986
3987 * makeutl.adb (Get_Directories): New procedure moved from Buildgpr and
3988 modified to compute correctly the object path of a SAL project that is
3989 extending another library project.
3990 (Write_Path_File): New procedure.
3991 * makeutl.ads (Directories): New table moved from Buildgpr
3992 (Get_Directories): New procedure moved from Buildgpr
3993 (Write_Path_File): New procedure
3994 * mlib-prj.adb (Build_Library): Use Makeutl.Get_Directories to set the
3995 paths before binding SALs, instead of Set_Ada_Paths.
3996 * prj-env.adb (Set_Path_File_Var): Procedure has been moved to package
3997 Prj.
3998 * prj.adb (Set_Path_File_Var): New procedure moved from Prj.Env
3999 (Current_Source_Path_File_Of): New function
4000 (Set_Current_Object_Path_File_Of): New procedure
4001 (Current_Source_Object_File_Of): New function
4002 (Set_Current_Object_Path_File_Of): New procedure
4003 * prj.ads (Set_Path_File_Var): New procedure moved from Prj.Env
4004 (Current_Source_Path_File_Of): New function
4005 (Set_Current_Object_Path_File_Of): New procedure
4006 (Current_Source_Object_File_Of): New function
4007 (Set_Current_Object_Path_File_Of): New procedure
4008
40092011-08-29 Ed Schonberg <schonberg@adacore.com>
4010
4011 * exp_ch5.adb (Expand_N_Assignment_Statement): For an assignment to a
4012 packed entity, use a bit-field assignment only if there is no change of
4013 representation.
4014
c5ecd6b7
AC
40152011-08-29 Thomas Quinot <quinot@adacore.com>
4016
4017 * rtsfind.ads, exp_ch3.adb (In_Runtime): Minor code improvement, use
4018 Is_RTU instead of using Chars comparisons.
4019
40202011-08-29 Thomas Quinot <quinot@adacore.com>
4021
4022 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do not create a
4023 temporary object if the actual is constrained, and the discriminants
4024 read from the stream don't match.
4025
40262011-08-29 Tristan Gingold <gingold@adacore.com>
4027
4028 * sem_attr.adb, exp_attr.adb: Add handling of
4029 Attribute_System_Allocator_Alignment
4030 * snames.ads-tmpl: Add Name_System_Allocator_Alignment and
4031 Attribute_System_Allocator_Alignment.
4032 * ttypes.ads, get_targ.ads: Add Get_System_Allocator_Alignment.
4033 * gcc-interface/targtyps.c, gcc-interface/utils2.c,
4034 gcc-interface/gigi.h: Renames get_target_default_allocator_alignment to
4035 get_target_system_allocator_alignment.
4036
40372011-08-29 Arnaud Charlet <charlet@adacore.com>
4038
4039 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
4040 dependencies.
4041
8abdac29
AC
40422011-08-29 Arnaud Charlet <charlet@adacore.com>
4043
4044 * exp_ch3.adb (In_Runtime): Fix typo.
4045
df170605
AC
40462011-08-29 Bob Duff <duff@adacore.com>
4047
4048 * sem_ch4.adb (Analyze_Allocator): Analyze the subpool specification.
4049
40502011-08-29 Ed Schonberg <schonberg@adacore.com>
4051
4052 * exp_ch3.adb (Expand_N_Object_Declaration): If the entity is tagged
4053 and a separate tag assignment is generated, ensure that the tag
4054 assignment is analyzed.
4055
864a4236
ES
40562011-08-29 Ed Schonberg <schonberg@adacore.com>
4057
4058 * atree.ads, atree.adb (Copy_Separate_List): New function that applies
4059 Copy_Separate_Tree to a list of nodes. Used to create disjoint copies
4060 of statement lists that may contain local declarations.
df170605
AC
4061 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Use Copy_Separate_List to
4062 duplicate the triggering statements needed for the expansion of this
4063 construct, when the trigger is a dispatching call to a synchronized
4064 primitive.
864a4236 4065
7f394c1d
AC
40662011-08-29 Arnaud Charlet <charlet@adacore.com>
4067
4068 * gnat_rm.texi: Add doc for 'Elab_Subp_Body.
4069 * bindgen.adb: Add comments.
4070 * snames.adb-tmpl (Is_Attribute_Name): Only recognize 'Elab_Subp_Body
4071 in CodePeer mode.
4072
2c1a2cf3
RD
40732011-08-29 Robert Dewar <dewar@adacore.com>
4074
4075 * exp_attr.adb: Minor reformatting.
4076 Minor code reorganization and commenting.
4077 * par_sco.adb, checks.adb, sem_attr.adb, get_scos.adb: Minor
4078 reformatting.
4079
0bfc9a64
AC
40802011-08-29 Thomas Quinot <quinot@adacore.com>
4081
4082 * get_scos.adb: Ignore chaining indicators not currently supported
4083 by Ada.
4084
40852011-08-29 Arnaud Charlet <charlet@adacore.com>
4086
4087 * system.ads: Minor editing.
4088
40892011-08-29 Arnaud Charlet <charlet@adacore.com>
4090
4091 * bindgen.adb (Gen_Elab_Calls): Generate calls to subp'Elab_Subp_Body in
4092 CodePeer mode.
4093 * sem_attr.ads, sem_attr.adb, exp_Attr.adb, sem_ch6.adb: Add handling of
4094 Attribute_Elab_Subp_Body.
4095 * snames.ads-tmpl (Attribute_Elab_Subp_Body, Name_Elab_Subp_Body): New.
4096 * sem_util.adb: Update comments.
4097
828d4cf0
TQ
40982011-08-29 Thomas Quinot <quinot@adacore.com>
4099
4100 * par_sco.adb, scos.adb, scos.ads, put_scos.adb, get_scos.adb: Record
4101 pragma name for each SCO statement corresponding to a pragma.
4102
5cd7bb15
AC
41032011-08-29 Arnaud Charlet <charlet@adacore.com>
4104
4105 * opt.ads: Minor editing.
4106
41072011-08-29 Yannick Moy <moy@adacore.com>
4108
4109 * gnat1drv.adb (Adjust_Global_Switches): Remove options for ALFA mode
4110 that only made sense for CodePeer mode.
4111
41122011-08-29 Jose Ruiz <ruiz@adacore.com>
4113
4114 * targparm.ads (Support_64_Bit_Divides_On_Target): Remove this flag
4115 which is no longer used.
4116 * targparm.adb (S64, S64_Str, Get_Target_Parameters): Remove the
4117 handling of the 64-bit division check.
4118 * exp_ch4.adb (Expand_N_Op_Divide): Remove the check for 64-bit
4119 division available.
4120 * system*.ads (Support_64_Bit_Divides): Remove this flag which is no
4121 longer used.
4122
41232011-08-29 Thomas Quinot <quinot@adacore.com>
4124
4125 * get_scos.adb: Minor reformatting.
4126
25b589cb
AC
41272011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
4128
4129 * exp_util.adb (Process_Statements_For_Controlled_Objects): Whenever a
4130 statement list is wrapped in a block, the block is explicitly analyzed
4131 in order to properly redecorate the entities and create a servicing
4132 finalizer.
4133
41342011-08-29 Tristan Gingold <gingold@adacore.com>
4135
4136 * sinfo.ads, sinfo.adb (Zero_Cost_Handling): Remove.
4137 (Set_Zero_Cost_Handling): Remove.
4138
41392011-08-29 Thomas Quinot <quinot@adacore.com>
4140
4141 * par_sco.adb, scos.ads, put_scos.adb, get_scos.adb: Minor reformatting
4142
1197ddb1
AC
41432011-08-29 Geert Bosch <bosch@adacore.com>
4144
4145 * s-vaflop-vms-alpha.adb (Neg_F): Use subtraction instead of negation
4146 instruction, as the latter may produce -0.0, which is not a valid VAX
4147 F float number.
4148 (Neg_G): Likewise for VAX F float.
4149
41502011-08-29 Robert Dewar <dewar@adacore.com>
4151
4152 * exp_util.adb: Minor reformatting.
4153
41542011-08-29 Yannick Moy <moy@adacore.com>
4155
4156 * sem_ch3.adb: Minor comment update.
4157
41582011-08-29 Thomas Quinot <quinot@adacore.com>
4159
4160 * checks.adb (Apply_Type_Conversion_Checks): Use the Underlying_Type of
4161 the operand type.
4162
41632011-08-29 Thomas Quinot <quinot@adacore.com>
4164
4165 * par_sco.adb (Traverse_Declarations_Or_Statements): Do not flush
4166 current statement sequence on a generic instantiation or a subprogram
4167 declaration.
4168
8f66cda7
AC
41692011-08-29 Robert Dewar <dewar@adacore.com>
4170
4171 * sem_type.adb, einfo.ads, freeze.adb, exp_ch4.adb, sem_ch13.adb:
4172 Minor reformatting.
4173
41742011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
4175
4176 * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)):
4177 Correct the check which involves the freeze node of a controlled or
4178 access-to-controlled type.
4179
41802011-08-29 Geert Bosch <bosch@adacore.com>
4181
4182 * sem_warn.adb (Check_Code_Statement): Remove check for consecutive Asm
4183 statements.
4184 * s-vaflop-vms-alpha.adb: Remove bogus Volatile => True arguments from
4185 Asm statements.
4186
cf161d66
AC
41872011-08-29 Yannick Moy <moy@adacore.com>
4188
4189 * sem_ch3.adb (Array_Type_Declaration): Insert a subtype declaration
4190 for every index type and component type that is not a subtype_mark.
4191 (Process_Subtype): Set Etype of subtype.
4192
41932011-08-29 Robert Dewar <dewar@adacore.com>
4194
4195 * a-cbmutr.adb, a-cimutr.adb, a-comutr.adb, prj-nmsc.adb: Minor code
4196 reorganization. Minor reformatting.
4197
7cc83cd8
AC
41982011-08-29 Steve Baird <baird@adacore.com>
4199
4200 * exp_ch4.adb (Expand_N_Op_Expon): Suppress N_Op_Expon node expansion
4201 for CodePeer and ALFA modes.
4202
42032011-08-29 Ed Schonberg <schonberg@adacore.com>
4204
4205 * sem_type.adb (Collect_Interps): Within an instance, collect a homonym
4206 that comes from an enclosing scope if it is not the renaming of an
4207 actual, to handle properly a spurious ambiguity in an instance.
4208
76af4137
AC
42092011-08-29 Eric Botcazou <ebotcazou@adacore.com>
4210
4211 * sem_ch13.adb (Alignment_Check_For_Esize_Change): Rename to...
4212 (Alignment_Check_For_Size_Change): ...this. Add SIZE parameter and
4213 use it instead of the Esize of the first parameter.
4214 (Analyze_Attribute_Definition_Clause) <Object_Size>: Adjust call to
4215 above change.
4216 <Size>: Likewise. Call it for composite types on the RM size.
4217
42182011-08-29 Yannick Moy <moy@adacore.com>
4219
4220 * exp_ch4.adb (Expand_N_Op_Not): Do not expand not on array.
4221 * sem_util.adb (Unique_Name): Correct behaviour for names of
4222 compilation units.
4223
9b20e59b
AC
42242011-08-29 Yannick Moy <moy@adacore.com>
4225
4226 * sem_prag.adb (Check_Precondition_Postcondition): In formal
4227 verification mode, analyze pragma expression for correctness, for
4228 pre/post on library-level subprogram, as it is not expanded later.
4229
42302011-08-29 Yannick Moy <moy@adacore.com>
4231
4232 * exp_aggr.adb (Expand_Array_Aggregate): Do not expand array aggregates
4233 in formal verification.
4234
42352011-08-29 Thomas Quinot <quinot@adacore.com>
4236
4237 * sem_util.adb: Minor reformatting.
4238 * freeze.adb, sem_ch13.adb: Fix comment: Bit_Order is an attribute,
4239 there's no pragma.
4240 * par_sco.ads, par_sco.adb: Update comments.
4241
42422011-08-29 Yannick Moy <moy@adacore.com>
4243
4244 * einfo.adb, einfo.ads: Remove flag Is_Postcondition_Proc and
4245 associated getter/setter.
4246 * sem_ch6.adb: Remove reference to Is_Postcondition_Proc.
4247
42482011-08-29 Vincent Celier <celier@adacore.com>
4249
4250 * prj-attr.adb: New Compiler attribute Dependency_Kind and Language_Kind
4251 * prj-conf.adb: Add_Default_GNAT_Naming_Scheme: Add a package Compiler
4252 with declarations for Language_Kind and Dependency_Kind for Ada.
4253 * prj-nmsc.adb (Check_Unit_Name): New name of procedure Check_Ada_Name
4254 (Process_Compiler): Take into account the new attributes Dependency_Kind
4255 and Language_Kind.
4256 (Check_Configuration): Check if language kind is unit based, not if the
4257 language name is Ada.
4258 (Process_Exceptions_Unit_Based): Ditto
4259 (Add_Language): Remove default additions of language and dependency kind
4260 * prj.ads: Minor comment change
4261 * snames.ads-tmpl: New standard names Dependency_Kind and Language_Kind
4262
42632011-08-29 Johannes Kanig <kanig@adacore.com>
4264
4265 * debug.adb: Update comments.
4266
c5bc3df6
JM
42672011-08-24 Joseph Myers <joseph@codesourcery.com>
4268
4269 * gcc-interface/Make-lang.in (CFLAGS-ada/tracebak.o)
4270 (CFLAGS-ada/targext.o, CFLAGS-ada/cio.o, CFLAGS-ada/init.o)
4271 (CFLAGS-ada/initialize.o, CFLAGS-ada/raise.o): New.
4272 (ada/tracebak.o, ada/targext.o, ada/cio.o, ada/init.o)
4273 (ada/initialize.o, ada/raise.o): Remove explicit compilation rules.
4274
e3aa9eba
RO
42752011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4276
4277 * gcc-interface/Makefile.in (PICFLAG_FOR_TARGET): New.
4278 (GNATLIBCFLAGS_FOR_C): Replace
4279 TARGET_LIBGCC2_CFLAGS by PICFLAG_FOR_TARGET.
4280 (gnatlib-shared-default, gnatlib-shared-dual-win32)
4281 (gnatlib-shared-win32, gnatlib-shared-darwin, gnatlib-shared)
4282 (gnatlib-sjlj, gnatlib-zcx): Likewise.
4283
f446d60e
EB
42842011-08-07 Eric Botcazou <ebotcazou@adacore.com>
4285
4286 * gcc-interface/Makefile.in (raise-gcc.o): Fix previous change.
4287
588c8f48
EB
4288 * gcc-interface/gigi.h (enumerate_modes): Fix formatting.
4289
4290 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Revert latest change.
4291
28d711bf
NR
42922011-08-05 Nicolas Roche <roche@adacore.com>
4293
4294 * gcc-interface/Makefile.in: Don't use directly ../xgcc to build shared
4295 libgnat. Use rather the value of GCC_FOR_TARGET. Fix issue with
4296 canadian cross.
4297 * gcc-interface/Make-lang.in: Add support for canadian cross setting.
4298
993f8920
AC
42992011-08-05 Matthew Heaney <heaney@adacore.com>
4300
4301 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Child_Count, Child_Depth):
4302 subprogram bodies declared out-of-order.
4303
43042011-08-05 Yannick Moy <moy@adacore.com>
4305
4306 * sem_util.adb (Unique_Name): only prefix with "standard" the names of
4307 entities directly in package Standard, otherwise skip the standard
4308 prefix.
4309
9b3956dd
RD
43102011-08-05 Robert Dewar <dewar@adacore.com>
4311
4312 * a-cbmutr.adb: Minor reformatting
4313 (Allocate_Node): refactor node allocation algorithm
4314
43152011-08-05 Robert Dewar <dewar@adacore.com>
4316
4317 * opt.ads, opt.adb (Debug_Pragmas_Disabled): New switch.
4318 * sem_prag.adb (Analyze_Pragma, case Debug_Policy): Implement Disable
4319 mode.
4320 (Analyze_Pragma, case Check_Policy): Ditto.
4321 * sem_prag.ads (Check_Disabled): New function
4322 * snames.ads-tmpl: Add Name_Disable.
4323
43242011-08-05 Robert Dewar <dewar@adacore.com>
4325
4326 * gnat_rm.texi: Document implementation-defined policy DISABLE for
4327 pragmas Assertion_Policy, Check_Policy, Debug_Policy.
4328
79e705d6
AC
43292011-08-05 Ed Schonberg <schonberg@adacore.com>
4330
4331 * sem_prag.adb (Analyze_Pragma, case Inline): reject an Inline pragma
4332 that appears in a generic formal part and applies to a formal
4333 subprogram.
4334
43352011-08-05 Robert Dewar <dewar@adacore.com>
4336
4337 * a-cbmutr.ads: Minor reformatting.
4338
23b6deca
AC
43392011-08-05 Matthew Heaney <heaney@adacore.com>
4340
4341 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Read): do not use T'Valid
4342 to check count, check sign of value instead.
4343 * a-comutr.adb, a-cimutr.adb (Write): return immediately if tree empty
4344 (Copy_Subtree): allocate copy of source element
4345 (Equal_Subtree): compare elements, not access objects
4346
43472011-08-05 Vincent Celier <celier@adacore.com>
4348
4349 * gnat_ugn.texi: Fix VMS alternative.
4350
a2773bd3
AC
43512011-08-05 Thomas Quinot <quinot@adacore.com>
4352
4353 * sem_ch11.adb: Add comment.
4354
43552011-08-05 Robert Dewar <dewar@adacore.com>
4356
4357 * exp_util.adb: Minor comment fix.
4358
43592011-08-05 Robert Dewar <dewar@adacore.com>
4360
4361 * scng.adb (Error_Unterminated_String): Improve flag position when
4362 comma present.
4363
43642011-08-05 Matthew Heaney <heaney@adacore.com>
4365
4366 * Makefile.rtl, impunit.adb: Added a-cbmutr.ad[sb] (bounded multiway
4367 tree containers).
4368 * a-cbmutr.ads, a-cbmutr.adb: This is the new Ada 2012 unit for bounded
4369 multiway tree containers.
4370
43712011-08-05 Robert Dewar <dewar@adacore.com>
4372
4373 * styleg.adb (Check_Comment): Implement comment spacing of 1 or 2
4374 * stylesw.adb: Implement -gnatyC to control comment spacing
4375 * stylesw.ads (Style_Check_Comments_Spacing): New switch (set by
4376 -gnatyc/C).
4377 * usage.adb: Add line for -gnatyC.
4378
43792011-08-05 Robert Dewar <dewar@adacore.com>
4380
f446d60e 4381 * gnat_ugn.texi: Document -gnatyC.
a2773bd3
AC
4382 * vms_data.ads: Implement COMMENTS1/COMMENTS2 (retaining COMMENTS as a
4383 synonym for COMMENTS2).
4384
dedac3eb
RD
43852011-08-05 Robert Dewar <dewar@adacore.com>
4386
4387 * par_sco.adb, sem_ch3.adb, scos.ads, a-iteint.ads, sem_ch12.adb,
4388 a-cimutr.adb, a-cimutr.ads, sem_util.ads, sem_res.adb, a-fihema.adb,
4389 sem_ch4.adb, lib-xref-alfa.adb, exp_disp.adb, a-comutr.adb,
4390 a-comutr.ads, lib-xref.adb: Minor reformatting.
4391
43922011-08-05 Robert Dewar <dewar@adacore.com>
4393
4394 * sem_ch11.adb (Analyze_Raise_Statement): Kill assignment to formal
4395 warning if there is an exception handler present.
4396
7c62a85a
AC
43972011-08-05 Pascal Obry <obry@adacore.com>
4398
4399 * a-iteint.ads: Fix copyright year.
4400
44012011-08-05 Thomas Quinot <quinot@adacore.com>
4402
4403 * par_sco.adb (Traverse_Declarations_Or_Statements): Do not generate a
4404 statement SCO for a USE clause or a representation clause.
4405
44062011-08-05 Yannick Moy <moy@adacore.com>
4407
4408 * lib-xref-alfa.adb (Collect_ALFA): generate the proper relation
4409 between body and spec for stub.
4410 (Detect_And_Add_ALFA_Scope): take into account subprogram stub
4411 * lib-xref.adb (Enclosing_Subprogram_Or_Package): in the case of a
4412 pragma precondition or postcondition, for which the enclosing
4413 subprogram or package in the AST is not the desired one, return empty.
4414
e49208a9
AC
44152011-08-05 Thomas Quinot <quinot@adacore.com>
4416
4417 * g-expect.adb: Minor reformatting.
4418
44192011-08-05 Bob Duff <duff@adacore.com>
4420
4421 * a-fihema.adb: Comment out OS_Lib.
4422
44232011-08-05 Matthew Heaney <heaney@adacore.com>
4424
4425 * Makefile.rtl, impunit.adb: Added a-c[oi]mutr.ad[sb]
4426 (unbounded multiway tree containers) and a-iteint.ads.
4427 * a-comutr.ads, a-comutr.adb:
4428 This is the new Ada 2012 unit for unbounded multiway tree containers
4429 * a-cimutr.ads, a-cimutr.adb
4430 This is the new Ada 2012 unit for indefinite multiway tree containers
4431 * a-iteint.ads: New file.
4432
201cdb74
RO
44332011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4434
f446d60e 4435 * gcc-interface/Makefile.in (raise-gcc.o): Search $(srcdir)/../libgcc.
201cdb74 4436
d50f4827
AC
44372011-08-05 Bob Duff <duff@adacore.com>
4438
4439 * sinfo.ads, sinfo.adb (Subpool_Handle_Name): New attribute for
4440 subpools.
4441 * par-ch4.adb (P_Allocator): Parse new subpool specification syntax.
4442
44432011-08-05 Ed Schonberg <schonberg@adacore.com>
4444
4445 * sem_ch4.adb (Try_Container_Indexing): New procedure to implement the
4446 general indexing aspects of Ada2012. Called when analyzing indexed
4447 components when other interpretations fail.
4448 * sem_ch8.adb (Find_Direct_Name): check for implicit dereference only
4449 in an expression context where overloading is meaningful. This excludes
4450 the occurrence in an aspect specification (efficiency only).
4451 * sem_attr.adb (Analyze_Attribute): indicate that the attributes
4452 related to iterators can be set by an attribute specification, but
4453 cannot be queried.
4454 * sem_ch13.adb (Analyze_Aspect_Specifications): handle
4455 Constant_Indexing and Variable_Indexing.
4456 (Check_Indexing_Functions): New procedure to perform legality checks.
4457 Additional semantic checks at end of declarations.
4458
efe05dfc
AC
44592011-08-05 Sergey Rybin <rybin@adacore.com>
4460
4461 * tree_io.ads: Update ASIS_Version_Number because of the change of the
4462 order of calling Tree_Write/Tree_Read routines made for aspects.
4463
44642011-08-05 Bob Duff <duff@adacore.com>
4465
4466 * a-fihema.adb (Finalize): Fix race condition.
4467
5f9cdefe
AC
44682011-08-05 Yannick Moy <moy@adacore.com>
4469
4470 * sem_ch12.adb (Analyze_Package_Instantiation,
4471 Need_Subprogram_Instance_Body): do not generate instance bodies in ALFA
4472 mode.
4473
44742011-08-05 Ed Schonberg <schonberg@adacore.com>
4475
4476 * sem_type.adb (Specific_Type): in an instance, the type-specific
4477 operand of an equality check that involves null may have a private
4478 type. Use full view to determine legality of construct.
4479
822868aa
AC
44802011-08-05 Vincent Celier <celier@adacore.com>
4481
4482 * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to
4483 delete or close the file when the call to gnatmake was successful.
4484
44852011-08-05 Yannick Moy <moy@adacore.com>
4486
4487 * gnat1drv.adb (Adjust_Global_Switches): in ALFA mode, set
4488 Global_Discard_Names.
4489
44902011-08-05 Ed Schonberg <schonberg@adacore.com>
4491
4492 * sinfo.ads: comments on use of entity field for aspect specifications.
4493
44942011-08-05 Ed Schonberg <schonberg@adacore.com>
4495
4496 * sem_ch12.adb (Reset_Entity): If the entity field of the associated
4497 node is not itself an entity but a selected component, it is a
4498 rewritten parameterless call to an en enclosing synchronized operation,
4499 and this expansion will be performed again in the instance, so there is
4500 no global information to preserve.
4501
44a10091
AC
45022011-08-05 Javier Miranda <miranda@adacore.com>
4503
4504 * exp_disp.adb (Set_All_DT_Position): Cleanup code and improve support
4505 for renamings of predefined primitives.
4506 (In_Predef_Prims_DT): New subprogram.
4507
45082011-08-05 Ed Schonberg <schonberg@adacore.com>
4509
4510 * sem_util.adb, sem_util.ads (Check_Implicit_Dereference): If a
4511 possible interpretation of name is a reference type, add an
4512 interpretation that is the designated type of the reference
4513 discriminant of that type.
4514 * sem_res.adb (resolve): If the interpretation imposed by context is an
4515 implicit dereference, rewrite the node as the deference of the
4516 reference discriminant.
4517 * sem_ch3.adb (Analyze_Subtype_Declaration, Build_Derived_Record_Type,
4518 Build_Discriminated_Subtype): Inherit Has_Implicit_Dereference from
4519 parent type or base type.
4520 * sem_ch4.adb (Process_Indexed_Component,
4521 Process_Overloaded_Indexed_Component, Indicate_Name_And_Type,
4522 Analyze_Overloaded_Selected_Component, Analyze_Selected_Component):
4523 Check for implicit dereference.
4524 (List_Operand_Interps): Indicate when an implicit dereference is
4525 ambiguous.
4526 * sem_ch8.adb (Find_Direct_Name): Check for implicit dereference.
4527
45282011-08-05 Thomas Quinot <quinot@adacore.com>
4529
4530 * scos.ads: Update documentation of SCO table. Pragma statements can now
4531 be marked as disabled (using 'p' instead of 'P' as the statement kind).
4532 * par_sco.ads, par_sco.adb: Implement the above change.
4533 (Process_Decisions_Defer): Generate a P decision for the first parameter
4534 of a dyadic pragma Debug.
4535 * sem_prag.adb (Analyze_Pragma, case Debug): Mark pragma as enabled if
4536 necessary.
4537 * put_scos.adb: Code simplification based on above change.
4538
bb3c784c
AC
45392011-08-05 Robert Dewar <dewar@adacore.com>
4540
4541 * sem_ch3.adb, gnatcmd.adb, switch-c.adb, exp_attr.adb, make.adb,
4542 bindgen.adb, einfo.adb, sem_ch12.adb, sem_attr.adb, a-fihema.adb,
4543 a-fihema.ads, sem_elab.adb, sem_elab.ads, aspects.adb, opt.ads,
4544 prj-conf.adb, sem_ch13.adb, s-ficobl.ads: Minor reformatting
4545
45462011-08-05 Bob Duff <duff@adacore.com>
4547
4548 * a-stunau.ads, g-spipat.adb: Update comments.
4549
36f686f9
BD
45502011-08-05 Bob Duff <duff@adacore.com>
4551
4552 * a-fihema.ads: Minor comment fix.
4553 * a-fihema.adb (Allocate, Deallocate): Assert that the alignment is
4554 correct.
4555 (Attach, Detach): Remove some unnecessary code.
4556 (Finalize): Remove Node_Ptr_To_Address, replace with a constant.
4557
7882673f
BD
45582011-08-05 Bob Duff <duff@adacore.com>
4559
4560 * a-fihema.ads, a-fihema.adb (Finalization_Collection): Avoid heap
4561 allocation for Objects component. This simplifies the code somewhat. It
4562 is also a little more efficient in the not-so-unusual case where there
4563 are no controlled objects allocated.
4564 Make Finalization_Started flag atomic.
4565 (Finalize): Avoid unnecessary detachment of items from the list.
4566 (pcol): Minor cleanup.
4567
d34cd274
AC
45682011-08-05 Ed Schonberg <schonberg@adacore.com>
4569
4570 * sem_ch12.adb (Analyze_Formal_Package_Declaration): reject a formal
4571 package whose name is the same as that of the generic unit, or its
4572 ultimate prefix.
4573
45742011-08-05 Bob Duff <duff@adacore.com>
4575
4576 * a-fihema.adb, a-fihema.ads: Minor comment improvements.
4577 * sem_ch3.adb, exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb:
4578 Minor comment fixes.
4579
00332244
AC
45802011-08-05 Arnaud Charlet <charlet@adacore.com>
4581
4582 * make.adb (Linking_Phase): No longer need to set source search path
4583 before calling gnatlink in CodePeer mode.
4584 * gnatlink.adb (Gnatlink): No longer pass -gnat83/95/05/12 switch to
4585 gcc in CodePeer mode, since the binder generated file no longer has a
4586 'with Main'.
4587 * switch.ads, switch.adb (Is_Language_Switch): Removed.
4588 * switch-c.adb: Update comment.
4589
45902011-08-05 Thomas Quinot <quinot@adacore.com>
4591
4592 * exp_strm.adb, bindgen.adb, s-ficobl.ads: Minor reformatting.
4593
45942011-08-05 Nicolas Roche <roche@adacore.com>
4595
4596 * gnat_ugn.texi: Fix minor syntax error issue.
4597
45982011-08-05 Vincent Celier <celier@adacore.com>
4599
4600 * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to
4601 delete or close the file when the call to gnatmake returns a non
4602 successful return code.
4603
46042011-08-05 Ed Schonberg <schonberg@adacore.com>
4605
4606 * exp_ch4.adb (Expand_N_Type_Conversion): When expanding a predicate
4607 check, indicate that the copy of the original node does not come from
4608 source, to prevent an infinite recursion of the expansion.
4609
46102011-08-05 Johannes Kanig <kanig@adacore.com>
4611
4612 * debug.adb: document switch -gnatd.G for gnat2why, which deactivates
4613 VC generation for subprogram bodies.
4614
46152011-08-05 Yannick Moy <moy@adacore.com>
4616
4617 * einfo.ads: Typo.
4618 * sem_ch3.adb (Signed_Integer_Type_Declaration): in ALFA mode, define
4619 the base type with the smallest allowed base type.
4620
46212011-08-05 Sergey Rybin <rybin@adacore.com>
4622
4623 * tree_gen.adb, tree_in.adb, aspects.adb: Fix tree read-write for
4624 aspects.
4625
46262011-08-05 Ed Schonberg <schonberg@adacore.com>
4627
4628 * sem_ch12.ads: minor comment updates.
4629
46302011-08-05 Ed Schonberg <schonberg@adacore.com>
4631
4632 * sem_ch12.adb (Analyze_Formal_Package_Declaration): in an
4633 instantiation and a formal package the compiler generates a package
4634 renaming declaration so that the generic name within the declaration
4635 is interpreted as a renaming of the instance. At the end of a formal
4636 package declaration, this renaming must become invisible.
4637
0da80d7d
AC
46382011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
4639
4640 * exp_ch7.adb (Is_Init_Call): Reimplemented to avoid character
4641 comparison and rely on concrete entities instead.
4642
46432011-08-05 Ed Schonberg <schonberg@adacore.com>
4644
4645 * einfo.ads, einfo.adb (Has_Implicit_Dereference): new flag on types
4646 and discriminants, to indicate that the type has an access discriminant
4647 that supports implicit dereference.
4648 * snames.ads-tmpl: Add names of aspects and attributes related to
4649 Ada2012 iterators: constant_indexing, default_iterator,
4650 iterator_element, implicit_dereference, variable_indexing.
4651 * aspects.ads, aspects.adb: entries for iterator-related aspects.
4652 * sem_ch13.adb (Analyze_aspect_specifications): dummy entries for
4653 iterator-related aspects.
4654 * sem_attr.adb, exp_attr.adb Dummy entries for iterator-related aspects.
4655
46562011-08-05 Sergey Rybin <rybin@adacore.com>
4657
4658 * gnat_ugn.texi, vms_data.ads: Extend the subsection about coupling
4659 metrics in gnatmetric to cover new kinds of coupling mentrics.
4660
46612011-08-05 Steve Baird <baird@adacore.com>
4662
4663 * bindgen.adb (Gen_CodePeer_Wrapper): Call Ada_Main_Program instead
2c7f9cc0 4664 of calling the user-defined main subprogram.
0da80d7d
AC
4665 (Gen_Main): Declare Ada_Main_Program and (if CodePeer_Mode
4666 is set) Call_Main_Subprogram ahead of, as opposed to
4667 inside of, Main.
4668 (Gen_Output_File_Ada): Remove CodePeer_Mode-conditional
4669 generation of a "with" of the user-defined main subprogram.
4670 Remove CodePeer_Mode-conditional call to Gen_CodePeer_Wrapper
4671 (which is now called from Gen_Main instead).
4672
73242473
AC
46732011-08-05 Emmanuel Briot <briot@adacore.com>
4674
4675 * projects.texi: Added reference to the Makefile package.
4676
46772011-08-05 Thomas Quinot <quinot@adacore.com>
4678
4679 * exp_ch7.adb: Minor comment rewording.
4680
46812011-08-05 Ed Falis <falis@adacore.com>
4682
4683 * env.c: Fix comment.
4684
46852011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
4686
4687 * sem_elab.adb (Is_Finalization_Procedure): Reimplemented to avoid
4688 character comparison and rely on concrete entities instead.
4689
97ed5872
AC
46902011-08-05 Ed Schonberg <schonberg@adacore.com>
4691
4692 * sem_ch3.adb: (Check_Private_Overriding): better error message,
4693 suggested by AI95-0068.
4694
46952011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
4696
4697 * exp_ch7.adb (Find_Last_Init): Use Next_Suitable_Statement to retrieve
4698 the two potential initialization calls. This accounts for any
4699 access-before-elaboration checks which may precede the initialization
4700 calls.
4701 (Next_Suitable_Statement): New routine. Returns the next real statement
4702 after the input node while skipping generated checks.
4703 * sem_elab.adb (Check_A_Call): New formal parameter In_Init_Proc along
4704 with comment on usage.
4705 Do not generate Elaborate_All when the trigger is a finalization call
4706 coming from a type init proc.
4707 (Check_Elab_Call): Propagate the initialization procedure context to
4708 subsequent calls to Check_A_Call.
4709 (Check_Internal_Call_Continue): Propagate the initialization procedure
4710 context to subsequent calls to Check_Elab_Call.
4711 (Is_Finalization_Procedure): New routine. Returns True if the input
4712 entity denotes a [Deep_]Finalize routine.
4713 * sem_elab.ads (Check_Elab_Call): New formal parameter In_Init_Proc
4714 along with comment on usage.
4715
47162011-08-05 Vadim Godunko <godunko@adacore.com>
4717
4718 * s-atocou.ads: Add list of supported platforms.
4719
47202011-08-05 Yannick Moy <moy@adacore.com>
4721
4722 * sem_prag.adb, restrict.adb: Correct style for or'ing Boolean variables
4723
4724 * opt.ads (Disable_ALI_File): new Boolean flag
4725 * lib-writ.adb (Write_ALI): when Disable_ALI_File is set, do nothing
4726
47272011-08-05 Ed Falis <falis@adacore.com>
4728
4729 * env.c (__gnat_environ): Fix includes for RTPs and VTHREADS so that
4730 environ is properly defined.
4731
47322011-08-05 Vincent Celier <celier@adacore.com>
4733
4734 * make.adb (Compilation_Phase): Exit immediately when all objects have
4735 been found up to date, to avoid multiple exit messages.
4736 * prj-nmsc.adb (Add_Source): Allow duplicate source file names in the
4737 same project for languages with no compiler.
4738 * gnat_ugn.texi: Document compiler switch -gnateI and gnatmake switch
4739 -eI.
9aff36e9
RD
47402011-08-05 Robert Dewar <dewar@adacore.com>
4741
4742 * exp_ch7.ads, sem_type.adb, make.adb, sem_prag.adb, sem_util.adb,
4743 sem_util.ads, sem_attr.adb, restrict.ads, sem_ch6.adb, prj-conf.adb,
4744 prj-conf.ads, s-atocou.ads, s-atocou.adb, s-atocou-x86.adb,
4745 s-atocou-builtin.adb: Minor reformatting.
4746
406935b6
AC
47472011-08-05 Yannick Moy <moy@adacore.com>
4748
4749 * exp_ch7.adb (Establish_Transient_Scope): in formal verification mode,
4750 if the node to wrap is a pragma check, this node and enclosed
4751 expression are not expanded, so do not apply any transformations here.
4752 * exp_prag.adb (Expand_Pragma_Check): document the need to avoid
4753 introducing transient scopes.
4754
47552011-08-05 Jose Ruiz <ruiz@adacore.com>
4756
4757 * adaint.c (__gnat_set_writable, __gnat_set_readable,
4758 __gnat_set_executable, __gnat_set_non_writable, __gnat_set_non_readable,
4759 __gnat_copy_attribs): On VxWorks 6.x and later, the required chmod
4760 routine is available, so we use the default implementation of these
4761 functions.
4762 * s-os_lib.ads (Copy_File, Copy_Time_Stamps): Document that there is
4763 support for copying attributes on VxWorks 6.
4764
47652011-08-05 Yannick Moy <moy@adacore.com>
4766
4767 * debug.adb: Remove use of -gnatd.D.
4768 * gnat1drv.adb (Adjust_Global_Switches): adjust switches for ALFA mode
4769 * opt.ads: Simplify variables for ALFA mode, to keep one only
4770 * restrict.adb, sem_prag.adb: Adapt treatment done for CodePeer mode
4771 to ALFA mode.
4772
47732011-08-05 Vincent Celier <celier@adacore.com>
4774
4775 * prj-conf.adb (Do_Autoconf): Look also for --RTS in
4776 Builder'Default_Switches.
4777
47782011-08-05 Vincent Celier <celier@adacore.com>
4779
4780 * makeusg.adb: Add lines for --create-map-file switches.
4781
47822011-08-05 Ed Schonberg <schonberg@adacore.com>
4783
4784 * freeze.adb (Freeze_Entity): For a subprogram, if a type in the
4785 profile is incomplete and the full view is available, replace it with
4786 the full view.
4787 * sem_ch6.adb (Possible_Freeze): if a type in the profile is
4788 incomplete, freezing the subprogram is delayed until the full view is
4789 frozen.
4790 * sem_type.adb (Disambiguate): an ambiguity between a user-defined
4791 fixed-point multiplication operator and the predefined operator is
4792 resolved in favor of the user-defined one.
4793
96c891b3
RO
47942011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4795
4796 * init.c [__alpha__ && __osf__] (__gnat_error_handler): Use
4797 CONST_CAST.
4798
276e7ed0
AC
47992011-08-04 Ed Schonberg <schonberg@adacore.com>
4800
4801 * sem_util.ads, sem_unit.adb (Type_Without_Stream_Operation): determine
4802 whether a type lacks user-defined Read or Write operations, or has a
4803 component that lacks them.
4804 * sem_attr.adb (Check_Stream_Attribute): if restriction
4805 No_Default_Stream_Attributes is active, verify that all subcomponent
4806 types of the target have user-defined stream operations, and report
4807 error otherwise.
4808 * exp_ch3.adb (Stream_Operqtion_OK): use Type_Without_Stream_Operation.
4809 * exp_strm.adb: Build_Elementary_Input_Call,
4810 Build_Elementary_Write_Call): remove checks for restriction
4811 No_Default_Stream_Attributes, now checked in semantics.
4812
48132011-08-04 Vincent Celier <celier@adacore.com>
4814
4815 * prj-conf.ads, prj-conf.adb (Do_Autoconf): If there is no --RTS
4816 switches on the command line, look for all valid --RTS switches in the
4817 Builder switches and for each language use the first runtime name found
4818 to invoke gprconfig.
4819 (Get_Or_Create_Configuration_File): Warn if --RTS is specified on the
4820 command line and there is no auto-configuration.
4821 (Runtime_Name_Set_For): New function.
4822
48232011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
4824
4825 * exp_ch7.adb (Build_Object_Declarations): Do not generate the
4826 elaborate initialization expression for variable Abort when processing
4827 a package body or a declaration.
4828 (Create_Finalizer): Propagate the package context when creating the
4829 exception-related variables.
4830 * exp_ch7.ads (Build_Object_Declarations): New formal parameter
4831 For_Package along with usage comment.
4832
19172ae9
AC
48332011-08-04 Arnaud Charlet <charlet@adacore.com>
4834
4835 * gcc-interface/Makefile.in: Clean up targets.
4836 Enable new package for atomic counters and copy-on-write implementation
4837 of unbounded strings on x86 platforms.
4838 * gcc-interface/Make-lang.in: Update dependencies.
4839
0319cacc
AC
48402011-08-04 Robert Dewar <dewar@adacore.com>
4841
4842 * exp_ch7.adb: Minor reformatting.
4843
48442011-08-04 Robert Dewar <dewar@adacore.com>
4845
4846 * exp_strm.adb: Minor reformatting.
4847
48482011-08-04 Vadim Godunko <godunko@adacore.com>
4849
4850 * s-atocou.adb: Replace by dummy version and use on targets where atomic
4851 operations are not supported.
4852 * s-atocou-builtin.adb: Renamed from s-atocou.adb.
4853 * s-atocou-x86.adb: New file.
4854 * Makefile.rtl: Add s-atocou.o file
4855
48562011-08-04 Arnaud Charlet <charlet@adacore.com>
4857
4858 * make.adb (Compile): Move setting of CodePeer_Mode to ...
4859 (Compilation_Phase): ... here.
4860 (Scan_Make_Arg): Now bind and link by default in CodePeer mode.
4861
48622011-08-04 Thomas Quinot <quinot@adacore.com>
4863
4864 * Make-generated.in: Fix minor typo in comment.
4865
26e7e1a0
AC
48662011-08-04 Thomas Quinot <quinot@adacore.com>
4867
4868 * gnatls.adb: Use Prj.Env.Initialize_Default_Project_Path to retrieve
4869 the project path.
4870
48712011-08-04 Robert Dewar <dewar@adacore.com>
4872
4873 * a-coinho.adb: Minor reformatting.
4874
48752011-08-04 Robert Dewar <dewar@adacore.com>
4876
4877 * a-coinho.ads: Minor reformatting.
4878
48792011-08-04 Vadim Godunko <godunko@adacore.com>
4880
4881 * s-atocou.ads, s-atocou.adb: New files.
4882 * a-strunb-shared.ads, a-strunb-shared.adb, a-stwiun-shared.ads,
4883 a-stwiun-shared.adb, a-stzunb-shared.ads, a-stzunb-shared.adb: Remove
4884 direct use of GCC's atomic builtins and replace them by use of new
4885 atomic counter package.
4886
48872011-08-04 Ed Schonberg <schonberg@adacore.com>
4888
4889 * exp_strm.adb: better error message for No_Default_Stream_Attributes.
4890
48912011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
4892
4893 * a-tags.adb (Unregister_Tag): Replace the complex address arithmetic
4894 with a call to Get_External_Tag.
4895 * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on
4896 subprogram usage. Remove the guard against package declarations and
4897 bodies since Build_Cleanup_Statements is no longer invoked in that
4898 context.
4899 (Build_Components): Initialize Tagged_Type_Stmts when the context
4900 contains at least one library-level tagged type.
4901 (Build_Finalizer): New local variables Has_Tagged_Types and
4902 Tagged_Type_Stmts along with associated comments on usage. Update the
4903 logic to include tagged type processing.
4904 (Create_Finalizer): Insert all library-level tagged type unregistration
4905 code before the jump block circuitry.
4906 (Expand_N_Package_Body): Remove the call to Build_Cleanup_Statements.
4907 (Expand_N_Package_Declaration): Remove the call to
4908 Build_Cleanup_Statements.
4909 (Process_Tagged_Type_Declaration): New routine. Generate a call to
4910 unregister the external tag of a tagged type.
4911 (Processing_Actions): Reimplemented to handle tagged types.
4912 (Process_Declarations): Detect the declaration of a library-level
4913 tagged type and carry out the appropriate actions.
4914 (Unregister_Tagged_Types): Removed. The machinery has been directly
4915 merged with Build_Finalizer.
4916
7483c888
AC
49172011-08-04 Robert Dewar <dewar@adacore.com>
4918
4919 * bindgen.ads, gnatlink.adb, sem_ch4.adb, gnatbind.adb, put_alfa.adb,
4920 gnatls.adb, exp_ch3.adb: Minor reformatting.
4921
49222011-08-04 Marc Sango <sango@adacore.com>
4923
4924 * sem_attr.adb (Analyze_Attribute): Replace the message
4925 "invisible attribute of}" of the spark restriction violation in
4926 attribute reference by the simple message "invisible attribute of type".
4927 Indeed, the node value Error_Msg_Node_1 used is in conflit with the
4928 two insertion characters: '&' and '}'.
4929
49302011-08-04 Vadim Godunko <godunko@adacore.com>
4931
4932 * impunit.adb (Non_Imp_File_Names_12): Add "a-coinho".
4933 * a-coinho.ads, a-coinho.adb: New file.
4934 * Makefile.rtl: Add Ada.Containers.Indefinite_Holders.
4935
5207696c
AC
49362011-08-04 Nicolas Roche <roche@adacore.com>
4937
4938 * alfa_test.adb: Not all ali files are containing alfa information even
4939 if compiled with -gnatd.F. So suppress warning about missing ALFA
4940 information.
4941
49422011-08-04 Yannick Moy <moy@adacore.com>
4943
4944 * lib-xref-alfa.adb (Add_ALFA_Scope): use non-empty unique name for
4945 scope.
4946 * put_alfa.adb: Check that scope name is not empty.
4947
49482011-08-04 Ed Schonberg <schonberg@adacore.com>
4949
4950 * exp_ch3.adb (Stream_Operation_Ok): new predicate
4951 Needs_Elementary_Stream_Operation, to determine whether user-defined
4952 Read and Write attributes are available for the elementary components
4953 of the given type. If only the predefined attributes are available,
4954 then when restriction No_Default_Stream_Attributes is active the
4955 predefined stream attributes for the composite type cannot be created.
4956
49572011-08-04 Robert Dewar <dewar@adacore.com>
4958
4959 * bindgen.adb: Fix obsolete comments and names from Ada/C days.
4960 Put routines in alpha order
4961
2bd2d858
JR
49622011-08-04 Jose Ruiz <ruiz@adacore.com>
4963
4964 * gcc-interface/Makefile.in: Remove xenomai specific versions of system.
4965 * gcc-interface/Make-lang.in: Update dependencies.
4966
8fae6016
AC
49672011-08-04 Arnaud Charlet <charlet@adacore.com>
4968
4969 * gcc-interface/lang.opt: Add AdaWhy language, simimlar to Ada.
4970 * gcc-interface/lang-specs.h: Add handling of AdaWhy specs (calls
4971 gnat1why).
4972
a54d0eb4
AC
49732011-08-04 Robert Dewar <dewar@adacore.com>
4974
4975 * sem_ch3.adb, make.adb, a-cohata.ads, sem_prag.adb, makeutl.adb,
4976 lib-xref-alfa.adb: Minor reformatting.
4977
49782011-08-04 Marc Sango <sango@adacore.com>
4979
4980 * sem_ch12.adb (Analyze_Generic_Package_Declaration,
4981 Analyze_Generic_Subprogram_Declaration, Analyze_Package_Instantiation,
4982 Analyze_Subprogram_Instantiation): Check absence of generic in SPARK
4983 mode.
4984
49852011-08-04 Tristan Gingold <gingold@adacore.com>
4986
4987 * bindgen.adb (Gen_Adainit_C): Remove.
4988 (Gen_Adafinal_C): Ditto.
4989 (Gen_Elab_Externals_C): Ditto.
4990 (Gen_Elab_Calls_C): Ditto.
4991 (Gen_Elab_Order_C): Ditto.
4992 (Gen_Elab_Defs_C): Ditto.
4993 (Gen_Finalize_Library_C): Ditto.
4994 (Gen_Finalize_Library_Defs_C): Ditto.
4995 (Gen_Main_C): Ditto.
4996 (Gen_Output_File_C): Ditto.
4997 (Gen_Restrictions_C): Ditto.
4998 (Gen_Versions_C): Ditto.
4999 (Write_Info_Ada_C): Ditto.
5000 (Gen_Object_Files_Options): Call WBI instead of Write_Info_Ada_C
5001 (Gen_Output_File): Do not force Ada_Bind_File anymore.
5002 Always call Gen_Output_File_Ada.
5003 * gnatlink.adb (Begin_Info): Now a constant.
5004 (End_Info): Ditto.
5005 (Ada_Bind_File): Remove
5006 (Process_Args): Do not handle -A/-C. Remove not Ada_Bind_File cases.
5007 * switch-b.adb (Scan_Binder_Switches): Do not handle -C.
5008 * gnatbind.adb (Gnatbind): Remove not Ada_Bind_File cases.
5009 * opt.ads (Ada_Bind_File): Remove.
5010
50112011-08-04 Thomas Quinot <quinot@adacore.com>
5012
5013 * projects.texi: Document target-specific directory in default project
5014 path for gnatmake.
5015
50162011-08-04 Thomas Quinot <quinot@adacore.com>
5017
5018 * gnatls.adb, prj-env.adb: Add $prefix/share/gpr to default project
5019 path in all cases .
5020
24558db8
AC
50212011-08-04 Yannick Moy <moy@adacore.com>
5022
5023 * sem_ch3.adb, sem_ch5.adb, sem_util.adb, sem_ch4.adb, sem_ch8.adb,
5024 opt.ads, lib-xref.ads: Code clean up.
5025
50262011-08-04 Yannick Moy <moy@adacore.com>
5027
5028 * gnat_rm.texi: Update description of Test_Case
5029 * gnat_ugn.texi: Typo.
5030
50312011-08-04 Ed Falis <falis@adacore.com>
5032
5033 * adaint.c (__gnat_get_number_of_cpus): fix typo in last checkin.
5034
50352011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5036
5037 * exp_ch4.adb (Suitable_Element): Skip field _parent on .NET/JVM when
5038 it is of type Root_Controlled. This action eliminates fields Prev and
5039 Next from type equality.
5040
50412011-08-04 Yannick Moy <moy@adacore.com>
5042
5043 * lib-xref-alfa.adb: Correct typo.
5044
50452011-08-04 Matthew Heaney <heaney@adacore.com>
5046
5047 * a-cohata.ads (Hash_Table_Type): default-initialize the Nodes
5048 component.
5049
1f9939b5
AC
50502011-08-04 Yannick Moy <moy@adacore.com>
5051
5052 * sem_prag.adb (Check_Arg_Is_String_Literal): remove useless procedure
5053 (Analyze_Pragma): allow static string expression for name of Test_Case,
5054 instead of simply string literals.
5055 * sem_util.adb (Get_Name_From_Test_Case_Pragma): adapt to static string
5056 expressions.
5057
50582011-08-04 Vincent Celier <celier@adacore.com>
5059
5060 * makeutl.adb (Complete_Mains.Find_File_Add_Extension): Use canonical
5061 case suffixes to find truncated main sources.
5062
50632011-08-04 Tristan Gingold <gingold@adacore.com>
5064
5065 * impunit.adb (Non_Imp_File_Names_95): Add g-tastus.
5066 s-stusta.adb (Compute_All_Task): Use Put_Line instead of Put.
5067 (Compute_Current_Task): Ditto.
5068
50692011-08-04 Tristan Gingold <gingold@adacore.com>
5070
5071 * gnat_ugn.texi: Mention GNAT.Task_Stack_Usage.
5072
50732011-08-04 Yannick Moy <moy@adacore.com>
5074
5075 * lib-xref-alfa.adb (Is_Global_Constant): new function that detects
5076 library-level constant.
5077 (Add_ALFA_Xrefs): ignore global constants in ALFA xref.
5078 * sem_res.adb (Resolve_Actuals): do not add cross-reference to Formal
5079 used as selector of parameter association, in ALFA mode.
5080
15d8a51d
AC
50812011-08-04 Robert Dewar <dewar@adacore.com>
5082
5083 * exp_ch5.adb, exp_ch7.adb, exp_util.adb, bindgen.adb, sem_prag.adb,
5084 s-tassta.adb, exp_ch4.adb, exp_disp.adb, s-stausa.adb: Minor
5085 reformatting.
5086
50872011-08-04 Arnaud Charlet <charlet@adacore.com>
5088
5089 * make.adb (Linking_Phase): Set source search path before calling
5090 gnatlink in CodePeer mode.
5091
f46faa08
AC
50922011-08-04 Javier Miranda <miranda@adacore.com>
5093
5094 * exp_ch7.adb (Expand_N_Package_Body, Expand_N_Package_Declaration):
5095 Remove code which takes care of building TSDs.
5096 * rtsfind.ads (RE_Check_Interface_Conversion): New entity.
5097 * exp_ch4.adb (Apply_Accessibility_Check): Add support for generating
5098 the accessibility check in VM targets.
5099 * exp_disp.adb (Make_VM_TSD): Spec moved to exp_disp.ads
5100 (Building_Static_DT): Now returns false for VM targets.
5101 (Build_VM_TSDs): Removed.
5102 (Expand_Interface_Conversion): Generate missing runtime check for
5103 conversions to interface types whose target type is unknown at compile
5104 time.
5105 (Make_VM_TSD): Add missing code to disable the generation of calls to
5106 Check_TSD if the tagged type is not defined at library level, or not
5107 has a representation clause specifying its external tag, or -gnatdQ is
5108 active.
5109 * exp_disp.ads (Build_VM_TSDs): Removed.
5110 (Make_VM_TSDs): Spec relocated from exp_disp.adb
5111 * sem_disp.adb (Check_Dispatching_Operation): No code required to
5112 register primitives in the dispatch tables in VM targets.
5113 * exp_ch3.adb (Expand_N_Object_Declaration): Remove wrong expansion of
5114 initialization of class-wide interface objects in VM targets.
5115 (Expand_Freeze_Record_Type): For VM targets call Make_VM_TSD (instead
5116 of Make_DT).
5117
51182011-08-04 Jerome Lambourg <lambourg@adacore.com>
5119
5120 * gnatlink.adb (Gnatlink): Correct missleading error message displayed
5121 when dotnet-ld cannot be found.
5122
51232011-08-04 Arnaud Charlet <charlet@adacore.com>
5124
5125 * bindgen.adb: Simplify significantly generation of binder body file in
5126 CodePeer mode.
5127 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Prevent assert failure
5128 when compiling binder generated file in CodePeer mode (xxx'Elab_Spec
5129 not expanded).
5130
2ba7e31e
AC
51312011-08-04 Yannick Moy <moy@adacore.com>
5132
5133 * sem_prag.adb, sem.ads: Code cleanup.
5134
51352011-08-04 Tristan Gingold <gingold@adacore.com>
5136
5137 * s-tassta.adb (Task_Wrapper): Rewrite the dynamic stack usage part.
5138 * s-stausa.adb, s-stausa.ads: Major rewrite. Now provides accurate
5139 results if possible.
5140 * s-stusta.adb (Print): Adjust after changes in s-stausa.
5141 * gnat_ugn.texi: Update dynamic stack usage section.
5142
51432011-08-04 Steve Baird <baird@adacore.com>
5144
5145 * bindgen.adb (Gen_CodePeer_Wrapper): new procedure.
5146 Generate (if CodePeer_Mode is set) a "wrapper" subprogram which
5147 contains only a call to the user-defined main subprogram.
5148 (Gen_Main_Ada) - If CodePeer_Mode is set, then
5149 call the "wrapper" subprogram instead of directly
5150 calling the user-defined main subprogram.
5151
51522011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5153
5154 * exp_ch5.adb (Expand_N_Case_Statement): Check the statements of all
5155 alternatives of a case statement for controlled objects. Rename local
5156 variable A to Dead_Alt.
5157 (Expand_N_If_Statement): Check the then and else statements of an if
5158 statement for controlled objects. Check the then statements of all
5159 elsif parts of an if statement for controlled objects.
5160 (Expand_N_Loop_Statement): Check the statements of a loop for controlled
5161 objects.
5162 * exp_ch7.adb (Process_Transient_Objects): Rewrite the condition which
5163 detects a loop associated with the expansion of an array object.
5164 Augment the processing of the loop statements to account for a possible
5165 wrap done by Process_Statements_For_Controlled_Objects.
5166 * exp_ch9.adb (Expand_N_Asynchronous_Select): Check the triggering
5167 statements and abortable part of an asynchronous select for controlled
5168 objects.
5169 (Expand_N_Conditional_Entry_Call): Check the else statements of a
5170 conditional entry call for controlled objects.
5171 (Expand_N_Selective_Accept): Check the alternatives of a selective
5172 accept for controlled objects.
5173 (Expand_N_Timed_Entry_Call): Check the entry call and delay
5174 alternatives of a timed entry call for controlled objects.
5175 * exp_ch11.adb (Expand_Exception_Handlers): Check the statements of an
5176 exception handler for controlled objects.
5177 * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)):
5178 Add formal parameter Nested_Constructs along with its associated
5179 comment.
5180 (Requires_Cleanup_Actions (Node_Id)): Update all calls to
5181 Requires_Cleanup_Actions.
5182 (Process_Statements_For_Controlled_Objects): New routine.
5183 * exp_util.ads (Process_Statements_For_Controlled_Objects): New
5184 routine. Inspect a node which contains a non-handled sequence of
5185 statements for controlled objects. If such an object is found, the
5186 statements are wrapped in a block.
5187
1bf773bb
AC
51882011-08-04 Bob Duff <duff@adacore.com>
5189
5190 * sem_type.adb (Covers): If T2 is a subtype of a class-wide type, we
5191 need to compare with Class_Wide_Type (T2), in order to get at the
5192 original class-wide type node.
5193 * sem_type.ads (Covers): Improve the comment.
5194 * einfo.ads (Class_Wide_Type): Improve the comment.
5195 * exp_intr.adb (Expand_Unc_Deallocation): Remove unnecessary setting of
5196 the type of the Deref.
5197
51982011-08-04 Yannick Moy <moy@adacore.com>
5199
5200 * gnat_rm.texi: Document that Test_Case pragma can only appear on
5201 separate declarations.
5202 * sem_prag.adb (procedure Check_Identifier_Is_One_Of): new procedure to
5203 check identifier of pragma argument.
5204 (Chain_TC): check that no other test case associated to the same entity
5205 share the same name.
5206 (Check_Test_Case): disallow test case inside subprogram body
5207 (Analyze_Pragma): correct call to check identifier and not argument
5208 * sem_util.adb, sem_util.ads (Get_Name_From_Test_Case_Pragma): new
5209 function gets name from test case pragma.
5210
dac3bede
YM
52112011-08-04 Yannick Moy <moy@adacore.com>
5212
5213 * gnat_rm.texi: Document new pragma and aspect.
5214 * aspects.adb, aspects.ads (Aspect_Id): new value Aspect_Test_Case
5215 (No_Duplicates_Allowed): new constant array defining whether duplicates
5216 aspects of each kind can appear on the same declaration.
5217 * einfo.adb, einfo.ads (Spec_PPC_List): replace field with Contract
5218 field, which points to a node holding the previous Spec_PPC_List.
5219 * exp_ch9.adb, sem_ch6.adb, sem_prag.adb: Reach to Spec_PPC_List
5220 through the indirection with Contract.
5221 * exp_util.adb (Insert_Actions): raise Program_Error on N_Contract node
5222 * par-prag.adb (Prag): do nothing on Test_Case pragma
5223 * sem.adb (Analyze): abort on N_Contract, on which Analyze should not
5224 be called directly.
5225 * sem_attr.adb (Analyze_Attribute): allow attribute 'Result in
5226 component Ensures of Test_Case.
5227 * sem_ch12.adb, sem_ch6.adb, sem_ch9.adb
5228 (Analyze_Generic_Subprogram_Declaration,
5229 Analyze_Subprogram_Instantiation,
5230 Analyze_Abstract_Subprogram_Declaration,
5231 Analyze_Subprogram_Body_Helper,
5232 Analyze_Subprogram_Specification, Analyze_Entry_Declaration):
5233 insert contract in subprogram node at point of definition
5234 * sem_ch13.adb
5235 (Aspect_Loop): do not raise error on duplicate Test_Case aspect
5236 (Analyze_Aspect_Specifications): analyze Test_Case aspect and create
5237 corresponding pragma
5238 (Check_Aspect_At_Freeze_Point): raise Program_Error on Test_Case aspect
5239 * sem_ch3.adb (Analyze_Declarations): insert analysis of test-cases,
5240 similar to the analysis of pre/post
5241 (Derive_Subprogram): insert contract in subprogram node at point of
5242 derivation.
5243 * sem_prag.adb, sem_prag.ads
5244 (Check_Arg_Is_String_Literal, Check_Identifier):
5245 new checking procedures to be called in treatment of pragmas
5246 (Check_Test_Case): new procedure to check that a Test_Case aspect or
5247 pragma is well-formed. This does not check currently that 'Result is
5248 used only in the Ensures component of a Test_Case.
5249 (Analyze_Pragma): add case for Test_Case
5250 (Analyze_TC_In_Decl_Part): pre-analyze the Requires and Ensures
5251 components of a Test_Case.
5252 (Preanalyze_TC_Args): new procedure to preanalyze the boolean
5253 expressions in the 3rd (and 4th if present) arguments of a Test_Case
5254 pragma, treated as spec expressions.
5255 (Sig_Flags): add value -1 for Test_Case.
5256 * sem_util.adb, sem_util.ads (Get_Ensures_From_Test_Case_Pragma,
5257 Get_Requires_From_Test_Case_Pragma): getters for both expression
5258 components of a Test_Case.
5259 * sinfo.adb, sinfo.ads (N_Contract): new kind of node used as
5260 indirection between an entry or [generic] subprogram entity and its
5261 pre/post + test-cases.
5262 (Spec_PPC_List, Spec_TC_List, Set_Spec_PPC_List, Set_Spec_TC_List):
5263 get/set for fields of an N_Contract node.
5264 * snames.ads-tmpl (Name_Test_Case, Name_Ensures, Name_Mode,
5265 Name_Normal, Name_Requires, Name_Robustness, Pragma_Test_Case): new
5266 names and pragma for Test_Case.
5267 * sprint.adb (Sprint_Node): raise Program_Error on N_Contract node
5268
6a2e5d0f
AC
52692011-08-04 Vincent Celier <celier@adacore.com>
5270
5271 * gnat_ugn.texi: Improve documentation of gnatmake switch
5272 --source-info-file=.
5273
52742011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5275
5276 * exp_ch7.adb (Make_Final_Call): Add local variable Atyp (assertion
5277 type). Initialize Atyp to the appropriate type which is later checked
5278 for completion. Rewrite the assertion associated with private type
5279 completion.
5280
52812011-08-04 Ed Falis <falis@adacore.com>
5282
5283 * adaint.c: Add call to vxCpuConfiguredGet for VxWorks SMP to
5284 initialize the number of CPUs.
5285
52862011-08-04 Ed Schonberg <schonberg@adacore.com>
5287
5288 * sem_type.adb (Disambiguate): New subsidiary routine
5289 In_Same_Declaration_List, to implement AI05-0020: a user-defined
5290 equality on an anonymous access type whose designated type is private
5291 does not lead to an ambiguity with the universal access equality
5292 operator in the body or child units of the defining package. The same
5293 is true for a multiplication operator on a private type completed with
5294 a fixed-point-type.
5295
52962011-08-04 Javier Miranda <miranda@adacore.com>
5297
5298 * opt.ads (Init_Or_Norm_Scalars_Config): Removed.
5299 (Normalize_Scalars_Config): Removed.
5300 * opt.adb
5301 (Register_Opt_Config_Switches): Remove registering config values of
5302 Init_Or_Norm_Scalars_Config and Normalize_Scalars_Config.
5303 (Restore_Opt_Config_Switches): Remove code which restores the values of
5304 Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of
5305 Init_Or_Norm_Scalars.
5306 (Save_Opt_Config_Switches): Remove code which saves values of
5307 Init_Or_Norm_Scalars and Normalize_Scalars.
5308 (Set_Opt_Config_Switches): Remove code which restores config values of
5309 Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of
5310 Init_Or_Norm_Scalars.
5311
53122011-08-04 Yannick Moy <moy@adacore.com>
5313
5314 * frontend.adb (Frontend): remove previous patch to avoid full
5315 qualification in ALFA mode.
5316 * lib-xref-alfa.adb (Add_ALFA_Xrefs): use unique name for variables.
5317 * sem_util.adb, sem_util.ads (Unique_Name): new function to define a
5318 unique name for an entity, which could be used to identify the entity
5319 across compilation units.
5320
53212011-08-04 Thomas Quinot <quinot@adacore.com>
5322
5323 * prj-env.adb
5324 (Initialize_Default_Project_Path): Add target specific directory
5325 ($prefix/$target/lib/gnat) in front of project path in all cases
5326 (making gnatmake's behaviour consistent with gprbuild).
5327 * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb:
5328 Pass target name from Sdefault to project subsystem.
5329 * gnatls.adb: Show new target specific default project directory.
5330
53312011-08-04 Johannes Kanig <kanig@adacore.com>
5332
5333 * cstand.adb: Add Information to Identifier in Standard
5334 (Identifer_For): Set Entity to the corresponding entity
5335
483361a6
AC
53362011-08-04 Sergey Rybin <rybin@adacore.com>
5337
5338 * gnat_ugn.texi: Update doc on gnatcheck.
5339
53402011-08-04 Yannick Moy <moy@adacore.com>
5341
5342 * lib-xref-alfa.adb (Add_ALFA_Xrefs): correct definition of ranges of
5343 xrefs in a scope.
5344
53452011-08-04 Yannick Moy <moy@adacore.com>
5346
5347 * exp_prag.adb (Expand_Pragma_Check): in ALFA mode, return without
5348 performing expansion.
5349 * sem_ch6.adb (Analyze_Subprogram_Body_Helper,
5350 Analyze_Generic_Subprogram_Body): protect call to Process_PCCs so that
5351 it is not called in ALFA mode.
5352
ef5569c6
AC
53532011-08-04 Emmanuel Briot <briot@adacore.com>
5354
5355 * make.adb, osint.adb, osint.ads (Reset_Command_Line_Files): not used
5356 after all, so removed.
5357
53582011-08-04 Sergey Rybin <rybin@adacore.com>
5359
5360 * vms_data.ads: Add missing VMS qualifiers.
5361
1ab4a286
EB
53622011-08-04 Emmanuel Briot <briot@adacore.com>
5363
5364 * make.adb, makeutl.adb, osint.adb, osint.ads (Check_Mains): rebuild
5365 the list of files on the command line after processing it through
5366 Complete_Mains.
5367
7ae0d98c
AC
53682011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5369
5370 * exp_ch7.adb (Build_Raise_Statement): Remove the specialized
5371 processing for .NET/JVM. These targets can now benefit from
5372 Raise_From_Controlled_Operation and they share the same processing with
5373 standard targets.
5374 (Establish_Transient_Scope): Remove the restriction for .NET/JVM.
5375 These targets need transient scopes in order to properly finalize short
5376 lived controlled objects.
5377 (Make_Handler_For_Ctrl_Operation): Remove the specialized processing for
5378 NET/JVM. These targets can now benefit from
5379 Raise_From_Controlled_Operation and they share the same processing with
5380 standard targets.
5381
53822011-08-04 Geert Bosch <bosch@adacore.com>
5383
5384 * tracebak.c (STOP_FRAME): Stop at any next pointer outside the stack
5385
53862011-08-04 Ed Schonberg <schonberg@adacore.com>
5387
5388 * exp_aggr.adb (Has_Visible_Private_Ancestor): subsidiary routine to
5389 Expand_Record_Aggregate, to determine whether aggregate must be
5390 expanded into assignments. This is the case if the ancestor part is
5391 private, regarless of the setting of the flag Has_Private_Ancestor.
5392
53932011-08-04 Ed Falis <falis@adacore.com>
5394
5395 * vxaddr2line.adb: Add support for e500v2 and for Linux hosts
5396
53972011-08-04 Bob Duff <duff@adacore.com>
5398
5399 * sinfo.ads: Fix comment.
5400
54012011-08-04 Steve Baird <baird@adacore.com>
5402
5403 * bindgen.adb (Get_Ada_Main_Name): If CodePeer_Mode is set, then
5404 choose a package name in much the same way as is
5405 done for JGNAT when VM_Target /= No_VM, except that
5406 a slightly more distinctive prefix string is used.
5407
54082011-08-04 Emmanuel Briot <briot@adacore.com>
5409
5410 * makeutl.adb (Complete_Mains): no longer accept unit names on the
5411 gnatmake command line.
5412 This behavior was never documented (and was supported only because of
5413 an early bug in the code). This case might lead to ambiguous cases
5414 (between unit names and truncated base names without suffixes).
5415
87729e5a
AC
54162011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5417
5418 * a-tags.ads, a-tags.adb (Unregister_Tag): New routine.
5419 Remove the external tag of a tagged type from the internal hash table.
5420 * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on the
5421 expanded usage of the routine. Strenghten the check for Is_Master. Add
5422 processing for tagged types.
5423 (Build_Finalizer): Create all the necessary lists used in finalizer
5424 creation when the processed context is a package that may contain
5425 tagged types.
5426 (Expand_Cleanup_Actions): Rename the call to Has_Controlled_Objects to
5427 Requires_Cleanup_Actions.
5428 (Expand_N_Package_Body): Package bodies may need clean up code
5429 depending on whether they contain tagged types.
5430 (Expand_N_Package_Declaration): Package declarations may need clean up
5431 code depending on whether they contain tagged types.
5432 (Unregister_Tagged_Types): New routine. Search through a list of
5433 declarations or statements, looking for non-abstract Ada tagged types.
5434 For each such type, generate code to unregister the external tag.
5435 * exp_util.adb (Has_Controlled_Objects (Node_Id)): Renamed to
5436 Requires_Cleanup_Actions.
5437 (Requires_Cleanup_Actions (List_Id, Boolean)): New routine. Search
5438 through a list of declarations or statements looking for non-abstract
5439 Ada tagged types or controlled objects.
5440 * exp_util.ads (Has_Controlled_Objects (Node_Id)): Renamed to
5441 Requires_Cleanup_Actions.
5442 (Has_Controlled_Objects (List_Id, Boolean)): Removed.
5443 * rtsfind.ads: Add entry RE_Unregister_Tag to tables RE_Id and
5444 RE_Unit_Table.
5445
54462011-08-04 Vincent Celier <celier@adacore.com>
5447
5448 * prj-env.adb (For_All_Source_Dirs.For_Project): Check if project Prj
5449 has Ada sources, not project Project, because if the root project
5450 Project has no sources of its own, all projects will be deemed without
5451 sources.
5452
54532011-08-04 Gary Dismukes <dismukes@adacore.com>
5454
5455 * bindgen.adb (Gen_Adainit_Ada): Move the generation of the declaration
5456 of the No_Param_Proc acc-to-subp type used for initialization of
5457 __gnat_finalize_library_objects so that it's declared at library level
5458 rather than nested inside of the adainit routine.
5459
54602011-08-04 Javier Miranda <miranda@adacore.com>
5461
5462 * exp_disp.adb (Make_DT): Generate code to check the external tag ONLY
5463 if the tagged type has a representation clause which specifies its
5464 external tag.
5465
54662011-08-04 Ed Schonberg <schonberg@adacore.com>
5467
5468 * einfo.ads, einfo.adb (Has_Private_Ancestor): now a flag on types.
5469 Remove previous procedure with that name.
5470 * sem_ch3.adb (Build_Derived_Record_Type): set Has_Private_Ancestor
5471 when appropriate.
5472 * sem_aggr.adb (Resolve_Extension_Aggregate): if the ancestor part is a
5473 subtype mark, the ancestor cannot have unknown discriminants.
5474 (Resolve_Record_Aggregate): if the type has invisible components
5475 because of a private ancestor, the aggregate is illegal.
5476
54772011-08-04 Vincent Celier <celier@adacore.com>
5478
5479 * switch-m.adb (Normalize_Compiler_Switches): Recognize and take into
5480 account switches -gnat2005, -gnat12 and -gnat2012.
5481
54822011-08-04 Bob Duff <duff@adacore.com>
5483
5484 * s-tasdeb.ads: Minor comment fix.
5485
54862011-08-04 Arnaud Charlet <charlet@adacore.com>
5487
5488 * gnatlink.adb (Gnatlink): Pass -gnat83/95/05/12 switch to gcc in
5489 CodePeer mode.
5490 * switch.ads, switch.adb (Is_Language_Switch): New function.
5491
54922011-08-04 Vincent Celier <celier@adacore.com>
5493
5494 * switch-c.adb: Minor comment addition.
5495
54962011-08-04 Vincent Celier <celier@adacore.com>
5497
5498 * vms_conv.adb (Process_Argument): Fail graciously when qualifier
5499 ending with '=' is followed by a space (missing file name).
5500
55012011-08-04 Pascal Obry <obry@adacore.com>
5502
5503 * g-regist.ads: Fix size of HKEY on x86_64-windows.
5504
55052011-08-04 Ed Schonberg <schonberg@adacore.com>
5506
5507 * sem_ch12.adb (Analyze_Associations): New routine
5508 Check_Overloaded_Formal_Subprogram to reject a formal package when
5509 there is a named association or a box initialisation for an overloaded
5510 formal subprogram of the corresponding generic.
5511
55122011-08-04 Yannick Moy <moy@adacore.com>
5513
5514 * alfa.ads (ALFA_Xref_Record): add component for type of entity
5515 * get_alfa.adb, put_alfa.adb: Read and write new component of
5516 cross-reference.
5517 * lib-xref-alfa.adb (Collect_ALFA): generate new component.
5518
88f47280
AC
55192011-08-04 Pascal Obry <obry@adacore.com>
5520
5521 * urealp.adb: Minor reformatting.
5522
55232011-08-04 Tristan Gingold <gingold@adacore.com>
5524
5525 * exp_ch7.adb (build_finalizer.process_declarations.processing_actions):
5526 Handle the case when Cleanup_Protected_Object returns Empty.
5527
55282011-08-04 Yannick Moy <moy@adacore.com>
5529
5530 * frontend.adb (Frontend): only qualify names in non-ALFA mode
5531
55322011-08-04 Ed Schonberg <schonberg@adacore.com>
5533
5534 * sem_ch4.adb (Try_Class_Wide_Operation): if the context is a procedure
5535 call, ignore functions.
5536
05c53a69
GB
55372011-08-04 Geert Bosch <bosch@adacore.com>
5538
5539 * urealp.adb (Equivalent_Decimal_Exponent): Avoid the use of floating
5540 point.
5541
23cc1ace
EB
55422011-08-04 Emmanuel Briot <briot@adacore.com>
5543
5544 * makeutl.adb (Compute_Builder_Switches): no longer accept a unit name
5545 as an index for Builder'Switches. This conforms to the documentation.
5546 * make.adb (Insert_Project_Sources): avoid duplicate code
5547
cef14201
AC
55482011-08-04 Emmanuel Briot <briot@adacore.com>
5549
5550 * makeutl.adb (Complete_Mains): if the user has passed a relative file
5551 name on the command line (for instance "../dummy"), never assume it can
5552 be a unit name.
5553
55542011-08-04 Tristan Gingold <gingold@adacore.com>
5555
5556 * bindgen.adb: Remove code the reference or create the
5557 Break_Start/__gnat_break_start procedure.
5558 * s-stalib.adb (Break_Start): Removed.
5559
e2fee30d
EB
55602011-08-04 Emmanuel Briot <briot@adacore.com>
5561
5562 * make.adb, makeutl.adb, makeutl.ads (Compute_Builder_Switches): now
5563 shared with gprbuild.
5564
2d395256
AC
55652011-08-04 Yannick Moy <moy@adacore.com>
5566
5567 * par-ch4.adb (P_Primary): preferentially issue an error message about
5568 a missing parenthesis arount a conditional or case expression in Ada
5569 2012 mode, if we detect that the alignment is not correct for a
5570 statement.
5571
55722011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5573
5574 * exp_ch7.adb (Process_Declarations): Do not consider the result of a
5575 tag-to-class-wide conversion as needing finalization actions.
5576 * exp_util.adb (Has_Controlled_Objects): Do not consider the result of
5577 a tag-to-class-wide conversion as needing finalization actions.
5578 (Is_Finalizable_Transient): The result of a tag-to-class-wide
5579 conversion does not need finalization actions.
5580 (Is_Tag_To_CW_Conversion): New routine.
5581 * exp_util.ads (Is_Tag_To_CW_Conversion): New routine. Determines
5582 whether an object is the result of a tag-to-class-wide conversion.
5583
55842011-08-04 Yannick Moy <moy@adacore.com>
5585
5586 * sem_ch13.adb (Analyze_Aspect_Specifications): correct order in which
5587 the left-hand-side and right-hand-side of a conjunct are inserted when
5588 translating a pre- or postcondition
5589 * sem_ch6.adb: Correct typo in comment
5590
55912011-08-04 Ed Schonberg <schonberg@adacore.com>
5592
5593 * gnat_rm.texi: Ravenscar does not prohibit dependence on
5594 Unchecked_Conversion and Unchecked_Deallocation.
5595
55962011-08-04 Thomas Quinot <quinot@adacore.com>
5597
5598 * make.adb: Minor reformatting.
5599
767ab2fd
EB
56002011-08-04 Emmanuel Briot <briot@adacore.com>
5601
5602 * prj.adb, prj.ads, makeutl.adb (Complete_Mains): search for the
5603 sources in the project and its imported projects, but not in the whole
5604 tree.
5605
8fb3f5df
AC
56062011-08-04 Emmanuel Briot <briot@adacore.com>
5607
5608 * make.adb: Remove debug trace.
5609
56102011-08-04 Vincent Celier <celier@adacore.com>
5611
5612 * makeutl.adb (Do_Complete): Get the absolute path name of a relative
5613 path in canonical form, to be able to compare path names on platforms
5614 such as Windows or Darwin.
5615
56162011-08-04 Thomas Quinot <quinot@adacore.com>
5617
5618 * par_sco.adb (Traverse_Declarations_Or_Statements.Set_Statement_Entry):
5619 For a pragma (statement with C1 = 'P'), record the sloc of the pragma.
5620 * scos.ads: Update documentation accordingly.
5621 * put_scos.adb (Output_SCO_Line): Omit statement SCOs for disabled
5622 pragmas.
5623
9515740f
AC
56242011-08-04 Ed Schonberg <schonberg@adacore.com>
5625
5626 * sem_attr.adb (Bad_Attribute_For_Predicate): flag illegal use of
5627 attribute only if prefix type is scalar.
5628
56292011-08-04 Emmanuel Briot <briot@adacore.com>
5630
5631 * make.adb, makeutl.adb, prj-env.adb (Check_Mains): put back support
5632 in gnatmake for specifying mains on the command line that do not belong
5633 to the main project. These mains must currently all belong to the same
5634 project, though.
5635 (Ultimate_Extension_Of): removed, since duplicated
5636 Ultimate_Extending_Project.
5637
92966893
AC
56382011-08-04 Arnaud Charlet <charlet@adacore.com>
5639
5640 * make.adb (Do_Codepeer_Globalize_Step): Removed. Use CodePeer_Mode
5641 instead.
5642 (CodePeer_Mode_String): New.
5643 (Linking_Phase, Binding_Phase): Call gnatlink with -P switch in
5644 CodePeer mode.
5645 (Scan_Make_Arg): Do not disable binding/linking phase in CodePeer mode.
5646 * bindgen.adb (Gen_Elab_Calls_Ada): Ignore subprograms in CodePeer
5647 mode, since no useful elaboration subprogram is needed by CodePeer.
5648 * gnatlink.adb (Gnatlink): Add support for -P switch (CodePeer mode).
5649 In this mode, compile binder file with -gnatC and do stop after this
5650 step.
5651
56522011-08-04 Vincent Celier <celier@adacore.com>
5653
5654 * exp_ch7.adb: Minor comment fix.
5655
5969611f
RD
56562011-08-04 Robert Dewar <dewar@adacore.com>
5657
5658 * exp_ch7.adb, make.adb, sem_ch10.adb, bindgen.adb, sem_res.adb,
5659 exp_ch4.adb, makeutl.adb: Minor reformatting.
5660
6367dd30
AC
56612011-08-04 Emmanuel Briot <briot@adacore.com>
5662
5663 * make.adb, makeutl.adb, makeutl.ads (Make): major refactoring.
5664 Create several new subprograms to move code out of Make. This makes the
5665 code more readable, removes code duplication, and is a preparation work
5666 for adding support for aggregate projects.
5667
56682011-08-04 Tristan Gingold <gingold@adacore.com>
5669
5670 * s-po32gl.ads, s-po32gl.adb: New files.
5671 * exp_ch7.ads (Get_Global_Pool_For_Access_Type): New function.
5672 * exp_ch7.adb (Get_Global_Pool_For_Access_Type): New function.
5673 (Build_Finalization_Collection): Use it.
5674 * exp_ch4.adb (Complete_Controlled_Allocation): Ditto.
5675 * rtsfind.ads: System_Pool_32_Global, Re_Global_Pool_32_Object: New
5676 literals.
5677 * gcc-interface/Makefile.in: Use s-po32gl.o on VMS.
5678 * gcc-interface/Make-lang.in: Update dependencies.
5679
cd8bfe35
EB
56802011-08-04 Emmanuel Briot <briot@adacore.com>
5681
5682 * makeutl.adb (Complete_Mains): add support for specs with no suffix on
5683 the command line.
5684
7db29ea7
EB
56852011-08-04 Emmanuel Briot <briot@adacore.com>
5686
5687 * make.adb, makeutl.adb (Complete_Mains): if a main specified on the
5688 command line is not a file name, also check whether it could be a unit
5689 name.
5690
d9b056ea
AC
56912011-08-04 Eric Botcazou <ebotcazou@adacore.com>
5692
5693 * bindgen.adb (Gen_Finalize_Library_Ada): Factor out code to generate
5694 the header of the finalization routine.
5695 If the unit has no finalizer but is a body whose spec has one, then
5696 generate the decrement of the elaboration entity only.
5697 If the unit has a finalizer and is a spec, then do not generate the
5698 decrement of the elaboration entity.
5699 (Gen_Finalize_Library_C): Likewise.
5700
57012011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5702
5703 * exp_ch7.adb (Alignment_Of): New subsidiary routine.
5704 (Bounds_Size_Expression): Removed.
5705 (Double_Alignment_Of): New subsidiary routine.
5706 (Make_Finalize_Address_Stmts): New local variable Index_Typ. Account
5707 for a hole in the dope vector of unconstrained arrays due to different
5708 index and element alignments.
5709
57102011-08-04 Ed Schonberg <schonberg@adacore.com>
5711
5712 * sem_res.adb (Resolve_Allocator): diagnose task allocator that will
5713 raise program_error because body has not been seen yet.
5714
57152011-08-04 Ed Schonberg <schonberg@adacore.com>
5716
5717 * sem_ch10.adb (Analyze_With_Clause): Protect against child unit with
5718 an unresolved name.
5719
57202011-08-04 Vincent Celier <celier@adacore.com>
5721
5722 * makeutl.adb (Do_Complete): Check absolute paths in canonical forms
5723
57242011-08-04 Yannick Moy <moy@adacore.com>
5725
5726 * alfa.adb, alfa.ads (Unique_Defining_Entity): move function from here
5727 * sem_util.adb, sem_util.ads (Unique_Defining_Entity): ...to here
5728
57292011-08-04 Thomas Quinot <quinot@adacore.com>
5730
5731 * sem_ch12.adb (Analyze_Package_Instantiation): Do not omit body for
5732 instantiation in RCI.
5733
57342011-08-04 Emmanuel Briot <briot@adacore.com>
5735
5736 * make.adb: Share more code with gprbuild
5737
f5fc5b9d
AC
57382011-08-04 Emmanuel Briot <briot@adacore.com>
5739
5740 * projects.texi: Added documentation for the IDE'Gnat project file
5741 attribute.
5742
57432011-08-04 Nicolas Roche <roche@adacore.com>
5744
5745 * gnat_rm.texi: Minor editing.
5746
57472011-08-04 Javier Miranda <miranda@adacore.com>
5748
5749 * bindgen.adb (Gen_Adafinal_Ada): Do not differentiate the main case
5750 and the library case for VM targets.
5751 (Gen_Adainit_Ada): Likewise.
5752
57532011-08-04 Robert Dewar <dewar@adacore.com>
5754
5755 * g-altive.ads: Minor comment updates.
5756 * prj-nmsc.adb: Minor reformatting.
5757
57582011-08-04 Javier Miranda <miranda@adacore.com>
5759
5760 * opt.ads
5761 (Normalize_Scalars_Config): Value of the configuration switch set by
5762 pragma Normalize_Scalars when it appears in the gnat.adc file.
5763 (Normalize_Scalars): New field for record Config_Switches_Type. Used
5764 to save and restore settings of this pragma.
5765 * opt.adb
5766 (Register_Opt_Config_Switches, Save_Opt_Config_Switches,
5767 Restore_Opt_Config_Switches): Add missing support for Normalize_Scalars.
5768
57692011-08-04 Vincent Celier <celier@adacore.com>
5770
5771 * gnat_ugn.texi: Document gnatlink options -M and -M=mapfile
5772
0c4683cf
AC
57732011-08-04 Arnaud Charlet <charlet@adacore.com>
5774
5775 * makeutl.adb: Minor reformatting.
5776
57772011-08-04 Olivier Hainque <hainque@adacore.com>
5778
5779 * g-altive.ads: Update comments to reflect that only the soft
5780 binding is available today.
5781
2598ee6d
RD
57822011-08-04 Robert Dewar <dewar@adacore.com>
5783
5784 * bindgen.adb, einfo.adb, sem_ch12.adb, s-tasren.adb, sem_res.adb,
5785 makeutl.adb, prj-nmsc.adb, opt.ads, prj-env.adb: Minor reformatting
5786 * gcc-interface/Make-lang.in: Update dependencies.
5787
c2db4b32
AC
57882011-08-04 Arnaud Charlet <charlet@adacore.com>
5789
5790 * prj-env.adb: Remove local debug traces.
5791
57922011-08-04 Yannick Moy <moy@adacore.com>
5793
5794 * checks.adb (Apply_Float_Conversion_Check): correct a typo where Lo_OK
5795 was used instead of Hi_OK, which could cause a read of an uninitialized
5796 value later on. Detected while working on the new warning.
5797 * exp_ch9.adb (Expand_N_Entry_Declaration): remove useless assignment
5798 to local variable.
5799 * sem_ch5.adb (Analyze_Assignment): set the last assignment component
5800 in more cases, in order to detect more unreferenced values.
5801 * sem_util.adb, sem_util.ads (Get_Enclosing_Object): return enclosing
5802 object for expression, if any.
5803
58042011-08-04 Eric Botcazou <ebotcazou@adacore.com>
5805
5806 * exp_intr.adb (Expand_Binary_Operator_Call): Look at the RM size of
5807 the operand types instead of the Esize.
5808
58092011-08-04 Steve Baird <baird@adacore.com>
5810
5811 * switch-b.adb (Scan_Binder_Switches): Add -P binder switch, used to
5812 enable CodePeer_Mode.
5813 * bindusg.adb (Display): Add help message describing -P binder switch.
5814 * gnat_ugn.texi: Document -P binder switch.
5815 * bindgen.adb (Gen_Main_Ada): If CodePeer_Mode is set, then call the
5816 user-defined main program directly.
5817 (Gen_Output_File_Ada): If CodePeer_Mode is set, generate a with of the
5818 user-defined main program in the context clause of the package body.
5819
ad05f2e9
AC
58202011-08-04 Yannick Moy <moy@adacore.com>
5821
5822 * alfa.adb, alfa.ads (Get_Entity_For_Decl): remove function, partial
5823 duplicate of Defining_Entity
5824 (Get_Unique_Entity_For_Decl): rename function into
5825 Unique_Defining_Entity
5826 * einfo.adb, einfo.ads (Is_In_ALFA, Body_Is_In_ALFA): remove flags
5827 (Formal_Proof_On): remove synthesized flag
5828 * cstand.adb, sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb,
5829 sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_res.adb, sem_util.adb,
5830 sem_util.ads, stand.ads: Remove treatment associated to entities in ALFA
5831 * sem_prag.adb (Analyze_Pragma): remove special treatment for pragma
5832 Annotate (Formal_Proof)
5833
58342011-08-04 Emmanuel Briot <briot@adacore.com>
5835
5836 * prj-env.adb (Create_Config_Pragmas_File): fix handling of multi-unit
5837 source files with non-standard naming schemes, in imported projects
5838
756ef2a0
AC
58392011-08-04 Emmanuel Briot <briot@adacore.com>
5840
5841 * makeutl.adb (Complete_Mains): when a multi-unit source file is
5842 specified on the gprbuild command line, we need to compile all units
5843 within that file, not just the first one we find
5844 Fix error message for mains that are not found.
5845
58462011-08-04 Thomas Quinot <quinot@adacore.com>
5847
5848 * sem_ch6.adb: Update comment.
5849 * sem_ch12.adb: Minor reformatting.
5850
58512011-08-04 Bob Duff <duff@adacore.com>
5852
5853 * s-tasren.adb (Task_Do_Or_Queue): Previous code was reading
5854 Acceptor.Terminate_Alternative without locking Acceptor, which causes a
5855 race condition whose symptom is to fail to lock Parent. That, in turn,
5856 causes Parent.Awake_Count to be accessed without locking Parent, which
5857 causes another race condition whose symptom is that Parent.Awake_Count
5858 can be off by 1 (either too high or too low). The solution is to lock
5859 Parent unconditionally, and then lock Acceptor, before reading
5860 Acceptor.Terminate_Alternative.
5861
4fdebd93
AC
58622011-08-04 Arnaud Charlet <charlet@adacore.com>
5863
5864 * debug.adb: Update comment.
5865
58662011-08-04 Robert Dewar <dewar@adacore.com>
5867
5868 * par_sco.adb, exp_util.adb, make.adb, a-tags.adb, sem_prag.adb,
5869 sem_util.adb, sem_attr.adb, exp_ch4.adb, g-comlin.adb, g-comlin.ads,
5870 exp_ch6.adb: Minor reformatting.
5871
58722011-08-04 Gary Dismukes <dismukes@adacore.com>
5873
5874 * gnat_ugn.texi: Add sentence about the case of compile-time-detected
5875 checks for -gnateE.
5876
58772011-08-04 Ed Schonberg <schonberg@adacore.com>
5878
5879 * gnat_rm.texi: update Ravenscar desription to reflect Ada2012 RM.
5880
58812011-08-04 Thomas Quinot <quinot@adacore.com>
5882
5883 * sinfo.ads: Minor reformatting.
5884
58852011-08-04 Emmanuel Briot <briot@adacore.com>
5886
5887 * makeutl.adb, makeutl.ads, prj-nmsc.adb (Complete_Mains): report error
5888 even if there is no location.
5889
6aaa0587
ES
58902011-08-04 Ed Schonberg <schonberg@adacore.com>
5891
5892 * sem_res.adb, sem_ch4.adb: move check for restriction
5893 No_Task_Hierarchy to resolve_allocator.
5894
35a1c212
AC
58952011-08-04 Thomas Quinot <quinot@adacore.com>
5896
5897 * sinfo.adb, sinfo.ads, sem_prag.adb, sem_ch12.adb (Pragma_Enabled):
5898 This flag of N_Pragma nodes is not used, remove it as well as all of
5899 the associated circuitry.
5900
59012011-08-04 Javier Miranda <miranda@adacore.com>
5902
5903 * exp_disp.adb (Make_DT): Switch -gnatdQ disables the generation of the
5904 runtime check on duplicated externa tags
5905 * debug.adb Document switch -gnatdQ.
5906
59072011-08-04 Gary Dismukes <dismukes@adacore.com>
5908
5909 * a-fihema.ads: Minor typo fix.
5910
59112011-08-04 Yannick Moy <moy@adacore.com>
5912
5913 * sem_ch10.adb: Minor comment update.
5914
59152011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
5916
5917 * einfo.adb: Update the node field usage to reflect the renaming of
5918 Return_Flag to Return_ Flag_Or_Transient_Decl.
5919 (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl.
5920 (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl.
5921 (Write_Field15_Name): Change Return_Flag to
5922 Return_Flag_Or_Transient_Decl.
5923 * einfo.ads: Rename node field Return_Flag to
5924 Return_Flag_Or_Transient_Decl. Update the associated comment and all
5925 occurrences in entities.
5926 (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. Update
5927 associated Inline pragma.
5928 (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. Update
5929 associated Inline pragma.
5930 * exp_ch4.ads, exp_ch4.adb (Expand_N_Expression_With_Actions): New
5931 routine.
5932 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Update the calls to
5933 Return_Flag and Set_Return_Flag.
5934 * exp_ch7.adb (Process_Declarations): Add code to recognize hook
5935 objects generated for controlled transients declared inside an
5936 Exception_With_Actions. Update the calls to Return_Flag.
5937 (Process_Object_Declaration): Add code to add a null guard for hook
5938 objects generated for controlled transients declared inside an
5939 Exception_With_Actions. Update related comment.
5940 * exp_util.adb (Has_Controlled_Objects): Add code to recognize hook
5941 objects generated for controlled transients declared inside an
5942 Exception_With_Actions. Update the calls to Return_Flag.
5943 * expander.adb (Expand): Add new case for N_Expression_With_Actions.
5944
59452011-08-04 Ed Schonberg <schonberg@adacore.com>
5946
5947 * sem_util.adb:(Wrong_Type): Improve error message on a one-element
5948 positional aggregate.
5949
59502011-08-04 Vincent Celier <celier@adacore.com>
5951
5952 * par_sco.adb (Process_Decisions.Output_Header): Check and record pragma
5953 SLOC only for pragmas.
5954
59552011-08-04 Emmanuel Briot <briot@adacore.com>
5956
5957 * projects.texi: Minor typo fix.
5958
59592011-08-04 Emmanuel Briot <briot@adacore.com>
5960
5961 * prj-nmsc.adb (Check_File): Minor change to traces, to help debugging
5962 on case-sensitive file systems.
5963
c2873f74
TQ
59642011-08-04 Thomas Quinot <quinot@adacore.com>
5965
5966 * put_scos.adb (Put_SCOs): Do not emit decision SCO for an X decision
5967 nested in a disabled pragma.
5968 * scos.ads, scos.adb, par_sco.ads, par_sco.adb: Record sloc of
5969 enclosing pragma, if any, for X decisions.
5970
59712011-08-04 Thomas Quinot <quinot@adacore.com>
5972
5973 * sem_prag.adb: Minor reformatting.
5974
46414266
VC
59752011-08-04 Vincent Celier <celier@adacore.com>
5976
5977 * a-tags.adb (Check_TSD): Avoid concatenation of strings, as it is not
5978 allowed in no run time mode.
5979
59802011-08-04 Vincent Celier <celier@adacore.com>
5981
5982 * make.adb (Check): When -gnatc is used, check for the source file
5983 inside the ALI file with a canonical case file name.
5984
afab164f
EB
59852011-08-04 Emmanuel Briot <briot@adacore.com>
5986
5987 * g-comlin.adb, g-comlin.ads (Add_Switch): Put back support for
5988 overriding the separator.
5989
fe0ec02f
AC
59902011-08-04 Robert Dewar <dewar@adacore.com>
5991
5992 * sem_aggr.adb, par_sco.adb, sem_type.adb, exp_util.adb, exp_ch9.adb,
5993 prj-nmsc.adb, sem_ch13.adb, exp_strm.adb: Minor reformatting.
5994
59952011-08-04 Robert Dewar <dewar@adacore.com>
5996
5997 * gnat_rm.texi: Minor documentation fix for pragma Annotate.
5998
59992011-08-04 Yannick Moy <moy@adacore.com>
6000
6001 * sem_attr.adb (Analyze_Attribute): add check during pre-analysis that
6002 'Result only appears in postcondition of function.
6003
60042011-08-04 Thomas Quinot <quinot@adacore.com>
6005
6006 * a-tags.adb (Check_TSD): When raising PROGRAM_ERROR for a duplicated
6007 external tag, include the value of the external tag in the exception
6008 message.
6009
0180fd26
AC
60102011-08-04 Yannick Moy <moy@adacore.com>
6011
6012 * sem_attr.adb (Result): modify error message for misplaced 'Result
6013
60142011-08-04 Sergey Rybin <rybin@adacore.com>
6015
6016 * gnat_rm.texi (pragma Annotate): Fix syntax description to make it
6017 clear that the second argument must be an identifier.
6018
60192011-08-04 Thomas Quinot <quinot@adacore.com>
6020
6021 * exp_ch9.adb (Build_Barrier_Function): When compiling with
6022 -fpreserve-control-flow, insert an IF statement on the barrier
6023 condition to ensure that a conditional branch instruction is generated.
6024
60252011-08-04 Emmanuel Briot <briot@adacore.com>
6026
6027 * prj-part.adb, prj.adb, prj.ads, prj-tree.ads
6028 (Processing_Flags.Ignore_Missing_With): new flag.
6029
60302011-08-04 Emmanuel Briot <briot@adacore.com>
6031
6032 * prj-nmsc.adb (Find_Sources, Path_Name_Of): Fix handling of
6033 Source_List_File on case-insensitive systems where the file is actually
6034 on a case-sensitive file system (NFS,...).
6035
60362011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6037
6038 * sem_ch6.adb (Analyze_Function_Return): In a rare case where a
6039 function return contains a controlled [extension] aggregate and the
6040 return statement is not part of a handled sequence of statements, wrap
6041 the return in a block. This ensures that all controlled temporaries
6042 generated during aggregate resolution will be picked up by the
6043 finalization machinery.
6044
60452011-08-04 Ed Schonberg <schonberg@adacore.com>
6046
6047 * sem_aggr.adb (Resolve_Aggregate): If aggregate has box-initialized
6048 components, freeze type before resolution, to ensure that default
6049 initializations are present for all components.
6050 * sem_res.adb (Resolve_Actuals): the designated object of an
6051 accces-to-constant type is a legal actual in a call to an
6052 initialization procedure.
6053
60542011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6055
6056 * exp_util.adb (Extract_Renamed_Object): Add N_Type_Conversion and
6057 N_Unchecked_Type_Conversion to the possible containers of a renamed
6058 transient variable.
6059
78efd712
AC
60602011-08-04 Yannick Moy <moy@adacore.com>
6061
6062 * par-ch13.adb (Aspect_Specifications_Present): recognize
6063 "with Identifier'Class =>" as an aspect, so that a meaningful warning
6064 is issued in Strict mode.
6065 * par.adb: Fix typos in comments.
6066
60672011-08-04 Yannick Moy <moy@adacore.com>
6068
6069 * sem_attr.adb (Result): modify error message to take into account Post
6070 aspect when compiling Ada 2012 (or newer) code.
6071
60722011-08-04 Nicolas Roche <roche@adacore.com>
6073
6074 * env.c (__gnat_clearenv): Avoid use of dynamic size array in order to
2c7f9cc0 6075 remove need for GCC exceptions.
78efd712
AC
6076
60772011-08-04 Vincent Celier <celier@adacore.com>
6078
6079 * makeutl.adb (Do_Complete): Call Debug_Output with the name of the
6080 project, not the source file name.
6081 * prj.adb (Find_Sources.Look_For_Sources): If the source has been
6082 excluded, continue looking. This excluded source will only be returned
6083 if there is no other source with the same base name that is not locally
6084 removed.
6085
60862011-08-04 Ed Schonberg <schonberg@adacore.com>
6087
6088 * sem_res.adb (Resolve_Intrinsic_Operator): if the result type is
6089 private and one of the operands is a real literal, use a qualified
6090 expression rather than a conversion which is not meaningful to the
6091 back-end.
6092
0170a691
AC
60932011-08-04 Yannick Moy <moy@adacore.com>
6094
6095 * sem_ch13.adb (Aspect_Loop): when an aspect X and its classwise
6096 corresponding aspect X'Class are allowed, proceed with analysis of the
6097 aspect instead of skipping it.
6098
60992011-08-04 Tristan Gingold <gingold@adacore.com>
6100
6101 * s-flocon.adb, s-flocon.ads: Add a body for s-flocon.ads
6102 This will allow to have an Ada implementation for the subprogram.
6103
deb4f5ba
ES
61042011-08-04 Ed Schonberg <schonberg@adacore.com>
6105
6106 * sem_ch3.adb (Analyze_Full_Type_Declaration): If the declaration is a
6107 completion and aspects are present, apply them to the entity for the
6108 type which is currently the partial view, but which is the one that
6109 will be frozen.
6110 * sem_ch13.adb (Analyze_Aspect_Specifications): if the predicate
6111 applies to a partial view, indicate that the full view has predicates
6112 and delayed aspects.
6113 (Replace_Type_Reference): Handle properly predicates that apply to the
6114 full view of a private completion.
6115
fc893455
AC
61162011-08-04 Eric Botcazou <ebotcazou@adacore.com>
6117
6118 * layout.adb (Layout_Type): For composite types, do not set Esize.
6119 * freeze.adb (Set_Small_Size): Remove test on alignment and do not
6120 set Esize.
6121 (Size_Known): Look at the RM size of components instead of the Esize.
6122 (Freeze_Record_Type): Look at the RM size instead of the Esize to
6123 issue warning and activate Implicit_Packing.
6124 (Freeze_Entity): Likewise. Do not issue a warning for alias/atomic
6125 if the Esize is not known.
6126 * sem_ch13.adb (Analyze_Attribute_Definition_Clause) <Size>: Set Esize
6127 for elementary types only.
6128 (Analyze_Record_Representation_Clause): Look at the RM size instead
6129 of the Esize to issue errors.
6130 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set Esize if it
6131 is not known.
6132 <E_Record_Type>: Look at the RM size instead of the Esize. Remove
2c7f9cc0 6133 obsolete block.
fc893455
AC
6134 Look at the RM size instead of the Esize for types if the latter is
6135 not known.
6136 (gnat_to_gnu_field): Use Known_Esize instead of Known_Static_Esize.
6137
61382011-08-04 Ed Schonberg <schonberg@adacore.com>
6139
6140 * sem_type.adb: proper handling of equality not involving anonymous
6141 access types.
6142
b37d5bc6
AC
61432011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6144
6145 * exp_ch7.adb (Create_Finalizer): Remove local variables Spec_Nod and
6146 Vis_Decls. When creating a library-level finalizer for a package spec,
6147 both the declaration and body of the finalizer are inserted either in
6148 the visible or private declarations of the package spec.
6149
61502011-08-04 Javier Miranda <miranda@adacore.com>
6151
6152 * sem_ch3.adb (Derive_Subprograms): Complete assertion to request the
6153 use of the full-view of a type when invoking Is_Ancestor.
6154 * sem_type.adb (Is_Ancestor): For consistency, when the traversal of
6155 the full-view of private parents is requested, then use also the
6156 full-view of the parent of the first derivation.
6157
7ab4d95a
AC
61582011-08-04 Tristan Gingold <gingold@adacore.com>
6159
6160 * s-taprop-vxworks.adb (Enter_Task): Use System.Float_Control.Reset
6161 instead of the locally imported procedure.
6162 * s-taprop-mingw.adb (Enter_Task): Ditto.
6163 * s-valrea.adb (Scan_Real): Ditto.
6164 * s-imgrea.adb (Set_Image_Real): Ditto.
6165 * s-flocon.ads: Make the package pure.
6166
61672011-08-04 Thomas Quinot <quinot@adacore.com>
6168
6169 * sinfo.ads, sinfo.adb (Debug_Statement, Set_Debug_Statement): Remove.
6170 * tbuild.ads, tbuild.adb (Make_Pragma): Adjust accordingly.
6171 * sinfo-cn.ads, sinfo-cn.adb (Change_Name_To_Procedure_Call_Statement):
6172 New subprogram, moved here from...
6173 * par.adb, par-ch5.adb (P_Statement_Name): ... here.
6174 * par-prag.adb (Par.Prag, case Pragma_Debug): Do not perform any
6175 rewriting of the last argument into a procedure call statement here...
6176 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): ...do it there
6177 instead.
6178
61792011-08-04 Thomas Quinot <quinot@adacore.com>
6180
6181 * par_sco.adb: Minor reformatting.
6182
51c400f5
AC
61832011-08-04 Robert Dewar <dewar@adacore.com>
6184
6185 * erroutc.adb: Minor reformatting.
6186
61872011-08-04 Thomas Quinot <quinot@adacore.com>
6188
6189 * par_sco.adb: Comment update.
6190
61912011-08-04 Tristan Gingold <gingold@adacore.com>
6192
6193 * s-flocon.ads: New file.
6194 * g-flocon.ads: Now a renaming of s-flocon.
6195 * Makefile.rtl: Add s-flocon.o
6196
6a49f110
AC
61972011-08-04 Javier Miranda <miranda@adacore.com>
6198
6199 * exp_strm.adb (Build_Array_Input_Function): if the array type is
6200 constrained, do not attempt to build a subtype of it.
6201
62022011-08-04 Yannick Moy <moy@adacore.com>
6203
6204 * errout.ads Change comments: remove 'R'M as an example where quotes
6205 are needed; add ALFA as another case where quotes are not needed
6206 * erroutc.adb (Set_Msg_Insertion_Reserved_Word): add ALFA as another
6207 case where quotes are not needed.
6208 * sem_ch11.adb, sem_ch13.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb,
6209 sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_prag.adb, sem_res.adb:
6210 Remove all occurrences of 'A'L'F'A
6211
62122011-08-04 Ed Schonberg <schonberg@adacore.com>
6213
6214 * sem_ch13.adb: check legality of invariant pragma.
6215
a4640a39
AC
62162011-08-04 Eric Botcazou <ebotcazou@adacore.com>
6217
6218 * bindgen.adb: Add comments.
6219
62202011-08-04 Yannick Moy <moy@adacore.com>
6221
6222 * einfo.adb, einfo.ads: Free Flag254 and make Formal_Proof_On a
6223 synthesized flag.
6224 * sem_prag.adb (Analyze_Pragma): record the pragma Annotate
6225 (Formal_Proof, On/Off) in the Rep_Item list of the current subprogram.
6226
62272011-08-04 Robert Dewar <dewar@adacore.com>
6228
6229 * exp_ch7.adb, exp_ch6.adb, sem_ch3.adb, layout.adb, sem_ch5.adb,
6230 osint-c.ads, sem_util.ads, gnat1drv.adb, targparm.ads, sem_ch6.adb,
6231 sem_ch13.adb, s-pooloc.adb: Minor reformatting.
6232
39ade2f9
AC
62332011-08-04 Thomas Quinot <quinot@adacore.com>
6234
6235 * s-pooloc.ads, s-pooglo.ads: Minor reformatting
6236
62372011-08-04 Thomas Quinot <quinot@adacore.com>
6238
6239 PR ada/47880
6240 * s-pooloc.adb (Deallocate): Fix the case of deallocating the only
6241 allocated object.
6242
62432011-08-04 Robert Dewar <dewar@adacore.com>
6244
6245 * einfo.ads, exp_ch4.adb: Minor reformatting.
6246
62472011-08-04 Jerome Lambourg <lambourg@adacore.com>
6248
6249 * back_end.ads (Gen_Or_Update_Object_File): Add more comments.
6250
7efc3f2d
AC
62512011-08-04 Ed Schonberg <schonberg@adacore.com>
6252
6253 * exp_ch4.adb (Expand_Composite_Equality): code cleanup: use component
6254 type in all cases to compute list of primitive operations, because full
6255 view may be an itype that is not attached to the list of declarations.
6256
62572011-08-04 Eric Botcazou <ebotcazou@adacore.com>
6258
6259 * bindgen.adb (Gen_Adafinal_Ada): Generate an early return if the
6260 library has already been finalized.
6261 (Gen_Adafinal_C): Likewise.
6262 (Gen_Adainit_Ada): Generate an early return if the library has
6263 already been elaborated.
6264 (Gen_Adainit_C): Likewise.
6265 (Gen_Output_File_Ada): Generate an elaboration flag.
6266 (Gen_Output_File_C): Likewise.
6267
f65df609
HK
62682011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6269
6270 * exp_ch4.adb (Expand_Allocator_Expression): Disable the generation of
6271 Set_Finalize_Address_Ptr for CodePeer because Finalize_Address was not
6272 built in the first place.
6273 (Expand_N_Allocator): Disable the generation of Set_Finalize_Address_Ptr
6274 for CodePeer because Finalize_Address was not built to begin with.
6275 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Ditto.
6276
a0fb8fe8
AC
62772011-08-04 Pascal Obry <obry@adacore.com>
6278
6279 * adaint.c (__gnat_tmp_name): Use current process id to create temp
6280 filenames, this ensures unicity of filenames across processes.
6281
62822011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6283
6284 * bindgen.adb (Gen_Finalize_Library_Ada): Rename generated routine
6285 Raise_Controlled to Raise_From_Controlled_Operation. Update the
6286 signature of Raise_From_Controlled_Operation by adding flag From_Abort.
6287 Add False as the actual to From_Abort in the generated call to
6288 Raise_From_Controlled_Operation.
6289
62902011-08-04 Jerome Lambourg <lambourg@adacore.com>
6291
6292 * osint-c.ads, osint-c.adb (Set_Library_Info_Name): Move to declaration
6293 so that the ali file name can be retrieved from outside of this package.
6294 * back_end.ads, back_end.adb (Gen_Or_Update_Object_File): New method
6295 doing nothing in the general case, but used to update the object file
6296 timestamp if directly generated by the backend.
6297 * gnat1drv.adb (Gnat1drv): Make sure the object file's timestamp is set
6298 to a later time than the ali file one.
6299
9534ab17
AC
63002011-08-04 Yannick Moy <moy@adacore.com>
6301
6302 * einfo.adb, einfo.ads (Formal_Proof_On): new flag set on subprogram
6303 entities whose body contains an Annotate pragma which forces formal
6304 proof on this body.
6305 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
6306 sem_ch6.adb, sem_ch9.adb, sem_res.adb: Adapt call to
6307 Mark_Non_ALFA_Subprogram to pass in a message and node.
6308 * sem_prag.adb (Analyze_Pragma): add treatment of pragma Annotate
6309 (Forma_Proof, On) which sets the flag Formal_Proof_On in the
6310 surrounding subprogram.
6311 * sem_util.adb, sem_util.ads (Mark_Non_ALFA_Subprogram,
6312 Mark_Non_ALFA_Subprogram_Unconditional): if the subprogram being marked
6313 as not in ALFA is annotated with Formal_Proof being On, then an error
6314 is issued based on the additional parameters for message and node.
6315 * snames.ads-tmpl (Name_Formal_Proof): new name for annotation.
6316 * gcc-interface/Make-lang.in: Update dependencies.
6317
63182011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6319
6320 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not generate
6321 Finalize_Address when CodePeer is enabled.
6322
63232011-08-04 Pascal Obry <obry@adacore.com>
6324
6325 * adaint.c (__gnat_tmp_name): Use _tempnam() instead of tempnam() as
6326 the latter returns a pointer to a static buffer which is deallocated
6327 at the end of the routine.
6328
5c0e97dd
AC
63292011-08-04 Yannick Moy <moy@adacore.com>
6330
6331 * sem_ch3.adb (Array_Type_Declaration): move test for type in ALFA
6332 after index creation; mark unconstrained base array type generated as
6333 being in/not in ALFA as well
6334 (Make_Index): mark subtype created as in/not in ALFA
6335 * sem_ch5.adb (Analyze_Iteration_Scheme): mark entity for iterating
6336 over a loop as in/not in ALFA, depending on its type and form of loop
6337 iteration.
6338
63392011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6340
6341 * exp_ch7.adb (Build_Object_Declarations): Initialize flag Abort
6342 directly to False on .NET and JVM.
6343
7a93c64b
YM
63442011-08-04 Yannick Moy <moy@adacore.com>
6345
6346 * sem_ch3.adb (Constrain_Enumeration, Constrain_Integer): remove
6347 constraint that subtype must come from source code to be in ALFA, so
6348 that anonymous subtypes can be in ALFA too.
6349
e9a1ed9b
YM
63502011-08-04 Yannick Moy <moy@adacore.com>
6351
6352 * sem_ch3.adb (Analyze_Object_Declaration): remove obsolete addition of
6353 reference for ALFA mode.
6354 * lib-xref-alfa.adb, lib-xref.ads (Traverse_Compilation_Unit): make
6355 procedure public so as to use it from formal verification back-end.
6356
8e293fbd
AC
63572011-08-04 Jerome Lambourg <lambourg@adacore.com>
6358
6359 * g-comlin.adb (For_Each_Simple_Switch.Is_In_Config): Remove the
6360 invalid checks of the Parameter, making Remove_Switch not working
6361 correctly.
6362
63632011-08-04 Arnaud Charlet <charlet@adacore.com>
6364
6365 * targparm.ads: Update header: no run-time exception is needed on this
6366 file.
6367
63682011-08-04 Vincent Celier <celier@adacore.com>
6369
6370 * a-fihema.adb: Use System.IO instead of GNAT.IO
6371
63722011-08-04 Thomas Quinot <quinot@adacore.com>
6373
6374 * sem_ch3.adb (Access_Definition): Anonymous access to subprogram types
6375 are forbidden in Compiler_Unit mode.
6376
cfae2bed
AC
63772011-08-04 Robert Dewar <dewar@adacore.com>
6378
6379 * sem_util.adb: Minor reformatting.
6380
63812011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6382
6383 * bindgen.adb (Gen_Finalize_Library_Ada): Update the import string for
6384 library-level finalizers.
6385 (Gen_Finalize_Library_C): Update the import string for library-level
6386 finalizers.
6387 (Gen_Finalize_Library_Defs_C): Update the definition name of a
6388 library-level finalizer.
6389 * exp_ch7.adb: Remove with and use clauses for Stringt.
6390 (Create_Finalizer): Remove local variables Conv_Name, Prag_Decl,
6391 Spec_Decl. Add local variable Body_Id. The names of library-level
6392 finalizers are now manually fully qualified and are no longer external.
6393 A single name is now capable of servicing .NET, JVM and non-VM targets.
6394 Pragma Export is no longer required to provide visibility for the name.
6395 (Create_Finalizer_String): Removed.
6396 (New_Finalizer_Name): New routine which mimics New_..._Name.
6397
01f0729a
AC
63982011-08-04 Eric Botcazou <ebotcazou@adacore.com>
6399
6400 * sem_elab.adb (Check_Internal_Call_Continue): Change the type of the
6401 elaboration counter to Standard_Short_Integer.
6402 * sem_util.adb (Build_Elaboration_Entity): Likewise.
6403 * bindgen.adb (Gen_Elab_Externals_Ada): Adjust to above change.
6404 (Gen_Elab_Externals_C): Likewise.
6405
64062011-08-04 Ed Falis <falis@adacore.com>
6407
6408 * system-vxworks-arm.ads, system-vxworks-sparcv9.ads,
6409 system-vxworks-ppc.ads, system-vxworks-m68k.ads,
6410 system-vxworks-mips.ads, system-vxworks-x86.ads
6411 (Always_Compatible_Rep): set to False for all VxWorks targets.
6412
2c1b72d7
AC
64132011-08-04 Robert Dewar <dewar@adacore.com>
6414
6415 * par_sco.adb, prj-proc.adb, make.adb, bindgen.adb, prj.adb, prj.ads,
6416 makeutl.adb, makeutl.ads, prj-nmsc.adb, exp_ch5.adb, exp_ch12.adb,
6417 exp_ch7.ads, exp_util.ads, sem_util.ads, g-comlin.ads, exp_ch6.adb,
6418 exp_ch6.ads, lib-xref.ads, exp_ch7.adb, exp_util.adb, exp_dist.adb,
6419 exp_strm.adb, gnatcmd.adb, freeze.adb, g-comlin.adb, lib-xref-alfa.adb,
6420 sem_attr.adb, sem_prag.adb, sem_util.adb, sem_elab.adb, sem_ch8.adb,
6421 sem_ch11.adb, sem_eval.adb, sem_ch13.adb, sem_disp.adb, a-fihema.adb:
6422 Minor reformatting and code reorganization.
6423
64242011-08-04 Emmanuel Briot <briot@adacore.com>
6425
6426 * projects.texi: Added doc for aggregate projects.
6427
824e9320
AC
64282011-08-04 Emmanuel Briot <briot@adacore.com>
6429
6430 * prj-proc.adb, prj-nmsc.adb, prj-env.adb (Process_Declarative_Items):
6431 Add support for overriding the Project_Path in aggregate projects.
6432
64332011-08-04 Robert Dewar <dewar@adacore.com>
6434
6435 * a-cofove.ads: Minor reformatting.
6436
64372011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6438
6439 * exp_ch7.adb (Build_Adjust_Or_Finalize_Statements): Update the comment
6440 on the generated code.
6441 (Build_Finalize_Statements): Update the comment on the generated code.
6442 (Build_Initialize_Statements): Update the comment on the generated code.
6443 (Build_Object_Declarations): Add local variable Result. The object
6444 declarations are now built in sequence.
6445 * rtsfind.ads: Add RE_Exception_Occurrence_Access to tables RE_Id and
6446 RE_Unit_Table.
6447
64482011-08-04 Robert Dewar <dewar@adacore.com>
6449
6450 * checks.adb, alfa.adb, alfa.ads: Minor reformatting.
6451
64522011-08-04 Eric Botcazou <ebotcazou@adacore.com>
6453
6454 * einfo.ads (Elaboration_Entity): Document new definition and use.
6455 (Elaboration_Entity_Required): Adjust to above change.
6456 * exp_attr.adb (Expand_N_Attribute_Reference): Likewise.
6457 * exp_ch12.adb: And with and use for Snames.
6458 (Expand_N_Generic_Instantiation): Test 'Elaborated attribute.
6459 * exp_util.adb (Set_Elaboration_Flag): Likewise.
6460 * sem_attr.adb (Analyze_Attribute) <Check_Library_Unit>: Delete.
6461 <Check_Unit_Name>: Deal with N_Expanded_Name.
6462 <Attribute_Elaborated>: Extend to all unit names.
6463 * sem_elab.adb: And with and use for Uintp.
6464 (Check_Internal_Call_Continue): Adjust to Elaboration_Entity change.
6465 * sem_util.ads (Build_Elaboration_Entity): Adjust comment.
6466 * sem_util.adb (Build_Elaboration_Entity): Change type to Integer.
6467 * bindgen.adb (Gen_Elab_Externals_Ada): New local subprogram taken
6468 from Gen_Adainit_Ada.
6469 (Gen_Elab_Externals_C): Likewise, but taken from Gen_Adainit_C.
6470 (Gen_Adafinal_Ada): Remove redundant test. In the non-main program
6471 case, do not call System.Standard_Library.Adafinal; instead call
6472 finalize_library if needed.
6473 (Gen_Adafinal_C): Likewise.
6474 (Gen_Adainit_Ada): Do not set SSL.Finalize_Library_Objects in the
6475 non-main program case.
6476 (Gen_Adainit_C): Generate a couple of external declarations here.
6477 In the main program case, set SSL.Finalize_Library_Objects.
6478 (Gen_Elab_Calls_Ada): Adjust to Elaboration_Entity change.
6479 (Gen_Elab_Calls_C): Likewise.
6480 (Gen_Finalize_Library_Ada): Likewise. Skip SAL interface units.
6481 (Gen_Finalize_Library_C): Likewise. Generate a full function.
6482 (Gen_Main_C): Put back call to Ada_Final and don't finalize library
6483 objects here.
6484 (Gen_Output_File_Ada): Generate pragma Linker_Destructor for Ada_Final
6485 if -a is specified. Call Gen_Elab_Externals_Ada. Move around call to
6486 Gen_Adafinal_Ada.
6487 (Gen_Output_File_C): Generate __attribute__((destructor)) for Ada_Final
6488 if -a is specified. Call Gen_Elab_Externals_C. Remove useless couple
2c7f9cc0 6489 of external declarations. Call Gen_Finalize_Library_C.
824e9320 6490
316d9d4f
EB
64912011-08-04 Emmanuel Briot <briot@adacore.com>
6492
6493 * prj.adb, prj.ads, makeutl.adb, makeutl.ads (Complete_Mains,
6494 Compute_Compilation_Phases): new subprogram.
6495 (Builder_Data, Builder_Project_Tree_Data): new subprogram and type
6496 The number of mains as well as the various compilation phases that
6497 need to be run are now project tree specific, since various
6498 aggregated trees might have different requirements. In particular,
6499 they do not all require bind or link phases.
6500
9434c32e
EB
65012011-08-04 Emmanuel Briot <briot@adacore.com>
6502
6503 * prj.adb, prj.ads, makeutl.adb, makeutl.ads, prj-env.adb
6504 (Project_Tree_Appdata): New type.
6505 It is now possible to associate application-specific data to a project
6506 tree. In particular, this is used in the gprbuild builder to avoid a
6507 number of global tables and htables, especially now that there can be
6508 several project trees loaded at once because of aggregate projects.
6509 (Debug_Name): new procedure.
6510 * projects.texi: Clarify syntax of "**" for Source_Dirs
6511
41ba34db
EB
65122011-08-03 Emmanuel Briot <briot@adacore.com>
6513
6514 * prj.ads, makeutl.adb, makeutl.ads (Queue.Insert): now also inserts
6515 the "roots" for a main.
6516 (Fill_From_Project): add support for aggregate projects. Main units
6517 in aggregated projects are now automatically added in the list of
6518 files to build (although this fails later on in gprbuild, because
6519 these files are not using the root proejct tree, so this needs
6520 further cleanup)
6521 * gcc-interface/Make-lang.in: Update dependencies.
6522
fccd42a9
AC
65232011-08-03 Yannick Moy <moy@adacore.com>
6524
6525 * sem_ch4.adb (Analyze_Conditional_Expression): only allow boolean
6526 conditional expression in ALFA.
6527 * sem_res.adb (Resolve_Conditional_Expression): mark non-boolean
6528 expressions as not in ALFA.
6529
65302011-08-03 Robert Dewar <dewar@adacore.com>
6531
6532 * a-cofove.adb: Minor reformatting.
6533
65342011-08-03 Emmanuel Briot <briot@adacore.com>
6535
6536 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads
6537 (Insert_Project_Sources, Insert_withed_Sources_For): moved from the
6538 gprbuild sources.
6539 These packages are more logically placed in the Queue package, since
6540 they manipulate the queue. It is also likely that they can be adapted
6541 for gnatmake, thus sharing more code.
6542 (Finish_Program, Fail_Program): moved from the gprbuild sources, so
6543 that we could move the above.
6544
65452011-08-03 Emmanuel Briot <briot@adacore.com>
6546
6547 * errutil.adb (Finalize): clean up the list of error messages on exit.
6548 Calling this subprogram multiple times will no longer show duplicate
6549 error messages on stderr.
6550
65512011-08-03 Emmanuel Briot <briot@adacore.com>
6552
6553 * g-comlin.adb, g-comlin.ads (Set_Command_Line): ignore the parameter
6554 Getopt_Switches when we have already define a command line
6555 configuration.
6556
5e8c8e44
YM
65572011-08-03 Yannick Moy <moy@adacore.com>
6558
6559 * sem_ch11.adb (Analyze_Raise_xxx_Error): do not mark such nodes as not
6560 in ALFA. Instead, they are considered as assertions to prove.
6561 * sem_ch4.adb (Analyze_Conditional_Expression): do not always mark such
6562 nodes as not in ALFA. Instead, include conditional expressions in ALFA
6563 if they have no ELSE part, or if they occur in pre- and postconditions,
6564 where the Condition cannot have side-effects in ALFA
6565 (Analyze_Membership_Op): do not mark such nodes as not in ALFA
6566 (Analyze_Type_Conversion): do not always mark such nodes as not in ALFA.
6567 Instead, include type conversion between scalar types in ALFA.
6568 * sem_ch6.adb (Process_Formals): correctly mark a parameter in ALFA
6569 if-and-only-if its type is in ALFA.
6570
5ffe0bab
AC
65712011-08-03 Thomas Quinot <quinot@adacore.com>
6572
6573 * scos.adb, get_scos.adb, put_scos.adb
6574 New code letter for decisions: G (entry guard)
6575 * par_sco.adb
6576 (Traverse_Subprogram_Body): Rename to...
6577 (Traverse_Subprogram_Or_Task_Body): New subrpogram.
6578 (Traverse_Protected_Body): New subprogram
6579 (Traverse_Declarations_Or_Statements): Add traversal of task bodies,
6580 protected bodies and entry bodies.
6581
65822011-08-03 Yannick Moy <moy@adacore.com>
6583
6584 * einfo.adb, einfo.ads (Is_Postcondition_Proc): new flag for procedure
6585 entities with get/set subprograms, which is set on procedure entities
6586 generated by the compiler for a postcondition.
6587 * sem_ch6.adb (Process_PPCs): set new flag on postcondition procedures
6588 * alfa.adb, alfa.ads (Get_Entity_For_Decl): new function returning the
6589 entity for a declaration
6590 (Get_Unique_Entity_For_Decl): new function returning an entity which
6591 represents a declaration, so that matching spec and body have the same
6592 entity.
6593
65942011-08-03 Robert Dewar <dewar@adacore.com>
6595
6596 * a-except-2005.adb, a-cfhama.adb, a-cfhase.adb, a-cfhase.ads,
6597 a-cforma.adb, a-cforse.ads, a-cforse.adb: Minor reformatting
6598
65992011-08-03 Yannick Moy <moy@adacore.com>
6600
6601 * lib-xref-alfa.adb (Detect_And_Add_ALFA_Scope): make the subprogram
6602 library-level because retriction No_Implicit_Dynamic_Code in the
6603 front-end prevents its definition as a local subprogram
6604 (Traverse_Compilation_Unit): extract new procedure from Add_ALFA_File,
6605 for reuse in other contexts
6606 (Traverse_Declarations_Or_Statements,
6607 Traverse_Handled_Statement_Sequence, Traverse_Package_Body,
6608 Traverse_Package_Declaration, Traverse_Subprogram_Body): make all these
6609 procedures take a callback parameter to be called on all declarations
6610 * lib-xref.ads
6611 (Traverse_All_Compilation_Units): new generic function to traverse a
6612 compilation unit and call a callback parameter on all declarations
6613
f9ad6b62
AC
66142011-08-03 Javier Miranda <miranda@adacore.com>
6615
6616 * sem_prag.adb (Process_Interface_Name): Allow duplicated export names
6617 in Java since they are always enclosed in a namespace that
6618 differentiates them, and overloaded entities are supported by the VM.
6619
66202011-08-03 Ed Schonberg <schonberg@adacore.com>
6621
6622 * checks.adb (Determine_Range): If a computed bound of an operation is
6623 outside the range of the base type of the expression, and overflow
6624 checks are enabled, the result is unknown and cannot be used for any
6625 subsequent constant folding.
6626 * sem_eval.adb (Compile_Time_Compare): if the bounds of one operand are
6627 unknown, so is the result of the comparison.
6628
66292011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
6630
6631 * a-except-2005.adb (Raise_From_Controlled_Operation): Add new formal
6632 From_Abort. When finalization was triggered by an abort, propagate
6633 Standard'Abort_Signal rather than Program_Error.
6634 * a-except-2005.ads (Raise_From_Controlled_Operation): Add new formal
6635 From_Abort.
6636 * a-except.adb (Raise_From_Controlled_Operation): Add new formal
6637 From_Abort. When finalization was triggered by an abort, propagate
6638 Standard'Abort_Signal rather than Program_Error.
6639 * a-except.ads:(Raise_From_Controlled_Operation): Add new formal
6640 From_Abort.
6641 * exp_ch7.adb:(Build_Adjust_Or_Finalize_Statements): New local variable
6642 Abort_Id. Update the calls to Build_Object_Declarations and
6643 Build_Raise_Statement to include Abort_Id.
6644 (Build_Adjust_Statements): New local variable Abort_Id. Update the
6645 calls to Build_Object_Declarations and Build_Raise_Statement to include
6646 Abort_Id.
6647 (Build_Finalize_Statements): New local variable Abort_Id. Update the
6648 calls to Build_Object_Declarations and Build_Raise_Statement to include
6649 Abort_Id.
6650 (Build_Components): Create an entity for Abort_Id when exceptions are
6651 allowed on the target.
6652 (Build_Finalizer): New local variable Abort_Id.
6653 (Build_Initialize_Statements): New local variable Abort_Id. Update the
6654 calls to Build_Object_Declarations and Build_Raise_Statement to include
6655 Abort_Id.
6656 (Build_Object_Declarations): Add new formal Abort_Id. Create the
6657 declaration of flag Abort_Id to preserve the original abort status
6658 before finalization code is executed.
6659 (Build_Raise_Statement): Add new formal Abort_Id. Pass Abort_Id to
6660 runtime routine Raise_From_Controlled_Operation.
6661 (Create_Finalizer): Update the call to Build_Raise_Statement to include
6662 Abort_Id. Update the call to Build_Object_Declarations to include
6663 Abort_Id. Update the layout of the finalizer body.
6664 (Make_Handler_For_Ctrl_Operation): Add an actual for From_Abort.
6665 (Process_Transient_Objects): New local variable Abort_Id. Remove the
6666 clunky code to create all flags and objects related to
6667 exception propagation and replace it with a call to
6668 Build_Object_Declarations. Update the call to Build_Raise_Statement to
6669 include Abort_Id.
6670 * exp_ch7.ads (Build_Object_Declarations): Moved from body to spec.
6671 Add new formal Abort_Id and associated comment on its use.
6672 (Build_Raise_Statement): Add new formal Abort_Id and associated comment
6673 on its use.
6674 * exp_intr.adb (Expand_Unc_Deallocation): New local variable Abort_Id.
6675 Remove the clunky code to create all flags and objects related to
6676 exception propagation and replace it with a call to
6677 Build_Object_Declarations. Update the call to Build_Raise_Statement.
6678
66792011-08-03 Eric Botcazou <ebotcazou@adacore.com>
6680
6681 * s-tassta.adb: Fix minor typos.
6682
66832011-08-03 Robert Dewar <dewar@adacore.com>
6684
6685 * rtsfind.ads, makeutl.ads, prj.ads, prj.adb, make.adb,
6686 lib-writ.adb, makeutl.adb, s-soflin.ads, clean.adb: Minor reformatting.
6687
1cdfa9be
AC
66882011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
6689
6690 * exp_ch7.adb (Create_Finalizer): Treat freeze nodes in similar fashion
6691 to packages. This ensures that the finalizer body will not end up
6692 inside the freeze node.
6693 (Process_Declarations): Add code to detect whether a freeze node has a
6694 nested finalization collection.
6695
66962011-08-03 Pascal Obry <obry@adacore.com>
6697
6698 * g-awk.adb, g-awk.ads: Make GNAT.AWK API compatible with Ada 2005.
6699 (Current_Session): Return a not null access to Session_Type.
6700 (Default_Session): Likewise.
6701
243cae0a
AC
67022011-08-03 Robert Dewar <dewar@adacore.com>
6703
6704 * a-cfdlli.adb, bindgen.adb, exp_ch4.adb, exp_ch13.adb, sem_warn.adb,
6705 exp_ch3.adb, exp_ch3.ads: Minor reformatting.
6706
67072011-08-03 Pascal Obry <obry@adacore.com>
6708
6709 * g-awk.ads: Minor comment fix.
6710
67112011-08-03 Sergey Rybin <rybin@adacore.com>
6712
6713 * tree_io.ads (ASIS_Version_Number): Update because of the changes in
6714 the tree structure related to discriminant constraints.
6715 Original_Discriminant cannot be used any more for computing the
6716 defining name for the reference to a discriminant.
6717
67182011-08-03 Ed Schonberg <schonberg@adacore.com>
6719
6720 * sem_disp.adb (Is_Tag_Indeterminate): If the return type of the
6721 function is not visibly tagged, this is not a dispatching call and
6722 therfore is not Tag_Indeterminate, even if the function is marked as
6723 dispatching on result.
6724
f553e7bc
AC
67252011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
6726
6727 * exp_ch13.adb: Add with and use clauses for Restrict and Rident.
6728 (Expand_N_Free_Statement): Add a guard to protect against run-times
6729 which do not support controlled types.
6730 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Add a guard to protect
6731 against run-times which do not support controlled types.
6732 * exp_ch4.adb (Complete_Controlled_Allocation): Add a guard to protect
6733 against run-times which do not support controlled types.
6734 * exp_ch7.adb (Build_Finalization_Collection): Add a guard to protect
6735 against run-times which do not support controlled types.
6736 * exp_util.adb (Needs_Finalization): Code reformatting. Add a guard to
6737 protect against run-times which do not support controlled types.
6738
67392011-08-03 Eric Botcazou <ebotcazou@adacore.com>
6740
6741 * exp_intr.adb: Put back with and use clauses for Exp_Ch11.
6742 (Expand_Unc_Deallocation): Expand the AT_END handler at the very end.
6743
e4982b64
AC
67442011-08-03 Ed Schonberg <schonberg@adacore.com>
6745
6746 * exp_ch5.adb (Expand_Iterator_Loop): indicate that the cursor is
6747 modified in the source, to prevent spurious warnings when compiling
6748 with -gnatg.
6749
67502011-08-03 Thomas Quinot <quinot@adacore.com>
6751
6752 * a-except-2005.adb: Minor reformatting.
6753
67542011-08-03 Ed Schonberg <schonberg@adacore.com>
6755
6756 * sem_warn.adb (Check_One_Unit): if the only mention of a withed unit
6757 is a renaming declaration in the private part of a package, do not emit
6758 a warning that the with_clause could be moved because the renaming may
6759 be used in the body or in a child unit.
6760
67612011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
6762
6763 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
6764 Propagate the Comes_From_Source attribute from the original return
6765 object to the renaming.
6766
67672011-08-03 Jose Ruiz <ruiz@adacore.com>
6768
6769 * exp_ch7.adb (Build_Raise_Statement): Do not call
6770 Raise_From_Controlled_Operation when this routine is not present in
6771 the run-time library.
6772 (Cleanup_Protected_Object, Cleanup_Task): For restricted run-time
6773 libraries (Ravenscar), tasks are non-terminating, and protected objects
6774 and tasks can only appear at library level, so we do not want
6775 finalization of protected objects nor tasks.
6776 * exp_intr.adb: Minor clarification in comment.
6777 bindgen.adb (Gen_Adainit_Ada, Gen_Main_C, Gen_Output_File_Ada,
6778 Gen_Output_File_C): Remove references to finalization of library-level
6779 objects when using restricted run-time libraries.
6780
67812011-08-03 Ed Schonberg <schonberg@adacore.com>
6782
6783 * sem_ch3.adb (Build_Discriminant_Constraints): Set
6784 Original_Discriminant only if the parent type is a generic formal.
6785
deb8dacc
HK
67862011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
6787
6788 * exp_ch13.adb: Add with and use clause for Targparm;
6789 (Expand_N_Free_Statement): Prevent the generation of a custom
6790 Deallocate on .NET/JVM targets since this requires pools and address
6791 arithmetic.
6792 * exp_ch4.adb (Expand_Allocator_Expression): When compiling for
6793 .NET/JVM targets, attach the newly allocated object to the access
6794 type's finalization collection. Do not generate a call to
6795 Set_Finalize_Address_Ptr on .NET/JVM because this routine does not
6796 exist in the runtime.
6797 (Expand_N_Allocator): When compiling for .NET/JVM targets, do not
6798 create a custom Allocate for object that do not require initialization.
6799 Attach a newly allocated object to the access type's finalization
6800 collection on .NET/JVM.
6801 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add special processing for
6802 assignment of controlled types on .NET/JVM. The two hidden pointers
6803 Prev and Next and stored and later restored after the assignment takes
6804 place.
6805 * exp_ch6.adb (Expand_Call): Add local constant Curr_S. Add specialized
6806 kludge for .NET/JVM to recognize a particular piece of code coming from
6807 Heap_Management and change the call to Finalize into Deep_Finalize.
6808 * exp_ch7.adb (Build_Finalization_Collection): Allow the creation of
6809 finalization collections on .NET/JVM only for types derived from
6810 Controlled. Separate the association of storage pools with a collection
6811 and only allow it on non-.NET/JVM targets.
6812 (Make_Attach_Call): New routine.
6813 (Make_Detach_Call): New routine.
6814 (Process_Object_Declarations): Suppress the generation of
6815 build-in-place return object clean up code on .NET/JVM since it uses
6816 pools.
6817 * exp_ch7.ads (Make_Attach_Call): New routine.
6818 (Make_Detach_Call): New routine.
6819 * exp_intr.adb Add with and use clause for Targparm.
6820 (Expand_Unc_Deallocation): Detach a controlled object from a collection
6821 on .NET/JVM targets.
6822 * rtsfind.ads: Add entries RE_Attach, RE_Detach and
6823 RE_Root_Controlled_Ptr to tables RE_Id and RE_Unit_Table.
6824 * snames.ads-tmpl: Add name Name_Prev. Move Name_Prev to the special
6825 names used in finalization.
6826
68272011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
6828
6829 * a-fihema.adb: Add with and use clauses for System.Soft_Links.
6830 (Attach, Detach): Lock the current task when chaining an object onto a
6831 collection.
6832
df3e68b1
HK
68332011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
6834
6835 * a-except.adb, a-except-2005.adb (Raise_From_Controlled_Operation):
6836 Rewritten to create the message strings when the exception is not
6837 raised by an abort during finalization.
6838 * a-except.ads, a-except-2005.ads: Add pragma Export for procedure
6839 Raise_From_Controlled_Operation and update its associated comment.
6840 * a-fihema.ads, a-fihema.adb: New GNAT unit.
6841 Ada.Finalization.Heap_Management provides key functionality
6842 associated with controlled objects on the heap, their creation,
6843 finalization and reclamation. Type Finalization_Collection is
6844 effectively a wrapper which sits ontop of a storage pool and performs
6845 all necessary bookkeeping for all the objects it contains. Each
6846 access-to-controlled or access-to-class-wide type receives a collection
6847 as part of its expansion. The compiler generates buffer code and
6848 invokes Allocate / Deallocate to create and destroy allocated
6849 controlled objects.
6850 * a-finali.adb ("="): Removed.
6851 * a-finali.ads ("="): Removed. Controlled types no longer carry hidden
6852 fields Prev and Next.
6853 * ali.adb (Scan_ALI): Add parsing code to process PF / Has_Finalizer.
6854 A library unit with at least one controlled object on the library level
6855 has a special finalizer which is invoked by the binder. To signal this,
6856 ali files carry field PF.
6857 * ali.ads: New field in type Unit_Record called Has_Finalizer. Add
6858 associated comment on field usage.
6859 * a-tags.adb (Get_RC_Offset): Removed.
6860 (Needs_Finalization): New routine.
6861 * a-tags.ads: Update the structure of the GNAT dispatch tables.
6862 Dispatch tables now carry field Needs_Finalization which provides
6863 runtime indication whether a type is controlled or has controlled
6864 components or both. Remove field RC_Offset.
6865 (Get_RC_Offset): Removed along with its associated pragma Export.
6866 Since tagged types with controlled components no longer carry hidden
6867 field _controller, the special mechanism to retrieve its location is no
6868 longer needed.
6869 (Needs_Finalization): New routine.
6870 * atree.ads, atree.adb (Elist24): New routine.
6871 (Set_Elist24): New routine.
6872 * atree.h: Add a define clause for Elist24.
6873 * bindgen.adb New library-level variable Lib_Final_Built.
6874 (Gen_Adafinal_Ada): Reimplemented. Depending on the restrictions or the
6875 presence of a VM target, the routine generates calls to the proper
6876 library finalization routine.
6877 (Gen_Adainit_Ada): Import Finalize_Library_Objects only on non-VM
6878 targets. Set the correct library finalization routine depending on
6879 whether the library has controlled objects or this is a VM compilation.
6880 (Gen_Finalize_Library_Ada): New routine. This procedure generates calls
6881 to library-level finalizers of compiled units in reverse order of
6882 elaboration. It also produces exception management code and reraises a
6883 potential exception after all units have been finalized.
6884 (Gen_Finalize_Library_C): New routine. This procedure generates calls to
6885 library-level finalizers of compiled units in reverse order of
6886 elaboration.
6887 (Gen_Finalize_Library_Defs_C): New routine. This procedure generates the
6888 definitions of all library-level finalizers available to the compilation
6889 (Gen_Main_Ada): Directly call Adafinal which now contails all target
6890 dependent code.
6891 (Gen_Main_C): Add new local constant Needs_Library_Finalization. Call
6892 System.Standard_Library.Adafinal directly. If the library needs
6893 finalization actions, create the sequence of finalization calls.
6894 (Gen_Output_File_Ada): Alphabetize local variables and constants.
6895 Generate a with clause for System.Soft_Links when compiling for a VM.
6896 Remove the code which imports System.Standard_Library.Adafinal as
6897 Do_Finalize. Generate the library finalization routine.
6898 (Gen_Output_File_C): Add new local constant Needs_Library_Finalization.
6899 If the library needs finalization actions, create all the definitions
6900 of library- level finalizers.
6901 (Has_Finalizer): New routine. Determines whether at least one compiled
6902 unit has a library-level finalizer.
6903 Add type Qualification_Mode.
6904 (Set_Unit_Name): Add a formal which controls the replacement of a dot.
6905 * einfo.adb: New usage of field 15 as Return_Flag.
6906 Remove Finalization_Chain_Entity from the usages of field 19.
6907 Remove Associated_Final_Chain from the usages of field 23.
6908 New usage of field 23 as Associated_Collection.
6909 New usage of field 24 as Finalizer.
6910 New usage of flag 252 as Is_Processed_Transient.
6911 (Associated_Final_Chain): Removed.
6912 (Associated_Collection): New routine.
6913 (Finalization_Chain_Entity): Removed.
6914 (Finalizer): New routine.
6915 (Is_Finalizer): New routine.
6916 (Is_Processed_Transient): New routine.
6917 (Return_Flag): New routine.
6918 (Set_Associated_Final_Chain): Removed.
6919 (Set_Associated_Collection): New routine.
6920 (Set_Finalization_Chain_Entity): Removed.
6921 (Set_Finalizer): New routine.
6922 (Set_Is_Processed_Transient): New routine.
6923 (Set_Return_Flag): New routine.
6924 (Write_Entity_Flags): Include Is_Processed_Transient to the list of
6925 displayed flags.
6926 (Write_Field8_Name): Alphabetize the output.
6927 (Write_Field11_Name): Alphabetize the output.
6928 (Write_Field12_Name): Alphabetize the output.
6929 (Write_Field13_Name): Alphabetize the output.
6930 (Write_Field14_Name): Alphabetize the output.
6931 (Write_Field15_Name): Alphabetize the output.
6932 (Write_Field16_Name): Alphabetize the output.
6933 (Write_Field17_Name): Alphabetize the output.
6934 (Write_Field18_Name): Alphabetize the output.
6935 (Write_Field19_Name): Alphabetize the output. Remove the output of
6936 Finalization_Chain_Entity.
6937 (Write_Field20_Name): Alphabetize the output.
6938 (Write_Field21_Name): Alphabetize the output.
6939 (Write_Field22_Name): Alphabetize the output.
6940 (Write_Field23_Name): Alphabetize the output. Remove the output of
6941 Associated_Final_Chain. Add output for Associated_Collection.
6942 (Write_Field24_Name): Alphabetize the output.
6943 (Write_Field25_Name): Add output for Finalizer.
6944 (Write_Field26_Name): Alphabetize the output.
6945 (Write_Field27_Name): Alphabetize the output.
6946 (Write_Field28_Name): Alphabetize the output.
6947 * einfo.ads: Add new field description for Associated_Collection and
6948 its uses in nodes.
6949 Remove Associated_Final_Chain and its uses in nodes.
6950 Remove Finalization_Chain_Entity and its uses in nodes.
6951 Add new field description for Finalizer and its uses in nodes.
6952 Add new synthesized attribute Is_Finalizer.
6953 Add new flag description for Is_Processed_Transient and its uses in
6954 nodes.
6955 Add new field description for Return_Flag and its uses in nodes.
6956 (Associated_Final_Chain): Removed along with its pragma Inline.
6957 (Associated_Collection): New routine and pragma Inline.
6958 (Finalization_Chain_Entity): Removed along with its pragma Inline.
6959 (Finalizer): New routine and pragma Inline.
6960 (Is_Finalizer): New routine and pragma Inline.
6961 (Is_Processed_Transient): New routine and pragma Inline.
6962 (Return_Flag): New routine and pragma Inline.
6963 (Set_Associated_Final_Chain): Removed along with its pragma Inline.
6964 (Set_Associated_Collection): New routine and pragma Inline.
6965 (Set_Finalization_Chain_Entity): Removed along with its pragma Inline.
6966 (Set_Finalizer): New routine and pragma Inline.
6967 (Set_Is_Processed_Transient): New routine and pragma Inline.
6968 (Set_Return_Flag): New routine and pragma Inline.
6969 * exp_aggr.adb: Alphabetize subprograms.
6970 (Build_Array_Aggr_Code): Remove formal Flist and its associated comment.
6971 (Build_Record_Aggr_Code): Remove formals Flist and Obj along with their
6972 associated comments. Remove local variables External_Final_List and
6973 Attach.
6974 Rename Ctrl_Stuff_Done to Finalization_Done. Rename local variable A to
6975 Ancestor. Remove the retrieval of finalization lists. Update the call to
6976 Make_Adjust_Call.
6977 (Convert_Aggr_In_Allocator): Remove the retrieval of finalization
6978 lists. Update the call to Late_Expansion.
6979 (Convert_Aggr_In_Assignment): Update the call to Late_Expansion.
6980 (Convert_Aggr_In_Object_Decl): Update the call to Late_Expansion.
6981 (Gen_Assign): Remove the retrieval of the finalization list used to
6982 build the assignment. Update the calls to Make_Init_Call and
6983 Make_Adjust_Call.
6984 (Gen_Ctrl_Actions_For_Aggr): Renamed to Generate_Finalization_Actions.
6985 Remove the mechanism to determine attachment levels and finalization
6986 list retrieval. Remove the processing for coextensions.
6987 (Init_Controller): Removed. Controllers no longer exist.
6988 (Late_Expansion): Remove formals Flist and Obj along with their
6989 associated comments. Update the calls to Build_Record_Aggr_Code and
6990 Build_Array_Aggr_Code.
6991 * exp_ch13.adb (Expand_N_Free_Statement): New routine.
6992 (Expand_N_Freeze_Entity): Add special processing for finalizers which
6993 appear in entry bodies, protected subprograms and task bodies.
6994 * exp_ch13.ads (Expand_N_Free_Statement): New routine.
6995 * exp_ch3.adb (Add_Final_Chain): Removed.
6996 (Build_Array_Init_Proc): Alphabetize local variables.
6997 (Build_Assignment): Alphabetize local variables. Update the call to
6998 Maked_Adjust_Call.
6999 (Build_Class_Wide_Master): Rename local variables to better reflect
7000 their role.
7001 (Build_Discriminant_Assignments): Code reformatting.
7002 (Build_Init_Call_Thru): Code reformatting.
7003 (Build_Init_Procedure): Code reformatting. Generate a special version
7004 of Deep_Finalize which is capable of finalizing all initialized
7005 components and ignore the rest.
7006 (Build_Init_Statements): Rename local variables to better reflect their
7007 role.
7008 Reimplement the mechanism to include the creation and update of an index
7009 variable called a "counter". It is used as a bookmark for tracing
7010 initialized and non-initialized components.
7011 (Build_Initialization_Call): Remove local variable Controller_Typ.
7012 Alphabetize all local variables. Remove the initialization of the
7013 record controller and update the call to Make_Init_Call.
7014 (Build_Record_Init_Proc): Rename formal Pe to Rec_Ent.
7015 New local variable Counter.
7016 (Constrain_Array): Alphabetize.
7017 (Expand_Freeze_Array_Type): Create a collection instead of a
7018 finalization list.
7019 (Expand_Freeze_Class_Wide_Type): New routine. Creates TSS primitive
7020 Finalize_Address which is used in conjunction with allocated controlled
7021 objects.
7022 (Expand_N_Object_Declaration): Remove the creation of a finalization
7023 list for anonymous access types. Update the calls to Make_Init_Call and
7024 Make_Adjust_Call.
7025 (Expand_Freeze_Record_Type): Remove local variable Flist. Remove the
7026 retrieval of finalization lists. Remove the expansion of the record
7027 controller. Create TSS primitive Finalize_Address used in conjunction
7028 with controlled objects on the heap. Create finalization collections
7029 for access-to-controlled record components.
7030 (Expand_Record_Controller): Removed.
7031 (Freeze_Type): Remove the freezing of record controllers. Freezing of
7032 class-wide types now requires additional processing. Create
7033 finalization collections for access-to-controlled types.
7034 (Increment_Counter): New routine.
7035 (Make_Counter): New routine.
7036 (Make_Eq_If): Remove the mention of Name_uController.
7037 (Make_Predefined_Primitive_Specs): There is no longer need to skip
7038 types coming from System.Finalization_Root.
7039 (Predef_Deep_Spec): Reimplemented to reflect the new parameter profiles.
7040 (Predefined_Primitive_Bodies): There is no longer need to skip types
7041 coming from System.Finalization_Root.
7042 (Stream_Operation_OK): Do not generate stream routines for
7043 type Ada.Finalization.Heap_Management.Finalization_Collection.
7044 * exp_ch3.ads: Alphabetize subprograms.
7045 * exp_ch4.adb: Remove with and use clause for Sem_Ch8.
7046 Add with and use clause for Lib.
7047 (Complete_Coextension_Finalization): Removed.
7048 (Complete_Controlled_Allocation): New routine. Create a finalization
7049 collection for anonymous access-to-controlled types. Create a custom
7050 Allocate which interfaces with the back end and the machinery in
7051 Heap_Management.
7052 (Expand_Allocator_Expression): Add necessary calls to
7053 Complete_Controlled_Allocation. Remove the retrieval of finalization
7054 lists. Update the calls to Make_Adjust_Call. Generate a call to
7055 Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate
7056 the associated collection.
7057 (Expand_N_Allocator): Remove the processing for dynamic coextensions.
7058 Code clean up. Remove the retrieval of finalization lists and
7059 attachment levels.
7060 Update the call to Make_Init_Call. Generate a call to
7061 Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate
7062 the associated collection.
7063 (Get_Allocator_Final_List): Removed. Finalization lists are not
7064 available.
7065 (Suitable_Element): Remove the mention of Name_uController.
7066 * exp_ch5.adb: Remove with and use clauses for Ttypes and Uintp.
7067 (Make_Tag_Ctrl_Assignment): Rewritten to simply do a finalization of
7068 the left hand side, carry out the assignment and adjust the left hand
7069 side.
7070 * exp_ch6.adb (Add_Final_List_Actual_To_Build_In_Place_Call): Removed.
7071 (Add_Collection_Actual_To_Build_In_Place_Call): New routine.
7072 (BIP_Formal_Suffix): Rename BIP_Final_List and BIPfinallist to
7073 BIP_Collection and BIPcollection.
7074 (Build_Heap_Allocator): New routine used to allocate the return object
7075 of a build-in-place function onto a collection.
7076 (Expand_Ctrl_Function_Call): Moved from Exp_Ch7.
7077 (Expand_Call): Do not replace direct calls to Deep routines with their
7078 aliases.
7079 (Expand_N_Extended_Return_Statement): Give all variables shorter names
7080 and update their occurrences. Add a special return flag to monitor the
7081 [ab]normal execution of the function. The flag is set right before the
7082 return statement.
7083 Rewrite the mechanism used to allocate a build-in-place return object
7084 on the heap or on a storage pool.
7085 (Is_Direct_Deep_Call): New routine.
7086 (Make_Build_In_Place_Call_In_Allocator): Add a collection to a
7087 build-in-place function call instead of a final list. Build a call to
7088 Set_Finalize_Address_Ptr to decorate the associated collection.
7089 (Make_Build_In_Place_Call_In_Anonymous_Context): Create a temporary in
7090 order to name the build-in-place function call's result for later
7091 finalization. Add a collection to a build-in-place function call
7092 instead of a final list.
7093 (Make_Build_In_Place_Call_In_Assignment): Add a collection to a
7094 build-in-place function call instead of a final list. Remove the code
7095 which moves one final list and transforms it into the actual in a
7096 nested build-in-place call.
7097 (Make_Build_In_Place_Call_In_Object_Declaration): Add a collection to a
7098 build-in-place function call instead of a final list.
7099 (Move_Final_List): Removed.
7100 (Needs_BIP_Collection): New routine.
7101 (Needs_BIP_Final_List): Removed.
7102 * exp_ch6.ads: Replace BIP_Final_List with BIP_Collection in
7103 enumeration type BIP_Formal_Kind.
7104 Update the related comment.
7105 (Needs_BIP_Collection): New routine.
7106 (Needs_BIP_Final_List): Removed.
7107 * exp_ch7.adb: Add with and use clauses for Elists, Exp_Ch6, Stringt
7108 and Ttypes. Remove with and use clauses for Sem_Type. Alphabetize the
7109 majority of subprograms in this unit. Add Name_Finalize_Address to
7110 array Name_Of and TSS_Finalize_Address to array Deep_Name_Of.
7111 (Build_Adjust_Or_Finalize_Statements): Create the adjust or finalization
7112 statements for an array type.
7113 (Build_Adjust_Statements): Create the adjust statements for a record
7114 type.
7115 (Build_Cleanup_Statements): New routine. A procedure which given any
7116 construct containing asynchronous calls, references to _master, or is a
7117 task body, a task allocation or a protected body produces the necessary
7118 runtime calls to clean up these constructs.
7119 (Build_Exception_Handler): New routine.
7120 (Build_Final_List): Removed.
7121 (Build_Finalization_Collection): New routine. A core procedure which
7122 creates a collection to service heap allocated controlled objects
7123 associated with an access-to-controlled type.
7124 (Build_Finalize_Statements): Create the finalization statements for a
7125 record types.
7126 (Build_Finalizer): New routine. A core procedure which given any
7127 construct with declarations and/or statements detects all objects which
7128 need any type of clean up (controlled objects, protected objects) and
7129 generates all necessary code to clean up the said objects in the proper
7130 order.
7131 (Build_Finalizer_Call): New routine.
7132 (Build_Initialize_Statements): Create the initialization statements for
7133 an array type. The generated routine contains code to finalize partially
7134 initialized arrays.
7135 (Build_Object_Declarations): New routine.
7136 (Build_Raise_Statement): New routine.
7137 (Clean_Simple_Protected_Objects): Removed.
7138 (Controller_Component): Removed.
7139 (Enclosing_Function): New routine.
7140 (Expand_Cleanup_Actions): Create a finalizer for a construct which has
7141 either declarations or statements or both.
7142 (Expand_N_Package_Body): Create a finalizer for a non-generic package.
7143 (Expand_N_Package_Declaration): Create a finalizer for a non-generic
7144 package.
7145 (Find_Final_List): Removed.
7146 (Global_Flist_Ref): Removed.
7147 (In_Finalization_Root): Removed.
7148 (Insert_Actions_In_Scope_Around): Determine the range of the transient
7149 scope in terms of tree nodes. Process all transient variables within
7150 that range.
7151 (Make_Adjust_Call): Rewritten. There is no longer an attach call
7152 generated after the adjust.
7153 (Make_Attach_Call): Removed.
7154 (Make_Call): New routine.
7155 (Make_Clean): Removed.
7156 (Make_Deep_Array_Body): Rewritten to simply invoke the appropriate
7157 build routines.
7158 (Make_Deep_Proc): Rewritten to generate the new profile signature used
7159 in Deep routines.
7160 (Make_Deep_Record_Body): Rewritten to simply invoke the appropriate
7161 build routines.
7162 (Make_Final_Call): Modified to simply create a call to either
7163 Deep_Finalize or Finalize.
7164 (Make_Finalize_Address_Body): New routine.
7165 (Make_Finalize_Address_Stmts): New routine. A function which produces
7166 TSS primitive Finalize_Address used in conjunction with heap allocated
7167 controlled objects.
7168 (Make_Handler_For_Ctrl_Operation): Add specialized code for .NET/JVM.
7169 (Make_Init_Call): Rewritten. There is no longer an attach call
7170 generated after initialization.
7171 (Make_Local_Deep_Finalize): New routine.
7172 (Make_Set_Finalize_Address_Ptr_Call): New routine.
7173 (Make_Transient_Block): Remove the finalization list retrieval and
7174 manipulation.
7175 (Needs_Finalization): Moved to Exp_Util.
7176 (Parent_Field_Type): New routine.
7177 (Preprocess_Components): New routine.
7178 (Process_Transient_Objects): New routine.
7179 (Wrap_HSS_In_Block): New routine.
7180 (Wrap_Transient_Declaration): Remove finalization list management and
7181 controller insertion.
7182 (Wrap_Transient_Expression): Code reformatting.
7183 (Wrap_Transient_Statement): Code reformatting.
7184 * exp_ch7.ads (Build_Final_List): Removed.
7185 (Build_Finalization_Collection): New routine.
7186 (Build_Raise_Statement): New routine.
7187 (Controller_Component): Removed.
7188 (Expand_Ctrl_Function_Call): Moved to Exp_Ch6.
7189 (Find_Final_List): Removed.
7190 (In_Finalization_Root): Removed.
7191 (Is_Simple_Protected_Type): Update related comment.
7192 (Make_Adjust_Call): New parameter profile and associated comments.
7193 (Make_Attach_Call): Removed.
7194 (Make_Final_Call): New parameter profile and associated comments.
7195 (Make_Finalize_Address_Body): New routine.
7196 (Make_Init_Call): New parameter profile and associated comments.
7197 (Make_Local_Deep_Finalize): New routine.
7198 (Make_Set_Finalize_Address_Ptr_Call): New routine.
7199 (Needs_Finalization): Moved to Exp_Util.
7200 * exp_ch9.adb (Add_Object_Pointer): Code reformatting.
7201 (Expand_N_Protected_Body): Remove the handling of finalization lists.
7202 (Find_Protection_Type): Moved to Exp_Util.
7203 * exp_disp.adb: Remove with and use clauses for Exp_Ch7.
7204 (Make_DT): Update sequence of dispatch table initialization. Remove the
7205 initialization of field RC_Offset. Add initialization of field Needs_
7206 Finalization.
7207 * exp_intr.adb (Expand_Unc_Deallocation): Code reformatting.
7208 Reimplement how an object is first finalized, then deallocated.
7209 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function):
7210 Code reformatting.
7211 * exp_tss.ads: Add special suffix for TSS primitive Finalize_Address.
7212 Register TSS_Finalize_Address with type TSS_Names.
7213 * exp_util.adb (Build_Allocate_Deallocate_Proc): New routine. This core
7214 procedure provides the interface between an allocation / deallocation
7215 and the support machinery in Ada.Finalization.Heap_Management.
7216 (Find_Init_Call): Code reformatting.
7217 (Find_Init_Call_In_List): Code reformatting.
7218 (Find_Protection_Type): Moved from Exp_Ch9.
7219 (Find_Prim_Op): Reimplement to add preference of recovered primitive.
7220 (Has_Controlled_Coextensions): Removed.
7221 (Has_Controlled_Objects): New routine.
7222 (In_Library_Level_Package_Body): New routine.
7223 (Insert_Action_After): New routine.
7224 (Is_Finalizable_Transient): New routine. This predicate determines
7225 whether an object declaration is one of the many variants of controlled
7226 transients.
7227 (Is_Null_Access_BIP_Func_Call): New routine.
7228 (Is_Non_BIP_Func_Call): New routine.
7229 (Is_Related_To_Func_Return): New routine.
7230 (Needs_Finalization): Moved from Exp_Ch7.
7231 * exp_util.ads (Build_Allocate_Deallocate_Proc): New routine.
7232 (Find_Protection_Type): Moved from Exp_Ch9.
7233 (Has_Controlled_Coextensions): Removed.
7234 (Has_Controlled_Objects): New routine.
7235 (In_Library_Level_Package_Body): New routine.
7236 (Insert_Action_After): New routine.
7237 (Is_Finalizable_Transient): New routine.
7238 (Is_Null_Access_BIP_Func_Call): New routine.
7239 (Is_Non_BIP_Func_Call): New routine.
7240 (Is_Related_To_Func_Return): New routine.
7241 (Needs_Finalization): Moved from Exp_ch7.
7242 * expander.adb (Expand): Add a case for N_Free_Statement.
7243 * freeze.adb (Freeze_All): Replace the generation of a finalization
7244 list with a collection for access-to-controlled types.
7245 (Freeze_Entity): Code reformatting.
7246 (Freeze_Record_Type): Remove the freezing of a record controller
7247 component.
7248 (Freeze_Subprogram): Code reformatting.
7249 * inline.adb (Cleanup_Scopes): Remove the reset of the scope
7250 finalization list.
7251 * lib-writ.adb (Write_Unit_Information): Output "PF" when a package
7252 has a library-level finalizer.
7253 * lib-writ.ads: Add "PF" to the sequence of unit attributes.
7254 * a-filico.ads, a-filico.adb, s-finimp.ads, s-finimp.adb: Removed.
7255 * Makefile.rtl: Remove a-filico and s-finimp from the list of object
7256 files. Add a-fihema to the list of object files.
7257 * par-ch4.adb:
7258 Alphabetize the associations in type Is_Parameterless_Attribute.
7259 * rtsfind.ads: Ada.Finalization_List.Controller and
7260 System.Finalization_Implementation are no longer a GNAT unit.
7261 Update the range of type Ada_Finalization_Child. Remove the following
7262 recoverable entities:
2c7f9cc0 7263
df3e68b1
HK
7264 RE_Attach_To_Final_List
7265 RE_Deep_Tag_Attach
7266 RE_Finalize_List
7267 RE_Finalize_One
7268 RE_Finalizable_Ptr_Ptr
7269 RE_Global_Final_List
7270 RE_Limited_Record_Controller
7271 RE_List_Controller
7272 RE_Move_Final_List
7273 RE_Record_Controller
7274 RE_Simple_List_Controller
2c7f9cc0 7275
df3e68b1 7276 Add the following recoverable entities:
2c7f9cc0 7277
df3e68b1
HK
7278 RE_Add_Offset_To_Address
7279 RE_Allocate
7280 RE_Base_Pool
7281 RE_Deallocate
7282 RE_Exception_Identity
7283 RE_Finalization_Collection
7284 RE_Finalization_Collection_Ptr
7285 RE_Needs_Finalization
7286 RE_Save_Library_Occurrence
7287 RE_Set_Finalize_Address_Ptr
7288 RE_Set_Storage_Pool_Ptr
7289 RE_Storage_Count
7290 * sem_aggr.adb (Resolve_Record_Aggregate): Remove mention of
7291 Name_uController.
7292 * sem_aux.adb (First_Discriminant): Remove mention of Name_uController.
7293 (First_Stored_Discriminant): Remove the mention of Name_uController.
7294 * sem_aux.ads: Comment reformatting.
7295 * sem_ch10.adb (Build_Chain): Signal the class-wide creation machinery
7296 to redecorate an already existing class-wide type.
7297 (Decorate_Tagged_Type): New parameter profile and associated comment.
7298 Create a "shadow class-wide type" for a shadow entity.
7299 * sem_ch11.adb (Analyze_Exception_Handlers): Remove the dubious setting
7300 of the final chain along with the associated comment.
7301 * sem_ch3.adb (Access_Type_Declaration): Add new local variable
7302 Full_Desig and set it to the full view of the designated type.
7303 Initialize the finalization collection to empty.
7304 (Build_Derived_Record_Type): Alphabetize local variables. Code
7305 reformatting.
7306 (Collect_Fixed_Components): Remove the mention of Name_uController.
7307 (Create_Constrained_Components): Remove the mention of Name_uController.
7308 (Make_Class_Wide_Type): Add specialized code to redecorate an existing
7309 class-wide type of a shadow entity.
7310 (Process_Full_View): Update the machinery which marks type
7311 Limited_Controlled's entity as limited.
7312 * sem_ch4.adb (Analyze_One_Call): Code reformatting.
7313 * sem_ch6.adb (Create_Extra_Formals): Do not generate a finalization
7314 list, instead make a collection build-in-place formal.
7315 * sem_ch8.adb (Analyze_Object_Renaming): Look at the available view of
7316 a designated type in order to establish a match between the renaming
7317 and the renamed entity.
7318 (Find_Selected_Component): Add guard to prevent spurious exceptions
7319 from being raised on .NET/JVM.
7320 * sem_disp.adb (Check_Dispatching_Operation): Include Finalize_Address
7321 to the list of primitive that need special processing. Update arrays
7322 C_Names and D_Names.
7323 (Replace_Types): Handle class-wide types.
7324 * sem_elab.adb (Check_A_Call): Since Deep_Initialize now has a
7325 different parameter profile, look at the first formal.
7326 * sem_prag.adb: Remove with and use clauses for Exp_Ch7. Add with and
7327 use clauses for Exp_Util.
7328 * sem_res.adb: Remove with and use clauses for Elists.
7329 (Propagate_Coextensions): Removed.
7330 (Resolve_Allocator): Do not propagate the list of coextensions from one
7331 allocator to another.
7332 * sem_util.adb (Build_Actual_Subtype_Of_Component): Rename variable
7333 Deaccessed_T to Desig_Typ.
7334 (Enter_Name): Remove the mention of Name_uController.
7335 (Gather_Components): Remove the mention of Name_uController.
7336 (Incomplete_Or_Private_View): New routine.
7337 (Is_Coextension_Root): Removed.
7338 (Is_Fully_Initialized_Type): Remove the mention of Name_uController.
7339 * sem_util.ads (Incomplete_Or_Private_View): New routine.
7340 (Is_Coextension_Root): Removed.
7341 * s-finroo.ads: Remove with clause for Ada.Unchecked_Conversion.
7342 Controlled types are now derived from a null tagged record. Remove
7343 types Finalizable_Ptr, Finalizable and Empty_Root_Controlled.
7344 * sinfo.adb (Coextensions): Removed.
7345 (Set_Coextensions): Removed.
7346 * sinfo.ads: Remove Coextensions from the explanation of node fields
7347 and its uses in nodes.
7348 Update the field usage of N_Allocator.
7349 (Coextensions): Removed along with its pragma Inline.
7350 (Set_Coextensions): Removed along with its pragma Inline.
7351 * snames.ads-tmpl: Remove names
2c7f9cc0 7352
df3e68b1
HK
7353 Name_uClean
7354 Name_uController
7355 Name_uFinal_List
7356 Name_uLocal_Final_List
7357 Name_Finalization_Root
7358 Name_Next
7359 Name_Prev
2c7f9cc0 7360
df3e68b1 7361 Add names
2c7f9cc0 7362
df3e68b1
HK
7363 Name_uFinalizer
7364 Name_Finalize_Address
7365 * s-pooglo.adb (Allocate): Add overriding indicator.
7366 (Deallocate): Add overriding indicator.
7367 (Storage_Size): Add overriding indicator.
7368 * s-soflin.adb (Adafinal_NT): Invoke Finalize_Library_Objects rather
7369 than Finalize_Global_List.
7370 (Null_Finalize_Global_List): Removed.
7371 (Save_Library_Occurrence): New routine.
7372 * s-soflin.ads: Remove variable Finalize_Global_List along with its
7373 initialization. Add variable Finalize_Library_Objects along with its
7374 pragma Export. Add variables Library_Exception and
7375 Library_Exception_Set along with their pragma Export.
7376 (Null_Finalize_Global_List): Removed.
7377 (Save_Library_Occurrence): New routine.
7378 * s-tassta.adb (Finalize_Global_Tasks): Call Finalize_Library_Objects
7379 rather than Finalize_Global_List.
7380 * tbuild.adb (Unchecked_Convert_To): Capture and set the parent field
7381 of the constructed node.
7382
2ee06322
RO
73832011-08-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7384
7385 * link.c: Include "auto-host.h" before system headers.
7386
f77b022b
VC
73872011-08-03 Vincent Celier <celier@adacore.com>
7388
7389 * make.adb (Gnatmake): Add to table Library_Projs only library projects
7390 that are not extended. Do not check if a library project that is
7391 extended should be regenerated. Do not add to table Library_Paths the
7392 libraries that are in extended projects. Link only with libraries that
7393 are in libray projects that are not extended.
7394 * prj-nmsc.adb (Check_Library_Attributes): Do not reset flag Library
7395 for a library project that is extended.
7396
0187b60e
AC
73972011-08-03 Gary Dismukes <dismukes@adacore.com>
7398
7399 * sem_ch6.adb (Find_Corresponding_Spec): When in an instance, skip
7400 conforming subprogram renamings that appear to be completions if they
7401 are not fully conformant.
7402 Such renamings are homographs but not completions.
7403 * sem_type.adb (Disambiguate): Handle disambiguation of overloaded
7404 names in a subprogram renaming that appears in an instance.
7405
74062011-08-03 Ed Schonberg <schonberg@adacore.com>
7407
7408 * exp_util.adb (Expand_Subtype_From_Expr): if the type is limited but
7409 not immutably limited, build actual subtype from expression to provide
7410 proper bounds to caller.
7411
74122011-08-03 Gary Dismukes <dismukes@adacore.com>
7413
7414 * sem_ch8.adb: Minor comment correction.
7415
74162011-08-03 Thomas Quinot <quinot@adacore.com>
7417
7418 * exp_strm.adb (Build_Array_Input_Function): In Ada 2005 mode, when
7419 returning a limited array, use an extended return statement.
7420
74212011-08-03 Vincent Celier <celier@adacore.com>
7422
7423 * make.adb (Initialize): If --subdirs= is used, but no project file is
7424 specified, attempt to create the specify subdir if it does not already
7425 exist and use it as the object directory as if -D had been specified.
7426
74272011-08-03 Arnaud Charlet <charlet@adacore.com>
7428
7429 * s-tpopsp-vms.adb: New file.
7430 * s-taprop-vms.adb: Put back ATCB_Key, since needed by this file on VMS.
7431 * gcc-interfaces/Makefile.in: Use s-taprop-vms.adb on VMS.
7432
e280f981
AC
74332011-08-03 Emmanuel Briot <briot@adacore.com>
7434
7435 * make.adb, makeutl.adb, makeutl.ads, clean.adb (Makeutl.Queue): new
7436 package.
7437
74382011-08-03 Yannick Moy <moy@adacore.com>
7439
7440 * cstand.adb (Create_Standard): select Universal_Integer as an ALFA type
7441 * sem_ch3.adb (Array_Type_Declaration): detect array types in ALFA
7442 * sem_util.adb, sem_util.ads (Has_Static_Array_Bounds): new function to
7443 detect that an array has static bounds.
7444
98c99a5a
AC
74452011-08-03 Thomas Quinot <quinot@adacore.com>
7446
7447 * exp_dist.adb: Minor reformatting.
7448
74492011-08-03 Arnaud Charlet <charlet@adacore.com>
7450
7451 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-vms.adb
7452 (ATCB_Key): Removed, not always used.
7453
74542011-08-03 Emmanuel Briot <briot@adacore.com>
7455
7456 * gnatcmd.adb, make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads,
7457 clean.adb, prj-conf.adb, prj-env.adb, prj-env.ads (Makeutl): remove
7458 most remaining global variables.
7459
686d0984
AC
74602011-08-03 Robert Dewar <dewar@adacore.com>
7461
7462 * gnatcmd.adb, prj-proc.adb, mlib-prj.adb, prj.adb, makeutl.ads,
7463 prj-util.adb, prj-util.ads, prj-conf.adb, prj-env.adb: Minor
7464 reformatting.
7465
74662011-08-03 Javier Miranda <miranda@adacore.com>
7467
7468 * exp_util.adb (Is_VM_By_Copy_Actual): Include N_Slide nodes as actuals
7469 that must be passed by copy in VM targets.
7470
74712011-08-03 Emmanuel Briot <briot@adacore.com>
7472
7473 * prj.ads, prj-nmsc.adb (Files_Htable): removed this htable, which
7474 duplicates a similar htable now in the project tree.
7475
74762011-08-03 Claire Dross <dross@adacore.com>
7477
7478 * a-cfdlli.adb, a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb,
7479 a-cofove.adb ("=", Length, Is_Empty, Clear, Assign, Copy, Element,
7480 Replace_Element, Query_Element, Update_Element, Move, Insert, Prepend,
7481 Append, Delete, Delete_First, Delete_Last, Reverse_Element, Swap,
7482 Splice, First, First_Element, Last, Last_Element, Next, Previous, Find,
7483 Reverse_Find, Contains, Has_Element, Iterate, Reverse_Iterate, Capacity,
7484 Reserve_Length, Length, Strict_Equal, Left, Right): Data-structure
7485 update.
7486
74872011-08-03 Arnaud Charlet <charlet@adacore.com>
7488
7489 * s-taprop-posix.adb, s-taprop-linux.adb, s-taprop-tru64.adb
7490 (ATCB_Key): Removed, not always used.
7491 * s-tpopsp-posix.adb, s-tpopsp-posix-foreign.adb (ATCB_Key): Moved from
7492 s-taprop-posix.adb.
7493 * s-tpopsp-tls.adb: New file.
7494 * gcc-interface/Makefile.in: Use TLS implementation of s-tpopsp.adb on
7495 x86/x64/ia64/powerpc/sparc Linux.
7496
74972011-08-03 Arnaud Charlet <charlet@adacore.com>
7498
7499 * system-aix.ads, system-aix64.ads: Set ZCX_By_Default to True.
7500 * gcc-interface/Makefile.in: Switch to ZCX by default on AIX ports.
7501
75022011-08-03 Thomas Quinot <quinot@adacore.com>
7503
7504 * rtsfind.ads, exp_dist.adb, exp_dist.ads
7505 (Build_From_Any_Call, Build_To_Any_Call, Build_TypeCode_Call):
7506 Fix type selection for mapping integer types to PolyORB types.
7507
75082011-08-03 Bob Duff <duff@adacore.com>
7509
7510 * sem_ch7.adb: Minor comment clarification.
7511
75122011-08-03 Bob Duff <duff@adacore.com>
7513
7514 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): If we get
7515 an error analyzing a choice, skip further processing. Further
7516 processing could cause a crash or cascade errors.
7517
40ecf2f5
EB
75182011-08-03 Emmanuel Briot <briot@adacore.com>
7519
7520 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, mlib-prj.adb,
7521 prj.adb, prj.ads, makeutl.adb, makeutl.ads, clean.adb, prj-nmsc.adb,
7522 prj-util.adb, prj-util.ads, prj-conf.adb, prj-conf.ads, prj-env.adb,
7523 prj-env.ads (Shared_Project_Tree_Data): new type
7524 An aggregate project and its aggregated trees need to share the common
7525 data structures used for lists of strings, packages,... This makes the
7526 code simpler since otherwise we have to pass the root tree (also used
7527 for the configuration file data) in addition to the current project
7528 tree. This also avoids ambiguities as to which tree should be used.
7529 And finally this saves a bit of memory.
7530 (For_Every_Project_Imported): new parameter Tree.
7531 Since aggregated projects are using a different tree, we need to let
7532 the caller know which tree to use to manipulate the returned project.
7533
9fde638d
RD
75342011-08-03 Robert Dewar <dewar@adacore.com>
7535
7536 * prj-proc.adb, exp_util.ads, exp_ch9.adb, make.adb, prj-ext.adb,
7537 prj-ext.ads, alfa.ads, sem_ch4.adb, makeutl.adb, makeutl.ads,
7538 lib-xref-alfa.adb, sem_cat.adb, exp_dist.adb, get_alfa.adb,
7539 prj-env.adb, prj-env.ads, prj-tree.adb, alfa.ads: Minor reformatting.
7540
95eb8b69
AC
75412011-08-03 Javier Miranda <miranda@adacore.com>
7542
7543 * exp_util.adb, sem_aux.adb, exp_util.ads, sem_aux.ads:
7544 Move routine Is_VM_By_Copy_Actual from sem_aux to exp_util.
7545
75462011-08-03 Bob Duff <duff@adacore.com>
7547
7548 * sem_ch8.adb (Is_Primitive_Operator_In_Use): Always check In_Use on
7549 the Base_Type.
7550
75512011-08-03 Joel Brobecker <brobecker@adacore.com brobecker>
7552
7553 * g-sha256.ads, g-sha512.ads, g-sha1.ads, g-sha224.ads, g-sha384.ads,
7554 g-sehash.ads: Fix typo. Update header.
7555
75562011-08-03 Thomas Quinot <quinot@adacore.com>
7557
7558 * exp_ch6.adb (Expand_Actuals): Remove Ada_2005 guard on build-in-place
7559 expansion.
7560
75612011-08-03 Gary Dismukes <dismukes@adacore.com>
7562
7563 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): Consider
7564 prefixes of private types along with records, since the selector may be
7565 a discriminant.
7566 * sem_res.adb (Resolve_Selected_Component): Consider prefixes of
7567 private types along with records, since the selector may be a
7568 discriminant.
7569
92e77027
AC
75702011-08-03 Emmanuel Briot <briot@adacore.com>
7571
b2f7ebc1 7572 * prj-pp.adb (Pretty_Print): Remove trailing blank line.
92e77027
AC
7573
75742011-08-03 Javier Miranda <miranda@adacore.com>
7575
7576 * sem_aux.adb (Is_VM_By_Copy_Actual): Fix wrong use of
7577 Tagged_Type_Expansion.
7578
75792011-08-03 Yannick Moy <moy@adacore.com>
7580
b2f7ebc1
GP
7581 * sem_res.adb (Resolve_Op_Concat_Arg): Do not issue a SPARK
7582 violation when the argument of concatenation is the name of a
7583 constant.
92e77027 7584
ab29a348
EB
75852011-08-03 Emmanuel Briot <briot@adacore.com>
7586
7587 * prj-proc.adb, prj-ext.adb, prj-ext.ads, prj-env.adb, prj-env.ads,
7588 prj-tree.adb, prj-tree.ads (Initialize_And_Copy, Copy): new subprograms
7589 (Process_Declarative_Items): new parameter Child_Env.
7590
9466892f
AC
75912011-08-03 Yannick Moy <moy@adacore.com>
7592
589ef536
GP
7593 * alfa.ads: Update format of ALFA section in ALI file in order to
7594 add a mapping from bodies to specs when both are present.
7595 (ALFA_Scope_Record): Add components for spec file/scope.
7596 * get_alfa.adb (Get_ALFA): Read the new file/scope for spec when
7597 present.
7598 * lib-xref-alfa.adb (Collect_ALFA): After all scopes have been
7599 collected, fill in the spec information when relevant.
7600 * put_alfa.adb (Put_ALFA): Write the new file/scope for spec when
9466892f
AC
7601 present.
7602
76032011-08-03 Eric Botcazou <ebotcazou@adacore.com>
7604
7605 * inline.adb (Add_Inlined_Subprogram): Do not consider the enclosing
7606 code unit to decide whether to add internally generated subprograms.
2c7f9cc0 7607
9466892f
AC
76082011-08-03 Javier Miranda <miranda@adacore.com>
7609
7610 * sem_aux.ads, sem_aux.adb (Is_VM_By_Copy_Actual): New subprogram.
589ef536
GP
7611 * exp_ch9.adb (Build_Simple_Entry_Call): Handle actuals that must
7612 be handled by copy in VM targets.
9466892f
AC
7613
76142011-08-03 Emmanuel Briot <briot@adacore.com>
7615
589ef536 7616 * make.adb, makeutl.adb, makeutl.ads (Make.Switches_Of): Share
9466892f
AC
7617 code with Makeutl.Get_Switches.
7618 * prj-tree.adb: Update comment.
7619
b5ea9143
AC
76202011-08-03 Thomas Quinot <quinot@adacore.com>
7621
7622 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Reject a remote
7623 subprogram with a limited formal that does not support external
7624 streaming.
7625
76262011-08-03 Yannick Moy <moy@adacore.com>
7627
7628 * get_alfa.adb (Get_ALFA): add missing Skip_Spaces at start of
7629 continuation line
7630 * lib-xref-alfa.adb (Add_ALFA_File): split removal of scopes that are
7631 not from current unit in two phases, because it is not possible to
7632 change the table while iterating over its content.
7633 * put_alfa.adb (Put_ALFA): reset current file/scope at each new entity
7634
76352011-08-03 Sergey Rybin <rybin@adacore.com>
7636
7637 * vms_data.ads: Add qualifier for gnatmetric --no-static-loop option
7638 * gnat_ugn.texi: Update description of complexity metrics (gnatmetric)
7639
668a19bc
ES
76402011-08-03 Ed Schonberg <schonberg@adacore.com>
7641
7642 * sem_res.adb (Resolve_Op_Concat_Arg): if the argument is an aggregate
7643 and the component type is composite, this is ambiguous for predefined
7644 concatenation, but if the node is not overloaded and the entity is a use
7645 -defined function its profile can be used to resolve that aggregate.
7646
170b2989
AC
76472011-08-03 Robert Dewar <dewar@adacore.com>
7648
7649 * exp_ch4.adb: Minor code cleanup.
7650
76512011-08-03 Thomas Quinot <quinot@adacore.com>
7652
7653 * exp_dist.adb: Do not generate distribution stubs if serious errors
7654 have been diagnosed.
7655
76562011-08-03 Ed Schonberg <schonberg@adacore.com>
7657
7658 * sem_ch4.adb (Try_Primitive_Operation): when checking the validity of
7659 the first formal of a primitive operation, go to the base type to
7660 handle properly an access to a derived type with constrained
7661 discriminants.
7662 * sem_type.adb (Disambiguate): an immediately visible operator hides a
7663 user-defined function that is only use-visible.
170b2989 7664
e917aec2
RD
76652011-08-03 Robert Dewar <dewar@adacore.com>
7666
7667 * sem_aggr.adb, sem_ch3.adb, lib.ads, gnatcmd.adb, prj-proc.adb,
7668 make.adb, lib-writ.adb, prj-part.adb, prj-part.ads, prj-ext.adb,
7669 fname-uf.adb, prj-ext.ads, prj.adb, prj.ads, sem_attr.adb, alfa.adb,
7670 prj-makr.adb, errout.adb, makeutl.adb, makeutl.ads, restrict.ads,
7671 sem_ch6.adb, g-pehage.adb, clean.adb, put_alfa.adb, lib-xref-alfa.adb,
7672 prj-nmsc.adb, prj-nmsc.ads, sem_ch8.adb, prj-pars.ads, exp_aggr.adb,
7673 prj-attr.ads, sem_ch13.adb, get_alfa.adb, prj-env.adb, prj-env.ads,
7674 alfa_test.adb, prj-tree.adb, prj-tree.ads, einfo.ads: Minor reformatting
7675
76762011-08-03 Robert Dewar <dewar@adacore.com>
7677
7678 * repinfo.adb (List_Mechanism): Add handling of
7679 Convention_Ada_Pass_By_XXX.
7680 * sem_mech.adb (Set_Mechanism): Ditto.
7681 * sem_prag.adb (Process_Convention): Add entries for
7682 Convention_Ada_Pass_By_XXX.
7683 * snames.adb-tmpl, snames.ads-tmpl: Ditto.
7684
49bfcf43
AC
76852011-08-03 Pascal Obry <obry@adacore.com>
7686
7687 * makeutl.adb: Minor reformatting.
7688
76892011-08-03 Vincent Celier <celier@adacore.com>
7690
7691 * fname-uf.adb
7692 (Get_File_Name) If the file cannot be found when there are no config
7693 pragmas file and May_Fail is True, return No_File instead of the file
7694 name, to be consistent.
7695
76962011-08-03 Pascal Obry <obry@adacore.com>
7697
7698 * adaint.c (__gnat_is_executable_file_attr): Avoid access
7699 to null pointer.
7700
77012011-08-03 Javier Miranda <miranda@adacore.com>
7702
7703 * sem_ch13.adb
7704 (Same_Representation): In VM targets the representation of arrays with
7705 aliased components differs from arrays with non-aliased components.
7706
34798441
EB
77072011-08-03 Emmanuel Briot <briot@adacore.com>
7708
7709 * prj-proc.adb, prj-attr.adb, prj-attr.ads (Get_Attribute_Index): do
7710 not systematically lower case attribute indexes that contain no "."
7711 Fix definition of several Naming attributes, which take
7712 a unit name as index and therefore should be case insensitive.
7713 Minor refactoring (reduce length of variable names).
7714
77152011-08-03 Emmanuel Briot <briot@adacore.com>
7716
7717 * makeutl.adb, makeutl.ads (Get_Switches): new subprogram.
7718
4437a530
EB
77192011-08-03 Emmanuel Briot <briot@adacore.com>
7720
7721 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
7722 prj-part.ads, switch-m.adb, switch-m.ads, prj-makr.adb, clean.adb,
7723 prj-pars.adb, prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
7724 prj-tree.ads (Prj.Tree.Environment): new type.
7725
804fe3c4
EB
77262011-08-03 Emmanuel Briot <briot@adacore.com>
7727
7728 * prj-proc.adb, prj.ads, makeutl.adb, makeutl.ads, prj-conf.adb,
7729 prj-tree.adb, prj-tree.ads (Environment): new type.
7730
c565bc66
AC
77312011-08-03 Emmanuel Briot <briot@adacore.com>
7732
7733 * prj-tree.ads: Remove unused variable.
7734
77352011-08-03 Yannick Moy <moy@adacore.com>
7736
7737 * restrict.adb (Restriction_Msg): set "SPARK" all in upper case for
7738 issuing messages related to SPARK restriction violation.
7739
4ee646da
AC
77402011-08-03 Ed Schonberg <schonberg@adacore.com>
7741
7742 * sem_ch6.adb: guard against error nodes in return statements.
7743
77442011-08-03 Arnaud Charlet <charlet@adacore.com>
7745
7746 * errout.adb (Error_Msg_Internal): the main unit has not been read yet,
7747 a warning can only appear on a configuration file, so emit warning
7748 without further checks.
7749
77502011-08-03 Arnaud Charlet <charlet@adacore.com>
7751
7752 * s-interr.ads: add overriding keyword.
7753
77542011-08-03 Geert Bosch <bosch@adacore.com>
7755
7756 * exp_attr.adb: Fix minor typo.
7757
77582011-08-03 Ed Schonberg <schonberg@adacore.com>
7759
7760 * par-ch4.adb: improve error recovery.
7761
c0e538ad
AC
77622011-08-03 Emmanuel Briot <briot@adacore.com>
7763
7764 * prj-part.adb, prj-part.ads, prj-makr.adb, prj-pars.adb, prj-conf.adb,
7765 prj-env.adb (Prj.Part.Parse): change parameter Always_Errout_Finalize
7766 to Errout_Handling.
7767
77682011-08-03 Emmanuel Briot <briot@adacore.com>
7769
7770 * prj-dect.adb (Parse_Attribute_Declaration): make sure we can use
7771 "external" as an attribute name in aggregate projects.
7772
77732011-08-03 Jose Ruiz <ruiz@adacore.com>
7774
7775 * s-taprop-vxworks.adb: (Create_Task, Initialize): Ada 2012 pragma CPU
7776 uses CPU numbers starting 1, while VxWorks uses CPU numbers starting
7777 from 0, so we need to adjust.
7778
77792011-08-03 Emmanuel Briot <briot@adacore.com>
7780
7781 * prj-proc.adb, prj-ext.adb, prj-ext.ads, makeutl.adb, prj-tree.adb,
7782 prj-tree.ads, gnatcmd.adb, clean.adb (External_References): new type.
7783
c4d67e2d
AC
77842011-08-03 Yannick Moy <moy@adacore.com>
7785
7786 * sem_ch6.adb (New_Overloaded_Entity): only issue error for SPARK
7787 restriction on overloaded entity if the entity is not an operator.
7788
77892011-08-03 Yannick Moy <moy@adacore.com>
7790
7791 * sem_ch7.adb, sem_res.adb, sem_attr.adb, restrict.adb,
7792 restrict.ads: Rename remaining Check_Formal_Restriction* into
7793 Check_SPARK_Restriction*.
7794
77952011-08-03 Emmanuel Briot <briot@adacore.com>
7796
7797 * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb,
7798 prj-nmsc.ads, prj-err.adb (Project_Data): now discriminated on its
7799 qualifier.
7800 (Project_Empty): removed
7801 (Empty_Project): new parameter Qualifier
7802 This is used to have fields specific to aggregate projects, cleaner
7803 New field to store the list of aggregated projects.
7804 (Check_Aggregate_Project): removed
7805 (Process_Aggregated_Projects, Free): new subprograms.
7806
3f5a8fee
AC
78072011-08-03 Olivier Hainque <hainque@adacore.com>
7808
7809 * tracebak.c (STOP_FRAME ppc AIX): Stop at null return address as well.
7810
78112011-08-03 Ed Schonberg <schonberg@adacore.com>
7812
7813 * sem_ch8.adb (Analyze_Object_Renaming): if the renamed object is an
7814 explicit dereference of an unconstrained type, create a constrained
7815 subtype for it, as is done for function calls that return an
7816 unconstrained type.
7817
78182011-08-03 Thomas Quinot <quinot@adacore.com>
7819
7820 * g-pehage.adb (Finalize): Avoid possible double-free.
7821
78222011-08-03 Steve Baird <baird@adacore.com>
7823
7824 * exp_attr.adb (Expand_N_Attribute_Reference): Don't expand
7825 Elab_Spec/Body attrs in CodePeer_Mode.
7826
78272011-08-03 Javier Miranda <miranda@adacore.com>
7828
7829 * exp_aggr.adb (Flatten): Convert to positional form aggregates whose
7830 low bound is not known at compile time but they have no others choice.
7831 Done because in this case the bounds can be obtained directly from the
7832 aggregate.
7833
78342011-08-03 Ed Falis <falis@adacore.com>
7835
7836 * s-tasinf-vxworks.ads: Update comment to reflect 0 indexing of CPUs
7837 on VxWorks SMP. Remove unusable constant ANY_CPU.
7838
a96ca600
EB
78392011-08-03 Emmanuel Briot <briot@adacore.com>
7840
7841 * gnatcmd.adb, make.adb, prj-part.adb, prj-part.ads, prj-makr.adb,
7842 clean.adb, prj-nmsc.adb, prj-pars.adb, prj-conf.adb, prj-env.adb,
7843 prj-env.ads (Prj.Env.Initialize_Default_Project_Path,
7844 Prj.Env.Initialize_Empty): new subprograms
7845 (Get_Env, Find_Project): remove parameter Target_Name.
7846
3e582869
AC
78472011-08-03 Gary Dismukes <dismukes@adacore.com>
7848
7849 * sem_ch3.adb (Build_Derived_Record_Type): Test the Derive_Subps formal
7850 as a condition for the delayed call to Derived_Subprograms done for the
7851 case of the rewriting of a derived type that constrains the
7852 discriminants of its parent type.
7853 Avoids redundant subprogram derivations for private subtype derivations.
7854
78552011-08-03 Javier Miranda <miranda@adacore.com>
7856
7857 * exp_aggr.adb (Init_Hidden_Discriminants): New subprogram of
7858 Build_Record_Aggr_Code.
7859 (Build_Record_Aggr_Code): Add missing support to initialize hidden
7860 discriminants in extension aggregates.
7861
78622011-08-03 Emmanuel Briot <briot@adacore.com>
7863
7864 * prj-pp.adb (Print): also output project qualifiers, since in
7865 particular "aggregate" is mandatory in an aggregate project.
7866
78672011-08-03 Emmanuel Briot <briot@adacore.com>
7868
7869 * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb:
7870 (Debug_Output): new function.
7871
56e94186
AC
78722011-08-03 Eric Botcazou <ebotcazou@adacore.com>
7873
7874 * gnat_ugn.texi: Document -Wstack-usage.
7875 * gcc-interface/misc.c (enumerate_modes): Add guard for ghost FP modes.
7876
78772011-08-03 Thomas Quinot <quinot@adacore.com>
7878
7879 * sem_prag.adb Issue an error (not a warning) when a C++ type does not
7880 have keyword LIMITED.
7881
78822011-08-03 Yannick Moy <moy@adacore.com>
7883
7884 * alfa.adb, alfa.ads, alfa_test.adb: New files.
7885 * ali.adb (Known_ALI_Lines): add 'C' lines (SCO) and 'F' lines (ALFA)
7886 (Scan_ALI): do not issue a fatal error if parsing known lines after Xref
7887 section (does not happen in compiler, only if code directly calls
7888 Scan_ALI).
7889 * get_alfa.adb, get_alfa.ads: New files.
7890 * lib-writ.adb, lib-writ.ads (Write_ALI): output ALFA information if
7891 needed.
7892 * lib-xref-alfa.adb: New file.
7893 * lib-xref.adb, lib-xref.ads
7894 (Xref_Entry): redefine information needed in cross-references for ALFA.
7895 Push ALFA treatments in separated local package.
7896 (Enclosing_Subpragram_Or_Package): treat specially subprogram
7897 identifiers. Return entity of package body instead of spec. Return
7898 Empty for a scope with no location.
7899 (Generate_Reference): adapt to new components for ALFA information.
7900 Remove the need for D references on definitions.
7901 (Is_Local_Reference): moved to ALFA local package
7902 (Output_References): extract subfunction as Extract_Source_Name
7903 (Output_Local_References): remove procedure, replaced by filtering of
7904 cross-references in package ALFA and printing in Put_ALFA.
7905 (Write_Entity_Name): remove procedure
7906 * lib.adb, lib.ads (Extract_Source_Name): extract here function to
7907 print exact name of entity as it appears in source file
7908 (Unit_Ref_Table): make type public for use in Lib.Xref.ALFA
7909 * put_alfa.adb, put_alfa.ads: New files.
7910 * xref_lib.adb (Search_Xref): protect read of cross-references against
7911 reading other sections of the ALI file, in gnatxref
7912 (Search): protect read of cross-references against reading other
7913 sections of the ALI file, in gnatfind.
7914 * gcc-interface/Make-lang.in: Update dependencies.
7915
79162011-08-03 Thomas Quinot <quinot@adacore.com>
7917
7918 * sem_ch3.adb: Minor reformatting.
7919
79202011-08-03 Jose Ruiz <ruiz@adacore.com>
7921
7922 * s-inmaop-vxworks.adb (Setup_Interrupt_Mask): Do nothing instead of
7923 raising an exception.
7924
79252011-08-03 Ed Schonberg <schonberg@adacore.com>
7926
7927 * sem_res.adb (Set_String_Literal_Subtype): if index type is an integer
7928 type, always use 1 as the lower bound or string, even if lower bound of
7929 context is not static, to handle properly null strings in a non-static
7930 context.
7931
79322011-08-03 Bob Duff <duff@adacore.com>
7933
7934 * sem_prag.adb (Resolve_Aggregate): An array aggregate with 'others' is
7935 always legal on the right-hand side of an assignment statement; there
7936 is always an applicable index constraint in this case. Therefore, the
7937 check for Pkind = N_Assignment_Statement is now unconditional -- it
7938 doesn't depend on whether Is_Constrained (Typ).
7939
4317e442
AC
79402011-08-03 Robert Dewar <dewar@adacore.com>
7941
7942 * exp_ch5.adb, sem_prag.adb, exp_ch4.adb: Minor reformatting.
7943
79442011-08-03 Ed Schonberg <schonberg@adacore.com>
7945
7946 * sem_ch3.adb (Build_Itype_Reference): do not create an itype reference
7947 for an itype created within a generic unit.
7948
79492011-08-03 Eric Botcazou <ebotcazou@adacore.com>
7950
7951 * gnat_ugn.texi (Switches for gcc): Make it clearer that -fno-inline
7952 suppresses all inlining.
7953
53f29d4f
AC
79542011-08-03 Robert Dewar <dewar@adacore.com>
7955
7956 * sem_ch3.adb, sem_res.adb, exp_ch13.adb, exp_disp.adb,
7957 exp_aggr.adb: Minor reformatting.
7958
79592011-08-03 Thomas Quinot <quinot@adacore.com>
7960
7961 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not force inlining of
7962 tagged assignment when discriminant checks are suppressed. This is
7963 useless and extremely costly in terms of static stack usage.
7964
79652011-08-03 Bob Duff <duff@adacore.com>
7966
7967 * sem_prag.adb (Get_Base_Subprogram): Do not follow Alias for instances
7968 of generics, because this leads to the wrong entity in the wrong scope,
7969 causing (e.g.) pragma Export_Procedure to get an error if the entity is
7970 an instance.
7971 (Process_Interface_Name): Follow Alias for instances of generics, to
7972 correct for the above change.
7973
79742011-08-03 Ed Schonberg <schonberg@adacore.com>
7975
7976 * exp_ch4.adb (Expand_N_Selected_Component): If the discriminant value
7977 is an integer literal it is always safe to replace the reference. In
7978 addition, if the reference appears in the generated code for an object
7979 declaration it is necessary to copy because otherwise the reference
7980 might be to the uninitilized value of the discriminant of the object
7981 itself.
7982
79832011-08-03 Pascal Obry <obry@adacore.com>
7984
7985 * adaint.c (__gnat_is_executable_file_attr): Fix Win32 circuitry when no
7986 ACL used, in this case we want to check for ending .exe, not .exe
7987 anywhere in the path.
7988
79892011-08-03 Sergey Rybin <rybin@adacore.com>
7990
7991 * tree_io.ads (ASIS_Version_Number): Update because of the changes in
7992 the tree structure (semantic decoration of references to record
7993 discriminants).
7994
c0b11850
AC
79952011-08-03 Gary Dismukes <dismukes@adacore.com>
7996
7997 * sem_aggr.adb (Analyze_Array_Aggregate): When checking the discrete
7998 choices of a named array aggregate, bail out when any choices are
7999 marked as Errors_Posted.
8000
80012011-08-03 Ed Schonberg <schonberg@adacore.com>
8002
8003 * exp_ch13.adb (Expand_N_Freeze_Entity): cleanup determination of scope
8004 in which entity is frozen, to handle properly loop variables in
8005 iterators.
8006
80072011-08-03 Ed Schonberg <schonberg@adacore.com>
8008
8009 * sem_res.adb (Set_String_Literal_Subtype): if the lower bound of the
8010 subtype is not static, compute the upper bound using attributes, to
8011 handle properly index types that are not integer types.
8012
80132011-08-03 Bob Duff <duff@adacore.com>
8014
8015 * gnat_rm.texi, gnat_ugn.texi: Fix some dangling URLs.
8016 Update copyright notice.
8017
80182011-08-03 Ed Schonberg <schonberg@adacore.com>
8019
8020 * sem_ch3.adb (Build_Discriminant_Constraints): Only use
8021 Original_Discriminant if within an instance.
8022 * sem_ch4.adb (Analyze_Selected_Component): Ditto.
8023
80242011-08-03 Thomas Quinot <quinot@adacore.com>
8025
8026 * einfo.ads: Minor reformatting.
8027
80282011-08-03 Ed Schonberg <schonberg@adacore.com>
8029
8030 * exp_disp.adb (Check_Premature_Freezing): diagnose the presence of a
8031 composite type with an unfrozen subcomponent, in the profile of a
8032 primitive operation.
8033
5c34e9cd
AC
80342011-08-03 Robert Dewar <dewar@adacore.com>
8035
8036 * sem_util.ads, exp_aggr.adb, exp_ch3.adb: Minor reformatting.
8037
80382011-08-03 Ed Schonberg <schonberg@adacore.com>
8039
8040 * sem_ch3.adb (Analyze_Object_Declaration): if a constant object of an
8041 unconstrained type with discriminants is initialized with an aggregate,
8042 use the constrained subtype of the aggregate as the type of the object,
8043 because it is immutable, and this allows the back-end to generate no
8044 code for the object declaration.
8045
abcd9db2
AC
80462011-08-03 Robert Dewar <dewar@adacore.com>
8047
8048 * exp_ch4.adb (Optimize_Length_Check): Fix bad handling of case where
8049 comparison operand is variable, and turns out to be zero or negative.
8050
80512011-08-03 Javier Miranda <miranda@adacore.com>
8052
8053 * exp_intr.adb
8054 (Expand_Dispatching_Constructor_Call): Disable expansion of
8055 code required for native targets. Done to avoid generating
8056 references to unavailable runtime entities in VM targets.
8057 * exp_ch3.adb
8058 (Expand_N_Object_Declaration): Add missing support to handle
8059 the explicit initialization of class-wide interface objects.
8060 Fix documentation.
8061
80622011-08-03 Matthew Heaney <heaney@adacore.com>
8063
8064 * a-cobove.adb (Merge): Move source onto target, instead of using Assign
8065
80662011-08-03 Matthew Heaney <heaney@adacore.com>
8067
8068 * a-cbdlli.adb (Splice): move source items from first to last
8069
80702011-08-03 Yannick Moy <moy@adacore.com>
8071
8072 * sem_util.ads: comment added.
8073
80742011-08-03 Javier Miranda <miranda@adacore.com>
8075
8076 * exp_aggr.adb
8077 (Expand_Record_Aggregate): In VM targets disable the expansion into
8078 assignments of aggregates whose type is not known at compile time.
8079
b474d6c3
ES
80802011-08-03 Ed Schonberg <schonberg@adacore.com>
8081
8082 * exp_ch9.adb (Build_Renamed_Formal_Declaration): common procedure for
8083 protected entries and task entries, to build the proper renaming
8084 declaration for entry formals, used in debugging.
8085 * exp_ch2.adb (Expand_Entry_Parameter): handle task and entry
8086 parameters in the same way.
8087
0580d807
AC
80882011-08-02 Robert Dewar <dewar@adacore.com>
8089
8090 * a-direct.adb, sinfo.ads, exp_ch9.adb, scng.adb, sem_util.adb,
8091 sem_util.ads, restrict.ads, par-prag.adb: Minor reformatting and/or
8092 code reorganization.
8093
80942011-08-02 Robert Dewar <dewar@adacore.com>
8095
8096 * debug.adb: Debug flag d.P to suppress length comparison optimization
8097 * exp_ch4.adb (Optimize_Length_Comparison): New routine to optimize
8098 comparison of Length by comparing First/Last instead.
8099
81002011-08-02 Matthew Heaney <heaney@adacore.com>
8101
8102 * a-cobove.ads: Code clean up.
8103
b191a125
AC
81042011-08-02 Vincent Celier <celier@adacore.com>
8105
8106 * adaint.c (file_names_case_sensitive_cache): New static int.
8107 (__gnat_get_file_names_case_sensitive): Cache the return value in
8108 file_names_case_sensitive_cache at the first invocation, to avoid
8109 multiple calls to getenv.
8110
81112011-08-02 Bob Duff <duff@adacore.com>
8112
8113 * sem_ch12.adb (Validate_Derived_Type_Instance): Implement AI05-0218-1.
8114
316a0661
AC
81152011-08-02 Yannick Moy <moy@adacore.com>
8116
8117 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem.ads,
8118 sem_util.adb, sem_util.ads, sem_res.adb, sem_ch2.adb, sem_ch4.adb,
8119 sem_ch6.adb, sem_ch11.adb: Add semantic flag In_Pre_Post_Expression to
8120 indicate that we are in a precondition or postcondition. This is used in
8121 Mark_Non_ALFA_Subprogram (renaming of Mark_Non_ALFA_Subprogram_Body) to
8122 decide whether to flag the spec or body of the current subprogram as
8123 not in ALFA.
8124
81252011-08-02 Fabien Chouteau <chouteau@adacore.com>
8126
8127 * impunit.adb: Add Ada.Execution_Time.Interrupts in the Ada2012 package
8128 list.
8129 * a-extiin.ads: New file.
8130
81312011-08-02 Bob Duff <duff@adacore.com>
8132
8133 * a-direct.adb (Rename): Implement AI05-0231-1. In particular, Rename
8134 now raises Name_Error instead of Use_Error in certain cases. The other
8135 parts of this AI were already implemented properly.
8136
f9adb9d4
AC
81372011-08-02 Vincent Celier <celier@adacore.com>
8138
8139 * link.c: Only import "auto-host.h" when building the gnattools.
8140
81412011-08-02 Yannick Moy <moy@adacore.com>
8142
8143 * sem_util.adb: Inter-unit inlining does not work for a subprogram
8144 which calls a local subprogram, so extract subprogram
8145 from Mark_Non_ALFA_Subprogram_Body.
8146
81472011-08-02 Javier Miranda <miranda@adacore.com>
8148
8149 * exp_ch9.adb
8150 (Extract_Dispatching_Call): If the type of the dispatching object is an
8151 access type then return an explicit dereference in the Object out-mode
8152 parameter.
8153
81542011-08-02 Gary Dismukes <dismukes@adacore.com>
8155
8156 * sem_ch3.adb (Analyze_Subtype_Declaration): Generate range
8157 compatibility checks for all indexes of an array subtype, not just the
8158 first. Reset Has_Dynamic_Range_Check on the subtype before each
8159 potential check to ensure that Insert_Range_Checks will not elide any
8160 of the dynamic checks.
8161
81622011-08-02 Yannick Moy <moy@adacore.com>
8163
8164 * par-prag.ad (Process_Restrictions_Or_Restriction_Warnings): recognize
8165 SPARK restriction at parsing time.
8166 * scng.adb (Scan): Generate a token Tok_SPARK_Hide for a SPARK HIDE
8167 directive only if the SPARK restriction is set for this unit.
8168
83f33150
YM
81692011-08-02 Yannick Moy <moy@adacore.com>
8170
8171 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb, sem_util.ads,
8172 sem_res.adb, sem_ch2.adb, sem_ch4.adb, sem_ch6.adb,
8173 sem_ch11.adb: Protect call to Current_Subprogram which might be costly
8174 when repeated. Rename Current_Subprogram_Is_Not_In_ALFA into
8175 Mark_Non_ALFA_Subprogram_Body.
8176 Split body of Mark_Non_ALFA_Subprogram_Body to get body small and
8177 inlined.
8178
7b98672f
YM
81792011-08-02 Yannick Moy <moy@adacore.com>
8180
8181 * sem_res.adb: Protect calls to Matching_Static_Array_Bounds which
8182 might be costly.
8183
052e0603
AC
81842011-08-02 Robert Dewar <dewar@adacore.com>
8185
8186 * exp_ch9.adb, exp_sel.adb, restrict.ads, exp_disp.adb, erroutc.ads,
8187 exp_ch3.adb: Minor reformatting.
8188
81892011-08-02 Emmanuel Briot <briot@adacore.com>
8190
8191 * adaint.c (__gnat_locate_exec_on_path): only returns executable
8192 files, not any regular file.
8193 (__gnat_locate_file_with_predicate): new subprogram.
8194
81952011-08-02 Yannick Moy <moy@adacore.com>
8196
8197 * sinfo.adb, sinfo.ads: Restrict the use of flags
8198 Has_Dynamic_Length_Check and Has_Dynamic_Range_Check to expression
8199 nodes, plus N_Subtype_Declaration for the 2nd one.
8200
4fbad0ba
AC
82012011-08-02 Sergey Rybin <rybin@adacore.com>
8202
8203 * gnat_rm.texi: Ramification of pragma Eliminate documentation
8204 - fix bugs in the description of Source_Trace;
8205 - get rid of UNIT_NAME;
8206
052e0603
AC
82072011-08-02 Javier Miranda <miranda@adacore.com>
8208
8209 * exp_ch9.adb
8210 (Build_Dispatching_Requeue): Adding support for VM targets
8211 since we cannot directly reference the Tag entity.
8212 * exp_sel.adb (Build_K): Adding support for VM targets.
8213 (Build_S_Assignment): Adding support for VM targets.
8214 * exp_disp.adb
8215 (Default_Prim_Op_Position): In VM targets do not restrict availability
8216 of predefined interface primitives to compiling in Ada 2005 mode.
8217 (Is_Predefined_Interface_Primitive): In VM targets this service is not
8218 restricted to compiling in Ada 2005 mode.
8219 (Make_VM_TSD): Generate code that declares and initializes the OSD
8220 record. Needed to support dispatching calls through synchronized
8221 interfaces.
8222 * exp_ch3.adb
8223 (Make_Predefined_Primitive_Specs): Enable generation of predefined
8224 primitives associated with synchronized interfaces.
8225 (Make_Predefined_Primitive_Bodies): Enable generation of predefined
8226 primitives associated with synchronized interfaces.
8227
82282011-08-02 Yannick Moy <moy@adacore.com>
8229
8230 * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of
8231 statements hidden in SPARK if preceded by the HIDE directive
8232 (Parse_Exception_Handlers): mark each exception handler in a sequence of
8233 exception handlers as hidden in SPARK if preceded by the HIDE directive
8234 * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK
8235 if starting with the HIDE directive
8236 * par-ch7.adb (P_Package): mark a package body hidden in SPARK if
8237 starting with the HIDE directive; mark the declarations in a private
8238 part as hidden in SPARK if the private part starts with the HIDE
8239 directive
8240 * restrict.adb, restrict.ads
8241 (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK
8242 (Is_In_Hidden_Part_In_SPARK): new function which returns whether its
8243 argument node belongs to a part which is hidden in SPARK
8244 (Check_SPARK_Restriction): do not issue violations on nodes in hidden
8245 parts in SPARK; protect the possibly costly call to
8246 Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on
8247 * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration
8248 * scng.adb (Accumulate_Token_Checksum_GNAT_6_3,
8249 Accumulate_Token_Checksum_GNAT_5_03): add case for new token
8250 Tok_SPARK_Hide.
8251 (Scan): recognize special comment starting with '#' and followed by
8252 SPARK keyword "hide" as a HIDE directive.
8253
82542011-08-02 Yannick Moy <moy@adacore.com>
8255
8256 * types.ads, erroutc.ads: Minor reformatting.
8257
82582011-08-02 Vincent Celier <celier@adacore.com>
8259
8260 * link.c: Add response file support for cross platforms.
8261
82622011-08-02 Ed Schonberg <schonberg@adacore.com>
8263
8264 * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression
8265 in an association, set parent field of copy before partial analysis.
8266 * sem_res.adb (Resolve_Slice): create reference to itype only when
8267 expansion is enabled.
8268
82692011-08-02 Yannick Moy <moy@adacore.com>
8270
8271 * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set
8272 for new flag denoting which subprogram bodies are in ALFA
8273 * restrict.adb, sem_ch7.adb: Update comment
8274 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
8275 sem_ch9.adb, sem_res.adb: Add calls to
8276 Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs.
8277 * sem_ch6.adb (Analyze_Function_Return): add calls to
8278 Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the
8279 middle of the body, and extended return.
8280 (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument
8281 False when missing return.
8282 (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA
8283 to True for subprograms whose spec is in ALFA. Remove later on the flag
8284 on the entity used for a subprogram body when there exists a separate
8285 declaration.
8286 * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA):
8287 if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to
8288 False, otherwise do nothing.
8289
82902011-08-02 Robert Dewar <dewar@adacore.com>
8291
8292 * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
8293
82942011-08-02 Yannick Moy <moy@adacore.com>
8295
8296 * sem_ch4.ads: minor formatting.
8297
82982011-08-02 Yannick Moy <moy@adacore.com>
8299
8300 * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb,
8301 debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb,
8302 errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb,
8303 restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb,
8304 opt.ads: cleanup of SPARK mode
8305
83062011-08-02 Yannick Moy <moy@adacore.com>
8307
8308 * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard
8309 types.
8310 * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities
8311 (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA
8312 * sem_ch3.adb
8313 (Analyze_Object_Declaration): set Is_In_ALFA flag for objects
8314 (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes
8315 (Constrain_Integer): set Is_In_ALFA flag for integer subtypes
8316 (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration
8317 types.
8318 (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with
8319 non-static range.
8320 * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for
8321 functions whose return type is not in ALFA.
8322 (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram
8323 specifications.
8324 (Process_Formals): unset Is_In_ALFA flag for subprograms if a
8325 parameter's type is not in ALFA.
8326 * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard
8327 types are in ALFA.
8328
83292011-08-02 Ed Schonberg <schonberg@adacore.com>
8330
8331 * sem_ch6 (Analyze_Expression_Function): treat the function as
8332 Inline_Always, and introduce a subprogram declaration for it when it is
8333 not a completion.
8334 * inline.adb (Add_Inlined_Body): recognize bodies that come from
8335 expression functions, so that the back-end can determine whether they
8336 can in fact be inlined.
8337 * sem_util.adb (Is_Expression_Function): predicate to determine whether
8338 a function body comes from an expression function.
8339
83402011-08-02 Gary Dismukes <dismukes@adacore.com>
8341
8342 * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming
8343 null exclusions to test Can_Never_Be_Null on the anonymous access types
8344 of the formals rather than testing the formals themselves. Exclude this
8345 check in cases where the Old_Formal is marked as a controlling formal,
8346 to avoid issuing spurious errors for bodies completing dispatching
8347 operations (due to the flag not getting set on controlling access
8348 formals in body specs).
8349 (Find_Corresponding_Spec): When checking full and subtype conformance of
8350 subprogram bodies in instances, pass Designated and E in that order, for
8351 consistency with the expected order of the formals (New_Id followed by
8352 Old_Id).
8353
83542011-08-02 Robert Dewar <dewar@adacore.com>
8355
8356 * sem_ch8.adb: Minor reformatting.
8357
83582011-08-02 Ed Schonberg <schonberg@adacore.com>
8359
8360 * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure
8361 Check_Class_Wide_Actual, to implement AI05-0071, on defaulted
8362 primitive operations of class-wide actuals.
8363
83642011-08-02 Javier Miranda <miranda@adacore.com>
8365
8366 * exp_atag.ads, exp_atag.adb
8367 (Build_Common_Dispatching_Select_Statements): Remove argument Loc
8368 since its value is implicitly passed in argument Typ.
8369 * exp_disp.adb (Make_Disp_Conditional_Select_Body,
8370 Make_Disp_Timed_Select_Body): Remove Loc in calls to routine
8371 Build_Common_Dispatching_Select_Statements.
8372
83732011-08-02 Robert Dewar <dewar@adacore.com>
8374
8375 * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads,
8376 exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments.
8377 Minor reformatting.
8378
83792011-08-02 Robert Dewar <dewar@adacore.com>
8380
8381 * sem_res.adb: Minor reformatting.
8382 * sem_prag.adb: Minor reformatting.
8383
83842011-08-02 Javier Miranda <miranda@adacore.com>
8385
8386 * exp_atag.adb, exp_atags.ads
8387 (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr
8388 by the tagged type Entity. Required to use this routine in the VM
8389 targets since we do not have available the Tag entity in the VM
8390 platforms.
8391 * exp_ch6.adb
8392 (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package
8393 Ada.Tags has not been previously loaded.
8394 * exp_ch7.adb
8395 (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke
8396 Build_VM_TSDs if package Ada.Tags has not been previously loaded.
8397 * sem_aux.adb
8398 (Enclosing_Dynamic_Scope): Add missing support to handle the full
8399 view of enclosing scopes. Required to handle enclosing scopes that
8400 are synchronized types whose full view is a task type.
8401 * exp_disp.adb
8402 (Build_VM_TSDs): Minor code improvement to avoid generating and
8403 analyzing lists with empty nodes.
8404 (Make_Disp_Asynchronous_Select_Body): Add support for VM targets.
8405 (Make_Disp_Conditional_Select_Body): Add support for VM targets.
8406 (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets.
8407 (Make_Disp_Timed_Select_Body): Add support for VM targets.
8408 (Make_Select_Specific_Data_Table): Add support for VM targets.
8409 (Make_VM_TSD): Generate code to initialize the SSD structure of
8410 the TSD.
8411
84122011-08-02 Yannick Moy <moy@adacore.com>
8413
8414 * lib-writ.adb (Write_ALI): when ALFA mode is set, write local
8415 cross-references section in ALI.
8416 * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub
8417 (enclosing subprogram), Slc (location of Sub) and Sun (unit number of
8418 Sub).
8419 (Enclosing_Subprogram_Or_Package): new function to return the enclosing
8420 subprogram or package entity of a node
8421 (Is_Local_Reference_Type): new function returns True for references
8422 selected in local cross-references.
8423 (Lt): function extracted from Lt in Output_References
8424 (Write_Entity_Name): function extracted from Output_References
8425 (Generate_Definition): generate reference with type 'D' for definition
8426 of objects (object declaration and parameter specification), with
8427 appropriate locations and units, for use in local cross-references.
8428 (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created
8429 references of type 'I' for initialization in object definition.
8430 (Output_References): move part of function Lt and procedure
8431 Write_Entity_Name outside of the body. Ignore references of types 'D'
8432 and 'I' introduced for local cross-references.
8433 (Output_Local_References): new procedure to output the local
8434 cross-references sections.
8435 (Lref_Entity_Status): new array defining whether an entity is a local
8436 * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference
8437 with 'I' type when initialization expression is present.
8438 * get_scos.adb, get_scos.ads: Correct comments and typos
8439
84402011-08-02 Javier Miranda <miranda@adacore.com>
8441
8442 * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in
8443 the JVM target.
8444 * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in
8445 the JVM target.
8446 * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no
8447 TSD support.
8448
84492011-08-02 Vincent Celier <celier@adacore.com>
8450
8451 * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line
8452 (No_Space_Img): New function
8453 (Find_Excluded_Sources): When reading from a file, record the file name
8454 and the line number for each excluded source.
8455 (Mark_Excluded_Sources): When reporting an error, if the excluded
8456 sources were read from a file, include file name and line number in
8457 the error message.
8458
84592011-08-02 Ed Schonberg <schonberg@adacore.com>
8460
8461 * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2).
8462
84632011-08-02 Robert Dewar <dewar@adacore.com>
8464
8465 * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting
8466
84672011-08-02 Javier Miranda <miranda@adacore.com>
8468
8469 * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
8470 generation of TSDs to the DOTNET compiler.
8471 * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
8472 generation of TSDs to the DOTNET compiler.
8473
84742011-08-02 Javier Miranda <miranda@adacore.com>
8475
8476 * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
8477 record of all the tagged types declared inside library level package
8478 declarations, library level package bodies or library level subprograms.
8479 * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD
8480 associated with a given tagged type.
8481 (Build_VM_TSDs): New subprogram.
8482 * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main
8483 compilation units that are subprograms.
8484 * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main
8485 compilation units that are package bodies.
8486 (Expand_N_Package_Declaration): Generate TSDs of the main compilation
8487 units that are a package declaration or a package instantiation.
8488 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code
8489 reorganization to improve the error generated by the frontend when the
8490 function Ada.Tags.Secondary_Tag is not available.
8491 * rtsfind.ads (RE_Register_TSD): New runtime entity.
8492 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup.
8493
84942011-08-02 Javier Miranda <miranda@adacore.com>
8495
8496 * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode.
8497
84982011-08-02 Robert Dewar <dewar@adacore.com>
8499
8500 * s-imenne.ads: Minor reformatting.
8501
85022011-08-02 Robert Dewar <dewar@adacore.com>
8503
8504 * a-stunau.ads: Add pragma Suppress_Initialization for Big_String
8505 * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed
8506 * s-stalib.ads: Add pragma Suppress_Initialization for Big_String
8507
85082011-08-02 Robert Dewar <dewar@adacore.com>
8509
8510 * einfo.ads (Materialize_Entity): Document this is only for renamings
8511 * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate
8512 required debug information in the case where we transform the object
8513 declaration into a renaming declaration.
8514 * exp_ch4.adb (Expand_Concatenate): Generate debug info for result
8515 object
8516 * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of
8517 Materialize_Entity.
8518
85192011-08-02 Robert Dewar <dewar@adacore.com>
8520
8521 * einfo.ads, einfo.adb (Suppress_Initialization): Replaces
8522 Suppress_Init_Procs.
8523 * exp_ch3.adb, exp_disp.adb, freeze.adb: Use
8524 Suppress_Initialization/Initialization_Suppressed.
8525 * gnat_rm.texi: New documentation for pragma Suppress_Initialization
8526 * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function
8527 * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed
8528 * sem_prag.adb: New processing for pragma Suppress_Initialization.
8529
85302011-08-02 Robert Dewar <dewar@adacore.com>
8531
8532 * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb:
8533 Minor reformatting.
8534
85352011-08-02 Ed Schonberg <schonberg@adacore.com>
8536
8537 * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can
8538 only have inheritable classwide pre/postconditions.
8539
85402011-08-02 Javier Miranda <miranda@adacore.com>
8541
8542 * a-tags.ads, a-tags.adb (Check_TSD): New subprogram.
8543 * rtsfind.ads (RE_Check_TSD): New runtime entity.
8544 * exp_disp.adb (Make_DT): Generate call to the new runtime routine that
8545 checks if the external tag of a type is the same as the external tag
8546 of some other declaration.
8547
85482011-08-02 Thomas Quinot <quinot@adacore.com>
8549
8550 * s-taskin.ads: Minor reformatting.
8551
85522011-08-02 Emmanuel Briot <briot@adacore.com>
8553
8554 * g-comlin.adb (Display_Help): swap the order in which it prints the
8555 short help and the general usage.
8556
85572011-08-02 Ed Schonberg <schonberg@adacore.com>
8558
8559 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly
8560 the aspect declarations and attach them to the generic copy for
8561 subsequent analysis.
8562 (Analyze_Subprogram_Instantiation): copy explicitly the aspect
8563 declarations of the generic tree to the new subprogram declarations.
8564 * sem_attr.adb (Check_Precondition_Postcondition): recognize
8565 conditions that apply to a subprogram instance.
8566
85672011-08-02 Robert Dewar <dewar@adacore.com>
8568
8569 * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project].
8570
85712011-08-02 Ed Schonberg <schonberg@adacore.com>
8572
8573 * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged
8574 private type with a tagged full view is not derived in the immediate
8575 scope of the partial view, (RM 7.3 (7)) use the scope of the base type.
8576
85772011-08-02 Robert Dewar <dewar@adacore.com>
8578
8579 * exp_ch4.adb: Minor reformatting.
8580
85812011-08-02 Ed Schonberg <schonberg@adacore.com>
8582
8583 * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an
8584 Ada2012 iterator, the loop will be rewritten during expansion into a
8585 while loop with a cursor and an element declaration. Do not analyze the
8586 body in this case, because if the container is for indefinite types the
8587 actual subtype of the elements will only be determined when the cursor
8588 declaration is analyzed.
8589
85902011-08-02 Arnaud Charlet <charlet@adacore.com>
8591
8592 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore
8593 size/alignment related attributes in CodePeer_Mode.
8594
85952011-08-02 Gary Dismukes <dismukes@adacore.com>
8596
8597 * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to
8598 Prepend_Element, since this can result in the operation getting the
8599 wrong slot in the full type's dispatch table if the full type has
8600 inherited operations. The incomplete type's operation will get added
8601 to the proper position in the full type's primitives
8602 list later in Sem_Disp.Check_Operation_From_Incomplete_Type.
8603 (Process_Incomplete_Dependents): Add Is_Primitive test when checking for
8604 dispatching operations, since there are cases where nonprimitive
8605 subprograms can get added to the list of incomplete dependents (such
8606 as subprograms in nested packages).
8607 * sem_ch6.adb (Process_Formals): First, remove test for being in a
8608 private part when determining whether to add a primitive with a
8609 parameter of a tagged incomplete type to the Private_Dependents list.
8610 Such primitives can also occur in the visible part, and should not have
8611 been excluded from being private dependents.
8612 * sem_ch7.adb (Uninstall_Declarations): When checking the rule of
8613 RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents
8614 list of a Taft-amendment incomplete type is a primitive before issuing
8615 an error that the full type must appear in the same unit. There are
8616 cases where nonprimitives can be in the list (such as subprograms in
8617 nested packages).
8618 * sem_disp.adb (Derives_From): Use correct condition for checking that
8619 a formal's type is derived from the type of the corresponding formal in
8620 the parent subprogram (the condition was completely wrong). Add
8621 checking that was missing for controlling result types being derived
8622 from the result type of the parent operation.
8623
86242011-08-02 Yannick Moy <moy@adacore.com>
8625
8626 * errout.adb (First_Node): minor renaming
8627 * restrict.adb (Check_Formal_Restriction): put restriction warning on
8628 first node.
8629
86302011-08-02 Yannick Moy <moy@adacore.com>
8631
8632 * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator
8633 before accessing operands.
8634 * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to
8635 decide whether an initialization expression respects SPARK rules, as
8636 the plain node is the expanded one. This allows for more valid warnings
8637 to be issued.
8638 * gnat_rm.texi: Minor update.
8639
86402011-08-02 Arnaud Charlet <charlet@adacore.com>
8641
8642 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert
8643 previous change.
8644
86452011-08-02 Robert Dewar <dewar@adacore.com>
8646
8647 * sem_ch3.adb, sem_ch4.adb: Minor reformatting.
8648
86492011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
8650
8651 * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original
8652 loop statements and the element renaming declaration with a block when
8653 the element type is controlled.
8654
86552011-08-02 Yannick Moy <moy@adacore.com>
8656
8657 * sinfo.ads: Minor formatting.
8658
86592011-08-02 Ed Schonberg <schonberg@adacore.com>
8660
8661 * sem_aggr.adb (Add_Association): if the association has a box and no
8662 expression, use the Sloc of the aggregate itself for the new
8663 association.
8664 * errout.adb (First_Node): Exclude nodes with no Sloc, and always use
8665 the Original_Node.
8666
86672011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
8668
8669 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring.
8670 When a container is provided via a function call, generate a renaming
8671 of the function result. This avoids the creation of a transient scope
8672 and the premature finalization of the container.
8673 * exp_ch7.adb (Is_Container_Cursor): Removed.
8674 (Wrap_Transient_Declaration): Remove the supression of the finalization
8675 of the list controller when the declaration denotes a container cursor,
8676 it is not needed.
8677
86782011-08-02 Yannick Moy <moy@adacore.com>
8679
8680 * restrict.adb (Check_Formal_Restriction): only issue a warning if the
8681 node is from source, instead of the original node being from source.
8682 * sem_aggr.adb
8683 (Resolve_Array_Aggregate): refine the check for a static expression, to
8684 recognize also static ranges
8685 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration,
8686 Array_Type_Declaration): postpone the test for the type being a subtype
8687 mark after the type has been resolved, so that component-selection and
8688 expanded-name are discriminated.
8689 (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm
8690 to distinguish the case of an iteration scheme, so that an error is
8691 issed on a non-static range in SPARK except in an iteration scheme.
8692 * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with
8693 In_Iter_Schm = True.
8694 * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for
8695 user-defined operators so that they are allowed in renaming
8696 * sem_ch8.adb
8697 (Find_Selected_Component): refine the check for prefixing of operators
8698 so that they are allowed in renaming. Move the checks for restrictions
8699 on selector name after analysis discriminated between
8700 component-selection and expanded-name.
8701 * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on
8702 concatenation argument of string type if it is static.
8703 * sem_util.adb, sem_util.ads
8704 (Check_Later_Vs_Basic_Declarations): add a new function
8705 Is_Later_Declarative_Item to decice which declarations are allowed as
8706 later items, in the two different modes Ada 83 and SPARK. In the SPARK
8707 mode, add that renamings are considered as later items.
8708 (Enclosing_Package): new function to return the enclosing package
8709 (Enter_Name): correct the rule for homonyms in SPARK
8710 (Is_SPARK_Initialization_Expr): default to returning True on nodes not
8711 from source (result of expansion) to avoid issuing wrong warnings.
8712
87132011-08-02 Ed Schonberg <schonberg@adacore.com>
8714
8715 * errout.adb: On anything but an expression First_Node returns its
8716 argument.
8717
87182011-08-02 Pascal Obry <obry@adacore.com>
8719
8720 * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting.
8721
87222011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
8723
8724 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization.
8725 Set the associated loop as the related expression of internally
8726 generated cursors.
8727 * exp_ch7.adb (Is_Container_Cursor): New routine.
8728 (Wrap_Transient_Declaration): Supress the finalization of the list
8729 controller when the declaration denotes a container cursor.
8730
87312011-08-02 Yannick Moy <moy@adacore.com>
8732
8733 * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through
8734 command line now.
8735 * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the
8736 expression is a simple expression. This check cannot be performed in
8737 the semantics, so just drop it.
8738 (P_Index_Or_Discriminant_Constraint): move check that the index or
8739 discriminant is a subtype mark to Analyze_Subtype_Declaration in the
8740 semantics. Other cases were previously checked in the semantics.
8741 * par-ch4.adb (P_Name): move checks that a selector name is not
8742 character literal or an operator symbol to Find_Selected_Component in
8743 the semantics
8744 * par-ch5.adb (Parse_Decls_Begin_End): move check that basic
8745 declarations are not placed after later declarations in a separate
8746 procedure in Sem_Util (possibly not the best choice?), to be used both
8747 during parsing, for Ada 83 mode, and during semantic analysis, for
8748 SPARK mode.
8749 * par-endh.adb (Check_End): move check that end label is not missing
8750 to Process_End_Label in the semantics
8751 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove
8752 the special case for SPARK restriction
8753 * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End
8754 * restrict.adb, restrict.ads (Check_Formal_Restriction): add a
8755 parameter Force to issue the error message even on internal node (used
8756 for generated end label). Call Check_Restriction to check when an error
8757 must be issued. In SPARK mode, issue an error message even if the
8758 restriction is not set.
8759 (Check_Restriction): new procedure with an additional out parameter to
8760 inform the caller that a message has been issued
8761 * sem_aggr.adb: Minor modification of message
8762 * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction
8763 instead of issuing an error message directly
8764 * sem_ch3.adb (Analyze_Declarations): move here the check that basic
8765 declarations are not placed after later declarations, by calling
8766 Check_Later_Vs_Basic_Declarations
8767 (Analyze_Subtype_Declaration): move here the check that an index or
8768 discriminant constraint must be a subtype mark. Change the check that
8769 a subtype of String must start at one so that it works on subtype marks.
8770 * sem_ch4.adb (Analyze_Call): move here the check that a named
8771 association cannot follow a positional one in a call
8772 * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction
8773 instead of issuing an error message directly
8774 * sem_ch8.adb (Find_Selected_Component): move here the check that a
8775 selector name is not a character literal or an operator symbol. Move
8776 here the check that the prefix of an expanded name cannot be a
8777 subprogram or a loop statement.
8778 * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new
8779 procedure called from parsing and semantics to check that basic
8780 declarations are not placed after later declarations
8781 (Process_End_Label): move here the check that end label is not missing
8782
87832011-08-02 Arnaud Charlet <charlet@adacore.com>
8784
8785 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum
8786 representation clause in codepeer mode, since it confuses CodePeer and
8787 does not bring useful info.
8788
87892011-08-02 Ed Falis <falis@adacore.com>
8790
8791 * init.c: initialize fp hw on MILS.
8792
87932011-08-02 Ed Schonberg <schonberg@adacore.com>
8794
8795 * errout.adb (First_Node): for bodies, return the node itself (small
8796 optimization). For other nodes, do not check source_unit if the node
8797 comes from Standard.
8798
87992011-08-02 Robert Dewar <dewar@adacore.com>
8800
8801 * exp_ch3.adb: Minor comment additions.
8802 * sem_ch13.adb: Minor reformatting.
8803
88042011-08-02 Pascal Obry <obry@adacore.com>
8805
8806 * make.adb, makeutl.adb: Removes some superfluous directory separator.
8807
88082011-08-02 Robert Dewar <dewar@adacore.com>
8809
8810 * sem_attr.adb: Minor reformatting.
8811
88122011-08-02 Robert Dewar <dewar@adacore.com>
8813
8814 * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value
8815 (Has_Default_Component_Value): Removed
8816 * einfo.ads Comment updates
8817 (Has_Default_Aspect): Replaces Has_Default_Value
8818 (Has_Default_Component_Value): Removed
8819 * exp_ch13.adb
8820 (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects
8821 * exp_ch3.adb
8822 (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects
8823 (Get_Simple_Init_Val): Handle Default_Value aspect
8824 (Needs_Simple_Initialization): Handle Default_Value aspect
8825 * exp_ch3.ads: Needs_Simple_Initialization
8826 * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect
8827 * par-prag.adb (Pragma_Default[_Component]Value) Removed
8828 * sem_ch13.adb
8829 (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects
8830 * sem_prag.adb (Pragma_Default[_Component]Value) Removed
8831 * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed
8832
88332011-08-02 Ed Schonberg <schonberg@adacore.com>
8834
8835 * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate
8836 package containing iteration primitives.
8837 exp_ch5.adb (Expand_Iterator_Loop): ditto.
8838
88392011-08-02 Ed Schonberg <schonberg@adacore.com>
8840
8841 * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with
8842 "of", pre-analyze expression in case it is a function call with
8843 finalization actions that must be placed ahead of the loop.
8844 * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present
8845 on an Ada2012 iterator, insert them ahead of the rewritten loop.
8846
88472011-08-02 Geert Bosch <bosch@adacore.com>
8848
8849 * cstand.adb (Create_Float_Types): Only consider C's long double for
8850 Long_Long_Float, in addition to double.
8851
88522011-08-02 Robert Dewar <dewar@adacore.com>
8853
8854 * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads,
8855 sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads,
8856 prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb:
8857 Minor reformatting.
8858
88592011-08-02 Ed Schonberg <schonberg@adacore.com>
8860
8861 * sem_attr.adb: handle properly 'Result when it is a prefix of an
8862 indexed component.
8863
88642011-08-02 Javier Miranda <miranda@adacore.com>
8865
8866 * einfo.ads, einfo.adb
8867 (Original_Access_Type): Move this attribute to Node26 since there was
8868 an undocumented use of Node21 in E_Access_Subprogram_Type entities
8869 which causes conflicts and breaks the generation of the .NET compiler.
8870 (Interface_Name): Add missing documentation on JGNAT only uses of
8871 this attribute.
8872
88732011-08-02 Geert Bosch <bosch@adacore.com>
8874
8875 * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist
8876 (Find_Back_End_Float_Type): Likewise
8877 (Create_Back_End_Float_Types): Likewise
8878 (Create_Float_Types): Likewise
8879 (Register_Float_Type): Likewise
8880 * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of
8881 Nlist and split out type selection in new local Find_Base_Type function.
8882 * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of
8883 Nlist
8884 * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist
8885
88862011-08-02 Robert Dewar <dewar@adacore.com>
8887
8888 * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in
8889 alpha order).
8890 * opt.ads: Minor comment change.
8891 * sem_ch12.adb: Minor code reorganization.
8892
88932011-08-02 Gary Dismukes <dismukes@adacore.com>
8894
8895 * sem_ch3.adb (Complete_Private_Subtype): Don't append the private
8896 subtype's list of rep items to the list on the full subtype in the case
8897 where the lists are the same.
8898
88992011-08-02 Geert Bosch <bosch@adacore.com>
8900
8901 * switch-c.adb (Free): New deallocation procedure to avoid implicitly
8902 using the one from System.Strings, which also deallocates all strings.
8903
89042011-08-02 Geert Bosch <bosch@adacore.com>
8905
8906 * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New
8907 function.
8908 * gcc-interface/Make-lang.in: Update dependencies.
8909
89102011-08-02 Olivier Hainque <hainque@adacore.com>
8911
8912 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function
8913 end_locus.
8914
89152011-08-02 Javier Miranda <miranda@adacore.com>
8916
8917 * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals
8918 associated with anonymous access to subprograms.
8919
89202011-08-02 Geert Bosch <bosch@adacore.com>
8921
8922 * opt.ads
8923 (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions.
8924 (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition.
8925 * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads
8926 (Add_Symbol_Definition): Move to switch-c.adb
8927 (Process_Command_Line_Symbol_Definitions): Adjust references to above.
8928 * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation.
8929 (Add_Symbol_Definition): Move to switch-c.adb.
8930 * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw.
8931 * sem_warn.adb
8932 (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
8933 Move to warnsw.adb.
8934 * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size,
8935 Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
8936 Move to warnsw.adb.
8937 * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw.
8938 (Add_Symbol_Definition): Moved from Prepcomp.
8939 * switch-c.ads: Update copyright notice. Use String_List instead of
8940 Argument_List, removing dependency on System.OS_Lib.
8941
89422011-08-02 Yannick Moy <moy@adacore.com>
8943
8944 * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal
8945 mode on initialization expression which does not respect SPARK
8946 restrictions.
8947 * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines
8948 if the tree referenced by its argument represents an initialization
8949 expression in SPARK, suitable for initializing an object in an object
8950 declaration.
8951
89522011-08-02 Javier Miranda <miranda@adacore.com>
8953
8954 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the
8955 internally generated access to subprogram with its associated protected
8956 subprogram type.
8957 * einfo.ads, einfo.adb (Original_Access_Type): New attribute.
8958
89592011-08-02 Geert Bosch <bosch@adacore.com>
8960
8961 * cstand.adb (Register_Float_Type): Print information about type to
8962 register, if the Debug_Flag_Dot_B is set.
8963 * debug.adb (Debug_Flag_Dot_B): Document d.b debug option.
8964 * rtsfind.ads (RE_Max_Base_Digits): New run time entity.
8965 * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations
8966 with a requested precision of more than Max_Digits digits and no more
8967 than Max_Base_Digits digits, if a range specification is present and the
8968 Predefined_Float_Types list has a suitable type to derive from.
8969 * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the
8970 case of type completion with pragma Import
8971 * sem_prag.adb
8972 (Process_Import_Predefined_Type): Processing to complete a type
8973 with pragma Import. Currently supports floating point types only.
8974 (Set_Convention_From_Pragma): Do nothing without underlying type.
8975 (Process_Convention): Guard against absence of underlying type,
8976 which may happen when importing incomplete types.
8977 (Process_Import_Or_Interface): Handle case of importing predefined
8978 types. Tweak error message.
8979
89802011-08-02 Eric Botcazou <ebotcazou@adacore.com>
8981
8982 * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined
8983 functions to previous change. Reorganize code slightly.
8984
89852011-08-02 Geert Bosch <bosch@adacore.com>
8986
8987 * back_end.ads (Register_Type_Proc): New call back procedure type for
8988 allowing the back end to provide information about available types.
8989 (Register_Back_End_Types): New procedure to register back end types.
8990 * back_end.adb (Register_Back_End_Types): Call the back end to enumerate
8991 available types.
8992 * cstand.adb (Back_End_Float_Types): New list for floating point types
8993 supported by the back end.
8994 (Build_Float_Type): Add extra parameter for Float_Rep_Kind.
8995 (Copy_Float_Type): New procedure to make new copies of predefined types.
8996 (Register_Float_Type): New call back procedure to populate the BEFT list
8997 (Find_Back_End_Float_Type): New procedure to find a BEFT by name
8998 (Create_Back_End_Float_Types): New procedure to populate the BEFT list.
8999 (Create_Float_Types): New procedure to create entities for floating
9000 point types predefined in Standard, and put these and any remaining
9001 BEFTs on the Predefined_Float_Types list.
9002 * stand.ads (Predefined_Float_Types): New list for predefined floating
9003 point types that do not have declarations in package Standard.
9004
90052011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9006
9007 * inline.adb (Get_Code_Unit_Entity): New local function. Returns the
9008 entity node for the unit containing the parameter.
9009 (Add_Inlined_Body): Use it to find the unit containing the subprogram.
9010 (Add_Inlined_Subprogram): Likewise.
9011 * gcc-interface/Make-lang.in: Update dependencies.
9012
90132011-08-02 Thomas Quinot <quinot@adacore.com>
9014
9015 * s-stusta.adb (Print): Make sure Pos is always initialized to a
9016 suitable value.
9017
90182011-08-02 Geert Bosch <bosch@adacore.com>
9019
9020 * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image.
9021
90222011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9023
9024 * sem_type.adb (Covers): Move trivial case to the top and reuse the
9025 computed value of Base_Type.
9026
90272011-08-02 Yannick Moy <moy@adacore.com>
9028
9029 * restrict.adb (Check_Restriction): issue an error for any use of
9030 class-wide, even if the No_Dispatch restriction is not set.
9031 * sem_aggr.adb: Correct typos in comments and messages in formal mode
9032 * sem_ch3.adb (Process_Full_View): issue an error in formal mode is,
9033 when completing a private extension, the type named in the private part
9034 is not the same as that named in the visible part.
9035 * sem_res.adb (Resolve_Call): issue an error in formal mode on the use
9036 of an inherited primitive operations of a tagged type or type extension
9037 that returns the tagged type.
9038 * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new
9039 function which returns True for an implicit operation inherited by the
9040 derived type declaration for the argument type.
9041 (Is_SPARK_Object_Reference): move to appropriate place in alphabetic
9042 order.
9043
90442011-08-02 Ed Schonberg <schonberg@adacore.com>
9045
9046 * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from
9047 Process_Bounds, to perform analysis with expansion of a range or an
9048 expression that is the iteration scheme for a loop.
9049 (Analyze_Iterator_Specification): If domain of iteration is given by a
9050 function call with a controlled result, as is the case if call returns
9051 a predefined container, ensure that finalization actions are properly
9052 generated.
9053 * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range.
9054
90552011-08-02 Javier Miranda <miranda@adacore.com>
9056
9057 * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo.
9058 * gcc-interface/Make-lang.in: Update dependencies.
9059
90602011-08-02 Javier Miranda <miranda@adacore.com>
9061
9062 * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to
9063 determine if the analysis is performed using N or Original_Node (N).
9064 * exp_util.adb (Side_Effect_Free): Code cleanup since the new
9065 functionality of routine Is_Variable avoids code duplication.
9066 * checks.adb (Determine_Range): Handle temporaries generated by
9067 Remove_Side_Effects.
9068
90692011-08-02 Javier Miranda <miranda@adacore.com>
9070
9071 * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and
9072 expansion of the condition. Required since the previous analysis was
9073 done with expansion disabled (see Resolve_Quantified_Expression) and
9074 hence checks were not inserted and record comparisons have not been
9075 expanded.
9076
90772011-08-02 Ed Falis <falis@adacore.com>
9078
9079 * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads:
9080 Update header.
9081
90822011-08-02 Bob Duff <duff@adacore.com>
9083
9084 * opt.ads: Minor comment fix.
9085
90862011-08-02 Bob Duff <duff@adacore.com>
9087
9088 * sem_ch12.adb (Analyze_Package_Instantiation,
9089 Analyze_Subprogram_Instantiation): Turn off style checking while
9090 analyzing an instance. Whatever style checks that apply to the generic
9091 unit should apply, so it makes no sense to apply them in an instance.
9092 This was causing trouble when compiling an instance of a runtime
9093 unit that violates the -gnatyO switch.
9094 * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from
9095 one of the two case statements, causing spurious errors.
9096
90972011-08-02 Robert Dewar <dewar@adacore.com>
9098
9099 * uname.adb: Minor reformatting.
9100 * gnatcmd.adb: Minor reformatting.
9101 * exp_attr.adb: Minor reformatting.
9102
91032011-08-02 Ed Schonberg <schonberg@adacore.com>
9104
9105 * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction
9106 No_Dispatching_Calls, do not look for the Assign primitive, because
9107 predefined primitives are not created in this case.
9108
91092011-08-02 Bob Duff <duff@adacore.com>
9110
9111 * stylesw.ads: Minor comment fixes.
9112
91132011-08-02 Robert Dewar <dewar@adacore.com>
9114
9115 * freeze.adb (Add_To_Result): New procedure.
9116
91172011-08-02 Jose Ruiz <ruiz@adacore.com>
9118
9119 * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run
9120 time, if the specific run-time routines for handling streams of strings
9121 are not available, use the default mechanism.
9122
91232011-08-02 Arnaud Charlet <charlet@adacore.com>
9124
9125 * s-regpat.ads: Fix typo.
9126
91272011-08-02 Vincent Celier <celier@adacore.com>
9128
9129 * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is
9130 not null, call it to create the in memory config project file without
9131 parsing an existing default config project file.
9132
91332011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9134
9135 * atree.adb (Allocate_Initialize_Node): Remove useless temporaries.
9136
91372011-08-02 Ed Schonberg <schonberg@adacore.com>
9138
9139 * sem_elim.adb: an abstract subprogram does not need an eliminate
9140 pragma for its descendant to be eliminable.
9141
91422011-08-02 Ed Falis <falis@adacore.com>
9143
9144 * init.c: revert to handling before previous checkin for VxWorks
9145 * s-intman-vxworks.adb: delete unnecessary declarations related to
9146 using Ada interrupt facilities for handling signals.
9147 Delete Initialize_Interrupts. Use __gnat_install_handler instead.
9148 * s-intman-vxworks.ads: Import __gnat_install_handler as
9149 Initialize_Interrupts.
9150 * s-taprop-vxworks.adb: Delete Signal_Mask.
9151 (Abort_Handler): change construction of mask to unblock exception
9152 signals.
9153
91542011-08-02 Jerome Guitton <guitton@adacore.com>
9155
9156 * a-except-2005.adb (Raise_From_Signal_Handler): Call
9157 Debug_Raise_Exception before propagation starts.
9158
91592011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9160
9161 * exp_ch6.adb (Expand_Call): Guard restriction checks with a call
9162 to Restriction_Check_Required.
9163 * sem_ch3.adb (Analyze_Object_Declaration): Likewise.
9164 * sem_res.adb (Resolve_Call): Likewise.
9165 * sem_attr.adb (Check_Stream_Attribute): Likewise.
9166
91672011-08-02 Bob Duff <duff@adacore.com>
9168
9169 * stylesw.ads: Update comment.
9170 * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
9171 * errout.ads: Remove obsolete comment.
9172
91732011-08-02 Javier Miranda <miranda@adacore.com>
9174
9175 * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
9176 (Set_Is_Safe_To_Reevaluate): new procedure.
9177 * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
9178 assignment is allowed on safe-to-reevaluate variables.
9179 (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
9180 temporary created to remove side effects in expressions that use
9181 the secondary stack as safe-to-reevaluate.
9182 * exp_util.adb (Side_Effect_Free): Add missing code to handle well
9183 variables that are not true constants.
9184
91852011-08-02 Robert Dewar <dewar@adacore.com>
9186
9187 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
9188 sem_res.adb, sem_ch6.adb: Minor reformatting.
9189
91902011-08-02 Jerome Guitton <guitton@adacore.com>
9191
9192 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
9193
91942011-08-02 Ed Schonberg <schonberg@adacore.com>
9195
9196 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
9197 not set Overridden_Operation if subprogram is an initialization
9198 procedure.
9199
92002011-08-02 Yannick Moy <moy@adacore.com>
9201
9202 * par-ch6.adb: Correct obsolete name in comments
9203 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
9204 which takes two message arguments (existing function takes one), with
9205 second message used for continuation.
9206 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
9207 block statements that originate from a source block statement, not
9208 generated block statements
9209 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
9210 symmetry with procedure case
9211 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
9212 function to issue an error in formal mode if a package specification
9213 contains more than one tagged type or type extension.
9214 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
9215 parameters matching formals of tagged types are objects (or ancestor
9216 type conversions of objects), not general expressions. Issue an error
9217 on view conversions that are not involving ancestor conversion of an
9218 extended type.
9219 (Resolve_Type_Conversion): in formal mode, issue an error on the
9220 operand of an ancestor type conversion which is not an object
9221 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
9222 procedure so that it works also for actuals of function calls
9223 (Is_Actual_Tagged_Parameter): new function which determines if its
9224 argument is an actual parameter of a formal of tagged type in a
9225 subprogram call
9226 (Is_SPARK_Object_Reference): new function which determines if the tree
9227 referenced by its argument represents an object in SPARK
9228
92292011-08-02 Robert Dewar <dewar@adacore.com>
9230
9231 * sem_ch3.adb: Minor reformatting
9232 Minor comment addition
9233 Minor error msg text change
9234
92352011-08-02 Javier Miranda <miranda@adacore.com>
9236
9237 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
9238 function. Used to be more precise when we generate a variable plus one
9239 assignment to remove side effects in the evaluation of the Bound
9240 expressions.
9241 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
9242 of the bound expression to force its re-analysis and thus expand the
9243 associated transient scope (if required). Code cleanup replacing the
9244 previous code that declared the constant entity by an invocation to
9245 routine Force_Evaluation which centralizes this work in the frontend.
9246
92472011-08-02 Robert Dewar <dewar@adacore.com>
9248
9249 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
9250 (Base_Type): Now uses improved Is_Base_Type function
9251 * einfo.ads (Base_Type): Inline this function
9252
92532011-08-02 Robert Dewar <dewar@adacore.com>
9254
9255 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
9256 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
9257
92582011-08-02 Arnaud Charlet <charlet@adacore.com>
9259
9260 * gcc-interface/Make-lang.in: Update dependencies.
9261 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
9262 targets.
9263
92642011-08-02 Yannick Moy <moy@adacore.com>
9265
9266 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
9267 non-simple expression used in delta constraint
9268 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
9269 index constraint which is not a subtype mark
9270 * par.adb: With and use Restrict
9271 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
9272 mode on component type which is not a subtype mark and default
9273 expression on component
9274 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
9275 of string which does not have a lower index bound equal to 1
9276 (Array_Type_Declaration): issue an error in formal mode on index or
9277 component type which is not a subtype mark, and on aliased keyword on
9278 component
9279 (Derived_Type_Declaration): issue an error in formal mode on interface,
9280 limited or abstract type
9281 (Record_Type_Declaration): issue an error in formal mode on interface
9282 (Record_Type_Definition): issue an error in formal mode on tagged types
9283 and type extensions not declared in the specification of a library unit
9284 package; on null non-tagged record; on variant part
9285
92862011-08-02 Vincent Celier <celier@adacore.com>
9287
9288 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
9289 not declared for qualified library project when Library_Name is not
9290 declared, but Library_Dir is.
9291
92922011-08-02 Robert Dewar <dewar@adacore.com>
9293
9294 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
9295 pragmas (affects aspects [Component_]Default_Value
9296 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
9297 component type for the resolution
9298
92992011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9300
9301 * einfo.adb (Base_Type): Tune implementation for speed.
9302
93032011-08-02 Robert Dewar <dewar@adacore.com>
9304
9305 * freeze.adb: Minor reformatting.
9306
93072011-08-02 Thomas Quinot <quinot@adacore.com>
9308
9309 * scos.ads: Update comments.
9310
93112011-08-02 Ed Schonberg <schonberg@adacore.com>
9312
9313 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
9314 base type, because the parent may be a subtype of a private type whose
9315 convention is established in a private part.
9316
93172011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
9318
9319 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
9320 statement in a block when the expansion of the return expression has
9321 created a finalization chain.
9322 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
9323 with the parent node.
9324 Add N_Extended_Return_Statement to handle the case where a transient
9325 object declaration appears in the Return_Object_Declarations list of
9326 an extended return statement.
9327
93282011-08-02 Matthew Gingell <gingell@adacore.com>
9329
9330 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
9331 unused parameter 'name'.
9332
93332011-08-02 Ed Schonberg <schonberg@adacore.com>
9334
9335 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
9336 inherited operation, check whether its alias, which is the source
9337 operastion that it renames, has been marked eliminated.
9338
93392011-08-02 Javier Miranda <miranda@adacore.com>
9340
9341 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
9342 in-mode parameter whose type is an access type since it can be used to
9343 modify its designated object. Enforce code that handles as safe an
9344 access type that is not access-to-constant but it is the result of a
9345 previous removal of side-effects.
9346 (Remove_Side_Effects): Minor code reorganization of cases which require
9347 no action. Done to incorporate documentation on new cases uncovered
9348 working in this ticket: no action needed if this routine was invoked
9349 too early and the nodes are not yet decorated.
9350 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
9351 to routine Remove_Side_Effects by calls to Force_Evaluation since they
9352 were issued with actuals that are implicitly provided by
9353 Force_Evaluation.
9354
93552011-08-02 Robert Dewar <dewar@adacore.com>
9356
9357 * sem_ch3.adb, sem_res.adb: Minor reformatting.
9358
93592011-08-02 Yannick Moy <moy@adacore.com>
9360
9361 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
9362 to issue an error in formal mode on attribute not supported in this mode
9363 (Analyze_Attribute): issue errors on standard attributes not supported
9364 in formal mode.
9365 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
9366 comment, and issue error in formal mode on modulus which is not a power
9367 of 2.
9368 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
9369 range.
9370 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
9371 subtype mark.
9372 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
9373 operator on modular type (except 'not').
9374
93752011-08-02 Robert Dewar <dewar@adacore.com>
9376
9377 * gnat_rm.texi: Minor reformatting.
9378
93792011-08-02 Arnaud Charlet <charlet@adacore.com>
9380
9381 * s-osinte-linux.ads: Minor comment update and reformatting.
9382 * i-cexten.ads: Make this unit pure, as for its parent.
9383 Will allow its usage in more contexts if needed.
9384
93852011-08-02 Robert Dewar <dewar@adacore.com>
9386
9387 * s-utf_32.ads: Minor comment fix.
9388
93892011-08-02 Ed Schonberg <schonberg@adacore.com>
9390
9391 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
9392 operation of a tagged synchronized type, handle the case where the
9393 controlling argument is overloaded.
9394
93952011-08-02 Yannick Moy <moy@adacore.com>
9396
9397 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
9398 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
9399 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
9400 SPARK mode and formal verification mode on processing SPARK restriction
9401 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
9402 requiring consistency checking.
9403
94042011-08-02 Robert Dewar <dewar@adacore.com>
9405
9406 * sem_res.adb: Minor reformatting.
9407
94082011-08-02 Robert Dewar <dewar@adacore.com>
9409
9410 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
9411 a-cforse.ads: Remove unneeded with of Ada.Containers
9412 Remove commented out pragma Inline's
9413 Move specifications of new subprograms to the actual specs
9414
94152011-08-02 Yannick Moy <moy@adacore.com>
9416
9417 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
9418 a-cforse.ads: Update comments.
9419
94202011-08-02 Ed Schonberg <schonberg@adacore.com>
9421
9422 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
9423
94242011-08-02 Robert Dewar <dewar@adacore.com>
9425
9426 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
9427 a-cforse.ads, a-cofove.ads: Minor reformatting.
9428
94292011-08-02 Claire Dross <dross@adacore.com>
9430
9431 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
9432 a-cofove.ads: Add comments.
9433
94342011-08-02 Yannick Moy <moy@adacore.com>
9435
9436 * gnat_rm.texi: Document formal containers.
9437
94382011-08-02 Emmanuel Briot <briot@adacore.com>
9439
9440 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
9441 are empty sections.
9442
94432011-08-02 Robert Dewar <dewar@adacore.com>
9444
9445 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
9446 reformatting.
9447
94482011-08-02 Robert Dewar <dewar@adacore.com>
9449
9450 * aspects.adb: New aspects Default_Value and Default_Component_Value
9451 New format of Aspect_Names table checks for omitted entries
9452 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
9453 handling of boolean aspects for derived types.
9454 New aspects Default_Value and Default_Component_Value
9455 New format of Aspect_Names table checks for omitted entries
9456 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
9457 (Has_Default_Value): New flag
9458 (Has_Default_Component_Value): New flag
9459 (Has_Default_Value): New flag
9460 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
9461 table.
9462 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
9463 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
9464 Default_Value and Default_Component_Value
9465 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
9466 New aspects Default_Value and Default_Component_Value
9467 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
9468 * sprint.adb: Print N_Aspect_Specification node when called from gdb
9469
94702011-08-02 Vincent Celier <celier@adacore.com>
9471
9472 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
9473 inherit library kind.
9474
94752011-08-02 Ed Schonberg <schonberg@adacore.com>
9476
9477 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
9478 Minor reformatting.
9479
94802011-08-02 Robert Dewar <dewar@adacore.com>
9481
9482 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
9483
94842011-08-02 Yannick Moy <moy@adacore.com>
9485
9486 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
9487
94882011-08-02 Robert Dewar <dewar@adacore.com>
9489
9490 * impunit.adb: Add comment.
9491
94922011-08-02 Yannick Moy <moy@adacore.com>
9493
9494 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
9495 qualification of aggregates in formal mode
9496 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
9497 another aggregate
9498 (Resolve_Aggregate): complete the test that an aggregate is adequately
9499 qualified in formal mode
9500
95012011-08-02 Pascal Obry <obry@adacore.com>
9502
9503 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
9504 * mlib-prj.adb: Supress warning when compiling binder generated file.
9505 (Build_Library): Supress all warnings when compiling the binder
9506 generated file.
9507
95082011-08-02 Yannick Moy <moy@adacore.com>
9509
9510 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
9511 from here...
9512 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
9513 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
9514 Add with/use clauses to make Check_Formal_Restriction visible
9515
95162011-08-02 Ed Schonberg <schonberg@adacore.com>
9517
9518 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
9519 in-parameters when type of the generic formal is private in the generic
9520 spec and non-private in the body.
9521
95222011-08-02 Claire Dross <dross@adacore.com>
9523
9524 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
9525 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
9526 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
9527 * impunit.adb, Makefile.rtl: Take new files into account.
9528
95292011-08-02 Robert Dewar <dewar@adacore.com>
9530
9531 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
9532 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
9533
95342011-08-02 Yannick Moy <moy@adacore.com>
9535
9536 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
9537 formal mode
9538 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
9539 matching static array bounds, taking into account the special case of
9540 string literals
9541 * sem_ch3.adb: Typo in comment.
9542
95432011-08-02 Yannick Moy <moy@adacore.com>
9544
9545 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
9546 which issues an error in formal mode if its argument node is originally
9547 from source
9548 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
9549 has a discriminant specification so that it does not include the case
9550 of derived types
9551 (Derived_Type_Declaration): move here the test that a derived type has a
9552 discriminant specification
9553 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
9554 first element of a component association before accessing its choices
9555 (presence of component association is not enough)
9556 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
9557 declaration is a library item before accessing the next element in a
9558 list, as library items are not member of lists
9559 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
9560 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
9561 Check_Formal_Restriction whenever possible.
9562
95632011-08-02 Ed Schonberg <schonberg@adacore.com>
9564
9565 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
9566 reference when needed.
9567
95682011-08-02 Bob Duff <duff@adacore.com>
9569
9570 * gnat_ugn.texi: Fix typo.
9571
95722011-08-02 Vincent Celier <celier@adacore.com>
9573
9574 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
9575 archive file name. Do not use the full path name of archives for Open
9576 VMS.
9577
95782011-08-02 Robert Dewar <dewar@adacore.com>
9579
9580 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
9581 Analyze_Aspect_Specifications
9582 * sem_ch13.adb
9583 (Analyze_Aspect_Specifications): New handling for boolean aspects
9584 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
9585 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
9586 sequence for Analyze_Aspect_Specifications
9587 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
9588 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
9589
95902011-08-02 Robert Dewar <dewar@adacore.com>
9591
9592 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
9593 aspects, since these no longer exist.
9594
95952011-08-02 Robert Dewar <dewar@adacore.com>
9596
9597 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
9598 semicolon, do not try to see if there are aspects following it.
9599 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
9600 aspect spec.
9601
96022011-08-02 Robert Dewar <dewar@adacore.com>
9603
9604 * sem_ch8.adb, aspects.ads: Minor reformatting.
9605
96062011-08-02 Eric Botcazou <ebotcazou@adacore.com>
9607
9608 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
9609 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
9610 extracted from...
9611 (Analyze_Aspect_Specifications): ...here. Call above procedure.
9612
96132011-08-02 Yannick Moy <moy@adacore.com>
9614
9615 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
9616 mode on subprogram declaration outside of package specification, unless
9617 it is followed by a pragma Import
9618 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
9619 Access_Type_Declaration): issue error in formal mode on access type
9620 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
9621 incomplete type
9622 (Analyze_Object_Declaration): issue error in formal mode on object
9623 declaration which does not respect SPARK restrictions
9624 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
9625 declaration which does not respect SPARK restrictions
9626 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
9627 error in formal mode on digits or delta constraint
9628 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
9629 decimal fixed point type
9630 (Derived_Type_Declaration): issue error in formal mode on derived type
9631 other than type extensions of tagged record types
9632 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
9633 with check on access definition
9634 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
9635 mode on protected definition.
9636 (Analyze_Task_Definition): issue error in formal mode on task definition
9637
96382011-08-02 Robert Dewar <dewar@adacore.com>
9639
9640 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
9641
96422011-08-02 Javier Miranda <miranda@adacore.com>
9643
9644 * sem_ch6.adb (Can_Override_Operator): New function.
9645 (Verify_Overriding_Indicator): Add missing code to check overriding
9646 indicator in operators. Fixes regression.
9647 (Check_Overriding_Indicator): Minor reformating after replacing the
9648 code that evaluates if the subprogram can override an operator by
9649 invocations to the above new function.
9650 * einfo.adb
9651 (Write_Field26_Name): Add missing code to ensure that, following
9652 the documentation in einfo.ads, this field is not shown as attribute
9653 "Static_Initialization" on non-dispatching functions.
9654
96552011-08-02 Jose Ruiz <ruiz@adacore.com>
9656
9657 * sem_res.adb (Resolve_Call): A call to
9658 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
9659 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
9660 i.e., when the second parameter is of type Time_Span.
9661
96622011-08-02 Vincent Celier <celier@adacore.com>
9663
9664 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
9665 with an archive instead of -L<library dir> -l<library name>.
9666
96672011-08-02 Ed Schonberg <schonberg@adacore.com>
9668
9669 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
9670 mark the base types In_Use in addition to making the operations
9671 use_visible.
9672
96732011-08-02 Ed Falis <falis@adacore.com>
9674
9675 * init.c: add and setup __gnat_signal_mask for the exception signals
9676 * s-inmaop-vxworks.adb: new file.
9677 * s-intman-vxworks.adb: remove unnecessary initializations and
9678 simplify remaining
9679 * s-intman-vxworks.ads: remove unnecessary variable
9680 * s-taprop-vxworks.adb: simplify signal initialization
9681
96822011-08-02 Robert Dewar <dewar@adacore.com>
9683
9684 * sem_ch8.adb: Minor code reorganization, comment updates.
9685
96862011-08-02 Robert Dewar <dewar@adacore.com>
9687
9688 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
9689 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
9690 here from Sem_Res.
9691 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
9692 (Matching_Static_Array_Bounds): Moved here from Sem_Res
9693
96942011-08-02 Ed Schonberg <schonberg@adacore.com>
9695
9696 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
9697 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
9698 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
9699 use_type_clauses, to handle more efficiently use_type and use_all_type
9700 constructs.
9701 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
9702 Ada2012 Use_All_Type clause.
9703 (Use_Class_Wide_Operations): new procedure.
9704
97052011-08-02 Robert Dewar <dewar@adacore.com>
9706
9707 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
9708 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
9709 expression to expression function.
9710
97112011-08-02 Ed Schonberg <schonberg@adacore.com>
9712
9713 * sem_ch4.adb: transform simple Ada2012 membership into equality only
9714 if types are compatible.
9715
97162011-08-02 Yannick Moy <moy@adacore.com>
9717
9718 * sem_res.adb (Matching_Static_Array_Bounds): new function which
9719 returns True if its argument array types have same dimension and same
9720 static bounds at each index.
9721 (Resolve_Actuals): issue an error in formal mode on actuals passed as
9722 OUT or IN OUT paramaters which are not view conversions in SPARK.
9723 (Resolve_Arithmetic_Op): issue an error in formal mode on
9724 multiplication or division with operands of fixed point types which are
9725 not qualified or explicitly converted.
9726 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
9727 Boolean or array type (except String) operands.
9728 (Resolve_Equality_Op): issue an error in formal mode on equality
9729 operators for array types other than String with non-matching static
9730 bounds.
9731 (Resolve_Logical_Op): issue an error in formal mode on logical operators
9732 for array types with non-matching static bounds. Factorize the code in
9733 Matching_Static_Array_Bounds.
9734 (Resolve_Qualified_Expression): issue an error in formal mode on
9735 qualified expressions for array types with non-matching static bounds.
9736 (Resolve_Type_Conversion): issue an error in formal mode on type
9737 conversion for array types with non-matching static bounds
9738
97392011-08-02 Robert Dewar <dewar@adacore.com>
9740
9741 * par-ch10.adb: Minor code reorganization (use Nkind_In).
9742
97432011-08-02 Ed Schonberg <schonberg@adacore.com>
9744
9745 * par-ch9.adb: save location of entry for proper error message.
9746
97472011-08-02 Javier Miranda <miranda@adacore.com>
9748
9749 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
9750 (Use_Full_View) which permits this routine to climb through the
9751 ancestors using the full-view of private parents.
9752 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
9753 Use_Full_View to true in calls to Is_Ancestor.
9754 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
9755 true in call to Is_Ancestor.
9756 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
9757 Use_Full_View to true in call to Is_Ancestor.
9758 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
9759 call to Is_Ancestor.
9760 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
9761 Use_Full_View to true in calls to Is_Ancestor.
9762 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
9763 Make_Select_Specific_Data_Table, Register_Primitive,
9764 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
9765 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
9766 to true in call to Is_Ancestor.
9767 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
9768 Use_Full_View to true in calls to Is_Ancestor.
9769 * exp_cg.adb
9770 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
9771 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
9772
97732011-08-02 Robert Dewar <dewar@adacore.com>
9774
9775 * gnat_rm.texi: Minor reformatting.
9776 * sem_prag.adb: Minor reformatting.
9777
97782011-08-02 Tristan Gingold <gingold@adacore.com>
9779
9780 * vms_data.ads: Add VMS qualifier for -gnateP.
9781
97822011-08-02 Robert Dewar <dewar@adacore.com>
9783
9784 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
9785 * par-ch7.adb (P_Package): Proper placement of aspects for package
9786 decl/instantiation.
9787 * par-endh.adb (Check_End): Ad Is_Sloc parameter
9788 (End_Statements): Add Is_Sloc parameterr
9789 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
9790 (Check_End): Ad Is_Sloc parameter
9791 (End_Statements): Add Is_Sloc parameterr
9792
97932011-08-02 Vincent Celier <celier@adacore.com>
9794
9795 * ug_words: Add VMS qualifier equivalent to -gnateP:
9796 /SYMBOL_PREPROCESSING.
9797
97982011-08-02 Jose Ruiz <ruiz@adacore.com>
9799
9800 * gnat-style.texi: For hexadecimal numeric literals the typical
9801 grouping of digits is 4 to represent 2 bytes.
9802 A procedure spec which is split into several lines is indented two
9803 characters.
9804
98052011-08-02 Yannick Moy <moy@adacore.com>
9806
9807 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
9808 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
9809 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
9810 properly qualified
9811 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
9812 choice in array aggregate
9813 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
9814 mark as ancestor
9815 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
9816 positional and named aggregate for record, or others in record
9817 aggregate, or multiple choice in record aggregate
9818 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
9819 array operands to logical operations AND, OR and XOR do not have the
9820 same static lower and higher bounds
9821 * sem_ch5.adb, sinfo.ads: Correct typos in comments
9822
98232011-08-01 Robert Dewar <dewar@adacore.com>
9824
9825 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
9826 Replaces Last_Source_Node_In_Sequence.
9827 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
9828 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
9829 parens and blank in string (this was inconsistently implemented).
9830 * errout.ads
9831 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
9832 blank in string (this was inconsistently implemented).
9833 * gnat1drv.adb
9834 (Set_Global_Switches): Set formal mode switches appropriately
9835 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
9836 * par-prag.adb
9837 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
9838 call Set_Error_Msg_Lang to set "spark" as language name.
9839 * par.adb: Remove unnecessary call to set formal language for errout
9840 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
9841 appropriately and call Set_Error_Msg_Lang to set "spark" as language
9842 name.
9843 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
9844 calls to it, moved after resolution so that types are known
9845 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
9846 result of concatenation is not of type String
9847 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
9848 concatenation is not properly restricted
9849 * gnat_rm.texi: Add doc on pragma Spark_95.
9850 * gcc-interface/Makefile.in: Remove obsolete target pairs for
9851 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
9852 * gcc-interface/Make-lang.in: Update dependencies.
9853
98542011-08-01 Javier Miranda <miranda@adacore.com>
9855
9856 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
9857 condition that detects if the overridden operation must replace an
9858 existing entity.
9859
98602011-08-01 Javier Miranda <miranda@adacore.com>
9861
9862 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
9863 code declarations inserted by Insert_Actions in each alternative of the
9864 N_Case_Expression node.
9865
98662011-08-01 Robert Dewar <dewar@adacore.com>
9867
9868 * sem_ch6.adb: Minor code reorganization.
9869 * sem_util.adb: Minor reformatting.
9870
98712011-08-01 Pascal Obry <obry@adacore.com>
9872
9873 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
9874 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
9875
98762011-08-01 Yannick Moy <moy@adacore.com>
9877
9878 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
9879 literal or operator symbol which is prefixed
9880 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
9881 mode on access attributes.
9882 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
9883 that concatenation operands are properly restricted in formal mode
9884 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
9885 Analyze_Concatenation_Operand. Issue an error in formal mode if the
9886 result of the concatenation has a type different from String.
9887 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
9888 Analyze_Quantified_Expression, Analyze_Slice,
9889 Analyze_Null): issue an error in formal mode on unsupported constructs
9890 * sem_ch5.adb
9891 (Analyze_Block_Statement): only issue error on source block statement
9892 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
9893 function which returns the last node in a list of nodes for which
9894 Comes_From_Source returns True, if any
9895 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
9896 Last_Source_Node_In_Sequence
9897 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
9898 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
9899 mode on unsupported constructs
9900 * sem_ch9.adb Do not return after issuing error in formal mode, as the
9901 rest of the actions may be needed later on since the error is marked as
9902 not serious.
9903 * sinfo.ads: Typos in comments.
9904
99052011-08-01 Pascal Obry <obry@adacore.com>
9906
9907 * projects.texi: Minor editing.
9908
99092011-08-01 Yannick Moy <moy@adacore.com>
9910
9911 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
9912 insertion character ~~
9913 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
9914 (Set_Error_Msg_Lang): new procedure which fixes the language for use
9915 with insertion character ~~
9916 (Set_Msg_Text): treat insertion character ~~
9917 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
9918 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
9919 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
9920 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
9921 errors related to the formal language restriction not serious
9922 (insertion character |).
9923 * par.adb (Par): set formal language for error messages if needed
9924 * sem_ch6.adb (Check_Missing_Return): take into account possible
9925 generated statements at the end of the function
9926 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
9927 enumeration value to define a new pragma SPARK_95
9928 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
9929 SPARK_Version): new type and variables to store the SPARK version
9930 (none by default).
9931 (SPARK_Mode): return True when SPARK_Version is set
9932 * par-prag.adb: Correct indentation
9933 (Prag): take Pragma_SPARK_95 into account
9934 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
9935 into account.
9936
99372011-08-01 Robert Dewar <dewar@adacore.com>
9938
9939 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
9940 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
9941 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
9942
99432011-08-01 Pascal Obry <obry@adacore.com>
9944
9945 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
9946 Target_Name to Get_Path call.
9947 (Parse_Single_Project): Likewise.
9948 (Post_Parse_Context_Clause): Likewise.
9949 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
9950 Call Initialise_Project_Path with the proper Target_Name.
9951 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
9952 search path.
9953 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
9954 with the proper Target_Name.
9955 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
9956 Part.Parse routine.
9957 (Parse_Project_And_Apply_Config): Likewise.
9958 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
9959 This is fine as this part of the code is supporting only native
9960 compilation.
9961 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
9962 is fine as this part of the code is supporting only native compilation.
9963
99642011-08-01 Yannick Moy <moy@adacore.com>
9965
9966 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
9967 of homonym, unless the homonym is one of the cases allowed in SPARK
9968 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
9969 package declaration occurring after a body.
9970
99712011-08-01 Robert Dewar <dewar@adacore.com>
9972
9973 * checks.adb, exp_ch4.adb: Minor reformatting.
9974
99752011-08-01 Javier Miranda <miranda@adacore.com>
9976
9977 * einfo.ads (Access_Disp_Table): Fix documentation.
9978 (Dispatch_Table_Wrappers): Fix documentation.
9979
99802011-08-01 Pascal Obry <obry@adacore.com>
9981
9982 * prj-env.adb, prj-env.ads: Minor reformatting.
9983
99842011-08-01 Yannick Moy <moy@adacore.com>
9985
9986 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
9987 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
9988 procedures out of these packages.
2c7f9cc0 9989 * errout.ads, errout.adb
052e0603
AC
9990 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
9991 procedures in of this package
9992 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
9993 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
9994 on misplaced later vs initial declarations, like in Ada 83
9995 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
9996 formal mode on attribute of private type whose full type declaration
9997 is not visible
9998 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
9999 package declaration inside a package specification
10000 (Analyze_Full_Type_Declaration): issue error in formal mode on
10001 controlled type or discriminant type
10002 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
10003 user-defined operator means that it should come from the source
10004 (New_Overloaded_Entity): issue error in formal mode on overloaded
10005 entity.
10006 * sem_ch6.ads, sem_ch13.ads: typos in comments.
10007
100082011-08-01 Thomas Quinot <quinot@adacore.com>
10009
10010 * atree.adb: Minor reformatting.
10011 * checks.adb: Minor reformatting.
10012
100132011-08-01 Vincent Celier <celier@adacore.com>
10014
10015 * s-parame-vms-ia64.ads: Fix typo in comment
10016 Minor reformatting
10017 * s-parame-vms-restrict.ads: Removed, unused.
10018
100192011-08-01 Javier Miranda <miranda@adacore.com>
10020
10021 * exp_ch3.adb
10022 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
10023 * sem_ch3.adb
10024 (Constrain_Index): Remove side effects in the evaluation of the bounds.
10025 * sem_ch3.ads, sem_ch3.adb
10026 (Is_Constant_Bound): New extended version of the subprogram that was
10027 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
10028 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
10029 * sem_aux.ads (Constant_Value): Fix typo in comment.
10030 * checks.adb (Generate_Index_Checks): New implementation which, for
10031 array objects with constant bounds, generates the runtime check
10032 referencing the bounds of the array type. For other cases this routine
10033 provides its previous behavior obtaining such values from the array
10034 object.
10035 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
10036 parent type.
10037 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
10038 we cannot have semantic interpretations of the new node.
10039
100402011-08-01 Ed Schonberg <schonberg@adacore.com>
10041
10042 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
10043 expressions.
10044
100452011-08-01 Arnaud Charlet <charlet@adacore.com>
10046
10047 * sem_ch8.adb: Minor code editing.
10048 * s-vxwext.adb: Remove trailing space.
10049 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
10050 consistency with other files.
10051
100522011-08-01 Thomas Quinot <quinot@adacore.com>
10053
10054 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
10055
100562011-08-01 Ed Schonberg <schonberg@adacore.com>
10057
10058 * par-ch10.adb: reject parameterized expressions as compilation unit.
10059 * sem_ch4.adb: handle properly conditional expression with overloaded
10060 then_clause and no else_clause.
10061
100622011-08-01 Tristan Gingold <gingold@adacore.com>
10063
10064 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
10065 like done by System.Aux_DEC.
10066 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
10067
100682011-08-01 Yannick Moy <moy@adacore.com>
10069
10070 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
10071 missing label at end of declaration (subprogram or package)
10072 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
10073 of positional and named parameter association
10074 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
10075 Error_Msg_SP which adds a prefix to the error message giving the name
10076 of the formal language analyzed
10077 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
10078 access result type in subprogram, unconstrained array as result type,.
10079 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
10080 procedure
10081 * sem_ch8.adb: Code clean up.
10082
100832011-08-01 Javier Miranda <miranda@adacore.com>
10084
10085 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
10086 * einfo.ads (Access_Disp_Table): Fix documentation.
10087 (Dispatch_Table_Wrappers): Fix documentation.
10088 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
10089 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
10090 to enforce the documentation of this attribute.
10091 (Set_Is_Interface): Cleanup the assertion.
10092 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
10093 the Underlying_Type entity before reading attribute Access_Disp_Table.
10094 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
10095 Locate the Underlying_Type before reading attribute Access_Disp_Table.
10096 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
10097 the Underlying_Type entity before reading attribute Access_Disp_Table.
10098 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
10099 Locate the Underlying_Type entity before reading attribute
10100 Access_Disp_Table.
10101
101022011-08-01 Ed Schonberg <schonberg@adacore.com>
10103
10104 * s-poosiz.ads: Additional overriding indicators.
10105
101062011-08-01 Yannick Moy <moy@adacore.com>
10107
10108 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
10109 formal mode.
10110 (Analyze_Iteration_Scheme): issue error in formal mode when loop
10111 parameter specification does not include a subtype mark.
10112 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
10113 formal mode on abstract subprogram.
10114 (Analyze_Subprogram_Specification): issue error in formal mode on
10115 user-defined operator.
10116 (Process_Formals): issue error in formal mode on access parameter and
10117 default expression.
10118 * sem_ch9.adb (Analyze_Abort_Statement,
10119 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
10120 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
10121 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
10122 Analyze_Requeue, Analyze_Selective_Accept,
10123 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
10124 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
10125 issue error in formal mode on user-defined raise statement.
10126
101272011-08-01 Thomas Quinot <quinot@adacore.com>
10128
10129 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
10130 declaration being hidden when overriding an implicit inherited
10131 subprogram.
10132 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
10133 (-gnats), do not complain about a source file that contains only a
10134 pragma No_Body.
10135
101362011-08-01 Ed Schonberg <schonberg@adacore.com>
10137
10138 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
10139 variable if already set.
10140
101412011-08-01 Arnaud Charlet <charlet@adacore.com>
10142
10143 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
10144 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
10145 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
10146 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
10147 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
10148 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
10149 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
10150 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
10151 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
10152 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
10153 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
10154 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
10155 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
10156 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
10157 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
10158 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
10159 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
10160 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
10161 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
10162 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
10163 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
10164 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
10165 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
10166 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
10167 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
10168 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
10169 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
10170 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
10171 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
10172 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
10173 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
10174 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
10175 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
10176 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
10177 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
10178 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
10179 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
10180 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
10181 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
10182 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
10183 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
10184 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
10185 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
10186 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
10187 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
10188 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
10189 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
10190 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
10191 s-osinte-mingw.ads: Update to GPLv3 run-time license.
10192 Use GNAT instead of GNARL.
10193
101942011-08-01 Bob Duff <duff@adacore.com>
10195
10196 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
10197 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
10198 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
10199 reformatting.
10200
102012011-08-01 Yannick Moy <moy@adacore.com>
10202
10203 * debug.adb (d.D) reverve flag for the SPARK mode
10204 (d.E) reverve flag for SPARK generation mode
10205 (d.F) reverve flag for Why generation mode
2c7f9cc0 10206 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
052e0603
AC
10207 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
10208 functions which return True when the corresponding modes are set
10209 (Formal_Language): return "spark" or "alfa" when in formal verification
10210 mode.
10211 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
10212 Error_Msg to prefix the error message with a tag giving the formal
10213 language
10214 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
10215 message with a tag giving the formal language
10216 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
10217 block statement
10218 (Analyze_Case_Statement): issue error in formal mode on case statement
10219 with a single "others" case alternative
10220 (Analyze_Exit_Statement): issue errors in formal mode on exit
10221 statements which do not respect SPARK restrictions
10222 (Analyze_Goto_Statement): issue error in formal mode on goto statement
10223 (Check_Unreachable_Code): always issue an error (not a warning) in
10224 formal mode on unreachable code (concerns both code after an infinite
10225 loop and after an unconditional jump, both not allowed in SPARK)
10226 * sem_ch6.adb (Analyze_Return_Statement): add call to
10227 Set_Return_Present for a procedure containing a return statement
10228 (already done for functions in Analyze_Function_Return)
10229 (Analyze_Function_Return): issue error in formal mode on extended
10230 return or if return is not last statement in function
10231 (Check_Missing_Return): issue error in formal mode if function does
10232 not end with return or if procedure contains a return
10233 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
10234 function to detect if there is an inner scope of its parameter S which
10235 is a loop.
10236
102372011-08-01 Thomas Quinot <quinot@adacore.com>
10238
10239 * sem_ch6.ads: Minor reformatting.
10240
102412011-08-01 Javier Miranda <miranda@adacore.com>
10242
10243 * sem_util.adb (Abstract_Interface_List): Complete condition when
10244 processing private type declarations to avoid reading unavailable
10245 attribute.
10246 (Is_Synchronized_Tagged_Type): Complete condition when processing
10247 private extension declaration nodes to avoid reading unavailable
10248 attribute.
10249
102502011-08-01 Thomas Quinot <quinot@adacore.com>
10251
10252 * sem_ch3.adb: Minor reformatting.
10253
102542011-08-01 Thomas Quinot <quinot@adacore.com>
10255
10256 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
10257 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
10258 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
10259 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
10260 for VMS, instead parametrize the common implementation with
10261 System.Parameters declarations.
10262
102632011-08-01 Eric Botcazou <ebotcazou@adacore.com>
10264
10265 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
10266
102672011-08-01 Tristan Gingold <gingold@adacore.com>
10268
10269 * seh_init.c: Fix SEH handler installation on win64.
10270
102712011-08-01 Ed Schonberg <schonberg@adacore.com>
10272
10273 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
10274 double analysis of an anonymous access to subprogram, because it can
10275 lead to improper sharing of profiles and a back-end crash.
10276
102772011-08-01 Robert Dewar <dewar@adacore.com>
10278
10279 * make.adb, sem_ch4.adb: Minor reformatting.
10280 * gcc-interface/Make-lang.in: Update dependencies.
10281 * sem_util.adb, exp_ch5.adb: Minor reformatting.
10282
102832011-08-01 Arnaud Charlet <charlet@adacore.com>
10284
10285 * gnat_rm.texi: Fix definition of Long_Integer.
10286
102872011-08-01 Ed Schonberg <schonberg@adacore.com>
10288
10289 * exp_aggr.adb: check limit size of static aggregate unconditionally,
10290 to prevent storage exhaustion.
10291 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
10292 finalized is a function body, insert the cleanup code before the final
10293 return statement, to prevent spurious warnings.
10294 * s-pooglo.ads: add overriding indicator.
10295
102962011-08-01 Ed Schonberg <schonberg@adacore.com>
10297
10298 * sem_ch4.adb (Operator_Check): improve error message when both a
10299 with_clause and a use_clause are needed to make operator usage legal.
10300 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
10301 determine whether a compilation unit is visible within an other,
10302 either through a with_clause in the current unit, or a with_clause in
10303 its library unit or one one of its parents.
10304
103052011-08-01 Ed Schonberg <schonberg@adacore.com>
10306
10307 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
10308 over an arbitrary expression of an array or container type.
10309 * lib-xref.adb: clarify comment.
10310
103112011-08-01 Bob Duff <duff@adacore.com>
10312
10313 * einfo.ads: Minor reformatting.
10314 * debug.adb: Minor comment improvement.
10315
103162011-08-01 Javier Miranda <miranda@adacore.com>
10317
10318 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
10319 consider hidden subprograms as valid candidates.
10320
103212011-08-01 Arnaud Charlet <charlet@adacore.com>
10322
10323 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
10324
103252011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
10326
10327 * gnat_ugn.texi: Fix typo.
10328
103292011-08-01 Robert Dewar <dewar@adacore.com>
10330
10331 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
10332 lib-xref.adb: Minor reformatting
10333
103342011-08-01 Gary Dismukes <dismukes@adacore.com>
10335
10336 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
10337 when to generate a call to Move_Final_List.
10338 (Has_Controlled_Parts): Remove this function.
10339
103402011-08-01 Geert Bosch <bosch@adacore.com>
10341
10342 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
10343 "," in choice list.
10344
103452011-08-01 Thomas Quinot <quinot@adacore.com>
10346
10347 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
10348 explicit raise of a predefined exception as Comes_From_Source if the
10349 original N_Raise_Statement comes from source.
10350
103512011-08-01 Robert Dewar <dewar@adacore.com>
10352
10353 * sinfo.ads: Add comment.
10354 * sem_ch6.adb: Minor reformatting.
10355
103562011-08-01 Robert Dewar <dewar@adacore.com>
10357
10358 * freeze.adb (Freeze_Entity): Refine check for bad component size
10359 clause to avoid rejecting confirming clause when atomic/aliased present.
10360
103612011-08-01 Ed Schonberg <schonberg@adacore.com>
10362
10363 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
10364 better determine whether an entity reference is a write.
10365 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
10366 subcomponent.
10367 * lib-xref.adb (Output_References): Do no suppress a read reference at
10368 the same location as an immediately preceeding modify-reference, to
10369 handle properly in-out actuals.
10370
103712011-08-01 Tristan Gingold <gingold@adacore.com>
10372
10373 * env.c (__gnat_setenv) [VMS]: Refine previous change.
10374
103752011-08-01 Quentin Ochem <ochem@adacore.com>
10376
10377 * i-cstrin.adb (New_String): Changed implementation, now uses only the
10378 heap to compute the result.
10379
103802011-08-01 Robert Dewar <dewar@adacore.com>
10381
10382 * atree.ads: Minor reformatting.
10383
103842011-08-01 Emmanuel Briot <briot@adacore.com>
10385
10386 * g-expect.adb (Get_Command_Output): Fix memory leak.
10387
103882011-08-01 Geert Bosch <bosch@adacore.com>
10389
10390 * cstand.adb (P_Float_Type): New procedure to print the definition of
10391 predefined fpt types.
10392 (P_Mixed_Name): New procedure to print a name using mixed case
10393 (Print_Standard): Use P_Float_Type for printing floating point types
10394 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
10395 precision IEEE float.
10396
103972011-08-01 Thomas Quinot <quinot@adacore.com>
10398
10399 * sem_ch3.adb: Minor reformatting.
10400
104012011-08-01 Ed Schonberg <schonberg@adacore.com>
10402
10403 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
10404 the completion of a generic function, insert the new body rather than
10405 rewriting the original.
10406
104072011-08-01 Yannick Moy <moy@adacore.com>
10408
10409 * sinfo.ads, errout.ads: Typos in comments.
10410
104112011-08-01 Robert Dewar <dewar@adacore.com>
10412
10413 * par-endh.adb: Minor reformatting.
10414
104152011-08-01 Robert Dewar <dewar@adacore.com>
10416
10417 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
10418 (Pre_Post_Aspects): New subtype.
10419 * par-ch12.adb (P_Generic): New syntax for aspects in packages
10420 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
10421 * par-ch7.adb (P_Package): Remove Decl parameter
10422 (P_Package): Handle new syntax for aspects (before IS)
10423 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
10424 new aspect syntax
10425 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
10426 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
10427 (P_Package): Remove Decl parameter
10428 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
10429 aspects
10430 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
10431 specs
10432 * sem_util.ads, sem_util.adb (Static_Boolean): New function
10433 * sinfo.ads: Document new syntax for aspects in packages etc.
10434 * sprint.adb: Handle new syntax of aspects before IS in package
10435
104362011-08-01 Thomas Quinot <quinot@adacore.com>
10437
10438 * atree.ads: Minor reformatting.
10439 * sem_prag.adb: Minor reformatting.
10440
104412011-08-01 Robert Dewar <dewar@adacore.com>
10442
10443 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
10444 case expr alternative.
10445
104462011-08-01 Ed Schonberg <schonberg@adacore.com>
10447
10448 * sem_ch12.adb: Fix typo.
10449
104502011-08-01 Geert Bosch <bosch@adacore.com>
10451
10452 * sem_prag.adb (Check_No_Link_Name): New procedure.
10453 (Process_Import_Or_Interface): Use Check_No_Link_Name.
10454 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
10455 instead of Standard_Long_Long_Float_Size global. Preparation for
10456 eventual removal of per type constants.
10457 * exp_util.ads (Get_Stream_Size): New function returning the stream
10458 size value of subtype E.
10459 * exp_util.adb (Get_Stream_Size): Implement new function.
10460 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
10461 function.
10462 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
10463 * einfo.adb:
10464 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
10465
104662011-08-01 Geert Bosch <bosch@adacore.com>
10467
10468 * cstand.adb: Fix comments.
10469 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
10470 count of arguments.
10471
104722011-08-01 Robert Dewar <dewar@adacore.com>
10473
10474 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
10475
104762011-08-01 Geert Bosch <bosch@adacore.com>
10477
10478 * atree.ads: Fix comment.
10479
104802011-08-01 Robert Dewar <dewar@adacore.com>
10481
10482 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
10483 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
10484 * par.adb: Add with for Namet.Sp.
10485 * par-tchk.adb: Minor reformatting.
10486
104872011-08-01 Vincent Celier <celier@adacore.com>
10488
10489 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
10490 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
10491 of the init procedure of a SAL.
10492 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
10493 New procedure.
10494
104952011-08-01 Thomas Quinot <quinot@adacore.com>
10496
10497 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
10498 reformatting.
10499
105002011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10501
10502 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
10503
105042011-08-01 Thomas Quinot <quinot@adacore.com>
10505
10506 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
10507 conformant with its spec (return True only for types that have
10508 an overriding Initialize primitive operation that prevents them from
10509 having preelaborable initialization).
10510 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
10511 initialization for controlled types in Ada 2005 or later mode.
10512
105132011-08-01 Robert Dewar <dewar@adacore.com>
10514
10515 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
10516 Postcondition.
10517 (Same_Aspect): New function.
10518 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
10519 Type_Invariant, Precondition, Postcondition.
10520 * snames.ads-tmpl: Add Name_Type_Invariant.
10521
105222011-08-01 Robert Dewar <dewar@adacore.com>
10523
10524 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
10525 here.
10526 (Freeze_All_Ent): Fix error in handling inherited aspects.
10527 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
10528 already analyzed, but don't skip entire processing of a declaration,
10529 that's wrong in some cases of declarations being rewritten.
10530 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
10531 Don't delay for integer, string literals
10532 Treat predicates in usual manner for delay, remove special case code,
10533 not needed.
10534 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
10535 (Build_Predicate_Function): Update saved expression in aspect
10536 (Build_Invariant_Procedure): Update saved expression in aspect
10537 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
10538 of replacement of discriminant references if the reference is simple.
10539
105402011-08-01 Robert Dewar <dewar@adacore.com>
10541
10542 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
10543 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
10544 Static_Predicate and Dynamic_Predicate.
10545 (Build_Predicate_Function): Add processing for Static_Predicate
10546 and Dynamic_Predicate.
10547 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
10548 (From_Static_Predicate): New flag
10549 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
10550
105512011-08-01 Robert Dewar <dewar@adacore.com>
10552
10553 * usage.adb: Documentation cleanup for Ada version modes in usage.
10554 * expander.adb: Minor reformatting.
10555
105562011-08-01 Robert Dewar <dewar@adacore.com>
10557
10558 * atree.ads: Minor comment fix.
10559 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
10560 a-witeio.ads, sem_prag.adb: Minor reformatting.
10561
105622011-08-01 Doug Rupp <rupp@adacore.com>
10563
10564 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
10565 pointers. Use descrip.h header file for convenience. Add some
10566 comments.
10567
105682011-08-01 Robert Dewar <dewar@adacore.com>
10569
10570 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
10571 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
10572 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
10573 New procedure.
10574 (Check_Aspect_At_End_Of_Declarations): New procedure
10575 (Analye_Aspect_Specification): Minor changes for above procedures
10576 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
10577 specification node as well.
10578
105792011-08-01 Pascal Obry <obry@adacore.com>
10580
10581 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
10582 Windows files. Use GetFilesAttributes() in this case to check for file
10583 existence instead of returning with an error code.
10584
105852011-08-01 Vincent Celier <celier@adacore.com>
10586
10587 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
10588 High is above Source length.
10589
105902011-08-01 Robert Dewar <dewar@adacore.com>
10591
10592 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
10593
105942011-08-01 Robert Dewar <dewar@adacore.com>
10595
10596 * aspects.ads (Boolean_Aspects): New subtype.
10597 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
10598 for derived types in cases where the parent type and derived type have
10599 aspects.
10600 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
10601 with aspects when parent type also has aspects.
10602 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
10603 boolean expression at this point).
10604 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
10605 accordance with final decision on the Ada 2012 feature.
10606 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
10607
106082011-08-01 Matthew Heaney <heaney@adacore.com>
10609
10610 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
10611
106122011-08-01 Pascal Obry <obry@adacore.com>
10613
10614 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
10615 Fix Replace_Slice when High is above current string size.
10616 (Replace_Slice): Fix DL computation when High is above current
10617 string length.
10618
106192011-08-01 Gary Dismukes <dismukes@adacore.com>
10620
10621 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
10622
106232011-08-01 Matthew Heaney <heaney@adacore.com>
10624
10625 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
10626 of node.
10627
106282011-08-01 Pascal Obry <obry@adacore.com>
10629
10630 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
10631 reformatting.
10632
106332011-08-01 Ed Schonberg <schonberg@adacore.com>
10634
10635 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
10636 access to protected subprograms in generic bodies.
10637 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
10638 protected type, indicate that the convention of the subprogram is
10639 Convention_Protected, because it may be used in subsequent declarations
10640 within the protected declaration.
10641
106422011-08-01 Vincent Celier <celier@adacore.com>
10643
10644 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
10645 and "final" procedures when the name of the library is "ada", to avoid
10646 duplicate symbols "adainit" and "adafinal" in executables.
10647
106482011-08-01 Ed Schonberg <schonberg@adacore.com>
10649
10650 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
10651 quantified expression that appears within a postcondition and uses the
10652 Ada2012 'Result attribute.
10653
106542011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10655
10656 * init.c (__gnat_error_handler): Cast reason to int.
10657 (__gnat_install_handler): Explain sa_sigaction use.
10658
106592011-07-24 Eric Botcazou <ebotcazou@adacore.com>
10660
10661 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
10662 subprogram has copy-in copy-out parameters, try to promote the mode of
10663 the return type if it is passed in registers.
10664
106652011-07-24 Eric Botcazou <ebotcazou@adacore.com>
10666
10667 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
10668 left operand as addressable.
10669
106702011-07-24 Eric Botcazou <ebotcazou@adacore.com>
10671
10672 * gcc-interface/gigi.h (build_function_stub): Remove.
10673 (build_return_expr): Likewise.
10674 (convert_vms_descriptor): Declare.
10675 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
10676 (build_function_stub): Move to...
10677 * gcc-interface/utils2.c (build_return_expr): Move to...
10678 * gcc-interface/trans.c (build_function_stub): ...here.
10679 (build_return_expr): ...here.
10680 (Subprogram_Body_to_gnu): Add local variable for language_function.
10681 Disconnect the parameter attributes cache, if any, once done with it.
10682 Call end_subprog_body only after setting the end_locus.
10683 Build the stub associated with the function, if any, at the very end.
10684 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
10685 variables and streamline control flow.
10686
106872011-07-23 Arnaud Charlet <charlet@adacore.com>
10688
10689 PR ada/49819
10690 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
10691 g-trasym-dwarf.adb.
10692
106932011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10694
10695 PR bootstrap/49794
10696 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
10697 Assign to act.sa_sigaction.
10698 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
10699 current->return_address to char * before arithmetic.
10700
107012011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10702
10703 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
10704 Correct argument types.
10705 Extract code from reason.
10706 (__gnat_install_handler): Assign to act.sa_sigaction.
10707
107082011-07-21 Eric Botcazou <ebotcazou@adacore.com>
10709
10710 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
10711 (GNAT1_OBJS): ...here.
10712
107132011-07-15 Eric Botcazou <ebotcazou@adacore.com>
10714
10715 PR ada/48711
10716 * g-socthi-mingw.adb (Fill): Fix formatting.
10717
10718 * gcc-interface/gigi.h: Move around comment.
10719
107202011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10721
10722 PR ada/46350
10723 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
10724
107252011-07-14 Florian Weimer <fw@deneb.enyo.de>
10726
10727 PR ada/48711
10728 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
10729
107302011-07-13 Eric Botcazou <ebotcazou@adacore.com>
10731
10732 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
10733 range comparison if Pmode is SImode.
10734
107352011-07-12 Laurent GUERBY <laurent@guerby.net>
10736 Eric Botcazou <ebotcazou@adacore.com>
10737
10738 * adadecode.c: Wrap up in extern "C" block.
10739 * adadecode.h: Likewise.
10740 * adaint.c: Likewise. Remove 'const' keyword.
10741 * adaint.h: Likewise.
10742 * argv.c: Likewise.
10743 * atree.h: Likewise.
10744 * cio.c: Likewise.
10745 * cstreams.c: Likewise.
10746 * env.c: Likewise.
10747 * exit.c: Likewise.
10748 * fe.h: Likewise.
10749 * final.c: Likewise.
10750 * init.c: Likewise.
10751 * initialize.c: Likewise.
10752 * link.c: Likewise.
10753 * namet.h: Likewise.
10754 * nlists.h: Likewise.
10755 * raise.c: Likewise.
10756 * raise.h: Likewise.
10757 * repinfo.h: Likewise.
10758 * seh_init.c: Likewise.
10759 * targext.c: Likewise.
10760 * tracebak.c: Likewise.
10761 * uintp.h: Likewise.
10762 * urealp.h: Likewise.
10763 * xeinfo.adb: Wrap up generated C code in extern "C" block.
10764 * xsinfo.adb: Likewise.
10765 * xsnamest.adb: Likewise.
10766 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
10767 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
10768 * gcc-interface/misc.c: Likewise.
10769 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
10770 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
10771 ada/targext.o here...
10772 (GNAT_ADA_OBJS): ...and not here.
10773 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
10774 (GNATBIND_OBJS): Reorder.
10775
107762011-07-07 Richard Henderson <rth@redhat.com>
10777
10778 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
10779 dwarf2out_frame_init.
10780
107812011-07-07 Eric Botcazou <ebotcazou@adacore.com>
10782
10783 * gcc-interface/misc.c (gnat_init): Tweak previous change.
10784
107852011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10786
10787 PR target/39150
10788 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
10789
107902011-07-06 Richard Guenther <rguenther@suse.de>
10791
10792 * gcc-interface/misc.c (gnat_init): Merge calls to
10793 build_common_tree_nodes and build_common_tree_nodes_2.
10794 Re-initialize boolean_false_node.
10795
107962011-07-02 Eric Botcazou <ebotcazou@adacore.com>
10797 Olivier Hainque <hainque@adacore.com>
10798 Nicolas Setton <setton@adacore.com>
10799
10800 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
10801 the type according to the ARTIFICIAL_P parameter.
10802 (create_type_decl): Likewise.
10803 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
10804
108052011-07-01 Eric Botcazou <ebotcazou@adacore.com>
10806
10807 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
10808 (gnatbind): Likewise.
10809
108102011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10811
10812 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
10813
108142011-06-18 Eric Botcazou <ebotcazou@adacore.com>
10815
10816 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
10817 local variable throughout. Remove useless call to Base_Type.
10818 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
10819 Take it also into account for the volatileness of the field. Set the
10820 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
10821
108222011-06-18 Eric Botcazou <ebotcazou@adacore.com>
10823
10824 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
10825 on a dereference built for a by-ref object if it has an address clause.
10826
108272011-06-18 Eric Botcazou <ebotcazou@adacore.com>
10828
10829 * einfo.ads (Address_Taken): Document use for the second argument of
10830 Asm_Input and Asm_Output attributes.
10831 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
10832 argument is an entity name, then set Address_Taken on it.
10833 <Attribute_Asm_Output>: Likewise.
10834 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
10835 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
10836 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
10837 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
10838
108392011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
10840
10841 PR middle-end/46500
10842 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
10843
108442011-06-14 Joseph Myers <joseph@codesourcery.com>
10845
10846 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
10847 (ada/utils.o): Update dependencies.
10848 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
10849 ../../../libcpp/libcpp.a.
10850 * gcc-interface/utils.c: Include common/common-target.h.
10851 (process_attributes): Use targetm_common.have_named_sections.
10852
108532011-06-07 Richard Guenther <rguenther@suse.de>
10854
10855 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
10856 set_sizetype.
10857
108582011-06-06 Eric Botcazou <ebotcazou@adacore.com>
10859
10860 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
10861 TREE_THIS_NOTRAP flag.
10862
108632011-06-06 Eric Botcazou <ebotcazou@adacore.com>
10864
10865 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
10866 Fix thinko.
10867
108682011-06-06 Eric Botcazou <ebotcazou@adacore.com>
10869
10870 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
10871 constants whose full view has discriminants specially.
10872
108732011-06-06 Eric Botcazou <ebotcazou@adacore.com>
10874
10875 * gcc-interface/utils.c: Include diagnostic.h.
10876 (gnat_write_global_declarations): Output debug information for all
10877 global type declarations before finalizing the compilation unit.
10878 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
10879
108802011-05-25 Jakub Jelinek <jakub@redhat.com>
10881
10882 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
10883
108842011-05-25 Kai Tietz <ktietz@redhat.com>
10885
10886 * adaint.c (__gnat_to_canonical_file_list_next): Use array
10887 initialization instead of const/none-const pointer assignment.
10888
108892011-05-24 Joseph Myers <joseph@codesourcery.com>
10890
10891 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
10892 $(EXTRA_GNAT1_OBJS).
10893 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
10894 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
10895 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
10896 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
10897 libcommon-target.a instead of prefix.o.
10898
108992011-05-21 Joseph Myers <joseph@codesourcery.com>
10900
10901 PR ada/49097
10902 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
10903
109042011-05-20 Joseph Myers <joseph@codesourcery.com>
10905
10906 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
10907 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
10908 instead of version.o.
10909
109102011-05-18 Kai Tietz <ktietz@redhat.com>
10911
10912 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
10913 boolean_false_node instead of integer_zero_node.
10914 (convert_with_check): Likewise.
10915 * gcc-interface/decl.c (choices_to_gnu): Likewise.
10916
109172011-05-12 Eric Botcazou <ebotcazou@adacore.com>
10918
10919 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
10920 type of the parameter is an unconstrained array, convert the actual to
10921 the type of the formal in the In Out and Out cases as well.
10922
109232011-05-11 Nathan Froyd <froydnj@codesourcery.com>
10924
10925 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
10926 call build_function_type_array or build_varargs_function_type_array
10927 instead.
10928 (create_subprog_type): Don't call build_function_type; call
10929 build_function_type_vec instead.
10930
109312011-05-11 Nathan Froyd <froydnj@codesourcery.com>
10932
10933 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
10934 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
10935 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
10936
109372011-05-07 Eric Botcazou <ebotcazou@adacore.com>
10938
10939 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
10940
10941 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
10942 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
10943
109442011-05-05 Nathan Froyd <froydnj@codesourcery.com>
10945
10946 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
10947
109482011-05-05 Nathan Froyd <froydnj@codesourcery.com>
10949
10950 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
10951 instead of accessing TYPE_ARG_TYPES directly.
10952 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
10953
109542011-05-05 Eric Botcazou <ebotcazou@adacore.com>
10955
10956 PR ada/48844
10957 * gcc-interface/gigi.h (get_variant_part): Declare.
10958 * gcc-interface/decl.c (get_variant_part): Make global.
10959 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
10960 types have the same constant size, are record types and T1 has a
10961 variant part while T2 doesn't.
10962
109632011-05-05 Eric Botcazou <ebotcazou@adacore.com>
10964
10965 * gcc-interface/utils.c (begin_subprog_body): Do not call
10966 get_pending_sizes.
10967 (end_subprog_body): Likewise.
10968
109692011-05-04 Richard Guenther <rguenther@suse.de>
10970
10971 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
10972 int_const_binop.
10973 (pos_to_constructor): Likewise.
10974
109752011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2c7f9cc0 10976 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
10977
10978 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
10979 of build_function_type. Adjust calls to...
10980 (build_raise_check): ...this. Do not take a void_tree parameter.
10981 Call build_function_type_list instead of build_function_type.
10982 Fix head comment and swap couple of conditional blocks.
10983
109842011-04-30 Eric Botcazou <ebotcazou@adacore.com>
10985
10986 * gnatvsn.ads (Library_Version): Bump to 4.7.
10987 (Current_Year): Bump to 2011.
10988
109892011-04-29 Michael Matz <matz@suse.de>
10990
10991 * gcc-interface/misc.c (gnat_handle_option): Set
10992 warn_maybe_uninitialized.
10993
109942011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
10995
10996 * gnat_ugn.texi (Complexity Metrics Control): Update link to
10997 the Watson/McCabe paper.
10998
109992011-04-23 Jim Meyering <meyering@redhat.com>
11000
11001 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
11002
110032011-04-22 Eric Botcazou <ebotcazou@adacore.com>
11004
11005 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
11006 onto the new type.
11007
110082011-04-22 Eric Botcazou <ebotcazou@adacore.com>
11009
11010 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
11011 parameter.
11012 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
11013 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
11014 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
11015 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
11016 <all>: Do not set flags on the reused DECL node coming from an alias.
11017 Set DECL_IGNORED_P on the DECL node built for subprograms if they
11018 don't need debug info here...
11019 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
11020 (gigi): Adjust calls to create_subprog_decl.
11021 (build_raise_check): Likewise.
11022 (establish_gnat_vms_condition_handler): Likewise.
11023 (Compilation_Unit_to_gnu): Likewise.
11024 (gnat_to_gnu): Likewise.
11025
110262011-04-21 Eric Botcazou <ebotcazou@adacore.com>
11027
11028 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
11029 (NO_REORDER_ADAFLAGS): New variable.
11030 (EXTRA_GNATTOOLS): Always define.
11031 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
11032 Clean up and adjust list of files compiled with special options.
11033 * gcc-interface/Make-lang.in: Likewise.
11034 (ada/decl.o): Cosmetical change.
11035 (ada/misc.o): Remove dependency on $(PLUGIN_H).
11036
110372011-04-20 Jim Meyering <meyering@redhat.com>
11038
11039 * initialize.c (__gnat_initialize): Remove useless if-before-free.
11040
110412011-04-17 Eric Botcazou <ebotcazou@adacore.com>
11042
11043 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
11044 $(CFLAGS) on the link line.
11045
110462011-04-17 Eric Botcazou <ebotcazou@adacore.com>
11047
11048 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
11049 padded type built for the return type if it is unconstrained.
11050
110512011-04-14 Nathan Froyd <froydnj@codesourcery.com>
11052
11053 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
11054
110552011-04-12 Nathan Froyd <froydnj@codesourcery.com>
11056
11057 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
11058 before calling TREE_CHAIN.
11059 * gcc-interface/misc.c (gnat_init_ts): New function.
11060 (LANG_HOOKS_INIT_TS): Define.
11061
110622011-04-12 Martin Jambor <mjambor@suse.cz>
11063
11064 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
11065 instead of cgraph_node.
11066
110672011-04-08 Eric Botcazou <ebotcazou@adacore.com>
11068
11069 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
11070 alignment on fields of the RETURN type built for the Copy-In Copy-Out
11071 mechanism.
11072
110732011-04-08 Eric Botcazou <ebotcazou@adacore.com>
11074
11075 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
11076 of aggregate types that contain a placeholder.
11077
110782011-04-08 Nathan Froyd <froydnj@codesourcery.com>
11079
11080 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
11081 TYPE_ARG_TYPES.
11082 (handle_type_generic_attribute): Likewise.
11083
110842011-04-04 Eric Botcazou <ebotcazou@adacore.com>
11085
11086 PR ada/47163
11087 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
11088
110892011-04-04 Kai Tietz <ktietz@redhat.com>
11090
11091 PR ada/47163
11092 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
11093 to flag value.
11094
110952011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11096
11097 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
11098 type case, do not strip a padding type around the array type.
11099
111002011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11101
11102 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
11103 types.
11104
111052011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11106
11107 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
11108 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
11109 code for -feliminate-unused-debug-types.
11110 (gnat_post_options): Likewise.
11111
111122011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11113
11114 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
11115 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
11116 distinct copy.
11117
111182011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11119
11120 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
11121 DECL_ARTIFICIAL flag on enumeration types.
11122
111232011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11124
11125 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
11126 fat pointer types artificial unconditionally.
11127 <E_Array_Subtype>: Attach the base array type as a parallel type if it
11128 isn't artificial.
11129
111302011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11131
11132 * gcc-interface/gigi.h (get_dummy_type): Declare.
11133 (build_dummy_unc_pointer_types): Likewise.
11134 (finish_fat_pointer_type): Likewise.
11135 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
11136 fat pointer type has been built, complete it in place.
11137 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
11138 and thin pointers. Remove useless variable.
11139 (finish_fat_pointer_type): Make global and move to...
11140 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
11141 (get_dummy_type): New function.
11142 (build_dummy_unc_pointer_types): Likewise.
11143 (gnat_pushdecl): Propage the name to the anonymous variants only.
11144 (update_pointer_to): Only adjust the pointer types in the unconstrained
11145 array case.
11146
111472011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11148
11149 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
11150 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
11151 if this is a Taft amendment type and the full declaration is available.
11152 * gcc-interface/trans.c (process_type): Likewise.
11153 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
11154 (process_freeze_entity): Likewise.
11155 * gcc-interface/utils.c (dummy_global): New static variable.
11156 (gnat_write_global_declarations): If there are types declared as used
11157 at the global level, insert them in the global hash table.
11158
111592011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11160
11161 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
11162 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
11163 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
11164 copy.
11165 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
11166 flag of the type accordingly.
11167 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
11168
111692011-04-02 Eric Botcazou <ebotcazou@adacore.com>
11170
11171 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
11172 finalizing types when updating the pointers to the designated type.
11173 <all>: Finalize the deferred types even if we didn't defer processing
11174 of incomplete types in this invocation.
11175
111762011-04-01 Olivier Hainque <hainque@adacore.com>
2c7f9cc0
AS
11177 Nicolas Setton <setton@adacore.com>
11178 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
11179
11180 * gcc-interface/misc.c (gnat_descriptive_type): New function.
11181 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
11182
111832011-03-28 Kai Tietz <ktietz@redhat.com>
11184
11185 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
11186 Windows targets.
11187 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
11188 * system-mingw.ads (System): Change ZCX_By_Default default to True.
11189
11190 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
11191
111922011-03-28 Tristan Gingold <gingold@adacore.com>
11193
11194 PR ada/44431
11195 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
11196 Use ada output of gnatbind.
11197 (ada/b_gnatb.adb): Ditto.
11198 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
11199 (ada.mostlyclean, ada.stage1)
11200 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
11201 (ada.stagefeedback): Adjust.
11202 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
11203 Use ada output of gnatbind.
11204 (b_gnatm.adb): Ditto.
11205 (b_gnatl.o, b_gnatm.o): New rules.
11206
112072011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11208
11209 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
11210 for the padded type built to support a specified size or alignment.
11211
112122011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11213
11214 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
11215 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
11216 unconditionally to the end of the unit when the designated type is
11217 limited_with'ed.
11218 <all>: Rename local variable. Attempt to un-defer types only and do it
11219 for limited_with'ed types as well.
11220 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
11221 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
11222 consistently and remove redundant call to finalize_from_with_types.
11223
112242011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11225
11226 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
11227 subprograms without a previous spec declared in the same unit.
11228 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
11229 subprograms at the end of the unit instead of at the beginning.
11230 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
11231 isn't public for the special handling of non-inline functions nested
11232 inside inline external functions.
11233
112342011-03-25 Jeff Law <law@redhat.com>
11235
11236 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
11237
112382011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11239
11240 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
11241 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
11242 to compute Set_Size_Depends_On_Discriminant.
11243 (Layout_Type): Call it on array types in back-end layout mode.
11244 * sem_util.adb (Requires_Transient_Scope): Return true for array
11245 types only if the size depends on the value of discriminants.
11246 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
11247 type if the RHS is a call to a function that returns an unconstrained
11248 type with default discriminant.
11249
112502011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11251
11252 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
11253 non-conversion to the nominal result type at the end.
11254
112552011-03-23 Eric Botcazou <ebotcazou@adacore.com>
11256
11257 * gcc-interface/trans.c (create_temporary): New function taken from...
11258 (create_init_temporary): ...here. Call it.
11259 (call_to_gnu): Create the temporary for the return value early, if any.
11260 Create it for a function with copy-in/copy-out parameters if there is
11261 no target; in other cases of copy-in/copy-out, use another temporary.
11262 Push the new binding level lazily. Add and rename local variables.
11263
112642011-03-23 Eric Botcazou <ebotcazou@adacore.com>
11265
11266 * gcc-interface/decl.c (validate_size): Improve comments and tweak
11267 error message.
11268 (set_rm_size): Likewise.
11269
112702011-03-23 Eric Botcazou <ebotcazou@adacore.com>
11271
11272 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
11273 for the padded type built in order to support a specified alignment.
11274 Fix incorrect formatting.
11275
112762011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11277
11278 PR bootstrap/48216
11279 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
11280
112812011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11282
11283 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
11284 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
11285 to the end of the list. Adjust recursive call. Rename local variable.
11286 If REORDER is true, reorder components of the record type.
11287 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
11288 components_to_record and adjust the parameter list.
11289
112902011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11291
11292 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
11293 disabled, use the variable for bounds of loop iteration scheme.
11294
112952011-03-21 Kai Tietz <ktietz@redhat.com>
11296
11297 PR target/12171
11298 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
11299
113002011-03-17 Eric Botcazou <ebotcazou@adacore.com>
11301
11302 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
11303 out whether the expression is read-only. Short-circuit placeholder
11304 case and rename a couple of local variables.
11305
113062011-03-17 Eric Botcazou <ebotcazou@adacore.com>
11307
11308 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
11309 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
11310 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
11311 (convert): Deal with conversions from a smaller form type specially.
11312
113132011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11314
11315 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
11316 its argument, except for the special -I- switch.
11317
113182011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
11319
11320 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
11321 "Ada Issues".
11322
113232011-02-08 Eric Botcazou <ebotcazou@adacore.com>
11324
11325 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
11326
113272011-02-03 Eric Botcazou <ebotcazou@adacore.com>
11328
11329 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
11330 GNAT_FORMAL.
11331 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
11332 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
11333 instead of GNAT_FORMAL. Protect the expression against multiple uses.
11334 Do not generate the check directly, instead instantiate the template
11335 check present in the descriptor.
11336 (make_descriptor_field): Move around.
11337 (build_vms_descriptor32): Build a template check in the POINTER field.
11338 (build_vms_descriptor): Remove useless suffixes.
11339 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
11340
113412011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11342
11343 PR bootstrap/47467
11344 * targext.c: Include target files if IN_RTS is defined.
11345
113462011-01-26 Richard Guenther <rguenther@suse.de>
11347
11348 PR bootstrap/47467
11349 * targext.c: Include config.h.
11350 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
11351 dependency.
11352
113532011-01-04 Pascal Obry <obry@adacore.com>
2c7f9cc0 11354 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
11355
11356 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
11357
113582011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11359
11360 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
11361 end-of-case on the end label and its associated gotos, if any.
11362
113632011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11364
11365 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
11366 expressions of the parameter cache within the statement group of
11367 the CICO mechanism.
11368
113692011-01-04 Olivier Hainque <hainque@adacore.com>
2c7f9cc0 11370 Eric Botcazou <ebotcazou@adacore.com>
052e0603
AC
11371
11372 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
11373 (set_end_locus_from_node): New function.
11374 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
11375 make and the function end_locus.
11376 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
11377 for the elaboration subprogram.
11378 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
11379 set the end_locus of the expression as well.
11380
113812011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11382
11383 PR ada/47131
11384 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
11385 variables that are referenced in exception handlers volatile.
11386
11387
11388\f
11389Copyright (C) 2011 Free Software Foundation, Inc.
11390
11391Copying and distribution of this file, with or without modification,
11392are permitted in any medium without royalty provided the copyright
11393notice and this notice are preserved.
11394
11395 * gnat_rm.texi: Ramification of pragma Eliminate documentation
11396 - fix bugs in the description of Source_Trace;
11397 - get rid of UNIT_NAME;
11398
4fbad0ba
AC
113992011-08-02 Javier Miranda <miranda@adacore.com>
11400
11401 * exp_ch9.adb
11402 (Build_Dispatching_Requeue): Adding support for VM targets
11403 since we cannot directly reference the Tag entity.
11404 * exp_sel.adb (Build_K): Adding support for VM targets.
11405 (Build_S_Assignment): Adding support for VM targets.
11406 * exp_disp.adb
11407 (Default_Prim_Op_Position): In VM targets do not restrict availability
11408 of predefined interface primitives to compiling in Ada 2005 mode.
11409 (Is_Predefined_Interface_Primitive): In VM targets this service is not
11410 restricted to compiling in Ada 2005 mode.
11411 (Make_VM_TSD): Generate code that declares and initializes the OSD
11412 record. Needed to support dispatching calls through synchronized
11413 interfaces.
11414 * exp_ch3.adb
11415 (Make_Predefined_Primitive_Specs): Enable generation of predefined
11416 primitives associated with synchronized interfaces.
11417 (Make_Predefined_Primitive_Bodies): Enable generation of predefined
11418 primitives associated with synchronized interfaces.
11419
114202011-08-02 Yannick Moy <moy@adacore.com>
11421
11422 * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of
11423 statements hidden in SPARK if preceded by the HIDE directive
11424 (Parse_Exception_Handlers): mark each exception handler in a sequence of
11425 exception handlers as hidden in SPARK if preceded by the HIDE directive
11426 * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK
11427 if starting with the HIDE directive
11428 * par-ch7.adb (P_Package): mark a package body hidden in SPARK if
11429 starting with the HIDE directive; mark the declarations in a private
11430 part as hidden in SPARK if the private part starts with the HIDE
11431 directive
11432 * restrict.adb, restrict.ads
11433 (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK
11434 (Is_In_Hidden_Part_In_SPARK): new function which returns whether its
11435 argument node belongs to a part which is hidden in SPARK
11436 (Check_SPARK_Restriction): do not issue violations on nodes in hidden
11437 parts in SPARK; protect the possibly costly call to
11438 Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on
11439 * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration
11440 * scng.adb (Accumulate_Token_Checksum_GNAT_6_3,
11441 Accumulate_Token_Checksum_GNAT_5_03): add case for new token
11442 Tok_SPARK_Hide.
11443 (Scan): recognize special comment starting with '#' and followed by
11444 SPARK keyword "hide" as a HIDE directive.
11445
114462011-08-02 Yannick Moy <moy@adacore.com>
11447
11448 * types.ads, erroutc.ads: Minor reformatting.
11449
114502011-08-02 Vincent Celier <celier@adacore.com>
11451
11452 * link.c: Add response file support for cross platforms.
11453
6ff6152d
ES
114542011-08-02 Ed Schonberg <schonberg@adacore.com>
11455
11456 * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression
11457 in an association, set parent field of copy before partial analysis.
11458 * sem_res.adb (Resolve_Slice): create reference to itype only when
11459 expansion is enabled.
11460
975c6896
YM
114612011-08-02 Yannick Moy <moy@adacore.com>
11462
11463 * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set
11464 for new flag denoting which subprogram bodies are in ALFA
11465 * restrict.adb, sem_ch7.adb: Update comment
11466 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
11467 sem_ch9.adb, sem_res.adb: Add calls to
11468 Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs.
11469 * sem_ch6.adb (Analyze_Function_Return): add calls to
11470 Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the
11471 middle of the body, and extended return.
11472 (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument
11473 False when missing return.
11474 (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA
11475 to True for subprograms whose spec is in ALFA. Remove later on the flag
11476 on the entity used for a subprogram body when there exists a separate
11477 declaration.
11478 * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA):
11479 if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to
11480 False, otherwise do nothing.
11481
afc8324d
AC
114822011-08-02 Robert Dewar <dewar@adacore.com>
11483
11484 * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
11485
114862011-08-02 Yannick Moy <moy@adacore.com>
11487
11488 * sem_ch4.ads: minor formatting.
11489
2ba431e5
YM
114902011-08-02 Yannick Moy <moy@adacore.com>
11491
11492 * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb,
11493 debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb,
11494 errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb,
11495 restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb,
11496 opt.ads: cleanup of SPARK mode
11497
0f853035
YM
114982011-08-02 Yannick Moy <moy@adacore.com>
11499
11500 * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard
11501 types.
11502 * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities
11503 (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA
11504 * sem_ch3.adb
11505 (Analyze_Object_Declaration): set Is_In_ALFA flag for objects
11506 (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes
11507 (Constrain_Integer): set Is_In_ALFA flag for integer subtypes
11508 (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration
11509 types.
11510 (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with
11511 non-static range.
11512 * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for
11513 functions whose return type is not in ALFA.
11514 (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram
11515 specifications.
11516 (Process_Formals): unset Is_In_ALFA flag for subprograms if a
11517 parameter's type is not in ALFA.
11518 * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard
11519 types are in ALFA.
11520
d2b10647
ES
115212011-08-02 Ed Schonberg <schonberg@adacore.com>
11522
11523 * sem_ch6 (Analyze_Expression_Function): treat the function as
11524 Inline_Always, and introduce a subprogram declaration for it when it is
11525 not a completion.
11526 * inline.adb (Add_Inlined_Body): recognize bodies that come from
11527 expression functions, so that the back-end can determine whether they
11528 can in fact be inlined.
11529 * sem_util.adb (Is_Expression_Function): predicate to determine whether
11530 a function body comes from an expression function.
11531
c7b9d548
AC
115322011-08-02 Gary Dismukes <dismukes@adacore.com>
11533
11534 * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming
11535 null exclusions to test Can_Never_Be_Null on the anonymous access types
11536 of the formals rather than testing the formals themselves. Exclude this
11537 check in cases where the Old_Formal is marked as a controlling formal,
11538 to avoid issuing spurious errors for bodies completing dispatching
11539 operations (due to the flag not getting set on controlling access
11540 formals in body specs).
11541 (Find_Corresponding_Spec): When checking full and subtype conformance of
11542 subprogram bodies in instances, pass Designated and E in that order, for
11543 consistency with the expected order of the formals (New_Id followed by
11544 Old_Id).
11545
115462011-08-02 Robert Dewar <dewar@adacore.com>
11547
11548 * sem_ch8.adb: Minor reformatting.
11549
1138cf59
AC
115502011-08-02 Ed Schonberg <schonberg@adacore.com>
11551
11552 * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure
11553 Check_Class_Wide_Actual, to implement AI05-0071, on defaulted
11554 primitive operations of class-wide actuals.
11555
115562011-08-02 Javier Miranda <miranda@adacore.com>
11557
11558 * exp_atag.ads, exp_atag.adb
11559 (Build_Common_Dispatching_Select_Statements): Remove argument Loc
11560 since its value is implicitly passed in argument Typ.
11561 * exp_disp.adb (Make_Disp_Conditional_Select_Body,
11562 Make_Disp_Timed_Select_Body): Remove Loc in calls to routine
11563 Build_Common_Dispatching_Select_Statements.
11564
7b9db926
RD
115652011-08-02 Robert Dewar <dewar@adacore.com>
11566
11567 * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads,
11568 exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments.
11569 Minor reformatting.
11570
e8374e7a
AC
115712011-08-02 Robert Dewar <dewar@adacore.com>
11572
11573 * sem_res.adb: Minor reformatting.
11574 * sem_prag.adb: Minor reformatting.
11575
115762011-08-02 Javier Miranda <miranda@adacore.com>
11577
11578 * exp_atag.adb, exp_atags.ads
11579 (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr
11580 by the tagged type Entity. Required to use this routine in the VM
11581 targets since we do not have available the Tag entity in the VM
11582 platforms.
11583 * exp_ch6.adb
11584 (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package
11585 Ada.Tags has not been previously loaded.
11586 * exp_ch7.adb
11587 (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke
11588 Build_VM_TSDs if package Ada.Tags has not been previously loaded.
11589 * sem_aux.adb
11590 (Enclosing_Dynamic_Scope): Add missing support to handle the full
11591 view of enclosing scopes. Required to handle enclosing scopes that
11592 are synchronized types whose full view is a task type.
11593 * exp_disp.adb
11594 (Build_VM_TSDs): Minor code improvement to avoid generating and
11595 analyzing lists with empty nodes.
11596 (Make_Disp_Asynchronous_Select_Body): Add support for VM targets.
11597 (Make_Disp_Conditional_Select_Body): Add support for VM targets.
11598 (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets.
11599 (Make_Disp_Timed_Select_Body): Add support for VM targets.
11600 (Make_Select_Specific_Data_Table): Add support for VM targets.
11601 (Make_VM_TSD): Generate code to initialize the SSD structure of
11602 the TSD.
11603
116042011-08-02 Yannick Moy <moy@adacore.com>
11605
11606 * lib-writ.adb (Write_ALI): when ALFA mode is set, write local
11607 cross-references section in ALI.
11608 * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub
11609 (enclosing subprogram), Slc (location of Sub) and Sun (unit number of
11610 Sub).
11611 (Enclosing_Subprogram_Or_Package): new function to return the enclosing
11612 subprogram or package entity of a node
11613 (Is_Local_Reference_Type): new function returns True for references
11614 selected in local cross-references.
11615 (Lt): function extracted from Lt in Output_References
11616 (Write_Entity_Name): function extracted from Output_References
11617 (Generate_Definition): generate reference with type 'D' for definition
11618 of objects (object declaration and parameter specification), with
11619 appropriate locations and units, for use in local cross-references.
11620 (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created
11621 references of type 'I' for initialization in object definition.
11622 (Output_References): move part of function Lt and procedure
11623 Write_Entity_Name outside of the body. Ignore references of types 'D'
11624 and 'I' introduced for local cross-references.
11625 (Output_Local_References): new procedure to output the local
11626 cross-references sections.
11627 (Lref_Entity_Status): new array defining whether an entity is a local
11628 * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference
11629 with 'I' type when initialization expression is present.
11630 * get_scos.adb, get_scos.ads: Correct comments and typos
11631
1f6439e3
AC
116322011-08-02 Javier Miranda <miranda@adacore.com>
11633
11634 * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in
11635 the JVM target.
11636 * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in
11637 the JVM target.
11638 * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no
11639 TSD support.
11640
116412011-08-02 Vincent Celier <celier@adacore.com>
11642
11643 * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line
11644 (No_Space_Img): New function
11645 (Find_Excluded_Sources): When reading from a file, record the file name
11646 and the line number for each excluded source.
11647 (Mark_Excluded_Sources): When reporting an error, if the excluded
11648 sources were read from a file, include file name and line number in
11649 the error message.
11650
116512011-08-02 Ed Schonberg <schonberg@adacore.com>
11652
11653 * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2).
11654
ab027d28
RD
116552011-08-02 Robert Dewar <dewar@adacore.com>
11656
11657 * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting
11658
b3b28b0c
JM
116592011-08-02 Javier Miranda <miranda@adacore.com>
11660
11661 * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
11662 generation of TSDs to the DOTNET compiler.
11663 * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
11664 generation of TSDs to the DOTNET compiler.
11665
9732e886
JM
116662011-08-02 Javier Miranda <miranda@adacore.com>
11667
11668 * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
11669 record of all the tagged types declared inside library level package
11670 declarations, library level package bodies or library level subprograms.
11671 * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD
11672 associated with a given tagged type.
11673 (Build_VM_TSDs): New subprogram.
11674 * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main
11675 compilation units that are subprograms.
11676 * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main
11677 compilation units that are package bodies.
11678 (Expand_N_Package_Declaration): Generate TSDs of the main compilation
11679 units that are a package declaration or a package instantiation.
11680 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code
11681 reorganization to improve the error generated by the frontend when the
11682 function Ada.Tags.Secondary_Tag is not available.
11683 * rtsfind.ads (RE_Register_TSD): New runtime entity.
11684 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup.
11685
e526d0c7
AC
116862011-08-02 Javier Miranda <miranda@adacore.com>
11687
11688 * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode.
11689
116902011-08-02 Robert Dewar <dewar@adacore.com>
11691
11692 * s-imenne.ads: Minor reformatting.
11693
116942011-08-02 Robert Dewar <dewar@adacore.com>
11695
11696 * a-stunau.ads: Add pragma Suppress_Initialization for Big_String
11697 * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed
11698 * s-stalib.ads: Add pragma Suppress_Initialization for Big_String
11699
117002011-08-02 Robert Dewar <dewar@adacore.com>
11701
11702 * einfo.ads (Materialize_Entity): Document this is only for renamings
11703 * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate
11704 required debug information in the case where we transform the object
11705 declaration into a renaming declaration.
11706 * exp_ch4.adb (Expand_Concatenate): Generate debug info for result
11707 object
11708 * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of
11709 Materialize_Entity.
11710
5b1e6aca
RD
117112011-08-02 Robert Dewar <dewar@adacore.com>
11712
11713 * einfo.ads, einfo.adb (Suppress_Initialization): Replaces
11714 Suppress_Init_Procs.
11715 * exp_ch3.adb, exp_disp.adb, freeze.adb: Use
11716 Suppress_Initialization/Initialization_Suppressed.
11717 * gnat_rm.texi: New documentation for pragma Suppress_Initialization
11718 * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function
11719 * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed
11720 * sem_prag.adb: New processing for pragma Suppress_Initialization.
11721
5ad4969d
RD
117222011-08-02 Robert Dewar <dewar@adacore.com>
11723
11724 * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb:
11725 Minor reformatting.
11726
8c4ee6f5
AC
117272011-08-02 Ed Schonberg <schonberg@adacore.com>
11728
11729 * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can
11730 only have inheritable classwide pre/postconditions.
11731
117322011-08-02 Javier Miranda <miranda@adacore.com>
11733
11734 * a-tags.ads, a-tags.adb (Check_TSD): New subprogram.
11735 * rtsfind.ads (RE_Check_TSD): New runtime entity.
11736 * exp_disp.adb (Make_DT): Generate call to the new runtime routine that
11737 checks if the external tag of a type is the same as the external tag
11738 of some other declaration.
11739
0b3d16c0
AC
117402011-08-02 Thomas Quinot <quinot@adacore.com>
11741
11742 * s-taskin.ads: Minor reformatting.
11743
117442011-08-02 Emmanuel Briot <briot@adacore.com>
11745
11746 * g-comlin.adb (Display_Help): swap the order in which it prints the
11747 short help and the general usage.
11748
117492011-08-02 Ed Schonberg <schonberg@adacore.com>
11750
11751 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly
11752 the aspect declarations and attach them to the generic copy for
11753 subsequent analysis.
11754 (Analyze_Subprogram_Instantiation): copy explicitly the aspect
11755 declarations of the generic tree to the new subprogram declarations.
11756 * sem_attr.adb (Check_Precondition_Postcondition): recognize
11757 conditions that apply to a subprogram instance.
11758
117592011-08-02 Robert Dewar <dewar@adacore.com>
11760
11761 * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project].
11762
117632011-08-02 Ed Schonberg <schonberg@adacore.com>
11764
11765 * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged
11766 private type with a tagged full view is not derived in the immediate
11767 scope of the partial view, (RM 7.3 (7)) use the scope of the base type.
11768
4637729f
AC
117692011-08-02 Robert Dewar <dewar@adacore.com>
11770
11771 * exp_ch4.adb: Minor reformatting.
11772
117732011-08-02 Ed Schonberg <schonberg@adacore.com>
11774
11775 * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an
11776 Ada2012 iterator, the loop will be rewritten during expansion into a
11777 while loop with a cursor and an element declaration. Do not analyze the
11778 body in this case, because if the container is for indefinite types the
11779 actual subtype of the elements will only be determined when the cursor
11780 declaration is analyzed.
11781
117822011-08-02 Arnaud Charlet <charlet@adacore.com>
11783
11784 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore
11785 size/alignment related attributes in CodePeer_Mode.
11786
117872011-08-02 Gary Dismukes <dismukes@adacore.com>
11788
11789 * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to
11790 Prepend_Element, since this can result in the operation getting the
11791 wrong slot in the full type's dispatch table if the full type has
11792 inherited operations. The incomplete type's operation will get added
11793 to the proper position in the full type's primitives
11794 list later in Sem_Disp.Check_Operation_From_Incomplete_Type.
11795 (Process_Incomplete_Dependents): Add Is_Primitive test when checking for
11796 dispatching operations, since there are cases where nonprimitive
11797 subprograms can get added to the list of incomplete dependents (such
11798 as subprograms in nested packages).
11799 * sem_ch6.adb (Process_Formals): First, remove test for being in a
11800 private part when determining whether to add a primitive with a
11801 parameter of a tagged incomplete type to the Private_Dependents list.
11802 Such primitives can also occur in the visible part, and should not have
11803 been excluded from being private dependents.
11804 * sem_ch7.adb (Uninstall_Declarations): When checking the rule of
11805 RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents
11806 list of a Taft-amendment incomplete type is a primitive before issuing
11807 an error that the full type must appear in the same unit. There are
11808 cases where nonprimitives can be in the list (such as subprograms in
11809 nested packages).
11810 * sem_disp.adb (Derives_From): Use correct condition for checking that
11811 a formal's type is derived from the type of the corresponding formal in
11812 the parent subprogram (the condition was completely wrong). Add
11813 checking that was missing for controlling result types being derived
11814 from the result type of the parent operation.
11815
4c60de0c
YM
118162011-08-02 Yannick Moy <moy@adacore.com>
11817
11818 * errout.adb (First_Node): minor renaming
11819 * restrict.adb (Check_Formal_Restriction): put restriction warning on
11820 first node.
11821
f5afb270
AC
118222011-08-02 Yannick Moy <moy@adacore.com>
11823
11824 * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator
11825 before accessing operands.
11826 * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to
11827 decide whether an initialization expression respects SPARK rules, as
11828 the plain node is the expanded one. This allows for more valid warnings
11829 to be issued.
11830 * gnat_rm.texi: Minor update.
11831
118322011-08-02 Arnaud Charlet <charlet@adacore.com>
11833
11834 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert
11835 previous change.
11836
118372011-08-02 Robert Dewar <dewar@adacore.com>
11838
11839 * sem_ch3.adb, sem_ch4.adb: Minor reformatting.
11840
118412011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
11842
11843 * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original
11844 loop statements and the element renaming declaration with a block when
11845 the element type is controlled.
11846
118472011-08-02 Yannick Moy <moy@adacore.com>
11848
11849 * sinfo.ads: Minor formatting.
11850
118512011-08-02 Ed Schonberg <schonberg@adacore.com>
11852
11853 * sem_aggr.adb (Add_Association): if the association has a box and no
11854 expression, use the Sloc of the aggregate itself for the new
11855 association.
11856 * errout.adb (First_Node): Exclude nodes with no Sloc, and always use
11857 the Original_Node.
11858
db72f10a
AC
118592011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
11860
11861 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring.
11862 When a container is provided via a function call, generate a renaming
11863 of the function result. This avoids the creation of a transient scope
11864 and the premature finalization of the container.
11865 * exp_ch7.adb (Is_Container_Cursor): Removed.
11866 (Wrap_Transient_Declaration): Remove the supression of the finalization
11867 of the list controller when the declaration denotes a container cursor,
11868 it is not needed.
11869
118702011-08-02 Yannick Moy <moy@adacore.com>
11871
11872 * restrict.adb (Check_Formal_Restriction): only issue a warning if the
11873 node is from source, instead of the original node being from source.
11874 * sem_aggr.adb
11875 (Resolve_Array_Aggregate): refine the check for a static expression, to
11876 recognize also static ranges
11877 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration,
11878 Array_Type_Declaration): postpone the test for the type being a subtype
11879 mark after the type has been resolved, so that component-selection and
11880 expanded-name are discriminated.
11881 (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm
11882 to distinguish the case of an iteration scheme, so that an error is
11883 issed on a non-static range in SPARK except in an iteration scheme.
11884 * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with
11885 In_Iter_Schm = True.
11886 * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for
11887 user-defined operators so that they are allowed in renaming
11888 * sem_ch8.adb
11889 (Find_Selected_Component): refine the check for prefixing of operators
11890 so that they are allowed in renaming. Move the checks for restrictions
11891 on selector name after analysis discriminated between
11892 component-selection and expanded-name.
11893 * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on
11894 concatenation argument of string type if it is static.
11895 * sem_util.adb, sem_util.ads
11896 (Check_Later_Vs_Basic_Declarations): add a new function
11897 Is_Later_Declarative_Item to decice which declarations are allowed as
11898 later items, in the two different modes Ada 83 and SPARK. In the SPARK
11899 mode, add that renamings are considered as later items.
11900 (Enclosing_Package): new function to return the enclosing package
11901 (Enter_Name): correct the rule for homonyms in SPARK
11902 (Is_SPARK_Initialization_Expr): default to returning True on nodes not
11903 from source (result of expansion) to avoid issuing wrong warnings.
11904
119052011-08-02 Ed Schonberg <schonberg@adacore.com>
11906
11907 * errout.adb: On anything but an expression First_Node returns its
11908 argument.
11909
23685ae6
AC
119102011-08-02 Pascal Obry <obry@adacore.com>
11911
11912 * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting.
11913
119142011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
11915
11916 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization.
11917 Set the associated loop as the related expression of internally
11918 generated cursors.
11919 * exp_ch7.adb (Is_Container_Cursor): New routine.
11920 (Wrap_Transient_Declaration): Supress the finalization of the list
11921 controller when the declaration denotes a container cursor.
11922
119232011-08-02 Yannick Moy <moy@adacore.com>
11924
11925 * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through
11926 command line now.
11927 * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the
11928 expression is a simple expression. This check cannot be performed in
11929 the semantics, so just drop it.
11930 (P_Index_Or_Discriminant_Constraint): move check that the index or
11931 discriminant is a subtype mark to Analyze_Subtype_Declaration in the
11932 semantics. Other cases were previously checked in the semantics.
11933 * par-ch4.adb (P_Name): move checks that a selector name is not
11934 character literal or an operator symbol to Find_Selected_Component in
11935 the semantics
11936 * par-ch5.adb (Parse_Decls_Begin_End): move check that basic
11937 declarations are not placed after later declarations in a separate
11938 procedure in Sem_Util (possibly not the best choice?), to be used both
11939 during parsing, for Ada 83 mode, and during semantic analysis, for
11940 SPARK mode.
11941 * par-endh.adb (Check_End): move check that end label is not missing
11942 to Process_End_Label in the semantics
11943 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove
11944 the special case for SPARK restriction
11945 * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End
11946 * restrict.adb, restrict.ads (Check_Formal_Restriction): add a
11947 parameter Force to issue the error message even on internal node (used
11948 for generated end label). Call Check_Restriction to check when an error
11949 must be issued. In SPARK mode, issue an error message even if the
11950 restriction is not set.
11951 (Check_Restriction): new procedure with an additional out parameter to
11952 inform the caller that a message has been issued
11953 * sem_aggr.adb: Minor modification of message
11954 * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction
11955 instead of issuing an error message directly
11956 * sem_ch3.adb (Analyze_Declarations): move here the check that basic
11957 declarations are not placed after later declarations, by calling
11958 Check_Later_Vs_Basic_Declarations
11959 (Analyze_Subtype_Declaration): move here the check that an index or
11960 discriminant constraint must be a subtype mark. Change the check that
11961 a subtype of String must start at one so that it works on subtype marks.
11962 * sem_ch4.adb (Analyze_Call): move here the check that a named
11963 association cannot follow a positional one in a call
11964 * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction
11965 instead of issuing an error message directly
11966 * sem_ch8.adb (Find_Selected_Component): move here the check that a
11967 selector name is not a character literal or an operator symbol. Move
11968 here the check that the prefix of an expanded name cannot be a
11969 subprogram or a loop statement.
11970 * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new
11971 procedure called from parsing and semantics to check that basic
11972 declarations are not placed after later declarations
11973 (Process_End_Label): move here the check that end label is not missing
11974
119752011-08-02 Arnaud Charlet <charlet@adacore.com>
11976
11977 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum
11978 representation clause in codepeer mode, since it confuses CodePeer and
11979 does not bring useful info.
11980
119812011-08-02 Ed Falis <falis@adacore.com>
11982
11983 * init.c: initialize fp hw on MILS.
11984
119852011-08-02 Ed Schonberg <schonberg@adacore.com>
11986
11987 * errout.adb (First_Node): for bodies, return the node itself (small
11988 optimization). For other nodes, do not check source_unit if the node
11989 comes from Standard.
11990
d2d9cc22
AC
119912011-08-02 Robert Dewar <dewar@adacore.com>
11992
11993 * exp_ch3.adb: Minor comment additions.
11994 * sem_ch13.adb: Minor reformatting.
11995
119962011-08-02 Pascal Obry <obry@adacore.com>
11997
11998 * make.adb, makeutl.adb: Removes some superfluous directory separator.
11999
a01b9df6
AC
120002011-08-02 Robert Dewar <dewar@adacore.com>
12001
12002 * sem_attr.adb: Minor reformatting.
12003
120042011-08-02 Robert Dewar <dewar@adacore.com>
12005
12006 * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value
12007 (Has_Default_Component_Value): Removed
12008 * einfo.ads Comment updates
12009 (Has_Default_Aspect): Replaces Has_Default_Value
12010 (Has_Default_Component_Value): Removed
12011 * exp_ch13.adb
12012 (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects
12013 * exp_ch3.adb
12014 (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects
12015 (Get_Simple_Init_Val): Handle Default_Value aspect
12016 (Needs_Simple_Initialization): Handle Default_Value aspect
12017 * exp_ch3.ads: Needs_Simple_Initialization
12018 * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect
12019 * par-prag.adb (Pragma_Default[_Component]Value) Removed
12020 * sem_ch13.adb
12021 (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects
12022 * sem_prag.adb (Pragma_Default[_Component]Value) Removed
12023 * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed
12024
120252011-08-02 Ed Schonberg <schonberg@adacore.com>
12026
12027 * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate
12028 package containing iteration primitives.
12029 exp_ch5.adb (Expand_Iterator_Loop): ditto.
12030
75c90775
AC
120312011-08-02 Ed Schonberg <schonberg@adacore.com>
12032
12033 * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with
12034 "of", pre-analyze expression in case it is a function call with
12035 finalization actions that must be placed ahead of the loop.
12036 * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present
12037 on an Ada2012 iterator, insert them ahead of the rewritten loop.
12038
120392011-08-02 Geert Bosch <bosch@adacore.com>
12040
12041 * cstand.adb (Create_Float_Types): Only consider C's long double for
12042 Long_Long_Float, in addition to double.
12043
ded8909b
AC
120442011-08-02 Robert Dewar <dewar@adacore.com>
12045
12046 * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads,
12047 sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads,
12048 prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb:
12049 Minor reformatting.
12050
120512011-08-02 Ed Schonberg <schonberg@adacore.com>
12052
12053 * sem_attr.adb: handle properly 'Result when it is a prefix of an
12054 indexed component.
12055
120562011-08-02 Javier Miranda <miranda@adacore.com>
12057
12058 * einfo.ads, einfo.adb
12059 (Original_Access_Type): Move this attribute to Node26 since there was
12060 an undocumented use of Node21 in E_Access_Subprogram_Type entities
12061 which causes conflicts and breaks the generation of the .NET compiler.
12062 (Interface_Name): Add missing documentation on JGNAT only uses of
12063 this attribute.
12064
70c34e1c
AC
120652011-08-02 Geert Bosch <bosch@adacore.com>
12066
12067 * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist
12068 (Find_Back_End_Float_Type): Likewise
12069 (Create_Back_End_Float_Types): Likewise
12070 (Create_Float_Types): Likewise
12071 (Register_Float_Type): Likewise
12072 * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of
12073 Nlist and split out type selection in new local Find_Base_Type function.
12074 * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of
12075 Nlist
12076 * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist
12077
120782011-08-02 Robert Dewar <dewar@adacore.com>
12079
12080 * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in
12081 alpha order).
12082 * opt.ads: Minor comment change.
12083 * sem_ch12.adb: Minor code reorganization.
12084
b715bc59
AC
120852011-08-02 Gary Dismukes <dismukes@adacore.com>
12086
12087 * sem_ch3.adb (Complete_Private_Subtype): Don't append the private
12088 subtype's list of rep items to the list on the full subtype in the case
12089 where the lists are the same.
12090
120912011-08-02 Geert Bosch <bosch@adacore.com>
12092
12093 * switch-c.adb (Free): New deallocation procedure to avoid implicitly
12094 using the one from System.Strings, which also deallocates all strings.
12095
002bdd68
AC
120962011-08-02 Geert Bosch <bosch@adacore.com>
12097
12098 * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New
12099 function.
12100 * gcc-interface/Make-lang.in: Update dependencies.
12101
121022011-08-02 Olivier Hainque <hainque@adacore.com>
12103
12104 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function
12105 end_locus.
12106
499769ec
AC
121072011-08-02 Javier Miranda <miranda@adacore.com>
12108
12109 * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals
12110 associated with anonymous access to subprograms.
12111
121122011-08-02 Geert Bosch <bosch@adacore.com>
12113
12114 * opt.ads
12115 (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions.
12116 (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition.
12117 * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads
12118 (Add_Symbol_Definition): Move to switch-c.adb
12119 (Process_Command_Line_Symbol_Definitions): Adjust references to above.
12120 * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation.
12121 (Add_Symbol_Definition): Move to switch-c.adb.
12122 * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw.
12123 * sem_warn.adb
12124 (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
12125 Move to warnsw.adb.
12126 * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size,
12127 Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
12128 Move to warnsw.adb.
12129 * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw.
12130 (Add_Symbol_Definition): Moved from Prepcomp.
12131 * switch-c.ads: Update copyright notice. Use String_List instead of
12132 Argument_List, removing dependency on System.OS_Lib.
12133
aa1e353a
AC
121342011-08-02 Yannick Moy <moy@adacore.com>
12135
12136 * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal
12137 mode on initialization expression which does not respect SPARK
12138 restrictions.
12139 * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines
12140 if the tree referenced by its argument represents an initialization
12141 expression in SPARK, suitable for initializing an object in an object
12142 declaration.
12143
121442011-08-02 Javier Miranda <miranda@adacore.com>
12145
12146 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the
12147 internally generated access to subprogram with its associated protected
12148 subprogram type.
12149 * einfo.ads, einfo.adb (Original_Access_Type): New attribute.
12150
15b682ca
GB
121512011-08-02 Geert Bosch <bosch@adacore.com>
12152
12153 * cstand.adb (Register_Float_Type): Print information about type to
12154 register, if the Debug_Flag_Dot_B is set.
12155 * debug.adb (Debug_Flag_Dot_B): Document d.b debug option.
12156 * rtsfind.ads (RE_Max_Base_Digits): New run time entity.
12157 * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations
12158 with a requested precision of more than Max_Digits digits and no more
12159 than Max_Base_Digits digits, if a range specification is present and the
12160 Predefined_Float_Types list has a suitable type to derive from.
12161 * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the
12162 case of type completion with pragma Import
12163 * sem_prag.adb
12164 (Process_Import_Predefined_Type): Processing to complete a type
12165 with pragma Import. Currently supports floating point types only.
12166 (Set_Convention_From_Pragma): Do nothing without underlying type.
12167 (Process_Convention): Guard against absence of underlying type,
12168 which may happen when importing incomplete types.
12169 (Process_Import_Or_Interface): Handle case of importing predefined
12170 types. Tweak error message.
12171
f8726f2b
AC
121722011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12173
12174 * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined
12175 functions to previous change. Reorganize code slightly.
12176
121772011-08-02 Geert Bosch <bosch@adacore.com>
12178
12179 * back_end.ads (Register_Type_Proc): New call back procedure type for
12180 allowing the back end to provide information about available types.
12181 (Register_Back_End_Types): New procedure to register back end types.
12182 * back_end.adb (Register_Back_End_Types): Call the back end to enumerate
12183 available types.
12184 * cstand.adb (Back_End_Float_Types): New list for floating point types
12185 supported by the back end.
12186 (Build_Float_Type): Add extra parameter for Float_Rep_Kind.
12187 (Copy_Float_Type): New procedure to make new copies of predefined types.
12188 (Register_Float_Type): New call back procedure to populate the BEFT list
12189 (Find_Back_End_Float_Type): New procedure to find a BEFT by name
12190 (Create_Back_End_Float_Types): New procedure to populate the BEFT list.
12191 (Create_Float_Types): New procedure to create entities for floating
12192 point types predefined in Standard, and put these and any remaining
12193 BEFTs on the Predefined_Float_Types list.
12194 * stand.ads (Predefined_Float_Types): New list for predefined floating
12195 point types that do not have declarations in package Standard.
12196
feecad68
AC
121972011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12198
12199 * inline.adb (Get_Code_Unit_Entity): New local function. Returns the
12200 entity node for the unit containing the parameter.
12201 (Add_Inlined_Body): Use it to find the unit containing the subprogram.
12202 (Add_Inlined_Subprogram): Likewise.
12203 * gcc-interface/Make-lang.in: Update dependencies.
12204
122052011-08-02 Thomas Quinot <quinot@adacore.com>
12206
12207 * s-stusta.adb (Print): Make sure Pos is always initialized to a
12208 suitable value.
12209
12f0c50c
AC
122102011-08-02 Geert Bosch <bosch@adacore.com>
12211
12212 * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image.
12213
122142011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12215
12216 * sem_type.adb (Covers): Move trivial case to the top and reuse the
12217 computed value of Base_Type.
12218
122192011-08-02 Yannick Moy <moy@adacore.com>
12220
12221 * restrict.adb (Check_Restriction): issue an error for any use of
12222 class-wide, even if the No_Dispatch restriction is not set.
12223 * sem_aggr.adb: Correct typos in comments and messages in formal mode
12224 * sem_ch3.adb (Process_Full_View): issue an error in formal mode is,
12225 when completing a private extension, the type named in the private part
12226 is not the same as that named in the visible part.
12227 * sem_res.adb (Resolve_Call): issue an error in formal mode on the use
12228 of an inherited primitive operations of a tagged type or type extension
12229 that returns the tagged type.
12230 * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new
12231 function which returns True for an implicit operation inherited by the
12232 derived type declaration for the argument type.
12233 (Is_SPARK_Object_Reference): move to appropriate place in alphabetic
12234 order.
12235
fb86fe11
ES
122362011-08-02 Ed Schonberg <schonberg@adacore.com>
12237
12238 * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from
12239 Process_Bounds, to perform analysis with expansion of a range or an
12240 expression that is the iteration scheme for a loop.
12241 (Analyze_Iterator_Specification): If domain of iteration is given by a
12242 function call with a controlled result, as is the case if call returns
12243 a predefined container, ensure that finalization actions are properly
12244 generated.
12245 * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range.
12246
62be5d0a
JM
122472011-08-02 Javier Miranda <miranda@adacore.com>
12248
12249 * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo.
12250 * gcc-interface/Make-lang.in: Update dependencies.
12251
122522011-08-02 Javier Miranda <miranda@adacore.com>
12253
12254 * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to
12255 determine if the analysis is performed using N or Original_Node (N).
12256 * exp_util.adb (Side_Effect_Free): Code cleanup since the new
12257 functionality of routine Is_Variable avoids code duplication.
12258 * checks.adb (Determine_Range): Handle temporaries generated by
12259 Remove_Side_Effects.
12260
122612011-08-02 Javier Miranda <miranda@adacore.com>
12262
12263 * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and
12264 expansion of the condition. Required since the previous analysis was
12265 done with expansion disabled (see Resolve_Quantified_Expression) and
12266 hence checks were not inserted and record comparisons have not been
12267 expanded.
12268
a20f4389
AC
122692011-08-02 Ed Falis <falis@adacore.com>
12270
12271 * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads:
12272 Update header.
12273
122742011-08-02 Bob Duff <duff@adacore.com>
12275
12276 * opt.ads: Minor comment fix.
12277
122782011-08-02 Bob Duff <duff@adacore.com>
12279
12280 * sem_ch12.adb (Analyze_Package_Instantiation,
12281 Analyze_Subprogram_Instantiation): Turn off style checking while
12282 analyzing an instance. Whatever style checks that apply to the generic
12283 unit should apply, so it makes no sense to apply them in an instance.
12284 This was causing trouble when compiling an instance of a runtime
12285 unit that violates the -gnatyO switch.
12286 * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from
12287 one of the two case statements, causing spurious errors.
12288
122892011-08-02 Robert Dewar <dewar@adacore.com>
12290
12291 * uname.adb: Minor reformatting.
12292 * gnatcmd.adb: Minor reformatting.
12293 * exp_attr.adb: Minor reformatting.
12294
90878b12
AC
122952011-08-02 Ed Schonberg <schonberg@adacore.com>
12296
12297 * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction
12298 No_Dispatching_Calls, do not look for the Assign primitive, because
12299 predefined primitives are not created in this case.
12300
123012011-08-02 Bob Duff <duff@adacore.com>
12302
12303 * stylesw.ads: Minor comment fixes.
12304
123052011-08-02 Robert Dewar <dewar@adacore.com>
12306
12307 * freeze.adb (Add_To_Result): New procedure.
12308
123092011-08-02 Jose Ruiz <ruiz@adacore.com>
12310
12311 * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run
12312 time, if the specific run-time routines for handling streams of strings
12313 are not available, use the default mechanism.
12314
123152011-08-02 Arnaud Charlet <charlet@adacore.com>
12316
12317 * s-regpat.ads: Fix typo.
12318
123192011-08-02 Vincent Celier <celier@adacore.com>
12320
12321 * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is
12322 not null, call it to create the in memory config project file without
12323 parsing an existing default config project file.
12324
123252011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12326
12327 * atree.adb (Allocate_Initialize_Node): Remove useless temporaries.
12328
123292011-08-02 Ed Schonberg <schonberg@adacore.com>
12330
12331 * sem_elim.adb: an abstract subprogram does not need an eliminate
12332 pragma for its descendant to be eliminable.
12333
123342011-08-02 Ed Falis <falis@adacore.com>
12335
12336 * init.c: revert to handling before previous checkin for VxWorks
12337 * s-intman-vxworks.adb: delete unnecessary declarations related to
12338 using Ada interrupt facilities for handling signals.
12339 Delete Initialize_Interrupts. Use __gnat_install_handler instead.
12340 * s-intman-vxworks.ads: Import __gnat_install_handler as
12341 Initialize_Interrupts.
12342 * s-taprop-vxworks.adb: Delete Signal_Mask.
12343 (Abort_Handler): change construction of mask to unblock exception
12344 signals.
12345
273adcdf
AC
123462011-08-02 Jerome Guitton <guitton@adacore.com>
12347
12348 * a-except-2005.adb (Raise_From_Signal_Handler): Call
12349 Debug_Raise_Exception before propagation starts.
12350
123512011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12352
12353 * exp_ch6.adb (Expand_Call): Guard restriction checks with a call
12354 to Restriction_Check_Required.
12355 * sem_ch3.adb (Analyze_Object_Declaration): Likewise.
12356 * sem_res.adb (Resolve_Call): Likewise.
12357 * sem_attr.adb (Check_Stream_Attribute): Likewise.
12358
123592011-08-02 Bob Duff <duff@adacore.com>
12360
12361 * stylesw.ads: Update comment.
12362 * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
12363 * errout.ads: Remove obsolete comment.
12364
123652011-08-02 Javier Miranda <miranda@adacore.com>
12366
12367 * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
12368 (Set_Is_Safe_To_Reevaluate): new procedure.
12369 * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
12370 assignment is allowed on safe-to-reevaluate variables.
12371 (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
12372 temporary created to remove side effects in expressions that use
12373 the secondary stack as safe-to-reevaluate.
12374 * exp_util.adb (Side_Effect_Free): Add missing code to handle well
12375 variables that are not true constants.
12376
6320f5e1
AC
123772011-08-02 Robert Dewar <dewar@adacore.com>
12378
12379 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
12380 sem_res.adb, sem_ch6.adb: Minor reformatting.
12381
123822011-08-02 Jerome Guitton <guitton@adacore.com>
12383
12384 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
12385
2fe829ae
ES
123862011-08-02 Ed Schonberg <schonberg@adacore.com>
12387
12388 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
12389 not set Overridden_Operation if subprogram is an initialization
12390 procedure.
12391
e24329cd
YM
123922011-08-02 Yannick Moy <moy@adacore.com>
12393
12394 * par-ch6.adb: Correct obsolete name in comments
12395 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
12396 which takes two message arguments (existing function takes one), with
12397 second message used for continuation.
12398 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
12399 block statements that originate from a source block statement, not
12400 generated block statements
12401 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
12402 symmetry with procedure case
12403 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
12404 function to issue an error in formal mode if a package specification
12405 contains more than one tagged type or type extension.
12406 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
12407 parameters matching formals of tagged types are objects (or ancestor
12408 type conversions of objects), not general expressions. Issue an error
12409 on view conversions that are not involving ancestor conversion of an
12410 extended type.
12411 (Resolve_Type_Conversion): in formal mode, issue an error on the
12412 operand of an ancestor type conversion which is not an object
12413 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
12414 procedure so that it works also for actuals of function calls
12415 (Is_Actual_Tagged_Parameter): new function which determines if its
12416 argument is an actual parameter of a formal of tagged type in a
12417 subprogram call
12418 (Is_SPARK_Object_Reference): new function which determines if the tree
12419 referenced by its argument represents an object in SPARK
12420
176dadf6
AC
124212011-08-02 Robert Dewar <dewar@adacore.com>
12422
12423 * sem_ch3.adb: Minor reformatting
12424 Minor comment addition
12425 Minor error msg text change
12426
124272011-08-02 Javier Miranda <miranda@adacore.com>
12428
12429 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
12430 function. Used to be more precise when we generate a variable plus one
12431 assignment to remove side effects in the evaluation of the Bound
12432 expressions.
12433 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
12434 of the bound expression to force its re-analysis and thus expand the
12435 associated transient scope (if required). Code cleanup replacing the
12436 previous code that declared the constant entity by an invocation to
12437 routine Force_Evaluation which centralizes this work in the frontend.
12438
d8b962d8
AC
124392011-08-02 Robert Dewar <dewar@adacore.com>
12440
12441 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
12442 (Base_Type): Now uses improved Is_Base_Type function
12443 * einfo.ads (Base_Type): Inline this function
12444
124452011-08-02 Robert Dewar <dewar@adacore.com>
12446
12447 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
12448 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
12449
124502011-08-02 Arnaud Charlet <charlet@adacore.com>
12451
12452 * gcc-interface/Make-lang.in: Update dependencies.
12453 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
12454 targets.
12455
124562011-08-02 Yannick Moy <moy@adacore.com>
12457
12458 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
12459 non-simple expression used in delta constraint
12460 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
12461 index constraint which is not a subtype mark
12462 * par.adb: With and use Restrict
12463 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
12464 mode on component type which is not a subtype mark and default
12465 expression on component
12466 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
12467 of string which does not have a lower index bound equal to 1
12468 (Array_Type_Declaration): issue an error in formal mode on index or
12469 component type which is not a subtype mark, and on aliased keyword on
12470 component
12471 (Derived_Type_Declaration): issue an error in formal mode on interface,
12472 limited or abstract type
12473 (Record_Type_Declaration): issue an error in formal mode on interface
12474 (Record_Type_Definition): issue an error in formal mode on tagged types
12475 and type extensions not declared in the specification of a library unit
12476 package; on null non-tagged record; on variant part
12477
124782011-08-02 Vincent Celier <celier@adacore.com>
12479
12480 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
12481 not declared for qualified library project when Library_Name is not
12482 declared, but Library_Dir is.
12483
124842011-08-02 Robert Dewar <dewar@adacore.com>
12485
12486 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
12487 pragmas (affects aspects [Component_]Default_Value
12488 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
12489 component type for the resolution
12490
f96b2d85
AC
124912011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12492
12493 * einfo.adb (Base_Type): Tune implementation for speed.
12494
124952011-08-02 Robert Dewar <dewar@adacore.com>
12496
12497 * freeze.adb: Minor reformatting.
12498
8b3c6430
AC
124992011-08-02 Thomas Quinot <quinot@adacore.com>
12500
12501 * scos.ads: Update comments.
12502
125032011-08-02 Ed Schonberg <schonberg@adacore.com>
12504
12505 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
12506 base type, because the parent may be a subtype of a private type whose
12507 convention is established in a private part.
12508
125092011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
12510
12511 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
12512 statement in a block when the expansion of the return expression has
12513 created a finalization chain.
12514 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
12515 with the parent node.
12516 Add N_Extended_Return_Statement to handle the case where a transient
12517 object declaration appears in the Return_Object_Declarations list of
12518 an extended return statement.
12519
125202011-08-02 Matthew Gingell <gingell@adacore.com>
12521
12522 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
12523 unused parameter 'name'.
12524
125252011-08-02 Ed Schonberg <schonberg@adacore.com>
12526
12527 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
12528 inherited operation, check whether its alias, which is the source
12529 operastion that it renames, has been marked eliminated.
12530
cae81f17
JM
125312011-08-02 Javier Miranda <miranda@adacore.com>
12532
12533 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
12534 in-mode parameter whose type is an access type since it can be used to
12535 modify its designated object. Enforce code that handles as safe an
12536 access type that is not access-to-constant but it is the result of a
12537 previous removal of side-effects.
12538 (Remove_Side_Effects): Minor code reorganization of cases which require
12539 no action. Done to incorporate documentation on new cases uncovered
12540 working in this ticket: no action needed if this routine was invoked
12541 too early and the nodes are not yet decorated.
12542 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
12543 to routine Remove_Side_Effects by calls to Force_Evaluation since they
12544 were issued with actuals that are implicitly provided by
12545 Force_Evaluation.
12546
218e6dee
RD
125472011-08-02 Robert Dewar <dewar@adacore.com>
12548
12549 * sem_ch3.adb, sem_res.adb: Minor reformatting.
12550
7a489a2b
AC
125512011-08-02 Yannick Moy <moy@adacore.com>
12552
12553 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
12554 to issue an error in formal mode on attribute not supported in this mode
12555 (Analyze_Attribute): issue errors on standard attributes not supported
12556 in formal mode.
12557 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
12558 comment, and issue error in formal mode on modulus which is not a power
12559 of 2.
12560 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
12561 range.
12562 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
12563 subtype mark.
12564 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
12565 operator on modular type (except 'not').
12566
125672011-08-02 Robert Dewar <dewar@adacore.com>
12568
12569 * gnat_rm.texi: Minor reformatting.
12570
cb7fa356
AC
125712011-08-02 Arnaud Charlet <charlet@adacore.com>
12572
12573 * s-osinte-linux.ads: Minor comment update and reformatting.
12574 * i-cexten.ads: Make this unit pure, as for its parent.
12575 Will allow its usage in more contexts if needed.
12576
125772011-08-02 Robert Dewar <dewar@adacore.com>
12578
12579 * s-utf_32.ads: Minor comment fix.
12580
125812011-08-02 Ed Schonberg <schonberg@adacore.com>
12582
12583 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
12584 operation of a tagged synchronized type, handle the case where the
12585 controlling argument is overloaded.
12586
125872011-08-02 Yannick Moy <moy@adacore.com>
12588
12589 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
12590 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
12591 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
12592 SPARK mode and formal verification mode on processing SPARK restriction
12593 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
12594 requiring consistency checking.
12595
5cc9353d
RD
125962011-08-02 Robert Dewar <dewar@adacore.com>
12597
12598 * sem_res.adb: Minor reformatting.
12599
e51537ff
RD
126002011-08-02 Robert Dewar <dewar@adacore.com>
12601
12602 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
12603 a-cforse.ads: Remove unneeded with of Ada.Containers
12604 Remove commented out pragma Inline's
12605 Move specifications of new subprograms to the actual specs
12606
83fa09c5
AC
126072011-08-02 Yannick Moy <moy@adacore.com>
12608
12609 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
12610 a-cforse.ads: Update comments.
12611
126122011-08-02 Ed Schonberg <schonberg@adacore.com>
12613
12614 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
12615
d11cfaf8
RD
126162011-08-02 Robert Dewar <dewar@adacore.com>
12617
12618 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
12619 a-cforse.ads, a-cofove.ads: Minor reformatting.
12620
300b98bb
AC
126212011-08-02 Claire Dross <dross@adacore.com>
12622
12623 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
12624 a-cofove.ads: Add comments.
12625
126262011-08-02 Yannick Moy <moy@adacore.com>
12627
12628 * gnat_rm.texi: Document formal containers.
12629
126302011-08-02 Emmanuel Briot <briot@adacore.com>
12631
12632 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
12633 are empty sections.
12634
19fb051c
AC
126352011-08-02 Robert Dewar <dewar@adacore.com>
12636
12637 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
12638 reformatting.
12639
126402011-08-02 Robert Dewar <dewar@adacore.com>
12641
12642 * aspects.adb: New aspects Default_Value and Default_Component_Value
12643 New format of Aspect_Names table checks for omitted entries
12644 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
12645 handling of boolean aspects for derived types.
12646 New aspects Default_Value and Default_Component_Value
12647 New format of Aspect_Names table checks for omitted entries
12648 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
12649 (Has_Default_Value): New flag
12650 (Has_Default_Component_Value): New flag
12651 (Has_Default_Value): New flag
12652 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
12653 table.
12654 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
12655 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
12656 Default_Value and Default_Component_Value
12657 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
12658 New aspects Default_Value and Default_Component_Value
12659 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
12660 * sprint.adb: Print N_Aspect_Specification node when called from gdb
12661
126622011-08-02 Vincent Celier <celier@adacore.com>
12663
12664 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
12665 inherit library kind.
12666
126672011-08-02 Ed Schonberg <schonberg@adacore.com>
12668
12669 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
12670 Minor reformatting.
12671
126722011-08-02 Robert Dewar <dewar@adacore.com>
12673
12674 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
12675
5f7747af
AC
126762011-08-02 Yannick Moy <moy@adacore.com>
12677
12678 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
12679
126802011-08-02 Robert Dewar <dewar@adacore.com>
12681
12682 * impunit.adb: Add comment.
12683
a5fe697b
AC
126842011-08-02 Yannick Moy <moy@adacore.com>
12685
12686 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
12687 qualification of aggregates in formal mode
12688 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
12689 another aggregate
12690 (Resolve_Aggregate): complete the test that an aggregate is adequately
12691 qualified in formal mode
12692
126932011-08-02 Pascal Obry <obry@adacore.com>
12694
12695 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
12696 * mlib-prj.adb: Supress warning when compiling binder generated file.
12697 (Build_Library): Supress all warnings when compiling the binder
12698 generated file.
12699
bd65a2d7 127002011-08-02 Yannick Moy <moy@adacore.com>
d4487611 12701
bd65a2d7
AC
12702 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
12703 from here...
12704 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
12705 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
12706 Add with/use clauses to make Check_Formal_Restriction visible
12707
127082011-08-02 Ed Schonberg <schonberg@adacore.com>
12709
12710 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
12711 in-parameters when type of the generic formal is private in the generic
12712 spec and non-private in the body.
12713
127142011-08-02 Claire Dross <dross@adacore.com>
12715
12716 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
12717 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
12718 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
12719 * impunit.adb, Makefile.rtl: Take new files into account.
d4487611
AC
12720
127212011-08-02 Robert Dewar <dewar@adacore.com>
12722
12723 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
12724 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
12725
bd434b3f
YM
127262011-08-02 Yannick Moy <moy@adacore.com>
12727
12728 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
12729 formal mode
12730 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
12731 matching static array bounds, taking into account the special case of
12732 string literals
12733 * sem_ch3.adb: Typo in comment.
12734
fe5d3068
YM
127352011-08-02 Yannick Moy <moy@adacore.com>
12736
12737 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
12738 which issues an error in formal mode if its argument node is originally
12739 from source
12740 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
12741 has a discriminant specification so that it does not include the case
12742 of derived types
12743 (Derived_Type_Declaration): move here the test that a derived type has a
12744 discriminant specification
12745 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
12746 first element of a component association before accessing its choices
12747 (presence of component association is not enough)
12748 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
12749 declaration is a library item before accessing the next element in a
12750 list, as library items are not member of lists
12751 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
12752 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
12753 Check_Formal_Restriction whenever possible.
12754
b60a3f26
AC
127552011-08-02 Ed Schonberg <schonberg@adacore.com>
12756
12757 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
12758 reference when needed.
12759
127602011-08-02 Bob Duff <duff@adacore.com>
12761
12762 * gnat_ugn.texi: Fix typo.
12763
127642011-08-02 Vincent Celier <celier@adacore.com>
12765
12766 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
12767 archive file name. Do not use the full path name of archives for Open
12768 VMS.
12769
eaba57fb
RD
127702011-08-02 Robert Dewar <dewar@adacore.com>
12771
12772 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
12773 Analyze_Aspect_Specifications
12774 * sem_ch13.adb
12775 (Analyze_Aspect_Specifications): New handling for boolean aspects
12776 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
12777 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
12778 sequence for Analyze_Aspect_Specifications
12779 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
12780 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
12781
127822011-08-02 Robert Dewar <dewar@adacore.com>
12783
12784 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
12785 aspects, since these no longer exist.
12786
127872011-08-02 Robert Dewar <dewar@adacore.com>
12788
12789 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
12790 semicolon, do not try to see if there are aspects following it.
12791 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
12792 aspect spec.
12793
8830d1d2
AC
127942011-08-02 Robert Dewar <dewar@adacore.com>
12795
12796 * sem_ch8.adb, aspects.ads: Minor reformatting.
12797
127982011-08-02 Eric Botcazou <ebotcazou@adacore.com>
12799
12800 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
12801 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
12802 extracted from...
12803 (Analyze_Aspect_Specifications): ...here. Call above procedure.
12804
7ff2d234
AC
128052011-08-02 Yannick Moy <moy@adacore.com>
12806
12807 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
12808 mode on subprogram declaration outside of package specification, unless
12809 it is followed by a pragma Import
12810 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
12811 Access_Type_Declaration): issue error in formal mode on access type
12812 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
12813 incomplete type
12814 (Analyze_Object_Declaration): issue error in formal mode on object
12815 declaration which does not respect SPARK restrictions
12816 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
12817 declaration which does not respect SPARK restrictions
12818 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
12819 error in formal mode on digits or delta constraint
12820 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
12821 decimal fixed point type
12822 (Derived_Type_Declaration): issue error in formal mode on derived type
12823 other than type extensions of tagged record types
12824 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
12825 with check on access definition
12826 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
12827 mode on protected definition.
12828 (Analyze_Task_Definition): issue error in formal mode on task definition
12829
128302011-08-02 Robert Dewar <dewar@adacore.com>
12831
12832 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
12833
806f6d37
AC
128342011-08-02 Javier Miranda <miranda@adacore.com>
12835
12836 * sem_ch6.adb (Can_Override_Operator): New function.
12837 (Verify_Overriding_Indicator): Add missing code to check overriding
12838 indicator in operators. Fixes regression.
12839 (Check_Overriding_Indicator): Minor reformating after replacing the
12840 code that evaluates if the subprogram can override an operator by
12841 invocations to the above new function.
12842 * einfo.adb
12843 (Write_Field26_Name): Add missing code to ensure that, following
12844 the documentation in einfo.ads, this field is not shown as attribute
12845 "Static_Initialization" on non-dispatching functions.
12846
128472011-08-02 Jose Ruiz <ruiz@adacore.com>
12848
12849 * sem_res.adb (Resolve_Call): A call to
12850 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
12851 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
12852 i.e., when the second parameter is of type Time_Span.
12853
128542011-08-02 Vincent Celier <celier@adacore.com>
12855
12856 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
12857 with an archive instead of -L<library dir> -l<library name>.
12858
128592011-08-02 Ed Schonberg <schonberg@adacore.com>
12860
12861 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
12862 mark the base types In_Use in addition to making the operations
12863 use_visible.
12864
128652011-08-02 Ed Falis <falis@adacore.com>
12866
12867 * init.c: add and setup __gnat_signal_mask for the exception signals
12868 * s-inmaop-vxworks.adb: new file.
12869 * s-intman-vxworks.adb: remove unnecessary initializations and
12870 simplify remaining
12871 * s-intman-vxworks.ads: remove unnecessary variable
12872 * s-taprop-vxworks.adb: simplify signal initialization
12873
780d052e
RD
128742011-08-02 Robert Dewar <dewar@adacore.com>
12875
12876 * sem_ch8.adb: Minor code reorganization, comment updates.
12877
128782011-08-02 Robert Dewar <dewar@adacore.com>
12879
12880 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
12881 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
12882 here from Sem_Res.
12883 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
12884 (Matching_Static_Array_Bounds): Moved here from Sem_Res
12885
29efbb8c
ES
128862011-08-02 Ed Schonberg <schonberg@adacore.com>
12887
12888 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
12889 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
12890 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
12891 use_type_clauses, to handle more efficiently use_type and use_all_type
12892 constructs.
12893 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
12894 Ada2012 Use_All_Type clause.
12895 (Use_Class_Wide_Operations): new procedure.
12896
b0186f71
AC
128972011-08-02 Robert Dewar <dewar@adacore.com>
12898
12899 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
12900 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
12901 expression to expression function.
12902
129032011-08-02 Ed Schonberg <schonberg@adacore.com>
12904
12905 * sem_ch4.adb: transform simple Ada2012 membership into equality only
12906 if types are compatible.
12907
129082011-08-02 Yannick Moy <moy@adacore.com>
12909
12910 * sem_res.adb (Matching_Static_Array_Bounds): new function which
12911 returns True if its argument array types have same dimension and same
12912 static bounds at each index.
12913 (Resolve_Actuals): issue an error in formal mode on actuals passed as
12914 OUT or IN OUT paramaters which are not view conversions in SPARK.
12915 (Resolve_Arithmetic_Op): issue an error in formal mode on
12916 multiplication or division with operands of fixed point types which are
12917 not qualified or explicitly converted.
12918 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
12919 Boolean or array type (except String) operands.
12920 (Resolve_Equality_Op): issue an error in formal mode on equality
12921 operators for array types other than String with non-matching static
12922 bounds.
12923 (Resolve_Logical_Op): issue an error in formal mode on logical operators
12924 for array types with non-matching static bounds. Factorize the code in
12925 Matching_Static_Array_Bounds.
12926 (Resolve_Qualified_Expression): issue an error in formal mode on
12927 qualified expressions for array types with non-matching static bounds.
12928 (Resolve_Type_Conversion): issue an error in formal mode on type
12929 conversion for array types with non-matching static bounds
12930
767bb4e8
AC
129312011-08-02 Robert Dewar <dewar@adacore.com>
12932
12933 * par-ch10.adb: Minor code reorganization (use Nkind_In).
12934
129352011-08-02 Ed Schonberg <schonberg@adacore.com>
12936
12937 * par-ch9.adb: save location of entry for proper error message.
12938
4ac2477e
JM
129392011-08-02 Javier Miranda <miranda@adacore.com>
12940
12941 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
12942 (Use_Full_View) which permits this routine to climb through the
12943 ancestors using the full-view of private parents.
12944 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
12945 Use_Full_View to true in calls to Is_Ancestor.
12946 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
12947 true in call to Is_Ancestor.
12948 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
12949 Use_Full_View to true in call to Is_Ancestor.
12950 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
12951 call to Is_Ancestor.
12952 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
12953 Use_Full_View to true in calls to Is_Ancestor.
12954 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
12955 Make_Select_Specific_Data_Table, Register_Primitive,
12956 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
12957 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
12958 to true in call to Is_Ancestor.
12959 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
12960 Use_Full_View to true in calls to Is_Ancestor.
12961 * exp_cg.adb
12962 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
12963 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
12964
9f90d123
AC
129652011-08-02 Robert Dewar <dewar@adacore.com>
12966
12967 * gnat_rm.texi: Minor reformatting.
12968 * sem_prag.adb: Minor reformatting.
12969
129702011-08-02 Tristan Gingold <gingold@adacore.com>
12971
12972 * vms_data.ads: Add VMS qualifier for -gnateP.
12973
129742011-08-02 Robert Dewar <dewar@adacore.com>
12975
12976 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
12977 * par-ch7.adb (P_Package): Proper placement of aspects for package
12978 decl/instantiation.
12979 * par-endh.adb (Check_End): Ad Is_Sloc parameter
12980 (End_Statements): Add Is_Sloc parameterr
12981 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
12982 (Check_End): Ad Is_Sloc parameter
12983 (End_Statements): Add Is_Sloc parameterr
12984
129852011-08-02 Vincent Celier <celier@adacore.com>
12986
12987 * ug_words: Add VMS qualifier equivalent to -gnateP:
12988 /SYMBOL_PREPROCESSING.
12989
129902011-08-02 Jose Ruiz <ruiz@adacore.com>
12991
12992 * gnat-style.texi: For hexadecimal numeric literals the typical
12993 grouping of digits is 4 to represent 2 bytes.
12994 A procedure spec which is split into several lines is indented two
12995 characters.
12996
129972011-08-02 Yannick Moy <moy@adacore.com>
12998
12999 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
13000 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
13001 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
13002 properly qualified
13003 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
13004 choice in array aggregate
13005 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
13006 mark as ancestor
13007 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
13008 positional and named aggregate for record, or others in record
13009 aggregate, or multiple choice in record aggregate
13010 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
13011 array operands to logical operations AND, OR and XOR do not have the
13012 same static lower and higher bounds
13013 * sem_ch5.adb, sinfo.ads: Correct typos in comments
13014
2933b16c
RD
130152011-08-01 Robert Dewar <dewar@adacore.com>
13016
13017 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
13018 Replaces Last_Source_Node_In_Sequence.
13019 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
13020 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
13021 parens and blank in string (this was inconsistently implemented).
13022 * errout.ads
13023 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
13024 blank in string (this was inconsistently implemented).
13025 * gnat1drv.adb
13026 (Set_Global_Switches): Set formal mode switches appropriately
13027 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
13028 * par-prag.adb
13029 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
13030 call Set_Error_Msg_Lang to set "spark" as language name.
13031 * par.adb: Remove unnecessary call to set formal language for errout
13032 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
13033 appropriately and call Set_Error_Msg_Lang to set "spark" as language
13034 name.
13035 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
13036 calls to it, moved after resolution so that types are known
13037 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
13038 result of concatenation is not of type String
13039 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
13040 concatenation is not properly restricted
13041 * gnat_rm.texi: Add doc on pragma Spark_95.
13042 * gcc-interface/Makefile.in: Remove obsolete target pairs for
13043 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
13044 * gcc-interface/Make-lang.in: Update dependencies.
13045
05dbd302
AC
130462011-08-01 Javier Miranda <miranda@adacore.com>
13047
13048 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
13049 condition that detects if the overridden operation must replace an
13050 existing entity.
13051
130522011-08-01 Javier Miranda <miranda@adacore.com>
13053
13054 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
13055 code declarations inserted by Insert_Actions in each alternative of the
13056 N_Case_Expression node.
13057
130582011-08-01 Robert Dewar <dewar@adacore.com>
13059
13060 * sem_ch6.adb: Minor code reorganization.
13061 * sem_util.adb: Minor reformatting.
13062
af9e051f
PO
130632011-08-01 Pascal Obry <obry@adacore.com>
13064
13065 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
13066 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
13067
1d801f21
AC
130682011-08-01 Yannick Moy <moy@adacore.com>
13069
13070 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
13071 literal or operator symbol which is prefixed
13072 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
13073 mode on access attributes.
13074 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
13075 that concatenation operands are properly restricted in formal mode
13076 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
13077 Analyze_Concatenation_Operand. Issue an error in formal mode if the
13078 result of the concatenation has a type different from String.
13079 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
13080 Analyze_Quantified_Expression, Analyze_Slice,
13081 Analyze_Null): issue an error in formal mode on unsupported constructs
13082 * sem_ch5.adb
13083 (Analyze_Block_Statement): only issue error on source block statement
13084 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
13085 function which returns the last node in a list of nodes for which
13086 Comes_From_Source returns True, if any
13087 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
13088 Last_Source_Node_In_Sequence
13089 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
13090 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
13091 mode on unsupported constructs
13092 * sem_ch9.adb Do not return after issuing error in formal mode, as the
13093 rest of the actions may be needed later on since the error is marked as
13094 not serious.
13095 * sinfo.ads: Typos in comments.
13096
130972011-08-01 Pascal Obry <obry@adacore.com>
13098
13099 * projects.texi: Minor editing.
13100
53beff22
YM
131012011-08-01 Yannick Moy <moy@adacore.com>
13102
13103 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
13104 insertion character ~~
13105 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
13106 (Set_Error_Msg_Lang): new procedure which fixes the language for use
13107 with insertion character ~~
13108 (Set_Msg_Text): treat insertion character ~~
13109 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
13110 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
13111 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
13112 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
13113 errors related to the formal language restriction not serious
13114 (insertion character |).
13115 * par.adb (Par): set formal language for error messages if needed
13116 * sem_ch6.adb (Check_Missing_Return): take into account possible
13117 generated statements at the end of the function
13118 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
13119 enumeration value to define a new pragma SPARK_95
13120 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
13121 SPARK_Version): new type and variables to store the SPARK version
13122 (none by default).
13123 (SPARK_Mode): return True when SPARK_Version is set
13124 * par-prag.adb: Correct indentation
13125 (Prag): take Pragma_SPARK_95 into account
13126 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
13127 into account.
13128
8d606a78
RD
131292011-08-01 Robert Dewar <dewar@adacore.com>
13130
13131 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
13132 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
13133 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
13134
1982d5a8
PO
131352011-08-01 Pascal Obry <obry@adacore.com>
13136
13137 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
13138 Target_Name to Get_Path call.
13139 (Parse_Single_Project): Likewise.
13140 (Post_Parse_Context_Clause): Likewise.
13141 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
13142 Call Initialise_Project_Path with the proper Target_Name.
13143 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
13144 search path.
13145 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
13146 with the proper Target_Name.
13147 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
13148 Part.Parse routine.
13149 (Parse_Project_And_Apply_Config): Likewise.
13150 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
13151 This is fine as this part of the code is supporting only native
13152 compilation.
13153 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
13154 is fine as this part of the code is supporting only native compilation.
13155
0d53d36b
AC
131562011-08-01 Yannick Moy <moy@adacore.com>
13157
13158 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
13159 of homonym, unless the homonym is one of the cases allowed in SPARK
13160 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
13161 package declaration occurring after a body.
13162
131632011-08-01 Robert Dewar <dewar@adacore.com>
13164
13165 * checks.adb, exp_ch4.adb: Minor reformatting.
13166
131672011-08-01 Javier Miranda <miranda@adacore.com>
13168
13169 * einfo.ads (Access_Disp_Table): Fix documentation.
13170 (Dispatch_Table_Wrappers): Fix documentation.
13171
131722011-08-01 Pascal Obry <obry@adacore.com>
13173
13174 * prj-env.adb, prj-env.ads: Minor reformatting.
13175
8ed68165
AC
131762011-08-01 Yannick Moy <moy@adacore.com>
13177
13178 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
13179 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
13180 procedures out of these packages.
2c7f9cc0 13181 * errout.ads, errout.adb
8ed68165
AC
13182 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
13183 procedures in of this package
13184 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
13185 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
13186 on misplaced later vs initial declarations, like in Ada 83
13187 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
13188 formal mode on attribute of private type whose full type declaration
13189 is not visible
13190 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
13191 package declaration inside a package specification
13192 (Analyze_Full_Type_Declaration): issue error in formal mode on
13193 controlled type or discriminant type
13194 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
13195 user-defined operator means that it should come from the source
13196 (New_Overloaded_Entity): issue error in formal mode on overloaded
13197 entity.
13198 * sem_ch6.ads, sem_ch13.ads: typos in comments.
13199
132002011-08-01 Thomas Quinot <quinot@adacore.com>
13201
13202 * atree.adb: Minor reformatting.
13203 * checks.adb: Minor reformatting.
13204
4230bdb7
AC
132052011-08-01 Vincent Celier <celier@adacore.com>
13206
13207 * s-parame-vms-ia64.ads: Fix typo in comment
13208 Minor reformatting
13209 * s-parame-vms-restrict.ads: Removed, unused.
13210
132112011-08-01 Javier Miranda <miranda@adacore.com>
13212
13213 * exp_ch3.adb
13214 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
13215 * sem_ch3.adb
13216 (Constrain_Index): Remove side effects in the evaluation of the bounds.
13217 * sem_ch3.ads, sem_ch3.adb
13218 (Is_Constant_Bound): New extended version of the subprogram that was
13219 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
13220 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
13221 * sem_aux.ads (Constant_Value): Fix typo in comment.
13222 * checks.adb (Generate_Index_Checks): New implementation which, for
13223 array objects with constant bounds, generates the runtime check
13224 referencing the bounds of the array type. For other cases this routine
13225 provides its previous behavior obtaining such values from the array
13226 object.
13227 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
13228 parent type.
13229 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
13230 we cannot have semantic interpretations of the new node.
13231
2010d078
AC
132322011-08-01 Ed Schonberg <schonberg@adacore.com>
13233
13234 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
13235 expressions.
13236
132372011-08-01 Arnaud Charlet <charlet@adacore.com>
13238
13239 * sem_ch8.adb: Minor code editing.
13240 * s-vxwext.adb: Remove trailing space.
13241 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
13242 consistency with other files.
13243
132442011-08-01 Thomas Quinot <quinot@adacore.com>
13245
13246 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
13247
132482011-08-01 Ed Schonberg <schonberg@adacore.com>
13249
13250 * par-ch10.adb: reject parameterized expressions as compilation unit.
13251 * sem_ch4.adb: handle properly conditional expression with overloaded
13252 then_clause and no else_clause.
13253
132542011-08-01 Tristan Gingold <gingold@adacore.com>
13255
13256 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
13257 like done by System.Aux_DEC.
13258 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
13259
daec8eeb
YM
132602011-08-01 Yannick Moy <moy@adacore.com>
13261
13262 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
13263 missing label at end of declaration (subprogram or package)
13264 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
13265 of positional and named parameter association
13266 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
13267 Error_Msg_SP which adds a prefix to the error message giving the name
13268 of the formal language analyzed
13269 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
13270 access result type in subprogram, unconstrained array as result type,.
13271 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
13272 procedure
13273 * sem_ch8.adb: Code clean up.
13274
38171f43
AC
132752011-08-01 Javier Miranda <miranda@adacore.com>
13276
13277 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
13278 * einfo.ads (Access_Disp_Table): Fix documentation.
13279 (Dispatch_Table_Wrappers): Fix documentation.
13280 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
13281 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
13282 to enforce the documentation of this attribute.
13283 (Set_Is_Interface): Cleanup the assertion.
13284 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
13285 the Underlying_Type entity before reading attribute Access_Disp_Table.
13286 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
13287 Locate the Underlying_Type before reading attribute Access_Disp_Table.
13288 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
13289 the Underlying_Type entity before reading attribute Access_Disp_Table.
13290 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
13291 Locate the Underlying_Type entity before reading attribute
13292 Access_Disp_Table.
13293
132942011-08-01 Ed Schonberg <schonberg@adacore.com>
13295
13296 * s-poosiz.ads: Additional overriding indicators.
13297
132982011-08-01 Yannick Moy <moy@adacore.com>
13299
13300 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
13301 formal mode.
13302 (Analyze_Iteration_Scheme): issue error in formal mode when loop
13303 parameter specification does not include a subtype mark.
13304 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
13305 formal mode on abstract subprogram.
13306 (Analyze_Subprogram_Specification): issue error in formal mode on
13307 user-defined operator.
13308 (Process_Formals): issue error in formal mode on access parameter and
13309 default expression.
13310 * sem_ch9.adb (Analyze_Abort_Statement,
13311 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
13312 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
13313 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
13314 Analyze_Requeue, Analyze_Selective_Accept,
13315 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
13316 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
13317 issue error in formal mode on user-defined raise statement.
13318
1f250383
AC
133192011-08-01 Thomas Quinot <quinot@adacore.com>
13320
13321 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
13322 declaration being hidden when overriding an implicit inherited
13323 subprogram.
13324 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
13325 (-gnats), do not complain about a source file that contains only a
13326 pragma No_Body.
13327
133282011-08-01 Ed Schonberg <schonberg@adacore.com>
13329
13330 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
13331 variable if already set.
13332
607d0635
AC
133332011-08-01 Arnaud Charlet <charlet@adacore.com>
13334
13335 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
13336 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
13337 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
13338 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
13339 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
13340 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
13341 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
13342 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
13343 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
13344 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
13345 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
13346 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
13347 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
13348 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
13349 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
13350 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
13351 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
13352 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
13353 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
13354 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
13355 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
13356 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
13357 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
13358 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
13359 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
13360 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
13361 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
13362 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
13363 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
13364 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
13365 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
13366 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
13367 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
13368 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
13369 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
13370 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
13371 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
13372 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
13373 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
13374 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
13375 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
13376 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
13377 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
13378 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
13379 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
13380 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
13381 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
13382 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
13383 s-osinte-mingw.ads: Update to GPLv3 run-time license.
13384 Use GNAT instead of GNARL.
13385
133862011-08-01 Bob Duff <duff@adacore.com>
13387
13388 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
13389 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
13390 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
13391 reformatting.
13392
133932011-08-01 Yannick Moy <moy@adacore.com>
13394
13395 * debug.adb (d.D) reverve flag for the SPARK mode
13396 (d.E) reverve flag for SPARK generation mode
13397 (d.F) reverve flag for Why generation mode
2c7f9cc0 13398 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
607d0635
AC
13399 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
13400 functions which return True when the corresponding modes are set
13401 (Formal_Language): return "spark" or "alfa" when in formal verification
13402 mode.
13403 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
13404 Error_Msg to prefix the error message with a tag giving the formal
13405 language
13406 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
13407 message with a tag giving the formal language
13408 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
13409 block statement
13410 (Analyze_Case_Statement): issue error in formal mode on case statement
13411 with a single "others" case alternative
13412 (Analyze_Exit_Statement): issue errors in formal mode on exit
13413 statements which do not respect SPARK restrictions
13414 (Analyze_Goto_Statement): issue error in formal mode on goto statement
13415 (Check_Unreachable_Code): always issue an error (not a warning) in
13416 formal mode on unreachable code (concerns both code after an infinite
13417 loop and after an unconditional jump, both not allowed in SPARK)
13418 * sem_ch6.adb (Analyze_Return_Statement): add call to
13419 Set_Return_Present for a procedure containing a return statement
13420 (already done for functions in Analyze_Function_Return)
13421 (Analyze_Function_Return): issue error in formal mode on extended
13422 return or if return is not last statement in function
13423 (Check_Missing_Return): issue error in formal mode if function does
13424 not end with return or if procedure contains a return
13425 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
13426 function to detect if there is an inner scope of its parameter S which
13427 is a loop.
13428
134292011-08-01 Thomas Quinot <quinot@adacore.com>
13430
13431 * sem_ch6.ads: Minor reformatting.
13432
d8b3ccb9
AC
134332011-08-01 Javier Miranda <miranda@adacore.com>
13434
13435 * sem_util.adb (Abstract_Interface_List): Complete condition when
13436 processing private type declarations to avoid reading unavailable
13437 attribute.
13438 (Is_Synchronized_Tagged_Type): Complete condition when processing
13439 private extension declaration nodes to avoid reading unavailable
13440 attribute.
13441
134422011-08-01 Thomas Quinot <quinot@adacore.com>
13443
13444 * sem_ch3.adb: Minor reformatting.
13445
134462011-08-01 Thomas Quinot <quinot@adacore.com>
13447
13448 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
13449 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
13450 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
13451 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
13452 for VMS, instead parametrize the common implementation with
13453 System.Parameters declarations.
13454
0bb9276c
AC
134552011-08-01 Eric Botcazou <ebotcazou@adacore.com>
13456
13457 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
13458
134592011-08-01 Tristan Gingold <gingold@adacore.com>
13460
13461 * seh_init.c: Fix SEH handler installation on win64.
13462
134632011-08-01 Ed Schonberg <schonberg@adacore.com>
13464
13465 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
13466 double analysis of an anonymous access to subprogram, because it can
13467 lead to improper sharing of profiles and a back-end crash.
13468
6a2e4f0b
AC
134692011-08-01 Robert Dewar <dewar@adacore.com>
13470
13471 * make.adb, sem_ch4.adb: Minor reformatting.
13472 * gcc-interface/Make-lang.in: Update dependencies.
13473 * sem_util.adb, exp_ch5.adb: Minor reformatting.
13474
134752011-08-01 Arnaud Charlet <charlet@adacore.com>
13476
13477 * gnat_rm.texi: Fix definition of Long_Integer.
13478
134792011-08-01 Ed Schonberg <schonberg@adacore.com>
13480
13481 * exp_aggr.adb: check limit size of static aggregate unconditionally,
13482 to prevent storage exhaustion.
13483 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
13484 finalized is a function body, insert the cleanup code before the final
13485 return statement, to prevent spurious warnings.
13486 * s-pooglo.ads: add overriding indicator.
13487
4561baf7
ES
134882011-08-01 Ed Schonberg <schonberg@adacore.com>
13489
13490 * sem_ch4.adb (Operator_Check): improve error message when both a
13491 with_clause and a use_clause are needed to make operator usage legal.
13492 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
13493 determine whether a compilation unit is visible within an other,
13494 either through a with_clause in the current unit, or a with_clause in
13495 its library unit or one one of its parents.
13496
383e179e
AC
134972011-08-01 Ed Schonberg <schonberg@adacore.com>
13498
13499 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
13500 over an arbitrary expression of an array or container type.
13501 * lib-xref.adb: clarify comment.
13502
135032011-08-01 Bob Duff <duff@adacore.com>
13504
13505 * einfo.ads: Minor reformatting.
13506 * debug.adb: Minor comment improvement.
13507
135082011-08-01 Javier Miranda <miranda@adacore.com>
13509
13510 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
13511 consider hidden subprograms as valid candidates.
13512
135132011-08-01 Arnaud Charlet <charlet@adacore.com>
13514
13515 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
13516
135172011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
13518
13519 * gnat_ugn.texi: Fix typo.
13520
61c161b2
AC
135212011-08-01 Robert Dewar <dewar@adacore.com>
13522
13523 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
13524 lib-xref.adb: Minor reformatting
13525
135262011-08-01 Gary Dismukes <dismukes@adacore.com>
13527
13528 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
13529 when to generate a call to Move_Final_List.
13530 (Has_Controlled_Parts): Remove this function.
13531
84df40f7
AC
135322011-08-01 Geert Bosch <bosch@adacore.com>
13533
13534 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
13535 "," in choice list.
13536
135372011-08-01 Thomas Quinot <quinot@adacore.com>
13538
13539 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
13540 explicit raise of a predefined exception as Comes_From_Source if the
13541 original N_Raise_Statement comes from source.
13542
135432011-08-01 Robert Dewar <dewar@adacore.com>
13544
13545 * sinfo.ads: Add comment.
13546 * sem_ch6.adb: Minor reformatting.
13547
135482011-08-01 Robert Dewar <dewar@adacore.com>
13549
13550 * freeze.adb (Freeze_Entity): Refine check for bad component size
13551 clause to avoid rejecting confirming clause when atomic/aliased present.
13552
135532011-08-01 Ed Schonberg <schonberg@adacore.com>
13554
13555 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
13556 better determine whether an entity reference is a write.
13557 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
13558 subcomponent.
13559 * lib-xref.adb (Output_References): Do no suppress a read reference at
13560 the same location as an immediately preceeding modify-reference, to
13561 handle properly in-out actuals.
13562
135632011-08-01 Tristan Gingold <gingold@adacore.com>
13564
13565 * env.c (__gnat_setenv) [VMS]: Refine previous change.
13566
135672011-08-01 Quentin Ochem <ochem@adacore.com>
13568
13569 * i-cstrin.adb (New_String): Changed implementation, now uses only the
13570 heap to compute the result.
13571
c7f0d2c0
AC
135722011-08-01 Robert Dewar <dewar@adacore.com>
13573
13574 * atree.ads: Minor reformatting.
13575
135762011-08-01 Emmanuel Briot <briot@adacore.com>
13577
13578 * g-expect.adb (Get_Command_Output): Fix memory leak.
13579
135802011-08-01 Geert Bosch <bosch@adacore.com>
13581
13582 * cstand.adb (P_Float_Type): New procedure to print the definition of
13583 predefined fpt types.
13584 (P_Mixed_Name): New procedure to print a name using mixed case
13585 (Print_Standard): Use P_Float_Type for printing floating point types
13586 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
13587 precision IEEE float.
13588
135892011-08-01 Thomas Quinot <quinot@adacore.com>
13590
13591 * sem_ch3.adb: Minor reformatting.
13592
135932011-08-01 Ed Schonberg <schonberg@adacore.com>
13594
13595 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
13596 the completion of a generic function, insert the new body rather than
13597 rewriting the original.
13598
135992011-08-01 Yannick Moy <moy@adacore.com>
13600
13601 * sinfo.ads, errout.ads: Typos in comments.
13602
1c54829e
AC
136032011-08-01 Robert Dewar <dewar@adacore.com>
13604
13605 * par-endh.adb: Minor reformatting.
13606
136072011-08-01 Robert Dewar <dewar@adacore.com>
13608
13609 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
13610 (Pre_Post_Aspects): New subtype.
13611 * par-ch12.adb (P_Generic): New syntax for aspects in packages
13612 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
13613 * par-ch7.adb (P_Package): Remove Decl parameter
13614 (P_Package): Handle new syntax for aspects (before IS)
13615 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
13616 new aspect syntax
13617 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
13618 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
13619 (P_Package): Remove Decl parameter
13620 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
13621 aspects
13622 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
13623 specs
13624 * sem_util.ads, sem_util.adb (Static_Boolean): New function
13625 * sinfo.ads: Document new syntax for aspects in packages etc.
13626 * sprint.adb: Handle new syntax of aspects before IS in package
13627
136282011-08-01 Thomas Quinot <quinot@adacore.com>
13629
13630 * atree.ads: Minor reformatting.
13631 * sem_prag.adb: Minor reformatting.
13632
136332011-08-01 Robert Dewar <dewar@adacore.com>
13634
13635 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
13636 case expr alternative.
13637
136382011-08-01 Ed Schonberg <schonberg@adacore.com>
13639
13640 * sem_ch12.adb: Fix typo.
13641
9eea4346
GB
136422011-08-01 Geert Bosch <bosch@adacore.com>
13643
13644 * sem_prag.adb (Check_No_Link_Name): New procedure.
13645 (Process_Import_Or_Interface): Use Check_No_Link_Name.
13646 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
13647 instead of Standard_Long_Long_Float_Size global. Preparation for
13648 eventual removal of per type constants.
13649 * exp_util.ads (Get_Stream_Size): New function returning the stream
13650 size value of subtype E.
13651 * exp_util.adb (Get_Stream_Size): Implement new function.
13652 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
13653 function.
13654 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
13655 * einfo.adb:
13656 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
13657
3d6c3bd7
GB
136582011-08-01 Geert Bosch <bosch@adacore.com>
13659
13660 * cstand.adb: Fix comments.
13661 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
13662 count of arguments.
13663
e7d897b8
AC
136642011-08-01 Robert Dewar <dewar@adacore.com>
13665
13666 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
13667
136682011-08-01 Geert Bosch <bosch@adacore.com>
13669
13670 * atree.ads: Fix comment.
13671
c228a069
AC
136722011-08-01 Robert Dewar <dewar@adacore.com>
13673
13674 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
13675 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
13676 * par.adb: Add with for Namet.Sp.
13677 * par-tchk.adb: Minor reformatting.
13678
136792011-08-01 Vincent Celier <celier@adacore.com>
13680
13681 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
13682 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
13683 of the init procedure of a SAL.
13684 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
13685 New procedure.
13686
136872011-08-01 Thomas Quinot <quinot@adacore.com>
13688
13689 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
13690 reformatting.
13691
136922011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13693
13694 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
13695
136962011-08-01 Thomas Quinot <quinot@adacore.com>
13697
13698 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
13699 conformant with its spec (return True only for types that have
13700 an overriding Initialize primitive operation that prevents them from
13701 having preelaborable initialization).
13702 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
13703 initialization for controlled types in Ada 2005 or later mode.
13704
857ade1b
RD
137052011-08-01 Robert Dewar <dewar@adacore.com>
13706
13707 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
13708 Postcondition.
13709 (Same_Aspect): New function.
13710 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
13711 Type_Invariant, Precondition, Postcondition.
13712 * snames.ads-tmpl: Add Name_Type_Invariant.
13713
bd949ee2
RD
137142011-08-01 Robert Dewar <dewar@adacore.com>
13715
13716 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
13717 here.
13718 (Freeze_All_Ent): Fix error in handling inherited aspects.
13719 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
13720 already analyzed, but don't skip entire processing of a declaration,
13721 that's wrong in some cases of declarations being rewritten.
13722 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
13723 Don't delay for integer, string literals
13724 Treat predicates in usual manner for delay, remove special case code,
13725 not needed.
13726 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
13727 (Build_Predicate_Function): Update saved expression in aspect
13728 (Build_Invariant_Procedure): Update saved expression in aspect
13729 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
13730 of replacement of discriminant references if the reference is simple.
13731
f1c952af
RD
137322011-08-01 Robert Dewar <dewar@adacore.com>
13733
13734 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
13735 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
13736 Static_Predicate and Dynamic_Predicate.
13737 (Build_Predicate_Function): Add processing for Static_Predicate
13738 and Dynamic_Predicate.
13739 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
13740 (From_Static_Predicate): New flag
13741 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
13742
137432011-08-01 Robert Dewar <dewar@adacore.com>
13744
13745 * usage.adb: Documentation cleanup for Ada version modes in usage.
13746 * expander.adb: Minor reformatting.
13747
47e11d08
AC
137482011-08-01 Robert Dewar <dewar@adacore.com>
13749
13750 * atree.ads: Minor comment fix.
13751 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
13752 a-witeio.ads, sem_prag.adb: Minor reformatting.
13753
137542011-08-01 Doug Rupp <rupp@adacore.com>
13755
13756 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
13757 pointers. Use descrip.h header file for convenience. Add some
13758 comments.
13759
137602011-08-01 Robert Dewar <dewar@adacore.com>
13761
13762 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
13763 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
13764 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
13765 New procedure.
13766 (Check_Aspect_At_End_Of_Declarations): New procedure
13767 (Analye_Aspect_Specification): Minor changes for above procedures
13768 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
13769 specification node as well.
13770
137712011-08-01 Pascal Obry <obry@adacore.com>
13772
13773 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
13774 Windows files. Use GetFilesAttributes() in this case to check for file
13775 existence instead of returning with an error code.
13776
a3a16b21
VC
137772011-08-01 Vincent Celier <celier@adacore.com>
13778
13779 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
13780 High is above Source length.
13781
ff58cc69
RD
137822011-08-01 Robert Dewar <dewar@adacore.com>
13783
13784 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
13785
6bb88533
AC
137862011-08-01 Robert Dewar <dewar@adacore.com>
13787
13788 * aspects.ads (Boolean_Aspects): New subtype.
13789 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
13790 for derived types in cases where the parent type and derived type have
13791 aspects.
13792 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
13793 with aspects when parent type also has aspects.
13794 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
13795 boolean expression at this point).
13796 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
13797 accordance with final decision on the Ada 2012 feature.
13798 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
13799
138002011-08-01 Matthew Heaney <heaney@adacore.com>
13801
13802 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
13803
060a3f28
AC
138042011-08-01 Pascal Obry <obry@adacore.com>
13805
13806 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
13807 Fix Replace_Slice when High is above current string size.
13808 (Replace_Slice): Fix DL computation when High is above current
13809 string length.
13810
138112011-08-01 Gary Dismukes <dismukes@adacore.com>
13812
13813 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
13814
e7f567a3
AC
138152011-08-01 Matthew Heaney <heaney@adacore.com>
13816
13817 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
13818 of node.
13819
138202011-08-01 Pascal Obry <obry@adacore.com>
13821
13822 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
13823 reformatting.
13824
1a265e78
AC
138252011-08-01 Ed Schonberg <schonberg@adacore.com>
13826
13827 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
13828 access to protected subprograms in generic bodies.
13829 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
13830 protected type, indicate that the convention of the subprogram is
13831 Convention_Protected, because it may be used in subsequent declarations
13832 within the protected declaration.
13833
138342011-08-01 Vincent Celier <celier@adacore.com>
13835
13836 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
13837 and "final" procedures when the name of the library is "ada", to avoid
13838 duplicate symbols "adainit" and "adafinal" in executables.
13839
67e28ef8
ES
138402011-08-01 Ed Schonberg <schonberg@adacore.com>
13841
13842 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
13843 quantified expression that appears within a postcondition and uses the
13844 Ada2012 'Result attribute.
13845
6da2ca7d
RO
138462011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13847
13848 * init.c (__gnat_error_handler): Cast reason to int.
13849 (__gnat_install_handler): Explain sa_sigaction use.
13850
7d5997c6
EB
138512011-07-24 Eric Botcazou <ebotcazou@adacore.com>
13852
13853 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
13854 subprogram has copy-in copy-out parameters, try to promote the mode of
13855 the return type if it is passed in registers.
13856
4b4cfdd5
EB
138572011-07-24 Eric Botcazou <ebotcazou@adacore.com>
13858
13859 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
13860 left operand as addressable.
13861
f3d34576
EB
138622011-07-24 Eric Botcazou <ebotcazou@adacore.com>
13863
13864 * gcc-interface/gigi.h (build_function_stub): Remove.
13865 (build_return_expr): Likewise.
13866 (convert_vms_descriptor): Declare.
13867 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
13868 (build_function_stub): Move to...
13869 * gcc-interface/utils2.c (build_return_expr): Move to...
13870 * gcc-interface/trans.c (build_function_stub): ...here.
13871 (build_return_expr): ...here.
13872 (Subprogram_Body_to_gnu): Add local variable for language_function.
13873 Disconnect the parameter attributes cache, if any, once done with it.
13874 Call end_subprog_body only after setting the end_locus.
13875 Build the stub associated with the function, if any, at the very end.
13876 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
13877 variables and streamline control flow.
13878
0a6ecc08
AC
138792011-07-23 Arnaud Charlet <charlet@adacore.com>
13880
13881 PR ada/49819
13882 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
13883 g-trasym-dwarf.adb.
13884
5b6d595b
RO
138852011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13886
13887 PR bootstrap/49794
13888 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
13889 Assign to act.sa_sigaction.
13890 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
13891 current->return_address to char * before arithmetic.
13892
94017021
RO
138932011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13894
13895 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
13896 Correct argument types.
13897 Extract code from reason.
13898 (__gnat_install_handler): Assign to act.sa_sigaction.
13899
52fd02bb
EB
139002011-07-21 Eric Botcazou <ebotcazou@adacore.com>
13901
13902 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
13903 (GNAT1_OBJS): ...here.
13904
f39a9ca2
EB
139052011-07-15 Eric Botcazou <ebotcazou@adacore.com>
13906
13907 PR ada/48711
13908 * g-socthi-mingw.adb (Fill): Fix formatting.
13909
9e36aa23
EB
13910 * gcc-interface/gigi.h: Move around comment.
13911
e3aca522
JDA
139122011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13913
13914 PR ada/46350
13915 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
13916
696b1960
FW
139172011-07-14 Florian Weimer <fw@deneb.enyo.de>
13918
13919 PR ada/48711
13920 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
13921
f542c405
EB
139222011-07-13 Eric Botcazou <ebotcazou@adacore.com>
13923
13924 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
13925 range comparison if Pmode is SImode.
13926
9e9bd455
LG
139272011-07-12 Laurent GUERBY <laurent@guerby.net>
13928 Eric Botcazou <ebotcazou@adacore.com>
13929
13930 * adadecode.c: Wrap up in extern "C" block.
13931 * adadecode.h: Likewise.
13932 * adaint.c: Likewise. Remove 'const' keyword.
13933 * adaint.h: Likewise.
13934 * argv.c: Likewise.
13935 * atree.h: Likewise.
13936 * cio.c: Likewise.
13937 * cstreams.c: Likewise.
13938 * env.c: Likewise.
13939 * exit.c: Likewise.
13940 * fe.h: Likewise.
13941 * final.c: Likewise.
13942 * init.c: Likewise.
13943 * initialize.c: Likewise.
13944 * link.c: Likewise.
13945 * namet.h: Likewise.
13946 * nlists.h: Likewise.
13947 * raise.c: Likewise.
13948 * raise.h: Likewise.
13949 * repinfo.h: Likewise.
13950 * seh_init.c: Likewise.
13951 * targext.c: Likewise.
13952 * tracebak.c: Likewise.
13953 * uintp.h: Likewise.
13954 * urealp.h: Likewise.
13955 * xeinfo.adb: Wrap up generated C code in extern "C" block.
13956 * xsinfo.adb: Likewise.
13957 * xsnamest.adb: Likewise.
13958 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
13959 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
13960 * gcc-interface/misc.c: Likewise.
13961 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
13962 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
13963 ada/targext.o here...
13964 (GNAT_ADA_OBJS): ...and not here.
13965 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
13966 (GNATBIND_OBJS): Reorder.
13967
7644b3c7
RH
139682011-07-07 Richard Henderson <rth@redhat.com>
13969
13970 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
13971 dwarf2out_frame_init.
13972
8384ac41
EB
139732011-07-07 Eric Botcazou <ebotcazou@adacore.com>
13974
13975 * gcc-interface/misc.c (gnat_init): Tweak previous change.
13976
fbdd5d87
RO
139772011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13978
13979 PR target/39150
13980 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
13981
1a072294
RG
139822011-07-06 Richard Guenther <rguenther@suse.de>
13983
8384ac41
EB
13984 * gcc-interface/misc.c (gnat_init): Merge calls to
13985 build_common_tree_nodes and build_common_tree_nodes_2.
1a072294
RG
13986 Re-initialize boolean_false_node.
13987
bc712852
EB
139882011-07-02 Eric Botcazou <ebotcazou@adacore.com>
13989 Olivier Hainque <hainque@adacore.com>
13990 Nicolas Setton <setton@adacore.com>
13991
13992 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
13993 the type according to the ARTIFICIAL_P parameter.
13994 (create_type_decl): Likewise.
13995 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
13996
2eb22389
EB
139972011-07-01 Eric Botcazou <ebotcazou@adacore.com>
13998
13999 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
14000 (gnatbind): Likewise.
14001
4bdaaf2f
RO
140022011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14003
14004 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
14005
c020c92b
EB
140062011-06-18 Eric Botcazou <ebotcazou@adacore.com>
14007
14008 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
14009 local variable throughout. Remove useless call to Base_Type.
14010 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
14011 Take it also into account for the volatileness of the field. Set the
14012 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
14013
96769d32
EB
140142011-06-18 Eric Botcazou <ebotcazou@adacore.com>
14015
14016 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
14017 on a dereference built for a by-ref object if it has an address clause.
14018
7e4680c1
EB
140192011-06-18 Eric Botcazou <ebotcazou@adacore.com>
14020
14021 * einfo.ads (Address_Taken): Document use for the second argument of
14022 Asm_Input and Asm_Output attributes.
14023 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
14024 argument is an entity name, then set Address_Taken on it.
14025 <Attribute_Asm_Output>: Likewise.
14026 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
14027 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
14028 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
14029 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
14030
140312011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
14032
14033 PR middle-end/46500
14034 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
14035
677f3fa8
JM
140362011-06-14 Joseph Myers <joseph@codesourcery.com>
14037
14038 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
14039 (ada/utils.o): Update dependencies.
14040 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
14041 ../../../libcpp/libcpp.a.
14042 * gcc-interface/utils.c: Include common/common-target.h.
14043 (process_attributes): Use targetm_common.have_named_sections.
14044
009db074
RG
140452011-06-07 Richard Guenther <rguenther@suse.de>
14046
0bad0e23
EB
14047 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
14048 set_sizetype.
009db074 14049
3bfc61cf
EB
140502011-06-06 Eric Botcazou <ebotcazou@adacore.com>
14051
0bad0e23 14052 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
3bfc61cf
EB
14053 TREE_THIS_NOTRAP flag.
14054
5c4a1c7b
EB
140552011-06-06 Eric Botcazou <ebotcazou@adacore.com>
14056
14057 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
14058 Fix thinko.
14059
e9f57686
EB
140602011-06-06 Eric Botcazou <ebotcazou@adacore.com>
14061
14062 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
14063 constants whose full view has discriminants specially.
14064
10e4d056
EB
140652011-06-06 Eric Botcazou <ebotcazou@adacore.com>
14066
14067 * gcc-interface/utils.c: Include diagnostic.h.
14068 (gnat_write_global_declarations): Output debug information for all
14069 global type declarations before finalizing the compilation unit.
14070 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
14071
0957c029
JJ
140722011-05-25 Jakub Jelinek <jakub@redhat.com>
14073
14074 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
14075
52d0a7ac
KT
140762011-05-25 Kai Tietz <ktietz@redhat.com>
14077
14078 * adaint.c (__gnat_to_canonical_file_list_next): Use array
14079 initialization instead of const/none-const pointer assignment.
14080
1ed1641d
JM
140812011-05-24 Joseph Myers <joseph@codesourcery.com>
14082
14083 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
14084 $(EXTRA_GNAT1_OBJS).
14085 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
14086 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
14087 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
14088 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
14089 libcommon-target.a instead of prefix.o.
14090
9fe72ebd
JM
140912011-05-21 Joseph Myers <joseph@codesourcery.com>
14092
14093 PR ada/49097
0bad0e23 14094 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
9fe72ebd 14095
2691e6d7
JM
140962011-05-20 Joseph Myers <joseph@codesourcery.com>
14097
0bad0e23
EB
14098 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
14099 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
14100 instead of version.o.
2691e6d7 14101
bf6490b5
KT
141022011-05-18 Kai Tietz <ktietz@redhat.com>
14103
14104 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
14105 boolean_false_node instead of integer_zero_node.
14106 (convert_with_check): Likewise.
14107 * gcc-interface/decl.c (choices_to_gnu): Likewise.
14108
7bf9a5ac
EB
141092011-05-12 Eric Botcazou <ebotcazou@adacore.com>
14110
14111 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
14112 type of the parameter is an unconstrained array, convert the actual to
14113 the type of the formal in the In Out and Out cases as well.
14114
e5b00edf
NF
141152011-05-11 Nathan Froyd <froydnj@codesourcery.com>
14116
14117 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
14118 call build_function_type_array or build_varargs_function_type_array
14119 instead.
14120 (create_subprog_type): Don't call build_function_type; call
14121 build_function_type_vec instead.
14122
51545682
NF
141232011-05-11 Nathan Froyd <froydnj@codesourcery.com>
14124
14125 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
14126 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
14127 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
14128
c99c0026
EB
141292011-05-07 Eric Botcazou <ebotcazou@adacore.com>
14130
f620bd21
EB
14131 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
14132
c99c0026
EB
14133 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
14134 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
14135
3d528853
NF
141362011-05-05 Nathan Froyd <froydnj@codesourcery.com>
14137
c99c0026 14138 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
3d528853 14139
d7d058c5
NF
141402011-05-05 Nathan Froyd <froydnj@codesourcery.com>
14141
14142 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
14143 instead of accessing TYPE_ARG_TYPES directly.
14144 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
14145
805e60a0
EB
141462011-05-05 Eric Botcazou <ebotcazou@adacore.com>
14147
14148 PR ada/48844
14149 * gcc-interface/gigi.h (get_variant_part): Declare.
14150 * gcc-interface/decl.c (get_variant_part): Make global.
14151 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
14152 types have the same constant size, are record types and T1 has a
14153 variant part while T2 doesn't.
14154
907a08d9
EB
141552011-05-05 Eric Botcazou <ebotcazou@adacore.com>
14156
14157 * gcc-interface/utils.c (begin_subprog_body): Do not call
14158 get_pending_sizes.
14159 (end_subprog_body): Likewise.
14160
d35936ab
RG
141612011-05-04 Richard Guenther <rguenther@suse.de>
14162
14163 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
14164 int_const_binop.
14165 (pos_to_constructor): Likewise.
14166
c1fd8753 141672011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2c7f9cc0 14168 Eric Botcazou <ebotcazou@adacore.com>
c1fd8753
NF
14169
14170 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
14171 of build_function_type. Adjust calls to...
14172 (build_raise_check): ...this. Do not take a void_tree parameter.
14173 Call build_function_type_list instead of build_function_type.
14174 Fix head comment and swap couple of conditional blocks.
14175
4fb87d2b
EB
141762011-04-30 Eric Botcazou <ebotcazou@adacore.com>
14177
14178 * gnatvsn.ads (Library_Version): Bump to 4.7.
14179 (Current_Year): Bump to 2011.
14180
fa5e5a76
MM
141812011-04-29 Michael Matz <matz@suse.de>
14182
14183 * gcc-interface/misc.c (gnat_handle_option): Set
14184 warn_maybe_uninitialized.
14185
8d6a2f69
GP
141862011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
14187
14188 * gnat_ugn.texi (Complexity Metrics Control): Update link to
14189 the Watson/McCabe paper.
14190
770937fd
JM
141912011-04-23 Jim Meyering <meyering@redhat.com>
14192
14193 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
14194
eb601ae1
EB
141952011-04-22 Eric Botcazou <ebotcazou@adacore.com>
14196
14197 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
14198 onto the new type.
14199
7d7fcb08
EB
142002011-04-22 Eric Botcazou <ebotcazou@adacore.com>
14201
14202 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
14203 parameter.
14204 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
14205 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
14206 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
14207 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
14208 <all>: Do not set flags on the reused DECL node coming from an alias.
14209 Set DECL_IGNORED_P on the DECL node built for subprograms if they
14210 don't need debug info here...
14211 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
14212 (gigi): Adjust calls to create_subprog_decl.
14213 (build_raise_check): Likewise.
14214 (establish_gnat_vms_condition_handler): Likewise.
14215 (Compilation_Unit_to_gnu): Likewise.
14216 (gnat_to_gnu): Likewise.
14217
e1876cac
EB
142182011-04-21 Eric Botcazou <ebotcazou@adacore.com>
14219
14220 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
14221 (NO_REORDER_ADAFLAGS): New variable.
14222 (EXTRA_GNATTOOLS): Always define.
14223 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
14224 Clean up and adjust list of files compiled with special options.
14225 * gcc-interface/Make-lang.in: Likewise.
14226 (ada/decl.o): Cosmetical change.
14227 (ada/misc.o): Remove dependency on $(PLUGIN_H).
14228
04695783
JM
142292011-04-20 Jim Meyering <meyering@redhat.com>
14230
14231 * initialize.c (__gnat_initialize): Remove useless if-before-free.
14232
23399579
EB
142332011-04-17 Eric Botcazou <ebotcazou@adacore.com>
14234
14235 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
14236 $(CFLAGS) on the link line.
14237
51c5169c
EB
142382011-04-17 Eric Botcazou <ebotcazou@adacore.com>
14239
14240 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
14241 padded type built for the return type if it is unconstrained.
14242
61e46a7d
NF
142432011-04-14 Nathan Froyd <froydnj@codesourcery.com>
14244
14245 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
14246
81f653d6
NF
142472011-04-12 Nathan Froyd <froydnj@codesourcery.com>
14248
b4867846
EB
14249 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
14250 before calling TREE_CHAIN.
81f653d6
NF
14251 * gcc-interface/misc.c (gnat_init_ts): New function.
14252 (LANG_HOOKS_INIT_TS): Define.
14253
a358e188
MJ
142542011-04-12 Martin Jambor <mjambor@suse.cz>
14255
b4867846
EB
14256 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
14257 instead of cgraph_node.
a358e188 14258
29b1c5a4
EB
142592011-04-08 Eric Botcazou <ebotcazou@adacore.com>
14260
14261 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
14262 alignment on fields of the RETURN type built for the Copy-In Copy-Out
14263 mechanism.
14264
88872b00
EB
142652011-04-08 Eric Botcazou <ebotcazou@adacore.com>
14266
14267 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
14268 of aggregate types that contain a placeholder.
14269
dcf0c47e
NF
142702011-04-08 Nathan Froyd <froydnj@codesourcery.com>
14271
14272 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
b4867846 14273 TYPE_ARG_TYPES.
dcf0c47e
NF
14274 (handle_type_generic_attribute): Likewise.
14275
53e3000c
EB
142762011-04-04 Eric Botcazou <ebotcazou@adacore.com>
14277
14278 PR ada/47163
14279 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
14280
ab380bb4
KT
142812011-04-04 Kai Tietz <ktietz@redhat.com>
14282
14283 PR ada/47163
0bad0e23
EB
14284 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
14285 to flag value.
ab380bb4 14286
8ffac116
EB
142872011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14288
14289 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
14290 type case, do not strip a padding type around the array type.
14291
de9528f0
EB
142922011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14293
14294 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
14295 types.
14296
d9d7a26c
EB
142972011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14298
14299 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
14300 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
de9528f0 14301 code for -feliminate-unused-debug-types.
d9d7a26c
EB
14302 (gnat_post_options): Likewise.
14303
4cb12a90
EB
143042011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14305
14306 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
14307 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
14308 distinct copy.
14309
acccc61c
EB
143102011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14311
14312 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
14313 DECL_ARTIFICIAL flag on enumeration types.
14314
583eb0c9
EB
143152011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14316
14317 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
14318 fat pointer types artificial unconditionally.
14319 <E_Array_Subtype>: Attach the base array type as a parallel type if it
14320 isn't artificial.
14321
e3edbd56
EB
143222011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14323
14324 * gcc-interface/gigi.h (get_dummy_type): Declare.
14325 (build_dummy_unc_pointer_types): Likewise.
14326 (finish_fat_pointer_type): Likewise.
14327 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
14328 fat pointer type has been built, complete it in place.
14329 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
14330 and thin pointers. Remove useless variable.
14331 (finish_fat_pointer_type): Make global and move to...
14332 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
14333 (get_dummy_type): New function.
14334 (build_dummy_unc_pointer_types): Likewise.
14335 (gnat_pushdecl): Propage the name to the anonymous variants only.
14336 (update_pointer_to): Only adjust the pointer types in the unconstrained
14337 array case.
14338
65444786
EB
143392011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14340
14341 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
14342 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
14343 if this is a Taft amendment type and the full declaration is available.
14344 * gcc-interface/trans.c (process_type): Likewise.
14345 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
14346 (process_freeze_entity): Likewise.
14347 * gcc-interface/utils.c (dummy_global): New static variable.
14348 (gnat_write_global_declarations): If there are types declared as used
14349 at the global level, insert them in the global hash table.
14350
1aeb40dd
EB
143512011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14352
14353 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
14354 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
14355 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
14356 copy.
14357 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
14358 flag of the type accordingly.
14359 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
14360
80ec8b4c
EB
143612011-04-02 Eric Botcazou <ebotcazou@adacore.com>
14362
14363 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
14364 finalizing types when updating the pointers to the designated type.
14365 <all>: Finalize the deferred types even if we didn't defer processing
14366 of incomplete types in this invocation.
14367
2a9d769a 143682011-04-01 Olivier Hainque <hainque@adacore.com>
2c7f9cc0
AS
14369 Nicolas Setton <setton@adacore.com>
14370 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
14371
14372 * gcc-interface/misc.c (gnat_descriptive_type): New function.
14373 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
14374
2438d7a6
KT
143752011-03-28 Kai Tietz <ktietz@redhat.com>
14376
333d8aff 14377 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
80ec8b4c
EB
14378 Windows targets.
14379 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
14380 * system-mingw.ads (System): Change ZCX_By_Default default to True.
333d8aff 14381
80ec8b4c 14382 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
2438d7a6 14383
8ad150f6
TG
143842011-03-28 Tristan Gingold <gingold@adacore.com>
14385
14386 PR ada/44431
80ec8b4c
EB
14387 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
14388 Use ada output of gnatbind.
8ad150f6
TG
14389 (ada/b_gnatb.adb): Ditto.
14390 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
14391 (ada.mostlyclean, ada.stage1)
14392 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
14393 (ada.stagefeedback): Adjust.
80ec8b4c 14394 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
8ad150f6
TG
14395 Use ada output of gnatbind.
14396 (b_gnatm.adb): Ditto.
14397 (b_gnatl.o, b_gnatm.o): New rules.
14398
51c7954d
EB
143992011-03-26 Eric Botcazou <ebotcazou@adacore.com>
14400
14401 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
14402 for the padded type built to support a specified size or alignment.
14403
6ddf9843
EB
144042011-03-26 Eric Botcazou <ebotcazou@adacore.com>
14405
14406 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
14407 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
14408 unconditionally to the end of the unit when the designated type is
14409 limited_with'ed.
14410 <all>: Rename local variable. Attempt to un-defer types only and do it
14411 for limited_with'ed types as well.
14412 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
14413 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
14414 consistently and remove redundant call to finalize_from_with_types.
14415
5daed84a
EB
144162011-03-26 Eric Botcazou <ebotcazou@adacore.com>
14417
14418 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
14419 subprograms without a previous spec declared in the same unit.
14420 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
14421 subprograms at the end of the unit instead of at the beginning.
14422 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
14423 isn't public for the special handling of non-inline functions nested
14424 inside inline external functions.
14425
0edf1bb2
JL
144262011-03-25 Jeff Law <law@redhat.com>
14427
5daed84a 14428 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
0edf1bb2 14429
e3c4580e
EB
144302011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14431
14432 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
14433 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
14434 to compute Set_Size_Depends_On_Discriminant.
14435 (Layout_Type): Call it on array types in back-end layout mode.
14436 * sem_util.adb (Requires_Transient_Scope): Return true for array
14437 types only if the size depends on the value of discriminants.
14438 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
14439 type if the RHS is a call to a function that returns an unconstrained
14440 type with default discriminant.
14441
abbc8c7b
EB
144422011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14443
14444 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
14445 non-conversion to the nominal result type at the end.
14446
ddb5a105
EB
144472011-03-23 Eric Botcazou <ebotcazou@adacore.com>
14448
14449 * gcc-interface/trans.c (create_temporary): New function taken from...
14450 (create_init_temporary): ...here. Call it.
14451 (call_to_gnu): Create the temporary for the return value early, if any.
14452 Create it for a function with copy-in/copy-out parameters if there is
14453 no target; in other cases of copy-in/copy-out, use another temporary.
14454 Push the new binding level lazily. Add and rename local variables.
14455
0d853156
EB
144562011-03-23 Eric Botcazou <ebotcazou@adacore.com>
14457
14458 * gcc-interface/decl.c (validate_size): Improve comments and tweak
14459 error message.
14460 (set_rm_size): Likewise.
14461
4184ef1b
EB
144622011-03-23 Eric Botcazou <ebotcazou@adacore.com>
14463
14464 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
14465 for the padded type built in order to support a specified alignment.
14466 Fix incorrect formatting.
14467
bf7eefab
EB
144682011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14469
14470 PR bootstrap/48216
14471 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
14472
ef0feeb2
EB
144732011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14474
14475 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
14476 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
14477 to the end of the list. Adjust recursive call. Rename local variable.
14478 If REORDER is true, reorder components of the record type.
14479 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
14480 components_to_record and adjust the parameter list.
14481
646f9414
EB
144822011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14483
14484 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
14485 disabled, use the variable for bounds of loop iteration scheme.
14486
62d784f7
KT
144872011-03-21 Kai Tietz <ktietz@redhat.com>
14488
14489 PR target/12171
0bad0e23 14490 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
62d784f7 14491
f230d759
EB
144922011-03-17 Eric Botcazou <ebotcazou@adacore.com>
14493
14494 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
14495 out whether the expression is read-only. Short-circuit placeholder
14496 case and rename a couple of local variables.
14497
bb1f7929
EB
144982011-03-17 Eric Botcazou <ebotcazou@adacore.com>
14499
14500 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
14501 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
14502 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
14503 (convert): Deal with conversions from a smaller form type specially.
14504
400a2d24
EB
145052011-02-14 Eric Botcazou <ebotcazou@adacore.com>
14506
14507 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
14508 its argument, except for the special -I- switch.
14509
c26bc3ad
GP
145102011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
14511
0bad0e23
EB
14512 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
14513 "Ada Issues".
c26bc3ad 14514
07b8e910
EB
145152011-02-08 Eric Botcazou <ebotcazou@adacore.com>
14516
14517 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
14518
31a5a547
EB
145192011-02-03 Eric Botcazou <ebotcazou@adacore.com>
14520
14521 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
14522 GNAT_FORMAL.
14523 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
14524 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
14525 instead of GNAT_FORMAL. Protect the expression against multiple uses.
14526 Do not generate the check directly, instead instantiate the template
14527 check present in the descriptor.
14528 (make_descriptor_field): Move around.
14529 (build_vms_descriptor32): Build a template check in the POINTER field.
14530 (build_vms_descriptor): Remove useless suffixes.
14531 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
14532
dcf25f59
EB
145332011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14534
14535 PR bootstrap/47467
14536 * targext.c: Include target files if IN_RTS is defined.
14537
0418e131
RG
145382011-01-26 Richard Guenther <rguenther@suse.de>
14539
14540 PR bootstrap/47467
14541 * targext.c: Include config.h.
14542 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
14543 dependency.
14544
c6eecbd8 145452011-01-04 Pascal Obry <obry@adacore.com>
2c7f9cc0 14546 Eric Botcazou <ebotcazou@adacore.com>
c6eecbd8
PO
14547
14548 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
14549
2d3c7e4f
EB
145502011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14551
14552 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
14553 end-of-case on the end label and its associated gotos, if any.
14554
0394741f
EB
145552011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14556
14557 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
14558 expressions of the parameter cache within the statement group of
14559 the CICO mechanism.
14560
2a02d090 145612011-01-04 Olivier Hainque <hainque@adacore.com>
2c7f9cc0 14562 Eric Botcazou <ebotcazou@adacore.com>
2a02d090
OH
14563
14564 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
14565 (set_end_locus_from_node): New function.
14566 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
14567 make and the function end_locus.
14568 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
14569 for the elaboration subprogram.
14570 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
14571 set the end_locus of the expression as well.
14572
89f5e978
EB
145732011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14574
14575 PR ada/47131
14576 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
14577 variables that are referenced in exception handlers volatile.
14578
14579
ad41bd84 14580\f
797103eb 14581Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
14582
14583Copying and distribution of this file, with or without modification,
14584are permitted in any medium without royalty provided the copyright
14585notice and this notice are preserved.