]> gcc.gnu.org Git - gcc.git/blob - gcc/ada/ChangeLog
3e9e7ea45cd6e8afeca5fb671fe883f3dd6ad1ad
[gcc.git] / gcc / ada / ChangeLog
1 2011-11-20 Eric Botcazou <ebotcazou@adacore.com>
2
3 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Adjust
4 call to components_to_record.
5 (components_to_record): Add FIRST_FREE_POS parameter. For the variant
6 part, reuse enclosing union even if there is a representation clause
7 on the Unchecked_Union. If there is a variant part, compute the new
8 first free position, if any. Adjust call to self. Use a single field
9 directly only if it hasn't got a representation clause or is placed at
10 offset zero. Create the variant part at offset 0 if all the fields
11 down to this level have a rep clause. Do not chain the variant part
12 immediately and adjust downstream.
13 Do not test ALL_REP before moving the fields without rep clause to the
14 previous level. Call create_rep_part to create the REP part and force
15 a minimum size on it if necessary. Do not chain it immediately.
16 Create a fake REP part if there are fields without rep clause that need
17 to be laid out starting from FIRST_FREE_POS.
18 At the end, chain the REP part and then the variant part.
19 (create_rep_part): New function.
20 (get_rep_part): Minor tweak.
21 * gcc-interface/utils.c (tree_code_for_record_type): Minor tweak.
22
23 2011-11-18 Iain Sandoe <iains@gcc.gnu.org>
24
25 PR target/50678
26 * init.c (__gnat_error_handler) [Darwin]: Move workaround to the
27 bug filed as radar #10302855 from __gnat_error_handler to...
28 (__gnat_adjust_context_for_raise) [Darwin]: ...here. New function.
29 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE) [Darwin]: Define.
30
31 2011-11-18 Tristan Gingold <gingold@adacore.com>
32 Iain Sandoe <iains@gcc.gnu.org>
33
34 PR target/49992
35 * mlib-tgt-specific-darwin.adb (Archive_Indexer_Options): Remove.
36 * gcc-interface/Makefile.in (darwin): Remove ranlib special-casing.
37
38 2011-11-12 Iain Sandoe <iains@gcc.gnu.org>
39
40 * gcc-interface/Makefile.in (stamp-gnatlib-$(RTSDIR)): Don't link
41 s-oscons.ads.
42 (OSCONS_CPP, OSCONS_EXTRACT): New.
43 (./bldtools/oscons/xoscons): New target.
44 ($(RTSDIR)/s-oscons.ads): Likewise.
45 (gnatlib): Depend on $(RTSDIR)/s-oscons.ads.
46 * gcc-interface/Make-lang.in (ada/s-oscons.ads) Remove as dependency.
47 * Make-generated.in: Remove machinery to generate xoscons and
48 ada/s-oscons.ads.
49
50 2011-11-10 Eric Botcazou <ebotcazou@adacore.com>
51
52 * fe.h (Serious_Errors_Detected): New macro.
53 * gcc-interface/gigi.h (build_atomic_load): Declare.
54 (build_atomic_store): Likewise.
55 * gcc-interface/trans.c (atomic_sync_required_p): New predicate.
56 (call_to_gnu): Add ATOMIC_SYNC parameter. Use local variable.
57 Build an atomic load for an In or In Out parameter if needed.
58 Build an atomic store for the assignment of an Out parameter if needed.
59 Build an atomic store to the target if ATOMIC_SYNC is true.
60 (present_in_lhs_or_actual_p): New predicate.
61 (gnat_to_gnu) <N_Identifier>: Build an atomic load if needed.
62 <N_Explicit_Dereference>: Likewise.
63 <N_Indexed_Component>: Likewise.
64 <N_Selected_Component>: Likewise.
65 <N_Assignment_Statement>: Adjust call to call_to_gnu.
66 Build an atomic store to the LHS if needed.
67 <N_Function_Call>: Adjust call to call_to_gnu.
68 * gcc-interface/utils2.c: Include toplev.h.
69 (resolve_atomic_size): New static function.
70 (build_atomic_load): New function.
71 (build_atomic_store): Likewise.
72 * gcc-interface/Make-lang.in (ada/utils2.o): Add toplev.h.
73
74 2011-11-07 Olivier Hainque <hainque@adacore.com>
75
76 * sigtramp-ppcvxw.c: Add general comments.
77 (CFI_COMMON_REGS): Remove rule for r1, as in other unwinders. Add
78 rules for r2 to r13, plus CTR and XER.
79 (CFA_REG): New, register number used to hold the local CFA.
80 (CFI_DEF_CFA, SIGTRAMP_BODY): Use it.
81 Make that 15, not 14, with documentation.
82 (TCR): Undef before definition, preventing conflict with reg number in
83 VxWorks headers.
84
85 2011-11-07 Robert Dewar <dewar@adacore.com>
86
87 * exp_util.ads, exp_alfa.adb, a-cohama.adb, a-cohama.ads, sem_ch4.adb,
88 aspects.ads, exp_ch8.adb, exp_ch8.ads, atree.ads: Minor reformatting.
89 * gcc-interface/Make-lang.in: Update dependencies.
90
91 2011-11-07 Ed Schonberg <schonberg@adacore.com>
92
93 * exp_ch6.adb: A tagged type is a legal actual for an aliased
94 formal.
95
96 2011-11-07 Pascal Obry <obry@adacore.com>
97
98 * g-socket.adb, g-socket.ads: Minor reformatting.
99
100 2011-11-07 Robert Dewar <dewar@adacore.com>
101
102 * sem_res.adb (Resolve_Actuals): Minor error message improvement.
103
104 2011-11-07 Robert Dewar <dewar@adacore.com>
105
106 * gnat_ugn.texi: Add discussion of default mode handling of
107 source representation with no -gnatW option given, in particular
108 noting that NEL (next line) is not recognized in this context.
109
110 2011-11-07 Yannick Moy <moy@adacore.com>
111
112 * sem_util.adb (Note_Possible_Modification): In Alfa mode,
113 generate a reference for a modification even when the modification
114 does not come from source.
115
116 2011-11-07 Ed Schonberg <schonberg@adacore.com>
117
118 * exp_ch5.adb (Expand_Iterator_Loop): For the "of" iterator form,
119 use the indexing attributes rather than the Element function,
120 to obtain variable references.
121 * sem_ch4.adb (Try_Container_Indexing): Code cleanup. Use
122 Find_Aspect rather than iterating over representation
123 items. Improve error message.
124 * a-cohama.adb, a-cohama.ads Update to latest RM, with two versions
125 of Reference functions.
126
127 2011-11-07 Yannick Moy <moy@adacore.com>
128
129 * sem_util.adb (Unique_Entity): For a parameter on a subprogram
130 body that has a corresponding parameter on the subprogram
131 declaration, define the unique entity as being the declaration
132 one.
133
134 2011-11-07 Ed Schonberg <schonberg@adacore.com>
135
136 * sem_ch6.adb (Analyze_Return_Type): In Ada 2012 mode, if the
137 return type of a function is the class-wide type of an incomplete
138 type T, T can be a Taft-amendment type and does not have to be
139 completed in the current private part.
140
141 2011-11-07 Ed Schonberg <schonberg@adacore.com>
142
143 * aspects.ads (Inherited_Aspect): Map that indicates type aspects
144 that are inherited by default, and apply to the class-wide type
145 as well.
146 * aspects.adb (Find_Aspect): If the entity is class-wide and the
147 aspect is inherited, use the aspect of the specific type.
148
149 2011-11-07 Hristian Kirtchev <kirtchev@adacore.com>
150
151 * exp_alfa.adb: Remove with and use clause for
152 Exp_Ch8. Add with and use clause for Exp_Util.
153 Remove local constant Disable_Processing_Of_Renamings.
154 (Expand_Alfa_N_Object_Renaming_Declaration): The expansion of
155 object renamings has been reenabled.
156 (Expand_Possible_Renaming):
157 The expansion of identifier and expanded names has been
158 reenabled. Perform the substitutions only for entities that
159 denote an object.
160 * exp_ch8.ads, exp_ch8.adb (Evaluate_Name): Moved to Exp_Util.
161 * exp_util.adb (Evaluate_Name): Moved from Exp_Ch8.
162 (Remove_Side_Effects): Alphabetize local variables. Add a guard
163 to avoid the infinite expansion of an expression in Alfa mode. Add
164 processing for function calls in Alfa mode.
165 * exp_util.ads (Evaliate_Name): Moved from Exp_Ch8.
166
167 2011-11-07 Ed Schonberg <schonberg@adacore.com>
168
169 * freeze.adb (Freeze_Entity): If the entity is an access to
170 subprogram whose designated type is itself a subprogram type,
171 its own return type must be decorated with size information.
172
173 2011-11-04 Arnaud Charlet <charlet@adacore.com>
174
175 * gcc-interface/Make-lang.in: Update dependencies.
176
177 2011-11-04 Robert Dewar <dewar@adacore.com>
178
179 * sprint.adb (Sprint_Node_Actual, case Qualified_Expression):
180 Avoid junk semicolon after argument of machine code Asm operand.
181
182 2011-11-04 Robert Dewar <dewar@adacore.com>
183
184 * exp_ch11.adb (Generate_Push_Pop): Inhibit push/pop nodes in
185 CodePeer mode or if restriction No_Exception_Handlers is present.
186 * exp_ch6.adb (Expand_N_Subprogram_Body): (Inhibit push/pop
187 nodes in CodePeer mode or if restriction No_Exception_Handlers
188 is present.
189
190 2011-11-04 Robert Dewar <dewar@adacore.com>
191
192 * s-tassta.adb, atree.ads, errout.adb, sinput.adb: Minor reformatting.
193
194 2011-11-04 Ed Schonberg <schonberg@adacore.com>
195
196 * sem_ch6.adb (Analyze_Subprogram_Specification): The
197 specification is legal if it is a function that returns an
198 abstract type, if it comes from an attribute renaming of a stream
199 attribute of an abstract type.
200
201 2011-11-04 Gary Dismukes <dismukes@adacore.com>
202
203 * exp_util.adb (Is_Possibly_Unaligned_Object): In case of indexed
204 components, check whether recursively check whether the prefix
205 denotes an unaligned object.
206
207 2011-11-04 Ed Schonberg <schonberg@adacore.com>
208
209 * sem_prag.adb (Analyze_Pragma, case Debug): The argument of
210 the pragma is legal if it is an expanded name that denotes a
211 procedure that be can called without parameters.
212
213 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
214
215 * gnat_ugn.texi (Performance Considerations) <Vectorization
216 of loops>: New sub-section. <Other Optimization Switches>:
217 Minor tweak.
218
219 2011-11-04 Robert Dewar <dewar@adacore.com>
220
221 * gnat_rm.texi: Minor reformatting.
222
223 2011-11-04 Matthew Heaney <heaney@adacore.com>
224
225 * a-convec.adb, a-coinve.adb, a-cobove.adb (Merge): Raise PE
226 when Target and Source denote same non-empty object
227 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb (Merge): Ditto
228
229 2011-11-04 Robert Dewar <dewar@adacore.com>
230
231 * exp_attr.adb: Minor reformatting.
232
233 2011-11-04 Ed Schonberg <schonberg@adacore.com>
234
235 * exp_ch5.adb (Expand_Assign_Record): Do not generate a
236 discriminant assignment within an initialization proc if the
237 record is an unchecked union, as it can only come from the
238 initialization of an unchecked union component.
239
240 2011-11-04 Robert Dewar <dewar@adacore.com>
241
242 * gnat_ugn.texi: Minor reformatting.
243
244 2011-11-04 Robert Dewar <dewar@adacore.com>
245
246 * par-labl.adb (Rewrite_As_Loop): Generate info msg rather than
247 warning message.
248
249 2011-11-04 Robert Dewar <dewar@adacore.com>
250
251 * exp_ch4.adb: Minor code reorganization (remove junk obsolete
252 var Save_Space).
253
254 2011-11-04 Hristian Kirtchev <kirtchev@adacore.com>
255
256 * exp_alfa.adb: Add local constant
257 Disable_Processing_Of_Renamings;
258 (Expand_Alfa_N_Object_Renaming_Declaration): Disable
259 the name evaluation of object renamings for now.
260 (Expand_Potential_Renaming): Do not perform the substitution
261 for now.
262 * exp_util.adb (Remove_Side_Effects): Remove processing for
263 functions with side effects in Alfa mode.
264
265 2011-11-04 Gary Dismukes <dismukes@adacore.com>
266
267 * bindgen.adb (Gen_Elab_Calls): In the case
268 of the AAMP target, set elaboration entities to 1 rather than
269 incrementing.
270
271 2011-11-04 Ed Schonberg <schonberg@adacore.com>
272
273 * sem_ch10.adb (Install_Limited_With_Unit): To establish the
274 proper entities on the ancestors of a child unit that appear
275 in a limited_with clause, follow the unit links because the
276 units are not analyzed and scope information is incomplete.
277
278 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
279
280 * exp_ch4.adb (Expand_N_Selected_Component): Refine code
281 setting the Atomic_Sync_Required flag to detect one more case.
282 * exp_util.adb (Activate_Atomic_Synchronization): Refine code
283 setting the Atomic_Sync_Required flag to exclude more cases,
284 depending on the parent of the node to be examined.
285
286 2011-11-04 Bob Duff <duff@adacore.com>
287
288 * g-excact.adb: Minor: use named notation.
289
290 2011-11-04 Ed Schonberg <schonberg@adacore.com>
291
292 * sem_ch5.adb: Improve error messages for illegal iterators.
293
294 2011-11-04 Hristian Kirtchev <kirtchev@adacore.com>
295
296 * exp_alfa.adb: Add with and use clauses for Exp_Ch8 and
297 Sem_Util.
298 (Expand_Alfa): Alphabetize cases on first choice. Add
299 processing for object renaming declarations, identifiers and
300 expanded names.
301 (Expand_Alfa_N_In): Remove useless return.
302 (Expand_Alfa_N_Object_Renaming_Declaration): New routine.
303 (Expand_Potential_Renaming): New routine.
304 * exp_ch8.adb (Evaluate_Name): Moved to the top level.
305 (Expand_N_Object_Declaration): Alphabetize local variables. Move
306 Evaluate_Name out to the top level.
307 * exp_ch8.ads (Evaluate_Name): Moved from body to package spec.
308 * exp_util.adb (Remove_Side_Effects): Add processing for
309 functions with side effects in Alfa mode.
310
311 2011-11-04 Hristian Kirtchev <kirtchev@adacore.com>
312
313 * gnat_rm.texi: Add entries for
314 restrictions No_Relative_Delay, No_Requeue_Statements and
315 No_Stream_Optimizations.
316
317 2011-11-04 Ed Schonberg <schonberg@adacore.com>
318
319 * sem_ch4.adb: Set type of entity in prefixed call, for
320 completeness in a generic context.
321
322 2011-11-04 Yannick Moy <moy@adacore.com>
323
324 * sem_prag.adb: Minor refactoring (renaming of a parameter).
325
326 2011-11-04 Robert Dewar <dewar@adacore.com>
327
328 * atree.ads: Minor reformatting.
329
330 2011-11-04 Robert Dewar <dewar@adacore.com>
331
332 * checks.adb (Atomic_Synchronization_Disabled): Check -gnatd.d
333 and -gnatd.e here
334 * exp_ch2.adb (Expand_Entity_Reference): Use
335 Activate_Atomic_Synchronization
336 * exp_ch4.adb (Expand_N_Explicit_Dereference): Use
337 Activate_Atomic_Synchronization (Expand_N_Indexed_Compoonent):
338 Activate_Atomic_Synchronization (Expand_N_Selected_Component):
339 Use Activate_Atomic_Synchronization
340 * exp_util.ads, exp_util.adb (Activate_Atomic_Synchronization): New
341 procedure.
342 * sinfo.ads, sinfo.adb (Atomic_Sync_Required): Can now apply to
343 N_Selected_Component node
344
345 2011-11-04 Robert Dewar <dewar@adacore.com>
346
347 * sem_prag.adb, atree.ads, prj-env.adb, prj-env.ads: Minor reformatting.
348
349 2011-11-04 Yannick Moy <moy@adacore.com>
350
351 * atree.adb, atree.ads (Set_Original_Node): New set procedure.
352 * sem_ch13.adb (Analyze_Aspect_Specifications/Pre_Post_Aspects):
353 In ASIS mode, no splitting of aspects between conjuncts.
354 (Analyze_Aspect_Specifications/Aspect_Test_Case): Make pragma
355 expressions refer to the original aspect expressions through
356 the Original_Node link. This is used in semantic analysis for
357 ASIS mode, so that the original expression also gets analyzed.
358 * sem_prag.adb (Preanalyze_TC_Args,
359 Check_Precondition_Postcondition,
360 Analyze_Pragma/Pragma_Test_Case): In ASIS mode, for a pragma
361 generated from a source aspect, also analyze the original aspect
362 expression.
363 (Check_Expr_Is_Static_Expression): New procedure
364 similar to existing procedure Check_Arg_Is_Static_Expression,
365 except called on expression inside pragma.
366
367 2011-11-04 Tristan Gingold <gingold@adacore.com>
368
369 * prj-env.adb, prj-env.ads (Find_Name_In_Path): New function, from
370 Find_Project.Try_Path_Name.
371 (Find_Project): Use Find_Name_In_Path to implement Try_Path_Name.
372
373 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
374
375 * s-atocou.ads (Atomic_Counter): Remove redundant pragma Volatile.
376
377 2011-11-04 Pascal Obry <obry@adacore.com>
378
379 * projects.texi: Add short description for qualifiers aggregate
380 and aggregate library.
381
382 2011-11-04 Matthew Heaney <heaney@adacore.com>
383
384 * Makefile.rtl, impunit.adb: Added a-cogeso.ad[sb]
385 * a-cgaaso.adb: Replaced implementation with instantiation
386 of Generic_Sort.
387 * a-cogeso.ad[sb] This is the new Ada 2012 unit
388 Ada.Containers.Generic_Sort
389
390 2011-11-04 Robert Dewar <dewar@adacore.com>
391
392 * exp_ch2.adb (Expand_Entity_Reference): Do not set
393 Atomic_Sync_Required for the case of a prefix of an attribute.
394 * exp_ch4.adb (Expand_N_Explicit_Dereference): May require
395 atomic synchronization
396 (Expand_N_Indexed_Component): Ditto.
397 (Expand_B_Selected_Component): Ditto.
398 * sem_prag.adb (Process_Suppress_Unsuppress):
399 Disable/Enable_Atomic_Synchronization can now occur for array
400 types with pragma Atomic_Components.
401 * sinfo.ads, sinfo.adb (Atomic_Sync_Required): Can now occur on
402 N_Explicit_Dereference nodes and on N_Indexed_Component nodes.
403
404 2011-11-04 Gary Dismukes <dismukes@adacore.com>
405
406 * gnat_ugn.texi: Editorial corrections for gnattest section.
407
408 2011-11-04 Robert Dewar <dewar@adacore.com>
409
410 * sem_prag.adb: Minor reformatting.
411 * gnat_rm.texi: Update documentation for pragma Warnings (Off,
412 "***") usage.
413 * exp_ch2.adb (Expand_Entity_Reference): Only set
414 Atomic_Sync_Required on entities that are variables. Doesn't
415 make any sense on anything else.
416
417 2011-11-04 Robert Dewar <dewar@adacore.com>
418
419 * exp_ch2.adb (Expand_Entity_Reference): Extend handling of
420 atomic sync to type case.
421 * sem_prag.adb (Process_Suppress_Unsuppress): Atomic Sync can
422 apply to types.
423
424 2011-11-04 Robert Dewar <dewar@adacore.com>
425
426 * sem_warn.adb (Warn_On_Useless_Assignment): More accurate test
427 for call vs assign.
428 * gcc-interface/Make-lang.in: Update dependencies.
429
430 2011-11-04 Robert Dewar <dewar@adacore.com>
431
432 * sem_prag.adb: Detect more cases of Long_Float inconsistencies at
433 compile time.
434
435 2011-11-04 Matthew Heaney <heaney@adacore.com>
436
437 * Makefile.rtl, impunit.adb: Added a-sfecin.ads,
438 * a-sfhcin.ads, a-sflcin.ads, a-sbecin.ad[sb], a-sbhcin.ad[sb],
439 a-sblcin.ad[sb], a-suecin.ad[sb], a-suhcin.ad[sb], a-sulcin.ad[sb]
440 * a-sfecin.ads, a-sfhcin.ads, a-sflcin.ads, a-sbecin.ad[sb],
441 a-sbhcin.ad[sb], a-sblcin.ad[sb], a-suecin.ad[sb], a-suhcin.ad[sb],
442 a-sulcin.ad[sb]: New files.
443
444 2011-11-04 Geert Bosch <bosch@adacore.com>
445
446 * i-forbla-unimplemented.ads, s-gecola.adb, s-gecola.ads,
447 s-gerebl.adb, s-gerebl.ads, i-forbla.adb, i-forbla.ads,
448 i-forlap.ads, i-forbla-darwin.adb, s-gecobl.adb, s-gecobl.ads,
449 s-gerela.adb, s-gerela.ads: Remove partial interface to BLAS/LAPACK.
450 * gcc-interface/Makefile.in: Remove libgnala and related objects.
451
452 2011-11-04 Matthew Heaney <heaney@adacore.com>
453
454 * a-cdlili.ad[sb], a-cidlli.ad[sb], a-coorse.ad[sb], a-ciorse.ad[sb],
455 a-coorma.ad[sb], a-ciorma.ad[sb], a-coormu.ad[sb], a-ciormu.ad[sb],
456 a-cohama.ad[sb], a-cihama.ad[sb], a-cohase.ad[sb], a-cihase.ad[sb],
457 a-convec.ad[sb], a-coinve.ad[sb] (Assign, Copy): New operations
458 added to package.
459
460 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
461
462 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Do not assert
463 that the type of the parameters isn't dummy in type_annotate_only mode.
464
465 2011-11-04 Robert Dewar <dewar@adacore.com>
466
467 * sem_ch12.adb: Minor reformatting
468
469 2011-11-04 Gary Dismukes <dismukes@adacore.com>
470
471 * bindgen.adb (Gen_Elab_Calls): In the case of the AAMP target,
472 initialize elaboration entities to zero when specs are processed.
473
474 2011-10-28 Iain Sandoe <iains@gcc.gnu.org>
475 Eric Botcazou <ebotcazou@adacore.com>
476
477 PR target/50678
478 * init.c (__gnat_error_handler) [Darwin]: Apply a work-around to the
479 bug filed as radar #10302855 (inconsistent unwind data for sigtramp).
480
481 2011-10-28 Eric Botcazou <ebotcazou@adacore.com>
482
483 PR ada/50842
484 * gcc-interface/Makefile.in (SYMDEPS): Delete.
485 (LIBICONV): New variable.
486 (LIBICONV_DEP): Likewise.
487 (LIBS): Add $(LIBICONV).
488 (LIBDEPS): Add $(LIBICONV_DEP).
489 (EXTRA_GNATTOOLS_OBJS): Merge into...
490 (TOOLS_LIBS): ...this. Add $(LIBICONV).
491
492 2011-10-26 Eric Botcazou <ebotcazou@adacore.com>
493
494 * gcc-interface/decl.c (elaborate_expression_1): Add EXPR_PUBLIC_P local
495 variable. Always create the elaboration variable, if any, as constant.
496
497 2011-10-26 Eric Botcazou <ebotcazou@adacore.com>
498
499 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Try to
500 make a packable type for fields of union types as well.
501 <is_type>: Use RECORD_OR_UNION_TYPE_P predicate.
502 (gnat_to_gnu_component_type): Try to make a packable type for fields
503 of union types as well.
504 (make_packable_type): Use RECORD_OR_UNION_TYPE_P predicate.
505 (maybe_pad_type): Try to make a packable type for fields of union types
506 as well.
507 (gnat_to_gnu_field): Likewise.
508 (is_variable_size): Use RECORD_OR_UNION_TYPE_P predicate.
509 (set_rm_size): Likewise.
510 (rm_size): Likewise.
511 * gcc-interface/misc.c (gnat_type_max_size): Likewise.
512 * gcc-interface/trans.c (add_decl_expr): Likewise.
513 * gcc-interface/utils.c (finish_record_type): Likewise.
514 * gcc-interface/utils2.c (build_simple_component_ref): Likewise.
515
516 2011-10-26 Eric Botcazou <ebotcazou@adacore.com>
517
518 * gcc-interface/decl.c (gnat_to_gnu_field): Always check components
519 declared as atomic. Move around conditionally executed code.
520
521 2011-10-24 Robert Dewar <dewar@adacore.com>
522
523 * sem.adb (Initialize): Fix bug that blew up if called a second time.
524
525 2011-10-24 Robert Dewar <dewar@adacore.com>
526
527 * tb-alvxw.c, tracebak.c, expect.c, initflt.c, tb-alvms.c,
528 tb-ivms.c, tb-gcc.c: Update headers to GPL 3.
529
530 2011-10-24 Robert Dewar <dewar@adacore.com>
531
532 * sem_prag.adb (Analyze_Pragma, case Debug): Give proper pragma
533 name in error msg.
534
535 2011-10-24 Hristian Kirtchev <kirtchev@adacore.com>
536
537 * gnat_rm.texi: Add an entry for restriction No_Finalization.
538
539 2011-10-24 Ed Schonberg <schonberg@adacore.com>
540
541 * sem_ch12.adb (Insert_Freeze_Node_For_Instance): If the
542 current instance is within the one that contains the generic,
543 the freeze node for the current one must appear in the current
544 declarative part. Ditto if the current instance is within another
545 package instance. In both of these cases the freeze node of the
546 previous instance is not relevant.
547
548 2011-10-24 Gary Dismukes <dismukes@adacore.com>
549
550 * switch-m.adb (Normalize_Compiler_Switches): Add recognition
551 of AAMP-specific switches -univ and -aamp_target.
552
553 2011-10-24 Robert Dewar <dewar@adacore.com>
554
555 * a-tienau.adb (Put): Deal properly with limited line length.
556
557 2011-10-24 Robert Dewar <dewar@adacore.com>
558
559 * sem_warn.adb, sem_ch12.adb: Minor reformatting.
560
561 2011-10-24 Tristan Gingold <gingold@adacore.com>
562
563 * gcc-interface/Makefile.in: Use GNU ld switches to generate map files
564 on AIX.
565
566 2011-10-24 Ed Schonberg <schonberg@adacore.com>
567
568 * sem_ch12.adb (Earlier): make available globally. If both
569 nodes have the same sloc, the freeze node that does not come
570 from source is the later one.
571 (True_Parent): Make available globally.
572 (Previous_Instance): Subsidiary of
573 Insert_Freeze_Node_For_Instance, to check whether the generic
574 parent of the current instance is declared within a previous
575 instance in the same unit or declarative part, in which case the
576 freeze nodes of both instances must appear in order to prevent
577 elaboration problems in gigi.
578 * sem_ch12.adb (Insert_Freeze_Node_For_Instance): A stub is a
579 freeze point, and the freeze node of a preceding instantiation
580 must be inserted before it.
581
582 2011-10-24 Robert Dewar <dewar@adacore.com>
583
584 * checks.ads, checks.adb: Add handling of Synchronization_Check
585 * debug.adb: Add doc for -gnatd.d and -gnatd.e (disable/enable
586 atomic sync).
587 * exp_ch2.adb (Expand_Entity_Reference): Set Atomic_Sync_Required
588 flag Minor code reorganization.
589 * opt.ads (Warn_On_Atomic_Synchronization): New switch.
590 * par-prag.adb: Add dummy entries for pragma
591 Disable/Enable_Atomic_Synchronization.
592 * sem_prag.adb (Process_Suppress_Unsuppress): Handle
593 case of Atomic_Synchronization specially (not suppressed
594 by All_Checks, cannot be set from Source).
595 (Pragma Disable/Enable_Atomic_Synchronization): Add processing.
596 * sinfo.ads, sinfo.adb: Add Atomic_Sync_Required flag
597 * snames.ads-tmpl: Add entry for Atomic_Synchronization Add
598 entry for pragma Disable/Enable_Atomic_Synchronization
599 * switch-c.adb: The -gnatp switch does not disable
600 Atomic_Synchronization Add -gnatep switch to disable
601 Atomic_Synchronization.
602 * types.ads: Add entry for Synchronization_Check
603 * usage.adb: Add line for -gnated switch
604 * warnsw.adb: Settings for Warn_On_Atomic_Synchronization
605
606 2011-10-24 Geert Bosch <bosch@adacore.com>
607
608 * s-gearop.adb (Back_Substitute): Avoid overflow if matrix bounds start
609 at Integer'First.
610
611 2011-10-24 Robert Dewar <dewar@adacore.com>
612
613 * sem_ch12.adb, s-gearop.adb: Minor reformatting.
614
615 2011-10-24 Robert Dewar <dewar@adacore.com>
616
617 * warnsw.adb: Add some missing warnings to Set_GNAT_Mode_Warnings.
618 * warnsw.ads: Add comments to Set_GNAT_Mode_Warnings.
619
620 2011-10-24 Emmanuel Briot <briot@adacore.com>
621
622 * prj-proc.adb (Process_Expression_Variable_Decl): No special
623 handling for Project_Path unless it is an attribute.
624
625 2011-10-24 Javier Miranda <miranda@adacore.com>
626
627 * sem_ch12.adb (Check_Hidden_Primitives): New subprogram.
628 (Install_Hidden_Primitives): New subprogram.
629 (Restore_Hidden_Primitives): New subprogram.
630 (Analyze_Formal_Package_Declaration,
631 Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
632 Invoke Check_Hidden_Primitives after every call to
633 Analyze_Associations, and invoke Restore_Hidden_Primitives to
634 restore their visibility after processing the instantiation.
635 (Instantiate_Package_Body): Install visible primitives before
636 analyzing the instantiation and uninstall them to restore their
637 visibility when the instantiation has been analyzed.
638 * sem_util.ads, sem_util.adb (Add_Suffix): New subprogram
639 (Remove_Suffix): New subprogram
640 * sem_ch3.adb (Derive_Subprogram): When handling
641 a derived subprogram for the instantiation of a formal derived
642 tagged type, inherit the dispatching attributes from the actual
643 subprogram (not from the parent type).
644
645 2011-10-24 Vasiliy Fofanov <fofanov@adacore.com>
646
647 * gnat_ugn.texi: Document explicit use of XDECGNAT library.
648
649 2011-10-24 Hristian Kirtchev <kirtchev@adacore.com>
650
651 * exp_ch3.adb (Build_Assignment): Add local constant N_Loc and
652 update its uses.
653 (Build_Discriminant_Assignments): Add local variable D_Loc and update
654 its uses.
655 (Build_Init_Statements): Add local variables Comp_Loc, Decl_Loc and
656 Var_Loc and update their uses.
657 (Build_Record_Init_Proc): Code reformatting.
658 (Increment_Counter): Add formal parameter Loc.
659 (Make_Counter): Add formal parameter Loc.
660
661 2011-10-24 Eric Botcazou <ebotcazou@adacore.com>
662
663 * sem_disp.adb (Covers_Some_Interface): Fix typo.
664
665 2011-10-24 Matthew Heaney <heaney@adacore.com>
666
667 * a-cuprqu.adb, a-cbprqu.adb (Dequeue_Only_High_Priority): Fix sense
668 of predicate.
669
670 2011-10-24 Yannick Moy <moy@adacore.com>
671
672 * sem_ch13.adb (Analyze_Aspect_Specifications/Aspect_Test_Case):
673 Translate arguments in positional notation into pragma argument
674 association arguments for the generated pragma.
675
676 2011-10-24 Arnaud Charlet <charlet@adacore.com>
677
678 * exp_ch5.adb: Fix minor typo.
679
680 2011-10-24 Ed Schonberg <schonberg@adacore.com>
681
682 * sem_ch3.adb (Is_Visible_Component): Refine predicate for
683 the case of a component reference in an instance body, when the
684 enclosing type is private.
685
686 2011-10-24 Sergey Rybin <rybin@adacore.com frybin>
687
688 * gnat_ugn.texi: For gnatelim, move the note about using the GNAT
689 driver for getting the project support into gnatelim section.
690
691 2011-10-24 Robert Dewar <dewar@adacore.com>
692
693 * gnat_rm.texi: Minor correction to documentation on address clause.
694
695 2011-10-24 Hristian Kirtchev <kirtchev@adacore.com>
696
697 * s-finmas.adb (Attach): Synchronize and call the unprotected version.
698 (Attach_Unprotected): New routine.
699 (Delete_Finalize_Address): Removed.
700 (Delete_Finalize_Address_Unprotected): New routine.
701 (Detach): Synchronize and call the unprotected version.
702 (Detach_Unprotected): Remove locking.
703 (Finalize): Add various comment on synchronization. Lock the critical
704 region and call the unprotected versions of routines.
705 (Finalize_Address): Removed.
706 (Finalize_Address_Unprotected): New routine.
707 (Set_Finalize_Address): Synchronize and call
708 the unprotected version.
709 (Set_Finalize_Address_Unprotected): New routine.
710 (Set_Heterogeneous_Finalize_Address): Removed.
711 (Set_Heterogeneous_Finalize_Address_Unprotected): New routine.
712 (Set_Is_Heterogeneous): Add comment on synchronization and
713 locking.
714 * s-finmas.ads: Flag Finalization_Started is no longer atomic
715 because synchronization uses task locking / unlocking.
716 (Attach): Add comment on usage.
717 (Attach_Unprotected): New routine.
718 (Delete_Finalize_Address): Renamed to
719 Delete_Finalize_Address_Unprotected.
720 (Detach): Add comment on usage.
721 (Detach_Unprotected): New routine.
722 (Finalize_Address): Renamed to Finalize_Address_Unprotected.
723 (Set_Finalize_Address): Add comment on usage.
724 (Set_Finalize_Address_Unprotected): New routine.
725 (Set_Heterogeneous_Finalize_Address): Renamed to
726 Set_Heterogeneous_Finalize_Address_Unprotected.
727 * s-stposu.adb (Allocate_Any_Controlled): Add local variable
728 Allocation_Locked. Add various comments on synchronization. Lock
729 the critical region and call the unprotected version of
730 routines.
731 (Deallocate_Any_Controlled): Add various comments on
732 synchronization. Lock the critical region and call the unprotected
733 version of routines.
734
735 2011-10-24 Ed Schonberg <schonberg@adacore.com>
736
737 * sem_ch3.adb (Set_Fixed_Range): The bounds of a fixed point type
738 are universal and must carry the corresponding type.
739 * sem_eval.adb (Check_Non_Static_Context): If the type of the
740 expression is universal real, as may be the case for a fixed point
741 expression with constant operands in the context of a conversion,
742 there is nothing to check.
743 * s-finmas.adb: Minor reformatting
744
745 2011-10-23 Eric Botcazou <ebotcazou@adacore.com>
746
747 * gcc-interface/decl.c (create_concat_name): Add explicit cast.
748
749 2011-10-20 Eric Botcazou <ebotcazou@adacore.com>
750
751 * gcc-interface/Make-lang.in (GNATLIBFLAGS, GNATLIBCFLAGS, THREAD_KIND,
752 TRACE): Reintroduce.
753 (ada/tracebak.o, ada/targext.o, ada/cio.o, ada/init.o,
754 ada/initialize.o, ada/raise.o): Reintroduce explicit compilation rules.
755
756 2011-10-20 Eric Botcazou <ebotcazou@adacore.com>
757
758 * gcc-interface/trans.c (lhs_or_actual_p): New predicate.
759 (unchecked_conversion_nop): Use it.
760 (gnat_to_gnu): Likewise.
761
762 2011-10-20 Eric Botcazou <ebotcazou@adacore.com>
763
764 * back_end.adb (Call_Back_End): Pass the maximum logical line number
765 instead of the maximum physical line number to gigi.
766 * gcc-interface/trans.c (Sloc_to_locus): Cope with line zero.
767
768 2011-10-16 Tom Tromey <tromey@redhat.com>
769 Dodji Seketeli <dodji@redhat.com>
770
771 * gcc-interface/trans.c (gigi, Sloc_to_locus): Adjust to use the new
772 public ordinary map interface.
773
774 2011-10-16 Tristan Gingold <gingold@adacore.com>
775
776 * link.c (_AIX): Add support for GNU ld.
777
778 2011-10-16 Fedor Rybin <frybin@adacore.com>
779
780 * gnat_ugn.texi: Fixing gnattest example names in the doc.
781 Adding explanation to additional tests usage.
782
783 2011-10-16 Robert Dewar <dewar@adacore.com>
784
785 * exp_ch6.adb, sem_ch6.adb: Minor reformatting.
786
787 2011-10-16 Eric Botcazou <ebotcazou@adacore.com>
788
789 * a-convec.adb: Fix minor inconsistencies.
790
791 2011-10-16 Matthew Heaney <heaney@adacore.com>
792
793 * a-cusyqu.ads, a-cbsyqu.ads, a-cuprqu.ads, a-cbprqu.ads (package
794 Implementation): Specify pragma Implementation_Defined.
795
796 2011-10-15 Nicolas Roche <roche@adacore.com>
797
798 * gcc-interface/lang-specs.h: Ensure -mrtp switch is passed when using
799 either rtp-smp or ravenscar-cert-rtp runtimes.
800
801 2011-10-15 Bob Duff <duff@adacore.com>
802
803 * exp_ch6.adb (Add_Unconstrained_Actuals_To_Build_In_Place_Call):
804 Do not create a pool formal on unless RE_Root_Storage_Pool_Ptr
805 is available.
806 (Expand_N_Extended_Return_Statement): Do not create a renaming of the
807 build-in-place pool parameter unless RE_Root_Storage_Pool_Ptr is
808 available.
809 (Make_Build_In_Place_Call_In_Allocator): Add the user-defined
810 pool only if RE_Root_Storage_Pool_Ptr is available.
811 (Make_Build_In_Place_Call_In_Object_Declaration): Do not add a
812 pool actual unless RE_Root_Storage_Pool_Ptr is available.
813 * sem_ch6.adb (Create_Extra_Formals): Add build-in-place pool
814 formal only if RE_Root_Storage_Pool_Ptr is available.
815
816 2011-10-15 Matthew Heaney <heaney@adacore.com>
817
818 * a-cusyqu.ads, a-cbsyqu.ads, a-cuprqu.ads, a-cbprqu.ads (Queue
819 type): Specify Priority aspect for protected type.
820
821 2011-10-14 Ed Schonberg <schonberg@adacore.com>
822
823 * exp_disp.adb (Check_Premature_Freezing): If an untagged type
824 is a generic actual, it is a subtype of a type that was frozen
825 by the instantiation, and even if not marked frozen it does not
826 affect the construction of the dispatch table.
827
828 2011-10-14 Robert Dewar <dewar@adacore.com>
829
830 * make.adb, mlib-utl.adb, sem_util.adb, sem_ch4.adb: Minor code
831 reformatting.
832 * s-rident.ads: Add missing Compiler_Unit pragma.
833
834 2011-10-14 Gary Dismukes <dismukes@adacore.com>
835
836 * sem_res.adb: Minor reformatting.
837
838 2011-10-14 Hristian Kirtchev <kirtchev@adacore.com>
839
840 * exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call):
841 Code and comment reformatting. Use BIP_Task_Master
842 when creating a _master.
843 (BIP_Formal_Suffix): Code reformatting. Correct the case for
844 BIP_Task_Master.
845 (Make_Build_In_Place_Call_In_Object_Declaration): Use
846 BIP_Task_Master when creating a reference to the enclosing
847 function's _master formal.
848 (Move_Activation_Chain): Use BIP_Task_Master when creating a reference
849 to the _master.
850 * exp_ch6.ads: Change BIP_Master to BIP_Task_Master.
851 (Needs_BIP_Finalization_Master): Alphabetized.
852 * sem_ch6.adb (Create_Extra_Formals): Update the usage of
853 BIP_Task_Master.
854
855 2011-10-14 Ed Schonberg <schonberg@adacore.com>
856
857 * par-ch6.adb (P_Return_Object_Declaration): In Ada 2012 mode,
858 reject an aliased keyword on the object declaration of an extended
859 return statement. In older versions of the language indicate
860 that this is illegal in the standard.
861
862 2011-10-14 Pascal Obry <obry@adacore.com>
863
864 * sem_util.adb, sem_ch4.adb: Minor reformatting.
865
866 2011-10-14 Ed Schonberg <schonberg@adacore.com>
867
868 * sem_ch13.adb: Recognize properly procedure calls that are
869 transformed into code statements.
870
871 2011-10-14 Vincent Celier <celier@adacore.com>
872
873 * projects.texi: Minor fix in project example.
874
875 2011-10-14 Ed Schonberg <schonberg@adacore.com>
876
877 * sem_util.adb: Return objects are aliased if their type is
878 immutably limited as per AI05-0053.
879
880 2011-10-14 Gary Dismukes <dismukes@adacore.com>
881
882 * exp_ch4.adb (Expand_N_Op_And): Remove Short_Circuit_And_Or
883 expansion code (moved to sem_res) (Expand_N_Op_Or): Remove
884 Short_Circuit_And_Or expansion code (moved to sem_res).
885 * sem_res.adb (Resolve_Logical_Op): Add code to rewrite Boolean
886 "and" and "or" operators as short-circuit "and then" and "or
887 else", when pragma Short_Circuit_And_Or is active.
888
889 2011-10-13 Robert Dewar <dewar@adacore.com>
890
891 * sem_ch9.adb, sem_util.adb, sem_util.ads, exp_ch6.adb, sem_ch4.adb,
892 sem_ch6.adb, exp_ch3.adb: Minor reformatting.
893
894 2011-10-13 Arnaud Charlet <charlet@adacore.com>
895
896 * Makefile.rtl (GNATRTL_NONTASKING_OBJS): Add a-ngcoar.o.
897
898 2011-10-13 Jerome Guitton <guitton@adacore.com>
899
900 * sysdep.c (__gnat_get_task_options): Re-enable VX_SPE_TASK on vThreads
901
902 2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
903
904 * a-convec.ads (Cursor): Minor reformatting.
905 * a-convec.adb (Next): Fix minor inconsistencies.
906 (Previous): Likewise.
907
908 2011-10-13 Ed Schonberg <schonberg@adacore.com>
909
910 * sem_util.ads, sem_util.adb (Available_Full_View_Of_Component):
911 New predicate to determine whether some operations on an array
912 type are available when the full view of its component may differ
913 from the view of the point of the array declaration.
914 * sem_ch4.adb (Find_Equality_Types): Use
915 Available_Full_View_Of_Component.
916 * sem_type.adb (Valid_Boolean_Arg, Valid_Comparison_Arg): Ditto
917
918 2011-10-13 Ed Schonberg <schonberg@adacore.com>
919
920 * sem_ch9.adb: Analyze aspects while discriminants of protected
921 type are visible.
922
923 2011-10-13 Geert Bosch <bosch@adacore.com>
924
925 * Makefile.rtl (GNATRTL_TASKING_OBJECTS): Add
926 a-nlcoar.o, a-nllcar.o, a-nucoar.o and s-gearop.o, as these no
927 longer depend on an external library.
928 * gcc-interface/Makefile.in (GNATRTL_LINEARALGEBRA_OBJS): Remove
929 a-nlcoar.o, a-nllcar.o, a-nucoar.o and s-gearop.o.
930 Update dependencies.
931 * gcc-interface/Make-lang.in: Update dependencies.
932
933 2011-10-13 Cyrille Comar <comar@adacore.com>
934
935 * gnat_ugn.texi: Minor editing.
936
937 2011-10-13 Vincent Celier <celier@adacore.com>
938
939 * projects.texi: Add documentation on packages and attributes
940 that are inherited from a project being extended into the
941 extended project.
942
943 2011-10-13 Hristian Kirtchev <kirtchev@adacore.com>
944
945 * exp_ch3.adb (Build_Master): Rewritten.
946 (Expand_N_Full_Type_Declaration): Reformat the declarative
947 region. Update the call to Build_Master_Renaming.
948 (Expand_Previous_Access_Type): Rewritten.
949 * exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call):
950 Add local constant Result_Subt and update related usage.
951 (Expand_N_Extended_Return_Statement): Add local constant
952 Result_Subt and update related usage.
953 * exp_ch9.adb (Build_Activation_Chain): Rewritten to use the
954 new context detection mechanism.
955 (Build_Class_Wide_Master):
956 Use Insert_Action to add the renaming into the tree.
957 (Build_Master_Entity): Rewritten to use the new context detection
958 mechanism.
959 (Build_Master_Renaming): Add formal parameter Ins_Nod
960 and related usage. Use Insert_Action to add the renaming into the
961 tree.
962 (Find_Enclosing_Context): New subsidiary routine. Rather
963 than relying on enclosing scopes, this routine looks at the
964 tree structure to figure out the proper context for a _master
965 or a _chain. This approach eliminates the issues with transient
966 scopes which have not been converted into blocks.
967 * exp_ch9.ads (Build_Master_Entity): Change parameter profile
968 to better reflect the new usage. Update the related comment.
969 (Build_Master_Renaming): Add formal parameter Ins_Nod. Update
970 the comment on usage.
971 * sem_ch3.adb (Access_Definition): Update the calls to
972 Build_Master_Entity and Build_Master_Renaming.
973 * sem_ch6.adb (Create_Extra_Formals): Add local variable
974 Full_Subt. Code reformatting.
975 * sem_util.adb (Is_Iterator): Alphabetized.
976 (Is_LHS): Alphabetized.
977 (Is_Limited_Class_Wide_Type): New routine.
978 * sem_util.ads (Is_Limited_Class_Wide_Type): New routine.
979
980 2011-10-13 Geert Bosch <bosch@adacore.com>
981
982 * a-ngrear.adb (Solve): Make generic and move to
983 System.Generic_Array_Operations.
984 * s-gearop.ads (Matrix_Vector_Solution, Matrix_Matrix_Solution):
985 New generic solvers to compute a vector resp. matrix Y such
986 that A * Y = X, approximately.
987 * s-gearop.adb (Matrix_Vector_Solution, Matrix_Matrix_Solution):
988 Implement using Forward_Eliminate and Back_Substitute
989 * a-ngcoar.adb: Reimplement in pure Ada to remove dependencies
990 on BLAS and LAPACK.
991 * a-ngcoar.ads ("abs"): Fix return type to be real.
992
993 2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
994
995 PR ada/50589
996 * s-linux-alpha.ads: Do not "with" Interfaces.C.
997 * s-linux-sparc.ads: Likewise.
998
999 2011-10-13 Geert Bosch <bosch@adacore.com>
1000
1001 * s-gearop.ads (Forward_Eliminate): Add "abs" formal function
1002 returning a Real.
1003 * s-gearop.adb (Forward_Eliminate): Remove local "abs" function
1004 and use formal.
1005 * a-ngrear.adb (Forward_Eliminate): Adjust instantiation for
1006 new profile.
1007
1008 2011-10-13 Geert Bosch <bosch@adacore.com>
1009
1010 * a-ngrear.adb, s-gearop.adb, s-gearop.ads (Sqrt): Make generic and
1011 move to System.Generic_Array_Operations.
1012
1013 2011-10-13 Geert Bosch <bosch@adacore.com>
1014
1015 * a-ngrear.adb ("abs"): Adjust for modified L2_Norm generic
1016 * s-gearop.ads (L2_Norm): Change profile to be suitable for
1017 Complex_Vector
1018 * s-gearop.adb (L2_Norm): Reimplement using direct definition,
1019 not inner product
1020
1021 2011-10-13 Robert Dewar <dewar@adacore.com>
1022
1023 * exp_ch5.adb, sem_ch3.adb, impunit.adb, impunit.ads, sem_type.adb,
1024 prj-proc.adb, exp_ch9.adb, s-regpat.adb, sem_ch10.adb, sem_prag.adb,
1025 sem_ch12.adb, freeze.adb, sem_attr.adb, sem_attr.ads, gnatlink.adb,
1026 par-ch6.adb, exp_ch6.adb, sem_ch4.adb, sem_ch6.adb, sem_ch8.adb,
1027 par-util.adb, sem_ch13.adb, lib-xref.adb, g-trasym.adb, g-trasym.ads,
1028 exp_aggr.adb, s-taprop-posix.adb: Minor reformatting.
1029
1030 2011-10-13 Geert Bosch <bosch@adacore.com>
1031
1032 * s-gearop.adb: Minor comment additions.
1033
1034 2011-10-13 Fedor Rybin <frybin@adacore.com>
1035
1036 * gnat_ugn.texi: Add gnattest section.
1037
1038 2011-10-13 Ed Schonberg <schonberg@adacore.com>
1039
1040 * freeze.adb: Do not create body of renaming if declaration has
1041 errors.
1042
1043 2011-10-13 Olivier Hainque <hainque@adacore.com>
1044
1045 * init.c (__gnat_error_handler - vxworks case): Restrict sigtramp calls
1046 further, to the ppc+kernel case only.
1047
1048 2011-10-13 Hristian Kirtchev <kirtchev@adacore.com>
1049
1050 * exp_ch4.adb (Expand_N_Allocator): Comment reformatting.
1051 * exp_ch6.adb (Add_Unconstrained_Actuals_To_Build_In_Place_Call):
1052 Do not create a pool formal on .NET/JVM.
1053 (Expand_N_Extended_Return_Statement): Alphabetize local
1054 variables. Do not create a renaming of the build-in-place pool
1055 parameter on .NET/JVM. (Make_Build_In_Place_Call_In_Allocator):
1056 Add the user-defined pool only on non-VM targets.
1057 (Make_Build_In_Place_Call_In_Object_Declaration): Alphabetize
1058 local variables. Do not add a pool actual on .NET/JVM.
1059 * sem_ch6.adb: Add with and use clause for Targparm.
1060 (Create_Extra_Formals): Add build-in-place pool formal only on
1061 non-VM targets.
1062 * rtsfind.ads: Alphabetize entries.
1063
1064 2011-10-13 Sergey Rybin <rybin@adacore.com>
1065
1066 * gnat_ugn.texi: Minor correction.
1067
1068 2011-10-13 Ed Schonberg <schonberg@adacore.com>
1069
1070 * sem_ch8.adb: Minor error message improvement.
1071
1072 2011-10-13 Robert Dewar <dewar@adacore.com>
1073
1074 * a-cbprqu.adb, a-ciorma.adb, exp_ch3.adb: Minor reformatting.
1075
1076 2011-10-13 Gary Dismukes <dismukes@adacore.com>
1077
1078 * exp_ch5.adb (Expand_N_Loop_Statement): For the transformation
1079 of a for loop for an enumeration type with an enumeration rep
1080 clause, which involves moving the original loop parameter into
1081 a nested block, the loop parameter's entity must be removed from
1082 the entity list of the loop scope.
1083
1084 2011-10-13 Bob Duff <duff@adacore.com>
1085
1086 * exp_ch6.ads (BIP_Storage_Pool): New "extra implicit parameter"
1087 that gets passed in the same cases where BIP_Alloc_Form is passed
1088 (caller-unknown-size results). BIP_Storage_Pool is used when
1089 BIP_Alloc_Form = User_Storage_Pool. In that case, a pointer
1090 to the user-defined storage pool is passed at the call site,
1091 and this pool is used in callee to allocate the result.
1092 * exp_ch6.adb (Add_Unconstrained_Actuals_To_Build_In_Place_Call): New
1093 version of Add_Alloc_Form_Actual_To_Build_In_Place_Call. Passes
1094 the additional BIP_Storage_Pool actual.
1095 (Expand_N_Extended_Return_Statement): Allocate the function
1096 result using the user-defined storage pool, if BIP_Alloc_Form =
1097 User_Storage_Pool.
1098 * sem_ch6.adb: Add the "extra formal" for BIP_Storage_Pool.
1099 * exp_ch4.adb: Don't overwrite storage pool set by
1100 Expand_N_Extended_Return_Statement.
1101 * s-stopoo.ads, rtsfind.ads (Root_Storage_Pool_Ptr): New type,
1102 for use in build-in-place function calls within allocators
1103 where the access type has a user-defined storage pool.
1104
1105 2011-10-13 Sergey Rybin <rybin@adacore.com>
1106
1107 * gnat_ugn.texi, vms_data.ads: Add an option to control enumeration
1108 literal casing.
1109
1110 2011-10-13 Nicolas Roche <roche@adacore.com>
1111
1112 * gnatlink.adb: Ensure that -mrtp is passed when runtime name ends
1113 with 'rtp'.
1114
1115 2011-10-13 Ed Schonberg <schonberg@adacore.com>
1116
1117 * sem_prag.adb (Analyze_Pragma, case Unchecked_Union): Take into
1118 account that an unchecked union type can be limited.
1119
1120 2011-10-13 Olivier Hainque <hainque@adacore.com>
1121
1122 * init.c (__gnat_error_handler) <VxWorks version>: Add comments on
1123 the use of the signal trampoline for PPC in the sjlj case as well.
1124 Add legitimate casts, preventing compile time warnings on the
1125 (sighandler *) profile.
1126
1127 2011-10-13 Yannick Moy <moy@adacore.com>
1128
1129 * sem_aggr.adb (Resolve_Aggr_Expr): Always perform semantic analysis
1130 in Alfa mode.
1131
1132 2011-10-13 Ed Schonberg <schonberg@adacore.com>
1133
1134 * sem_ch3.adb (OK_For_Limited_Init_In_05): Conditional and case
1135 expressions are legal limited return values if each one of their
1136 dependent expressions are legal.
1137
1138 2011-10-13 Ed Schonberg <schonberg@adacore.com>
1139
1140 * sem_ch6.adb (Analyze_Procedure_Call_Statement): In Ada 2012 mode,
1141 if the prefix of the call is a qualified expression, rewrite as
1142 a code statement.
1143 * sem_ch13.adb (Analyze_Code_Statement): In Ada 2012 mode, the
1144 code statement is legal if it is a rewriting of a procedure call.
1145
1146 2011-10-13 Ed Schonberg <schonberg@adacore.com>
1147
1148 * exp_aggr.adb (Flatten): If a component association has a box,
1149 assume that aggregate is not static.
1150 (Safe_Aggregate): If a component association in a non-limited
1151 aggregate has a box, assume that it cannot be expanded in place.
1152
1153 2011-10-13 Vincent Celier <celier@adacore.com>
1154
1155 * prj-conf.adb (Get_Or_Create_Configuration_File): Call
1156 Process_Project_Tree_Phase_1 with Packages_To_Check.
1157 (Process_Project_And_Apply_Config): Ditto
1158 * prj-part.ads, prj-part.adb, prj-pars.ads, prj-pars.adb (Parse):
1159 Remove default for argument Packages_To_Check.
1160 * prj-proc.adb (Recursive_Process): New argument
1161 Packages_To_Check.
1162 (Process): Ditto.
1163 (Process_Project_Tree_Phase_1): Ditto.
1164 (Recursive_Project.Process_Aggregated_Projects): Call
1165 Prj.Part.Parse and Process_Project_Tree_Phase_1 with
1166 Packages_To_Check.
1167 * prj-proc.ads (Process): New argument Packages_To_Check
1168 (Process_Project_Tree_Phase_1): Ditto
1169
1170 2011-10-13 Arnaud Charlet <charlet@adacore.com>
1171
1172 * gcc-interface/Makefile.in: Fix typo.
1173
1174 2011-10-13 Ed Schonberg <schonberg@adacore.com>
1175
1176 * sem_ch12.adb (Analyze_Formal_{Floating_Type,
1177 Signed_Integer_Type, Decimal_Fixed_Point_Type, Discrete_Type}):
1178 Use sloc of defining identifier of farmal type declaration,
1179 as sloc of generated internal entity, to prevent misplaced
1180 references in ali.
1181
1182 2011-10-13 Ed Schonberg <schonberg@adacore.com>
1183
1184 * sem_intr.adb (Check_Intrinsic_Operator): Check that type
1185 is fully defined before checking that it is a numeric type.
1186
1187 2011-10-13 Ed Schonberg <schonberg@adacore.com>
1188
1189 * sem_aggr.adb (Resolve_Record_Aggregate): If a component
1190 association for component X has a box, then X is covered in the
1191 aggregate even if there is not default value for X in the type
1192 declaration, and X has to be default-initialized.
1193
1194 2011-10-13 Ed Schonberg <schonberg@adacore.com>
1195
1196 * sem_attr.adb (Check_Enum_Image, Analyze_Attribute case 'Value): Mark
1197 literals as referenced only if reference is in current source unit.
1198
1199 2011-10-13 Matthew Heaney <heaney@adacore.com>
1200
1201 * a-csquin.ads (Enque, Dequeue): Mark interface operations as entries.
1202
1203 2011-10-13 Olivier Hainque <hainque@adacore.com>
1204
1205 * sigtramp.h: New file. Prototype and spec of the signal
1206 trampoline to be called by an established handler to provide
1207 dwarf call frame info before the real signal processing code.
1208 * sigtramp-ppcvxw.c: New file. Implementation of the signal
1209 trampoline for ppc-vxworks.
1210 * init.c (vxworks section): Use it for ppc.
1211
1212 2011-10-13 Thomas Quinot <quinot@adacore.com>
1213
1214 * par-ch2.adb, par.adb, par-util.adb, par-ch3.adb
1215 (Check_Future_Identifier): New subprogram,
1216 factors duplicated code from Par.Ch2.P_Identifier and
1217 Par.Ch3.P_Defining_Identifier.
1218
1219 2011-10-13 Thomas Quinot <quinot@adacore.com>
1220
1221 * s-taprop-posix.adb (Initialize): Always raise Storage_Error
1222 if we fail to initialize CV attributes or CV.
1223
1224 2011-10-13 Thomas Quinot <quinot@adacore.com>
1225
1226 * s-tasren.adb (Timed_Selective_Wait, case
1227 Accept_Alternative_Selected): Use Defer_Abort_Nestable, since
1228 we know abortion is already deferred.
1229
1230 2011-10-13 Hristian Kirtchev <kirtchev@adacore.com>
1231
1232 * exp_ch3.adb (Build_Class_Wide_Master): Moved to exp_ch9.
1233 (Build_Master_Renaming (function)): Removed.
1234 (Build_Master_Renaming (procedure)): Moved to exp_ch9.
1235 (Expand_Full_Type_Declaration): Alphabetize
1236 variables. Reformatting of code and comments. Rewrite the
1237 section on processing of anonymous access-to-task types in
1238 record components.
1239 * exp_ch3.ads (Build_Class_Wide_Master): Moved to exp_ch9.
1240 (Build_Master_Renaming): Moved to exp_ch9.
1241 * exp_ch9.adb (Build_Class_Wide_Master): Moved from exp_ch3.
1242 (Build_Master_Entity): Add formal parameter
1243 Use_Current. Reformatting of code and comments.
1244 (Build_Master_Renaming): Moved from exp_ch3.
1245 * exp_ch9.ads (Build_Class_Wide_Master): Moved from
1246 exp_ch3. Update comment on usage.
1247 (Build_Master_Entity):
1248 Add formal parameter Use_Current. Update comment on usage.
1249 (Build_Master_Renaming): Moved from exp_ch3.
1250 * sem_ch3.adb (Access_Definition): Remove redundant code to
1251 create a _master and a renaming.
1252
1253 2011-10-13 Ed Schonberg <schonberg@adacore.com>
1254
1255 * lib-xref.adb: Do no emit reference to overridden operation,
1256 if it is internally generated.
1257
1258 2011-10-13 Vincent Celier <celier@adacore.com>
1259
1260 * bindgen.adb: Remove any processing related to g-trasym
1261 * Makefile.rtl: Add g-trasym.o to GNATRTL_NONTASKING_OBJS
1262 * mlib-prj.adb: Remove any processing related to g-trasym.
1263
1264 2011-10-12 Eric Botcazou <ebotcazou@adacore.com>
1265
1266 * sem_util.adb (Denotes_Same_Prefix): Fix fatal warning.
1267 * gcc-interface/Make-lang.in (WARN_ADAFLAGS): New.
1268 (ALL_ADAFLAGS): Include WARN_ADAFLAGS.
1269 (ADA_FLAGS_TO_PASS): Likewise.
1270 (COMMON_FLAGS_TO_PASS): New.
1271 (ADA_TOOLS_FLAGS_TO_PASS): Use COMMON_FLAGS_TO_PASS. In the regular
1272 native case, also use FLAGS_TO_PASS and ADA_FLAGS_TO_PASS.
1273 (gnatlib): Use COMMON_FLAGS_TO_PASS.
1274 (ada.install-common): Likewise.
1275 (install-gnatlib): Likewise.
1276 (install-gnatlib-obj): Likewise.
1277 (gnattools): Use ADA_TOOLS_FLAGS_TO_PASS for gnattools1 as well.
1278 (gnat-cross): Delete.
1279 (gnatboot): Likewise.
1280 (gnatboot2): Likewise.
1281 (gnatboot3): Likewise.
1282 (gnatstage1): Likewise.
1283 (gnatstage2): Likewise.
1284 * gcc-interface/Makefile.in (SOME_ADAFLAGS): Likewise.
1285 (MOST_ADAFLAGS): Likewise.
1286 (LOOSE_CFLAGS): Likewise.
1287 (gnat-cross): Likewise.
1288 (GNATLIBFLAGS): Add -W -Wall.
1289 (GNATLIBCFLAGS_FOR_C): Likewise.
1290 * gcc-interface/lang.opt: Remove C-specific warnings. Add doc lines.
1291 * gcc-interface/misc.c (gnat_handle_option): Remove obsolete cases.
1292
1293 2011-10-12 Eric Botcazou <ebotcazou@adacore.com>
1294
1295 * gcc-interface/trans.c (Attribute_to_gnu): Use remove_conversions.
1296 (push_range_check_info): Likewise.
1297 (gnat_to_gnu) <N_Code_Statement>: Likewise.
1298 * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: Likewise.
1299 (gnat_invariant_expr): Likewise.
1300 * gcc-interface/utils.c (compute_related_constant): Likewise.
1301 (max_size): Fix handling of SAVE_EXPR.
1302 (remove_conversions): Fix formatting.
1303
1304 2011-10-12 Eric Botcazou <ebotcazou@adacore.com>
1305
1306 * gcc-interface/ada-tree.h (DECL_LOOP_PARM_P): New flag.
1307 (DECL_INDUCTION_VAR): New macro.
1308 (SET_DECL_INDUCTION_VAR): Likewise.
1309 * gcc-interface/gigi.h (convert_to_index_type): Declare.
1310 (gnat_invariant_expr): Likewise.
1311 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: If this is a loop
1312 parameter, set DECL_LOOP_PARM_P on it.
1313 * gcc-interface/misc.c (gnat_print_decl) <VAR_DECL>: If DECL_LOOP_PARM_P
1314 is set, print DECL_INDUCTION_VAR instead of DECL_RENAMED_OBJECT.
1315 * gcc-interface/trans.c (gnu_loop_label_stack): Delete.
1316 (struct range_check_info_d): New type.
1317 (struct loop_info_d): Likewise.
1318 (gnu_loop_stack): New stack.
1319 (Identifier_to_gnu): Set TREE_READONLY flag on the first dereference
1320 built for a by-double-ref read-only parameter. If DECL_LOOP_PARM_P
1321 is set, do not test DECL_RENAMED_OBJECT.
1322 (push_range_check_info): New function.
1323 (Loop_Statement_to_gnu): Push a new struct loop_info_d instead of just
1324 the label. Reference the label and the iteration variable from it.
1325 Build the special induction variable in the unsigned version of the
1326 size type, if it is larger than the base type. And attach it to the
1327 iteration variable if the latter isn't by-ref. In the iteration scheme
1328 case, initialize the invariant conditions in front of the loop if
1329 deemed profitable. Use gnu_loop_stack.
1330 (gnat_to_gnu) <N_Exit_Statement>: Use gnu_loop_stack.
1331 <N_Raise_Constraint_Error>: Always process the reason. In the range
1332 check and related cases, and if loop unswitching is enabled, compute
1333 invariant conditions and push this information onto the stack.
1334 Do not translate again the condition if it has been already translated.
1335 * gcc-interface/utils.c (record_global_renaming_pointer): Assert that
1336 DECL_LOOP_PARM_P isn't set.
1337 (convert_to_index_type): New function.
1338 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Use it in order
1339 to convert the index from the base index type to sizetype.
1340 (gnat_invariant_expr): New function.
1341
1342 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1343
1344 * gcc-interface/utils.c (def_builtin_1): Delete old interface with
1345 two parallel arrays to hold standard builtin declarations, and
1346 replace it with a function based interface that can support
1347 creating builtins on the fly in the future.
1348 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Ditto.
1349 (gnat_to_gnu): Ditto.
1350
1351 2011-10-07 Eric Botcazou <ebotcazou@adacore.com>
1352
1353 PR lto/50492
1354 * gcc-interface/gigi.h (gnat_pushdecl): Adjust comment.
1355 * gcc-interface/utils.c (global_context): New variable.
1356 (gnat_pushdecl): Initialize it and set it as the DECL_CONTEXT of DECLs
1357 that are either public external or at top level. Use "No" macro.
1358 (end_subprog_body): Call decl_function_context.
1359 (rest_of_subprog_body_compilation): Likewise.
1360
1361 2011-10-07 Eric Botcazou <ebotcazou@adacore.com>
1362
1363 * gcc-interface/gigi.h (gnat_useless_type_conversion): Declare.
1364 (rest_of_subprog_body_compilation): Likewise.
1365 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: For renaming,
1366 test for useless conversions by means of gnat_useless_type_conversion.
1367 * gcc-interface/trans.c: Include bitmap.h and cgraph.h.
1368 (language_function): Add named_ret_val and other_ret_val.
1369 (f_named_ret_val): New macro.
1370 (f_other_ret_val): Likewise.
1371 (gigi): Call rest_of_subprog_body_compilation.
1372 (struct nrv_data): New structure.
1373 (is_nrv_p): New predicate.
1374 (prune_nrv_r): New helper function.
1375 (prune_nrv_in_block): New function.
1376 (finalize_nrv_r): New helper function.
1377 (finalize_nrv): New function.
1378 (return_value_ok_for_nrv_p): New predicate.
1379 (build_return_expr): If optimization is enabled, record candidates for
1380 the Named Return Value optimization.
1381 (build_function_stub): Call rest_of_subprog_body_compilation.
1382 (Subprogram_Body_to_gnu): If optimization is enabled and there are
1383 candidates, finalize the Named Return Value optimization.
1384 Call rest_of_subprog_body_compilation.
1385 (call_to_gnu): At the end, if a return value is needed, simplify the
1386 result before wrapping it up in a COMPOUND_EXPR.
1387 * gcc-interface/utils.c (end_subprog_body): Split into...
1388 (rest_of_subprog_body_compilation): ...this. New function.
1389 (gnat_useless_type_conversion): Likewise.
1390
1391 2011-10-06 Thomas Quinot <quinot@adacore.com>
1392
1393 * einfo.ads, exp_attr.adb, exp_ch3.adb, exp_ch4.adb, exp_ch7.adb,
1394 exp_ch9.adb, exp_ch9.ads, exp_strm.adb, exp_util.adb, freeze.adb,
1395 g-debpoo.ads, opt.ads, par-ch12.adb, par-ch2.adb, par-ch3.adb,
1396 par-ch5.adb, par-ch6.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
1397 sem_ch10.adb, sem_ch12.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
1398 sem_ch6.adb, sem_intr.adb, sem_res.ads, sem_type.adb, sem_util.adb,
1399 s-regpat.adb, s-tpopde-vms.ads: Minor reformatting.
1400 * s-osinte-freebsd.ads: Fix for tasking failures on FreeBSD.
1401
1402 2011-10-06 Ed Schonberg <schonberg@adacore.com>
1403
1404 * a-cihase.adb, a-ciorma.adb: Avoid accessibility checks in container
1405 references.
1406
1407 2011-10-06 Matthew Heaney <heaney@adacore.com>
1408
1409 * a-cuprqu.ads, a-cuprqu.adb, a-cbprqu.ads, a-cbprqu.adb
1410 (Dequeue_Only_High_Priority): Protected procedure now implemented.
1411
1412 2011-10-06 Vincent Celier <celier@adacore.com>
1413
1414 * g-trasym.adb: Replace old implementation with the default
1415 implementation that returns list of addresses as "0x...".
1416 * g-trasym.ads: Update the list of platforms with the full
1417 capability. Indicate that there is a default implementation
1418 for other platforms.
1419 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: Remove.
1420 * gcc-interface/Makefile.in: Remove g-trasym-unimplemented, as there
1421 is now a default implementation for all platforms without the full
1422 capability.
1423
1424 2011-10-06 Robert Dewar <dewar@adacore.com>
1425
1426 * a-ciorse.adb, a-cihase.adb, a-cihase.ads, a-coorse.adb,
1427 a-cborse.adb, a-comutr.adb, a-ciorma.adb, a-cbmutr.adb,
1428 a-cbmutr.ads, a-cbhase.adb, a-cbhase.ads: Minor reformatting and code
1429 reorganization (use conditional expressions).
1430
1431 2011-10-06 Robert Dewar <dewar@adacore.com>
1432
1433 * sem_res.adb (Resolve_Arithmetic_Op): Fix bad warning for
1434 floating divide by zero.
1435
1436 2011-10-06 Ed Schonberg <schonberg@adacore.com>
1437
1438 * sem_ch6.adb: Limited interfaces that are not immutably limited
1439 are OK in return statements.
1440
1441 2011-09-30 Iain Sandoe <iains@gcc.gnu.org>
1442
1443 * gcc-interface/Makefile.in (Darwin): Partial reversion of previous
1444 change to powerpc section.
1445
1446 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
1447
1448 * gcc-interface/Makefile.in (Darwin): Factor LIBGNAT_TARGET_PAIRS
1449 across the port.
1450
1451 2011-09-27 Ed Schonberg <schonberg@adacore.com>
1452
1453 * a-cbhase.adb, a-cbhase.ads, a-cborse.adb, a-cborse.ads,
1454 a-cihase.adb, a-cihase.ads, a-ciorse.adb, a-ciorse.ads,
1455 a-coorse.adb, a-coorse.ads: Add iterator machinery to bounded sets and
1456 indefinite sets.
1457 * a-coorma.ads: Minor reformmating.
1458 * einfo.ads: Improve the comment describing the
1459 Directly_Designated_Type function.
1460 * a-ciorma.adb, a-ciorma.ads: Add iterator machinery to indefinite
1461 ordered maps.
1462 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
1463 dependencies.
1464
1465 2011-09-27 Robert Dewar <dewar@adacore.com>
1466
1467 * a-comutr.ads: Minor reformatting.
1468
1469 2011-09-27 Ed Schonberg <schonberg@adacore.com>
1470
1471 * a-cimutr.adb, a-cimutr.ads, a-cbmutr.adb, a-cbmutr.ads: Add children
1472 iterators to multiway trees.
1473
1474 2011-09-27 Yannick Moy <moy@adacore.com>
1475
1476 * debug.adb (d.D): New option for strict Alfa mode.
1477 * opt.ads (Strict_Alfa_Mode): New flag to interpret compiler
1478 permissions as strictly as possible.
1479 * sem_ch3.adb (Signed_Integer_Type_Declaration): In non-strict
1480 Alfa mode, now, interpret ranges of base types like GNAT does; in
1481 strict mode, simply change the range of the implicit base Itype.
1482 * gnat1drv.adb: Update comments. Set Strict_Alfa_Mode.
1483
1484 2011-09-27 Robert Dewar <dewar@adacore.com>
1485
1486 * exp_ch9.adb: Minor comment fixes.
1487
1488 2011-09-27 Ed Schonberg <schonberg@adacore.com>
1489
1490 * a-comutr.adb, a-comutr.ads: Add children iterators on multiway
1491 trees.
1492
1493 2011-09-27 Eric Botcazou <ebotcazou@adacore.com>
1494
1495 * checks.adb (Apply_Scalar_Range_Check): Use Designated_Type
1496 instead of Directly_Designated_Type in the indirect array case.
1497
1498 2011-09-27 Robert Dewar <dewar@adacore.com>
1499
1500 * exp_util.adb, exp_aggr.adb: Minor reformatting.
1501
1502 2011-09-27 Ed Schonberg <schonberg@adacore.com>
1503
1504 * sinfo.ads, par-ch3.adb: Minor comment update: aspect specification
1505 on subtype declarations.
1506 * exp_aggr.adb: Minor comment update.
1507
1508 2011-09-27 Eric Botcazou <ebotcazou@adacore.com>
1509
1510 * exp_util.adb (Safe_Prefixed_Reference): Remove always-false
1511 test in the N_Explicit_Dereference case. Fold double logical
1512 negation in the special loop case and conditionalize it on
1513 Variable_Ref being true.
1514
1515 2011-09-27 Ed Schonberg <schonberg@adacore.com>
1516
1517 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is a
1518 single protected object and the selector is a discriminant or an
1519 entry family, this is a non-overloaded candidate interpretation,
1520 and possible primitive operations of the type must not be
1521 examined.
1522
1523 2011-09-27 Arnaud Charlet <charlet@adacore.com>
1524
1525 * s-taspri-posix-noaltstack.ads (Lock): Mark fields aliased.
1526
1527 2011-09-27 Pascal Obry <obry@adacore.com>
1528
1529 * s-osinte-hpux.ads, s-osinte-aix.ads, s-osinte-solaris-posix.ads,
1530 s-osinte-irix.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads:
1531 Add dummy definitions for pthread_rwlock_t
1532 and pthread_rwlockattr_t on all POSIX platforms.
1533 * s-taprop-irix.adb, s-taprop-posix.adb (Initialize_Lock): Fix lock
1534 reference.
1535 (Finalize_Lock): Likewise.
1536 (Write_Lock): Likewise.
1537 (Unlock): Likewise.
1538
1539 2011-09-27 Tristan Gingold <gingold@adacore.com>
1540
1541 * s-tassta.adb (Task_Wrapper): Increase Guard_Page_Size value for
1542 windows 64.
1543
1544 2011-09-27 Pascal Obry <obry@adacore.com>
1545
1546 * s-osinte-hpux.ads, s-taprop-vxworks.adb, s-taspri-vxworks.ads,
1547 s-taprop-tru64.adb, s-osinte-aix.ads, s-taspri-posix-noaltstack.ads,
1548 s-taspri-mingw.ads, s-taprop-vms.adb, s-tpoben.adb, s-tpoben.ads,
1549 s-taprop-mingw.adb, s-taprob.adb, s-taprob.ads,
1550 s-osinte-solaris-posix.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
1551 s-osinte-irix.ads, s-taprop-irix.adb, s-osinte-darwin.ads,
1552 s-taspri-dummy.ads, s-taspri-posix.ads, s-taprop.ads,
1553 s-taspri-vms.ads, s-osinte-freebsd.ads, s-taprop-hpux-dce.adb,
1554 s-taspri-hpux-dce.ads, s-taspri-tru64.ads, s-taprop-dummy.adb,
1555 s-taprop-posix.adb: Revert previous changes.
1556 (Lock): Now a record containing the two possible lock
1557 (mutex and read/write) defined in OS_Interface.
1558 * s-taprop-linux.adb (Finalize_Protection): Use r/w lock for
1559 'R' locking policy.
1560 (Initialize_Protection): Likewise.
1561 (Lock): Likewise.
1562 (Lock_Read_Only): Likewise.
1563 (Unlock): Likewise.
1564
1565 2011-09-27 Pascal Obry <obry@adacore.com>
1566
1567 * s-taspri-posix-noaltstack.ads (RW_Lock): This type is now defined as
1568 OS_Interface.pthread_rwlock_t.
1569
1570 2011-09-27 Robert Dewar <dewar@adacore.com>
1571
1572 * exp_ch9.adb, a-cimutr.adb, a-cimutr.ads, gnat1drv.adb, a-comutr.adb,
1573 a-comutr.ads, exp_dist.adb, a-cbmutr.adb, a-cbmutr.ads,
1574 sem_ch5.adb, sem_util.adb: Minor reformatting.
1575
1576 2011-09-27 Pascal Obry <obry@adacore.com>
1577
1578 * s-taprop.ads (Initialize_Lock)[RW_Lock]: New spec for r/w lock.
1579 (Finalize_Lock)[RW_Lock]: Likewise.
1580 (Write_Lock)[RW_Lock]: Likewise.
1581 (Unlock)[RW_Lock]: Likewise.
1582 (Read_Lock): Define L as RW_Lock (instead of Lock).
1583 * s-taprop-linux.adb (Initialize_Lock)[RW_Lock]: New
1584 routine for r/w lock.
1585 (Finalize_Lock)[RW_Lock]: Likewise.
1586 (Write_Lock)[RW_Lock]: Likewise.
1587 (Unlock)[RW_Lock]: Likewise.
1588 (Read_Lock): Define L as RW_Lock (instead of Lock).
1589
1590 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
1591 s-taprop-mingw.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
1592 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-posix.adb
1593 (Initialize_Lock)[RW_Lock]: Same implementation as corresponding
1594 routine for standard lock.
1595 (Finalize_Lock)[RW_Lock]: Likewise.
1596 (Write_Lock)[RW_Lock]: Likewise.
1597 (Unlock)[RW_Lock]: Likewise.
1598 (Read_Lock): Define L as RW_Lock (instead of Lock).
1599 * s-taprob.ads, s-tpoben.ads (Protection): Add RWL (RW_Lock)
1600 in the record definition.
1601 * s-taprob.adb, s-taproben.adb (Finalize_Protection): Use r/w
1602 lock for 'R' locking policy.
1603 (Initialize_Protection): Likewise.
1604 (Lock): Likewise.
1605 (Lock_Read_Only): Likewise.
1606 (Unlock): Likewise.
1607 * s-taspri-posix.ads (RW_Lock): New type defined as
1608 OS_Interface.pthread_rwlock_t.
1609
1610 * s-taspri-vxworks.ads, s-taspri-posix-noaltstack.ads,
1611 s-taspri-mingw.ads, s-taspri-solaris.ads, s-taspri-dummy.ads,
1612 s-taspri-posix.ads, s-taspri-vms.ads, s-taspri-hpux-dce.ads,
1613 s-taspri-tru64.ads (RW_Lock): New type defined as alias to Lock.
1614
1615 2011-09-27 Pascal Obry <obry@adacore.com>
1616
1617 * exp_ch9.adb, s-taspri-posix.ads: Minor reformatting.
1618
1619 2011-09-27 Pascal Obry <obry@adacore.com>
1620
1621 * s-osinte-aix.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads,
1622 s-osinte-hpux.ads, s-osinte-irix.ads,
1623 s-osinte-solaris-posix.ads (pthread_rwlock_t): New definition alias of
1624 pthread_mutex_t.
1625 (pthread_rwlockattr_t): New definition alias of pthread_mutexattr_t.
1626 * s-osinte-linux.ads (pthread_rwlock_t, pthread_rwlockattr_t,
1627 pthread_rwlockattr_init, pthread_rwlockattr_destroy,
1628 pthread_rwlockattr_setkind_np, pthread_rwlock_init,
1629 pthread_rwlock_destroy, pthread_rwlock_rdlock,
1630 pthread_rwlock_wrlock, pthread_rwlock_unlock): New.
1631
1632 2011-09-27 Pascal Obry <obry@adacore.com>
1633
1634 * rtsfind.ads: Add RE_Lock_Read_Only into rtsfind circuitry.
1635 (RE_Id): Add RE_Lock_Read_Only.
1636 (RE_Unit_Table): Likewise.
1637 * sem_prag.adb (Process_Convention): Change Pragma_Locking_Policy
1638 to lift restriction on first character. Handle now the
1639 Name_Concurrent_Readers_Locking where policy character is set to
1640 'R'.
1641 * snames.ads-tmpl (Name_Concurrent_Readers_Locking): New
1642 constant.
1643 * exp_ch9.adb (Build_Protected_Subprogram_Body): Generate a
1644 read only lock for function in protected object.
1645 * s-taprob.ads (Lock_Read_Only): Remove obsolete comment as
1646 this routine is now used.
1647
1648 2011-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1649
1650 * s-atocou-x86.adb (Decrement): Use %;.
1651 (Increment): Likewise.
1652
1653 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
1654
1655 * gcc-interface/utils2.c (build_allocator): Set TREE_THIS_NOTRAP on the
1656 dereference of the pointer to the storage area. Remove useless type
1657 conversions and factor out common code.
1658
1659 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
1660
1661 * gcc-interface/utils.c (maybe_unconstrained_array): Declare TYPE local
1662 variable and use it throughout.
1663 <UNCONSTRAINED_ARRAY_TYPE>: Add 'break' at the end.
1664 <RECORD_TYPE>: Do not unconditionally convert to the unpadded type as a
1665 first step. Also convert to the unpadded type as a last step.
1666
1667 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
1668
1669 * gcc-interface/gigi.h (create_subprog_decl): Replace TREE_CHAIN with
1670 DECL_CHAIN in comment.
1671 * gcc-interface/trans.c (gigi): Likewise.
1672 (Attribute_to_gnu): Likewise.
1673 (build_function_stub): Likewise.
1674 (gnat_to_gnu): Likewise.
1675 * gcc-interface/utils.c (create_subprog_decl): Likewise.
1676 (convert_vms_descriptor64): Likewise.
1677 (convert_vms_descriptor32): Likewise.
1678
1679 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
1680
1681 * gcc-interface/trans.c (assoc_to_constructor): Minor tweaks.
1682 * gcc-interface/utils2.c (build_simple_component_ref): Fix formatting
1683 issues. Use COMPLETE_TYPE_P in assertion. Also set TREE_READONLY if
1684 the type of the record is TYPE_READONLY.
1685
1686 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
1687 Robert Dewar <dewar@adacore.com>
1688
1689 * sem_ch6.adb (Set_Formal_Mode): Set Can_Never_Be_Null on an IN or IN
1690 OUT formal parameter which is of an null-exclusion access subtype.
1691
1692 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
1693
1694 * gcc-interface/ada-tree.h (DECL_CAN_NEVER_BE_NULL_P): New macro.
1695 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Set the flag.
1696 (gnat_to_gnu_param): Likewise.
1697 * gcc-interface/utils.c (convert) <UNCONSTRAINED_ARRAY_REF>: Invoke
1698 maybe_unconstrained_array instead of doing the work manually.
1699 (maybe_unconstrained_array): Propagate the TREE_THIS_NOTRAP flag.
1700 * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: If operand
1701 is a DECL with the flag, set TREE_THIS_NOTRAP on the reference.
1702 (gnat_stabilize_reference_1): Propagate the TREE_THIS_NOTRAP flag.
1703 (gnat_stabilize_reference): Likewise.
1704
1705 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
1706
1707 * gcc-interface/ada-tree.h (TYPE_NULL_BOUNDS): New macro.
1708 (SET_TYPE_NULL_BOUNDS): Likewise.
1709 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Set again
1710 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
1711 * gcc-interface/trans.c (Identifier_to_gnu): Return initializers of fat
1712 pointer types.
1713 * gcc-interface/utils.c (create_var_decl_1): If the object is external,
1714 check that the initializer is a valid constant expression for use in
1715 initializing a static variable. Add missing guard.
1716 (update_pointer_to): Adjust TYPE_NULL_BOUNDS if set.
1717 (convert_to_fat_pointer): In the null fat pointer case, build a valid
1718 pointer for the bounds.
1719 * gcc-interface/utils2.c (compare_fat_pointers): New function.
1720 (build_binary_op) <EQ_EXPR>: Call it to compare fat pointers.
1721
1722 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
1723
1724 * gcc-interface/ada-tree.h (TREE_THIS_NOTRAP): Redefine.
1725 * gcc-interface/trans.c (Identifier_to_gnu): Factor out common code in
1726 the by-ref case. Do not set TREE_READONLY on a renamed object. Set
1727 TREE_THIS_NOTRAP on UNCONSTRAINED_ARRAY_REF nodes.
1728 (Attribute_to_gnu) <Attr_Length>: Expand the use of the parameter cache
1729 to the indirect case.
1730 * gcc-interface/utils.c (convert) <UNCONSTRAINED_ARRAY_REF>: Preserve
1731 the TREE_THIS_NOTRAP flag.
1732
1733 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
1734
1735 * gcc-interface/trans.c (Loop_Statement_to_gnu): In the case of an
1736 iteration scheme, always generate the do-while form if optimization
1737 is enabled. Use more straightforward test at the end.
1738
1739 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
1740
1741 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Subtype>: Use
1742 XNEW instead of xmalloc. Do not build useless pointer type.
1743 <E_Anonymous_Access_Subprogram_Type>: Use XNEW instead of xmalloc.
1744 * gcc-interface/trans.c (gnat_to_gnu) <N_Raise_Constraint_Error>: Tidy.
1745 * gcc-interface/utils2.c (build_unary_op): Remove local variable.
1746
1747 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
1748
1749 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not promote
1750 the alignment if this doesn't prevent BLKmode access to the object.
1751
1752 2011-09-24 Iain Sandoe <iains@gcc.gnu.org>
1753
1754 * gcc-interface/Makefile.in (darwin): Do not issue the
1755 '-flat_namespace' linker flag during Ada build.
1756 * mlib-tgt-specific-darwin.adb: Remove '-flat_namespace' flag from the
1757 default shared library options.
1758
1759 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
1760
1761 * gcc-interface/decl.c (annotate_value): Look up expression for
1762 insertion in the cache at the end.
1763
1764 2011-09-19 Arnaud Charlet <charlet@adacore.com>
1765
1766 * gcc-interface/Make-lang.in: Update dependencies.
1767
1768 2011-09-19 Steve Baird <baird@adacore.com>
1769
1770 * snames.ads-tmpl: Move declaration of Name_Annotate into range of
1771 configuration pragma names so that Is_Configuration_Pragma_Name
1772 will return True for Name_Annotate. Make corresponding change in
1773 Pragma_Id enumeration type. This is needed to allow an Annotate
1774 pragma to occur in a configuration pragma file (typically,
1775 a gnat.adc file).
1776 * gnat_ugn.texi: Add Annotate to the list of configuration pragmas.
1777 * gnat_rm.texi: Note that pragma Annotate may be used as a
1778 configuration pragma.
1779
1780 2011-09-19 Ed Schonberg <schonberg@adacore.com>
1781
1782 * a-cbmutr.adb, a-cbmutr.ads, a-cimutr.adb, a-cimutr.ads,
1783 a-comutr.adb, a-comutr.ads: Add iterator machinery for multiway trees.
1784
1785 2011-09-19 Yannick Moy <moy@adacore.com>
1786
1787 * exp_alfa.adb, exp_alfa.ads (Expand_Alfa_N_In): New function
1788 for expansion of set membership.
1789 (Expand_Alfa): Call expansion for N_In and N_Not_In nodes.
1790 * exp_ch4.adb, exp_ch4.ads (Expand_Set_Membership): Make procedure
1791 visible for use in Alfa expansion.
1792 * sem_ch5.adb (Analyze_Iterator_Specification): Introduce loop
1793 variable in Alfa mode.
1794
1795 2011-09-19 Thomas Quinot <quinot@adacore.com>
1796
1797 * s-osinte-darwin.ads: Change SIGADAABRT on Darwin to SIGABRT.
1798
1799 2011-09-19 Thomas Quinot <quinot@adacore.com>
1800
1801 * exp_ch9.adb: Minor reformatting.
1802
1803 2011-09-19 Hristian Kirtchev <kirtchev@adacore.com>
1804
1805 * freeze.adb (Build_Renamed_Body): Generic subprograms
1806 instantiations cannot be poperly inlined by the compiler, do
1807 not set the Body_To_Inline attribute in such cases.
1808 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Inherit all
1809 inlining-related flags from the generic subprogram declaration.
1810
1811 2011-09-19 Thomas Quinot <quinot@adacore.com>
1812
1813 * exp_dist.adb, rtsfind.ads, sem_util.adb, sem_util.ads
1814 (Build_Stub_Type): Remove, instead copy components from
1815 System.Partition_Interface.RACW_Stub_Type.
1816 (RPC_Receiver_Decl): Remainder of code from old Build_Stub_Type routine.
1817 (Copy_Component_List): New subprogram.
1818
1819 2011-09-19 Yannick Moy <moy@adacore.com>
1820
1821 * lib-xref.adb (Generate_Reference): Ignore references to
1822 constants in Standard.
1823
1824 2011-09-19 Robert Dewar <dewar@adacore.com>
1825
1826 * err_vars.ads, errout.ads: Minor reformatting.
1827
1828 2011-09-19 Robert Dewar <dewar@adacore.com>
1829
1830 * aspects.ads (Impl_Defined_Aspects): New array
1831 * lib-writ.adb (No_Dependences): New name for No_Dependence
1832 * restrict.adb (No_Dependences): New name for No_Dependence
1833 (Check_Restriction_No_Specification_Of_Aspect): New
1834 procedure.
1835 (Set_Restriction_No_Specification_Of_Aspect): New procedure
1836 (Restricted_Profile_Result): New variable
1837 (No_Specification_Of_Aspects): New variable
1838 (No_Specification_Of_Aspect_Warning): New variable
1839 * restrict.ads (No_Dependences): New name for No_Dependence
1840 (Check_Restriction_No_Specification_Of_Aspect): New procedure
1841 (Set_Restriction_No_Specification_Of_Aspect): New procedure
1842 * s-rident.ads: Add restriction
1843 No_Implementation_Aspect_Specifications, this is also added to
1844 the No_Implementation_Extensions profile.
1845 * sem_ch13.adb (Analyze_Aspect_Specifications): Check
1846 No_Implementation_Defined_Aspects
1847 (Analyze_Aspect_Specifications): Check No_Specification_Of_Aspect
1848 * sem_prag.adb (Analyze_Aspect_Specifications): Check
1849 No_Implementation_Aspects
1850 (Analyze_Aspect_Specifications): Check No_Specification_Of_Aspect
1851 * snames.ads-tmpl (Name_No_Specification_Of_Aspect): New name
1852
1853 2011-09-19 Yannick Moy <moy@adacore.com>
1854
1855 * lib-xref.adb (Generate_Reference): Take into account multiple
1856 renamings for Alfa refs.
1857
1858 2011-09-19 Thomas Quinot <quinot@adacore.com>
1859
1860 * g-socthi-mingw.adb: Minor reformatting.
1861
1862 2011-09-19 Yannick Moy <moy@adacore.com>
1863
1864 * gnat1drv.adb (Adjust_Global_Switches): Set tagged type
1865 expansion to False in mode Alfa
1866
1867 2011-09-19 Pascal Obry <obry@adacore.com>
1868
1869 * mingw32.h: Remove obsolete code needed for old versions
1870 of MingW.
1871
1872 2011-09-19 Robert Dewar <dewar@adacore.com>
1873
1874 * errout.ads: Minor reformatting.
1875
1876 2011-09-19 Ed Schonberg <schonberg@adacore.com>
1877
1878 * sem_ch6.adb (Analyze_Expression_Function): When the expression
1879 function is transformed into a declaration and a body, insert
1880 body at the end of the declarative part, to prevent premature
1881 freeze actions, and preserve original specification in the
1882 subprogram declaration.
1883
1884 2011-09-19 Vincent Celier <celier@adacore.com>
1885
1886 * projects.texi: Minor editing.
1887
1888 2011-09-19 Robert Dewar <dewar@adacore.com>
1889
1890 * sem_aggr.adb, lib-writ.ads, s-restri.ads, sem_ch6.adb,
1891 exp_aggr.adb: Minor reformatting.
1892
1893 2011-09-19 Yannick Moy <moy@adacore.com>
1894
1895 * lib-xref.adb (Generate_Reference): Change entity referenced
1896 to underlying object if any, or else reference to the HEAP.
1897
1898 2011-09-15 Arnaud Charlet <charlet@adacore.com>
1899
1900 * gcc-interface/Make-lang.in: Update dependencies.
1901
1902 2011-09-15 Robert Dewar <dewar@adacore.com>
1903
1904 * tree_io.ads: Minor reformatting.
1905 * a-intnam.ads: Fix bad header.
1906
1907 2011-09-15 Thomas Quinot <quinot@adacore.com>
1908
1909 * a-exexpr-gcc.adb: Minor reformatting.
1910
1911 2011-09-15 Yannick Moy <moy@adacore.com>
1912
1913 * sem_ch6.adb: Propagate information that an expression function comes
1914 from source (otherwise references to this entity are not stored).
1915
1916 2011-09-15 Robert Dewar <dewar@adacore.com>
1917
1918 * a-cdlili.adb, a-coinve.adb, a-stzunb-shared.ads, a-suezst.adb,
1919 a-suenco.adb, a-stwiun-shared.ads, a-cobove.adb, a-convec.adb,
1920 a-btgbso.adb, a-cbdlli.adb, a-suewst.adb: Minor reformatting.
1921
1922 2011-09-15 Ed Schonberg <schonberg@adacore.com>
1923
1924 * sem_ch6.adb (Analyze_Expression_Function): Code cleanup:
1925 if the expression function is not a completion, create a
1926 new specification for the generated declaration, and keep the
1927 original specification in the generated body. Shorter code also
1928 ensures that proper warnings are generated for unused formals
1929 in all cases.
1930
1931 2011-09-15 Sergey Rybin <rybin@adacore.com>
1932
1933 * tree_io.ads: Update ASIS_Version_Number because of the changes
1934 in the tree structures for expression functions.
1935
1936 2011-09-15 Arnaud Charlet <charlet@adacore.com>
1937
1938 * s-osinte-aix.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads,
1939 s-osinte-hpux.ads, s-osinte-lynxos.ads, s-osinte-solaris-posix.ads,
1940 s-taprop-posix.adb (CLOCK_MONOTONIC): New constant.
1941 (CLOCK_REALTIME): Fix wrong value on some OSes.
1942 * s-taprop-posix.adb (Monotonic_Clock): Use CLOCK_MONOTONIC.
1943
1944 2011-09-11 Eric Botcazou <ebotcazou@adacore.com>
1945
1946 * gcc-interface/utils.c (maybe_unconstrained_array): In the reference
1947 to unconstrained array case, deal with each branch of a COND_EXPR.
1948 * gcc-interface/utils2.c (build_allocator): Deal with each branch of
1949 a COND_EXPR in the initializer, if present.
1950
1951 2011-09-11 Eric Botcazou <ebotcazou@adacore.com>
1952
1953 * gcc-interface/decl.c (maybe_pad_type): Do not try to change the form
1954 of an addressable type.
1955 * gcc-interface/trans.c (gnat_gimplify_expr) <VIEW_CONVERT_EXPR>: New.
1956 Deal with those cases for which creating a temporary is mandatory.
1957
1958 2011-09-11 Eric Botcazou <ebotcazou@adacore.com>
1959
1960 * gcc-interface/trans.c (call_to_gnu): Use local variable. Make sure
1961 this is a real formal parameter before testing whether it is by ref.
1962
1963 2011-09-11 Eric Botcazou <ebotcazou@adacore.com>
1964
1965 * gcc-interface/gigi.h (build_call_0_expr): Delete.
1966 (build_call_1_expr): Likewise.
1967 (build_call_2_expr): Likewise.
1968 (build_call_n_expr): New prototype.
1969 * gcc-interface/decl.c (gnat_to_gnu_entity): Use build_call_n_expr.
1970 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Ditto.
1971 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
1972 (Exception_Handler_to_gnu_zcx): Likewise.
1973 (gnat_to_gnu): Likewise.
1974 (build_binary_op_trapv): Likewise.
1975 * gcc-interface/utils2.c (build_call_0_expr): Delete.
1976 (build_call_1_expr): Likewise.
1977 (build_call_2_expr): Likewise.
1978 (build_call_n_expr): New function.
1979 (build_call_raise): Use build_call_n_expr.
1980 (build_call_raise_range): Likewise.
1981 (build_call_raise_column): Likewise.
1982 (build_call_alloc_dealloc_proc): Likewise.
1983 (maybe_wrap_malloc): Likewise.
1984 (maybe_wrap_free): Likewise.
1985
1986 2011-09-11 Eric Botcazou <ebotcazou@adacore.com>
1987
1988 * gcc-interface/trans.c (build_return_expr): Use void_type_node for
1989 MODIFY_EXPR.
1990 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Assert that
1991 the result type is null if ENABLE_CHECKING. Set operation_type at the
1992 end unconditionally if not set in the previous cases.
1993 Use build2 and void_type_node for MODIFY_EXPR.
1994 (build_allocator): Use NULL_TREE for MODIFY_EXPR.
1995
1996 2011-09-08 Eric Botcazou <ebotcazou@adacore.com>
1997
1998 * gcc-interface/utils.c (unchecked_convert): Use a field of the right
1999 precision when converting to or from an integral type whose precision
2000 is not equal to its size.
2001
2002 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
2003
2004 * traceback.c (Darwin) USE_GCC_UNWINDER for Darwin versions >= 8.
2005
2006 2011-09-07 Iain Sandoe <iains@gcc.gnu.org>
2007
2008 * gcc-interface/Makefile.in (darwin): Provide powerpc64 system
2009 implementation.
2010 * system-darwin-ppc64.ads: New file.
2011
2012 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
2013
2014 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Remove
2015 reference to "-lm".
2016
2017 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
2018
2019 * gcc-interface/Makefile.in (darwin, SO_OPTS): Provide architecture
2020 size switches to the link phase for shared libs.
2021
2022 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
2023
2024 * gcc-interface/Makefile.in (x86_64 darwin arch): Adjust
2025 LIBGNAT_TARGET_PAIRS for x86 and x86_64 variants.
2026
2027 2011-09-06 Arnaud Charlet <charlet@adacore.com>
2028
2029 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in
2030 (gnattools, regnattools, cross-gnattools, canadian-gnattools,
2031 gnatlib, gnatlib-sjlj, gnatlib-zcx, gnatlib-shared, gnatlib_and_tools):
2032 New targets.
2033 (TOOLS_FLAGS_TO_PASS): New.
2034 (../stamp-tools): Reintroduce, to avoid merge conflicts.
2035
2036 2011-09-06 Robert Dewar <dewar@adacore.com>
2037
2038 * sem_ch10.adb, impunit.ads, impunit.adb (Not_Impl_Defined_Unit): New
2039 name for Is_RM_Defined_Unit. Also several fixes to this unit.
2040
2041 2011-09-06 Robert Dewar <dewar@adacore.com>
2042
2043 * impunit.ads, impunit.adb (Is_RM_Defined_Unit): New function.
2044 * s-rident.ads: New restriction No_Implementation_Units
2045 (this restriction is also part of the profile
2046 No_Implementation_Extensions)
2047 * sem_ch10.adb (Analyze_With_Clause): Add check for
2048 No_Implementation_Units restriction.
2049
2050 2011-09-06 Jerome Guitton <guitton@adacore.com>
2051
2052 * sysdep.c (__gnat_get_task_options): Disable VX_SPE_TASK
2053 on vThreads.
2054
2055 2011-09-06 Thomas Quinot <quinot@adacore.com>
2056
2057 * s-solita.adb: Minor reformatting.
2058
2059 2011-09-06 Ed Schonberg <schonberg@adacore.com>
2060
2061 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The body that
2062 is a rewriting of an expression function does not freeze previous
2063 entities.
2064
2065 2011-09-06 Robert Dewar <dewar@adacore.com>
2066
2067 * impunit.adb (Is_Known_Unit): Fix bad handling of Ada 2012 case
2068
2069 2011-09-06 Tristan Gingold <gingold@adacore.com>
2070
2071 * gcc-interface/Makefile.in: Handle e500v2-wrs-vxworksae like
2072 powerpc-wrs-vxworksae.
2073
2074 2011-09-06 Thomas Quinot <quinot@adacore.com>
2075
2076 * s-os_lib.ads (Spawn): Minor documentation clarification,
2077 Success is True for a zero exit status.
2078
2079 2011-09-06 Ed Schonberg <schonberg@adacore.com>
2080
2081 * sem_ch5.adb: Add message for common iterator error.
2082
2083 2011-09-06 Ed Schonberg <schonberg@adacore.com>
2084
2085 * exp_ch3.adb (Build_Initialization_Call): If the target is a
2086 selected component discriminated by a current instance, replace
2087 the constraint with a reference to the target object, regardless
2088 of whether the context is an init_proc.
2089
2090 2011-09-06 Robert Dewar <dewar@adacore.com>
2091
2092 * exp_attr.adb: Descriptor_Size is never static.
2093
2094 2011-09-06 Robert Dewar <dewar@adacore.com>
2095
2096 * gnat_ugn.texi: Add documentation for LSLOC metric in gnatmetric
2097
2098 2011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
2099
2100 * gnat_rm.texi: Clarify that attribute Descriptor_Size is
2101 non-static.
2102
2103 2011-09-06 Ed Schonberg <schonberg@adacore.com>
2104
2105 * sem_res.adb (Resolve): An expression that is the body of an
2106 expression function does not freeze.
2107
2108 2011-09-06 Matthew Heaney <heaney@adacore.com>
2109
2110 * a-csquin.ads, a-cusyqu.adb, a-cbprqu.adb, a-cbsyqu.adb,
2111 a-cuprqu.adb: Changed copyright notice to indicate current
2112 year only.
2113
2114 2011-09-06 Vincent Celier <celier@adacore.com>
2115
2116 * prj.adb: Minor spelling error fix in comment
2117 * sem_res.adb: Minor reformatting
2118
2119 2011-09-06 Pascal Obry <obry@adacore.com>
2120
2121 * sysdep.c (winflush_nt): Removed as not needed anymore.
2122 (winflush_95): Likewise.
2123 (winflush_init): Likewise.
2124 (winflush_function): Likewise.
2125 (getc_immediate_common): Remove call to winflush_function.
2126
2127 2011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
2128
2129 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite the
2130 processing for Descriptor_Size.
2131 * gnat_rm.texi: Rephrase the wording for attribute Descriptor_Size
2132 to account for its broader usage.
2133 * sem_attr.adb (Analyze_Attribute): Change the error detection
2134 circuitry for Descriptor_Size as the attribute is now applicable
2135 to all types.
2136
2137 2011-09-06 Robert Dewar <dewar@adacore.com>
2138
2139 * sem_attr.adb, prj-nmsc.adb, exp_aggr.adb: Minor reformatting.
2140
2141 2011-09-06 Ed Schonberg <schonberg@adacore.com>
2142
2143 * lib-xref.adb (OK_To_Set_Referenced): A reference to a formal
2144 in a parameter association must not set the Referenced flag on
2145 the formal.
2146 * prj-nmsc.adb (Check_File_Naming_Schemes): Remove useless formal
2147
2148 2011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
2149
2150 * gnat_rm.texi: Add a section on attribute Descriptor_Size
2151
2152 2011-09-06 Arnaud Charlet <charlet@adacore.com>
2153
2154 * gcc-interface/Makefile.in (common-tools, gnatmake-re,
2155 gnatlink-re): Speed up by using -j0.
2156
2157 2011-09-06 Yannick Moy <moy@adacore.com>
2158
2159 * sem_ch13.adb (Analyze_Aspect_Specifications): Call
2160 Set_Corresponding_Aspect when creating pragma from aspect.
2161 (Add_Predicates): Use new field Corresponding_Aspect.
2162 * sem_prag.adb (Analyze_Pragma): Make Pname hold source aspect
2163 name when present, for the purpose of issuing error messages;
2164 remove local procedure Error_Pragma_Arg_Alternate_Name.
2165 * sinfo.adb, sinfo.ads (Corresponding_Aspect): New field in
2166 N_Pragma node.
2167 (From_Dynamic_Predicate, From_Static_Predicate): Remove fields from
2168 N_Pragma node.
2169
2170 2011-09-06 Robert Dewar <dewar@adacore.com>
2171
2172 * checks.adb, s-except.ads, g-socket.adb: Minor reformatting.
2173
2174 2011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
2175
2176 * exp_ch6.adb (Build_Heap_Allocator): Add new
2177 local variable Desig_Typ. Code and comment reformatting. Add
2178 machinery to ensure that the allocation uses a fat pointer when
2179 the type of the return object is a constrained array and the
2180 function return type is an unconstrained array.
2181
2182 2011-09-06 Vincent Celier <celier@adacore.com>
2183
2184 * make.adb, prj-part.adb, prj-nmsc.adb: Remove unused formal
2185 parameters in subprograms.
2186
2187 2011-09-06 Arnaud Charlet <charlet@adacore.com>
2188
2189 * s-taprop-mingw.adb (Finalize_TCB): Fix typo.
2190
2191 2011-09-06 Thomas Quinot <quinot@adacore.com>
2192
2193 * s-taprop-vxworks.adb, s-tpoaal.adb, s-tpopsp-vxworks.adb
2194 (System.Tasking.Primitive_Operations.Specific.Delete): Remove
2195 subprogram.
2196 (System.Tasking.Primitive_Operations.Specific.Set): If argument
2197 is null, destroy task specific data, to make API consistent with
2198 other platforms, and thus compatible with the shared version
2199 of s-tpoaal.adb.
2200 (System.Tasking.Primitive_Operations.ATCB_Allocation.Free_ATCB):
2201 Document the above assumption.
2202
2203 2011-09-06 Ed Schonberg <schonberg@adacore.com>
2204
2205 * exp_ch6.adb (Expand_Inlined_Call): Fix use of uninitialized
2206 variable for type of return value when return type is
2207 unconstrained and context is an assignment.
2208
2209 2011-09-06 Ed Schonberg <schonberg@adacore.com>
2210
2211 * sem_ch8.adb (Check_Class_Wide_Actual): Do not generate body of
2212 class-wide operation if expansion is not enabled.
2213
2214 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2215
2216 * checks.adb (Apply_Scalar_Range_Check): Deal with access
2217 type prefix.
2218
2219 2011-09-06 Yannick Moy <moy@adacore.com>
2220
2221 * sem_ch13.adb (Analyze_Aspect_Specifications, case
2222 Aspect_Invariant): Do not issue error at this point on illegal
2223 pragma placement, as this is checked later on when analyzing
2224 the corresponding pragma.
2225 * sem_prag.adb (Error_Pragma_Arg_Alternate_Name): New procedure
2226 similar to Error_Pragma_Arg, except the source name of the
2227 aspect/pragma to use in warnings may be equal to parameter
2228 Alt_Name (Analyze_Pragma, case Pragma_Invariant): refine error
2229 message to distinguish source name of pragma/aspect, and whether
2230 the illegality resides in the type being public, or being private
2231 without a public declaration
2232
2233 2011-09-06 Thomas Quinot <quinot@adacore.com>
2234
2235 * g-socket.adb (Check_For_Fd_Set): On Windows, no need for bitmap
2236 size check (fd_set is implemented differently on that platform).
2237
2238 2011-09-06 Thomas Quinot <quinot@adacore.com>
2239
2240 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
2241 s-tpoaal.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
2242 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop.ads,
2243 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-posix.adb
2244 (ATCB_Allocation): New subpackage of
2245 System.Tasking.Primitive_Operations, shared across all targets
2246 with full tasking runtime.
2247 (ATCB_Allocation.New_ATCB): Moved there (from target specific
2248 s-taprop bodies).
2249 (ATCB_Allocation.Free_ATCB): New subprogram. Deallocate an ATCB,
2250 taking care of establishing a local temporary ATCB if the one
2251 being deallocated is Self, to avoid a reference to the freed
2252 ATCB in Abort_Undefer.
2253
2254 2011-09-06 Thomas Quinot <quinot@adacore.com>
2255
2256 * s-tassta.adb, s-taskin.ads (Free_Task): If the task is not
2257 terminated, mark it for deallocation upon termination.
2258 (Terminate_Task): Call Free_Task again if the task is marked
2259 for automatic deallocation upon termination.
2260
2261 2011-09-06 Robert Dewar <dewar@adacore.com>
2262
2263 * a-cbprqu.ads, a-cbsyqu.ads, a-cuprqu.ads, a-cusyqu.ads,
2264 a-intnam-aix.ads, a-intnam-darwin.ads, a-intnam-dummy.ads,
2265 a-intnam-freebsd.ads, a-intnam-hpux.ads, a-intnam-irix.ads,
2266 a-intnam-linux.ads, a-intnam-lynxos.ads, a-intnam-mingw.ads,
2267 a-intnam-solaris.ads, a-intnam-tru64.ads,
2268 a-intnam-vms.ads, a-intnam-vxworks.ads, a-intnam.ads, interfac.ads,
2269 cstand.adb, s-maccod.ads: Mark all entities as Implementation_Defined
2270 * einfo.ads, einfo.adb (Is_Implementation_Defined): New flag
2271 * par-prag.adb: Add dummy entry for pragma Implementation_Defined
2272 * s-rident.ads: Add new restriction No_Implementation_Identifiers
2273 Add new profile No_Implementation_Extensions
2274 * sem_prag.adb: Implement pragma Implementation_Defined Implement
2275 profile No_Implementation_Extensions
2276 * sem_util.adb: Minor reformatting (Set_Entity_With_Style_Check):
2277 Check violation of restriction No_Implementation_Identifiers
2278 * snames.ads-tmpl: Add entries for pragma Implementation_Defined
2279 Add entry for Name_No_Implementation_Extensions
2280
2281 2011-09-06 Robert Dewar <dewar@adacore.com>
2282
2283 * impunit.ads: Minor reformatting.
2284
2285 2011-09-06 Robert Dewar <dewar@adacore.com>
2286
2287 * ali.adb, sem_ch13.adb, lib-xref.adb: Minor reformatting.
2288
2289 2011-09-06 Pascal Obry <obry@adacore.com>
2290
2291 * s-osinte-linux.ads, s-oscons-tmplt.c: Use oscons to define sigset_t
2292 types.
2293
2294 2011-09-06 Robert Dewar <dewar@adacore.com>
2295
2296 * g-socket.adb: Minor reformatting
2297
2298 2011-09-06 Javier Miranda <miranda@adacore.com>
2299
2300 * ali.adb (Scan_ALI): Add missing support to load references of
2301 entities imported from other languages.
2302 * ali.ads (Xref_Record): Adding new fields to store the language and
2303 name of an imported entity.
2304 * lib-xref.adb (Output_Import_Export_Info): Fix typo
2305 in comment.
2306
2307 2011-09-06 Ed Schonberg <schonberg@adacore.com>
2308
2309 * sem_prag.adb (Analyze_Pragma, case Type_Invariant): A type invariant
2310 is allowed on a full type declaration if it is the completion of
2311 a private declarations.
2312 * sem_ch13.adb (Analyze_Aspect_Specifications): An invariant
2313 aspect is allowed on a full type declaration in the private part
2314 of a package.
2315
2316 2011-09-06 Robert Dewar <dewar@adacore.com>
2317
2318 * sem_ch8.ads: Minor reformatting
2319
2320 2011-09-06 Thomas Quinot <quinot@adacore.com>
2321
2322 * s-oscons-tmplt.c, g-socket.adb (GNAT.Sockets.Clear,Set,Is_Set):
2323 Guard against socket values that are not in [0;FD_SETSIZE[
2324
2325 2011-09-06 Robert Dewar <dewar@adacore.com>
2326
2327 * s-osinte-linux.ads, a-iteint.ads, exp_ch6.adb, s-solita.adb: Minor
2328 reformatting.
2329
2330 2011-09-06 Arnaud Charlet <charlet@adacore.com>
2331
2332 * s-linux-alpha.ads: Minor reformatting
2333 * s-oscons-tmplt.c: Fix generated comments in s-oscons template.
2334 Use sizeof instead of corresponding C defines in s-oscons template.
2335
2336 2011-09-06 Vadim Godunko <godunko@adacore.com>
2337
2338 * a-convec.ads, a-iteint.ads: Minor reformatting.
2339
2340 2011-09-06 Vincent Celier <celier@adacore.com>
2341
2342 * projects.texi: Add menus and @node lines.
2343
2344 2011-09-06 Ed Schonberg <schonberg@adacore.com>
2345
2346 * exp_ch6.adb (Expand_Inlined_Call): Handle properly the case
2347 where the return type is an unconstrained array and the context
2348 is an assignment. Optimize the case when the target of the
2349 assignment is a selected component.
2350
2351 2011-09-06 Arnaud Charlet <charlet@adacore.com>
2352
2353 * s-solita.adb: Update comments.
2354
2355 2011-09-06 Pascal Obry <obry@adacore.com>
2356
2357 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, s-linux-mipsel.ads,
2358 s-linux-sparc.ads: Remove hard coded and now wrong definitions.
2359 * s-oscons-tmplt.c: Add support for generating pthread related
2360 types size on GNU/Linux as done for Darwin.
2361 * s-osinte-linux.ads: Use s-oscons to define the pthread types.
2362
2363 2011-09-06 Robert Dewar <dewar@adacore.com>
2364
2365 * exp_ch6.adb: Fix minor typo.
2366
2367 2011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
2368
2369 * exp_ch7.adb: Remove with and use clauses for Get_Targ.
2370 (Alignment_Of): Moved to the body of Nearest_Multiple_Rounded_Up.
2371 (Double_Size_Of): Alphabetized. Update the comment on usage.
2372 (Make_Finalize_Address_Stmts): Update comments and reformat code.
2373 (Nearest_Multiple_Rounded_Up): New routine.
2374 (Size_Of): Update comment on usage. The generated expression now
2375 accounts for alignment gaps by rounding the size of the type to the
2376 nearest multiple rounded up of the type's alignment.
2377
2378 2011-09-06 Robert Dewar <dewar@adacore.com>
2379
2380 * exp_ch7.adb, g-comlin.adb: Minor reformatting.
2381
2382 2011-09-06 Steve Baird <baird@adacore.com>
2383
2384 * exp_ch4.adb (Expand_Allocator_Expression): Look through
2385 derived subprograms in checking for presence of an
2386 Extra_Accessibility_Of_Result formal parameter.
2387 * exp_ch6.adb (Expand_Call): Look through derived subprograms in
2388 checking for presence of an Extra_Accessibility_Of_Result formal
2389 parameter.
2390 (Expand_Call.Add_Actual_Parameter): Fix a bug in the
2391 case where the Parameter_Associatiations attribute is already set,
2392 but set to an empty list.
2393 (Needs_Result_Accessibility_Level):
2394 Unconditionally return False. This is a temporary
2395 change, disabling the Extra_Accessibility_Of_Result
2396 mechanism.
2397 (Expand_Simple_Function_Return): Check for
2398 Extra_Accessibility_Of_Result parameter's presence instead of
2399 testing Ada_Version when generating a runtime accessibility
2400 check which makes use of the parameter.
2401
2402 2011-09-06 Ed Schonberg <schonberg@adacore.com>
2403
2404 * exp_ch4.adb (Expand_N_Case_Expression): Actions created for the
2405 expression in a given case alternative must be attached to the
2406 statement list of the ccrresponding case statement alternative
2407 They cannot be propagated ahead of the case statement, because
2408 the validity of the expression that generated the action may
2409 hold only for that alternative.
2410
2411 2011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
2412
2413 * exp_ch7.adb: Remove with and use clauses for Get_Targ.
2414 (Alignment_Of): Remove the code for strict alignment targets.
2415 (Double_Alignment_Of): Removed.
2416 (Double_Size_Of): New routine.
2417 (Make_Finalize_Address_Stmts): Change the
2418 calculation of the dope's size. Update relevant comments.
2419 (Size_Of): New routine.
2420
2421 2011-09-06 Steve Baird <baird@adacore.com>
2422
2423 * einfo.ads (Extra_Accessibility): Update associated comment to use
2424 the term "present" correctly ("present" just means that it is not
2425 an error to query the value of the attribute - it does not imply
2426 that the value must be non-null).
2427 (Extra_Constrained): Ditto.
2428 (Is_Visible_Formal): Ditto.
2429 (Extra_Accessibility_Of_Result) Ditto; also add Inline pragma.
2430 (Set_Extra_Accessibility_Of_Result): Add Inline pragma.
2431 * exp_ch4.adb (Expand_Allocator_Expression): Improve a comment.
2432 * exp_ch6.adb (Expand_Call): The callee may require an
2433 Extra_Accessibility_Of_Result actual parameter even if Ada_Version
2434 < Ada_2012. This can occur if the callee is exported from a Gnat
2435 runtimes unit. Also improve a comment.
2436
2437 2011-09-06 Hristian Kirtchev <kirtchev@adacore.com>
2438
2439 * exp_ch7.adb: Add with and use clauses for Get_Targ.
2440 (Alignment_Of): Rename formal parameter Some_Typ
2441 to Typ, update related comment. Use the allocator alignment on
2442 strict alignment targets such as SPARC.
2443 (Double_Alignment_Of): Rename formal parameter Some_Typ to Typ, update
2444 related comment.
2445
2446 2011-09-06 Gary Dismukes <dismukes@adacore.com>
2447
2448 * sem_ch9.adb (Check_Interfaces): Test
2449 Is_Limited_Type rather than Is_Limited_Record when checking that
2450 the partial view of a synchronized full view must be limited.
2451
2452 2011-09-06 Emmanuel Briot <briot@adacore.com>
2453
2454 * g-comlin.adb (Free): Fix memory leak.
2455
2456 2011-09-06 Robert Dewar <dewar@adacore.com>
2457
2458 * sem_util.adb, exp_ch6.adb: Minor reformatting and code reorganization.
2459
2460 2011-09-06 Steve Baird <baird@adacore.com>
2461
2462 * einfo.ads (Extra_Accessibility_Of_Result): New function; in the
2463 (Ada2012) cases described in AI05-0234 where the accessibility
2464 level of a function result is "determined by the point of
2465 call", an implicit parameter representing that accessibility
2466 level is passed in. Extra_Accessibilty_Of_Result yields this
2467 additional formal parameter. Extra_Accessibility_Of_Result
2468 is analogous to the existing Extra_Accessibility
2469 function used in the implementation of access parameters.
2470 (Set_Extra_Accessibility_Of_Result): New procedure; sets
2471 Extra_Accessibility_Of_Result attribute.
2472 * einfo.adb (Extra_Accessibility_Of_Result): New function.
2473 (Set_Extra_Accessibility_Of_Result): New procedure.
2474 (Write_Field19_Name): Display Extra_Accessibilty_Of_Result attribute.
2475 * sem_util.adb (Dynamic_Accessibility_Level): Set Etype of
2476 an accessibility level literal to Natural; introduce a nested
2477 function, Make_Level_Literal, to do this.
2478 * exp_ch6.ads (Needs_Result_Accessibility_Level): New function;
2479 determines whether a given function (or access-to-function
2480 type) needs to have an implicitly-declared accessibility-level
2481 parameter added to its profile.
2482 (Add_Extra_Actual_To_Call): Export an existing procedure which was
2483 previously declared in the body of Exp_Ch6.
2484 * exp_ch6.adb (Add_Extra_Actual_To_Call): Export declaration by moving
2485 it to exp_ch6.ads.
2486 (Has_Unconstrained_Access_Discriminants): New Function; a
2487 predicate on subtype entities which returns True if the given
2488 subtype is unconstrained and has one or more access discriminants.
2489 (Expand_Call): When expanding a call to a function which takes an
2490 Extra_Accessibility_Of_Result parameter, pass in the appropriate
2491 actual parameter value. In the case of a function call which is
2492 used to initialize an allocator, this may not be possible because
2493 the Etype of the allocator may not have been set yet. In this
2494 case, we defer passing in the parameter and handle it later in
2495 Expand_Allocator_Expression.
2496 (Expand_Simple_Function_Return): When returning from a function which
2497 returns an unconstrained subtype having at least one access
2498 discriminant, generate the accessibility check needed to ensure that
2499 the function result will not outlive any objects designated by its
2500 discriminants.
2501 (Needs_Result_Accessibility_Level): New function; see exp_ch6.ads
2502 description.
2503 * exp_ch4.adb (Expand_Allocator_Expression): When a function call
2504 is used to initialize an allocator, we may need to pass in "the
2505 accessibility level determined by the point of call" (AI05-0234)
2506 to the function. Expand_Call, where such actual parameters are
2507 usually generated, is too early in this case because the Etype of
2508 the allocator (which is used in determining the level to be passed
2509 in) may not have been set yet when Expand_Call executes. Instead,
2510 we generate code to pass in the appropriate actual parameter
2511 in Expand_Allocator_Expression.
2512 * sem_ch6.adb (Create_Extra_Formals): Create
2513 the new Extra_Accessibility_Of_Result formal if
2514 Needs_Result_Accessibility_Level returns True. This includes the
2515 introduction of a nested procedure, Check_Against_Result_Level.
2516
2517 2011-09-06 Arnaud Charlet <charlet@adacore.com>
2518
2519 * gcc-interface/Makefile.in (X86_TARGET_PAIRS): Remove duplicate
2520 declaration.
2521
2522 2011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
2523
2524 * s-finmas.adb (Set_Finalize_Address): Explain the reason
2525 for the synchronization. Move the test for null from
2526 s-stposu.Allocate_Any_Controlled to this routine since the check
2527 needs to be protected too.
2528 (Set_Heterogeneous_Finalize_Address): Explain the reason for the
2529 synchronization code.
2530 * s-finmas.ads (Set_Heterogeneous_Finalize_Address): Add comment
2531 explaining the context in which this routine is used.
2532 * s-stposu.adb (Allocate_Any_Controlled): Move the test for null
2533 to s-finmas.Set_Finalize_Address.
2534
2535 2011-09-05 Ed Schonberg <schonberg@adacore.com>
2536
2537 * einfo.ads: Document that itypes have no parent field.
2538
2539 2011-09-05 Robert Dewar <dewar@adacore.com>
2540
2541 * rtsfind.adb (Check_CRT): Check for overloaded entity
2542 * rtsfind.ads: Document that entities to be found by rtsfind
2543 cannot be overloaded
2544 * s-taenca.adb, s-tasren.adb, s-tpobop.adb, s-tpoben.ads, s-tpoben.adb
2545 (Lock_Entries_With_Status): New name for Lock_Entries with two
2546 arguments (changed to meet rtsfind no overloading rule).
2547
2548 2011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
2549
2550 * s-finmas.adb (Set_Finalize_Address (Address,
2551 Finalize_Address_Ptr)): Renamed to Set_Heterogeneous_Finalize_Address.
2552 (Set_Finalize_Address (in out Finalization_Master,
2553 Finalize_Address_Ptr): Add synchronization code.
2554 * s-finmas.ads (Set_Finalize_Address (Address,
2555 Finalize_Address_Ptr)): Renamed to Set_Heterogeneous_Finalize_Address.
2556 * s-stposu.adb (Allocate_Any_Controlled): Update the call to
2557 Set_Finalize_Address for the heterogeneous case.
2558
2559 2011-09-05 Ed Schonberg <schonberg@adacore.com>
2560
2561 * sem_ch3.adb: Undo previous change, not suitable after all.
2562
2563 2011-09-05 Robert Dewar <dewar@adacore.com>
2564
2565 * einfo.ads: Minor comment clarification.
2566
2567 2011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
2568
2569 * exp_ch6.adb (Move_Activation_Chain): Rewritten. The routine
2570 no longer needs to search through the entities of the return
2571 statement scope to find the _chain.
2572 * sem_ch5.adb: Add with and use clauses for Exp_Ch6 and Sem_Ch6.
2573 (Analyze_Block_Statement): Add local variable
2574 Is_BIP_Return_Statement. Add machinery to install all entities
2575 produced by the expansion of the return object declaration.
2576 (Install_Return_Entities): New routine.
2577 * sem_ch6.ads, sem_ch6.adb (Install_Entity): Moved from body to spec.
2578
2579 2011-09-05 Ed Schonberg <schonberg@adacore.com>
2580
2581 * sem_ch10.adb (Analyze_Context): Apply simple fixup if context
2582 of subunit is incomplete.
2583 (Analyze_Proper_Body): If parent spec is not available, do not
2584 attempt analysis.
2585
2586 2011-09-05 Ed Schonberg <schonberg@adacore.com>
2587
2588 * sem_disp.adb (Find_Controlling_Arg): Add checks for
2589 interface type conversions, that are expanded into dereferences.
2590
2591 2011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
2592
2593 * sem_ch6.adb (Analyze_Subprogram_Body_Helper):
2594 Examine the parameter and return profile of a subprogram and swap
2595 any incomplete types coming from a limited context with their
2596 corresponding non-limited views.
2597 (Exchange_Limited_Views): New routine.
2598
2599 2011-09-05 Ed Schonberg <schonberg@adacore.com>
2600
2601 * sem_ch3.adb (Prepare_Private_Subtype_Completion): Set parent
2602 of internal entity to the subtype declaration, so that when
2603 entities are subsequently exchanged in a package body, the tree
2604 remains properly formatted for ASIS.
2605
2606 2011-09-05 Johannes Kanig <kanig@adacore.com>
2607
2608 * g-comlin.adb (Set_Usage): Additional optional argument to set help
2609 message.
2610 (Display_Help): display the user given help message, if available.
2611
2612 2011-09-05 Ed Schonberg <schonberg@adacore.com>
2613
2614 * sem_ch3.adb (OK_For_Limited_Init_In_05): The expression
2615 is legal if the original node is an identifier that is a
2616 parameterless function call.
2617
2618 2011-09-05 Pascal Obry <obry@adacore.com>
2619
2620 * prj-nmsc.adb: Minor reformatting.
2621 Add support for standalone aggregate library.
2622 (Check_Stand_Alone_Library): Handle standalone aggregate library.
2623 * projects.texi: Fix documentation for aggregate library projects.
2624
2625 2011-09-05 Robert Dewar <dewar@adacore.com>
2626
2627 * sem_ch6.adb: Minor reformatting.
2628
2629 2011-09-05 Matthew Gingell <gingell@adacore.com>
2630
2631 * s-tassta.adb (Task_Wrapper): Ensure that we don't try to write the
2632 stack guard page on PPC Linux. This patch ensures the 64K guard page at
2633 the bottom of the stack is not overwritten.
2634
2635 2011-09-05 Thomas Quinot <quinot@adacore.com>
2636
2637 * exp_intr.adb, s-tasini.adb: Minor reformatting.
2638
2639 2011-09-05 Ed Schonberg <schonberg@adacore.com>
2640
2641 * sem_ch3.adb (Access_Definition): If an access type declaration
2642 appears in a child unit, the scope of whatever anonymous type
2643 may be generated is the child unit itself.
2644
2645 2011-09-05 Ed Schonberg <schonberg@adacore.com>
2646
2647 * sem_ch6.adb (Analyze_Expression_Function): Do not set
2648 Comes_From_Source on rewritten body.
2649 (Analyze_Subprogram_Body_Helper): Check that the original node for
2650 the body comes from source, when determining whether expansion
2651 of a protected operation is needed.
2652
2653 2011-09-05 Ed Schonberg <schonberg@adacore.com>
2654
2655 * exp_aggr.adb (Replace_Type): If the target of the assignment is
2656 a selected component and the right-hand side is a self-referential
2657 access, the proper prefix of the rewritten attribute is a copy
2658 of the left-hand side, not of its prefix.
2659
2660 2011-09-05 Robert Dewar <dewar@adacore.com>
2661
2662 * sem_ch5.adb: Minor reformatting.
2663 * sem_ch3.adb: Minor code clean up.
2664
2665 2011-09-05 Jose Ruiz <ruiz@adacore.com>
2666
2667 * exp_ch9.adb (Make_Initialize_Protection): The fact that
2668 restriction No_Dynamic_Attachment is in effect or not should
2669 not influence the default priority associated to a protected
2670 object. With this change, when the restriction is in effect (as
2671 is the case for the Ravenscar profile) the default priority of
2672 a protected object with an interrupt handler is in the range of
2673 interrupt priorities (Default_Interrupt_Priority) as required
2674 by D.3(10).
2675
2676 2011-09-05 Arnaud Charlet <charlet@adacore.com>
2677
2678 * a-iteint.ads: Fix header.
2679
2680 2011-09-05 Vincent Celier <celier@adacore.com>
2681
2682 * prj-conf.adb (Do_Autoconf): Make sure Obj_Dir always ends
2683 with a directory separator to avoid output such as:
2684 "/path/to/objauto.cgpr" has been deleted.
2685
2686 2011-09-05 Robert Dewar <dewar@adacore.com>
2687
2688 * sem_ch3.adb: Minor reformatting.
2689
2690 2011-09-05 Ed Schonberg <schonberg@adacore.com>
2691
2692 * sem_ch5.adb: Better error message.
2693
2694 2011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
2695
2696 * exp_aggr.adb: Add with and use clause for Exp_Ch6.
2697 (Expand_Array_Aggregate): Detect a special case of an aggregate
2698 which contains tasks in the context of an unexpanded return
2699 statement of a build-in-place function.
2700 * exp_ch6.adb: Add with and use clause for Exp_Aggr.
2701 (Expand_N_Extended_Return_Statement): Detect a delayed aggregate
2702 which contains tasks and expand it now that the original simple
2703 return statement has been rewritten.
2704 * exp_ch9.adb (Build_Activation_Chain_Entity): Code
2705 reformatting. Do not create a chain for an extended return
2706 statement if one is already available.
2707 (Has_Activation_Chain): New routine.
2708
2709 2011-09-05 Marc Sango <sango@adacore.com>
2710
2711 * sem_ch3.adb (Analyze_Object_Declaration): Remove
2712 the wrong test and add the correct test to detect the violation
2713 of illegal use of unconstrained string type in SPARK mode.
2714
2715 2011-09-05 Ed Schonberg <schonberg@adacore.com>
2716
2717 * sem_ch5.adb (Analyze_Iteration_Specification): Improve error
2718 message on an iterator over an array.
2719
2720 2011-09-05 Robert Dewar <dewar@adacore.com>
2721
2722 * lib-xref-alfa.adb: Minor reformatting.
2723
2724 2011-09-05 Robert Dewar <dewar@adacore.com>
2725
2726 * sem_ch3.adb, sem_res.adb, par.adb, par-ch6.adb, g-comlin.adb,
2727 exp_ch6.adb, lib-xref-alfa.adb: Minor reformatting.
2728
2729 2011-09-05 Gary Dismukes <dismukes@adacore.com>
2730
2731 * exp_ch7.adb, exp_ch6.adb: Minor reformatting.
2732
2733 2011-09-05 Johannes Kanig <kanig@adacore.com>
2734
2735 * lib-xref-alfa.adb: Update comments.
2736
2737 2011-09-05 Thomas Quinot <quinot@adacore.com>
2738
2739 * sem_res.adb: Minor reformatting
2740
2741 2011-09-05 Ed Schonberg <schonberg@adacore.com>
2742
2743 * exp_ch6.adb (Build_In_Place_Formal): If extra formals are not
2744 present, create them now. Needed in case the return type was
2745 a limited view in the function declaration.
2746 (Make_Build_In_Place_Call_In_Allocator): If return type contains
2747 tasks, build the activation chain for it. Pass a reference to
2748 the Master_Id in call to Add_Task_Actuals_To_Build_In_Place call.
2749 * exp_ch7.adb (Make_Set_Finalize_Address_Call): Clean up interface
2750 with build_in_place calls.
2751 * sem_ch9.adb (Analyze_Task_Type_Declaration): If partial view was
2752 incomplete, inatialize its Corresponding_Record_Type component.
2753 * sem_ch10.adb (Build_Chain): Initialize Private_Dependents field
2754 of limited views.
2755
2756 2011-09-05 Johannes Kanig <kanig@adacore.com>
2757
2758 * lib-xref-alfa.adb (Is_Alfa_Reference): Filter constants from effect
2759 information.
2760
2761 2011-09-05 Ed Schonberg <schonberg@adacore.com>
2762
2763 * par-ch6.adb (P_Subprogram): In Ada2012 mode, if the subprogram
2764 appears within a package specification and the token after "IS"
2765 is not a parenthesis, assume that this is an unparenthesized
2766 expression function, even if the token appears in a line by
2767 itself.
2768 * par.adb: Clarify use of Labl field of scope stack in error
2769 recovery.
2770
2771 2011-09-05 Bob Duff <duff@adacore.com>
2772
2773 * sem_res.adb (Resolve_Intrinsic_Operator): Use unchecked
2774 conversions instead of normal type conversions in all cases where a
2775 type conversion would be illegal. In particular, use unchecked
2776 conversions when the operand types are private.
2777
2778 2011-09-05 Johannes Kanig <kanig@adacore.com>
2779
2780 * lib-xref-alfa.adb (Is_Alfa_Reference): Never declare effects on
2781 objects of task type or protected type.
2782
2783 2011-09-05 Ed Schonberg <schonberg@adacore.com>
2784
2785 * sem_ch6.adb (Analyze_Expression_Function): If the expression
2786 function comes from source, indicate that so does its rewriting,
2787 so it is compatible with any subsequent expansion of the
2788 subprogram body (e.g. when it is a protected operation).
2789 * sem_ch4.adb: minor reformatting
2790
2791 2011-09-05 Hristian Kirtchev <kirtchev@adacore.com>
2792
2793 * lib.adb (Check_Same_Extended_Unit): Comment rewriting. Use
2794 Get_Source_Unit rather than Get_Code_Unit as instantiation unfolding
2795 may lead to wrong ancestor package in the case of instantiated subunit
2796 bodies. If a subunit is instantiated, follow the chain of instantiations
2797 rather than the stub structure.
2798
2799 2011-09-02 Robert Dewar <dewar@adacore.com>
2800
2801 * sem_ch4.adb, sem_ch6.adb: Minor reformatting.
2802 * gcc-interface/Make-lang.in: Update dependencies.
2803
2804 2011-09-02 Marc Sango <sango@adacore.com>
2805
2806 * sem_ch3.adb (Analyze_Object_Declaration): Change
2807 comment and add additional check to differentiate constant of
2808 type string from others unconstrained type.
2809
2810 2011-09-02 Ed Schonberg <schonberg@adacore.com>
2811
2812 * sinfo.ads, sinfo.adb: New semantic attribute Premature_Use,
2813 present in incomplete type declarations to refine the error
2814 message the full declaration is in the same unit.
2815 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of
2816 an incomplete type, set the Premature_Use for additional message.
2817 * sem_ch3.adb (Find_Type_Name): If partial view is incomplete
2818 and Premature_Use is set, place additional information at the
2819 point of premature use.
2820
2821 2011-09-02 Bob Duff <duff@adacore.com>
2822
2823 * sem_ch6.adb: (Check_Post_State): Suppress warning
2824 "postcondition refers only to pre-state" when the expression has not
2825 yet been analyzed, because it causes false alarms. This can happen when
2826 the postcondition contains a quantified expression, because those are
2827 analyzed later. This is a temporary/partial fix.
2828 (Process_Post_Conditions): Minor: change wording of warning.
2829
2830 2011-09-02 Marc Sango <sango@adacore.com>
2831
2832 * sem_ch3.adb (Analyze_Object_Declaration): Detect the violation of
2833 illegal use of unconstrained string type in SPARK mode.
2834 * sem_res.adb (Analyze_Operator_Symbol): Set the
2835 right place where the string operand of concatenation should be
2836 violate in SPARK mode.
2837
2838 2011-09-02 Robert Dewar <dewar@adacore.com>
2839
2840 * sem_prag.adb, sem_util.adb, sem_ch6.adb, prj-nmsc.adb,
2841 exp_ch3.adb: Minor reformatting.
2842
2843 2011-09-02 Vincent Celier <celier@adacore.com>
2844
2845 * prj-conf.adb (Add_Default_GNAT_Naming_Scheme): Declare "gcc"
2846 as the compiler driver so Is_Compilable returns True for sources.
2847 * prj-nmsc.adb (Override_Kind): When Kind is Sep, set the source
2848 for the body.
2849
2850 2011-09-02 Ed Schonberg <schonberg@adacore.com>
2851
2852 * sem_prag.adb (Analyze_PPC_In_Decl_Part): for a class-wide
2853 condition, a reference to a controlling formal must be interpreted
2854 as having the class-wide type (or an access to such) so that the
2855 inherited condition can be properly applied to any overriding
2856 operation (see ARM12 6.6.1 (7)).
2857
2858 2011-09-02 Tristan Gingold <gingold@adacore.com>
2859
2860 * init.c (__gnat_is_vms_v7): Fix case and add prototype
2861 for LIB$GETSYI.
2862
2863 2011-09-02 Javier Miranda <miranda@adacore.com>
2864
2865 * exp_ch3.adb (Expand_N_Object_Declaration): Do not copy the
2866 initializing expression of a class-wide interface object declaration
2867 if its type is limited.
2868
2869 2011-09-02 Johannes Kanig <kanig@adacore.com>
2870
2871 * sem_util.adb (Unique_Name): To obtain a unique name for enumeration
2872 literals, take into account the type name; the type is *not*
2873 the scope for an enumeration literal.
2874
2875 2011-09-02 Ed Schonberg <schonberg@adacore.com>
2876
2877 * sem_ch6.adb (Check_Overriding_Indicator): add special check
2878 to reject an overriding indicator on a user-defined Adjust
2879 subprogram for a limited controlled type.
2880
2881 2011-09-02 Ed Schonberg <schonberg@adacore.com>
2882
2883 * sem_res.adb (Resolve_Actuals): add missing call to Resolve
2884 for an actual that is a function call returning an unconstrained
2885 limited controlled type.
2886
2887 2011-09-02 Tristan Gingold <gingold@adacore.com>
2888
2889 * g-socthi-vms.adb (c_sendmsg, c_recvmsg): Use unpacked msg if on vms 7
2890
2891 2011-09-02 Johannes Kanig <kanig@adacore.com>
2892
2893 * alfa.ads (Name_Of_Heap_Variable): Change value of the HEAP variable
2894 from "HEAP" to __HEAP Change comment that refers to that variable
2895 * put_alfa.adb: Change comment that refers to that variable
2896
2897 2011-09-02 Robert Dewar <dewar@adacore.com>
2898
2899 * exp_ch4.adb, exp_ch6.adb, prj-nmsc.adb: Minor reformatting.
2900
2901 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
2902
2903 * exp_util.adb (Extract_Renamed_Object): Renamed to
2904 Find_Renamed_Object. This routine has been reimplemented and now uses
2905 tree traversal to locate a renamed object.
2906 (Is_Aliased): Replace call to Extract_Renamed_Object with
2907 Find_Renamed_Object.
2908
2909 2011-09-02 Tristan Gingold <gingold@adacore.com>
2910
2911 * init.c: (__gnat_is_vms_v7): New function.
2912
2913 2011-09-02 Olivier Hainque <hainque@adacore.com>
2914
2915 * tracebak.c (STOP_FRAME, ppc elf/vxworks case): Stop on frames
2916 that have a misaligned backchain, necessarily bogus.
2917
2918 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
2919
2920 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not create
2921 TSS routine Finalize_Address when compiling in Alfa mode.
2922 (Expand_Freeze_Record_Type): Do not create TSS routine
2923 Finalize_Address when compiling in Alfa mode.
2924 * exp_ch4.adb (Expand_Allocator_Expression): Do not produce a
2925 call to Set_Finalize_Address in Alfa mode because Finalize_Address is
2926 not built.
2927 (Expand_N_Allocator): Do not produce a call to
2928 Set_Finalize_Address in Alfa mode because Finalize_Address is not built.
2929 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not
2930 produce a call to primitive Set_Finalize_Address in Alfa mode because
2931 Finalize_Address is not built.
2932 * exp_ch7.adb (Build_Finalization_Master): Do not create
2933 finalization masters in Afa mode since they are not needed.
2934 (Build_Finalizer): Do not create scope and library-level
2935 finalizers in Alfa mode since they are not needed.
2936 * exp_util.adb (Build_Allocate_Deallocate_Proc): Do not expand
2937 "new" and "free" when applied to controlled objects in Alfa mode since
2938 this is not needed.
2939
2940 2011-09-02 Vincent Celier <celier@adacore.com>
2941
2942 * prj-nmsc.db: (Check_Stand_Alone_Library): For SALs, allow
2943 only library names with the syntax of Ada identifiers, to avoid errors
2944 when compiling the binder generated files.
2945 * projects.texi: Document restriction on SAL library names
2946
2947 2011-09-02 Thomas Quinot <quinot@adacore.com>
2948
2949 * a-chtgbo.adb: Minor comment fix.
2950
2951 2011-09-02 Robert Dewar <dewar@adacore.com>
2952
2953 * lib-xref.adb: Minor reformatting
2954
2955 2011-09-02 Vincent Celier <celier@adacore.com>
2956
2957 * bindusg.adb, clean.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
2958 gnatls.adb, gnatname.adb, gnatxref.adb, gprep.adb, makeusg.adb: Add
2959 --version and --help in usage.
2960 * switch.ads, switch.adb (Display_Usage_Version_And_Help): New procedure
2961
2962 2011-09-02 Bob Duff <duff@adacore.com>
2963
2964 * lib-xref.adb: (Hash): Avoid use of 'Mod attribute, because old
2965 compilers don't understand it.
2966
2967 2011-09-02 Gary Dismukes <dismukes@adacore.com>
2968
2969 * exp_attr.adb (Expand_N_Attribute_Reference): Pass the
2970 underlying subtype rather than its base type on the call to
2971 Build_Record_Or_Elementary_Input_Function, so that any
2972 constraints on a discriminated subtype will be available for
2973 doing the check required by AI05-0192.
2974 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function):
2975 If the prefix subtype of the 'Input attribute is a constrained
2976 discriminated subtype, then check each constrained discriminant value
2977 against the corresponding value read from the stream.
2978
2979 2011-09-02 Yannick Moy <moy@adacore.com>
2980
2981 * usage.adb, warnsw.adb, sem_ch6.adb, opt.ads: Disable by default
2982 warnings on suspicious contracts, and enable them with -gnatwa.
2983
2984 2011-09-02 Robert Dewar <dewar@adacore.com>
2985
2986 * exp_util.adb, exp_ch9.adb, sem_attr.adb, sem_ch6.adb: Minor
2987 reformatting.
2988
2989 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
2990
2991 * exp_ch9.adb (Install_Private_Data_Declarations): Add guards
2992 which ensure that restriction No_Dynamic_Attachment has not been
2993 violated.
2994 (Make_Initialize_Protection): Protected types with attach or
2995 interrupt handlers must not violate restriction No_Dynamic_Attachment.
2996 * exp_util.adb (Corresponding_Runtime_Package): Add a guard
2997 which ensures that restriction No_Dynamic_Attachment has not been
2998 violated.
2999 * sem_attr.adb: (Eval_Attribute): Transform
3000 VAX_Float_Type'First and 'Last into references to
3001 the temporaries which store the corresponding bounds. The
3002 transformation is needed since the back end cannot evaluate
3003 'First and 'Last on VAX.
3004 (Is_VAX_Float): New routine.
3005
3006 2011-09-02 Ed Schonberg <schonberg@adacore.com>
3007
3008 * sem_ch12.adb (Analyze_Subprogram_Instantiation): If the
3009 generic unit is not intrinsic and has an explicit convention,
3010 the instance inherits it.
3011
3012 2011-09-02 Robert Dewar <dewar@adacore.com>
3013
3014 * prj-dect.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, prj-tree.adb,
3015 prj.adb, prj.ads, sem_ch5.adb: Minor reformatting.
3016
3017 2011-09-02 Thomas Quinot <quinot@adacore.com>
3018
3019 * sem_attr.adb (Analyze_Attribute, case Unrestriced_Access):
3020 Guard against a prefix that is an N_Has_Entity but has no
3021 associated entity.
3022
3023 2011-09-02 Yannick Moy <moy@adacore.com>
3024
3025 * lib-xref-alfa.adb (Is_Alfa_Reference): Ignore IN parameters in Alfa
3026 references.
3027
3028 2011-09-02 Yannick Moy <moy@adacore.com>
3029
3030 * opt.ads (Warn_On_Suspicious_Contract): New warning flag.
3031 * sem_ch3.adb (Analyze_Declarations): Call checker for suspicious
3032 contracts.
3033 * sem_ch6.adb, sem_ch6.ads (Check_Subprogram_Contract): New
3034 procedure looking for suspicious postconditions.
3035 * usage.adb (Usage): New options -gnatw.t and -gnatw.T.
3036 * warnsw.adb (Set_Dot_Warning_Switch): Take into account new
3037 options -gnatw.t and -gnatw.T.
3038
3039 2011-09-02 Pascal Obry <obry@adacore.com>
3040
3041 * prj.adb: Minor code refactoring. Move check for null project in
3042 Project_Changed.
3043 * projects.texi: Fix minor typos.
3044
3045 2011-09-02 Ed Schonberg <schonberg@adacore.com>
3046
3047 * sem_ch5.adb (Analyze_Iterator_Specification): If the domain
3048 of iteration is an expression, its value must be captured in a
3049 renaming declaration, so that modification of the elements is
3050 propagated to the original container.
3051
3052 2011-09-02 Pascal Obry <obry@adacore.com>
3053
3054 * prj-proc.adb, prj.adb, makeutl.adb, makeutl.ads, prj-dect.adb,
3055 prj-nmsc.adb, prj-util.adb, prj-conf.adb, prj-env.adb,
3056 prj-tree.adb: Minor reformatting and style fixes.
3057
3058 2011-09-02 Robert Dewar <dewar@adacore.com>
3059
3060 * s-rident.ads: Add new restriction No_Implicit_Aliasing
3061 * sem_attr.adb: (Analyze_Access_Attribute): Deal with
3062 No_Implicit_Aliasing
3063 (Analyze_Attribute, case Address): ditto
3064 (Analyze_Attribute, case Unrestricted_Access): ditto
3065 * sem_util.ads, sem_util.adb: (Is_Aliased_View): Handle
3066 No_Implicit_Aliasing restriction.
3067 * gnat_rm.texi: Add documentation for No_Implicit_Aliasing
3068
3069 2011-09-02 Ed Schonberg <schonberg@adacore.com>
3070
3071 * exp_util.adb: (Possible_Bit_Aligned_Object): If the object
3072 is an unchecked conversion, apply test to its expression.
3073
3074 2011-09-02 Javier Miranda <miranda@adacore.com>
3075
3076 * sem_ch3.adb (Check_Abstract_Overriding): When
3077 traversing the chain of aliased subprograms avoid reporting a
3078 redundant error on the current entity.
3079
3080 2011-09-02 Sergey Rybin <rybin@adacore.com>
3081
3082 * gnat_ugn.texi: Minor clean up.
3083
3084 2011-09-02 Bob Duff <duff@adacore.com>
3085
3086 * s-htable.adb (Set_If_Not_Present): Use renaming
3087 instead of ":=", because the type Key is limited in the generic (even
3088 if not in the instances).
3089
3090 2011-09-02 Robert Dewar <dewar@adacore.com>
3091
3092 * exp_util.adb, sem_ch10.adb, sem_attr.adb, s-htable.adb,
3093 g-comlin.adb, g-comlin.ads, lib-xref-alfa.adb, lib-xref.adb: Minor
3094 reformatting.
3095
3096 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
3097
3098 * sem_ch3.adb: (Set_Anonymous_Type): Associate the itype of an
3099 inherited component with the enclosing derived type. Code reformatting.
3100
3101 2011-09-02 Gary Dismukes <dismukes@adacore.com>
3102
3103 * checks.adb: (Determine_Range): Add test of OK1 to prevent the early
3104 return done when overflow checks are enabled, since comparisons against
3105 Lor and Hir should not be done when OK1 is False.
3106
3107 2011-09-02 Gary Dismukes <dismukes@adacore.com>
3108
3109 * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
3110 Add new formal Master_Exp. When present, add that expression to the
3111 call as an extra actual.
3112 (Make_Build_In_Place_Call_In_Object_Declaration): Add variable
3113 Fmaster_Actual and in the case of a BIP call initializing a return
3114 object of an enclosing BIP function set it to a
3115 new reference to the implicit finalization master
3116 formal of the enclosing function. Fmaster_Actual is
3117 then passed to the new formal Master_Exp on the call to
3118 Add_Finalization_Master_Actual_To_Build_ In_Place_Call. Move
3119 initializations of Enclosing_Func to its declaration.
3120
3121 2011-09-02 Thomas Quinot <quinot@adacore.com>
3122
3123 * csets.ads: Minor reformatting
3124
3125 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
3126
3127 * exp_aggr.adb: (Get_Constraint_Association): Add code to retrieve
3128 the full view of a private type coming from an instantiation.
3129 * exp_ch4.adb: (Current_Anonymous_Master): Reimplement the search
3130 loop to iterate over the declarations rather than use the
3131 First_Entity / Next_Entity scheme.
3132
3133 2011-09-02 Ed Schonberg <schonberg@adacore.com>
3134
3135 * sem_attr.adb: (Analyze_Attribute, case 'Range): when expanding
3136 X'range (N) into X'First (N) .. X'Last (N), do not share the
3137 dimension indicator N, if present. Even though it is a static
3138 constant, its source location may be modified when printing
3139 expanded code under -gnatDL, and node sharing will lead to chaos
3140 in Sprint on large files, by generating a sloc value that does
3141 not correspond to any source file.
3142
3143 2011-09-02 Bob Duff <duff@adacore.com>
3144
3145 * einfo.adb: (Has_Xref_Entry): Do not call
3146 Implementation_Base_Type. Lib.Xref has been
3147 rewritten to avoid the need for it, and it was costly.
3148 * s-htable.ads,s-htable.adb: (Present,Set_If_Not_Present): New
3149 functions in support of efficient xref.
3150 * lib-xref-alfa.adb: Misc changes related to Key component of
3151 type Xref_Entry.
3152 * lib-xref.adb: (Add_Entry,etc): Speed improvement.
3153 (New_Entry): Call Implementation_Base_Type, because Has_Xref_Entry
3154 no longer does. This is the one place where it is needed.
3155
3156 2011-09-02 Johannes Kanig <kanig@adacore.com>
3157
3158 * g-comlin.adb (Getopt): New optional argument Concatenate to have
3159 similar interface as the other Getopt function.
3160
3161 2011-09-02 Hristian Kirtchev <kirtchev@adacore.com>
3162
3163 * exp_ch4.adb: (Expand_Allocator_Expression): Do not generate
3164 a call to Set_Finalize_Address if there is no allocator available.
3165 * exp_util.adb: (Build_Allocate_Deallocate_Proc): Account for
3166 a case of allocator expansion where the allocator is not expanded but
3167 needs a custom allocate routine. Code reformatting.
3168 (Is_Finalizable_Transient): Remove local variables Has_Rens and
3169 Ren_Obj. Code reformatting.
3170 (Is_Renamed): Renamed to Is_Aliased. Add code to detect aliasing
3171 through the use of 'reference.
3172 * sem_ch4.adb: (Analyze_Allocator): Detect allocators generated
3173 as part of build-in-place expansion. They are intentionally marked as
3174 coming from source, but their parents are not.
3175
3176 2011-09-02 Ed Schonberg <schonberg@adacore.com>
3177
3178 * sem_ch10.adb (Analyze_With_Clause): If the library unit
3179 is the generated subprogram declaration for a child unit body
3180 that acts as spec, use the original body in the with_clause,
3181 to prevent binding errors.
3182
3183 2011-09-02 Vincent Celier <celier@adacore.com>
3184
3185 * gnat_ugn.texi: Adapt documentation of -gnateInnn to new VMS
3186 qualifier /MULTI_UNIT_INDEX=
3187
3188 2011-09-02 Johannes Kanig <kanig@adacore.com>
3189
3190 * g-comlin.adb (Getopt): Return when switch is dealt with automatically,
3191 instead of calling the callback function
3192
3193 2011-09-02 Robert Dewar <dewar@adacore.com>
3194
3195 * prj-proc.adb, prj.ads, sem_util.adb, s-taprop-linux.adb,
3196 prj-nmsc.adb, prj-util.ads, prj-env.adb: Minor reformatting.
3197
3198 2011-09-02 Vincent Celier <celier@adacore.com>
3199
3200 * prj-nmsc.adb: (Find_Sources): When the list of sources is
3201 explicitly declared in an extending project, do not warn if a source
3202 for an inherited naming exception is not found.
3203
3204 2011-09-02 Gary Dismukes <dismukes@adacore.com>
3205
3206 * exp_ch6.adb: (Is_Build_In_Place_Function_Call): Return False if
3207 expansion is inactive.
3208
3209 2011-09-02 Ed Schonberg <schonberg@adacore.com>
3210
3211 * sem_util.adb (Note_Possible_Modification): If the entity
3212 being modified is the renaming generated for an Ada2012 iterator
3213 element, the enclosing container or array is modified as well.
3214
3215 2011-09-02 Jose Ruiz <ruiz@adacore.com>
3216
3217 * s-taprop-linux.adb (Initialize_Lock, Initialize_TCB,
3218 Initialize): Define and initialize the
3219 mutex attributes and condition variable attributes locally.
3220
3221 2011-09-02 Vincent Celier <celier@adacore.com>
3222
3223 * prj-nmsc.adb (Check_File): Mark as Locally_Removed a naming
3224 exception replaced in an extending project.
3225 (Check_Object): No error when the other source is locally removed.
3226
3227 2011-09-02 Yannick Moy <moy@adacore.com>
3228
3229 * exp_ch6.adb (Is_Build_In_Place_Function_Call): in Alfa mode, allow
3230 unresolved calls.
3231
3232 2011-08-31 Arnaud Charlet <charlet@adacore.com>
3233
3234 * gcc-interface/Makefile.in: Clean up handling of x86 and x86-64
3235 run-time files.
3236 * gcc-interface/Make-lang.in: Update dependencies.
3237
3238 2011-09-01 Robert Dewar <dewar@adacore.com>
3239
3240 * sem_ch3.adb, s-taprop-linux.adb, gnatls.adb: Minor reformatting.
3241
3242 2011-09-01 Jose Ruiz <ruiz@adacore.com>
3243
3244 * adaint.h (__gnat_cpu_free): Fix the name of this profile.
3245 * adaint.c (__gnat_cpu_alloc, __gnat_cpu_alloc_size, __gnat_cpu_free,
3246 __gnat_cpu_zero, __gnat_cpu_set): Create version of these subprograms
3247 specific for systems where their glibc version does not define the
3248 routines to handle dynamically allocated CPU sets.
3249
3250 2011-09-01 Vincent Celier <celier@adacore.com>
3251
3252 * prj-proc.adb, prj.ads, prj-nmsc.adb, prj-util.adb, prj-util.ads,
3253 prj-env.adb: Implement inheritance of naming exceptions in extending
3254 projects.
3255
3256 2011-09-01 Romain Berrendonner <berrendo@adacore.com>
3257
3258 * gnatls.adb: Display simple message instead of content of
3259 gnatlic.adl.
3260
3261 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
3262
3263 * sem_ch3.adb: (Build_Derived_Record_Type) Remove the kludgy update of
3264 access discriminant and anonymous access component scopes.
3265 (Inherit_Component): Reuse the itype of an access discriminant
3266 or anonymous access component by copying it in order to set the proper
3267 scope. This is done only when the parent and the derived type
3268 are in different scopes.
3269 (Set_Anonymous_Etype): New routine.
3270
3271 2011-09-01 Robert Dewar <dewar@adacore.com>
3272
3273 * a-convec.adb: Minor reformatting throughout.
3274
3275 2011-09-01 Jose Ruiz <ruiz@adacore.com>
3276
3277 * adaint.c, adaint.h (__gnat_cpu_alloc, __gnat_cpu_alloc_size,
3278 __gnat_cpu_set_free): Create these wrappers around the CPU_ALLOC,
3279 CPU_ALLOC_SIZE and CPU_FREE linux macros.
3280 (__gnat_cpu_zero, __gnat_cpu_set): Use the CPU_ZERO_S and
3281 CPU_SET_S respectively because we are now using dynamically allocated
3282 CPU sets which are more portable across different glibc versions.
3283 * s-osinte-linux.ads (cpu_set_t_ptr, CPU_ALLOC, CPU_ALLOC_SIZE,
3284 CPU_FREE): Add this type and subprograms to be able to create cpu_set_t
3285 masks dynamically according to the number of processors in the target
3286 platform.
3287 (CPU_ZERO, CPU_SET): They are now mapped to the CPU_ZERO_S and CPU_SET_S
3288 respectively, so we need to pass the size of the masks as
3289 parameters.
3290 * s-taprop-linux.adb (Create_Task, Set_Task_Affinity): Use dynamically
3291 created cpu_set_t masks
3292 with the number of processors available in the target platform,
3293 instead of static bit arrays. It enhances portability because
3294 it uses the information from the target platform.
3295 * sem_ch8.adb: (Attribute_Renaming): When checking whether we
3296 are using a restricted run-time library, use the flag
3297 Configurable_Run_Time_Mode instead of Restricted_Profile.
3298
3299 2011-09-01 Vincent Celier <celier@adacore.com>
3300
3301 * ug_words: Add /MULTI_UNIT_INDEX= -> -gnateI
3302 * vms_data.ads: Add new VMS qualifier equivalent for -gnateInnn
3303
3304 2011-09-01 Nicolas Roche <roche@adacore.com>
3305
3306 * adaint.c (__gnat_tmp_name): Don't use tmpnam function from the system
3307 on VxWorks in kernel mode.
3308
3309 2011-09-01 Jose Ruiz <ruiz@adacore.com>
3310
3311 * s-taprop-linux.adb (Create_Task, Set_Task_Affinity): Use the linux
3312 macros for handling CPU sets (CPU_ZERO, CPU_SET) instead of modifying
3313 directly the bit array.
3314 * s-osinte-linux.ads (CPU_ZERO, CPU_SET): Import these wrappers around
3315 the linux macros with the same name.
3316 * adaint.h, adaint.c (__gnat_cpu_zero, __gnat_cpu_set): Create these
3317 wrappers around the CPU_ZERO and CPU_SET linux macros.
3318
3319 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
3320
3321 * exp_ch7.adb (Find_Insertion_List): Removed.
3322 (Process_Transient_Objects): Insert the declarations of the hook
3323 access type and the hook object before the associated transient object.
3324
3325 2011-09-01 Jose Ruiz <ruiz@adacore.com>
3326
3327 * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
3328 package System.Aux_Dec when using restricted run-time libraries which
3329 do not have this package.
3330
3331 2011-09-01 Tristan Gingold <gingold@adacore.com>
3332
3333 * s-vaflop-vms-alpha.adb: Remove pragma optimize, useless.
3334
3335 2011-09-01 Bob Duff <duff@adacore.com>
3336
3337 * sem_attr.adb (Analyze_Access_Attribute): Do not call
3338 Kill_Current_Values for P'Unrestricted_Access, where P is library level
3339
3340 2011-09-01 Thomas Quinot <quinot@adacore.com>
3341
3342 * exp_ch5.adb: Minor reformatting
3343 * gnat_ugn.texi: Fix minor typos.
3344 * gcc-interface/Make-lang.in: Update dependencies.
3345
3346 2011-09-01 Robert Dewar <dewar@adacore.com>
3347
3348 * inline.adb, sem_aggr.adb: Minor reformatting.
3349
3350 2011-09-01 Ed Schonberg <schonberg@adacore.com>
3351
3352 * a-convec.adb: Proper handling of cursors for Ada2012 iterators.
3353
3354 2011-09-01 Robert Dewar <dewar@adacore.com>
3355
3356 * prj-proc.adb, exp_ch6.adb, prj-env.adb: Minor reformatting.
3357
3358 2011-09-01 Bob Duff <duff@adacore.com>
3359
3360 * sem_aggr.adb (Resolve_Aggregate): Need to treat "in instance
3361 body" the same as "in inlined body", because visibility shouldn't
3362 apply there.
3363
3364 2011-09-01 Eric Botcazou <ebotcazou@adacore.com>
3365
3366 * inline.adb (Add_Inlined_Body): Refine previous change.
3367
3368 2011-09-01 Gary Dismukes <dismukes@adacore.com>
3369
3370 * exp_ch6.ads (Needs_BIP_Alloc_Form): New utility function.
3371 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
3372 Test for case where call
3373 initializes an object of a return statement before testing for
3374 a constrained call, to ensure that all such cases get handled
3375 by simply passing on the caller's parameters. Also, in that
3376 case call Needs_BIP_Alloc_Form to determine whether to pass on
3377 the BIP_Alloc_Form parameter of the enclosing function rather
3378 than testing Is_Constrained. Add similar tests for the return
3379 of a BIP call to later processing to ensure consistent handling.
3380 (Needs_BIP_Alloc_Form): New utility function.
3381 * sem_ch6.adb: (Create_Extra_Formals): Replace test for adding
3382 a BIP_Alloc_Form formal with call to new utility function
3383 Needs_BIP_Alloc_Form.
3384
3385 2011-09-01 Pascal Obry <obry@adacore.com>
3386
3387 * prj-part.adb: Minor reformatting.
3388
3389 2011-09-01 Vincent Celier <celier@adacore.com>
3390
3391 * prj-env.adb (Create_Mapping_File.Process): Encode the upper
3392 half character in the unit name.
3393
3394 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
3395
3396 * exp_ch4.adb: Minor code and comment reformatting.
3397
3398 2011-09-01 Thomas Quinot <quinot@adacore.com>
3399
3400 * exp_ch6.adb (Expand_Inlined_Call): Remove redundant tests
3401 for Is_Limited_Type and Is_Tagged_Type in condition checking
3402 for by-reference type.
3403 * inline.adb (Add_Inlined_Body): Only exclude init_procs. Other
3404 subprograms may have a completion because of a previous
3405 Inline_Always clause, but the enclosing package must be marked
3406 inlined for the subprogram body to become visible to the backend.
3407
3408 2011-09-01 Thomas Quinot <quinot@adacore.com>
3409
3410 * sem_aux.adb, exp_ch4.adb: Minor reformatting
3411
3412 2011-09-01 Pascal Obry <obry@adacore.com>
3413
3414 * prj-proc.adb, prj.ads, sinput-p.adb: Minor reformatting.
3415
3416 2011-09-01 Ed Schonberg <schonberg@adacore.com>
3417
3418 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Generate references to
3419 the formals of a subprogram stub that acts as a spec.
3420
3421 2011-09-01 Ed Schonberg <schonberg@adacore.com>
3422
3423 * exp_ch6.adb (Expand_Inlined_Call): If an actual is a by_reference
3424 type, declare a renaming for it, not an object declaration.
3425
3426 2011-09-01 Yannick Moy <moy@adacore.com>
3427
3428 * ali-util.adb, ali-util.ads (Read_Withed_ALIs): Add parameter
3429 Ignore_Errors to ignore failures to read ALI files when True.
3430
3431 2011-09-01 Javier Miranda <miranda@adacore.com>
3432
3433 * exp_ch3.adb (Expand_N_Object_Declaration): Handle non-default
3434 constructor calls associated with non-tagged record types.
3435
3436 2011-09-01 Robert Dewar <dewar@adacore.com>
3437
3438 * g-socthi-vms.adb: Minor reformatting.
3439
3440 2011-09-01 Nicolas Roche <roche@adacore.com>
3441
3442 * sysdep.c: Don't use macro functions for stdio functions on VxWorks
3443 in order to avoid impact of imcompatible changes.
3444 * cstreams.c: Likewise
3445 * cio.c: Likewise
3446 * aux-io.c: Likewise
3447
3448 2011-09-01 Yannick Moy <moy@adacore.com>
3449
3450 * lib-writ.adb (Write_With_Lines): Always output complete information
3451 on "with" line in Alfa mode, as this is required by formal verification
3452 back-end.
3453
3454 2011-09-01 Tristan Gingold <gingold@adacore.com>
3455
3456 * g-socthi-vms.adb: Add comments.
3457
3458 2011-09-01 Pascal Obry <obry@adacore.com>
3459
3460 * prj.ads: Minor reformatting.
3461
3462 2011-09-01 Vincent Celier <celier@adacore.com>
3463
3464 * prj-env.adb (Create_Config_Pragmas_File.Check): Put all naming
3465 exceptions in the config pragmas file.
3466
3467 2011-09-01 Tristan Gingold <gingold@adacore.com>
3468
3469 * gnat_ugn.texi: Document GNAT_STACK_SIZE on IVMS.
3470
3471 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
3472
3473 * exp_ch7.adb (Find_Insertion_List): New routine.
3474 (Process_Transient_Objects): Add code to handle the abnormal
3475 finalization of a controlled transient associated with a subprogram
3476 call. Since transients are cleaned up right after the associated
3477 context, an exception raised during a subprogram call may bypass the
3478 finalization code.
3479
3480 2011-09-01 Robert Dewar <dewar@adacore.com>
3481
3482 * exp_ch6.adb (Expand_Call): Check actual for aliased parameter is
3483 aliased.
3484
3485 2011-09-01 Robert Dewar <dewar@adacore.com>
3486
3487 * exp_ch4.adb, a-exexda.adb: Minor reformatting.
3488
3489 2011-09-01 Robert Dewar <dewar@adacore.com>
3490
3491 * s-taskin.ads, s-tassta.adb, sem_ch13.adb: Minor reformatting.
3492
3493 2011-09-01 Thomas Quinot <quinot@adacore.com>
3494
3495 * Makefile.rtl: Move s-oscons.o from GNATRTL_TASKING_OBJS to
3496 GNATRTL_NONTASKING_OBJS.
3497
3498 2011-09-01 Robert Dewar <dewar@adacore.com>
3499
3500 * einfo.ads (Is_Aliased): Fix existing documentation and add note on
3501 possibility of this flag being set for formals in Ada 2012 mode.
3502 * par-ch6.adb (P_Formal_Part): Handle aliased for parameters for Ada
3503 2012.
3504 * sem_ch6.adb (Process_Formals): Handle aliased parameters in Ada 2012
3505 mode.
3506 * sinfo.adb (Aliased_Present): Allowed in N_Parameter_Specification for
3507 Ada 2012.
3508 * sinfo.ads (Aliased_Present): Allowed in N_Parameter_Specification for
3509 Ada 2012.
3510
3511 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
3512
3513 * exp_ch4.adb (Find_Insertion_Node): New routine. Determines the proper
3514 insertion node in a tree of nested Expression_With_Actions nodes.
3515 (Process_Transient_Object): In the case where a complex if statement
3516 has been converted into nested Expression_With_Actions nodes, the
3517 "hook" object and the associated access type must be inserted before
3518 the top most Expression_With_Actions.
3519
3520 2011-09-01 Robert Dewar <dewar@adacore.com>
3521
3522 * a-cbprqu.adb, a-cbprqu.ads, a-cuprqu.adb, a-cuprqu.ads,
3523 a-cbsyqu.adb, a-cbsyqu.ads: Minor reformatting.
3524
3525 2011-09-01 Ed Schonberg <schonberg@adacore.com>
3526
3527 * sem_attr.adb: Conditionalize aliasing predicates to Ada2012.
3528
3529 2011-09-01 Jose Ruiz <ruiz@adacore.com>
3530
3531 * aspects.ads (Aspect_Id, Aspect_Argument, Aspect_Names): Add the CPU
3532 aspect.
3533 * aspects.adb (Canonical_Aspect): Add entry for the CPU aspect.
3534 * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze the CPU aspect
3535 in a similar way as we do for the Priority or Dispatching_Domain aspect.
3536 * s-mudido-affinity.adb (Dispatching_Domain_Tasks,
3537 Dispatching_Domains_Frozen): Move this local data to package
3538 System.Tasking because with the CPU aspect we need to have access
3539 to this data when creating the task in System.Tasking.Stages.Create_Task
3540 * s-taskin.ads (Dispatching_Domain_Tasks, Dispatching_Domains_Frozen):
3541 Move these variables from the body of
3542 System.Multiprocessors.Dispatching_Domains because with the CPU aspect
3543 we need to have access to this data when creating the task in
3544 System.Tasking.Stages.Create_Task.
3545 * s-taskin.adb (Initialize): Signal the allocation of the environment
3546 task to a CPU, if any, so that we know whether the CPU can be
3547 transferred to a different dispatching domain.
3548 * s-tassta.adb (Create_Task): Check whether the CPU to which this task
3549 is being allocated belongs to the dispatching domain where the task
3550 lives. Signal the allocation of the task to a CPU, if any, so that we
3551 know whether the CPU can be transferred to a different dispatching
3552 domain.
3553
3554 2011-09-01 Ed Schonberg <schonberg@adacore.com>
3555
3556 * exp_attr.adb, sem_attr.adb, snames.ads-tmpl: Implementation of
3557 attributes Same_Storage and Overlaps_Storage.
3558
3559 2011-09-01 Hristian Kirtchev <kirtchev@adacore.com>
3560
3561 * exp_strm.adb: Remove with and use clause for Opt.
3562 (Build_Array_Input_Function): Remove the version-dependent generation
3563 of the return statement. The Ada 2005 tree is now the default.
3564
3565 2011-09-01 Yannick Moy <moy@adacore.com>
3566
3567 * put_alfa.adb: Unconditionnally write files in Alfa section, so that
3568 it is never empty when compiling in Alfa mode.
3569
3570 2011-09-01 Robert Dewar <dewar@adacore.com>
3571
3572 * sem_aggr.adb, sem_ch3.adb, a-direct.adb, s-taprop-vxworks.adb,
3573 comperr.adb, exp_ch9.adb, exp_pakd.adb, sem_ch12.adb, freeze.adb,
3574 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
3575 gnat1drv.adb, a-rbtgbo.adb, exp_dist.adb: Minor reformatting
3576
3577 2011-09-01 Matthew Heaney <heaney@adacore.com>
3578
3579 * Makefile.rtl, impunit.adb: Add a-csquin.ads, a-cusyqu.ad[sb],
3580 a-cuprqu.ad[sb], a-cbsyqu.ad[sb], a-cbprqu.ad[sb]
3581 * a-csquin.ads: New Ada 2012 unit that specifies the queue interface
3582 * a-cusyqu.ads, a-cusyqu.adb: New Ada 2012 unit that specifies the
3583 unbounded queue container.
3584 * a-cbsyqu.ads, a-cbsyqu.adb: New Ada 2012 unit that specifies the
3585 bounded queue container.
3586 * a-cuprqu.ads, a-cuprqu.adb: New Ada 2012 unit that specifies the
3587 unbounded priority queue container.
3588 * a-cbprqu.ads, a-cbprqu.adb: New Ada 2012 unit that specifies the
3589 bounded priority queue container.
3590
3591 2011-08-31 Pascal Obry <obry@adacore.com>
3592
3593 * a-direct.adb: Do not try to create an UNC path on Windows.
3594 (Create_Path): Skip leading computer name in UNC path if any.
3595
3596 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
3597
3598 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): Remove the
3599 version-dependent generation of the return statement. The Ada 2005 tree
3600 is now the default.
3601
3602 2011-08-31 Thomas Quinot <quinot@adacore.com>
3603
3604 * rtsfind.ads, exp_dist.adb (Find_Numeric_Representation): Predefined
3605 types Stream_Element_Offset and Storage_Offset have a different native
3606 type depending on whether the platform is 32 or 64 bits. When
3607 exchanging them, always convert to 64 bits.
3608
3609 2011-08-31 Yannick Moy <moy@adacore.com>
3610
3611 * debug.adb: Reserve debug option -gnatd.E for passing gnatprove option
3612 --force-alfa to gnat2why.
3613
3614 2011-08-31 Ed Schonberg <schonberg@adacore.com>
3615
3616 * sem_ch12.adb (Save_References): If the node has aspects, save
3617 references within the corresponding expressions in a separate step,
3618 because the aspects are not directly in the tree for the declaration
3619 to which they belong.
3620
3621 2011-08-31 Arnaud Charlet <charlet@adacore.com>
3622
3623 * freeze.adb (Freeze_Record_Type): Omit test on variable size component
3624 in CodePeer mode, since representation clauses are partially ignored.
3625 * gcc-interface/Make-lang.in: Update dependencies.
3626
3627 2011-08-31 Jose Ruiz <ruiz@adacore.com>
3628
3629 * s-taprop-vxworks.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
3630 s-taprop-solaris.adb (Create_Task): Not_A_Specific_CPU can be assigned
3631 to any dispatching domain.
3632
3633 2011-08-31 Thomas Quinot <quinot@adacore.com>
3634
3635 * exp_ch4.adb: Minor reformatting.
3636
3637 2011-08-31 Bob Duff <duff@adacore.com>
3638
3639 * sem_ch6.adb (Get_Generic_Parent_Type): Don't query Subtype_Indication
3640 on nodes for which it is not defined.
3641 (Is_Non_Overriding_Operation): Exit the loop when we find a generic
3642 parent type.
3643
3644 2011-08-31 Bob Duff <duff@adacore.com>
3645
3646 * sem_ch3.adb (Process_Full_View): Disable legality check if
3647 In_Instance, to avoid spurious errors.
3648 * sem_ch12.adb (Validate_Derived_Type_Instance): Disable legality check
3649 if In_Instance, to avoid spurious errors.
3650
3651 2011-08-31 Pascal Obry <obry@adacore.com>
3652
3653 * a-direct.adb: Use Dir_Seps everywhere to properly handle all
3654 directory speparators.
3655 (Compose): Use Dir_Seps to handle both forms.
3656 (Create_Path): Use Dir_Seps instead of explicit check, no semantic
3657 changes.
3658 (Extension): Use Dir_Seps to handle both forms.
3659
3660 2011-08-31 Pascal Obry <obry@adacore.com>
3661
3662 * prj-conf.adb: Minor reformatting.
3663
3664 2011-08-31 Jose Ruiz <ruiz@adacore.com>
3665
3666 * aspects.ads (Aspect_Id, Aspect_Argument, Aspect_Names): Add the
3667 dispatching domain aspect.
3668 * aspects.adb (Canonical_Aspect): Add entry for the dispatching domain
3669 aspect.
3670 * sem_ch13.adb (Analyze_Aspect_Specifications): Analyze the
3671 Dispatching_Domain aspect in a similar way as we do for the Priority
3672 aspect.
3673 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add the
3674 Dispatching_Domain component if a Dispatching_Domain pragma or aspect
3675 is present.
3676 (Make_Task_Create_Call): Add the Dispatching_Domain when creating a task
3677 * par-prag.adb (Prag): Add Pragma_Dispatching_Domain as a known pragma.
3678 * sem_prag.adb (Analyze_Pragma): Check the correctness of a pragma
3679 Dispatching_Domain and add it to the task definition.
3680 (Sig_Flags): Add Pragma_Dispatching_Domain.
3681 * rtsfind.ads, rtsfind.adb (RTU_Id, RE_Id, Get_Unit_Name): Add the
3682 support to find the types Dispatching_Domain and
3683 Dispatching_Domain_Access.
3684 * sinfo.ads, sinfo.adb (Has_Pragma_Dispatching_Domain,
3685 Set_Has_Pragma_Dispatching_Domain): Add these subprograms to set and
3686 query the availability of a pragma Dispatching_Domain.
3687 * snames.ads-tmpl (Name_uDispatching_Domain): Add this name required by
3688 the expander to pass the Dispatching_Domain when creating a task.
3689 (Name_Dispatching_Domain): Add this new name for a pragma.
3690 (Pragma_Id): Add the new Pragma_Dispatching_Domain.
3691 * s-tassta.ads, s-tassta.adb (Create_Task): Set the domain to which the
3692 task has been allocated at creation time.
3693 * s-tarest.adb (Create_Restricted_Task): The dispatching domain using
3694 Ravenscar is always null.
3695 * s-taskin.ads, s-taskin.adb (Initialize_ATCB): Set the domain to which
3696 the task has been allocated at creation time.
3697 * s-tporft.adb (Register_Foreign_Thread): A foreign task will not have
3698 a specific dispatching domain.
3699 * s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-vxworks.adb,
3700 s-taprop-mingw.adb (Create_Task): Check whether both Dispatching_Domain
3701 and CPU are specified for the task, and the CPU value is not contained
3702 within the range of processors for the domain.
3703
3704 2011-08-31 Vincent Celier <celier@adacore.com>
3705
3706 * make.adb (Original_Gcc) : New constant String_Access.
3707 (Gnatmake): For VM targets, do not use VM version of the compiler if
3708 --GCC= has been specified.
3709
3710 2011-08-31 Thomas Quinot <quinot@adacore.com>
3711
3712 * sem_ch5.adb: Minor reformatting.
3713
3714 2011-08-31 Ed Schonberg <schonberg@adacore.com>
3715
3716 * exp_pakd.adb (Convert_To_PAT_Type): If prefix is a function call, do
3717 not reanalyze it.
3718
3719 2011-08-31 Bob Duff <duff@adacore.com>
3720
3721 * exp_ch4.adb (Expand_N_Selected_Component): Use the full type, in case
3722 the access type is private; we don't care about privacy in expansion.
3723
3724 2011-08-31 Ed Schonberg <schonberg@adacore.com>
3725
3726 * sem_aggr.adb (Resolve_Aggregate): In an instance, ignore aggregate
3727 subcomponents tnat may be limited, because they originate in view
3728 conflicts. If the original aggregate is legal and the actuals are
3729 legal, the aggregate itself is legal.
3730
3731 2011-08-31 Matthew Heaney <heaney@adacore.com>
3732
3733 * a-rbtgbo.adb (Clear_Tree): Assert representation invariant for lock
3734 status.
3735
3736 2011-08-31 Ed Schonberg <schonberg@adacore.com>
3737
3738 * sem_ch5.adb: Set kind of loop parameter properly, to preserve all
3739 errors in B tests.
3740
3741 2011-08-31 Jose Ruiz <ruiz@adacore.com>
3742
3743 * sem_ch13.adb (Analyze_Aspect_Specifications): For the Priority and
3744 Interrupt_Priority aspects, force the analysis of the aspect expression
3745 (when building the equivalent pragma). Otherwise, its analysis is done
3746 too late, after the task or protected object has been created.
3747 * sem_ch9.adb (Analyze_Single_Protected_Declaration,
3748 Analyze_Single_Task_Declaration): Remove the code to move the aspects
3749 to the object declaration because they are needed in the type
3750 declaration.
3751
3752 2011-08-31 Robert Dewar <dewar@adacore.com>
3753
3754 * exp_ch5.adb, exp_ch7.ads, sem_ch5.adb, put_scos.adb, s-rannum.adb,
3755 a-rbtgbo.adb, exp_intr.adb, a-cbdlli.adb, a-cbdlli.ads: Minor
3756 reformatting.
3757
3758 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
3759
3760 * exp_util.adb (Find_Protection_Type): Do not look for fields _object
3761 if the corresponding type is malformed due to restriction violations.
3762
3763 2011-08-31 Robert Dewar <dewar@adacore.com>
3764
3765 * s-ransee.ads, s-ransee.adb: Minor reformatting.
3766
3767 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
3768
3769 * exp_ch4.adb (Expand_N_Allocator): Correct faulty condition which
3770 would cause the generation of Set_Finalize_Address if the target is a
3771 VM and the designated type is not derived from [Limited_]Controlled.
3772
3773 2011-08-31 Arnaud Charlet <charlet@adacore.com>
3774
3775 * comperr.adb, comperr.ads, gnat1drv.adb (Delete_SCIL_Files): New
3776 subprogram.
3777 (Compiler_Abort, Gnat1drv): Call Delete_SCIL_Files in codepeer mode in
3778 case of a compilation error.
3779
3780 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
3781
3782 * init.c (__gnat_error_handler): Standardize the stack overflow or
3783 erroneous memory access message.
3784 * seh_init.c (__gnat_SEH_error_handler): Standardize the stack overflow
3785 or erroneous memory access message.
3786
3787 2011-08-31 Robert Dewar <dewar@adacore.com>
3788
3789 * sem_ch4.adb: Minor reformatting.
3790 * sem_ch6.adb: Minor code reorganization (use Ekind_In).
3791
3792 2011-08-31 Thomas Quinot <quinot@adacore.com>
3793
3794 * scos.ads: Minor documentation clarification.
3795 * put_scos.adb: Do not generate SCO unit header line for a unit that
3796 has no SCO lines.
3797
3798 2011-08-31 Robert Dewar <dewar@adacore.com>
3799
3800 * a-rbtgbo.adb, alfa_test.adb: Minor reformatting.
3801
3802 2011-08-31 Tristan Gingold <gingold@adacore.com>
3803
3804 * exp_ch7.ads, exp_ch7.adb (Finalization_Exception_Data): New type to
3805 hold variables between these following subprograms.
3806 (Build_Exception_Handler, Build_Object_Declarations,
3807 Build_Raise_Statement): Use the above type as parameter.
3808 Make the above adjustments.
3809 * exp_intr.adb (Expand_Unc_Deallocation): Adjust.
3810
3811 2011-08-31 Pascal Obry <obry@adacore.com>
3812
3813 * projects.texi: Minor reformatting.
3814
3815 2011-08-31 Tristan Gingold <gingold@adacore.com>
3816
3817 * s-ransee.ads, s-ransee.adb: Add system.random_seed unit.
3818 * s-rannum.adb (Reset): Use Get_Seed from s-ransee.
3819
3820 2011-08-31 Ed Schonberg <schonberg@adacore.com>
3821
3822 * exp_ch5.adb: Minor code cleanup.
3823 * sem_ch5.adb (Analyze_Iteration_Scheme): Set ekind of loop variable to
3824 prevent cascaded errors.
3825 (Analyze_Loop_Statement): In semantics-only mode, introduce loop
3826 variable of an iterator specification in current scope.
3827 * sem_ch6.adb (Analyze_Return_Statement, Find_what_It_Apples_To): Skip
3828 postconditions on the stack, as they contain no return statements.
3829
3830 2011-08-31 Yannick Moy <moy@adacore.com>
3831
3832 * exp_alfa.adb (Expand_Alfa_N_Package_Declaration,
3833 Expand_Alfa_N_Subprogram_Body): Remove useless procedures which simply
3834 call Qualify_Entity_Names.
3835 (Expand_Alfa): call Qualify_Entity_Names in more cases
3836 * lib-xref-alfa.adb: Take into account system package.
3837 * sem_prag.adb Take into account restrictions in Alfa mode, contrary to
3838 CodePeer mode in which we are interested in finding bugs even if
3839 compiler cannot compile source.
3840 * sem_util.adb, sem_util.ads (Unique_Entity): Take into account case of
3841 deferred constant.
3842
3843 2011-08-31 Gary Dismukes <dismukes@adacore.com>
3844
3845 * sem_ch3.adb (Constrain_Concurrent): Retrieve Base_Type of the subtype
3846 denoted by the subtype mark to ensure getting the concurrent type in
3847 the case where the subtype mark denotes a private subtype of a
3848 concurrent type (needed when using -gnatc).
3849 (Process_Subtype): For the processing specific to type kinds, case on
3850 the Base_Type kind of the Subtype_Mark_Id, to handle cases where the
3851 subtype denotes a private subtype whose base type is nonprivate (needed
3852 for subtypes of private fulfilled by task types when compiling with
3853 -gnatc).
3854
3855 2011-08-31 Gary Dismukes <dismukes@adacore.com>
3856
3857 * sem_disp.adb (Check_Dispatching_Operation): Bypass registration of
3858 late primitives that override interface operations when the full
3859 expander is not active, to avoid blowups in Register_Primitive when
3860 types don't have associated secondary dispatch tables.
3861
3862 2011-08-31 Yannick Moy <moy@adacore.com>
3863
3864 * alfa_test.adb: Code clean up.
3865
3866 2011-08-31 Marc Sango <sango@adacore.com>
3867
3868 * restrict.adb (Check_SPARK_Restriction): Change Comes_From_Source (N)
3869 by Comes_From_Source (Original_Node (N)) in order to treat also the
3870 nodes which have been rewritten.
3871 * sem_ch4.adb (Analyze_Explicit_Dereference, Analyze_Slice): Guard the
3872 explicit dereference and slice violation in spark mode on the nodes
3873 coming only from the source code.
3874
3875 2011-08-31 Robert Dewar <dewar@adacore.com>
3876
3877 * exp_ch5.adb, exp_alfa.ads, prj.ads, sem_attr.adb,
3878 lib-xref-alfa.adb: Minor reformatting.
3879
3880 2011-08-31 Matthew Heaney <heaney@adacore.com>
3881
3882 * a-crbltr.ads (Tree_Type): Default-initialize the Nodes component.
3883
3884 2011-08-31 Javier Miranda <miranda@adacore.com>
3885
3886 * sem_ch4.adb (Try_Object_Operation): Addition of one formal to search
3887 only for class-wide subprograms conflicting with entities of concurrent
3888 tagged types.
3889
3890 2011-08-31 Matthew Heaney <heaney@adacore.com>
3891
3892 * a-rbtgbo.adb (Generic_Allocate): Initialize pointer components of
3893 node to null value.
3894
3895 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
3896
3897 * sem_ch12.adb (Insert_Freeze_Node_For_Instance): Provide a more
3898 general description of the routine.
3899
3900 2011-08-31 Ed Schonberg <schonberg@adacore.com>
3901
3902 * a-cbdlli.adb, a-cbdlli.ads: Add iterator machinery to bounded
3903 doubly-linked lists.
3904
3905 2011-08-31 Gary Dismukes <dismukes@adacore.com>
3906
3907 * exp_ch5.adb (Expand_N_Assignment_Statement): When a discriminant
3908 check is needed for a left-hand side that is a dereference, and the
3909 base type is private without discriminants (whereas the full type does
3910 have discriminants), an extra retrieval of the underlying type may be
3911 needed in the case where the subtype is a record subtype whose base
3912 type is private. Update comments.
3913
3914 2011-08-31 Javier Miranda <miranda@adacore.com>
3915
3916 * sem_ch4.adb (Try_Object_Operation): When a dispatching primitive is
3917 found check if there is a class-wide subprogram covering the primitive.
3918
3919 2011-08-31 Yannick Moy <moy@adacore.com>
3920
3921 * sem_res.adb: Further cases where full expansion test is needed,
3922 rather than expansion test.
3923
3924 2011-08-31 Pascal Obry <obry@adacore.com>
3925
3926 * prj-attr.adb: Fix Source_File_Switches attribute kind (must be a list)
3927
3928 2011-08-31 Ed Schonberg <schonberg@adacore.com>
3929
3930 * exp_ch5.adb: Handle iterators over derived container types.
3931
3932 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
3933
3934 * einfo.ads, einfo.adb: Add new flag Has_Anonymous_Master.
3935 (Has_Anonymous_Master): New routine.
3936 (Set_Has_Anonymous_Master): New routine.
3937 (Write_Entity_Flags): Add an entry for Has_Anonymous_Master.
3938 * exp_ch4.adb: Add with and use clause for Sem_Ch8.
3939 (Current_Anonymous_Master): New routine.
3940 (Current_Unit_First_Declaration): Removed.
3941 (Current_Unit_Scope): Removed.
3942 (Expand_N_Allocator): Anonymous access-to-controlled types now chain
3943 their objects on a per-unit heterogeneous finalization master.
3944
3945 2011-08-31 Matthew Heaney <heaney@adacore.com>
3946
3947 * a-cbhama.adb, a-cbhase.adb (Insert): Check for zero-length buckets
3948 array.
3949
3950 2011-08-31 Jose Ruiz <ruiz@adacore.com>
3951
3952 * s-taprop-linux.adb (Create_Task): Avoid changing the affinity mask
3953 when not needed.
3954
3955 2011-08-31 Gary Dismukes <dismukes@adacore.com>
3956
3957 * sem_disp.adb (Propagate_Tag): Return without propagating in the case
3958 where the actual is an unexpanded call to 'Input.
3959
3960 2011-08-31 Yannick Moy <moy@adacore.com>
3961
3962 * sem_ch4.adb: Code clean up.
3963
3964 2011-08-31 Yannick Moy <moy@adacore.com>
3965
3966 * exp_alfa.adb, exp_alfa.ads: Minor correction of copyright notice.
3967
3968 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
3969
3970 * exp_ch7.adb (Build_Array_Deep_Procs): Do not generate Deep_Finalize
3971 and TSS primitive Finalize_Address if finalization is suppressed.
3972 (Build_Record_Deep_Procs): Do not generate Deep_Finalize and TSS
3973 primitive Finalize_Address if finalization is suppressed.
3974
3975 2011-08-31 Jose Ruiz <ruiz@adacore.com>
3976
3977 * s-mudido-affinity.adb, s-taprop-linux.adb, s-taprop-mingw.adb,
3978 s-taprop-solaris.adb, s-taprop-vxworks.adb (Set_Task_Affinity): Make
3979 sure that the underlying task has already been created before trying
3980 to change its affinity.
3981 (Set_CPU): Use the term processor instead of CPU, as we do in
3982 Assign_Task.
3983
3984 2011-08-31 Vincent Celier <celier@adacore.com>
3985
3986 * prj-attr.adb: New Compiler attribute Source_File_Switches.
3987 * prj-nmsc.adb (Process_Compiler): Process attribute
3988 Source_File_Switches.
3989 * prj.ads (Language_Config): New name list component
3990 Name_Source_File_Switches.
3991 * snames.ads-tmpl (Name_Source_File_Switches): New standard name.
3992
3993 2011-08-31 Ed Schonberg <schonberg@adacore.com>
3994
3995 * sem_attr.adb (Analyze_Attribute, case 'Old): If prefix may be a
3996 discriminated component of an actual, expand at once to prevent
3997 ouf-of-order references with generated subtypes.
3998
3999 2011-08-31 Yannick Moy <moy@adacore.com>
4000
4001 * lib-xref-alfa.adb (Add_Alfa_Xrefs): Do not take into account read
4002 reference to operator in Alfa xrefs.
4003
4004 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
4005
4006 * sem_ch12.adb (Freeze_Subprogram_Body): Add code to handle the case
4007 where the parent instance was frozen before the current instance due to
4008 the presence of a source body. Update calls to Insert_After_Last_Decl.
4009 (Insert_After_Last_Decl): Renamed to Insert_Freeze_Node_For_Instance.
4010 Update the comment which illustrates the purpose of the routine.
4011 Package instances are now frozen by source bodies which appear after
4012 the instance. This ensures that entities coming from within the
4013 instance are available for use in the said bodies.
4014 (Install_Body): Add code to handle the case where the parent instance
4015 was frozen before the current instance due to the presence of a source
4016 body. Update calls to Insert_After_Last_Decl.
4017
4018 2011-08-31 Jose Ruiz <ruiz@adacore.com>
4019
4020 * s-taprop-linux.adb (Set_Task_Affinity): Avoid the use of anonymous
4021 access types.
4022 * affinity.c (__gnat_set_affinity_mask): Declare index variable.
4023
4024 2011-08-31 Yannick Moy <moy@adacore.com>
4025
4026 * sem_ch8.adb (Analyze_Subprogram_Renaming): Refine expander test in
4027 full-expander test.
4028 * alfa.adb, alfa.ads, alfa_test.adb, ali.adb, debug.adb, errout.adb,
4029 errout.ads, erroutc.adb, expander.adb, exp_ch4.adb, exp_ch7.adb,
4030 freeze.adb, get_alfa.adb, get_alfa.ads, gnat1drv.adb, lib-writ.adb,
4031 lib-writ.ads, lib-xref.adb, lib-xref.ads, lib-xref-alfa.adb, opt.adb,
4032 opt.ads, put_alfa.adb, put_alfa.ads, restrict.adb, sem_ch12.adb,
4033 sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4034 sem_prag.adb, sem_res.adb, sem_util.adb: Minor reformatting, renaming
4035 ALFA in Alfa (we dropped acronym).
4036 * einfo.adb (Primitive_Operations): Correctly return list of primitive
4037 operations in a case where it returned previously No_Elist.
4038
4039 2011-08-31 Robert Dewar <dewar@adacore.com>
4040
4041 * s-taprop-vxworks.adb, sem_ch5.adb, s-taprop-tru64.adb, exp_alfa.adb,
4042 s-taprop-vms.adb, bindgen.adb, s-mudido.adb, s-mudido.ads,
4043 sem_res.adb, expander.adb, s-taprop-mingw.adb, s-taprop-linux.adb,
4044 s-taprop-solaris.adb, s-mudido-affinity.adb, vms_conv.adb,
4045 s-taprop-irix.adb, s-taprop.ads, s-taskin.adb, s-taskin.ads,
4046 s-taprop-hpux-dce.adb, a-chtgbo.adb, s-taprop-posix.adb: Minor
4047 reformatting.
4048
4049 2011-08-31 Hristian Kirtchev <kirtchev@adacore.com>
4050
4051 * sem_ch12 (Check_Private_View): Revert previous change.
4052 * sem_res.adb (Conversion_Check): Do not emit the error message if the
4053 conversion is in a generic instance.
4054
4055 2011-08-31 Matthew Heaney <heaney@adacore.com>
4056
4057 * a-cbhase.adb (Symmetric_Difference): Dereference correct node array.
4058 * a-chtgbo.adb (Free): Allow 0 as index value.
4059
4060 2011-08-31 Matthew Heaney <heaney@adacore.com>
4061
4062 * a-cborma.adb (Insert): Add comment to explain why no element
4063 assignment.
4064
4065 2011-08-31 Gary Dismukes <dismukes@adacore.com>
4066
4067 * sem_util.adb (Find_Body_Discriminal): Test whether the scope of the
4068 spec discriminant is already a concurrent type, in which case just use
4069 it, otherwise fetch the Corresponding_Concurrent_Type as before.
4070
4071 2011-08-30 Eric Botcazou <ebotcazou@adacore.com>
4072
4073 * system-irix-n64.ads, system-linux-armeb.ads, system-linux-armel.ads,
4074 system-linux-mips.ads, system-linux-mipsel.ads,
4075 system-linux-mips64el.ads, system-linux-ppc64.ads,
4076 system-linux-sparcv9.ads, system-rtems.ads: Remove GCC_ZCX_Support.
4077
4078 2011-08-30 Eric Botcazou <ebotcazou@adacore.com>
4079
4080 * gcc-interface/ada-tree.h (TYPE_EXTRA_SUBTYPE_P): Add internal check.
4081 * gcc-interface/utils2.c (build_binary_op): Tighten condition.
4082 (build_unary_op): Likewise.
4083
4084 2011-08-30 Eric Botcazou <ebotcazou@adacore.com>
4085
4086 * raise-gcc.c: Do not include coretypes.h and tm.h.
4087 (setup_to_install): Remove test for compiler macro.
4088 * targext.c: Document use for the library.
4089 * gcc-interface/Makefile.in: Fix comment on the use of IN_GCC.
4090
4091 2011-08-30 Eric Botcazou <ebotcazou@adacore.com>
4092
4093 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not convert
4094 the expression to the nominal type if the latter is a record type with
4095 a variant part and the type of the former is a record type without one.
4096
4097 2011-08-30 Yannick Moy <moy@adacore.com>
4098
4099 * exp_aggr.adb, exp_ch11.adb, exp_prag.adb: Remove early exit during
4100 expansion in Alfa mode.
4101 * exp_ch6.adb, exp_ch6.ads (Expand_Actuals): Make subprogram public
4102 * exp_alfa.adb, exp_alfa.ads: New package defining light expansion for
4103 Alfa mode.
4104 * gnat1drv.adb (Adjust_Global_Switches): Update Comment.
4105 * sem_res.adb: Ditto.
4106 * gcc-interface/Make-lang.in: Update dependencies.
4107
4108 2011-08-30 Thomas Quinot <quinot@adacore.com>
4109
4110 * g-socket.ads: Minor documentation adjustment.
4111
4112 2011-08-30 Robert Dewar <dewar@adacore.com>
4113
4114 * exp_ch9.adb, s-tassta.adb, s-secsta.adb: Minor reformatting.
4115
4116 2011-08-30 Yannick Moy <moy@adacore.com>
4117
4118 * exp_ch6_light.adb, exp_ch6_light.ads, exp_attr_light.adb,
4119 exp_attr_light.ads, exp_ch7_light.adb, exp_ch7_light.ads,
4120 exp_light.adb, exp_light.ads, exp_prag.adb, expander.adb,
4121 gnat1drv.adb, exp_ch11.adb, exp_ch6.adb, exp_ch6.ads, exp_aggr.adb:
4122 Revert change which introduced files for "light"
4123 expansion, to be replaced by a single file for Alfa expansion.
4124
4125 2011-08-30 Robert Dewar <dewar@adacore.com>
4126
4127 * opt.ads, s-soflin.adb, exp_ch9.adb, sem_res.adb: Update comment.
4128 Minor code reorg/reformatting.
4129
4130 2011-08-30 Yannick Moy <moy@adacore.com>
4131
4132 * opt.adb, opt.ads (Full_Expander_Active): New function defines a
4133 common shorthand for (Expander_Active and not ALFA_Mode) that can be
4134 used for testing full expansion, that is active expansion not in the
4135 reduced mode for Alfa
4136 * exp_ch4.adb, exp_ch9.adb, exp_disp.adb, sem_ch10.adb, sem_ch12.adb,
4137 sem_ch6.adb, sem_ch9.adb, sem_res.adb: Use newly defined "flag" instead
4138 of the verbose (Expander_Active and not ALFA_Mode)
4139
4140 2011-08-30 Tristan Gingold <gingold@adacore.com>
4141
4142 * s-parame-vms-alpha.ads, s-parame-hpux.ads, s-tassta.adb,
4143 s-tarest.adb, s-parame-vms-ia64.ads, s-soflin.adb, s-secsta.adb,
4144 s-secsta.ads, s-parame.ads, s-parame-vxworks.ads, s-parame-ae653.ads:
4145 Renames Ratio to Percentage, and Sec_Stack_Ratio to Sec_Stack_Percentage
4146
4147 2011-08-30 Gary Dismukes <dismukes@adacore.com>
4148
4149 * sem_res.adb (Valid_Conversion): Revise test for implicit anonymous
4150 access conversions to check that the conversion is a rewritten node,
4151 rather than just having Comes_From_Source set to False, which wasn't
4152 sufficient.
4153
4154 2011-08-30 Robert Dewar <dewar@adacore.com>
4155
4156 * exp_ch9.adb, sem_ch9.adb, sem_ch6.adb, exp_disp.adb,
4157 g-socket.ads: Minor reformatting.
4158
4159 2011-08-30 Thomas Quinot <quinot@adacore.com>
4160
4161 * sem_util.adb: Minor reformatting.
4162
4163 2011-08-30 Tristan Gingold <gingold@adacore.com>
4164
4165 * raise-gcc.c: Never catch exception if _UA_FORCE_UNWIND flag is set,
4166 to be compliant with the ABI.
4167
4168 2011-08-30 Hristian Kirtchev <kirtchev@adacore.com>
4169
4170 * sem_ch12.adb (Check_Private_View): Exchange the private and full view
4171 of a designated type when the related access type is an actual in an
4172 instance. This ensures that the full view of designated type is
4173 available when inside the body of the instance.
4174
4175 2011-08-30 Ed Schonberg <schonberg@adacore.com>
4176
4177 * sem_util.adb (May_Be_Lvalue): To determine whether a reference may be
4178 in a position to be modified, a slice is treated like an indexed
4179 component.
4180
4181 2011-08-30 Thomas Quinot <quinot@adacore.com>
4182
4183 * s-oscons-tmplt.c, g-socket.ads: Adjust maximum allowed value for
4184 field tv_sec in struct timeval.
4185
4186 2011-08-30 Yannick Moy <moy@adacore.com>
4187
4188 * exp_ch9.adb, exp_disp.adb, sem_ch9.adb, sem_res.adb: Protect several
4189 blocks of code doing full expansion, previously only guarded by
4190 Expander_Active, by anding the test that ALFA_Mode is not set
4191
4192 2011-08-30 Ed Schonberg <schonberg@adacore.com>
4193
4194 * sem_ch6.adb (Analyze_Return_Type): If the return type is incomplete,
4195 add the function to the list of private dependents, for subsequent
4196 legality check on Taft amendment types.
4197 * sem_ch12.adb (Analyze_Formal_Incomplete_Type): Initialize
4198 Private_Dependents, as for other incomplete types.
4199 * sem_util.adb (Wrong_Type): Avoid cascaded errors when a
4200 Taft-amendment type is used as the return type of a function.
4201
4202 2011-08-30 Javier Miranda <miranda@adacore.com>
4203
4204 * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup: replace code
4205 which emits an error by a call to a new routine which report the error.
4206 * exp_ch9.adb (Build_Wrapper_Spec): Build the wrapper even if the
4207 entity does not cover an existing interface.
4208 * errout.ads, errout.adb (Error_Msg_PT): New routine. Used to factorize
4209 code.
4210 * sem_ch6.adb (Check_Conformance): Add specific error for wrappers of
4211 protected procedures or entries whose mode is not conformant.
4212 (Check_Synchronized_Overriding): Code cleanup: replace code which emits
4213 an error by a call to a new routine which report the error.
4214
4215 2011-08-30 Robert Dewar <dewar@adacore.com>
4216
4217 * gnat_rm.texi: Minor change.
4218 * exp_attr_light.adb: Minor reformatting.
4219
4220 2011-08-30 Ed Schonberg <schonberg@adacore.com>
4221
4222 * sem_ch3.adb: Patch inheritance of aspects in
4223 Complete_Private_Subtype, to avoid infinite loop.
4224
4225 2011-08-30 Javier Miranda <miranda@adacore.com>
4226
4227 * sem_ch3.adb (Add_Internal_Interface_Entities): If serious errors have
4228 been reported and a subprogram covering an interface primitive is not
4229 found then skip generating the internal entity. Done to avoid crashing
4230 the frontend.
4231 (Check_Abstract_Overriding): Change text of error of wrong formal of
4232 protected subprogram or entry. Done for consistency to emit exactly the
4233 same error reported by Check_Synchronized_Overriding. In addition, the
4234 error is restricted to protected types (bug found working on AI05-0090)
4235
4236 2011-08-30 Yannick Moy <moy@adacore.com>
4237
4238 * exp_aggr.adb, exp_ch11.adb, exp_prag.adb: Remove early exit during
4239 expansion in Alfa mode.
4240 * exp_ch6.adb, exp_ch6.ads (Expand_Actuals): Make subprogram public.
4241 * exp_light.adb, exp_light.ads: New package defining light expansion.
4242 * expander.adb (Expand): Call light expansion in Alfa mode
4243 * exp_ch6_light.adb, exp_ch6_light.ads: Light expansion of chapter 6
4244 constructs.
4245 * exp_ch7_light.adb, exp_ch7_light.ads: Light expansion of chapter 7
4246 constructs.
4247 * exp_attr_light.adb, exp_attr_light.ads: Light expansion of attributes
4248 * gnat1drv.adb (Adjust_Global_Switches): Comment
4249
4250 2011-08-30 Yannick Moy <moy@adacore.com>
4251
4252 * lib-xref-alfa.adb: Minor refactoring.
4253
4254 2011-08-30 Yannick Moy <moy@adacore.com>
4255
4256 * exp_ch9.adb (Expand_Entry_Barrier): Do not perform expansion in Alfa
4257 mode.
4258 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not perform
4259 expansion in Alfa mode.
4260 * sem_ch9.adb (Analyze_Entry_Body): Do not perform expansion in Alfa
4261 mode.
4262
4263 2011-08-30 Robert Dewar <dewar@adacore.com>
4264
4265 * debug_a.adb: Update comment.
4266
4267 2011-08-30 Robert Dewar <dewar@adacore.com>
4268
4269 * exp_ch5.adb, sem_ch3.adb, sem_ch5.adb, einfo.adb, checks.adb,
4270 sem_util.adb, sem_util.ads, sem_res.adb, s-stposu.adb, sem_attr.adb,
4271 exp_ch4.adb, exp_ch6.adb, lib-xref-alfa.adb,
4272 sem_ch8.adb, sem_disp.adb, exp_ch3.adb: Minor reformatting
4273
4274 2011-08-30 Robert Dewar <dewar@adacore.com>
4275
4276 * gnat_rm.texi: Add section on C.6(16) implementation advice for pragma
4277 volatile.
4278
4279 2011-08-30 Hristian Kirtchev <kirtchev@adacore.com>
4280
4281 * exp_ch3.adb (Expand_Freeze_Array_Type): Correct the call to
4282 Build_Finalization_Master by supplying an insertion node and enclosing
4283 scope. In its old version, the call did not generate a finalization
4284 master.
4285 (Expand_Freeze_Record_Type): Add local variable Has_AACC. Add code to
4286 recognize anonymous access-to-controlled components. Rewrite the
4287 machinery which creates finalization masters to service anonymous
4288 access-to-controlled components of a record type. In its current state,
4289 only one heterogeneous master is necessary to handle multiple anonymous
4290 components.
4291 (Freeze_Type): Comment reformatting.
4292 * rtsfind.ads: Add RE_Set_Is_Heterogeneous to tables RE_Id and
4293 RE_Unit_Table.
4294 * s-stposu.adb (Allocate_Any_Controlled): Rewrite the machinery which
4295 associates TSS primitive Finalize_Address with either the master itself
4296 or with the internal hash table depending on the mode of operation of
4297 the master.
4298
4299 2011-08-30 Javier Miranda <miranda@adacore.com>
4300
4301 * exp_ch3.adb (Make_Eq_If): If the etype of the _parent component is an
4302 interface type then do not generate code to compare this component.
4303 Required since they have no components and their equality operator is
4304 abstract.
4305
4306 2011-08-30 Steve Baird <baird@adacore.com>
4307
4308 * sem_util.ads (Deepest_Type_Access_Level): New function; for the type
4309 of a saooaaat (i.e, a stand-alone object of an anonymous access type),
4310 returns the (static) accessibility level of the object. Otherwise, the
4311 same as Type_Access_Level.
4312 (Dynamic_Accessibility_Level): New function; given an expression which
4313 could occur as the rhs of an assignment to a saooaaat (i.e., an
4314 expression of an access-to-object type), return the new value for the
4315 saooaaat's associated Extra_Accessibility object.
4316 (Effective_Extra_Accessibility): New function; same as
4317 Einfo.Extra_Accessibility except that object renames are looked through.
4318 * sem_util.adb
4319 (Deepest_Type_Access_Level): New function; see sem_util.ads description.
4320 (Dynamic_Accessibility_Level): New function; see sem_util.ads
4321 description.
4322 (Effective_Extra_Accessibility): New function; see sem_util.ads
4323 description.
4324 * einfo.ads (Is_Local_Anonymous_Access): Update comments.
4325 (Extra_Accessibility): Update comments.
4326 (Init_Object_Size_Align): New procedure; same as Init_Size_Align
4327 except RM_Size field (which is only for types) is unaffected.
4328 * einfo.adb
4329 (Extra_Accessibility): Expand domain to allow objects, not just formals.
4330 (Set_Extra_Accessibility): Expand domain to allow objects, not just
4331 formals.
4332 (Init_Size): Add assertion that we are not trashing the
4333 Extra_Accessibility attribute of an object.
4334 (Init_Size_Align): Add assertion that we are not trashing the
4335 Extra_Accessibility attribute of an object.
4336 (Init_Object_Size_Align): New procedure; see einfo.ads description.
4337 * sem_ch3.adb (Find_Type_Of_Object): Set Is_Local_Anonymous_Access
4338 differently for the type of a (non-library-level) saooaaat depending
4339 whether Ada_Version < Ada_2012. This is the only point where Ada_Version
4340 is queried in this set of changes - everything else (in particular,
4341 setting of the Extra_Accessibility attribute in exp_ch3.adb) is
4342 driven off of the setting of the Is_Local_Anonymous_Access attribute.
4343 The special treatment of library-level saooaaats is an optimization,
4344 not required for correctnesss. This is based on the observation that the
4345 Ada2012 rules (static and dynamic) for saooaaats turn out to be
4346 equivalent to the Ada2005 rules in the case of a library-level saooaaat.
4347 * exp_ch3.adb
4348 (Expand_N_Object_Declaration): If Is_Local_Anonymous_Access is
4349 false for the type of a saooaaat, declare and initialize its
4350 accessibility level object and set the Extra_Accessibility attribute
4351 of the saooaaat to refer to this object.
4352 * checks.adb (Apply_Accessibility_Check): Add Ada 2012 saooaaat support.
4353 * exp_ch4.adb (Expand_N_In): Replace some Extra_Accessibility calls with
4354 calls to Effective_Extra_Accessibility in order to support
4355 renames of saooaaats.
4356 (Expand_N_Type_Conversion): Add new local function,
4357 Has_Extra_Accessibility, and call it when determining whether an
4358 accessibility check is needed.
4359 It returns True iff Present (Effective_Extra_Accessibility (Id)) would
4360 evaluate to True (without raising an exception).
4361 * exp_ch5.adb
4362 (Expand_N_Assignment_Statement): When assigning to an Ada2012
4363 saooaaat, update its associated Extra_Accessibility object (if
4364 it has one). This includes an accessibility check.
4365 * exp_ch6.adb (Add_Call_By_Copy_Code): When parameter copy-back updates
4366 a saooaaat, update its Extra_Accessibility object too (if it
4367 has one).
4368 (Expand_Call): Replace a couple of calls to Type_Access_Level
4369 with calls to Dynamic_Access_Level to handle cases where
4370 passing a literal (any literal) is incorrect.
4371 * sem_attr.adb (Resolve_Attribute): Handle the static accessibility
4372 checks associated with "Saooaat := Some_Object'Access;"; this must
4373 be rejected if Some_Object is declared in a more nested scope
4374 than Saooaat.
4375 * sem_ch5.adb (Analyze_Assignment): Force accessibility checking for an
4376 assignment to a saooaaat even if Is_Local_Anonymous_Access
4377 returns False for its type (indicating a 2012-style saooaaat).
4378 * sem_ch8.adb
4379 (Analyze_Object_Renaming): Replace a call to Init_Size_Align
4380 (which is only appropriate for objects, not types) with a call
4381 of Init_Object_Size_Align in order to avoid trashing the
4382 Extra_Accessibility attribute of a rename (the two attributes
4383 share storage).
4384 * sem_res.adb
4385 (Valid_Conversion) Replace six calls to Type_Access_Level with
4386 calls to Deepest_Type_Access_Level. This is a bit tricky. For an
4387 Ada2012 non-library-level saooaaat, the former returns library level
4388 while the latter returns the (static) accessibility level of the
4389 saooaaat. A type conversion to the anonymous type of a saooaaat
4390 can only occur as part of an assignment to the saooaaat, so we
4391 know that such a conversion must be in a lhs context, so Deepest
4392 yields the result that we need. If such a conversion could occur,
4393 say, as the operand of an equality operator, then this might not
4394 be right. Also add a test so that static accessibilty checks are
4395 performed for converting to a saooaaat's type even if
4396 Is_Local_Anonymous_Access yields False for the type.
4397
4398 2011-08-30 Javier Miranda <miranda@adacore.com>
4399
4400 * sem_disp.adb (Check_Dispatching_Operation): Complete condition that
4401 controls generation of a warning associated with late declaration of
4402 dispatching functions. Required to avoid generating spurious
4403 warnings.
4404
4405 2011-08-30 Gary Dismukes <dismukes@adacore.com>
4406
4407 * sem_ch6.adb (Check_Return_Subtype_Indication): Issue error if the
4408 return object has an anonymous access type and the function's type is
4409 a named access type.
4410 * sem_ch8.adb (Analyze_Object_Renaming): Suppress error about renaming
4411 conversions on implicit conversions, since such conversions can occur
4412 for anonymous access cases due to expansion. Issue error for attempt
4413 to rename an anonymous expression as an object of a named access type.
4414 * sem_res.ads (Valid_Conversion): Add defaulted parameter Report_Errs,
4415 to indicate whether this function should report errors on invalid
4416 conversions.
4417 * sem_res.adb (Resolve): For Ada 2012, in the case where the type of
4418 the expression is of an anonymous access type and the expected type is
4419 a named general access type, rewrite the expression as a type
4420 conversion, unless this is an expression of a membership test.
4421 (Valid_Conversion.Error_Msg_N): New procedure that conditions the
4422 calling of Error_Msg_N on new formal Report_Errs.
4423 (Valid_Conversion.Error_Msg_NE): New procedure that conditions the
4424 calling of Error_Msg_NE on new formal Report_Errs.
4425 (Valid_Conversion): Move declaration of this function to the package
4426 spec, to allow calls from membership test processing. For Ada 2012,
4427 enforce legality restrictions on implicit conversions of anonymous
4428 access values to general access types, disallowing such conversions in
4429 cases where the expression has a dynamic accessibility level (access
4430 parameters, stand-alone anonymous access objects, or a component of a
4431 dereference of one of the first two cases).
4432 * sem_type.adb (Covers): For Ada 2012, allow an anonymous access type
4433 in the context of a named general access expected type.
4434 * exp_ch4.adb Add with and use of Exp_Ch2.
4435 (Expand_N_In): Add processing for membership tests applied to
4436 expressions of an anonymous access type. First, Valid_Conversion is
4437 called to check whether the test is statically False, and then the
4438 conversion is expanded to test that the expression's accessibility
4439 level is no deeper than that of the tested type. In the case of
4440 anonymous access-to-tagged types, a tagged membership test is applied
4441 as well.
4442 (Tagged_Membership): Extend to handle access type cases, applying the
4443 test to the designated types.
4444 * exp_ch6.adb (Expand_Call): When creating an extra actual for an
4445 accessibility level, and the actual is a 'Access applied to a current
4446 instance, pass the accessibility level of the type of the current
4447 instance rather than applying Object_Access_Level to the prefix. Add a
4448 ??? comment, since this level isn't quite right either (will eventually
4449 need to pass an implicit level parameter to init procs).
4450
4451 2011-08-30 Bob Duff <duff@adacore.com>
4452
4453 * s-taskin.ads: Minor comment fix.
4454
4455 2011-08-30 Ed Schonberg <schonberg@adacore.com>
4456
4457 * sem_res.adb (Check_Parameterless_Call): If the node is a selected
4458 component and the selector is a dispatching operation, check if it is
4459 a prefixed call before rewriting as a parameterless function call.
4460
4461 2011-08-29 Jakub Jelinek <jakub@redhat.com>
4462
4463 * gcc-interface/Makefile.in (../stamp-gnatlib1-$(RTSDIR)): Copy
4464 tsystem.h into $(RTSDIR) instead of rts.
4465
4466 2011-08-29 Robert Dewar <dewar@adacore.com>
4467
4468 * sem_ch10.adb, a-coorse.adb, exp_dist.adb, exp_ch3.adb: Minor
4469 reformatting.
4470 * gcc-interface/Make-lang.in: Update dependencies.
4471
4472 2011-08-29 Yannick Moy <moy@adacore.com>
4473
4474 * alfa.ads (Name_Of_Heap_Variable): New constant name.
4475 * lib-xref-alfa.adb, lib-xref.adb, lib-xref.ads (Drefs): New global
4476 table to hold dereferences.
4477 (Add_ALFA_Xrefs): Take into account dereferences as special
4478 reads/writes to the variable "HEAP".
4479 (Enclosing_Subprogram_Or_Package): Move subprogram here.
4480 (Generate_Dereference): New procedure to store a read/write dereferencew
4481 in the table Drefs.
4482 * put_alfa.adb (Put_ALFA): Use different default than (0,0) used for
4483 the special "HEAP" var.
4484 * sem_ch4.adb (Analyze_Explicit_Dereference): Store read dereference
4485 in ALFA mode.
4486 * sem_util.adb (Note_Possible_Modification): Store write dereference
4487 in ALFA mode.
4488
4489 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
4490
4491 * exp_ch3.adb (Freeze_Type): Generate an accessibility check which
4492 ensures that the level of the subpool access type is not deeper than
4493 that of the pool object.
4494 * sem_util.adb (Object_Access_Level): Expand to handle defining
4495 identifiers.
4496 * sem_res.adb (Resolve_Allocator): Add a guard to avoid examining the
4497 subpool handle name of a rewritten allocator.
4498
4499 2011-08-29 Robert Dewar <dewar@adacore.com>
4500
4501 * impunit.adb, exp_ch4.adb, s-finmas.adb: Minor reformatting.
4502
4503 2011-08-29 Thomas Quinot <quinot@adacore.com>
4504
4505 * exp_dist.adb (TC_Rec_Add_Process_Element): For a choice with multiple
4506 values, we generate multiple triples of parameters in the TypeCode.
4507 Bump Choice_Index for each such triple so that a subsequent default
4508 choice is associated with the correct index in the typecode.
4509
4510 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4511
4512 * a-cdlili.adb (Iterate): Initialize properly an iterator over a null
4513 container.
4514 (First, Last): Handle properly an iterator over a null container.
4515
4516 2011-08-29 Bob Duff <duff@adacore.com>
4517
4518 * sem_ch10.adb (Analyze_With_Clause,Install_Withed_Unit): Abandon
4519 processing if we run across a node with no Scope. This can happen if
4520 we're with-ing an library-level instance, and that instance got errors
4521 that caused "instantiation abandoned".
4522 * sem_util.adb (Unit_Declaration_Node): Make it more robust, by raising
4523 an exception instead of using Assert, so it won't go into an infinite
4524 loop, even when assertions are turned off.
4525
4526 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4527
4528 * a-coorse.adb: Proper handling of empty ordered sets.
4529
4530 2011-08-29 Johannes Kanig <kanig@adacore.com>
4531
4532 * debug.adb: Add comments.
4533
4534 2011-08-29 Thomas Quinot <quinot@adacore.com>
4535
4536 * a-except.adb, a-except-2005.adb: Minor comment rewording and
4537 reformatting.
4538
4539 2011-08-29 Yannick Moy <moy@adacore.com>
4540
4541 * sem_ch3.adb (Array_Type_Declaration): Remove insertion of
4542 declaration for Itypes in Alfa mode.
4543
4544 2011-08-29 Robert Dewar <dewar@adacore.com>
4545
4546 * a-cdlili.ads, a-coinve.ads, a-coorma.adb, a-coorma.ads, s-tassta.adb,
4547 a-cborma.adb, a-cborma.ads, a-cohama.ads, a-coorse.ads, a-cbhama.ads,
4548 a-cborse.ads, a-cobove.adb, a-cobove.ads, a-cbhase.ads: Minor
4549 reformatting.
4550
4551 2011-08-29 Tristan Gingold <gingold@adacore.com>
4552
4553 * exp_ch7.adb, exp_ch7.ads (Build_Exception_Handler): Move its spec to
4554 package spec.
4555 * exp_intr.adb (Expand_Unc_Deallocation): Use Build_Exception_Handler.
4556 * a-except.adb, a-except-2005.adb (Rcheck_22): Do not defer aborts
4557 while raising PE.
4558
4559 2011-08-29 Robert Dewar <dewar@adacore.com>
4560
4561 * a-cbhama.adb, a-cbhama.ads: Minor reformatting.
4562
4563 2011-08-29 Javier Miranda <miranda@adacore.com>
4564
4565 * sem_ch8.adb (Analyze_Subprogram_Renaming): Complete support for
4566 renamings of formal subprograms when the actual for a formal type is
4567 class-wide.
4568
4569 2011-08-29 Matthew Heaney <heaney@adacore.com>
4570
4571 * a-cbhama.ads, a-cbhase.ads (Move): Clear Source following assignment
4572 to Target.
4573
4574 2011-08-29 Matthew Heaney <heaney@adacore.com>
4575
4576 * a-cborma.ads, a-cborse.ads (Cursor): Default-initialize all
4577 components of record type.
4578 * a-cborma.adb, a-cborse.adb (Move): Clear Source following assignmentw
4579 to Target.
4580
4581 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4582
4583 * a-cbhama.adb, a-cbhama.ads, a-cborma.adb, a-cborma.ads, a-cobove.adb,
4584 a-cobove.ads, a-coorma.adb, a-coorma.ads: Add iterator machinery to
4585 container packages.
4586
4587 2011-08-29 Robert Dewar <dewar@adacore.com>
4588
4589 * sem_ch3.adb, sem_util.adb, gnat1drv.adb, s-parint.ads: Minor
4590 reformatting.
4591
4592 2011-08-29 Matthew Heaney <heaney@adacore.com>
4593
4594 * a-cbhama.ads, a-cbhase.ads (Cursor): Default-initialize all
4595 components of record type.
4596
4597 2011-08-29 Bob Duff <duff@adacore.com>
4598
4599 * s-tassta.adb (Task_Wrapper): Handle and ignore exceptions propagated
4600 by the termination handler.
4601
4602 2011-08-29 Yannick Moy <moy@adacore.com>
4603
4604 * sem_ch3.adb (Array_Type_Declaration): Create declarations for Itypes
4605 created in Alfa mode, instead of inserting artificial declarations of
4606 non-Itypes in the tree.
4607 * sem_util.adb, sem_util.ads (Itype_Has_Declaration): New function to
4608 know if an Itype has a corresponding declaration, as defined in
4609 itypes.ads.
4610
4611 2011-08-29 Yannick Moy <moy@adacore.com>
4612
4613 * gnat1drv.adb: Minor rewrite.
4614
4615 2011-08-29 Bob Duff <duff@adacore.com>
4616
4617 * s-tasuti.adb (Make_Passive): Work around race condition in
4618 Make_Independent, which can cause Wait_Count to be zero. So instead of
4619 asserting that Wait_Count > 0, and then decrementing it, decrement it
4620 only if Wait_Count > 0.
4621 * s-taskin.ads (Wait_Count, Alive_Count, Awake_Count): All of these
4622 should be nonnegative, so declare them Natural instead of Integer.
4623
4624 2011-08-29 Robert Dewar <dewar@adacore.com>
4625
4626 * exp_ch5.adb, sem_ch3.adb, a-cihama.adb, a-cihama.ads, exp_ch7.adb,
4627 sem_ch5.adb, a-ciorse.adb, a-ciorse.ads, sem_ch12.adb, a-cidlli.adb,
4628 a-cidlli.ads, sem_util.adb, sem_res.adb, gnat1drv.adb, a-except.adb,
4629 a-except.ads, a-except-2005.ads, sem_ch4.adb, exp_disp.adb,
4630 exp_aggr.adb, sem_ch13.adb, par-ch3.adb: Minor reformatting.
4631
4632 2011-08-29 Tristan Gingold <gingold@adacore.com>
4633
4634 * s-auxdec-vms-alpha.adb: Add comments, remove some HT before labels.
4635
4636 2011-08-29 Vadim Godunko <godunko@adacore.com>
4637
4638 * s-parint.ads: Minor comment clarification.
4639
4640 2011-08-29 Vincent Celier <celier@adacore.com>
4641
4642 * prj.adb (Initialize): Make sure that new reserved words after Ada 95
4643 may be used as identifiers.
4644
4645 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4646
4647 * a-coinho.ads: Minor reformating.
4648
4649 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4650
4651 * exp_ch5.adb (Expand_Iterator_Loop): Handle properly a loop over a
4652 container of a derived type.
4653
4654 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4655
4656 * a-cidlli.adb, a-cidlli.ads, a-cihama.adb, a-cihama.ads,
4657 a-ciorse.adb, a-ciorse.ads: Add iterator machinery to containers.
4658
4659 2011-08-29 Pascal Obry <obry@adacore.com>
4660
4661 * exp_disp.adb: Minor comment fix.
4662 (Make_Disp_Asynchronous_Select_Body): Properly initialize out parameters
4663 to avoid warnings when compiling with -Wall.
4664 (Make_Disp_Conditional_Select_Body): Likewise.
4665 (Make_Disp_Timed_Select_Body): Likewise.
4666
4667 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4668
4669 * sem_ch12.adb (Analyze_Formal_Subprogram_Declaration): If default is
4670 an entity name, generate reference for it.
4671
4672 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4673
4674 * exp_ch5.adb (Expand_Iterator_Loop): Uniform handling of "X of S"
4675 iterator form.
4676 * sem_util.adb (Is_Iterator, Is_Reversible_Iterator): Yield True for
4677 the class-wide type.
4678 * sem_ch5.adb: Move some rewriting to the expander, where it belongs.
4679
4680 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4681
4682 * sem_ch8.adb (Check_Constrained_Object): Do not create an actual
4683 subtype for an object whose type is an unconstrained union.
4684
4685 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4686
4687 * par-ch3.adb (P_Array_Type_Definiation, P_Component_Items): "aliased"
4688 is allowed in a component definition, by AI95-406.
4689
4690 2011-08-29 Matthew Heaney <heaney@adacore.com>
4691
4692 * a-chtgbo.adb (Generic_Iteration): Use correct overloading of Next.
4693
4694 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
4695
4696 * a-except-2005.adb: Alphabetize all routines.
4697 (Triggered_By_Abort): New routine.
4698 * a-except-2005.ads (Triggered_By_Abort): New routine.
4699 * a-except.adb Alphabetize all routines.
4700 (Triggered_By_Abort): New routine.
4701 * a-except.ads (Triggered_By_Abort): New routine.
4702 * exp_ch7.adb: Update all comments involving the detection of aborts in
4703 finalization code.
4704 (Build_Object_Declarations): Do not generate code to detect the
4705 presence of an abort at the start of finalization code, use a runtime
4706 routine istead.
4707 * rtsfind.ads: Add RE_Triggered_By_Abort to tables RE_Id and
4708 RE_Unit_Table.
4709 * sem_res.adb (Resolve_Allocator): Emit a warning when attempting to
4710 allocate a task on a subpool.
4711 * s-stposu.adb: Add library-level flag Finalize_Address_Table_In_Use.
4712 The flag disables all actions related to the maintenance of
4713 Finalize_Address_Table when subpools are not in use.
4714 (Allocate_Any_Controlled): Signal the machinery that subpools are in
4715 use.
4716 (Deallocate_Any_Controlled): Do not call Delete_Finalize_Address which
4717 performs costly task locking when subpools are not in use.
4718
4719 2011-08-29 Yannick Moy <moy@adacore.com>
4720
4721 * gnat1drv.adb (Adjust_Global_Switches): Restore expansion of tagged
4722 types and dispatching calls in Alfa mode.
4723 * lib-xref-alfa.adb (Collect_ALFA): Rewrite computation of
4724 correspondance between body and spec scopes, to reuse utility functions
4725 (Traverse_Declarations_Or_Statements): Protect access to body for stub
4726 by testing the presence of the library unit for the body
4727 * sem_ch6.adb (Set_Actual_Subtypes): take into account that in Alfa
4728 mode the expansion of accept statements is skipped
4729 * sem_util.adb, sem_util.ads (Unique_Entity): New function returning
4730 the unique entity corresponding to the one returned by
4731 Unique_Defining_Entity applied to the enclosing declaration of the
4732 argument.
4733
4734 2011-08-29 Bob Duff <duff@adacore.com>
4735
4736 * treepr.ads: Improve debugging facilities. pn(x) no longer crashes in
4737 gdb when x is not a node (it can be a node list, name_id, etc). pp is
4738 an alias for pn. ppp is an alias for pt.
4739
4740 2011-08-29 Javier Miranda <miranda@adacore.com>
4741
4742 * exp_aggr.adb (Expand_Record_Aggregate): Use the top-level enclosing
4743 aggregate to take a consistent decision on the need to convert into
4744 assignments aggregates that initialize constant objects.
4745
4746 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
4747
4748 * exp_ch4.adb (Expand_Allocator_Expression): Add a call to
4749 Build_Allocate_Deallocate_Proc in order to handle allocation of
4750 non-controlled objects on subpools.
4751 * impunit.adb: Remove s-finmas and s-spsufi since they were never meant
4752 to be end-user visible.
4753 * s-finmas.adb: Add with and use clause for System.HTable.
4754 Add an instantiation of Simple_HTable which provides a mapping between
4755 the address of a controlled object and the corresponding
4756 Finalize_Address used to clean up the object. The table is used when a
4757 master is operating in heterogeneous mode.
4758 (Attach): Explain why the input node is not verified on being already
4759 attached.
4760 (Delete_Finalize_Address): New routine.
4761 (Detach): Add pragma Assert which ensures that a node is already
4762 attached.
4763 (Finalize): Add local variable Cleanup. Rewrite the iteration scheme
4764 since nodes are no longer removed on traversal. Explain why node
4765 detachment is undesirable in this case.
4766 (Get_Finalize_Address): New routine.
4767 (Hash): New routine.
4768 (Is_Empty_List): Removed.
4769 (pm): Renamed to Print_Master. Add output for discriminant
4770 Is_Homogeneous.
4771 Comment reformatting.
4772 (Set_Finalize_Address (Address, Finalize_Address_Ptr)): New routine.
4773 * s-finmas.ads: Various comments additions / improvements.
4774 Type Finalization_Master has a discriminant which determines the mode of
4775 operation.
4776 (Delete_Finalize_Address): New routine.
4777 (Get_Finalize_Address): New routine.
4778 (pm): Renamed to Print_Master.
4779 (Set_Finalize_Address (Address, Finalize_Address_Ptr)): New routine.
4780 * s-stposu.adb: Add with clause for System.Address_Image; Add with and
4781 use clause for System.IO.
4782 (Allocate_Any_Controlled): Add machinery to set TSS primitive
4783 Finalize_Address depending on the mode of allocation and the mode of
4784 the master.
4785 (Deallocate_Any_Controlled): Remove the relation pair object -
4786 Finalize_Address regardless of the master mode. Add comment explaining
4787 the reason.
4788 (Detach): Ensure that fields Prev and Next are null after detachment.
4789 (Finalize_Pool): Remove local variable Next_Ptr. Rewrite the iteration
4790 scheme to check whether the list of subpools is empty. There is no
4791 longer need to store the next subpool or advance the current pointer.
4792 (Is_Empty_List): New routine.
4793 (Print_Pool): New routine.
4794 (Print_Subpool): New routine.
4795 * s-stposu.ads: Various comments additions / improvements.
4796 Field Master of type Root_Subpool is now a heterogeneous collection.
4797 (Print_Pool): New routine.
4798 (Print_Subpool): New routine.
4799
4800 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4801
4802 * exp_ch5.adb (Expand_N_Iterator_Loop): Implement Ada2012 loop iterator
4803 forms, using aspects of container types.
4804 * sem_ch3.adb (Find_Type_Name): Preserve Has_Delayed_Aspects and
4805 Has_Implicit_Dereference flags, that may be set on the partial view.
4806 * sem_ch4.adb (Process_Overloaded_Indexed_Component): Prefix may be a
4807 container type with an indexing aspect.
4808 (Analyze_Quantified_Expression): Analyze construct with expansion
4809 disabled, because it will be rewritten as a loop during expansion.
4810 (Try_Container_Indexing): The prefix itself may be a container type
4811 with an indexing aspect, as with a vector of vectors.
4812 * sem_ch5.adb (Analyze_Iteration_Scheme): In a generic context, analyze
4813 the original doamin of iteration, for name capture.
4814 (Analyze_Iterator_Specification): If the domain is an expression that
4815 needs finalization, create a separate declaration for it.
4816 For an iterator with "of" retrieve default iterator info from aspect of
4817 container type. For "in" iterator, retrieve type of Iterate function.
4818 * sem_ch13.adb (Check_Iterator_Function): Fix typo.
4819 (Check_Aspect_At_End_Of_Declaration): Make type unfrozen before
4820 analysis, to prevent spurious errors about late attributes.
4821 * sprint.adb: Handle quantified expression with either loop or iterator
4822 specification.
4823 * a-convec.ads, a-convec.adb: Iterate function returns a reversible
4824 iterator.
4825
4826 2011-08-29 Vincent Celier <celier@adacore.com>
4827
4828 * make.adb (Scan_Make_Arg): Take any option as is in packages Compiler,
4829 Binder or Linker of the main project file.
4830
4831 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4832
4833 * inline.adb (Add_Scopes_To_Clean): Exclude any entity within a generic
4834 unit.
4835
4836 2011-08-29 Yannick Moy <moy@adacore.com>
4837
4838 * exp_ch9.adb: Partial revert of previous change for Alfa mode
4839
4840 2011-08-29 Yannick Moy <moy@adacore.com>
4841
4842 * exp_ch11.adb: Minor expansion of comment.
4843
4844 2011-08-29 Yannick Moy <moy@adacore.com>
4845
4846 * lib-xref-alfa.adb (Add_ALFA_Scope): Treat generic entities.
4847
4848 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4849
4850 * sem_res.adb (Resolve_Arithmetic_Op): If the node has a universal
4851 interpretation, set the type before resolving the operands, because
4852 legality checks on an exponention operand need to know the type of the
4853 context.
4854
4855 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4856
4857 * sem_ch12.adb (Analyze_Package_Instantiation): Do not set delayed
4858 cleanups on a master if the instance is within a generic unit.
4859 Complement to the corresponding fix to inline.adb for K520-030.
4860
4861 2011-08-29 Tristan Gingold <gingold@adacore.com>
4862
4863 * exp_ch7.adb (Build_Raise_Statement): Raise PE instead of the current
4864 occurrence.
4865 * exp_intr.adb: Minor comment fix.
4866
4867 2011-08-29 Bob Duff <duff@adacore.com>
4868
4869 * sem_ch13.adb (Analyze_Aspect_Specifications): Fix cases where
4870 Delay_Required was used as an uninitialized variable.
4871
4872 2011-08-29 Robert Dewar <dewar@adacore.com>
4873
4874 * a-cdlili.adb, a-cdlili.ads, a-coinve.adb, a-coinve.ads,
4875 sem_util.adb, sem_util.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb,
4876 a-coorse.ads, aspects.ads, sem_ch8.adb: Minor reformatting.
4877
4878 2011-08-29 Thomas Quinot <quinot@adacore.com>
4879
4880 * system-freebsd-x86_64.ads (Backend_Overflow_Checks): Set true True.
4881 Remove unused variables.
4882
4883 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4884
4885 * sem_res.adb: Remove Build_Explicit_Dereference.
4886 * sem_util.adb, sem_util.ads (Build_Explicit_Dereference): Moved here
4887 from sem_res.adb, used in analysis of additional constructs.
4888 (Is_Iterator, Is_Reversible_Iterator): New predicates for Ada2012
4889 expansion of iterators.
4890 (Is_Object_Reference): Recognize variables rewritten as explicit
4891 dereferences in Ada2012.
4892 * snames.ads-tmpl: Add Has_Element, Forward_Iterator,
4893 Reversible_Iterator names, for expansion of Ada2012 iterators.
4894 * aspects.ads, aspects.adb (Find_Aspect): Utility.
4895 * a-cdlili.ads, a-cdlili.adb: Add new iterator machinery to doubly
4896 linked list container.
4897 * a-coinve.ads, a-coinve.adb: Ditto for indefinite vector containers.
4898 * a-coorse.ads, a-coorse.adb: Ditto for ordered sets.
4899
4900 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4901
4902 * a-cohama.adb, a-cohama.ads: Add iterator primitives to hashed map
4903 containers.
4904
4905 2011-08-29 Vincent Celier <celier@adacore.com>
4906
4907 * make.adb (Gnatmake): Get the maximum number of simultaneous
4908 compilation processes after the Builder switches has been scanned, as
4909 there may include -jnn.
4910
4911 2011-08-29 Matthew Heaney <heaney@adacore.com>
4912
4913 * a-chtgbo.adb (Generic_Equal): Use correct overloading of Next.
4914
4915 2011-08-29 Tristan Gingold <gingold@adacore.com>
4916
4917 * gnatcmd.adb (GNATCmd): On OpenVMS, truncate the length of
4918 GNAT_DRIVER_COMMAND_LINE to 255.
4919
4920 2011-08-29 Pascal Obry <obry@adacore.com>
4921
4922 * freeze.adb, sem_ch8.adb, a-convec.adb, a-convec.ads: Minor
4923 reformatting and style fix (class attribute casing).
4924
4925 2011-08-29 Yannick Moy <moy@adacore.com>
4926
4927 * exp_ch11.adb: Yet another case where expansion should be common
4928 between CodePeer and Alfa.
4929
4930 2011-08-29 Yannick Moy <moy@adacore.com>
4931
4932 * exp_ch9.adb: Partial revert of previous change for Alfa mode.
4933
4934 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4935
4936 * sem_ch6.adb (Matches_Limited_With_View): The limited views of an
4937 incomplete type and its completion match.
4938
4939 2011-08-29 Yannick Moy <moy@adacore.com>
4940
4941 * exp_ch13.adb: Adjust previous change.
4942
4943 2011-08-29 Robert Dewar <dewar@adacore.com>
4944
4945 * sem_prag.adb, prj.adb, sem_util.adb, sem_res.adb, gnat1drv.adb,
4946 exp_ch4.adb, sem_ch8.adb: Minor code reorganization
4947 Minor reformatting.
4948
4949 2011-08-29 Emmanuel Briot <briot@adacore.com>
4950
4951 * make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Also
4952 initialize aggregated projects.
4953
4954 2011-08-29 Ed Schonberg <schonberg@adacore.com>
4955
4956 * sem_ch8.adb (Find_Renamed_Entity): Within an instance, use scope
4957 depth of candidates to resolve a potentially spurious ambiguity between
4958 two visible subprograms.
4959
4960 2011-08-29 Yannick Moy <moy@adacore.com>
4961
4962 * sem_prag.adb (Analyze_Pragma): Allow Test_Case pragma without
4963 Requires/Ensures.
4964 * sem_util.adb (Get_Ensures_From_Test_Case_Pragma,
4965 Get_Requires_From_Test_Case_Pragma): Allow Test_Case pragma without
4966 Requires/Ensures.
4967
4968 2011-08-29 Arnaud Charlet <charlet@adacore.com>
4969
4970 * gnat1drv.adb (Adjust_Global_Switches): Improve previous change.
4971 Add comment.
4972
4973 2011-08-29 Thomas Quinot <quinot@adacore.com>
4974
4975 * sem_res.adb: Minor reformatting.
4976
4977 2011-08-29 Johannes Kanig <kanig@adacore.com>
4978
4979 * exp_ch4.adb (Expand_Quantified_Expression): Do not expand in ALFA
4980 mode.
4981 * gnat1drv.adb (Adjust_Global_Switches): Set
4982 Use_Expressions_With_Actions to False in ALFA mode.
4983 * sem_res.adb (Resolve_Quantified_Expression): Simpler treatment in
4984 ALFA mode.
4985
4986 2011-08-29 Yannick Moy <moy@adacore.com>
4987
4988 * exp_ch13.adb (Expand_N_Freeze_Entity): Do nothing in Alfa mode.
4989 * exp_ch9.adb: Do not expand tasking constructs in Alfa mode.
4990 * gnat1drv.adb (Adjust_Global_Switches): Suppress the expansion of
4991 tagged types and dispatching calls in Alfa mode.
4992
4993 2011-08-29 Javier Miranda <miranda@adacore.com>
4994
4995 * sem_ch3.adb (Process_Discriminants): Add missing check to ensure that
4996 we do not report an error on an Empty node.
4997
4998 2011-08-29 Geert Bosch <bosch@adacore.com>
4999
5000 * Makefile.rtl (GNATRTL_NONTASKING_OBJECTS): Add a-nllrar.o,
5001 a-nlrear.o and a-nurear.o.
5002
5003 2011-08-29 Robert Dewar <dewar@adacore.com>
5004
5005 * freeze.adb: Minor code reorganization.
5006 Minor reformatting.
5007 * sem_util.adb, errout.adb, exp_ch11.adb, a-ngrear.adb, s-gearop.adb,
5008 sem_ch6.adb: Minor reformatting
5009
5010 2011-08-29 Tristan Gingold <gingold@adacore.com>
5011
5012 * s-except.ads, s-except.adb: Provide dummy body.
5013
5014 2011-08-29 Yannick Moy <moy@adacore.com>
5015
5016 * sem_warn.adb (Within_Postcondition): Take into account the case of
5017 an Ensures component in a Test_Case.
5018
5019 2011-08-29 Tristan Gingold <gingold@adacore.com>
5020
5021 * s-excdeb.ads, s-excdeb.adb: New files, created from s-except.
5022 * rtsfind.ads (RTU_Id): Replaces System_Exceptions by
5023 System_Exceptions_Debug
5024 (RE_Unit_Table): Search RE_Local_Raise in System_Exceptions_Debug
5025 * a-except.adb: With and use System.Exceptions_Debug instead of
5026 System.Exceptions.
5027 * a-except-2005.adb: Likewise.
5028 * s-assert.adb: Likewise.
5029 * s-except.adb, s-except.ads: Move debugging hooks to s-excdeb.
5030 * Makefile.rtl: Add s-excdeb. Adjust compilation rule.
5031 * gcc-interfaces/Makefile.in, gcc-interface/Make-lang.in: Add
5032 s-excdeb. Update dependencies.
5033 (GNATRTL_LINEARALGEBRA_OBJS): Remove a-nlrear.o a-nurear.o a-nllrar.o
5034 as these no longer need external libraries.
5035
5036 2011-08-29 Ed Schonberg <schonberg@adacore.com>
5037
5038 * sem_res.adb (Resolve_Op_Expon): Additional check to reject an
5039 exponentiation operator on universal values in a context that requires
5040 a fixed-point type.
5041
5042 2011-08-29 Tristan Gingold <gingold@adacore.com>
5043
5044 * raise-gcc.c (personnality_routine): Fix thinko. Set Ada occurrence
5045 before calling notify_handled_exception.
5046 * a-exextr.adb: Fix comment.
5047
5048 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5049
5050 * exp_ch4.adb (Expand_Allocator_Expression): Add code to set attribute
5051 Finalize_Address of the access type's finalization master.
5052 (Expand_N_Allocator): Add code to set attribute Finalize_Address of the
5053 access type's finalization master. Add a guard to prevent
5054 Associated_Storage_Pool from being set on .NET/JVM.
5055 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Add code to set
5056 attribute Finalize_Address of the access type's finalization master.
5057 * exp_ch7.adb (Make_Finalize_Address_Call): New routine.
5058 * exp_ch7.ads (Make_Finalize_Address_Call): New routine.
5059 * rtsfind.ads: Add RE_Set_Finalize_Address to tables RE_Id and
5060 RE_Unit_Table.
5061 * s-finmas.adb: Add with clause for System.Address_Image. Add with and
5062 use clause for System.IO
5063 (Detach): Relax the assertion, to be reinstated later.
5064 (Finalize): Rewrite the iteration loop to avoid pointer comparison.
5065 Relax the assertion on Finalize_Address, to be reinstated later.
5066 (Is_Empty_List): New routine.
5067 (pm): New debug routine.
5068 (Set_Finalize_Address): New routine.
5069 * s-finmas.ads (pm): New debug routine.
5070 (Set_Finalize_Address): New routine.
5071 * s-stposu.adb (Allocate_Any_Controlled): Code reformatting.
5072
5073 2011-08-29 Tristan Gingold <gingold@adacore.com>
5074
5075 * a-exexpr-gcc.adb (GCC_Exception_Access, GNAT_GCC_Exception_Access):
5076 Remove convention C.
5077
5078 2011-08-29 Tristan Gingold <gingold@adacore.com>
5079
5080 * s-taprop-vms.adb (Get_Exc_Stack_Addr): Remove.
5081 (Initialize_TCB): Remove Exc_Stack_Ptr initialization.
5082 (Finalize_TCB): Remove its finalization.
5083 (Initialize): Remove assignment of GET_Exc_Stack_Addr
5084 * s-soflin.adb (NT_Exc_Stack): Remove
5085 (Get_Exc_Stack_Addr_NT): Likewise.
5086 (Get_Exc_Stack_Addr_Soft): Likewise.
5087 * s-soflin.ads (Get_Exc_Stack_Addr_NT): Remove.
5088 (Get_Exc_Stack_Addr): Likewise.
5089 (Get_Exc_Stack_Addr_Soft): Likewise
5090 * s-taspri-vms.ads (Exc_Stack_T): Remove.
5091 (Exc_Stack_Ptr_T): Likewise.
5092 (Private_Data): Remove Exc_Stack_Ptr component.
5093
5094 2011-08-29 Tristan Gingold <gingold@adacore.com>
5095
5096 * raise-gcc.c (get_ip_from_context): New function. Factorize code.
5097
5098 2011-08-29 Tristan Gingold <gingold@adacore.com>
5099
5100 * gnat_ugn.texi: Fix aix and x86-solaris info for run-time.
5101
5102 2011-08-29 Geert Bosch <bosch@adacore.com>
5103
5104 * s-gearop.ads (Back_Substitute, Diagonal, Forward_Eliminate,
5105 L2_Norm, Swap_Column): New generic subprograms
5106 * s-gearop.adb (Back_Substitute, Diagonal, Forward_Eliminate,
5107 L2_Norm, Swap_Column): Implement new subprograms in order to
5108 eliminate dependency on BLAS and LAPACK libraries in
5109 Ada.Numerics.Generic_Real_Arrays and eventually also the complex
5110 version. Forward_Eliminate/Back_Substitute can be used to put a
5111 matrix in row echelon or reduced row echelon form using partial
5112 pivoting.
5113 * a-ngrear.adb: (Back_Substitute, Diagonal, Forward_Eleminate,
5114 Swap_Column): Instantiate from System.Generic_Array_Operations.
5115 ("*", "abs"): Implement by instantiation from Generic_Array_Operations.
5116 (Sqrt): Local function for simple computation of square root without
5117 adding dependencies on Generic_Elementary_Functions.
5118 (Swap): New subprogram to exchange floating point numbers.
5119 (Inverse): Reimplement using Jordan-Gauss elimination.
5120 (Jacobi): New procedure implementing Jacobi's method for computation
5121 of eigensystems, based on Rutishauser's implementation.
5122 (L2_Norm): Implement directly using the inner product.
5123 (Sort_Eigensystem): Sort eigenvalue/eigenvector pairs in order of
5124 decreasing eigenvalue as required by the Ada RM.
5125 (Swap_Column): New helper procedure for Sort_Eigensystem.
5126 Remove with of System.Generic_Real_BLAS and System.Generic_Real_LAPACK.
5127 Add with of Ada.Containers.Generic_Anonymous_Array_Sort, for
5128 Sort_Eigensystems.
5129
5130 2011-08-29 Thomas Quinot <quinot@adacore.com>
5131
5132 * put_scos.adb (Put_SCOs): Do not emit a newline for an empty
5133 statements line.
5134
5135 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5136
5137 * s-finmas.adb (Finalize): Check Finalize_Address of the master rather
5138 than the current node.
5139 * s-finmas.ads: Move field Finalize_Address from type FM_Node to
5140 Finalization_Master. The list headers have two fields instead of three.
5141 This should fix alignment issue but subpool allocations are now
5142 unusable. Alphabetize subprograms.
5143 * s-stposu.adb (Allocate_Any_Controlled): Use the offset rather than
5144 the size of the header when converting the beginning of the object to
5145 a FM_Node. Set the master's Finalize_Address attribute if not already
5146 set.
5147 (Deallocate_Any_Controlled): Use the offset rather than the size of the
5148 header when converting the beginning of the object to a FM_Node.
5149
5150 2011-08-29 Gary Dismukes <dismukes@adacore.com>
5151
5152 * exp_ch11.adb (Expand_N_Raise_Statement): Don't suppress expansion of
5153 reraise when compiling for CodePeer.
5154
5155 2011-08-29 Arnaud Charlet <charlet@adacore.com>
5156
5157 * a-iteint.ads, Makefile.rtl: Add missing compilation of a-iteint.ads,
5158 now needed by a-convec.adb. Fix warning.
5159
5160 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5161
5162 * exp_util.adb (Build_Allocate_Deallocate_Proc): Add a guard for the
5163 processing of TSS routine Finalize_Address when compiling in
5164 CodePeer_Mode.
5165
5166 2011-08-29 Thomas Quinot <quinot@adacore.com>
5167
5168 * a-strunb.ads, einfo.ads, g-comlin.ads, sem_ch6.adb,
5169 sem_warn.adb: Minor reformatting.
5170
5171 2011-08-29 Emmanuel Briot <briot@adacore.com>
5172
5173 * prj-conf.adb (Get_Config_Switches): Also collect the list of
5174 languages from aggregated projects.
5175
5176 2011-08-29 Yannick Moy <moy@adacore.com>
5177
5178 * lib-xref-alfa.adb, lib-xref.ads (Traverse_Declarations_Or_Statements,
5179 Traverse_Handled_Statement_Sequence, Traverse_Package_Body,
5180 Traverse_Package_Declaration, Traverse_Subprogram_Body,
5181 Traverse_Compilation_Unit): Add a parameter Inside_Stubs so that bodies
5182 for stubs are traversed too when parameter is set
5183 (Traverse_All_Compilation_Units): Traverse without going inside stubs
5184 (Traverse_Declarations_Or_Statements): Do the special traversing for
5185 stubs when required.
5186 * sem_util.adb, sem_util.ads (Get_Body_From_Stub): New function to
5187 return subprogram or package body from stub.
5188 (Is_Subprogram_Stub_Without_Prior_Declaration): New function to detect
5189 stubs without prior subprogram decl.
5190
5191 2011-08-29 Vasiliy Fofanov <fofanov@adacore.com>
5192
5193 * gnat_ugn.texi: Fix typo.
5194
5195 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5196
5197 * s-stposu.adb (Allocate_Any_Controlled): Reimplement the mechanism
5198 which accounts for size vs alignment issues and calculates the size of
5199 the list header.
5200 (Deallocate_Any_Controlled): Ditto.
5201 (Nearest_Multiple_Rounded_Up): New routine.
5202
5203 2011-08-29 Tristan Gingold <gingold@adacore.com>
5204
5205 * a-exstat.adb (String_To_EO): Do no set Cleanup_Flag.
5206 * a-exexda.adb (Set_Exception_C_Msg): Ditto.
5207 (Set_Exception_Msg): Ditto.
5208 * a-exexpr-gcc.adb (Setup_Current_Excep): Ditto. Do not set
5209 Private_Data.
5210 * a-except.adb, a-except-2005.adb (Save_Occurrence_No_Private): Remove.
5211 Use Save_Occurrence instead of Save_Occurrence_No_Private.
5212 (Raise_With_Msg): Remove Cleanup_Flag.
5213 * a-except.ads, a-except-2005.ads (Exception_Occurrence): Remove
5214 Clean_Flag and Private_Data components.
5215
5216 2011-08-29 Yannick Moy <moy@adacore.com>
5217
5218 * freeze.adb (Freeze_Record_Type): Ignore packing in Alfa mode, like
5219 in CodePeer mode.
5220 * sem_ch3.adb (Signed_Integer_Type_Declaration): Correct the generation
5221 of an explicitly declared type, so that the base types of the original
5222 type and this generated type are the same, and a "type" (not a subtype
5223 like previously).
5224 * errout.adb (Special_Msg_Delete): Do not issue messages "Size too
5225 small" in Alfa mode, like in CodePeer mode.
5226 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore rep
5227 clauses in Alfa mode.
5228
5229 2011-08-29 Javier Miranda <miranda@adacore.com>
5230
5231 * exp_ch6.ads, exp_ch6.adb (Is_Null_Procedure): Move the spec of this
5232 function to the package spec.
5233 * sem_ch6.adb (Find_Corresponding_Spec, New_Overloaded_Entity): For
5234 internally generated bodies of null procedures locate the internally
5235 generated spec enforcing mode conformance.
5236 (Is_Interface_Conformant): Ensure that the controlling formal of the
5237 primitives match.
5238
5239 2011-08-29 Ed Schonberg <schonberg@adacore.com>
5240
5241 * sem_prag.adb (Analyze_Pragma, case Inline): In an instance, do not
5242 reject the pragma if it appears to apply to a formal subprogram.
5243
5244 2011-08-29 Ed Schonberg <schonberg@adacore.com>
5245
5246 * exp_ch4.adb (Expand_Allocator_Expression): Use consistent name for
5247 inner expression, to prevent double evaluation.
5248
5249 2011-08-29 Tristan Gingold <gingold@adacore.com>
5250
5251 * a-exexpr.adb (Propagate_Exception): Remove all the parameters as
5252 they were unused.
5253 * a-exexpr-gcc.adb (Propagate_Exception): Ditto.
5254 * a-except-2005.adb (Propagate_Exception): Adjust spec.
5255 (Raise_Current_Excep): Adjust call.
5256 (Raise_From_Signal_Handler): Call now simply call Raise_Current_Excep.
5257
5258 2011-08-29 Thomas Quinot <quinot@adacore.com>
5259
5260 * exp_disp.adb: Minor reformatting.
5261
5262 2011-08-29 Tristan Gingold <gingold@adacore.com>
5263
5264 * a-exexpr.adb (Setup_Exception): Removed.
5265 * a-exexpr-gcc.adb (Setup_Exception): Removed.
5266 * a-except.adb (Exception_Propagation): Removed.
5267 * a-except-2005.adb (Setup_Exception): Removed.
5268 (Reraise): Remove call to Setup_Exception.
5269 (Reraise_Occurrence): Ditto.
5270 (Reraise_Occurrence_Always): Ditto.
5271 (Reraise_Occurrence_No_Defer): Ditto.
5272 (Transfer_Occurrence): Ditto.
5273 * a-exexda.adb (Set_Exception_C_Msg): Remove call to Setup_Exception.
5274 (Set_Exception_Msg): Ditto.
5275
5276 2011-08-29 Robert Dewar <dewar@adacore.com>
5277
5278 * a-convec.adb, exp_disp.adb: Minor reformatting.
5279
5280 2011-08-29 Tristan Gingold <gingold@adacore.com>
5281
5282 * a-exexpr-gcc.adb (GNAT_GCC_Exception_Access): Set to convention C.
5283
5284 2011-08-29 Gary Dismukes <dismukes@adacore.com>
5285
5286 * exp_ch3.adb (Build_Record_Init_Proc.Build_Init_Procedure): Set
5287 Exception_Handlers to No_List instead of Empty_List in the case where
5288 there are no handlers.
5289
5290 2011-08-29 Tristan Gingold <gingold@adacore.com>
5291
5292 * gcc-interface/gigi.h (enum standard_datatypes): Add
5293 ADT_reraise_zcx_decl
5294 (reraise_zcx_decl): New macro.
5295 * gcc-interface/trans.c (gnu_incoming_exc_ptr): New variable.
5296 (gigi): Set reraise_zcx_decl.
5297 (Exception_Handler_to_gnu_zcx): Save and restore gnu_incoming_exc_ptr.
5298 (gnat_to_gnu): Handle N_Raise_Statement.
5299
5300 2011-08-29 Robert Dewar <dewar@adacore.com>
5301
5302 * sem_ch6.adb, exp_ch3.adb, s-stposu.adb, a-undesu.ads,
5303 a-undesu.adb: Minor reformatting.
5304
5305 2011-08-29 Ed Schonberg <schonberg@adacore.com>
5306
5307 * exp_disp.adb (Check_Premature_Freezing): When building a dispatch
5308 table, accept an unfrozen untagged component if it is an actual for a
5309 formal incomplete type.
5310 * a-convec.ads, a-convec.adb: Instantiate Ada.Iterator_Interfaces to
5311 provide new iterator forms over vectors.
5312 Introduce type Iterator in package body to implement operations of
5313 Reversible_Iterator interface.
5314 * a-iteint.ads: Make package pure so it is usable with new container
5315 packages, that are categorized Remote_Types.
5316
5317 2011-08-29 Robert Dewar <dewar@adacore.com>
5318
5319 * a-exexpr-gcc.adb, a-synbar.adb, sem_ch13.adb: Minor reformatting.
5320
5321 2011-08-29 Bob Duff <duff@adacore.com>
5322
5323 * sem_aggr.adb (Resolve_Aggr_Expr): Call this routine even in the case
5324 of <>, because this is the routine that checks for dimensionality
5325 errors (for example, for a two-dimensional array, (others => <>) should
5326 be (others => (others => <>)).
5327
5328 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5329
5330 * impunit.adb: Add new run-time units.
5331 * freeze.adb, exp_ch7.ads, exp_ch7.adb, exp_util.ads, exp_util.adb,
5332 s-stposu.ads, s-stposu.adb: Code clean up.
5333 Handle protected class-wide or task class-wide types
5334 Handle C/C++/CIL/Java types.
5335 * s-spsufi.adb, s-spsufi.ads: New files.
5336
5337 2011-08-29 Yannick Moy <moy@adacore.com>
5338
5339 * sem_ch13.adb (Analyze_Aspect_Specifications): Reject test-case on
5340 library-level subprogram.
5341 * sem_prag.adb (Check_Test_Case): Stricter rules for test-case
5342 placement.
5343 (Analyze_Pragma): Change name "Normal" for "Nominal" in test-case
5344 component.
5345 * snames.ads-tmpl: Change name "Normal" for "Nominal" in test-case
5346 component.
5347 * gnat_rm.texi: Update doc for Test_Case pragma.
5348
5349 2011-08-29 Tristan Gingold <gingold@adacore.com>
5350
5351 * a-exexpr-gcc.adb (Unwind_Exception): Remove default value, made it
5352 convention C.
5353 (GCC_Exception_Access): New type.
5354 (Unwind_DeleteException): New imported procedure
5355 (Foreign_Exception): Import it.
5356 (GNAT_GCC_Exception): Simply have the occurrence inside.
5357 (To_GCC_Exception): New function.
5358 (To_GNAT_GCC_Exception): New function.
5359 (GNAT_GCC_Exception_Cleanup): New procedure..
5360 (Propagate_GCC_Exception): New procedure.
5361 (Reraise_GCC_Exception): New procedure.
5362 (Setup_Current_Excep): New procedure.
5363 (CleanupUnwind_Handler): Change type of UW_Exception parameter.
5364 (Unwind_RaiseException): Ditto.
5365 (Unwind_ForcedUnwind): Ditto.
5366 (Remove): Removed.
5367 (Begin_Handler): Change type of parameter.
5368 (End_Handler): Ditto. Now delete the exception if still present.
5369 (Setup_Key): Removed.
5370 (Is_Setup_And_Not_Propagated): Removed.
5371 (Set_Setup_And_Not_Propagated): Ditto.
5372 (Clear_Setup_And_Not_Propagated): Ditto.
5373 (Save_Occurrence_And_Private): Ditto.
5374 (EID_For): Add 'not null' constraint on parameter.
5375 (Setup_Exception): Does nothing.
5376 (Propagate_Exception): Simplified.
5377 * exp_ch11.adb (Expand_N_Raise_Statement): In back-end exception model,
5378 re-raise is not expanded anymore.
5379 * s-except.ads (Foreign_Exception): New exception - placeholder for
5380 non Ada exceptions.
5381 * raise-gcc.c (__gnat_setup_current_excep): Declare
5382 (CXX_EXCEPTION_CLASS): Define (not yet used)
5383 (GNAT_EXCEPTION_CLASS): Define.
5384 (is_handled_by): Handle foreign exceptions.
5385 (PERSONALITY_FUNCTION): Call __gnat_setup_current_excep.
5386
5387 2011-08-29 Jose Ruiz <ruiz@adacore.com>
5388
5389 * a-synbar.adb (Synchronous_Barrier): Some additional clarification.
5390
5391 2011-08-29 Thomas Quinot <quinot@adacore.com>
5392
5393 * a-synbar-posix.adb: Minor reformatting.
5394
5395 2011-08-29 Jose Ruiz <ruiz@adacore.com>
5396
5397 * a-exetim-posix.adb, a-exetim-mingw.adb, a-exetim-mingw.ads,
5398 a-exetim-default.ads (Interrupt_Clocks_Supported,
5399 Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these
5400 definitions to be compliant with AI-0171. The target systems do not
5401 support separate account for the execution time of interrupt handlers.
5402
5403 2011-08-29 Jose Ruiz <ruiz@adacore.com>
5404
5405 * a-synbar.adb (Wait): Change the order of evaluation of the conditions
5406 in the barrier to put first the easiest to evaluate (and the one which
5407 will be True more often). More efficient.
5408
5409 2011-08-29 Eric Botcazou <ebotcazou@adacore.com>
5410
5411 * s-atocou-x86.adb: Fix constraint in machine code insertion.
5412
5413 2011-08-29 Bob Duff <duff@adacore.com>
5414
5415 * aspects.ads, aspects.adb: Add new aspects for various pragmas and
5416 attributes that are now aspects, as specified by AI05-0229-1.
5417 * sem_ch13.adb (Analyze_Aspect_Specifications,
5418 Check_Aspect_At_Freeze_Point): Analyze the new aspects. Turn them into
5419 pragmas or attribute references, as appropriate.
5420
5421 2011-08-29 Robert Dewar <dewar@adacore.com>
5422
5423 * a-synbar.ads, a-synbar.adb, a-synbar-posix.adb,
5424 a-synbar-posix.ads: Minor reformatting.
5425
5426 2011-08-29 Yannick Moy <moy@adacore.com>
5427
5428 * snames.ads-tmpl: Add name Force.
5429
5430 2011-08-29 Pascal Obry <obry@adacore.com>
5431
5432 * prj-nmsc.adb: Minor reformatting.
5433
5434 2011-08-29 Jose Ruiz <ruiz@adacore.com>
5435
5436 * a-exetim.ads (Interrupt_Clocks_Supported,
5437 Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these
5438 definitions to be compliant with AI-0171.
5439
5440 2011-08-29 Robert Dewar <dewar@adacore.com>
5441
5442 * a-ngelfu.adb: Add comments.
5443
5444 2011-08-29 Geert Bosch <bosch@adacore.com>
5445
5446 * a-ngelfu.adb (Tan): Do not raise Constraint_Error if the argument is
5447 the closest machine number to Pi / 2.0.
5448
5449 2011-08-29 Jose Ruiz <ruiz@adacore.com>
5450
5451 * impunit.adb (Non_Imp_File_Names_12): Add a-synbar for new Ada 2012
5452 package Ada.Synchronous_Barriers.
5453 * a-synbar.ads, a-synbar.adb, a-synbar-posix.ads, a-synbar-posix.adb:
5454 Add new specs and bodies for Ada.Synchronous_Barriers. There is a
5455 default implementation using protected objects and another one
5456 a-synbar-posix using POSIX barriers as the underlying support.
5457 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for Linux (x86,
5458 x86_64, ia64) and MIPS IRIX): Use the a-synbar-posix implementation of
5459 Ada.Synchronous_Barriers which uses POSIX barriers (more efficient).
5460 Clean up dependencies.
5461 * Makefile.rtl (GNATRTL_TASKING_OBJS): Add a-synbar.o
5462
5463 2011-08-29 Robert Dewar <dewar@adacore.com>
5464
5465 * sem_ch7.adb, make.adb, sem_res.adb, exp_intr.adb,
5466 exp_dist.adb: Minor code reorganization.
5467 Minor reformatting.
5468
5469 2011-08-29 Thomas Quinot <quinot@adacore.com>
5470
5471 * sem_cat.adb (Validate_RACW_Primitive): The return type of an RACW
5472 primitive operation must support external streaming if it is not a
5473 controlling access result.
5474
5475 2011-08-29 Thomas Quinot <quinot@adacore.com>
5476
5477 * sinfo.ads, sem_ch7.adb: Minor reformatting.
5478
5479 2011-08-29 Bob Duff <duff@adacore.com>
5480
5481 * sem_ch4.adb (Analyze_Allocator): Check No_Nested_Finalization
5482 restriction on allocators, as required by AI05-0013-1.
5483 * restrict.ads: Minor comment fix.
5484
5485 2011-08-29 Tristan Gingold <gingold@adacore.com>
5486
5487 * a-exexpr.adb, a-except-2005.ads (Jmpbuf_Address): Move to a-exexpr.adb
5488 (To_Jmpbuf_Address): Ditto
5489 (builtin_longjmp): Ditto
5490
5491 2011-08-29 Thomas Quinot <quinot@adacore.com>
5492
5493 * sem_res.adb: Minor reformatting.
5494
5495 2011-08-29 Vincent Celier <celier@adacore.com>
5496
5497 * make.adb (Gnatmake): Move special processing for VM targets after the
5498 call to Get_Target_Parameters.
5499
5500 2011-08-29 Thomas Quinot <quinot@adacore.com>
5501
5502 * sem_ch12.adb, par-ch12.adb: Minor reformatting.
5503
5504 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5505
5506 * sem_res.adb (Resolve_Allocator): Implement Ada2012-B052. Detect cases
5507 where an anonymous access discriminant of a limited designated type
5508 appears in a non-immutably limited discriminated type and issue an
5509 error message. Add local variable Desig_T and replace all occurrences
5510 of Designated_Type.
5511
5512 2011-08-29 Jose Ruiz <ruiz@adacore.com>
5513
5514 * a-rttiev.adb (Set_Handler): Update comment to indicate that our
5515 implementation is compliant to RM D.15(15/2) after the modification
5516 imposed by AI05-0094-1 (binding interpretation).
5517
5518 2011-08-29 Robert Dewar <dewar@adacore.com>
5519
5520 * exp_ch9.adb, s-tasren.adb, exp_sel.adb, exp_sel.ads, exp_ch11.adb,
5521 s-interr-hwint.adb, s-tpobop.adb, sem_ch13.adb: Minor reformatting.
5522
5523 2011-08-29 Thomas Quinot <quinot@adacore.com>
5524
5525 * par-endh.adb (Check_End): For an END where it is mandatory to repeat
5526 the scope name, do not report a missing label as a style violation (it
5527 will be diagnosed as an illegality).
5528 * exp_dist.adb (Add_Params_For_Variant_Components): Fix handling of
5529 variant records: Get_Enum_Lit_From_Pos already returns a usage
5530 occurrence of the literal, no need to use New_Occurrence_Of. Set Etype
5531 on Expr in Integer_Literal case so that it can be used by
5532 Build_To_Any_Call.
5533
5534 2011-08-29 Tristan Gingold <gingold@adacore.com>
5535
5536 * exp_sel.ads (Build_Abort_BLock_Handler): New function spec.
5537 Adjust comment.
5538 * exp_sel.adb (Build_Abort_Block): Use Build_Abort_Block_Handler.
5539 (Build_Abort_Block_Handler): New function to build an Abort_Signal
5540 exception handler.
5541 * exp_ch9.adb (Expand_N_Asynchronous_Select): Call
5542 Build_Abort_Block_Handler to build the exception handler. Do not
5543 undefer aborts for the Abort_Signal exception handler if back-end
5544 exception mechanism.
5545 * exp_ch11.adb (Expand_Exception_Handlers): Do not undefer aborts if
5546 back_end exceptions for all others and abort_signal.
5547 * s-except.ads (ZCX_By_Default): New constant.
5548 * a-except-2005.adb (Raise_Exception): Do not defer abort if ZCX.
5549 (Raise_Exception_Always): Ditto.
5550 (Raise_From_Signal_Handler): Ditto.
5551 (Raise_With_Location_And_Msg): Ditto.
5552 (Raise_With_Msg): Ditto.
5553 (Reraise): Ditto.
5554 (Reraise_Occurence): Ditto.
5555 (Reraise_Occurrence_Always): Ditto.
5556 * s-tasren.adb (Exceptional_Complete_Rendezvous): Defer aborts if ZCX.
5557 * s-tpobop.adb: (Exceptional_Complete_Body): Undefer abort if ZCX.
5558
5559 2011-08-29 Thomas Quinot <quinot@adacore.com>
5560
5561 * sem_util.ads (Get_Enum_Lit_From_Pos): Clarify documentation.
5562
5563 2011-08-29 Robert Dewar <dewar@adacore.com>
5564
5565 * snames.adb-tmpl, sem_ch13.adb: Minor reformatting
5566 Minor code reorganization.
5567
5568 2011-08-29 Bob Duff <duff@adacore.com>
5569
5570 * usage.adb (-gnatwy): Fix documentation: this switch applies to Ada
5571 2012, not just Ada 2005.
5572
5573 2011-08-29 Vincent Celier <celier@adacore.com>
5574
5575 * gnat_ugn.texi: Indicate that when the compiler is called by gnatmake
5576 with a project file or with gprbuid, if -gnatep= is specified, the
5577 builder may need to be invoked with -x.
5578
5579 2011-08-29 Tristan Gingold <gingold@adacore.com>
5580
5581 * a-exexpr-gcc.adb: Minor comment fix.
5582
5583 2011-08-29 Robert Dewar <dewar@adacore.com>
5584
5585 * sem_ch8.adb: Minor reformatting.
5586
5587 2011-08-29 Bob Duff <duff@adacore.com>
5588
5589 * par-ch2.adb (P_Identifier): Warn that "some" is reserved in Ada 2012.
5590 * par-ch4.adb (P_Quantified_Expression): Remove unnecessary code for
5591 treating "some" as unreserved in earlier Ada versions. This is now
5592 handled in Snames.Is_Keyword_Name. Parse "for some" using Tok_Some,
5593 rather than Name_Some, since Tok_Some is now recognized as reserved.
5594 * scans.adb (Initialize_Ada_Keywords): Handle Tok_Some like any other
5595 reserved word.
5596 * scans.ads: Minor comment fixes.
5597 * snames.adb-tmpl (Is_Keyword_Name): Handle Ada 2012 reserved words as
5598 for other language versions.
5599 * scn.adb (Scan_Reserved_Identifier): Remove unnecessary code for
5600 treating "some" as unreserved in earlier Ada versions. This is now
5601 handled in Snames.Is_Keyword_Name.
5602 * par-ch3.adb (P_Defining_Identifier): Warn that "some" is reserved in
5603 Ada 2012.
5604 (P_Subtype_Mark_Resync): Remove unnecessary code for treating "some" as
5605 unreserved in earlier Ada versions. This is now handled in
5606 Snames.Is_Keyword_Name.
5607 * snames.ads-tmpl (Ada_2012_Reserved_Words): Handle Ada 2012 reserved
5608 words as for other language versions.
5609 * gnat_ugn.texi (-gnatwy): Fix documentation: this switch applies to
5610 Ada 2012, not just Ada 2005.
5611
5612 2011-08-29 Ed Schonberg <schonberg@adacore.com>
5613
5614 * sem_ch13.adb: Additional semantic checks for aspects involved in
5615 iterators.
5616
5617 2011-08-29 Matthew Heaney <heaney@adacore.com>
5618
5619 * a-comutr.ads, a-comutr.adb, a-cimutr.ads, a-cimutr.adb,
5620 a-cbmutr.ads, a-cbmutr.adb (Find_In_Subtree): Remove superfluous
5621 Container parameter.
5622 (Ancestor_Find): ditto.
5623
5624 2011-08-29 Thomas Quinot <quinot@adacore.com>
5625
5626 * par-endh.adb: Minor reformatting.
5627
5628 2011-08-29 Tristan Gingold <gingold@adacore.com>
5629
5630 * a-exexpr-gcc.adb (Unwind_Action) Rewrite as an integer with constants.
5631 (GNAT_GCC_Exception): Remove N_Cleanups_To_Trigger component.
5632 (Adjust_N_CLeanups_For): Remove.
5633 (CleanupUnwind_Handler): Call Unhandled_Exception_Terminate when end of
5634 stack is reached.
5635 (Propgate_Exception): Adjust.
5636 * raise-gcc.c: Add a few static/const.
5637 (Adjust_N_Cleanups_For): Remove declaration.
5638 (PERSONALITY_FUNCTION): Remove code dealing with N_Cleanups_To_Trigger.
5639
5640 2011-08-29 Ed Schonberg <schonberg@adacore.com>
5641
5642 * sem_ch8.adb: Use type of function return when rewriting as object
5643 declaration.
5644
5645 2011-08-29 Gary Dismukes <dismukes@adacore.com>
5646
5647 * sem_type.adb: Minor reformatting.
5648
5649 2011-08-29 Robert Dewar <dewar@adacore.com>
5650
5651 * makeutl.adb: Minor reformatting.
5652
5653 2011-08-29 Ed Schonberg <schonberg@adacore.com>
5654
5655 * sem_ch8.adb (Analyze_Object_Renaming): If the renamed object is a
5656 function call of a limited type, the expansion of the renaming is
5657 complicated by the presence of various temporaries and subtypes that
5658 capture constraints of the renamed object.
5659 Rewrite node as an object declaration, whose expansion is simpler.
5660 Given that the object is limited there is no copy involved and no
5661 performance hit.
5662
5663 2011-08-29 Robert Dewar <dewar@adacore.com>
5664
5665 * exp_ch5.adb, sinfo.ads, make.adb, s-pooglo.adb, sem_ch12.adb,
5666 freeze.adb, sem_ch6.adb, par-ch12.adb: Minor reformatting.
5667
5668 2011-08-29 Tristan Gingold <gingold@adacore.com>
5669
5670 * system-darwin-x86.ads, system-linux-s390x.ads, system-linux-alpha.ads,
5671 system-tru64.ads, system-irix-n32.ads, system-vxworks-arm.ads,
5672 system-linux-hppa.ads, system-linux-s390.ads,
5673 system-solaris-sparcv9.ads, system-mingw.ads, system-linux-ia64.ads,
5674 system-vms_64.ads, system-vxworks-sparcv9.ads, system-linux-ppc.ads,
5675 system-aix64.ads, system-lynxos-ppc.ads, system-linux-sh4.ads,
5676 system-solaris-x86.ads, system-linux-x86_64.ads, system-linux-x86.ads,
5677 system-vxworks-ppc.ads, system-hpux.ads, system-darwin-ppc.ads,
5678 system-solaris-sparc.ads, system-lynxos-x86.ads,
5679 system-vxworks-m68k.ads, system-hpux-ia64.ads, system-irix-o32.ads,
5680 system-solaris-x86_64.ads, system-mingw-x86_64.ads,
5681 system-vxworks-mips.ads, system-linux-sparc.ads, system-vms-ia64.ads,
5682 system-freebsd-x86.ads, system-aix.ads, system-darwin-x86_64.ads,
5683 system-vxworks-x86.ads: Remove GCC_ZCX_Support.
5684 * s-taprop-posix.adb, s-taprop-irix.adb, s-taprop-vxworks.adb,
5685 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb: Ditto.
5686 * opt.ads: Adjust comment.
5687 * targparm.ads, targparm.adb: Remove GCC_ZCX_Support_On_Target.
5688 * gnat1drv.adb: Do not check for GCC_ZCX_Support_On_Target.
5689 * system.ads: Move GCC_ZCX_Support to obsolete entries.
5690
5691 2011-08-29 Emmanuel Briot <briot@adacore.com>
5692
5693 * makeutl.adb (Do_Complete): Resolve symbolic links when a relative
5694 file name is specified on the gnatmake or gprbuild command line, and
5695 before we search for that file in the project.
5696
5697 2011-08-29 Ed Schonberg <schonberg@adacore.com>
5698
5699 * sem_type.adb (Within_Instance): New predicate in Collect_Interps,
5700 used to determine whether a possible interpretation for an overloadable
5701 entity is declared within the current instantiation and should be
5702 included in the candidate set.
5703
5704 2011-08-29 Vasiliy Fofanov <fofanov@adacore.com>
5705
5706 * gnat_rm.texi, gnat_ugn.texi: Clean ups.
5707
5708 2011-08-29 Ed Schonberg <schonberg@adacore.com>
5709
5710 * sem_res.adb (Resolve_Actuals): Use base type to determine whether an
5711 access subtype is access_to_subprogram, when applying checks for
5712 RM 3.10.2 (27).
5713
5714 2011-08-29 Matthew Heaney <heaney@adacore.com>
5715
5716 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Splice_Subtree): Only check
5717 for sibling when common parent.
5718
5719 2011-08-29 Thomas Quinot <quinot@adacore.com>
5720
5721 * get_scos.adb: Literals of Pragma_Id are pragma names prefixed with
5722 "pragma_".
5723
5724 2011-08-29 Ed Schonberg <schonberg@adacore.com>
5725
5726 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Enable freeze actions
5727 for the return type when in ASIS mode.
5728
5729 2011-08-29 Vincent Celier <celier@adacore.com>
5730
5731 * make.adb (Gnatmake): Get the default search dirs, then the target
5732 parameters after getting the Builder switches, as the Builder switches
5733 may include --RTS= and that could change the default search dirs.
5734
5735 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5736
5737 * exp_ch7.adb (Make_Adjust_Call): Rewrite to mimic the structure of
5738 Make_Final_Call. Move the processing for class-wide types before the
5739 processing for derivations from [Limited_]Controlled.
5740 (Make_Final_Call): Move the processing for class-wide types before the
5741 processing for derivations from [Limited_]Controlled.
5742 * s-stposu.adb (Allocate_Any_Controlled): Correct the membership check.
5743 Add code to account for alignments larger than the list header. Add a
5744 comment illustrating the structure of the allocated object + padding +
5745 header.
5746 (Deallocate_Any_Controlled): Add code to account for alignments larger
5747 than the list header.
5748
5749 2011-08-29 Ed Schonberg <schonberg@adacore.com>
5750
5751 * sinfo.ads, sinfo.adb: New node kind
5752 N_Formal_Incomplete_Type_Definition, related flags.
5753 par-ch12.adb (P_Formal_Type_Declaration, G_Formal_Type_Definition):
5754 Parse formal incomplete types.
5755 * sem.adb (Analyze): Formal_Incomplete_Type_Definitions are handled in
5756 sem_ch12.
5757 * sem_ch7.adb (Analyze_Package_Specification, Unit_Requires_Body):
5758 Formal incomplete types do not need completion.
5759 * sem_ch12.adb (Analyze_Formal_Incomplete_Type,
5760 Validate_Incomplete_Type_Instance): New procedures to handle formal
5761 incomplete types.
5762 * freeze.adb (Freeze_Entity): Do not freeze the subtype of an actual
5763 that corresponds to a formal incomplete type.
5764 * sprint.adb: Handle formal incomplete type declarations.
5765 * exp_util.adb (Insert_Actions): An incomplete_type_definition is not
5766 an insertion point.
5767
5768 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
5769
5770 * a-fihema.ads, a-fihema.adb: Unit removed.
5771 * a-undesu.ads, a-undesu.adb: New unit implementing
5772 Ada.Unchecked_Deallocate_Subpool.
5773 * einfo.adb: Remove Associated_Collection from the node usage.
5774 Add Finalization_Master to the node usage.
5775 (Associated_Collection): Removed.
5776 (Finalization_Master): New routine.
5777 (Set_Associated_Collection): Removed.
5778 (Set_Finalization_Master): New routine.
5779 (Write_Field23_Name): Remove Associated_Collection from the output. Add
5780 Finalization_Master to the output.
5781 * einfo.ads: Remove attribute Associated_Collection and its uses in
5782 entities.
5783 Add new attribute Finalization_Master along with its uses in entitites.
5784 (Associated_Collection): Removed along with its pragma import.
5785 (Finalization_Master): New routine along with a pragma import.
5786 (Set_Associated_Collection): Removed along with its pragma import.
5787 (Set_Finalization_Master): New routine along with a pragma import.
5788 * exp_ch3.adb (Expand_Freeze_Array_Type): Replace call to
5789 Build_Finalization_Collection with Build_Finalization_Master.
5790 (Expand_Freeze_Record_Type): Move the generation of Finalize_Address
5791 before the bodies of the predefined routines. Add comment explaining
5792 this. Replace call to Build_Finalization_Collection with
5793 Build_Finalization_Master.
5794 (Freeze_Type): Replace call to Build_Finalization_Collection with
5795 Build_Finalization_Master.
5796 (Make_Finalize_Address_Body): Comment reformatting.
5797 (Make_Predefined_Primitive_Specs): Code reformatting.
5798 (Stream_Operation_OK): Update comment mentioning finalization
5799 collections. Replace RE_Finalization_Collection with
5800 RE_Finalization_Master.
5801 * exp_ch4.adb (Complete_Controlled_Allocation): Replace call to
5802 Associated_Collection with Finalization_Master. Replace call to
5803 Build_Finalization_Collection with Build_Finalization_Master.
5804 (Expand_Allocator_Expression): Replace call to Associated_Collection
5805 with Finalization_Master. Replace call to Set_Associated_Collection with
5806 Set_Finalization_Master. Remove the generation of
5807 Set_Finalize_Address_Ptr.
5808 (Expand_N_Allocator): Replace call to Associated_Collection with
5809 Finalization_Master. Remove the generation of Set_Finalize_Address_Ptr.
5810 * exp_ch6.adb (Add_Collection_Actual_To_Build_In_Place_Call): Renamed to
5811 Add_Finalization_Master_Actual_To_Build_In_Place_Call. Update the
5812 comment on usage. Replace call to Needs_BIP_Collection with
5813 Needs_BIP_Finalization_Master Remplace BIP_Collection with
5814 BIP_Finalization_Master. Update all comments which mention finalization
5815 collections. Replace Associated_Collection with
5816 Finalization_Master. Replace Build_Finalization_Collection with
5817 Build_Finalization_Master.
5818 (BIP_Formal_Suffix): Update BIP_Collection's case.
5819 (Build_Heap_Allocator): Update the related comment. Rename local
5820 variable Collect to Fin_Mas_Id and update its occurrences. Update
5821 comments which mention finalization collections. Replace
5822 Set_Associated_Collection with Set_Finalization_Master.
5823 (Expand_Call): Update the code which detects a special piece of library
5824 code for .NET/JVM.
5825 (Make_Build_In_Place_Call_In_Allocator): Replace the call to
5826 Add_Collection_Actual_To_Build_In_Place_Call with
5827 Add_Finalization_Master_Actual_To_Build_In_Place_Call. Remove the code
5828 which generates a call to Make_Set_Finalize_Address_Ptr_Call.
5829 (Make_Build_In_Place_Call_In_Anonymous_Context): Replace call to
5830 Add_Collection_Actual_To_Build_In_Place_Call with
5831 Add_Finalization_Master_Actual_To_Build_In_Place_Call.
5832 (Make_Build_In_Place_Call_In_Assignment): Replace call to
5833 Add_Collection_Actual_To_Build_In_Place_Call with
5834 Add_Finalization_Master_Actual_To_Build_In_Place_Call.
5835 (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master.
5836 * exp_ch6.ads: Rename BIP_Collection to BIP_Finalization_Master.
5837 (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master.
5838 * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Update comment on usage.
5839 Rename local variable Collect to Fin_Mas_Id and update its occurrences.
5840 Replace call to Set_Associated_Collection with Set_Finalization_Master.
5841 (Build_Finalization_Collection): Renamed to Build_Finalization_Master.
5842 Replace the call to Associated_Collection with Finalization_Master.
5843 Rename local variable Coll_Id to Fin_Mas_Id and update its occurrences.
5844 Update the way finalization master names are generated. Update the
5845 retrieval of the correct access type which will carry the pool and
5846 master attributes.
5847 (Make_Final_Call): Reimplement the way [Deep_]Finalize is retrieved.
5848 (Make_Finalize_Address_Body): Abstract types do not need
5849 Finalize_Address. Code reformatting.
5850 (Make_Finalize_Address_Stmts): Update comment on usage.
5851 (Make_Set_Finalize_Address_Ptr_Call): Removed.
5852 (Process_Declarations): Update comments.
5853 * exp_ch7.ads (Build_Finalization_Collection): Renamed to
5854 Build_Finalization_Master. Update associated comment.
5855 (Make_Set_Finalize_Address_Ptr_Call): Removed.
5856 * exp_ch13.adb: Update comments which mention finalization collections.
5857 (Expand_N_Free_Statement): Replace the call to Associated_Collection
5858 with Finalization_Master.
5859 * exp_util.adb (Build_Allocate_Deallocate_Proc): Reimplemented to
5860 create calls to routines Allocate_Any_Controlled and
5861 Deallocate_Any_Controlled.
5862 (Find_Finalize_Address): New routine.
5863 (Is_Allocate_Deallocate_Proc): Update the RTE entities used in the
5864 comparison.
5865 (Requires_Cleanup_Actions): Update the comment on freeze node
5866 inspection.
5867 * exp_util.ads: Remove comment on generated code for
5868 Build_Allocate_Deallocate_Proc. The code is now quite complex and it
5869 is better to simply look in the body.
5870 * freeze.adb (Freeze_All): Update the comment of finalization
5871 collections. Replace the call to Associated_Collection with
5872 Finalization_Master. Replace the call to Build_Finalization_Collection
5873 with Build_Finalization_Master.
5874 * impunit.adb: Add a-undesu and s-stposu to the list of units.
5875 * Makefile.rtl: Add files a-undesu, s-finmas and s-stposu. Remove file
5876 a-fihema.
5877 * rtsfind.adb (Get_Unit_Name): Remove the processing for children of
5878 Ada.Finalization. Add processing for children of System.Storage_Pools.
5879 * rtsfind.ads: Remove the naming of second level children of
5880 Ada.Finalization.
5881 Remove Ada_Finalization_Heap_Management from the list of units.
5882 Remove subtype Ada_Finalization_Child.
5883 Remove the following subprogram entities:
5884
5885 RE_Allocate
5886 RE_Deallocate
5887 RE_Finalization_Collection
5888 RE_Finalization_Collection_Ptr
5889 RE_Set_Finalize_Address_Ptr
5890
5891 Add the naming of second level children of System.Storage_Pools.
5892 Add System_Finalization_Masters and System_Storage_Pools_Subpools to
5893 the list of units.
5894 Add subtype System_Storage_Pools_Child.
5895 Add the following subprogram entities to System.Finalization_Masters:
5896
5897 RE_Finalization_Master
5898 RE_Finalization_Master_Ptr
5899
5900 Add the following subprogram entities to System.Storage_Pools.Subpools:
5901
5902 RE_Allocate_Any_Controlled
5903 RE_Deallocate_Any_Controlled
5904 RE_Root_Storage_Pool_With_Subpools
5905 RE_Root_Subpool
5906 RE_Subpool_Handle
5907
5908 Move the following subprogram entities from
5909 Ada.Finalization.Heap_Management to System.Finalization_Masters:
5910
5911 RE_Add_Offset_To_Address
5912 RE_Attach
5913 RE_Base_Pool
5914 RE_Detach
5915
5916 * sem_ch3.adb (Access_Type_Declaration): Replace the call to
5917 Set_Associated_Collection with Set_Finalization_Master.
5918 * sem_ch6.adb (Create_Extra_Formals): Update the way extra formal
5919 BIP_Finalization_Master is created.
5920 * s-finmas.adb: New unit System.Finalization_Masters.
5921 * s-finmas.ads: New unit System.Finalization_Masters.
5922 * s-stopoo.ads, s-stopoo.adb: Minor code reformatting.
5923 * s-stposu.ads, s-stposu.adb: New unit implementing
5924 System.Storage_Pools.Subpools.
5925
5926 2011-08-29 Bob Duff <duff@adacore.com>
5927
5928 * tbuild.adb: Add assertion.
5929
5930 2011-08-29 Thomas Quinot <quinot@adacore.com>
5931
5932 * s-pooglo.adb: Minor reformatting.
5933
5934 2011-08-29 Ed Schonberg <schonberg@adacore.com>
5935
5936 * exp_ch5.adb (Expand_N_Assignment_Statement): if the left-hand side is
5937 an indexed component of a packed array whose element type is a record
5938 with a representation clause different from that of the right-hand
5939 side, generate a temporary to minimuze the number of bit-field
5940 operations generated.
5941
5942 2011-08-29 Ed Schonberg <schonberg@adacore.com>
5943
5944 * exp_util.adb (Insert_Actions): Use clauses can be part of lists of
5945 declarations, and thus are likely insertion points for actions.
5946
5947 2011-08-29 Bob Duff <duff@adacore.com>
5948
5949 * einfo.ads: Minor comment fix.
5950
5951 2011-08-29 Robert Dewar <dewar@adacore.com>
5952
5953 * frontend.adb, gnat1drv.adb: Minor reformatting.
5954
5955 2011-08-29 Tristan Gingold <gingold@adacore.com>
5956
5957 * s-pooglo.adb (Allocate, Deallocate): Take into account the alignment.
5958 * a-fihema.adb (Allocate, Deallocate): Ditto. Possibly add padding
5959 space in front of the header.
5960
5961 2011-08-29 Johannes Kanig <kanig@adacore.com>
5962
5963 * frontend.adb (Frontend): Exit after creating Standard package when
5964 -gnatd.H is present.
5965 * gnat1drv.adb (Gnat1drv): Call Backend right away when -gnatd.H is
5966 present.
5967
5968 2011-08-29 Robert Dewar <dewar@adacore.com>
5969
5970 * exp_ch9.adb, mlib-prj.adb, prj.adb, prj.ads, ttypes.ads, sem_ch4.adb,
5971 makeutl.adb, makeutl.ads, atree.ads, snames.adb-tmpl,
5972 snames.ads-tmpl: Minor reformatting.
5973
5974 2011-08-29 Philippe Gil <gil@adacore.com>
5975
5976 * prj.adb (Reset_Units_In_Table): New procedure.
5977 Reset units to avoid access to freed memory.
5978
5979 2011-08-29 Thomas Quinot <quinot@adacore.com>
5980
5981 * get_scos.adb: When reading a P statement SCO without a pragma name
5982 (from an older ALI file), ensure that the Pragma_Name component is set
5983 to Unknown_Pragma (not left uninitialized).
5984
5985 2011-08-29 Vincent Celier <celier@adacore.com>
5986
5987 * makeutl.adb (Get_Directories): New procedure moved from Buildgpr and
5988 modified to compute correctly the object path of a SAL project that is
5989 extending another library project.
5990 (Write_Path_File): New procedure.
5991 * makeutl.ads (Directories): New table moved from Buildgpr
5992 (Get_Directories): New procedure moved from Buildgpr
5993 (Write_Path_File): New procedure
5994 * mlib-prj.adb (Build_Library): Use Makeutl.Get_Directories to set the
5995 paths before binding SALs, instead of Set_Ada_Paths.
5996 * prj-env.adb (Set_Path_File_Var): Procedure has been moved to package
5997 Prj.
5998 * prj.adb (Set_Path_File_Var): New procedure moved from Prj.Env
5999 (Current_Source_Path_File_Of): New function
6000 (Set_Current_Object_Path_File_Of): New procedure
6001 (Current_Source_Object_File_Of): New function
6002 (Set_Current_Object_Path_File_Of): New procedure
6003 * prj.ads (Set_Path_File_Var): New procedure moved from Prj.Env
6004 (Current_Source_Path_File_Of): New function
6005 (Set_Current_Object_Path_File_Of): New procedure
6006 (Current_Source_Object_File_Of): New function
6007 (Set_Current_Object_Path_File_Of): New procedure
6008
6009 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6010
6011 * exp_ch5.adb (Expand_N_Assignment_Statement): For an assignment to a
6012 packed entity, use a bit-field assignment only if there is no change of
6013 representation.
6014
6015 2011-08-29 Thomas Quinot <quinot@adacore.com>
6016
6017 * rtsfind.ads, exp_ch3.adb (In_Runtime): Minor code improvement, use
6018 Is_RTU instead of using Chars comparisons.
6019
6020 2011-08-29 Thomas Quinot <quinot@adacore.com>
6021
6022 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do not create a
6023 temporary object if the actual is constrained, and the discriminants
6024 read from the stream don't match.
6025
6026 2011-08-29 Tristan Gingold <gingold@adacore.com>
6027
6028 * sem_attr.adb, exp_attr.adb: Add handling of
6029 Attribute_System_Allocator_Alignment
6030 * snames.ads-tmpl: Add Name_System_Allocator_Alignment and
6031 Attribute_System_Allocator_Alignment.
6032 * ttypes.ads, get_targ.ads: Add Get_System_Allocator_Alignment.
6033 * gcc-interface/targtyps.c, gcc-interface/utils2.c,
6034 gcc-interface/gigi.h: Renames get_target_default_allocator_alignment to
6035 get_target_system_allocator_alignment.
6036
6037 2011-08-29 Arnaud Charlet <charlet@adacore.com>
6038
6039 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
6040 dependencies.
6041
6042 2011-08-29 Arnaud Charlet <charlet@adacore.com>
6043
6044 * exp_ch3.adb (In_Runtime): Fix typo.
6045
6046 2011-08-29 Bob Duff <duff@adacore.com>
6047
6048 * sem_ch4.adb (Analyze_Allocator): Analyze the subpool specification.
6049
6050 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6051
6052 * exp_ch3.adb (Expand_N_Object_Declaration): If the entity is tagged
6053 and a separate tag assignment is generated, ensure that the tag
6054 assignment is analyzed.
6055
6056 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6057
6058 * atree.ads, atree.adb (Copy_Separate_List): New function that applies
6059 Copy_Separate_Tree to a list of nodes. Used to create disjoint copies
6060 of statement lists that may contain local declarations.
6061 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Use Copy_Separate_List to
6062 duplicate the triggering statements needed for the expansion of this
6063 construct, when the trigger is a dispatching call to a synchronized
6064 primitive.
6065
6066 2011-08-29 Arnaud Charlet <charlet@adacore.com>
6067
6068 * gnat_rm.texi: Add doc for 'Elab_Subp_Body.
6069 * bindgen.adb: Add comments.
6070 * snames.adb-tmpl (Is_Attribute_Name): Only recognize 'Elab_Subp_Body
6071 in CodePeer mode.
6072
6073 2011-08-29 Robert Dewar <dewar@adacore.com>
6074
6075 * exp_attr.adb: Minor reformatting.
6076 Minor code reorganization and commenting.
6077 * par_sco.adb, checks.adb, sem_attr.adb, get_scos.adb: Minor
6078 reformatting.
6079
6080 2011-08-29 Thomas Quinot <quinot@adacore.com>
6081
6082 * get_scos.adb: Ignore chaining indicators not currently supported
6083 by Ada.
6084
6085 2011-08-29 Arnaud Charlet <charlet@adacore.com>
6086
6087 * system.ads: Minor editing.
6088
6089 2011-08-29 Arnaud Charlet <charlet@adacore.com>
6090
6091 * bindgen.adb (Gen_Elab_Calls): Generate calls to subp'Elab_Subp_Body in
6092 CodePeer mode.
6093 * sem_attr.ads, sem_attr.adb, exp_Attr.adb, sem_ch6.adb: Add handling of
6094 Attribute_Elab_Subp_Body.
6095 * snames.ads-tmpl (Attribute_Elab_Subp_Body, Name_Elab_Subp_Body): New.
6096 * sem_util.adb: Update comments.
6097
6098 2011-08-29 Thomas Quinot <quinot@adacore.com>
6099
6100 * par_sco.adb, scos.adb, scos.ads, put_scos.adb, get_scos.adb: Record
6101 pragma name for each SCO statement corresponding to a pragma.
6102
6103 2011-08-29 Arnaud Charlet <charlet@adacore.com>
6104
6105 * opt.ads: Minor editing.
6106
6107 2011-08-29 Yannick Moy <moy@adacore.com>
6108
6109 * gnat1drv.adb (Adjust_Global_Switches): Remove options for ALFA mode
6110 that only made sense for CodePeer mode.
6111
6112 2011-08-29 Jose Ruiz <ruiz@adacore.com>
6113
6114 * targparm.ads (Support_64_Bit_Divides_On_Target): Remove this flag
6115 which is no longer used.
6116 * targparm.adb (S64, S64_Str, Get_Target_Parameters): Remove the
6117 handling of the 64-bit division check.
6118 * exp_ch4.adb (Expand_N_Op_Divide): Remove the check for 64-bit
6119 division available.
6120 * system*.ads (Support_64_Bit_Divides): Remove this flag which is no
6121 longer used.
6122
6123 2011-08-29 Thomas Quinot <quinot@adacore.com>
6124
6125 * get_scos.adb: Minor reformatting.
6126
6127 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6128
6129 * exp_util.adb (Process_Statements_For_Controlled_Objects): Whenever a
6130 statement list is wrapped in a block, the block is explicitly analyzed
6131 in order to properly redecorate the entities and create a servicing
6132 finalizer.
6133
6134 2011-08-29 Tristan Gingold <gingold@adacore.com>
6135
6136 * sinfo.ads, sinfo.adb (Zero_Cost_Handling): Remove.
6137 (Set_Zero_Cost_Handling): Remove.
6138
6139 2011-08-29 Thomas Quinot <quinot@adacore.com>
6140
6141 * par_sco.adb, scos.ads, put_scos.adb, get_scos.adb: Minor reformatting
6142
6143 2011-08-29 Geert Bosch <bosch@adacore.com>
6144
6145 * s-vaflop-vms-alpha.adb (Neg_F): Use subtraction instead of negation
6146 instruction, as the latter may produce -0.0, which is not a valid VAX
6147 F float number.
6148 (Neg_G): Likewise for VAX F float.
6149
6150 2011-08-29 Robert Dewar <dewar@adacore.com>
6151
6152 * exp_util.adb: Minor reformatting.
6153
6154 2011-08-29 Yannick Moy <moy@adacore.com>
6155
6156 * sem_ch3.adb: Minor comment update.
6157
6158 2011-08-29 Thomas Quinot <quinot@adacore.com>
6159
6160 * checks.adb (Apply_Type_Conversion_Checks): Use the Underlying_Type of
6161 the operand type.
6162
6163 2011-08-29 Thomas Quinot <quinot@adacore.com>
6164
6165 * par_sco.adb (Traverse_Declarations_Or_Statements): Do not flush
6166 current statement sequence on a generic instantiation or a subprogram
6167 declaration.
6168
6169 2011-08-29 Robert Dewar <dewar@adacore.com>
6170
6171 * sem_type.adb, einfo.ads, freeze.adb, exp_ch4.adb, sem_ch13.adb:
6172 Minor reformatting.
6173
6174 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
6175
6176 * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)):
6177 Correct the check which involves the freeze node of a controlled or
6178 access-to-controlled type.
6179
6180 2011-08-29 Geert Bosch <bosch@adacore.com>
6181
6182 * sem_warn.adb (Check_Code_Statement): Remove check for consecutive Asm
6183 statements.
6184 * s-vaflop-vms-alpha.adb: Remove bogus Volatile => True arguments from
6185 Asm statements.
6186
6187 2011-08-29 Yannick Moy <moy@adacore.com>
6188
6189 * sem_ch3.adb (Array_Type_Declaration): Insert a subtype declaration
6190 for every index type and component type that is not a subtype_mark.
6191 (Process_Subtype): Set Etype of subtype.
6192
6193 2011-08-29 Robert Dewar <dewar@adacore.com>
6194
6195 * a-cbmutr.adb, a-cimutr.adb, a-comutr.adb, prj-nmsc.adb: Minor code
6196 reorganization. Minor reformatting.
6197
6198 2011-08-29 Steve Baird <baird@adacore.com>
6199
6200 * exp_ch4.adb (Expand_N_Op_Expon): Suppress N_Op_Expon node expansion
6201 for CodePeer and ALFA modes.
6202
6203 2011-08-29 Ed Schonberg <schonberg@adacore.com>
6204
6205 * sem_type.adb (Collect_Interps): Within an instance, collect a homonym
6206 that comes from an enclosing scope if it is not the renaming of an
6207 actual, to handle properly a spurious ambiguity in an instance.
6208
6209 2011-08-29 Eric Botcazou <ebotcazou@adacore.com>
6210
6211 * sem_ch13.adb (Alignment_Check_For_Esize_Change): Rename to...
6212 (Alignment_Check_For_Size_Change): ...this. Add SIZE parameter and
6213 use it instead of the Esize of the first parameter.
6214 (Analyze_Attribute_Definition_Clause) <Object_Size>: Adjust call to
6215 above change.
6216 <Size>: Likewise. Call it for composite types on the RM size.
6217
6218 2011-08-29 Yannick Moy <moy@adacore.com>
6219
6220 * exp_ch4.adb (Expand_N_Op_Not): Do not expand not on array.
6221 * sem_util.adb (Unique_Name): Correct behaviour for names of
6222 compilation units.
6223
6224 2011-08-29 Yannick Moy <moy@adacore.com>
6225
6226 * sem_prag.adb (Check_Precondition_Postcondition): In formal
6227 verification mode, analyze pragma expression for correctness, for
6228 pre/post on library-level subprogram, as it is not expanded later.
6229
6230 2011-08-29 Yannick Moy <moy@adacore.com>
6231
6232 * exp_aggr.adb (Expand_Array_Aggregate): Do not expand array aggregates
6233 in formal verification.
6234
6235 2011-08-29 Thomas Quinot <quinot@adacore.com>
6236
6237 * sem_util.adb: Minor reformatting.
6238 * freeze.adb, sem_ch13.adb: Fix comment: Bit_Order is an attribute,
6239 there's no pragma.
6240 * par_sco.ads, par_sco.adb: Update comments.
6241
6242 2011-08-29 Yannick Moy <moy@adacore.com>
6243
6244 * einfo.adb, einfo.ads: Remove flag Is_Postcondition_Proc and
6245 associated getter/setter.
6246 * sem_ch6.adb: Remove reference to Is_Postcondition_Proc.
6247
6248 2011-08-29 Vincent Celier <celier@adacore.com>
6249
6250 * prj-attr.adb: New Compiler attribute Dependency_Kind and Language_Kind
6251 * prj-conf.adb: Add_Default_GNAT_Naming_Scheme: Add a package Compiler
6252 with declarations for Language_Kind and Dependency_Kind for Ada.
6253 * prj-nmsc.adb (Check_Unit_Name): New name of procedure Check_Ada_Name
6254 (Process_Compiler): Take into account the new attributes Dependency_Kind
6255 and Language_Kind.
6256 (Check_Configuration): Check if language kind is unit based, not if the
6257 language name is Ada.
6258 (Process_Exceptions_Unit_Based): Ditto
6259 (Add_Language): Remove default additions of language and dependency kind
6260 * prj.ads: Minor comment change
6261 * snames.ads-tmpl: New standard names Dependency_Kind and Language_Kind
6262
6263 2011-08-29 Johannes Kanig <kanig@adacore.com>
6264
6265 * debug.adb: Update comments.
6266
6267 2011-08-24 Joseph Myers <joseph@codesourcery.com>
6268
6269 * gcc-interface/Make-lang.in (CFLAGS-ada/tracebak.o)
6270 (CFLAGS-ada/targext.o, CFLAGS-ada/cio.o, CFLAGS-ada/init.o)
6271 (CFLAGS-ada/initialize.o, CFLAGS-ada/raise.o): New.
6272 (ada/tracebak.o, ada/targext.o, ada/cio.o, ada/init.o)
6273 (ada/initialize.o, ada/raise.o): Remove explicit compilation rules.
6274
6275 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6276
6277 * gcc-interface/Makefile.in (PICFLAG_FOR_TARGET): New.
6278 (GNATLIBCFLAGS_FOR_C): Replace
6279 TARGET_LIBGCC2_CFLAGS by PICFLAG_FOR_TARGET.
6280 (gnatlib-shared-default, gnatlib-shared-dual-win32)
6281 (gnatlib-shared-win32, gnatlib-shared-darwin, gnatlib-shared)
6282 (gnatlib-sjlj, gnatlib-zcx): Likewise.
6283
6284 2011-08-07 Eric Botcazou <ebotcazou@adacore.com>
6285
6286 * gcc-interface/Makefile.in (raise-gcc.o): Fix previous change.
6287
6288 * gcc-interface/gigi.h (enumerate_modes): Fix formatting.
6289
6290 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Revert latest change.
6291
6292 2011-08-05 Nicolas Roche <roche@adacore.com>
6293
6294 * gcc-interface/Makefile.in: Don't use directly ../xgcc to build shared
6295 libgnat. Use rather the value of GCC_FOR_TARGET. Fix issue with
6296 canadian cross.
6297 * gcc-interface/Make-lang.in: Add support for canadian cross setting.
6298
6299 2011-08-05 Matthew Heaney <heaney@adacore.com>
6300
6301 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Child_Count, Child_Depth):
6302 subprogram bodies declared out-of-order.
6303
6304 2011-08-05 Yannick Moy <moy@adacore.com>
6305
6306 * sem_util.adb (Unique_Name): only prefix with "standard" the names of
6307 entities directly in package Standard, otherwise skip the standard
6308 prefix.
6309
6310 2011-08-05 Robert Dewar <dewar@adacore.com>
6311
6312 * a-cbmutr.adb: Minor reformatting
6313 (Allocate_Node): refactor node allocation algorithm
6314
6315 2011-08-05 Robert Dewar <dewar@adacore.com>
6316
6317 * opt.ads, opt.adb (Debug_Pragmas_Disabled): New switch.
6318 * sem_prag.adb (Analyze_Pragma, case Debug_Policy): Implement Disable
6319 mode.
6320 (Analyze_Pragma, case Check_Policy): Ditto.
6321 * sem_prag.ads (Check_Disabled): New function
6322 * snames.ads-tmpl: Add Name_Disable.
6323
6324 2011-08-05 Robert Dewar <dewar@adacore.com>
6325
6326 * gnat_rm.texi: Document implementation-defined policy DISABLE for
6327 pragmas Assertion_Policy, Check_Policy, Debug_Policy.
6328
6329 2011-08-05 Ed Schonberg <schonberg@adacore.com>
6330
6331 * sem_prag.adb (Analyze_Pragma, case Inline): reject an Inline pragma
6332 that appears in a generic formal part and applies to a formal
6333 subprogram.
6334
6335 2011-08-05 Robert Dewar <dewar@adacore.com>
6336
6337 * a-cbmutr.ads: Minor reformatting.
6338
6339 2011-08-05 Matthew Heaney <heaney@adacore.com>
6340
6341 * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Read): do not use T'Valid
6342 to check count, check sign of value instead.
6343 * a-comutr.adb, a-cimutr.adb (Write): return immediately if tree empty
6344 (Copy_Subtree): allocate copy of source element
6345 (Equal_Subtree): compare elements, not access objects
6346
6347 2011-08-05 Vincent Celier <celier@adacore.com>
6348
6349 * gnat_ugn.texi: Fix VMS alternative.
6350
6351 2011-08-05 Thomas Quinot <quinot@adacore.com>
6352
6353 * sem_ch11.adb: Add comment.
6354
6355 2011-08-05 Robert Dewar <dewar@adacore.com>
6356
6357 * exp_util.adb: Minor comment fix.
6358
6359 2011-08-05 Robert Dewar <dewar@adacore.com>
6360
6361 * scng.adb (Error_Unterminated_String): Improve flag position when
6362 comma present.
6363
6364 2011-08-05 Matthew Heaney <heaney@adacore.com>
6365
6366 * Makefile.rtl, impunit.adb: Added a-cbmutr.ad[sb] (bounded multiway
6367 tree containers).
6368 * a-cbmutr.ads, a-cbmutr.adb: This is the new Ada 2012 unit for bounded
6369 multiway tree containers.
6370
6371 2011-08-05 Robert Dewar <dewar@adacore.com>
6372
6373 * styleg.adb (Check_Comment): Implement comment spacing of 1 or 2
6374 * stylesw.adb: Implement -gnatyC to control comment spacing
6375 * stylesw.ads (Style_Check_Comments_Spacing): New switch (set by
6376 -gnatyc/C).
6377 * usage.adb: Add line for -gnatyC.
6378
6379 2011-08-05 Robert Dewar <dewar@adacore.com>
6380
6381 * gnat_ugn.texi: Document -gnatyC.
6382 * vms_data.ads: Implement COMMENTS1/COMMENTS2 (retaining COMMENTS as a
6383 synonym for COMMENTS2).
6384
6385 2011-08-05 Robert Dewar <dewar@adacore.com>
6386
6387 * par_sco.adb, sem_ch3.adb, scos.ads, a-iteint.ads, sem_ch12.adb,
6388 a-cimutr.adb, a-cimutr.ads, sem_util.ads, sem_res.adb, a-fihema.adb,
6389 sem_ch4.adb, lib-xref-alfa.adb, exp_disp.adb, a-comutr.adb,
6390 a-comutr.ads, lib-xref.adb: Minor reformatting.
6391
6392 2011-08-05 Robert Dewar <dewar@adacore.com>
6393
6394 * sem_ch11.adb (Analyze_Raise_Statement): Kill assignment to formal
6395 warning if there is an exception handler present.
6396
6397 2011-08-05 Pascal Obry <obry@adacore.com>
6398
6399 * a-iteint.ads: Fix copyright year.
6400
6401 2011-08-05 Thomas Quinot <quinot@adacore.com>
6402
6403 * par_sco.adb (Traverse_Declarations_Or_Statements): Do not generate a
6404 statement SCO for a USE clause or a representation clause.
6405
6406 2011-08-05 Yannick Moy <moy@adacore.com>
6407
6408 * lib-xref-alfa.adb (Collect_ALFA): generate the proper relation
6409 between body and spec for stub.
6410 (Detect_And_Add_ALFA_Scope): take into account subprogram stub
6411 * lib-xref.adb (Enclosing_Subprogram_Or_Package): in the case of a
6412 pragma precondition or postcondition, for which the enclosing
6413 subprogram or package in the AST is not the desired one, return empty.
6414
6415 2011-08-05 Thomas Quinot <quinot@adacore.com>
6416
6417 * g-expect.adb: Minor reformatting.
6418
6419 2011-08-05 Bob Duff <duff@adacore.com>
6420
6421 * a-fihema.adb: Comment out OS_Lib.
6422
6423 2011-08-05 Matthew Heaney <heaney@adacore.com>
6424
6425 * Makefile.rtl, impunit.adb: Added a-c[oi]mutr.ad[sb]
6426 (unbounded multiway tree containers) and a-iteint.ads.
6427 * a-comutr.ads, a-comutr.adb:
6428 This is the new Ada 2012 unit for unbounded multiway tree containers
6429 * a-cimutr.ads, a-cimutr.adb
6430 This is the new Ada 2012 unit for indefinite multiway tree containers
6431 * a-iteint.ads: New file.
6432
6433 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6434
6435 * gcc-interface/Makefile.in (raise-gcc.o): Search $(srcdir)/../libgcc.
6436
6437 2011-08-05 Bob Duff <duff@adacore.com>
6438
6439 * sinfo.ads, sinfo.adb (Subpool_Handle_Name): New attribute for
6440 subpools.
6441 * par-ch4.adb (P_Allocator): Parse new subpool specification syntax.
6442
6443 2011-08-05 Ed Schonberg <schonberg@adacore.com>
6444
6445 * sem_ch4.adb (Try_Container_Indexing): New procedure to implement the
6446 general indexing aspects of Ada2012. Called when analyzing indexed
6447 components when other interpretations fail.
6448 * sem_ch8.adb (Find_Direct_Name): check for implicit dereference only
6449 in an expression context where overloading is meaningful. This excludes
6450 the occurrence in an aspect specification (efficiency only).
6451 * sem_attr.adb (Analyze_Attribute): indicate that the attributes
6452 related to iterators can be set by an attribute specification, but
6453 cannot be queried.
6454 * sem_ch13.adb (Analyze_Aspect_Specifications): handle
6455 Constant_Indexing and Variable_Indexing.
6456 (Check_Indexing_Functions): New procedure to perform legality checks.
6457 Additional semantic checks at end of declarations.
6458
6459 2011-08-05 Sergey Rybin <rybin@adacore.com>
6460
6461 * tree_io.ads: Update ASIS_Version_Number because of the change of the
6462 order of calling Tree_Write/Tree_Read routines made for aspects.
6463
6464 2011-08-05 Bob Duff <duff@adacore.com>
6465
6466 * a-fihema.adb (Finalize): Fix race condition.
6467
6468 2011-08-05 Yannick Moy <moy@adacore.com>
6469
6470 * sem_ch12.adb (Analyze_Package_Instantiation,
6471 Need_Subprogram_Instance_Body): do not generate instance bodies in ALFA
6472 mode.
6473
6474 2011-08-05 Ed Schonberg <schonberg@adacore.com>
6475
6476 * sem_type.adb (Specific_Type): in an instance, the type-specific
6477 operand of an equality check that involves null may have a private
6478 type. Use full view to determine legality of construct.
6479
6480 2011-08-05 Vincent Celier <celier@adacore.com>
6481
6482 * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to
6483 delete or close the file when the call to gnatmake was successful.
6484
6485 2011-08-05 Yannick Moy <moy@adacore.com>
6486
6487 * gnat1drv.adb (Adjust_Global_Switches): in ALFA mode, set
6488 Global_Discard_Names.
6489
6490 2011-08-05 Ed Schonberg <schonberg@adacore.com>
6491
6492 * sinfo.ads: comments on use of entity field for aspect specifications.
6493
6494 2011-08-05 Ed Schonberg <schonberg@adacore.com>
6495
6496 * sem_ch12.adb (Reset_Entity): If the entity field of the associated
6497 node is not itself an entity but a selected component, it is a
6498 rewritten parameterless call to an en enclosing synchronized operation,
6499 and this expansion will be performed again in the instance, so there is
6500 no global information to preserve.
6501
6502 2011-08-05 Javier Miranda <miranda@adacore.com>
6503
6504 * exp_disp.adb (Set_All_DT_Position): Cleanup code and improve support
6505 for renamings of predefined primitives.
6506 (In_Predef_Prims_DT): New subprogram.
6507
6508 2011-08-05 Ed Schonberg <schonberg@adacore.com>
6509
6510 * sem_util.adb, sem_util.ads (Check_Implicit_Dereference): If a
6511 possible interpretation of name is a reference type, add an
6512 interpretation that is the designated type of the reference
6513 discriminant of that type.
6514 * sem_res.adb (resolve): If the interpretation imposed by context is an
6515 implicit dereference, rewrite the node as the deference of the
6516 reference discriminant.
6517 * sem_ch3.adb (Analyze_Subtype_Declaration, Build_Derived_Record_Type,
6518 Build_Discriminated_Subtype): Inherit Has_Implicit_Dereference from
6519 parent type or base type.
6520 * sem_ch4.adb (Process_Indexed_Component,
6521 Process_Overloaded_Indexed_Component, Indicate_Name_And_Type,
6522 Analyze_Overloaded_Selected_Component, Analyze_Selected_Component):
6523 Check for implicit dereference.
6524 (List_Operand_Interps): Indicate when an implicit dereference is
6525 ambiguous.
6526 * sem_ch8.adb (Find_Direct_Name): Check for implicit dereference.
6527
6528 2011-08-05 Thomas Quinot <quinot@adacore.com>
6529
6530 * scos.ads: Update documentation of SCO table. Pragma statements can now
6531 be marked as disabled (using 'p' instead of 'P' as the statement kind).
6532 * par_sco.ads, par_sco.adb: Implement the above change.
6533 (Process_Decisions_Defer): Generate a P decision for the first parameter
6534 of a dyadic pragma Debug.
6535 * sem_prag.adb (Analyze_Pragma, case Debug): Mark pragma as enabled if
6536 necessary.
6537 * put_scos.adb: Code simplification based on above change.
6538
6539 2011-08-05 Robert Dewar <dewar@adacore.com>
6540
6541 * sem_ch3.adb, gnatcmd.adb, switch-c.adb, exp_attr.adb, make.adb,
6542 bindgen.adb, einfo.adb, sem_ch12.adb, sem_attr.adb, a-fihema.adb,
6543 a-fihema.ads, sem_elab.adb, sem_elab.ads, aspects.adb, opt.ads,
6544 prj-conf.adb, sem_ch13.adb, s-ficobl.ads: Minor reformatting
6545
6546 2011-08-05 Bob Duff <duff@adacore.com>
6547
6548 * a-stunau.ads, g-spipat.adb: Update comments.
6549
6550 2011-08-05 Bob Duff <duff@adacore.com>
6551
6552 * a-fihema.ads: Minor comment fix.
6553 * a-fihema.adb (Allocate, Deallocate): Assert that the alignment is
6554 correct.
6555 (Attach, Detach): Remove some unnecessary code.
6556 (Finalize): Remove Node_Ptr_To_Address, replace with a constant.
6557
6558 2011-08-05 Bob Duff <duff@adacore.com>
6559
6560 * a-fihema.ads, a-fihema.adb (Finalization_Collection): Avoid heap
6561 allocation for Objects component. This simplifies the code somewhat. It
6562 is also a little more efficient in the not-so-unusual case where there
6563 are no controlled objects allocated.
6564 Make Finalization_Started flag atomic.
6565 (Finalize): Avoid unnecessary detachment of items from the list.
6566 (pcol): Minor cleanup.
6567
6568 2011-08-05 Ed Schonberg <schonberg@adacore.com>
6569
6570 * sem_ch12.adb (Analyze_Formal_Package_Declaration): reject a formal
6571 package whose name is the same as that of the generic unit, or its
6572 ultimate prefix.
6573
6574 2011-08-05 Bob Duff <duff@adacore.com>
6575
6576 * a-fihema.adb, a-fihema.ads: Minor comment improvements.
6577 * sem_ch3.adb, exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb:
6578 Minor comment fixes.
6579
6580 2011-08-05 Arnaud Charlet <charlet@adacore.com>
6581
6582 * make.adb (Linking_Phase): No longer need to set source search path
6583 before calling gnatlink in CodePeer mode.
6584 * gnatlink.adb (Gnatlink): No longer pass -gnat83/95/05/12 switch to
6585 gcc in CodePeer mode, since the binder generated file no longer has a
6586 'with Main'.
6587 * switch.ads, switch.adb (Is_Language_Switch): Removed.
6588 * switch-c.adb: Update comment.
6589
6590 2011-08-05 Thomas Quinot <quinot@adacore.com>
6591
6592 * exp_strm.adb, bindgen.adb, s-ficobl.ads: Minor reformatting.
6593
6594 2011-08-05 Nicolas Roche <roche@adacore.com>
6595
6596 * gnat_ugn.texi: Fix minor syntax error issue.
6597
6598 2011-08-05 Vincent Celier <celier@adacore.com>
6599
6600 * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to
6601 delete or close the file when the call to gnatmake returns a non
6602 successful return code.
6603
6604 2011-08-05 Ed Schonberg <schonberg@adacore.com>
6605
6606 * exp_ch4.adb (Expand_N_Type_Conversion): When expanding a predicate
6607 check, indicate that the copy of the original node does not come from
6608 source, to prevent an infinite recursion of the expansion.
6609
6610 2011-08-05 Johannes Kanig <kanig@adacore.com>
6611
6612 * debug.adb: document switch -gnatd.G for gnat2why, which deactivates
6613 VC generation for subprogram bodies.
6614
6615 2011-08-05 Yannick Moy <moy@adacore.com>
6616
6617 * einfo.ads: Typo.
6618 * sem_ch3.adb (Signed_Integer_Type_Declaration): in ALFA mode, define
6619 the base type with the smallest allowed base type.
6620
6621 2011-08-05 Sergey Rybin <rybin@adacore.com>
6622
6623 * tree_gen.adb, tree_in.adb, aspects.adb: Fix tree read-write for
6624 aspects.
6625
6626 2011-08-05 Ed Schonberg <schonberg@adacore.com>
6627
6628 * sem_ch12.ads: minor comment updates.
6629
6630 2011-08-05 Ed Schonberg <schonberg@adacore.com>
6631
6632 * sem_ch12.adb (Analyze_Formal_Package_Declaration): in an
6633 instantiation and a formal package the compiler generates a package
6634 renaming declaration so that the generic name within the declaration
6635 is interpreted as a renaming of the instance. At the end of a formal
6636 package declaration, this renaming must become invisible.
6637
6638 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
6639
6640 * exp_ch7.adb (Is_Init_Call): Reimplemented to avoid character
6641 comparison and rely on concrete entities instead.
6642
6643 2011-08-05 Ed Schonberg <schonberg@adacore.com>
6644
6645 * einfo.ads, einfo.adb (Has_Implicit_Dereference): new flag on types
6646 and discriminants, to indicate that the type has an access discriminant
6647 that supports implicit dereference.
6648 * snames.ads-tmpl: Add names of aspects and attributes related to
6649 Ada2012 iterators: constant_indexing, default_iterator,
6650 iterator_element, implicit_dereference, variable_indexing.
6651 * aspects.ads, aspects.adb: entries for iterator-related aspects.
6652 * sem_ch13.adb (Analyze_aspect_specifications): dummy entries for
6653 iterator-related aspects.
6654 * sem_attr.adb, exp_attr.adb Dummy entries for iterator-related aspects.
6655
6656 2011-08-05 Sergey Rybin <rybin@adacore.com>
6657
6658 * gnat_ugn.texi, vms_data.ads: Extend the subsection about coupling
6659 metrics in gnatmetric to cover new kinds of coupling mentrics.
6660
6661 2011-08-05 Steve Baird <baird@adacore.com>
6662
6663 * bindgen.adb (Gen_CodePeer_Wrapper): Call Ada_Main_Program instead
6664 of calling the user-defined main subprogram.
6665 (Gen_Main): Declare Ada_Main_Program and (if CodePeer_Mode
6666 is set) Call_Main_Subprogram ahead of, as opposed to
6667 inside of, Main.
6668 (Gen_Output_File_Ada): Remove CodePeer_Mode-conditional
6669 generation of a "with" of the user-defined main subprogram.
6670 Remove CodePeer_Mode-conditional call to Gen_CodePeer_Wrapper
6671 (which is now called from Gen_Main instead).
6672
6673 2011-08-05 Emmanuel Briot <briot@adacore.com>
6674
6675 * projects.texi: Added reference to the Makefile package.
6676
6677 2011-08-05 Thomas Quinot <quinot@adacore.com>
6678
6679 * exp_ch7.adb: Minor comment rewording.
6680
6681 2011-08-05 Ed Falis <falis@adacore.com>
6682
6683 * env.c: Fix comment.
6684
6685 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
6686
6687 * sem_elab.adb (Is_Finalization_Procedure): Reimplemented to avoid
6688 character comparison and rely on concrete entities instead.
6689
6690 2011-08-05 Ed Schonberg <schonberg@adacore.com>
6691
6692 * sem_ch3.adb: (Check_Private_Overriding): better error message,
6693 suggested by AI95-0068.
6694
6695 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com>
6696
6697 * exp_ch7.adb (Find_Last_Init): Use Next_Suitable_Statement to retrieve
6698 the two potential initialization calls. This accounts for any
6699 access-before-elaboration checks which may precede the initialization
6700 calls.
6701 (Next_Suitable_Statement): New routine. Returns the next real statement
6702 after the input node while skipping generated checks.
6703 * sem_elab.adb (Check_A_Call): New formal parameter In_Init_Proc along
6704 with comment on usage.
6705 Do not generate Elaborate_All when the trigger is a finalization call
6706 coming from a type init proc.
6707 (Check_Elab_Call): Propagate the initialization procedure context to
6708 subsequent calls to Check_A_Call.
6709 (Check_Internal_Call_Continue): Propagate the initialization procedure
6710 context to subsequent calls to Check_Elab_Call.
6711 (Is_Finalization_Procedure): New routine. Returns True if the input
6712 entity denotes a [Deep_]Finalize routine.
6713 * sem_elab.ads (Check_Elab_Call): New formal parameter In_Init_Proc
6714 along with comment on usage.
6715
6716 2011-08-05 Vadim Godunko <godunko@adacore.com>
6717
6718 * s-atocou.ads: Add list of supported platforms.
6719
6720 2011-08-05 Yannick Moy <moy@adacore.com>
6721
6722 * sem_prag.adb, restrict.adb: Correct style for or'ing Boolean variables
6723
6724 * opt.ads (Disable_ALI_File): new Boolean flag
6725 * lib-writ.adb (Write_ALI): when Disable_ALI_File is set, do nothing
6726
6727 2011-08-05 Ed Falis <falis@adacore.com>
6728
6729 * env.c (__gnat_environ): Fix includes for RTPs and VTHREADS so that
6730 environ is properly defined.
6731
6732 2011-08-05 Vincent Celier <celier@adacore.com>
6733
6734 * make.adb (Compilation_Phase): Exit immediately when all objects have
6735 been found up to date, to avoid multiple exit messages.
6736 * prj-nmsc.adb (Add_Source): Allow duplicate source file names in the
6737 same project for languages with no compiler.
6738 * gnat_ugn.texi: Document compiler switch -gnateI and gnatmake switch
6739 -eI.
6740 2011-08-05 Robert Dewar <dewar@adacore.com>
6741
6742 * exp_ch7.ads, sem_type.adb, make.adb, sem_prag.adb, sem_util.adb,
6743 sem_util.ads, sem_attr.adb, restrict.ads, sem_ch6.adb, prj-conf.adb,
6744 prj-conf.ads, s-atocou.ads, s-atocou.adb, s-atocou-x86.adb,
6745 s-atocou-builtin.adb: Minor reformatting.
6746
6747 2011-08-05 Yannick Moy <moy@adacore.com>
6748
6749 * exp_ch7.adb (Establish_Transient_Scope): in formal verification mode,
6750 if the node to wrap is a pragma check, this node and enclosed
6751 expression are not expanded, so do not apply any transformations here.
6752 * exp_prag.adb (Expand_Pragma_Check): document the need to avoid
6753 introducing transient scopes.
6754
6755 2011-08-05 Jose Ruiz <ruiz@adacore.com>
6756
6757 * adaint.c (__gnat_set_writable, __gnat_set_readable,
6758 __gnat_set_executable, __gnat_set_non_writable, __gnat_set_non_readable,
6759 __gnat_copy_attribs): On VxWorks 6.x and later, the required chmod
6760 routine is available, so we use the default implementation of these
6761 functions.
6762 * s-os_lib.ads (Copy_File, Copy_Time_Stamps): Document that there is
6763 support for copying attributes on VxWorks 6.
6764
6765 2011-08-05 Yannick Moy <moy@adacore.com>
6766
6767 * debug.adb: Remove use of -gnatd.D.
6768 * gnat1drv.adb (Adjust_Global_Switches): adjust switches for ALFA mode
6769 * opt.ads: Simplify variables for ALFA mode, to keep one only
6770 * restrict.adb, sem_prag.adb: Adapt treatment done for CodePeer mode
6771 to ALFA mode.
6772
6773 2011-08-05 Vincent Celier <celier@adacore.com>
6774
6775 * prj-conf.adb (Do_Autoconf): Look also for --RTS in
6776 Builder'Default_Switches.
6777
6778 2011-08-05 Vincent Celier <celier@adacore.com>
6779
6780 * makeusg.adb: Add lines for --create-map-file switches.
6781
6782 2011-08-05 Ed Schonberg <schonberg@adacore.com>
6783
6784 * freeze.adb (Freeze_Entity): For a subprogram, if a type in the
6785 profile is incomplete and the full view is available, replace it with
6786 the full view.
6787 * sem_ch6.adb (Possible_Freeze): if a type in the profile is
6788 incomplete, freezing the subprogram is delayed until the full view is
6789 frozen.
6790 * sem_type.adb (Disambiguate): an ambiguity between a user-defined
6791 fixed-point multiplication operator and the predefined operator is
6792 resolved in favor of the user-defined one.
6793
6794 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6795
6796 * init.c [__alpha__ && __osf__] (__gnat_error_handler): Use
6797 CONST_CAST.
6798
6799 2011-08-04 Ed Schonberg <schonberg@adacore.com>
6800
6801 * sem_util.ads, sem_unit.adb (Type_Without_Stream_Operation): determine
6802 whether a type lacks user-defined Read or Write operations, or has a
6803 component that lacks them.
6804 * sem_attr.adb (Check_Stream_Attribute): if restriction
6805 No_Default_Stream_Attributes is active, verify that all subcomponent
6806 types of the target have user-defined stream operations, and report
6807 error otherwise.
6808 * exp_ch3.adb (Stream_Operqtion_OK): use Type_Without_Stream_Operation.
6809 * exp_strm.adb: Build_Elementary_Input_Call,
6810 Build_Elementary_Write_Call): remove checks for restriction
6811 No_Default_Stream_Attributes, now checked in semantics.
6812
6813 2011-08-04 Vincent Celier <celier@adacore.com>
6814
6815 * prj-conf.ads, prj-conf.adb (Do_Autoconf): If there is no --RTS
6816 switches on the command line, look for all valid --RTS switches in the
6817 Builder switches and for each language use the first runtime name found
6818 to invoke gprconfig.
6819 (Get_Or_Create_Configuration_File): Warn if --RTS is specified on the
6820 command line and there is no auto-configuration.
6821 (Runtime_Name_Set_For): New function.
6822
6823 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6824
6825 * exp_ch7.adb (Build_Object_Declarations): Do not generate the
6826 elaborate initialization expression for variable Abort when processing
6827 a package body or a declaration.
6828 (Create_Finalizer): Propagate the package context when creating the
6829 exception-related variables.
6830 * exp_ch7.ads (Build_Object_Declarations): New formal parameter
6831 For_Package along with usage comment.
6832
6833 2011-08-04 Arnaud Charlet <charlet@adacore.com>
6834
6835 * gcc-interface/Makefile.in: Clean up targets.
6836 Enable new package for atomic counters and copy-on-write implementation
6837 of unbounded strings on x86 platforms.
6838 * gcc-interface/Make-lang.in: Update dependencies.
6839
6840 2011-08-04 Robert Dewar <dewar@adacore.com>
6841
6842 * exp_ch7.adb: Minor reformatting.
6843
6844 2011-08-04 Robert Dewar <dewar@adacore.com>
6845
6846 * exp_strm.adb: Minor reformatting.
6847
6848 2011-08-04 Vadim Godunko <godunko@adacore.com>
6849
6850 * s-atocou.adb: Replace by dummy version and use on targets where atomic
6851 operations are not supported.
6852 * s-atocou-builtin.adb: Renamed from s-atocou.adb.
6853 * s-atocou-x86.adb: New file.
6854 * Makefile.rtl: Add s-atocou.o file
6855
6856 2011-08-04 Arnaud Charlet <charlet@adacore.com>
6857
6858 * make.adb (Compile): Move setting of CodePeer_Mode to ...
6859 (Compilation_Phase): ... here.
6860 (Scan_Make_Arg): Now bind and link by default in CodePeer mode.
6861
6862 2011-08-04 Thomas Quinot <quinot@adacore.com>
6863
6864 * Make-generated.in: Fix minor typo in comment.
6865
6866 2011-08-04 Thomas Quinot <quinot@adacore.com>
6867
6868 * gnatls.adb: Use Prj.Env.Initialize_Default_Project_Path to retrieve
6869 the project path.
6870
6871 2011-08-04 Robert Dewar <dewar@adacore.com>
6872
6873 * a-coinho.adb: Minor reformatting.
6874
6875 2011-08-04 Robert Dewar <dewar@adacore.com>
6876
6877 * a-coinho.ads: Minor reformatting.
6878
6879 2011-08-04 Vadim Godunko <godunko@adacore.com>
6880
6881 * s-atocou.ads, s-atocou.adb: New files.
6882 * a-strunb-shared.ads, a-strunb-shared.adb, a-stwiun-shared.ads,
6883 a-stwiun-shared.adb, a-stzunb-shared.ads, a-stzunb-shared.adb: Remove
6884 direct use of GCC's atomic builtins and replace them by use of new
6885 atomic counter package.
6886
6887 2011-08-04 Ed Schonberg <schonberg@adacore.com>
6888
6889 * exp_strm.adb: better error message for No_Default_Stream_Attributes.
6890
6891 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
6892
6893 * a-tags.adb (Unregister_Tag): Replace the complex address arithmetic
6894 with a call to Get_External_Tag.
6895 * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on
6896 subprogram usage. Remove the guard against package declarations and
6897 bodies since Build_Cleanup_Statements is no longer invoked in that
6898 context.
6899 (Build_Components): Initialize Tagged_Type_Stmts when the context
6900 contains at least one library-level tagged type.
6901 (Build_Finalizer): New local variables Has_Tagged_Types and
6902 Tagged_Type_Stmts along with associated comments on usage. Update the
6903 logic to include tagged type processing.
6904 (Create_Finalizer): Insert all library-level tagged type unregistration
6905 code before the jump block circuitry.
6906 (Expand_N_Package_Body): Remove the call to Build_Cleanup_Statements.
6907 (Expand_N_Package_Declaration): Remove the call to
6908 Build_Cleanup_Statements.
6909 (Process_Tagged_Type_Declaration): New routine. Generate a call to
6910 unregister the external tag of a tagged type.
6911 (Processing_Actions): Reimplemented to handle tagged types.
6912 (Process_Declarations): Detect the declaration of a library-level
6913 tagged type and carry out the appropriate actions.
6914 (Unregister_Tagged_Types): Removed. The machinery has been directly
6915 merged with Build_Finalizer.
6916
6917 2011-08-04 Robert Dewar <dewar@adacore.com>
6918
6919 * bindgen.ads, gnatlink.adb, sem_ch4.adb, gnatbind.adb, put_alfa.adb,
6920 gnatls.adb, exp_ch3.adb: Minor reformatting.
6921
6922 2011-08-04 Marc Sango <sango@adacore.com>
6923
6924 * sem_attr.adb (Analyze_Attribute): Replace the message
6925 "invisible attribute of}" of the spark restriction violation in
6926 attribute reference by the simple message "invisible attribute of type".
6927 Indeed, the node value Error_Msg_Node_1 used is in conflit with the
6928 two insertion characters: '&' and '}'.
6929
6930 2011-08-04 Vadim Godunko <godunko@adacore.com>
6931
6932 * impunit.adb (Non_Imp_File_Names_12): Add "a-coinho".
6933 * a-coinho.ads, a-coinho.adb: New file.
6934 * Makefile.rtl: Add Ada.Containers.Indefinite_Holders.
6935
6936 2011-08-04 Nicolas Roche <roche@adacore.com>
6937
6938 * alfa_test.adb: Not all ali files are containing alfa information even
6939 if compiled with -gnatd.F. So suppress warning about missing ALFA
6940 information.
6941
6942 2011-08-04 Yannick Moy <moy@adacore.com>
6943
6944 * lib-xref-alfa.adb (Add_ALFA_Scope): use non-empty unique name for
6945 scope.
6946 * put_alfa.adb: Check that scope name is not empty.
6947
6948 2011-08-04 Ed Schonberg <schonberg@adacore.com>
6949
6950 * exp_ch3.adb (Stream_Operation_Ok): new predicate
6951 Needs_Elementary_Stream_Operation, to determine whether user-defined
6952 Read and Write attributes are available for the elementary components
6953 of the given type. If only the predefined attributes are available,
6954 then when restriction No_Default_Stream_Attributes is active the
6955 predefined stream attributes for the composite type cannot be created.
6956
6957 2011-08-04 Robert Dewar <dewar@adacore.com>
6958
6959 * bindgen.adb: Fix obsolete comments and names from Ada/C days.
6960 Put routines in alpha order
6961
6962 2011-08-04 Jose Ruiz <ruiz@adacore.com>
6963
6964 * gcc-interface/Makefile.in: Remove xenomai specific versions of system.
6965 * gcc-interface/Make-lang.in: Update dependencies.
6966
6967 2011-08-04 Arnaud Charlet <charlet@adacore.com>
6968
6969 * gcc-interface/lang.opt: Add AdaWhy language, simimlar to Ada.
6970 * gcc-interface/lang-specs.h: Add handling of AdaWhy specs (calls
6971 gnat1why).
6972
6973 2011-08-04 Robert Dewar <dewar@adacore.com>
6974
6975 * sem_ch3.adb, make.adb, a-cohata.ads, sem_prag.adb, makeutl.adb,
6976 lib-xref-alfa.adb: Minor reformatting.
6977
6978 2011-08-04 Marc Sango <sango@adacore.com>
6979
6980 * sem_ch12.adb (Analyze_Generic_Package_Declaration,
6981 Analyze_Generic_Subprogram_Declaration, Analyze_Package_Instantiation,
6982 Analyze_Subprogram_Instantiation): Check absence of generic in SPARK
6983 mode.
6984
6985 2011-08-04 Tristan Gingold <gingold@adacore.com>
6986
6987 * bindgen.adb (Gen_Adainit_C): Remove.
6988 (Gen_Adafinal_C): Ditto.
6989 (Gen_Elab_Externals_C): Ditto.
6990 (Gen_Elab_Calls_C): Ditto.
6991 (Gen_Elab_Order_C): Ditto.
6992 (Gen_Elab_Defs_C): Ditto.
6993 (Gen_Finalize_Library_C): Ditto.
6994 (Gen_Finalize_Library_Defs_C): Ditto.
6995 (Gen_Main_C): Ditto.
6996 (Gen_Output_File_C): Ditto.
6997 (Gen_Restrictions_C): Ditto.
6998 (Gen_Versions_C): Ditto.
6999 (Write_Info_Ada_C): Ditto.
7000 (Gen_Object_Files_Options): Call WBI instead of Write_Info_Ada_C
7001 (Gen_Output_File): Do not force Ada_Bind_File anymore.
7002 Always call Gen_Output_File_Ada.
7003 * gnatlink.adb (Begin_Info): Now a constant.
7004 (End_Info): Ditto.
7005 (Ada_Bind_File): Remove
7006 (Process_Args): Do not handle -A/-C. Remove not Ada_Bind_File cases.
7007 * switch-b.adb (Scan_Binder_Switches): Do not handle -C.
7008 * gnatbind.adb (Gnatbind): Remove not Ada_Bind_File cases.
7009 * opt.ads (Ada_Bind_File): Remove.
7010
7011 2011-08-04 Thomas Quinot <quinot@adacore.com>
7012
7013 * projects.texi: Document target-specific directory in default project
7014 path for gnatmake.
7015
7016 2011-08-04 Thomas Quinot <quinot@adacore.com>
7017
7018 * gnatls.adb, prj-env.adb: Add $prefix/share/gpr to default project
7019 path in all cases .
7020
7021 2011-08-04 Yannick Moy <moy@adacore.com>
7022
7023 * sem_ch3.adb, sem_ch5.adb, sem_util.adb, sem_ch4.adb, sem_ch8.adb,
7024 opt.ads, lib-xref.ads: Code clean up.
7025
7026 2011-08-04 Yannick Moy <moy@adacore.com>
7027
7028 * gnat_rm.texi: Update description of Test_Case
7029 * gnat_ugn.texi: Typo.
7030
7031 2011-08-04 Ed Falis <falis@adacore.com>
7032
7033 * adaint.c (__gnat_get_number_of_cpus): fix typo in last checkin.
7034
7035 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7036
7037 * exp_ch4.adb (Suitable_Element): Skip field _parent on .NET/JVM when
7038 it is of type Root_Controlled. This action eliminates fields Prev and
7039 Next from type equality.
7040
7041 2011-08-04 Yannick Moy <moy@adacore.com>
7042
7043 * lib-xref-alfa.adb: Correct typo.
7044
7045 2011-08-04 Matthew Heaney <heaney@adacore.com>
7046
7047 * a-cohata.ads (Hash_Table_Type): default-initialize the Nodes
7048 component.
7049
7050 2011-08-04 Yannick Moy <moy@adacore.com>
7051
7052 * sem_prag.adb (Check_Arg_Is_String_Literal): remove useless procedure
7053 (Analyze_Pragma): allow static string expression for name of Test_Case,
7054 instead of simply string literals.
7055 * sem_util.adb (Get_Name_From_Test_Case_Pragma): adapt to static string
7056 expressions.
7057
7058 2011-08-04 Vincent Celier <celier@adacore.com>
7059
7060 * makeutl.adb (Complete_Mains.Find_File_Add_Extension): Use canonical
7061 case suffixes to find truncated main sources.
7062
7063 2011-08-04 Tristan Gingold <gingold@adacore.com>
7064
7065 * impunit.adb (Non_Imp_File_Names_95): Add g-tastus.
7066 s-stusta.adb (Compute_All_Task): Use Put_Line instead of Put.
7067 (Compute_Current_Task): Ditto.
7068
7069 2011-08-04 Tristan Gingold <gingold@adacore.com>
7070
7071 * gnat_ugn.texi: Mention GNAT.Task_Stack_Usage.
7072
7073 2011-08-04 Yannick Moy <moy@adacore.com>
7074
7075 * lib-xref-alfa.adb (Is_Global_Constant): new function that detects
7076 library-level constant.
7077 (Add_ALFA_Xrefs): ignore global constants in ALFA xref.
7078 * sem_res.adb (Resolve_Actuals): do not add cross-reference to Formal
7079 used as selector of parameter association, in ALFA mode.
7080
7081 2011-08-04 Robert Dewar <dewar@adacore.com>
7082
7083 * exp_ch5.adb, exp_ch7.adb, exp_util.adb, bindgen.adb, sem_prag.adb,
7084 s-tassta.adb, exp_ch4.adb, exp_disp.adb, s-stausa.adb: Minor
7085 reformatting.
7086
7087 2011-08-04 Arnaud Charlet <charlet@adacore.com>
7088
7089 * make.adb (Linking_Phase): Set source search path before calling
7090 gnatlink in CodePeer mode.
7091
7092 2011-08-04 Javier Miranda <miranda@adacore.com>
7093
7094 * exp_ch7.adb (Expand_N_Package_Body, Expand_N_Package_Declaration):
7095 Remove code which takes care of building TSDs.
7096 * rtsfind.ads (RE_Check_Interface_Conversion): New entity.
7097 * exp_ch4.adb (Apply_Accessibility_Check): Add support for generating
7098 the accessibility check in VM targets.
7099 * exp_disp.adb (Make_VM_TSD): Spec moved to exp_disp.ads
7100 (Building_Static_DT): Now returns false for VM targets.
7101 (Build_VM_TSDs): Removed.
7102 (Expand_Interface_Conversion): Generate missing runtime check for
7103 conversions to interface types whose target type is unknown at compile
7104 time.
7105 (Make_VM_TSD): Add missing code to disable the generation of calls to
7106 Check_TSD if the tagged type is not defined at library level, or not
7107 has a representation clause specifying its external tag, or -gnatdQ is
7108 active.
7109 * exp_disp.ads (Build_VM_TSDs): Removed.
7110 (Make_VM_TSDs): Spec relocated from exp_disp.adb
7111 * sem_disp.adb (Check_Dispatching_Operation): No code required to
7112 register primitives in the dispatch tables in VM targets.
7113 * exp_ch3.adb (Expand_N_Object_Declaration): Remove wrong expansion of
7114 initialization of class-wide interface objects in VM targets.
7115 (Expand_Freeze_Record_Type): For VM targets call Make_VM_TSD (instead
7116 of Make_DT).
7117
7118 2011-08-04 Jerome Lambourg <lambourg@adacore.com>
7119
7120 * gnatlink.adb (Gnatlink): Correct missleading error message displayed
7121 when dotnet-ld cannot be found.
7122
7123 2011-08-04 Arnaud Charlet <charlet@adacore.com>
7124
7125 * bindgen.adb: Simplify significantly generation of binder body file in
7126 CodePeer mode.
7127 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Prevent assert failure
7128 when compiling binder generated file in CodePeer mode (xxx'Elab_Spec
7129 not expanded).
7130
7131 2011-08-04 Yannick Moy <moy@adacore.com>
7132
7133 * sem_prag.adb, sem.ads: Code cleanup.
7134
7135 2011-08-04 Tristan Gingold <gingold@adacore.com>
7136
7137 * s-tassta.adb (Task_Wrapper): Rewrite the dynamic stack usage part.
7138 * s-stausa.adb, s-stausa.ads: Major rewrite. Now provides accurate
7139 results if possible.
7140 * s-stusta.adb (Print): Adjust after changes in s-stausa.
7141 * gnat_ugn.texi: Update dynamic stack usage section.
7142
7143 2011-08-04 Steve Baird <baird@adacore.com>
7144
7145 * bindgen.adb (Gen_CodePeer_Wrapper): new procedure.
7146 Generate (if CodePeer_Mode is set) a "wrapper" subprogram which
7147 contains only a call to the user-defined main subprogram.
7148 (Gen_Main_Ada) - If CodePeer_Mode is set, then
7149 call the "wrapper" subprogram instead of directly
7150 calling the user-defined main subprogram.
7151
7152 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7153
7154 * exp_ch5.adb (Expand_N_Case_Statement): Check the statements of all
7155 alternatives of a case statement for controlled objects. Rename local
7156 variable A to Dead_Alt.
7157 (Expand_N_If_Statement): Check the then and else statements of an if
7158 statement for controlled objects. Check the then statements of all
7159 elsif parts of an if statement for controlled objects.
7160 (Expand_N_Loop_Statement): Check the statements of a loop for controlled
7161 objects.
7162 * exp_ch7.adb (Process_Transient_Objects): Rewrite the condition which
7163 detects a loop associated with the expansion of an array object.
7164 Augment the processing of the loop statements to account for a possible
7165 wrap done by Process_Statements_For_Controlled_Objects.
7166 * exp_ch9.adb (Expand_N_Asynchronous_Select): Check the triggering
7167 statements and abortable part of an asynchronous select for controlled
7168 objects.
7169 (Expand_N_Conditional_Entry_Call): Check the else statements of a
7170 conditional entry call for controlled objects.
7171 (Expand_N_Selective_Accept): Check the alternatives of a selective
7172 accept for controlled objects.
7173 (Expand_N_Timed_Entry_Call): Check the entry call and delay
7174 alternatives of a timed entry call for controlled objects.
7175 * exp_ch11.adb (Expand_Exception_Handlers): Check the statements of an
7176 exception handler for controlled objects.
7177 * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)):
7178 Add formal parameter Nested_Constructs along with its associated
7179 comment.
7180 (Requires_Cleanup_Actions (Node_Id)): Update all calls to
7181 Requires_Cleanup_Actions.
7182 (Process_Statements_For_Controlled_Objects): New routine.
7183 * exp_util.ads (Process_Statements_For_Controlled_Objects): New
7184 routine. Inspect a node which contains a non-handled sequence of
7185 statements for controlled objects. If such an object is found, the
7186 statements are wrapped in a block.
7187
7188 2011-08-04 Bob Duff <duff@adacore.com>
7189
7190 * sem_type.adb (Covers): If T2 is a subtype of a class-wide type, we
7191 need to compare with Class_Wide_Type (T2), in order to get at the
7192 original class-wide type node.
7193 * sem_type.ads (Covers): Improve the comment.
7194 * einfo.ads (Class_Wide_Type): Improve the comment.
7195 * exp_intr.adb (Expand_Unc_Deallocation): Remove unnecessary setting of
7196 the type of the Deref.
7197
7198 2011-08-04 Yannick Moy <moy@adacore.com>
7199
7200 * gnat_rm.texi: Document that Test_Case pragma can only appear on
7201 separate declarations.
7202 * sem_prag.adb (procedure Check_Identifier_Is_One_Of): new procedure to
7203 check identifier of pragma argument.
7204 (Chain_TC): check that no other test case associated to the same entity
7205 share the same name.
7206 (Check_Test_Case): disallow test case inside subprogram body
7207 (Analyze_Pragma): correct call to check identifier and not argument
7208 * sem_util.adb, sem_util.ads (Get_Name_From_Test_Case_Pragma): new
7209 function gets name from test case pragma.
7210
7211 2011-08-04 Yannick Moy <moy@adacore.com>
7212
7213 * gnat_rm.texi: Document new pragma and aspect.
7214 * aspects.adb, aspects.ads (Aspect_Id): new value Aspect_Test_Case
7215 (No_Duplicates_Allowed): new constant array defining whether duplicates
7216 aspects of each kind can appear on the same declaration.
7217 * einfo.adb, einfo.ads (Spec_PPC_List): replace field with Contract
7218 field, which points to a node holding the previous Spec_PPC_List.
7219 * exp_ch9.adb, sem_ch6.adb, sem_prag.adb: Reach to Spec_PPC_List
7220 through the indirection with Contract.
7221 * exp_util.adb (Insert_Actions): raise Program_Error on N_Contract node
7222 * par-prag.adb (Prag): do nothing on Test_Case pragma
7223 * sem.adb (Analyze): abort on N_Contract, on which Analyze should not
7224 be called directly.
7225 * sem_attr.adb (Analyze_Attribute): allow attribute 'Result in
7226 component Ensures of Test_Case.
7227 * sem_ch12.adb, sem_ch6.adb, sem_ch9.adb
7228 (Analyze_Generic_Subprogram_Declaration,
7229 Analyze_Subprogram_Instantiation,
7230 Analyze_Abstract_Subprogram_Declaration,
7231 Analyze_Subprogram_Body_Helper,
7232 Analyze_Subprogram_Specification, Analyze_Entry_Declaration):
7233 insert contract in subprogram node at point of definition
7234 * sem_ch13.adb
7235 (Aspect_Loop): do not raise error on duplicate Test_Case aspect
7236 (Analyze_Aspect_Specifications): analyze Test_Case aspect and create
7237 corresponding pragma
7238 (Check_Aspect_At_Freeze_Point): raise Program_Error on Test_Case aspect
7239 * sem_ch3.adb (Analyze_Declarations): insert analysis of test-cases,
7240 similar to the analysis of pre/post
7241 (Derive_Subprogram): insert contract in subprogram node at point of
7242 derivation.
7243 * sem_prag.adb, sem_prag.ads
7244 (Check_Arg_Is_String_Literal, Check_Identifier):
7245 new checking procedures to be called in treatment of pragmas
7246 (Check_Test_Case): new procedure to check that a Test_Case aspect or
7247 pragma is well-formed. This does not check currently that 'Result is
7248 used only in the Ensures component of a Test_Case.
7249 (Analyze_Pragma): add case for Test_Case
7250 (Analyze_TC_In_Decl_Part): pre-analyze the Requires and Ensures
7251 components of a Test_Case.
7252 (Preanalyze_TC_Args): new procedure to preanalyze the boolean
7253 expressions in the 3rd (and 4th if present) arguments of a Test_Case
7254 pragma, treated as spec expressions.
7255 (Sig_Flags): add value -1 for Test_Case.
7256 * sem_util.adb, sem_util.ads (Get_Ensures_From_Test_Case_Pragma,
7257 Get_Requires_From_Test_Case_Pragma): getters for both expression
7258 components of a Test_Case.
7259 * sinfo.adb, sinfo.ads (N_Contract): new kind of node used as
7260 indirection between an entry or [generic] subprogram entity and its
7261 pre/post + test-cases.
7262 (Spec_PPC_List, Spec_TC_List, Set_Spec_PPC_List, Set_Spec_TC_List):
7263 get/set for fields of an N_Contract node.
7264 * snames.ads-tmpl (Name_Test_Case, Name_Ensures, Name_Mode,
7265 Name_Normal, Name_Requires, Name_Robustness, Pragma_Test_Case): new
7266 names and pragma for Test_Case.
7267 * sprint.adb (Sprint_Node): raise Program_Error on N_Contract node
7268
7269 2011-08-04 Vincent Celier <celier@adacore.com>
7270
7271 * gnat_ugn.texi: Improve documentation of gnatmake switch
7272 --source-info-file=.
7273
7274 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7275
7276 * exp_ch7.adb (Make_Final_Call): Add local variable Atyp (assertion
7277 type). Initialize Atyp to the appropriate type which is later checked
7278 for completion. Rewrite the assertion associated with private type
7279 completion.
7280
7281 2011-08-04 Ed Falis <falis@adacore.com>
7282
7283 * adaint.c: Add call to vxCpuConfiguredGet for VxWorks SMP to
7284 initialize the number of CPUs.
7285
7286 2011-08-04 Ed Schonberg <schonberg@adacore.com>
7287
7288 * sem_type.adb (Disambiguate): New subsidiary routine
7289 In_Same_Declaration_List, to implement AI05-0020: a user-defined
7290 equality on an anonymous access type whose designated type is private
7291 does not lead to an ambiguity with the universal access equality
7292 operator in the body or child units of the defining package. The same
7293 is true for a multiplication operator on a private type completed with
7294 a fixed-point-type.
7295
7296 2011-08-04 Javier Miranda <miranda@adacore.com>
7297
7298 * opt.ads (Init_Or_Norm_Scalars_Config): Removed.
7299 (Normalize_Scalars_Config): Removed.
7300 * opt.adb
7301 (Register_Opt_Config_Switches): Remove registering config values of
7302 Init_Or_Norm_Scalars_Config and Normalize_Scalars_Config.
7303 (Restore_Opt_Config_Switches): Remove code which restores the values of
7304 Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of
7305 Init_Or_Norm_Scalars.
7306 (Save_Opt_Config_Switches): Remove code which saves values of
7307 Init_Or_Norm_Scalars and Normalize_Scalars.
7308 (Set_Opt_Config_Switches): Remove code which restores config values of
7309 Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of
7310 Init_Or_Norm_Scalars.
7311
7312 2011-08-04 Yannick Moy <moy@adacore.com>
7313
7314 * frontend.adb (Frontend): remove previous patch to avoid full
7315 qualification in ALFA mode.
7316 * lib-xref-alfa.adb (Add_ALFA_Xrefs): use unique name for variables.
7317 * sem_util.adb, sem_util.ads (Unique_Name): new function to define a
7318 unique name for an entity, which could be used to identify the entity
7319 across compilation units.
7320
7321 2011-08-04 Thomas Quinot <quinot@adacore.com>
7322
7323 * prj-env.adb
7324 (Initialize_Default_Project_Path): Add target specific directory
7325 ($prefix/$target/lib/gnat) in front of project path in all cases
7326 (making gnatmake's behaviour consistent with gprbuild).
7327 * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb:
7328 Pass target name from Sdefault to project subsystem.
7329 * gnatls.adb: Show new target specific default project directory.
7330
7331 2011-08-04 Johannes Kanig <kanig@adacore.com>
7332
7333 * cstand.adb: Add Information to Identifier in Standard
7334 (Identifer_For): Set Entity to the corresponding entity
7335
7336 2011-08-04 Sergey Rybin <rybin@adacore.com>
7337
7338 * gnat_ugn.texi: Update doc on gnatcheck.
7339
7340 2011-08-04 Yannick Moy <moy@adacore.com>
7341
7342 * lib-xref-alfa.adb (Add_ALFA_Xrefs): correct definition of ranges of
7343 xrefs in a scope.
7344
7345 2011-08-04 Yannick Moy <moy@adacore.com>
7346
7347 * exp_prag.adb (Expand_Pragma_Check): in ALFA mode, return without
7348 performing expansion.
7349 * sem_ch6.adb (Analyze_Subprogram_Body_Helper,
7350 Analyze_Generic_Subprogram_Body): protect call to Process_PCCs so that
7351 it is not called in ALFA mode.
7352
7353 2011-08-04 Emmanuel Briot <briot@adacore.com>
7354
7355 * make.adb, osint.adb, osint.ads (Reset_Command_Line_Files): not used
7356 after all, so removed.
7357
7358 2011-08-04 Sergey Rybin <rybin@adacore.com>
7359
7360 * vms_data.ads: Add missing VMS qualifiers.
7361
7362 2011-08-04 Emmanuel Briot <briot@adacore.com>
7363
7364 * make.adb, makeutl.adb, osint.adb, osint.ads (Check_Mains): rebuild
7365 the list of files on the command line after processing it through
7366 Complete_Mains.
7367
7368 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7369
7370 * exp_ch7.adb (Build_Raise_Statement): Remove the specialized
7371 processing for .NET/JVM. These targets can now benefit from
7372 Raise_From_Controlled_Operation and they share the same processing with
7373 standard targets.
7374 (Establish_Transient_Scope): Remove the restriction for .NET/JVM.
7375 These targets need transient scopes in order to properly finalize short
7376 lived controlled objects.
7377 (Make_Handler_For_Ctrl_Operation): Remove the specialized processing for
7378 NET/JVM. These targets can now benefit from
7379 Raise_From_Controlled_Operation and they share the same processing with
7380 standard targets.
7381
7382 2011-08-04 Geert Bosch <bosch@adacore.com>
7383
7384 * tracebak.c (STOP_FRAME): Stop at any next pointer outside the stack
7385
7386 2011-08-04 Ed Schonberg <schonberg@adacore.com>
7387
7388 * exp_aggr.adb (Has_Visible_Private_Ancestor): subsidiary routine to
7389 Expand_Record_Aggregate, to determine whether aggregate must be
7390 expanded into assignments. This is the case if the ancestor part is
7391 private, regarless of the setting of the flag Has_Private_Ancestor.
7392
7393 2011-08-04 Ed Falis <falis@adacore.com>
7394
7395 * vxaddr2line.adb: Add support for e500v2 and for Linux hosts
7396
7397 2011-08-04 Bob Duff <duff@adacore.com>
7398
7399 * sinfo.ads: Fix comment.
7400
7401 2011-08-04 Steve Baird <baird@adacore.com>
7402
7403 * bindgen.adb (Get_Ada_Main_Name): If CodePeer_Mode is set, then
7404 choose a package name in much the same way as is
7405 done for JGNAT when VM_Target /= No_VM, except that
7406 a slightly more distinctive prefix string is used.
7407
7408 2011-08-04 Emmanuel Briot <briot@adacore.com>
7409
7410 * makeutl.adb (Complete_Mains): no longer accept unit names on the
7411 gnatmake command line.
7412 This behavior was never documented (and was supported only because of
7413 an early bug in the code). This case might lead to ambiguous cases
7414 (between unit names and truncated base names without suffixes).
7415
7416 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7417
7418 * a-tags.ads, a-tags.adb (Unregister_Tag): New routine.
7419 Remove the external tag of a tagged type from the internal hash table.
7420 * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on the
7421 expanded usage of the routine. Strenghten the check for Is_Master. Add
7422 processing for tagged types.
7423 (Build_Finalizer): Create all the necessary lists used in finalizer
7424 creation when the processed context is a package that may contain
7425 tagged types.
7426 (Expand_Cleanup_Actions): Rename the call to Has_Controlled_Objects to
7427 Requires_Cleanup_Actions.
7428 (Expand_N_Package_Body): Package bodies may need clean up code
7429 depending on whether they contain tagged types.
7430 (Expand_N_Package_Declaration): Package declarations may need clean up
7431 code depending on whether they contain tagged types.
7432 (Unregister_Tagged_Types): New routine. Search through a list of
7433 declarations or statements, looking for non-abstract Ada tagged types.
7434 For each such type, generate code to unregister the external tag.
7435 * exp_util.adb (Has_Controlled_Objects (Node_Id)): Renamed to
7436 Requires_Cleanup_Actions.
7437 (Requires_Cleanup_Actions (List_Id, Boolean)): New routine. Search
7438 through a list of declarations or statements looking for non-abstract
7439 Ada tagged types or controlled objects.
7440 * exp_util.ads (Has_Controlled_Objects (Node_Id)): Renamed to
7441 Requires_Cleanup_Actions.
7442 (Has_Controlled_Objects (List_Id, Boolean)): Removed.
7443 * rtsfind.ads: Add entry RE_Unregister_Tag to tables RE_Id and
7444 RE_Unit_Table.
7445
7446 2011-08-04 Vincent Celier <celier@adacore.com>
7447
7448 * prj-env.adb (For_All_Source_Dirs.For_Project): Check if project Prj
7449 has Ada sources, not project Project, because if the root project
7450 Project has no sources of its own, all projects will be deemed without
7451 sources.
7452
7453 2011-08-04 Gary Dismukes <dismukes@adacore.com>
7454
7455 * bindgen.adb (Gen_Adainit_Ada): Move the generation of the declaration
7456 of the No_Param_Proc acc-to-subp type used for initialization of
7457 __gnat_finalize_library_objects so that it's declared at library level
7458 rather than nested inside of the adainit routine.
7459
7460 2011-08-04 Javier Miranda <miranda@adacore.com>
7461
7462 * exp_disp.adb (Make_DT): Generate code to check the external tag ONLY
7463 if the tagged type has a representation clause which specifies its
7464 external tag.
7465
7466 2011-08-04 Ed Schonberg <schonberg@adacore.com>
7467
7468 * einfo.ads, einfo.adb (Has_Private_Ancestor): now a flag on types.
7469 Remove previous procedure with that name.
7470 * sem_ch3.adb (Build_Derived_Record_Type): set Has_Private_Ancestor
7471 when appropriate.
7472 * sem_aggr.adb (Resolve_Extension_Aggregate): if the ancestor part is a
7473 subtype mark, the ancestor cannot have unknown discriminants.
7474 (Resolve_Record_Aggregate): if the type has invisible components
7475 because of a private ancestor, the aggregate is illegal.
7476
7477 2011-08-04 Vincent Celier <celier@adacore.com>
7478
7479 * switch-m.adb (Normalize_Compiler_Switches): Recognize and take into
7480 account switches -gnat2005, -gnat12 and -gnat2012.
7481
7482 2011-08-04 Bob Duff <duff@adacore.com>
7483
7484 * s-tasdeb.ads: Minor comment fix.
7485
7486 2011-08-04 Arnaud Charlet <charlet@adacore.com>
7487
7488 * gnatlink.adb (Gnatlink): Pass -gnat83/95/05/12 switch to gcc in
7489 CodePeer mode.
7490 * switch.ads, switch.adb (Is_Language_Switch): New function.
7491
7492 2011-08-04 Vincent Celier <celier@adacore.com>
7493
7494 * switch-c.adb: Minor comment addition.
7495
7496 2011-08-04 Vincent Celier <celier@adacore.com>
7497
7498 * vms_conv.adb (Process_Argument): Fail graciously when qualifier
7499 ending with '=' is followed by a space (missing file name).
7500
7501 2011-08-04 Pascal Obry <obry@adacore.com>
7502
7503 * g-regist.ads: Fix size of HKEY on x86_64-windows.
7504
7505 2011-08-04 Ed Schonberg <schonberg@adacore.com>
7506
7507 * sem_ch12.adb (Analyze_Associations): New routine
7508 Check_Overloaded_Formal_Subprogram to reject a formal package when
7509 there is a named association or a box initialisation for an overloaded
7510 formal subprogram of the corresponding generic.
7511
7512 2011-08-04 Yannick Moy <moy@adacore.com>
7513
7514 * alfa.ads (ALFA_Xref_Record): add component for type of entity
7515 * get_alfa.adb, put_alfa.adb: Read and write new component of
7516 cross-reference.
7517 * lib-xref-alfa.adb (Collect_ALFA): generate new component.
7518
7519 2011-08-04 Pascal Obry <obry@adacore.com>
7520
7521 * urealp.adb: Minor reformatting.
7522
7523 2011-08-04 Tristan Gingold <gingold@adacore.com>
7524
7525 * exp_ch7.adb (build_finalizer.process_declarations.processing_actions):
7526 Handle the case when Cleanup_Protected_Object returns Empty.
7527
7528 2011-08-04 Yannick Moy <moy@adacore.com>
7529
7530 * frontend.adb (Frontend): only qualify names in non-ALFA mode
7531
7532 2011-08-04 Ed Schonberg <schonberg@adacore.com>
7533
7534 * sem_ch4.adb (Try_Class_Wide_Operation): if the context is a procedure
7535 call, ignore functions.
7536
7537 2011-08-04 Geert Bosch <bosch@adacore.com>
7538
7539 * urealp.adb (Equivalent_Decimal_Exponent): Avoid the use of floating
7540 point.
7541
7542 2011-08-04 Emmanuel Briot <briot@adacore.com>
7543
7544 * makeutl.adb (Compute_Builder_Switches): no longer accept a unit name
7545 as an index for Builder'Switches. This conforms to the documentation.
7546 * make.adb (Insert_Project_Sources): avoid duplicate code
7547
7548 2011-08-04 Emmanuel Briot <briot@adacore.com>
7549
7550 * makeutl.adb (Complete_Mains): if the user has passed a relative file
7551 name on the command line (for instance "../dummy"), never assume it can
7552 be a unit name.
7553
7554 2011-08-04 Tristan Gingold <gingold@adacore.com>
7555
7556 * bindgen.adb: Remove code the reference or create the
7557 Break_Start/__gnat_break_start procedure.
7558 * s-stalib.adb (Break_Start): Removed.
7559
7560 2011-08-04 Emmanuel Briot <briot@adacore.com>
7561
7562 * make.adb, makeutl.adb, makeutl.ads (Compute_Builder_Switches): now
7563 shared with gprbuild.
7564
7565 2011-08-04 Yannick Moy <moy@adacore.com>
7566
7567 * par-ch4.adb (P_Primary): preferentially issue an error message about
7568 a missing parenthesis arount a conditional or case expression in Ada
7569 2012 mode, if we detect that the alignment is not correct for a
7570 statement.
7571
7572 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7573
7574 * exp_ch7.adb (Process_Declarations): Do not consider the result of a
7575 tag-to-class-wide conversion as needing finalization actions.
7576 * exp_util.adb (Has_Controlled_Objects): Do not consider the result of
7577 a tag-to-class-wide conversion as needing finalization actions.
7578 (Is_Finalizable_Transient): The result of a tag-to-class-wide
7579 conversion does not need finalization actions.
7580 (Is_Tag_To_CW_Conversion): New routine.
7581 * exp_util.ads (Is_Tag_To_CW_Conversion): New routine. Determines
7582 whether an object is the result of a tag-to-class-wide conversion.
7583
7584 2011-08-04 Yannick Moy <moy@adacore.com>
7585
7586 * sem_ch13.adb (Analyze_Aspect_Specifications): correct order in which
7587 the left-hand-side and right-hand-side of a conjunct are inserted when
7588 translating a pre- or postcondition
7589 * sem_ch6.adb: Correct typo in comment
7590
7591 2011-08-04 Ed Schonberg <schonberg@adacore.com>
7592
7593 * gnat_rm.texi: Ravenscar does not prohibit dependence on
7594 Unchecked_Conversion and Unchecked_Deallocation.
7595
7596 2011-08-04 Thomas Quinot <quinot@adacore.com>
7597
7598 * make.adb: Minor reformatting.
7599
7600 2011-08-04 Emmanuel Briot <briot@adacore.com>
7601
7602 * prj.adb, prj.ads, makeutl.adb (Complete_Mains): search for the
7603 sources in the project and its imported projects, but not in the whole
7604 tree.
7605
7606 2011-08-04 Emmanuel Briot <briot@adacore.com>
7607
7608 * make.adb: Remove debug trace.
7609
7610 2011-08-04 Vincent Celier <celier@adacore.com>
7611
7612 * makeutl.adb (Do_Complete): Get the absolute path name of a relative
7613 path in canonical form, to be able to compare path names on platforms
7614 such as Windows or Darwin.
7615
7616 2011-08-04 Thomas Quinot <quinot@adacore.com>
7617
7618 * par_sco.adb (Traverse_Declarations_Or_Statements.Set_Statement_Entry):
7619 For a pragma (statement with C1 = 'P'), record the sloc of the pragma.
7620 * scos.ads: Update documentation accordingly.
7621 * put_scos.adb (Output_SCO_Line): Omit statement SCOs for disabled
7622 pragmas.
7623
7624 2011-08-04 Ed Schonberg <schonberg@adacore.com>
7625
7626 * sem_attr.adb (Bad_Attribute_For_Predicate): flag illegal use of
7627 attribute only if prefix type is scalar.
7628
7629 2011-08-04 Emmanuel Briot <briot@adacore.com>
7630
7631 * make.adb, makeutl.adb, prj-env.adb (Check_Mains): put back support
7632 in gnatmake for specifying mains on the command line that do not belong
7633 to the main project. These mains must currently all belong to the same
7634 project, though.
7635 (Ultimate_Extension_Of): removed, since duplicated
7636 Ultimate_Extending_Project.
7637
7638 2011-08-04 Arnaud Charlet <charlet@adacore.com>
7639
7640 * make.adb (Do_Codepeer_Globalize_Step): Removed. Use CodePeer_Mode
7641 instead.
7642 (CodePeer_Mode_String): New.
7643 (Linking_Phase, Binding_Phase): Call gnatlink with -P switch in
7644 CodePeer mode.
7645 (Scan_Make_Arg): Do not disable binding/linking phase in CodePeer mode.
7646 * bindgen.adb (Gen_Elab_Calls_Ada): Ignore subprograms in CodePeer
7647 mode, since no useful elaboration subprogram is needed by CodePeer.
7648 * gnatlink.adb (Gnatlink): Add support for -P switch (CodePeer mode).
7649 In this mode, compile binder file with -gnatC and do stop after this
7650 step.
7651
7652 2011-08-04 Vincent Celier <celier@adacore.com>
7653
7654 * exp_ch7.adb: Minor comment fix.
7655
7656 2011-08-04 Robert Dewar <dewar@adacore.com>
7657
7658 * exp_ch7.adb, make.adb, sem_ch10.adb, bindgen.adb, sem_res.adb,
7659 exp_ch4.adb, makeutl.adb: Minor reformatting.
7660
7661 2011-08-04 Emmanuel Briot <briot@adacore.com>
7662
7663 * make.adb, makeutl.adb, makeutl.ads (Make): major refactoring.
7664 Create several new subprograms to move code out of Make. This makes the
7665 code more readable, removes code duplication, and is a preparation work
7666 for adding support for aggregate projects.
7667
7668 2011-08-04 Tristan Gingold <gingold@adacore.com>
7669
7670 * s-po32gl.ads, s-po32gl.adb: New files.
7671 * exp_ch7.ads (Get_Global_Pool_For_Access_Type): New function.
7672 * exp_ch7.adb (Get_Global_Pool_For_Access_Type): New function.
7673 (Build_Finalization_Collection): Use it.
7674 * exp_ch4.adb (Complete_Controlled_Allocation): Ditto.
7675 * rtsfind.ads: System_Pool_32_Global, Re_Global_Pool_32_Object: New
7676 literals.
7677 * gcc-interface/Makefile.in: Use s-po32gl.o on VMS.
7678 * gcc-interface/Make-lang.in: Update dependencies.
7679
7680 2011-08-04 Emmanuel Briot <briot@adacore.com>
7681
7682 * makeutl.adb (Complete_Mains): add support for specs with no suffix on
7683 the command line.
7684
7685 2011-08-04 Emmanuel Briot <briot@adacore.com>
7686
7687 * make.adb, makeutl.adb (Complete_Mains): if a main specified on the
7688 command line is not a file name, also check whether it could be a unit
7689 name.
7690
7691 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
7692
7693 * bindgen.adb (Gen_Finalize_Library_Ada): Factor out code to generate
7694 the header of the finalization routine.
7695 If the unit has no finalizer but is a body whose spec has one, then
7696 generate the decrement of the elaboration entity only.
7697 If the unit has a finalizer and is a spec, then do not generate the
7698 decrement of the elaboration entity.
7699 (Gen_Finalize_Library_C): Likewise.
7700
7701 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7702
7703 * exp_ch7.adb (Alignment_Of): New subsidiary routine.
7704 (Bounds_Size_Expression): Removed.
7705 (Double_Alignment_Of): New subsidiary routine.
7706 (Make_Finalize_Address_Stmts): New local variable Index_Typ. Account
7707 for a hole in the dope vector of unconstrained arrays due to different
7708 index and element alignments.
7709
7710 2011-08-04 Ed Schonberg <schonberg@adacore.com>
7711
7712 * sem_res.adb (Resolve_Allocator): diagnose task allocator that will
7713 raise program_error because body has not been seen yet.
7714
7715 2011-08-04 Ed Schonberg <schonberg@adacore.com>
7716
7717 * sem_ch10.adb (Analyze_With_Clause): Protect against child unit with
7718 an unresolved name.
7719
7720 2011-08-04 Vincent Celier <celier@adacore.com>
7721
7722 * makeutl.adb (Do_Complete): Check absolute paths in canonical forms
7723
7724 2011-08-04 Yannick Moy <moy@adacore.com>
7725
7726 * alfa.adb, alfa.ads (Unique_Defining_Entity): move function from here
7727 * sem_util.adb, sem_util.ads (Unique_Defining_Entity): ...to here
7728
7729 2011-08-04 Thomas Quinot <quinot@adacore.com>
7730
7731 * sem_ch12.adb (Analyze_Package_Instantiation): Do not omit body for
7732 instantiation in RCI.
7733
7734 2011-08-04 Emmanuel Briot <briot@adacore.com>
7735
7736 * make.adb: Share more code with gprbuild
7737
7738 2011-08-04 Emmanuel Briot <briot@adacore.com>
7739
7740 * projects.texi: Added documentation for the IDE'Gnat project file
7741 attribute.
7742
7743 2011-08-04 Nicolas Roche <roche@adacore.com>
7744
7745 * gnat_rm.texi: Minor editing.
7746
7747 2011-08-04 Javier Miranda <miranda@adacore.com>
7748
7749 * bindgen.adb (Gen_Adafinal_Ada): Do not differentiate the main case
7750 and the library case for VM targets.
7751 (Gen_Adainit_Ada): Likewise.
7752
7753 2011-08-04 Robert Dewar <dewar@adacore.com>
7754
7755 * g-altive.ads: Minor comment updates.
7756 * prj-nmsc.adb: Minor reformatting.
7757
7758 2011-08-04 Javier Miranda <miranda@adacore.com>
7759
7760 * opt.ads
7761 (Normalize_Scalars_Config): Value of the configuration switch set by
7762 pragma Normalize_Scalars when it appears in the gnat.adc file.
7763 (Normalize_Scalars): New field for record Config_Switches_Type. Used
7764 to save and restore settings of this pragma.
7765 * opt.adb
7766 (Register_Opt_Config_Switches, Save_Opt_Config_Switches,
7767 Restore_Opt_Config_Switches): Add missing support for Normalize_Scalars.
7768
7769 2011-08-04 Vincent Celier <celier@adacore.com>
7770
7771 * gnat_ugn.texi: Document gnatlink options -M and -M=mapfile
7772
7773 2011-08-04 Arnaud Charlet <charlet@adacore.com>
7774
7775 * makeutl.adb: Minor reformatting.
7776
7777 2011-08-04 Olivier Hainque <hainque@adacore.com>
7778
7779 * g-altive.ads: Update comments to reflect that only the soft
7780 binding is available today.
7781
7782 2011-08-04 Robert Dewar <dewar@adacore.com>
7783
7784 * bindgen.adb, einfo.adb, sem_ch12.adb, s-tasren.adb, sem_res.adb,
7785 makeutl.adb, prj-nmsc.adb, opt.ads, prj-env.adb: Minor reformatting
7786 * gcc-interface/Make-lang.in: Update dependencies.
7787
7788 2011-08-04 Arnaud Charlet <charlet@adacore.com>
7789
7790 * prj-env.adb: Remove local debug traces.
7791
7792 2011-08-04 Yannick Moy <moy@adacore.com>
7793
7794 * checks.adb (Apply_Float_Conversion_Check): correct a typo where Lo_OK
7795 was used instead of Hi_OK, which could cause a read of an uninitialized
7796 value later on. Detected while working on the new warning.
7797 * exp_ch9.adb (Expand_N_Entry_Declaration): remove useless assignment
7798 to local variable.
7799 * sem_ch5.adb (Analyze_Assignment): set the last assignment component
7800 in more cases, in order to detect more unreferenced values.
7801 * sem_util.adb, sem_util.ads (Get_Enclosing_Object): return enclosing
7802 object for expression, if any.
7803
7804 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
7805
7806 * exp_intr.adb (Expand_Binary_Operator_Call): Look at the RM size of
7807 the operand types instead of the Esize.
7808
7809 2011-08-04 Steve Baird <baird@adacore.com>
7810
7811 * switch-b.adb (Scan_Binder_Switches): Add -P binder switch, used to
7812 enable CodePeer_Mode.
7813 * bindusg.adb (Display): Add help message describing -P binder switch.
7814 * gnat_ugn.texi: Document -P binder switch.
7815 * bindgen.adb (Gen_Main_Ada): If CodePeer_Mode is set, then call the
7816 user-defined main program directly.
7817 (Gen_Output_File_Ada): If CodePeer_Mode is set, generate a with of the
7818 user-defined main program in the context clause of the package body.
7819
7820 2011-08-04 Yannick Moy <moy@adacore.com>
7821
7822 * alfa.adb, alfa.ads (Get_Entity_For_Decl): remove function, partial
7823 duplicate of Defining_Entity
7824 (Get_Unique_Entity_For_Decl): rename function into
7825 Unique_Defining_Entity
7826 * einfo.adb, einfo.ads (Is_In_ALFA, Body_Is_In_ALFA): remove flags
7827 (Formal_Proof_On): remove synthesized flag
7828 * cstand.adb, sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb,
7829 sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_res.adb, sem_util.adb,
7830 sem_util.ads, stand.ads: Remove treatment associated to entities in ALFA
7831 * sem_prag.adb (Analyze_Pragma): remove special treatment for pragma
7832 Annotate (Formal_Proof)
7833
7834 2011-08-04 Emmanuel Briot <briot@adacore.com>
7835
7836 * prj-env.adb (Create_Config_Pragmas_File): fix handling of multi-unit
7837 source files with non-standard naming schemes, in imported projects
7838
7839 2011-08-04 Emmanuel Briot <briot@adacore.com>
7840
7841 * makeutl.adb (Complete_Mains): when a multi-unit source file is
7842 specified on the gprbuild command line, we need to compile all units
7843 within that file, not just the first one we find
7844 Fix error message for mains that are not found.
7845
7846 2011-08-04 Thomas Quinot <quinot@adacore.com>
7847
7848 * sem_ch6.adb: Update comment.
7849 * sem_ch12.adb: Minor reformatting.
7850
7851 2011-08-04 Bob Duff <duff@adacore.com>
7852
7853 * s-tasren.adb (Task_Do_Or_Queue): Previous code was reading
7854 Acceptor.Terminate_Alternative without locking Acceptor, which causes a
7855 race condition whose symptom is to fail to lock Parent. That, in turn,
7856 causes Parent.Awake_Count to be accessed without locking Parent, which
7857 causes another race condition whose symptom is that Parent.Awake_Count
7858 can be off by 1 (either too high or too low). The solution is to lock
7859 Parent unconditionally, and then lock Acceptor, before reading
7860 Acceptor.Terminate_Alternative.
7861
7862 2011-08-04 Arnaud Charlet <charlet@adacore.com>
7863
7864 * debug.adb: Update comment.
7865
7866 2011-08-04 Robert Dewar <dewar@adacore.com>
7867
7868 * par_sco.adb, exp_util.adb, make.adb, a-tags.adb, sem_prag.adb,
7869 sem_util.adb, sem_attr.adb, exp_ch4.adb, g-comlin.adb, g-comlin.ads,
7870 exp_ch6.adb: Minor reformatting.
7871
7872 2011-08-04 Gary Dismukes <dismukes@adacore.com>
7873
7874 * gnat_ugn.texi: Add sentence about the case of compile-time-detected
7875 checks for -gnateE.
7876
7877 2011-08-04 Ed Schonberg <schonberg@adacore.com>
7878
7879 * gnat_rm.texi: update Ravenscar desription to reflect Ada2012 RM.
7880
7881 2011-08-04 Thomas Quinot <quinot@adacore.com>
7882
7883 * sinfo.ads: Minor reformatting.
7884
7885 2011-08-04 Emmanuel Briot <briot@adacore.com>
7886
7887 * makeutl.adb, makeutl.ads, prj-nmsc.adb (Complete_Mains): report error
7888 even if there is no location.
7889
7890 2011-08-04 Ed Schonberg <schonberg@adacore.com>
7891
7892 * sem_res.adb, sem_ch4.adb: move check for restriction
7893 No_Task_Hierarchy to resolve_allocator.
7894
7895 2011-08-04 Thomas Quinot <quinot@adacore.com>
7896
7897 * sinfo.adb, sinfo.ads, sem_prag.adb, sem_ch12.adb (Pragma_Enabled):
7898 This flag of N_Pragma nodes is not used, remove it as well as all of
7899 the associated circuitry.
7900
7901 2011-08-04 Javier Miranda <miranda@adacore.com>
7902
7903 * exp_disp.adb (Make_DT): Switch -gnatdQ disables the generation of the
7904 runtime check on duplicated externa tags
7905 * debug.adb Document switch -gnatdQ.
7906
7907 2011-08-04 Gary Dismukes <dismukes@adacore.com>
7908
7909 * a-fihema.ads: Minor typo fix.
7910
7911 2011-08-04 Yannick Moy <moy@adacore.com>
7912
7913 * sem_ch10.adb: Minor comment update.
7914
7915 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
7916
7917 * einfo.adb: Update the node field usage to reflect the renaming of
7918 Return_Flag to Return_ Flag_Or_Transient_Decl.
7919 (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl.
7920 (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl.
7921 (Write_Field15_Name): Change Return_Flag to
7922 Return_Flag_Or_Transient_Decl.
7923 * einfo.ads: Rename node field Return_Flag to
7924 Return_Flag_Or_Transient_Decl. Update the associated comment and all
7925 occurrences in entities.
7926 (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. Update
7927 associated Inline pragma.
7928 (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. Update
7929 associated Inline pragma.
7930 * exp_ch4.ads, exp_ch4.adb (Expand_N_Expression_With_Actions): New
7931 routine.
7932 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Update the calls to
7933 Return_Flag and Set_Return_Flag.
7934 * exp_ch7.adb (Process_Declarations): Add code to recognize hook
7935 objects generated for controlled transients declared inside an
7936 Exception_With_Actions. Update the calls to Return_Flag.
7937 (Process_Object_Declaration): Add code to add a null guard for hook
7938 objects generated for controlled transients declared inside an
7939 Exception_With_Actions. Update related comment.
7940 * exp_util.adb (Has_Controlled_Objects): Add code to recognize hook
7941 objects generated for controlled transients declared inside an
7942 Exception_With_Actions. Update the calls to Return_Flag.
7943 * expander.adb (Expand): Add new case for N_Expression_With_Actions.
7944
7945 2011-08-04 Ed Schonberg <schonberg@adacore.com>
7946
7947 * sem_util.adb:(Wrong_Type): Improve error message on a one-element
7948 positional aggregate.
7949
7950 2011-08-04 Vincent Celier <celier@adacore.com>
7951
7952 * par_sco.adb (Process_Decisions.Output_Header): Check and record pragma
7953 SLOC only for pragmas.
7954
7955 2011-08-04 Emmanuel Briot <briot@adacore.com>
7956
7957 * projects.texi: Minor typo fix.
7958
7959 2011-08-04 Emmanuel Briot <briot@adacore.com>
7960
7961 * prj-nmsc.adb (Check_File): Minor change to traces, to help debugging
7962 on case-sensitive file systems.
7963
7964 2011-08-04 Thomas Quinot <quinot@adacore.com>
7965
7966 * put_scos.adb (Put_SCOs): Do not emit decision SCO for an X decision
7967 nested in a disabled pragma.
7968 * scos.ads, scos.adb, par_sco.ads, par_sco.adb: Record sloc of
7969 enclosing pragma, if any, for X decisions.
7970
7971 2011-08-04 Thomas Quinot <quinot@adacore.com>
7972
7973 * sem_prag.adb: Minor reformatting.
7974
7975 2011-08-04 Vincent Celier <celier@adacore.com>
7976
7977 * a-tags.adb (Check_TSD): Avoid concatenation of strings, as it is not
7978 allowed in no run time mode.
7979
7980 2011-08-04 Vincent Celier <celier@adacore.com>
7981
7982 * make.adb (Check): When -gnatc is used, check for the source file
7983 inside the ALI file with a canonical case file name.
7984
7985 2011-08-04 Emmanuel Briot <briot@adacore.com>
7986
7987 * g-comlin.adb, g-comlin.ads (Add_Switch): Put back support for
7988 overriding the separator.
7989
7990 2011-08-04 Robert Dewar <dewar@adacore.com>
7991
7992 * sem_aggr.adb, par_sco.adb, sem_type.adb, exp_util.adb, exp_ch9.adb,
7993 prj-nmsc.adb, sem_ch13.adb, exp_strm.adb: Minor reformatting.
7994
7995 2011-08-04 Robert Dewar <dewar@adacore.com>
7996
7997 * gnat_rm.texi: Minor documentation fix for pragma Annotate.
7998
7999 2011-08-04 Yannick Moy <moy@adacore.com>
8000
8001 * sem_attr.adb (Analyze_Attribute): add check during pre-analysis that
8002 'Result only appears in postcondition of function.
8003
8004 2011-08-04 Thomas Quinot <quinot@adacore.com>
8005
8006 * a-tags.adb (Check_TSD): When raising PROGRAM_ERROR for a duplicated
8007 external tag, include the value of the external tag in the exception
8008 message.
8009
8010 2011-08-04 Yannick Moy <moy@adacore.com>
8011
8012 * sem_attr.adb (Result): modify error message for misplaced 'Result
8013
8014 2011-08-04 Sergey Rybin <rybin@adacore.com>
8015
8016 * gnat_rm.texi (pragma Annotate): Fix syntax description to make it
8017 clear that the second argument must be an identifier.
8018
8019 2011-08-04 Thomas Quinot <quinot@adacore.com>
8020
8021 * exp_ch9.adb (Build_Barrier_Function): When compiling with
8022 -fpreserve-control-flow, insert an IF statement on the barrier
8023 condition to ensure that a conditional branch instruction is generated.
8024
8025 2011-08-04 Emmanuel Briot <briot@adacore.com>
8026
8027 * prj-part.adb, prj.adb, prj.ads, prj-tree.ads
8028 (Processing_Flags.Ignore_Missing_With): new flag.
8029
8030 2011-08-04 Emmanuel Briot <briot@adacore.com>
8031
8032 * prj-nmsc.adb (Find_Sources, Path_Name_Of): Fix handling of
8033 Source_List_File on case-insensitive systems where the file is actually
8034 on a case-sensitive file system (NFS,...).
8035
8036 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8037
8038 * sem_ch6.adb (Analyze_Function_Return): In a rare case where a
8039 function return contains a controlled [extension] aggregate and the
8040 return statement is not part of a handled sequence of statements, wrap
8041 the return in a block. This ensures that all controlled temporaries
8042 generated during aggregate resolution will be picked up by the
8043 finalization machinery.
8044
8045 2011-08-04 Ed Schonberg <schonberg@adacore.com>
8046
8047 * sem_aggr.adb (Resolve_Aggregate): If aggregate has box-initialized
8048 components, freeze type before resolution, to ensure that default
8049 initializations are present for all components.
8050 * sem_res.adb (Resolve_Actuals): the designated object of an
8051 accces-to-constant type is a legal actual in a call to an
8052 initialization procedure.
8053
8054 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8055
8056 * exp_util.adb (Extract_Renamed_Object): Add N_Type_Conversion and
8057 N_Unchecked_Type_Conversion to the possible containers of a renamed
8058 transient variable.
8059
8060 2011-08-04 Yannick Moy <moy@adacore.com>
8061
8062 * par-ch13.adb (Aspect_Specifications_Present): recognize
8063 "with Identifier'Class =>" as an aspect, so that a meaningful warning
8064 is issued in Strict mode.
8065 * par.adb: Fix typos in comments.
8066
8067 2011-08-04 Yannick Moy <moy@adacore.com>
8068
8069 * sem_attr.adb (Result): modify error message to take into account Post
8070 aspect when compiling Ada 2012 (or newer) code.
8071
8072 2011-08-04 Nicolas Roche <roche@adacore.com>
8073
8074 * env.c (__gnat_clearenv): Avoid use of dynamic size array in order to
8075 remove need for GCC exceptions.
8076
8077 2011-08-04 Vincent Celier <celier@adacore.com>
8078
8079 * makeutl.adb (Do_Complete): Call Debug_Output with the name of the
8080 project, not the source file name.
8081 * prj.adb (Find_Sources.Look_For_Sources): If the source has been
8082 excluded, continue looking. This excluded source will only be returned
8083 if there is no other source with the same base name that is not locally
8084 removed.
8085
8086 2011-08-04 Ed Schonberg <schonberg@adacore.com>
8087
8088 * sem_res.adb (Resolve_Intrinsic_Operator): if the result type is
8089 private and one of the operands is a real literal, use a qualified
8090 expression rather than a conversion which is not meaningful to the
8091 back-end.
8092
8093 2011-08-04 Yannick Moy <moy@adacore.com>
8094
8095 * sem_ch13.adb (Aspect_Loop): when an aspect X and its classwise
8096 corresponding aspect X'Class are allowed, proceed with analysis of the
8097 aspect instead of skipping it.
8098
8099 2011-08-04 Tristan Gingold <gingold@adacore.com>
8100
8101 * s-flocon.adb, s-flocon.ads: Add a body for s-flocon.ads
8102 This will allow to have an Ada implementation for the subprogram.
8103
8104 2011-08-04 Ed Schonberg <schonberg@adacore.com>
8105
8106 * sem_ch3.adb (Analyze_Full_Type_Declaration): If the declaration is a
8107 completion and aspects are present, apply them to the entity for the
8108 type which is currently the partial view, but which is the one that
8109 will be frozen.
8110 * sem_ch13.adb (Analyze_Aspect_Specifications): if the predicate
8111 applies to a partial view, indicate that the full view has predicates
8112 and delayed aspects.
8113 (Replace_Type_Reference): Handle properly predicates that apply to the
8114 full view of a private completion.
8115
8116 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
8117
8118 * layout.adb (Layout_Type): For composite types, do not set Esize.
8119 * freeze.adb (Set_Small_Size): Remove test on alignment and do not
8120 set Esize.
8121 (Size_Known): Look at the RM size of components instead of the Esize.
8122 (Freeze_Record_Type): Look at the RM size instead of the Esize to
8123 issue warning and activate Implicit_Packing.
8124 (Freeze_Entity): Likewise. Do not issue a warning for alias/atomic
8125 if the Esize is not known.
8126 * sem_ch13.adb (Analyze_Attribute_Definition_Clause) <Size>: Set Esize
8127 for elementary types only.
8128 (Analyze_Record_Representation_Clause): Look at the RM size instead
8129 of the Esize to issue errors.
8130 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set Esize if it
8131 is not known.
8132 <E_Record_Type>: Look at the RM size instead of the Esize. Remove
8133 obsolete block.
8134 Look at the RM size instead of the Esize for types if the latter is
8135 not known.
8136 (gnat_to_gnu_field): Use Known_Esize instead of Known_Static_Esize.
8137
8138 2011-08-04 Ed Schonberg <schonberg@adacore.com>
8139
8140 * sem_type.adb: proper handling of equality not involving anonymous
8141 access types.
8142
8143 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8144
8145 * exp_ch7.adb (Create_Finalizer): Remove local variables Spec_Nod and
8146 Vis_Decls. When creating a library-level finalizer for a package spec,
8147 both the declaration and body of the finalizer are inserted either in
8148 the visible or private declarations of the package spec.
8149
8150 2011-08-04 Javier Miranda <miranda@adacore.com>
8151
8152 * sem_ch3.adb (Derive_Subprograms): Complete assertion to request the
8153 use of the full-view of a type when invoking Is_Ancestor.
8154 * sem_type.adb (Is_Ancestor): For consistency, when the traversal of
8155 the full-view of private parents is requested, then use also the
8156 full-view of the parent of the first derivation.
8157
8158 2011-08-04 Tristan Gingold <gingold@adacore.com>
8159
8160 * s-taprop-vxworks.adb (Enter_Task): Use System.Float_Control.Reset
8161 instead of the locally imported procedure.
8162 * s-taprop-mingw.adb (Enter_Task): Ditto.
8163 * s-valrea.adb (Scan_Real): Ditto.
8164 * s-imgrea.adb (Set_Image_Real): Ditto.
8165 * s-flocon.ads: Make the package pure.
8166
8167 2011-08-04 Thomas Quinot <quinot@adacore.com>
8168
8169 * sinfo.ads, sinfo.adb (Debug_Statement, Set_Debug_Statement): Remove.
8170 * tbuild.ads, tbuild.adb (Make_Pragma): Adjust accordingly.
8171 * sinfo-cn.ads, sinfo-cn.adb (Change_Name_To_Procedure_Call_Statement):
8172 New subprogram, moved here from...
8173 * par.adb, par-ch5.adb (P_Statement_Name): ... here.
8174 * par-prag.adb (Par.Prag, case Pragma_Debug): Do not perform any
8175 rewriting of the last argument into a procedure call statement here...
8176 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): ...do it there
8177 instead.
8178
8179 2011-08-04 Thomas Quinot <quinot@adacore.com>
8180
8181 * par_sco.adb: Minor reformatting.
8182
8183 2011-08-04 Robert Dewar <dewar@adacore.com>
8184
8185 * erroutc.adb: Minor reformatting.
8186
8187 2011-08-04 Thomas Quinot <quinot@adacore.com>
8188
8189 * par_sco.adb: Comment update.
8190
8191 2011-08-04 Tristan Gingold <gingold@adacore.com>
8192
8193 * s-flocon.ads: New file.
8194 * g-flocon.ads: Now a renaming of s-flocon.
8195 * Makefile.rtl: Add s-flocon.o
8196
8197 2011-08-04 Javier Miranda <miranda@adacore.com>
8198
8199 * exp_strm.adb (Build_Array_Input_Function): if the array type is
8200 constrained, do not attempt to build a subtype of it.
8201
8202 2011-08-04 Yannick Moy <moy@adacore.com>
8203
8204 * errout.ads Change comments: remove 'R'M as an example where quotes
8205 are needed; add ALFA as another case where quotes are not needed
8206 * erroutc.adb (Set_Msg_Insertion_Reserved_Word): add ALFA as another
8207 case where quotes are not needed.
8208 * sem_ch11.adb, sem_ch13.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb,
8209 sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_prag.adb, sem_res.adb:
8210 Remove all occurrences of 'A'L'F'A
8211
8212 2011-08-04 Ed Schonberg <schonberg@adacore.com>
8213
8214 * sem_ch13.adb: check legality of invariant pragma.
8215
8216 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
8217
8218 * bindgen.adb: Add comments.
8219
8220 2011-08-04 Yannick Moy <moy@adacore.com>
8221
8222 * einfo.adb, einfo.ads: Free Flag254 and make Formal_Proof_On a
8223 synthesized flag.
8224 * sem_prag.adb (Analyze_Pragma): record the pragma Annotate
8225 (Formal_Proof, On/Off) in the Rep_Item list of the current subprogram.
8226
8227 2011-08-04 Robert Dewar <dewar@adacore.com>
8228
8229 * exp_ch7.adb, exp_ch6.adb, sem_ch3.adb, layout.adb, sem_ch5.adb,
8230 osint-c.ads, sem_util.ads, gnat1drv.adb, targparm.ads, sem_ch6.adb,
8231 sem_ch13.adb, s-pooloc.adb: Minor reformatting.
8232
8233 2011-08-04 Thomas Quinot <quinot@adacore.com>
8234
8235 * s-pooloc.ads, s-pooglo.ads: Minor reformatting
8236
8237 2011-08-04 Thomas Quinot <quinot@adacore.com>
8238
8239 PR ada/47880
8240 * s-pooloc.adb (Deallocate): Fix the case of deallocating the only
8241 allocated object.
8242
8243 2011-08-04 Robert Dewar <dewar@adacore.com>
8244
8245 * einfo.ads, exp_ch4.adb: Minor reformatting.
8246
8247 2011-08-04 Jerome Lambourg <lambourg@adacore.com>
8248
8249 * back_end.ads (Gen_Or_Update_Object_File): Add more comments.
8250
8251 2011-08-04 Ed Schonberg <schonberg@adacore.com>
8252
8253 * exp_ch4.adb (Expand_Composite_Equality): code cleanup: use component
8254 type in all cases to compute list of primitive operations, because full
8255 view may be an itype that is not attached to the list of declarations.
8256
8257 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
8258
8259 * bindgen.adb (Gen_Adafinal_Ada): Generate an early return if the
8260 library has already been finalized.
8261 (Gen_Adafinal_C): Likewise.
8262 (Gen_Adainit_Ada): Generate an early return if the library has
8263 already been elaborated.
8264 (Gen_Adainit_C): Likewise.
8265 (Gen_Output_File_Ada): Generate an elaboration flag.
8266 (Gen_Output_File_C): Likewise.
8267
8268 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8269
8270 * exp_ch4.adb (Expand_Allocator_Expression): Disable the generation of
8271 Set_Finalize_Address_Ptr for CodePeer because Finalize_Address was not
8272 built in the first place.
8273 (Expand_N_Allocator): Disable the generation of Set_Finalize_Address_Ptr
8274 for CodePeer because Finalize_Address was not built to begin with.
8275 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Ditto.
8276
8277 2011-08-04 Pascal Obry <obry@adacore.com>
8278
8279 * adaint.c (__gnat_tmp_name): Use current process id to create temp
8280 filenames, this ensures unicity of filenames across processes.
8281
8282 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8283
8284 * bindgen.adb (Gen_Finalize_Library_Ada): Rename generated routine
8285 Raise_Controlled to Raise_From_Controlled_Operation. Update the
8286 signature of Raise_From_Controlled_Operation by adding flag From_Abort.
8287 Add False as the actual to From_Abort in the generated call to
8288 Raise_From_Controlled_Operation.
8289
8290 2011-08-04 Jerome Lambourg <lambourg@adacore.com>
8291
8292 * osint-c.ads, osint-c.adb (Set_Library_Info_Name): Move to declaration
8293 so that the ali file name can be retrieved from outside of this package.
8294 * back_end.ads, back_end.adb (Gen_Or_Update_Object_File): New method
8295 doing nothing in the general case, but used to update the object file
8296 timestamp if directly generated by the backend.
8297 * gnat1drv.adb (Gnat1drv): Make sure the object file's timestamp is set
8298 to a later time than the ali file one.
8299
8300 2011-08-04 Yannick Moy <moy@adacore.com>
8301
8302 * einfo.adb, einfo.ads (Formal_Proof_On): new flag set on subprogram
8303 entities whose body contains an Annotate pragma which forces formal
8304 proof on this body.
8305 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
8306 sem_ch6.adb, sem_ch9.adb, sem_res.adb: Adapt call to
8307 Mark_Non_ALFA_Subprogram to pass in a message and node.
8308 * sem_prag.adb (Analyze_Pragma): add treatment of pragma Annotate
8309 (Forma_Proof, On) which sets the flag Formal_Proof_On in the
8310 surrounding subprogram.
8311 * sem_util.adb, sem_util.ads (Mark_Non_ALFA_Subprogram,
8312 Mark_Non_ALFA_Subprogram_Unconditional): if the subprogram being marked
8313 as not in ALFA is annotated with Formal_Proof being On, then an error
8314 is issued based on the additional parameters for message and node.
8315 * snames.ads-tmpl (Name_Formal_Proof): new name for annotation.
8316 * gcc-interface/Make-lang.in: Update dependencies.
8317
8318 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8319
8320 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not generate
8321 Finalize_Address when CodePeer is enabled.
8322
8323 2011-08-04 Pascal Obry <obry@adacore.com>
8324
8325 * adaint.c (__gnat_tmp_name): Use _tempnam() instead of tempnam() as
8326 the latter returns a pointer to a static buffer which is deallocated
8327 at the end of the routine.
8328
8329 2011-08-04 Yannick Moy <moy@adacore.com>
8330
8331 * sem_ch3.adb (Array_Type_Declaration): move test for type in ALFA
8332 after index creation; mark unconstrained base array type generated as
8333 being in/not in ALFA as well
8334 (Make_Index): mark subtype created as in/not in ALFA
8335 * sem_ch5.adb (Analyze_Iteration_Scheme): mark entity for iterating
8336 over a loop as in/not in ALFA, depending on its type and form of loop
8337 iteration.
8338
8339 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8340
8341 * exp_ch7.adb (Build_Object_Declarations): Initialize flag Abort
8342 directly to False on .NET and JVM.
8343
8344 2011-08-04 Yannick Moy <moy@adacore.com>
8345
8346 * sem_ch3.adb (Constrain_Enumeration, Constrain_Integer): remove
8347 constraint that subtype must come from source code to be in ALFA, so
8348 that anonymous subtypes can be in ALFA too.
8349
8350 2011-08-04 Yannick Moy <moy@adacore.com>
8351
8352 * sem_ch3.adb (Analyze_Object_Declaration): remove obsolete addition of
8353 reference for ALFA mode.
8354 * lib-xref-alfa.adb, lib-xref.ads (Traverse_Compilation_Unit): make
8355 procedure public so as to use it from formal verification back-end.
8356
8357 2011-08-04 Jerome Lambourg <lambourg@adacore.com>
8358
8359 * g-comlin.adb (For_Each_Simple_Switch.Is_In_Config): Remove the
8360 invalid checks of the Parameter, making Remove_Switch not working
8361 correctly.
8362
8363 2011-08-04 Arnaud Charlet <charlet@adacore.com>
8364
8365 * targparm.ads: Update header: no run-time exception is needed on this
8366 file.
8367
8368 2011-08-04 Vincent Celier <celier@adacore.com>
8369
8370 * a-fihema.adb: Use System.IO instead of GNAT.IO
8371
8372 2011-08-04 Thomas Quinot <quinot@adacore.com>
8373
8374 * sem_ch3.adb (Access_Definition): Anonymous access to subprogram types
8375 are forbidden in Compiler_Unit mode.
8376
8377 2011-08-04 Robert Dewar <dewar@adacore.com>
8378
8379 * sem_util.adb: Minor reformatting.
8380
8381 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8382
8383 * bindgen.adb (Gen_Finalize_Library_Ada): Update the import string for
8384 library-level finalizers.
8385 (Gen_Finalize_Library_C): Update the import string for library-level
8386 finalizers.
8387 (Gen_Finalize_Library_Defs_C): Update the definition name of a
8388 library-level finalizer.
8389 * exp_ch7.adb: Remove with and use clauses for Stringt.
8390 (Create_Finalizer): Remove local variables Conv_Name, Prag_Decl,
8391 Spec_Decl. Add local variable Body_Id. The names of library-level
8392 finalizers are now manually fully qualified and are no longer external.
8393 A single name is now capable of servicing .NET, JVM and non-VM targets.
8394 Pragma Export is no longer required to provide visibility for the name.
8395 (Create_Finalizer_String): Removed.
8396 (New_Finalizer_Name): New routine which mimics New_..._Name.
8397
8398 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
8399
8400 * sem_elab.adb (Check_Internal_Call_Continue): Change the type of the
8401 elaboration counter to Standard_Short_Integer.
8402 * sem_util.adb (Build_Elaboration_Entity): Likewise.
8403 * bindgen.adb (Gen_Elab_Externals_Ada): Adjust to above change.
8404 (Gen_Elab_Externals_C): Likewise.
8405
8406 2011-08-04 Ed Falis <falis@adacore.com>
8407
8408 * system-vxworks-arm.ads, system-vxworks-sparcv9.ads,
8409 system-vxworks-ppc.ads, system-vxworks-m68k.ads,
8410 system-vxworks-mips.ads, system-vxworks-x86.ads
8411 (Always_Compatible_Rep): set to False for all VxWorks targets.
8412
8413 2011-08-04 Robert Dewar <dewar@adacore.com>
8414
8415 * par_sco.adb, prj-proc.adb, make.adb, bindgen.adb, prj.adb, prj.ads,
8416 makeutl.adb, makeutl.ads, prj-nmsc.adb, exp_ch5.adb, exp_ch12.adb,
8417 exp_ch7.ads, exp_util.ads, sem_util.ads, g-comlin.ads, exp_ch6.adb,
8418 exp_ch6.ads, lib-xref.ads, exp_ch7.adb, exp_util.adb, exp_dist.adb,
8419 exp_strm.adb, gnatcmd.adb, freeze.adb, g-comlin.adb, lib-xref-alfa.adb,
8420 sem_attr.adb, sem_prag.adb, sem_util.adb, sem_elab.adb, sem_ch8.adb,
8421 sem_ch11.adb, sem_eval.adb, sem_ch13.adb, sem_disp.adb, a-fihema.adb:
8422 Minor reformatting and code reorganization.
8423
8424 2011-08-04 Emmanuel Briot <briot@adacore.com>
8425
8426 * projects.texi: Added doc for aggregate projects.
8427
8428 2011-08-04 Emmanuel Briot <briot@adacore.com>
8429
8430 * prj-proc.adb, prj-nmsc.adb, prj-env.adb (Process_Declarative_Items):
8431 Add support for overriding the Project_Path in aggregate projects.
8432
8433 2011-08-04 Robert Dewar <dewar@adacore.com>
8434
8435 * a-cofove.ads: Minor reformatting.
8436
8437 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
8438
8439 * exp_ch7.adb (Build_Adjust_Or_Finalize_Statements): Update the comment
8440 on the generated code.
8441 (Build_Finalize_Statements): Update the comment on the generated code.
8442 (Build_Initialize_Statements): Update the comment on the generated code.
8443 (Build_Object_Declarations): Add local variable Result. The object
8444 declarations are now built in sequence.
8445 * rtsfind.ads: Add RE_Exception_Occurrence_Access to tables RE_Id and
8446 RE_Unit_Table.
8447
8448 2011-08-04 Robert Dewar <dewar@adacore.com>
8449
8450 * checks.adb, alfa.adb, alfa.ads: Minor reformatting.
8451
8452 2011-08-04 Eric Botcazou <ebotcazou@adacore.com>
8453
8454 * einfo.ads (Elaboration_Entity): Document new definition and use.
8455 (Elaboration_Entity_Required): Adjust to above change.
8456 * exp_attr.adb (Expand_N_Attribute_Reference): Likewise.
8457 * exp_ch12.adb: And with and use for Snames.
8458 (Expand_N_Generic_Instantiation): Test 'Elaborated attribute.
8459 * exp_util.adb (Set_Elaboration_Flag): Likewise.
8460 * sem_attr.adb (Analyze_Attribute) <Check_Library_Unit>: Delete.
8461 <Check_Unit_Name>: Deal with N_Expanded_Name.
8462 <Attribute_Elaborated>: Extend to all unit names.
8463 * sem_elab.adb: And with and use for Uintp.
8464 (Check_Internal_Call_Continue): Adjust to Elaboration_Entity change.
8465 * sem_util.ads (Build_Elaboration_Entity): Adjust comment.
8466 * sem_util.adb (Build_Elaboration_Entity): Change type to Integer.
8467 * bindgen.adb (Gen_Elab_Externals_Ada): New local subprogram taken
8468 from Gen_Adainit_Ada.
8469 (Gen_Elab_Externals_C): Likewise, but taken from Gen_Adainit_C.
8470 (Gen_Adafinal_Ada): Remove redundant test. In the non-main program
8471 case, do not call System.Standard_Library.Adafinal; instead call
8472 finalize_library if needed.
8473 (Gen_Adafinal_C): Likewise.
8474 (Gen_Adainit_Ada): Do not set SSL.Finalize_Library_Objects in the
8475 non-main program case.
8476 (Gen_Adainit_C): Generate a couple of external declarations here.
8477 In the main program case, set SSL.Finalize_Library_Objects.
8478 (Gen_Elab_Calls_Ada): Adjust to Elaboration_Entity change.
8479 (Gen_Elab_Calls_C): Likewise.
8480 (Gen_Finalize_Library_Ada): Likewise. Skip SAL interface units.
8481 (Gen_Finalize_Library_C): Likewise. Generate a full function.
8482 (Gen_Main_C): Put back call to Ada_Final and don't finalize library
8483 objects here.
8484 (Gen_Output_File_Ada): Generate pragma Linker_Destructor for Ada_Final
8485 if -a is specified. Call Gen_Elab_Externals_Ada. Move around call to
8486 Gen_Adafinal_Ada.
8487 (Gen_Output_File_C): Generate __attribute__((destructor)) for Ada_Final
8488 if -a is specified. Call Gen_Elab_Externals_C. Remove useless couple
8489 of external declarations. Call Gen_Finalize_Library_C.
8490
8491 2011-08-04 Emmanuel Briot <briot@adacore.com>
8492
8493 * prj.adb, prj.ads, makeutl.adb, makeutl.ads (Complete_Mains,
8494 Compute_Compilation_Phases): new subprogram.
8495 (Builder_Data, Builder_Project_Tree_Data): new subprogram and type
8496 The number of mains as well as the various compilation phases that
8497 need to be run are now project tree specific, since various
8498 aggregated trees might have different requirements. In particular,
8499 they do not all require bind or link phases.
8500
8501 2011-08-04 Emmanuel Briot <briot@adacore.com>
8502
8503 * prj.adb, prj.ads, makeutl.adb, makeutl.ads, prj-env.adb
8504 (Project_Tree_Appdata): New type.
8505 It is now possible to associate application-specific data to a project
8506 tree. In particular, this is used in the gprbuild builder to avoid a
8507 number of global tables and htables, especially now that there can be
8508 several project trees loaded at once because of aggregate projects.
8509 (Debug_Name): new procedure.
8510 * projects.texi: Clarify syntax of "**" for Source_Dirs
8511
8512 2011-08-03 Emmanuel Briot <briot@adacore.com>
8513
8514 * prj.ads, makeutl.adb, makeutl.ads (Queue.Insert): now also inserts
8515 the "roots" for a main.
8516 (Fill_From_Project): add support for aggregate projects. Main units
8517 in aggregated projects are now automatically added in the list of
8518 files to build (although this fails later on in gprbuild, because
8519 these files are not using the root proejct tree, so this needs
8520 further cleanup)
8521 * gcc-interface/Make-lang.in: Update dependencies.
8522
8523 2011-08-03 Yannick Moy <moy@adacore.com>
8524
8525 * sem_ch4.adb (Analyze_Conditional_Expression): only allow boolean
8526 conditional expression in ALFA.
8527 * sem_res.adb (Resolve_Conditional_Expression): mark non-boolean
8528 expressions as not in ALFA.
8529
8530 2011-08-03 Robert Dewar <dewar@adacore.com>
8531
8532 * a-cofove.adb: Minor reformatting.
8533
8534 2011-08-03 Emmanuel Briot <briot@adacore.com>
8535
8536 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads
8537 (Insert_Project_Sources, Insert_withed_Sources_For): moved from the
8538 gprbuild sources.
8539 These packages are more logically placed in the Queue package, since
8540 they manipulate the queue. It is also likely that they can be adapted
8541 for gnatmake, thus sharing more code.
8542 (Finish_Program, Fail_Program): moved from the gprbuild sources, so
8543 that we could move the above.
8544
8545 2011-08-03 Emmanuel Briot <briot@adacore.com>
8546
8547 * errutil.adb (Finalize): clean up the list of error messages on exit.
8548 Calling this subprogram multiple times will no longer show duplicate
8549 error messages on stderr.
8550
8551 2011-08-03 Emmanuel Briot <briot@adacore.com>
8552
8553 * g-comlin.adb, g-comlin.ads (Set_Command_Line): ignore the parameter
8554 Getopt_Switches when we have already define a command line
8555 configuration.
8556
8557 2011-08-03 Yannick Moy <moy@adacore.com>
8558
8559 * sem_ch11.adb (Analyze_Raise_xxx_Error): do not mark such nodes as not
8560 in ALFA. Instead, they are considered as assertions to prove.
8561 * sem_ch4.adb (Analyze_Conditional_Expression): do not always mark such
8562 nodes as not in ALFA. Instead, include conditional expressions in ALFA
8563 if they have no ELSE part, or if they occur in pre- and postconditions,
8564 where the Condition cannot have side-effects in ALFA
8565 (Analyze_Membership_Op): do not mark such nodes as not in ALFA
8566 (Analyze_Type_Conversion): do not always mark such nodes as not in ALFA.
8567 Instead, include type conversion between scalar types in ALFA.
8568 * sem_ch6.adb (Process_Formals): correctly mark a parameter in ALFA
8569 if-and-only-if its type is in ALFA.
8570
8571 2011-08-03 Thomas Quinot <quinot@adacore.com>
8572
8573 * scos.adb, get_scos.adb, put_scos.adb
8574 New code letter for decisions: G (entry guard)
8575 * par_sco.adb
8576 (Traverse_Subprogram_Body): Rename to...
8577 (Traverse_Subprogram_Or_Task_Body): New subrpogram.
8578 (Traverse_Protected_Body): New subprogram
8579 (Traverse_Declarations_Or_Statements): Add traversal of task bodies,
8580 protected bodies and entry bodies.
8581
8582 2011-08-03 Yannick Moy <moy@adacore.com>
8583
8584 * einfo.adb, einfo.ads (Is_Postcondition_Proc): new flag for procedure
8585 entities with get/set subprograms, which is set on procedure entities
8586 generated by the compiler for a postcondition.
8587 * sem_ch6.adb (Process_PPCs): set new flag on postcondition procedures
8588 * alfa.adb, alfa.ads (Get_Entity_For_Decl): new function returning the
8589 entity for a declaration
8590 (Get_Unique_Entity_For_Decl): new function returning an entity which
8591 represents a declaration, so that matching spec and body have the same
8592 entity.
8593
8594 2011-08-03 Robert Dewar <dewar@adacore.com>
8595
8596 * a-except-2005.adb, a-cfhama.adb, a-cfhase.adb, a-cfhase.ads,
8597 a-cforma.adb, a-cforse.ads, a-cforse.adb: Minor reformatting
8598
8599 2011-08-03 Yannick Moy <moy@adacore.com>
8600
8601 * lib-xref-alfa.adb (Detect_And_Add_ALFA_Scope): make the subprogram
8602 library-level because retriction No_Implicit_Dynamic_Code in the
8603 front-end prevents its definition as a local subprogram
8604 (Traverse_Compilation_Unit): extract new procedure from Add_ALFA_File,
8605 for reuse in other contexts
8606 (Traverse_Declarations_Or_Statements,
8607 Traverse_Handled_Statement_Sequence, Traverse_Package_Body,
8608 Traverse_Package_Declaration, Traverse_Subprogram_Body): make all these
8609 procedures take a callback parameter to be called on all declarations
8610 * lib-xref.ads
8611 (Traverse_All_Compilation_Units): new generic function to traverse a
8612 compilation unit and call a callback parameter on all declarations
8613
8614 2011-08-03 Javier Miranda <miranda@adacore.com>
8615
8616 * sem_prag.adb (Process_Interface_Name): Allow duplicated export names
8617 in Java since they are always enclosed in a namespace that
8618 differentiates them, and overloaded entities are supported by the VM.
8619
8620 2011-08-03 Ed Schonberg <schonberg@adacore.com>
8621
8622 * checks.adb (Determine_Range): If a computed bound of an operation is
8623 outside the range of the base type of the expression, and overflow
8624 checks are enabled, the result is unknown and cannot be used for any
8625 subsequent constant folding.
8626 * sem_eval.adb (Compile_Time_Compare): if the bounds of one operand are
8627 unknown, so is the result of the comparison.
8628
8629 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
8630
8631 * a-except-2005.adb (Raise_From_Controlled_Operation): Add new formal
8632 From_Abort. When finalization was triggered by an abort, propagate
8633 Standard'Abort_Signal rather than Program_Error.
8634 * a-except-2005.ads (Raise_From_Controlled_Operation): Add new formal
8635 From_Abort.
8636 * a-except.adb (Raise_From_Controlled_Operation): Add new formal
8637 From_Abort. When finalization was triggered by an abort, propagate
8638 Standard'Abort_Signal rather than Program_Error.
8639 * a-except.ads:(Raise_From_Controlled_Operation): Add new formal
8640 From_Abort.
8641 * exp_ch7.adb:(Build_Adjust_Or_Finalize_Statements): New local variable
8642 Abort_Id. Update the calls to Build_Object_Declarations and
8643 Build_Raise_Statement to include Abort_Id.
8644 (Build_Adjust_Statements): New local variable Abort_Id. Update the
8645 calls to Build_Object_Declarations and Build_Raise_Statement to include
8646 Abort_Id.
8647 (Build_Finalize_Statements): New local variable Abort_Id. Update the
8648 calls to Build_Object_Declarations and Build_Raise_Statement to include
8649 Abort_Id.
8650 (Build_Components): Create an entity for Abort_Id when exceptions are
8651 allowed on the target.
8652 (Build_Finalizer): New local variable Abort_Id.
8653 (Build_Initialize_Statements): New local variable Abort_Id. Update the
8654 calls to Build_Object_Declarations and Build_Raise_Statement to include
8655 Abort_Id.
8656 (Build_Object_Declarations): Add new formal Abort_Id. Create the
8657 declaration of flag Abort_Id to preserve the original abort status
8658 before finalization code is executed.
8659 (Build_Raise_Statement): Add new formal Abort_Id. Pass Abort_Id to
8660 runtime routine Raise_From_Controlled_Operation.
8661 (Create_Finalizer): Update the call to Build_Raise_Statement to include
8662 Abort_Id. Update the call to Build_Object_Declarations to include
8663 Abort_Id. Update the layout of the finalizer body.
8664 (Make_Handler_For_Ctrl_Operation): Add an actual for From_Abort.
8665 (Process_Transient_Objects): New local variable Abort_Id. Remove the
8666 clunky code to create all flags and objects related to
8667 exception propagation and replace it with a call to
8668 Build_Object_Declarations. Update the call to Build_Raise_Statement to
8669 include Abort_Id.
8670 * exp_ch7.ads (Build_Object_Declarations): Moved from body to spec.
8671 Add new formal Abort_Id and associated comment on its use.
8672 (Build_Raise_Statement): Add new formal Abort_Id and associated comment
8673 on its use.
8674 * exp_intr.adb (Expand_Unc_Deallocation): New local variable Abort_Id.
8675 Remove the clunky code to create all flags and objects related to
8676 exception propagation and replace it with a call to
8677 Build_Object_Declarations. Update the call to Build_Raise_Statement.
8678
8679 2011-08-03 Eric Botcazou <ebotcazou@adacore.com>
8680
8681 * s-tassta.adb: Fix minor typos.
8682
8683 2011-08-03 Robert Dewar <dewar@adacore.com>
8684
8685 * rtsfind.ads, makeutl.ads, prj.ads, prj.adb, make.adb,
8686 lib-writ.adb, makeutl.adb, s-soflin.ads, clean.adb: Minor reformatting.
8687
8688 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
8689
8690 * exp_ch7.adb (Create_Finalizer): Treat freeze nodes in similar fashion
8691 to packages. This ensures that the finalizer body will not end up
8692 inside the freeze node.
8693 (Process_Declarations): Add code to detect whether a freeze node has a
8694 nested finalization collection.
8695
8696 2011-08-03 Pascal Obry <obry@adacore.com>
8697
8698 * g-awk.adb, g-awk.ads: Make GNAT.AWK API compatible with Ada 2005.
8699 (Current_Session): Return a not null access to Session_Type.
8700 (Default_Session): Likewise.
8701
8702 2011-08-03 Robert Dewar <dewar@adacore.com>
8703
8704 * a-cfdlli.adb, bindgen.adb, exp_ch4.adb, exp_ch13.adb, sem_warn.adb,
8705 exp_ch3.adb, exp_ch3.ads: Minor reformatting.
8706
8707 2011-08-03 Pascal Obry <obry@adacore.com>
8708
8709 * g-awk.ads: Minor comment fix.
8710
8711 2011-08-03 Sergey Rybin <rybin@adacore.com>
8712
8713 * tree_io.ads (ASIS_Version_Number): Update because of the changes in
8714 the tree structure related to discriminant constraints.
8715 Original_Discriminant cannot be used any more for computing the
8716 defining name for the reference to a discriminant.
8717
8718 2011-08-03 Ed Schonberg <schonberg@adacore.com>
8719
8720 * sem_disp.adb (Is_Tag_Indeterminate): If the return type of the
8721 function is not visibly tagged, this is not a dispatching call and
8722 therfore is not Tag_Indeterminate, even if the function is marked as
8723 dispatching on result.
8724
8725 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
8726
8727 * exp_ch13.adb: Add with and use clauses for Restrict and Rident.
8728 (Expand_N_Free_Statement): Add a guard to protect against run-times
8729 which do not support controlled types.
8730 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Add a guard to protect
8731 against run-times which do not support controlled types.
8732 * exp_ch4.adb (Complete_Controlled_Allocation): Add a guard to protect
8733 against run-times which do not support controlled types.
8734 * exp_ch7.adb (Build_Finalization_Collection): Add a guard to protect
8735 against run-times which do not support controlled types.
8736 * exp_util.adb (Needs_Finalization): Code reformatting. Add a guard to
8737 protect against run-times which do not support controlled types.
8738
8739 2011-08-03 Eric Botcazou <ebotcazou@adacore.com>
8740
8741 * exp_intr.adb: Put back with and use clauses for Exp_Ch11.
8742 (Expand_Unc_Deallocation): Expand the AT_END handler at the very end.
8743
8744 2011-08-03 Ed Schonberg <schonberg@adacore.com>
8745
8746 * exp_ch5.adb (Expand_Iterator_Loop): indicate that the cursor is
8747 modified in the source, to prevent spurious warnings when compiling
8748 with -gnatg.
8749
8750 2011-08-03 Thomas Quinot <quinot@adacore.com>
8751
8752 * a-except-2005.adb: Minor reformatting.
8753
8754 2011-08-03 Ed Schonberg <schonberg@adacore.com>
8755
8756 * sem_warn.adb (Check_One_Unit): if the only mention of a withed unit
8757 is a renaming declaration in the private part of a package, do not emit
8758 a warning that the with_clause could be moved because the renaming may
8759 be used in the body or in a child unit.
8760
8761 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
8762
8763 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
8764 Propagate the Comes_From_Source attribute from the original return
8765 object to the renaming.
8766
8767 2011-08-03 Jose Ruiz <ruiz@adacore.com>
8768
8769 * exp_ch7.adb (Build_Raise_Statement): Do not call
8770 Raise_From_Controlled_Operation when this routine is not present in
8771 the run-time library.
8772 (Cleanup_Protected_Object, Cleanup_Task): For restricted run-time
8773 libraries (Ravenscar), tasks are non-terminating, and protected objects
8774 and tasks can only appear at library level, so we do not want
8775 finalization of protected objects nor tasks.
8776 * exp_intr.adb: Minor clarification in comment.
8777 bindgen.adb (Gen_Adainit_Ada, Gen_Main_C, Gen_Output_File_Ada,
8778 Gen_Output_File_C): Remove references to finalization of library-level
8779 objects when using restricted run-time libraries.
8780
8781 2011-08-03 Ed Schonberg <schonberg@adacore.com>
8782
8783 * sem_ch3.adb (Build_Discriminant_Constraints): Set
8784 Original_Discriminant only if the parent type is a generic formal.
8785
8786 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
8787
8788 * exp_ch13.adb: Add with and use clause for Targparm;
8789 (Expand_N_Free_Statement): Prevent the generation of a custom
8790 Deallocate on .NET/JVM targets since this requires pools and address
8791 arithmetic.
8792 * exp_ch4.adb (Expand_Allocator_Expression): When compiling for
8793 .NET/JVM targets, attach the newly allocated object to the access
8794 type's finalization collection. Do not generate a call to
8795 Set_Finalize_Address_Ptr on .NET/JVM because this routine does not
8796 exist in the runtime.
8797 (Expand_N_Allocator): When compiling for .NET/JVM targets, do not
8798 create a custom Allocate for object that do not require initialization.
8799 Attach a newly allocated object to the access type's finalization
8800 collection on .NET/JVM.
8801 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add special processing for
8802 assignment of controlled types on .NET/JVM. The two hidden pointers
8803 Prev and Next and stored and later restored after the assignment takes
8804 place.
8805 * exp_ch6.adb (Expand_Call): Add local constant Curr_S. Add specialized
8806 kludge for .NET/JVM to recognize a particular piece of code coming from
8807 Heap_Management and change the call to Finalize into Deep_Finalize.
8808 * exp_ch7.adb (Build_Finalization_Collection): Allow the creation of
8809 finalization collections on .NET/JVM only for types derived from
8810 Controlled. Separate the association of storage pools with a collection
8811 and only allow it on non-.NET/JVM targets.
8812 (Make_Attach_Call): New routine.
8813 (Make_Detach_Call): New routine.
8814 (Process_Object_Declarations): Suppress the generation of
8815 build-in-place return object clean up code on .NET/JVM since it uses
8816 pools.
8817 * exp_ch7.ads (Make_Attach_Call): New routine.
8818 (Make_Detach_Call): New routine.
8819 * exp_intr.adb Add with and use clause for Targparm.
8820 (Expand_Unc_Deallocation): Detach a controlled object from a collection
8821 on .NET/JVM targets.
8822 * rtsfind.ads: Add entries RE_Attach, RE_Detach and
8823 RE_Root_Controlled_Ptr to tables RE_Id and RE_Unit_Table.
8824 * snames.ads-tmpl: Add name Name_Prev. Move Name_Prev to the special
8825 names used in finalization.
8826
8827 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
8828
8829 * a-fihema.adb: Add with and use clauses for System.Soft_Links.
8830 (Attach, Detach): Lock the current task when chaining an object onto a
8831 collection.
8832
8833 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com>
8834
8835 * a-except.adb, a-except-2005.adb (Raise_From_Controlled_Operation):
8836 Rewritten to create the message strings when the exception is not
8837 raised by an abort during finalization.
8838 * a-except.ads, a-except-2005.ads: Add pragma Export for procedure
8839 Raise_From_Controlled_Operation and update its associated comment.
8840 * a-fihema.ads, a-fihema.adb: New GNAT unit.
8841 Ada.Finalization.Heap_Management provides key functionality
8842 associated with controlled objects on the heap, their creation,
8843 finalization and reclamation. Type Finalization_Collection is
8844 effectively a wrapper which sits ontop of a storage pool and performs
8845 all necessary bookkeeping for all the objects it contains. Each
8846 access-to-controlled or access-to-class-wide type receives a collection
8847 as part of its expansion. The compiler generates buffer code and
8848 invokes Allocate / Deallocate to create and destroy allocated
8849 controlled objects.
8850 * a-finali.adb ("="): Removed.
8851 * a-finali.ads ("="): Removed. Controlled types no longer carry hidden
8852 fields Prev and Next.
8853 * ali.adb (Scan_ALI): Add parsing code to process PF / Has_Finalizer.
8854 A library unit with at least one controlled object on the library level
8855 has a special finalizer which is invoked by the binder. To signal this,
8856 ali files carry field PF.
8857 * ali.ads: New field in type Unit_Record called Has_Finalizer. Add
8858 associated comment on field usage.
8859 * a-tags.adb (Get_RC_Offset): Removed.
8860 (Needs_Finalization): New routine.
8861 * a-tags.ads: Update the structure of the GNAT dispatch tables.
8862 Dispatch tables now carry field Needs_Finalization which provides
8863 runtime indication whether a type is controlled or has controlled
8864 components or both. Remove field RC_Offset.
8865 (Get_RC_Offset): Removed along with its associated pragma Export.
8866 Since tagged types with controlled components no longer carry hidden
8867 field _controller, the special mechanism to retrieve its location is no
8868 longer needed.
8869 (Needs_Finalization): New routine.
8870 * atree.ads, atree.adb (Elist24): New routine.
8871 (Set_Elist24): New routine.
8872 * atree.h: Add a define clause for Elist24.
8873 * bindgen.adb New library-level variable Lib_Final_Built.
8874 (Gen_Adafinal_Ada): Reimplemented. Depending on the restrictions or the
8875 presence of a VM target, the routine generates calls to the proper
8876 library finalization routine.
8877 (Gen_Adainit_Ada): Import Finalize_Library_Objects only on non-VM
8878 targets. Set the correct library finalization routine depending on
8879 whether the library has controlled objects or this is a VM compilation.
8880 (Gen_Finalize_Library_Ada): New routine. This procedure generates calls
8881 to library-level finalizers of compiled units in reverse order of
8882 elaboration. It also produces exception management code and reraises a
8883 potential exception after all units have been finalized.
8884 (Gen_Finalize_Library_C): New routine. This procedure generates calls to
8885 library-level finalizers of compiled units in reverse order of
8886 elaboration.
8887 (Gen_Finalize_Library_Defs_C): New routine. This procedure generates the
8888 definitions of all library-level finalizers available to the compilation
8889 (Gen_Main_Ada): Directly call Adafinal which now contails all target
8890 dependent code.
8891 (Gen_Main_C): Add new local constant Needs_Library_Finalization. Call
8892 System.Standard_Library.Adafinal directly. If the library needs
8893 finalization actions, create the sequence of finalization calls.
8894 (Gen_Output_File_Ada): Alphabetize local variables and constants.
8895 Generate a with clause for System.Soft_Links when compiling for a VM.
8896 Remove the code which imports System.Standard_Library.Adafinal as
8897 Do_Finalize. Generate the library finalization routine.
8898 (Gen_Output_File_C): Add new local constant Needs_Library_Finalization.
8899 If the library needs finalization actions, create all the definitions
8900 of library- level finalizers.
8901 (Has_Finalizer): New routine. Determines whether at least one compiled
8902 unit has a library-level finalizer.
8903 Add type Qualification_Mode.
8904 (Set_Unit_Name): Add a formal which controls the replacement of a dot.
8905 * einfo.adb: New usage of field 15 as Return_Flag.
8906 Remove Finalization_Chain_Entity from the usages of field 19.
8907 Remove Associated_Final_Chain from the usages of field 23.
8908 New usage of field 23 as Associated_Collection.
8909 New usage of field 24 as Finalizer.
8910 New usage of flag 252 as Is_Processed_Transient.
8911 (Associated_Final_Chain): Removed.
8912 (Associated_Collection): New routine.
8913 (Finalization_Chain_Entity): Removed.
8914 (Finalizer): New routine.
8915 (Is_Finalizer): New routine.
8916 (Is_Processed_Transient): New routine.
8917 (Return_Flag): New routine.
8918 (Set_Associated_Final_Chain): Removed.
8919 (Set_Associated_Collection): New routine.
8920 (Set_Finalization_Chain_Entity): Removed.
8921 (Set_Finalizer): New routine.
8922 (Set_Is_Processed_Transient): New routine.
8923 (Set_Return_Flag): New routine.
8924 (Write_Entity_Flags): Include Is_Processed_Transient to the list of
8925 displayed flags.
8926 (Write_Field8_Name): Alphabetize the output.
8927 (Write_Field11_Name): Alphabetize the output.
8928 (Write_Field12_Name): Alphabetize the output.
8929 (Write_Field13_Name): Alphabetize the output.
8930 (Write_Field14_Name): Alphabetize the output.
8931 (Write_Field15_Name): Alphabetize the output.
8932 (Write_Field16_Name): Alphabetize the output.
8933 (Write_Field17_Name): Alphabetize the output.
8934 (Write_Field18_Name): Alphabetize the output.
8935 (Write_Field19_Name): Alphabetize the output. Remove the output of
8936 Finalization_Chain_Entity.
8937 (Write_Field20_Name): Alphabetize the output.
8938 (Write_Field21_Name): Alphabetize the output.
8939 (Write_Field22_Name): Alphabetize the output.
8940 (Write_Field23_Name): Alphabetize the output. Remove the output of
8941 Associated_Final_Chain. Add output for Associated_Collection.
8942 (Write_Field24_Name): Alphabetize the output.
8943 (Write_Field25_Name): Add output for Finalizer.
8944 (Write_Field26_Name): Alphabetize the output.
8945 (Write_Field27_Name): Alphabetize the output.
8946 (Write_Field28_Name): Alphabetize the output.
8947 * einfo.ads: Add new field description for Associated_Collection and
8948 its uses in nodes.
8949 Remove Associated_Final_Chain and its uses in nodes.
8950 Remove Finalization_Chain_Entity and its uses in nodes.
8951 Add new field description for Finalizer and its uses in nodes.
8952 Add new synthesized attribute Is_Finalizer.
8953 Add new flag description for Is_Processed_Transient and its uses in
8954 nodes.
8955 Add new field description for Return_Flag and its uses in nodes.
8956 (Associated_Final_Chain): Removed along with its pragma Inline.
8957 (Associated_Collection): New routine and pragma Inline.
8958 (Finalization_Chain_Entity): Removed along with its pragma Inline.
8959 (Finalizer): New routine and pragma Inline.
8960 (Is_Finalizer): New routine and pragma Inline.
8961 (Is_Processed_Transient): New routine and pragma Inline.
8962 (Return_Flag): New routine and pragma Inline.
8963 (Set_Associated_Final_Chain): Removed along with its pragma Inline.
8964 (Set_Associated_Collection): New routine and pragma Inline.
8965 (Set_Finalization_Chain_Entity): Removed along with its pragma Inline.
8966 (Set_Finalizer): New routine and pragma Inline.
8967 (Set_Is_Processed_Transient): New routine and pragma Inline.
8968 (Set_Return_Flag): New routine and pragma Inline.
8969 * exp_aggr.adb: Alphabetize subprograms.
8970 (Build_Array_Aggr_Code): Remove formal Flist and its associated comment.
8971 (Build_Record_Aggr_Code): Remove formals Flist and Obj along with their
8972 associated comments. Remove local variables External_Final_List and
8973 Attach.
8974 Rename Ctrl_Stuff_Done to Finalization_Done. Rename local variable A to
8975 Ancestor. Remove the retrieval of finalization lists. Update the call to
8976 Make_Adjust_Call.
8977 (Convert_Aggr_In_Allocator): Remove the retrieval of finalization
8978 lists. Update the call to Late_Expansion.
8979 (Convert_Aggr_In_Assignment): Update the call to Late_Expansion.
8980 (Convert_Aggr_In_Object_Decl): Update the call to Late_Expansion.
8981 (Gen_Assign): Remove the retrieval of the finalization list used to
8982 build the assignment. Update the calls to Make_Init_Call and
8983 Make_Adjust_Call.
8984 (Gen_Ctrl_Actions_For_Aggr): Renamed to Generate_Finalization_Actions.
8985 Remove the mechanism to determine attachment levels and finalization
8986 list retrieval. Remove the processing for coextensions.
8987 (Init_Controller): Removed. Controllers no longer exist.
8988 (Late_Expansion): Remove formals Flist and Obj along with their
8989 associated comments. Update the calls to Build_Record_Aggr_Code and
8990 Build_Array_Aggr_Code.
8991 * exp_ch13.adb (Expand_N_Free_Statement): New routine.
8992 (Expand_N_Freeze_Entity): Add special processing for finalizers which
8993 appear in entry bodies, protected subprograms and task bodies.
8994 * exp_ch13.ads (Expand_N_Free_Statement): New routine.
8995 * exp_ch3.adb (Add_Final_Chain): Removed.
8996 (Build_Array_Init_Proc): Alphabetize local variables.
8997 (Build_Assignment): Alphabetize local variables. Update the call to
8998 Maked_Adjust_Call.
8999 (Build_Class_Wide_Master): Rename local variables to better reflect
9000 their role.
9001 (Build_Discriminant_Assignments): Code reformatting.
9002 (Build_Init_Call_Thru): Code reformatting.
9003 (Build_Init_Procedure): Code reformatting. Generate a special version
9004 of Deep_Finalize which is capable of finalizing all initialized
9005 components and ignore the rest.
9006 (Build_Init_Statements): Rename local variables to better reflect their
9007 role.
9008 Reimplement the mechanism to include the creation and update of an index
9009 variable called a "counter". It is used as a bookmark for tracing
9010 initialized and non-initialized components.
9011 (Build_Initialization_Call): Remove local variable Controller_Typ.
9012 Alphabetize all local variables. Remove the initialization of the
9013 record controller and update the call to Make_Init_Call.
9014 (Build_Record_Init_Proc): Rename formal Pe to Rec_Ent.
9015 New local variable Counter.
9016 (Constrain_Array): Alphabetize.
9017 (Expand_Freeze_Array_Type): Create a collection instead of a
9018 finalization list.
9019 (Expand_Freeze_Class_Wide_Type): New routine. Creates TSS primitive
9020 Finalize_Address which is used in conjunction with allocated controlled
9021 objects.
9022 (Expand_N_Object_Declaration): Remove the creation of a finalization
9023 list for anonymous access types. Update the calls to Make_Init_Call and
9024 Make_Adjust_Call.
9025 (Expand_Freeze_Record_Type): Remove local variable Flist. Remove the
9026 retrieval of finalization lists. Remove the expansion of the record
9027 controller. Create TSS primitive Finalize_Address used in conjunction
9028 with controlled objects on the heap. Create finalization collections
9029 for access-to-controlled record components.
9030 (Expand_Record_Controller): Removed.
9031 (Freeze_Type): Remove the freezing of record controllers. Freezing of
9032 class-wide types now requires additional processing. Create
9033 finalization collections for access-to-controlled types.
9034 (Increment_Counter): New routine.
9035 (Make_Counter): New routine.
9036 (Make_Eq_If): Remove the mention of Name_uController.
9037 (Make_Predefined_Primitive_Specs): There is no longer need to skip
9038 types coming from System.Finalization_Root.
9039 (Predef_Deep_Spec): Reimplemented to reflect the new parameter profiles.
9040 (Predefined_Primitive_Bodies): There is no longer need to skip types
9041 coming from System.Finalization_Root.
9042 (Stream_Operation_OK): Do not generate stream routines for
9043 type Ada.Finalization.Heap_Management.Finalization_Collection.
9044 * exp_ch3.ads: Alphabetize subprograms.
9045 * exp_ch4.adb: Remove with and use clause for Sem_Ch8.
9046 Add with and use clause for Lib.
9047 (Complete_Coextension_Finalization): Removed.
9048 (Complete_Controlled_Allocation): New routine. Create a finalization
9049 collection for anonymous access-to-controlled types. Create a custom
9050 Allocate which interfaces with the back end and the machinery in
9051 Heap_Management.
9052 (Expand_Allocator_Expression): Add necessary calls to
9053 Complete_Controlled_Allocation. Remove the retrieval of finalization
9054 lists. Update the calls to Make_Adjust_Call. Generate a call to
9055 Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate
9056 the associated collection.
9057 (Expand_N_Allocator): Remove the processing for dynamic coextensions.
9058 Code clean up. Remove the retrieval of finalization lists and
9059 attachment levels.
9060 Update the call to Make_Init_Call. Generate a call to
9061 Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate
9062 the associated collection.
9063 (Get_Allocator_Final_List): Removed. Finalization lists are not
9064 available.
9065 (Suitable_Element): Remove the mention of Name_uController.
9066 * exp_ch5.adb: Remove with and use clauses for Ttypes and Uintp.
9067 (Make_Tag_Ctrl_Assignment): Rewritten to simply do a finalization of
9068 the left hand side, carry out the assignment and adjust the left hand
9069 side.
9070 * exp_ch6.adb (Add_Final_List_Actual_To_Build_In_Place_Call): Removed.
9071 (Add_Collection_Actual_To_Build_In_Place_Call): New routine.
9072 (BIP_Formal_Suffix): Rename BIP_Final_List and BIPfinallist to
9073 BIP_Collection and BIPcollection.
9074 (Build_Heap_Allocator): New routine used to allocate the return object
9075 of a build-in-place function onto a collection.
9076 (Expand_Ctrl_Function_Call): Moved from Exp_Ch7.
9077 (Expand_Call): Do not replace direct calls to Deep routines with their
9078 aliases.
9079 (Expand_N_Extended_Return_Statement): Give all variables shorter names
9080 and update their occurrences. Add a special return flag to monitor the
9081 [ab]normal execution of the function. The flag is set right before the
9082 return statement.
9083 Rewrite the mechanism used to allocate a build-in-place return object
9084 on the heap or on a storage pool.
9085 (Is_Direct_Deep_Call): New routine.
9086 (Make_Build_In_Place_Call_In_Allocator): Add a collection to a
9087 build-in-place function call instead of a final list. Build a call to
9088 Set_Finalize_Address_Ptr to decorate the associated collection.
9089 (Make_Build_In_Place_Call_In_Anonymous_Context): Create a temporary in
9090 order to name the build-in-place function call's result for later
9091 finalization. Add a collection to a build-in-place function call
9092 instead of a final list.
9093 (Make_Build_In_Place_Call_In_Assignment): Add a collection to a
9094 build-in-place function call instead of a final list. Remove the code
9095 which moves one final list and transforms it into the actual in a
9096 nested build-in-place call.
9097 (Make_Build_In_Place_Call_In_Object_Declaration): Add a collection to a
9098 build-in-place function call instead of a final list.
9099 (Move_Final_List): Removed.
9100 (Needs_BIP_Collection): New routine.
9101 (Needs_BIP_Final_List): Removed.
9102 * exp_ch6.ads: Replace BIP_Final_List with BIP_Collection in
9103 enumeration type BIP_Formal_Kind.
9104 Update the related comment.
9105 (Needs_BIP_Collection): New routine.
9106 (Needs_BIP_Final_List): Removed.
9107 * exp_ch7.adb: Add with and use clauses for Elists, Exp_Ch6, Stringt
9108 and Ttypes. Remove with and use clauses for Sem_Type. Alphabetize the
9109 majority of subprograms in this unit. Add Name_Finalize_Address to
9110 array Name_Of and TSS_Finalize_Address to array Deep_Name_Of.
9111 (Build_Adjust_Or_Finalize_Statements): Create the adjust or finalization
9112 statements for an array type.
9113 (Build_Adjust_Statements): Create the adjust statements for a record
9114 type.
9115 (Build_Cleanup_Statements): New routine. A procedure which given any
9116 construct containing asynchronous calls, references to _master, or is a
9117 task body, a task allocation or a protected body produces the necessary
9118 runtime calls to clean up these constructs.
9119 (Build_Exception_Handler): New routine.
9120 (Build_Final_List): Removed.
9121 (Build_Finalization_Collection): New routine. A core procedure which
9122 creates a collection to service heap allocated controlled objects
9123 associated with an access-to-controlled type.
9124 (Build_Finalize_Statements): Create the finalization statements for a
9125 record types.
9126 (Build_Finalizer): New routine. A core procedure which given any
9127 construct with declarations and/or statements detects all objects which
9128 need any type of clean up (controlled objects, protected objects) and
9129 generates all necessary code to clean up the said objects in the proper
9130 order.
9131 (Build_Finalizer_Call): New routine.
9132 (Build_Initialize_Statements): Create the initialization statements for
9133 an array type. The generated routine contains code to finalize partially
9134 initialized arrays.
9135 (Build_Object_Declarations): New routine.
9136 (Build_Raise_Statement): New routine.
9137 (Clean_Simple_Protected_Objects): Removed.
9138 (Controller_Component): Removed.
9139 (Enclosing_Function): New routine.
9140 (Expand_Cleanup_Actions): Create a finalizer for a construct which has
9141 either declarations or statements or both.
9142 (Expand_N_Package_Body): Create a finalizer for a non-generic package.
9143 (Expand_N_Package_Declaration): Create a finalizer for a non-generic
9144 package.
9145 (Find_Final_List): Removed.
9146 (Global_Flist_Ref): Removed.
9147 (In_Finalization_Root): Removed.
9148 (Insert_Actions_In_Scope_Around): Determine the range of the transient
9149 scope in terms of tree nodes. Process all transient variables within
9150 that range.
9151 (Make_Adjust_Call): Rewritten. There is no longer an attach call
9152 generated after the adjust.
9153 (Make_Attach_Call): Removed.
9154 (Make_Call): New routine.
9155 (Make_Clean): Removed.
9156 (Make_Deep_Array_Body): Rewritten to simply invoke the appropriate
9157 build routines.
9158 (Make_Deep_Proc): Rewritten to generate the new profile signature used
9159 in Deep routines.
9160 (Make_Deep_Record_Body): Rewritten to simply invoke the appropriate
9161 build routines.
9162 (Make_Final_Call): Modified to simply create a call to either
9163 Deep_Finalize or Finalize.
9164 (Make_Finalize_Address_Body): New routine.
9165 (Make_Finalize_Address_Stmts): New routine. A function which produces
9166 TSS primitive Finalize_Address used in conjunction with heap allocated
9167 controlled objects.
9168 (Make_Handler_For_Ctrl_Operation): Add specialized code for .NET/JVM.
9169 (Make_Init_Call): Rewritten. There is no longer an attach call
9170 generated after initialization.
9171 (Make_Local_Deep_Finalize): New routine.
9172 (Make_Set_Finalize_Address_Ptr_Call): New routine.
9173 (Make_Transient_Block): Remove the finalization list retrieval and
9174 manipulation.
9175 (Needs_Finalization): Moved to Exp_Util.
9176 (Parent_Field_Type): New routine.
9177 (Preprocess_Components): New routine.
9178 (Process_Transient_Objects): New routine.
9179 (Wrap_HSS_In_Block): New routine.
9180 (Wrap_Transient_Declaration): Remove finalization list management and
9181 controller insertion.
9182 (Wrap_Transient_Expression): Code reformatting.
9183 (Wrap_Transient_Statement): Code reformatting.
9184 * exp_ch7.ads (Build_Final_List): Removed.
9185 (Build_Finalization_Collection): New routine.
9186 (Build_Raise_Statement): New routine.
9187 (Controller_Component): Removed.
9188 (Expand_Ctrl_Function_Call): Moved to Exp_Ch6.
9189 (Find_Final_List): Removed.
9190 (In_Finalization_Root): Removed.
9191 (Is_Simple_Protected_Type): Update related comment.
9192 (Make_Adjust_Call): New parameter profile and associated comments.
9193 (Make_Attach_Call): Removed.
9194 (Make_Final_Call): New parameter profile and associated comments.
9195 (Make_Finalize_Address_Body): New routine.
9196 (Make_Init_Call): New parameter profile and associated comments.
9197 (Make_Local_Deep_Finalize): New routine.
9198 (Make_Set_Finalize_Address_Ptr_Call): New routine.
9199 (Needs_Finalization): Moved to Exp_Util.
9200 * exp_ch9.adb (Add_Object_Pointer): Code reformatting.
9201 (Expand_N_Protected_Body): Remove the handling of finalization lists.
9202 (Find_Protection_Type): Moved to Exp_Util.
9203 * exp_disp.adb: Remove with and use clauses for Exp_Ch7.
9204 (Make_DT): Update sequence of dispatch table initialization. Remove the
9205 initialization of field RC_Offset. Add initialization of field Needs_
9206 Finalization.
9207 * exp_intr.adb (Expand_Unc_Deallocation): Code reformatting.
9208 Reimplement how an object is first finalized, then deallocated.
9209 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function):
9210 Code reformatting.
9211 * exp_tss.ads: Add special suffix for TSS primitive Finalize_Address.
9212 Register TSS_Finalize_Address with type TSS_Names.
9213 * exp_util.adb (Build_Allocate_Deallocate_Proc): New routine. This core
9214 procedure provides the interface between an allocation / deallocation
9215 and the support machinery in Ada.Finalization.Heap_Management.
9216 (Find_Init_Call): Code reformatting.
9217 (Find_Init_Call_In_List): Code reformatting.
9218 (Find_Protection_Type): Moved from Exp_Ch9.
9219 (Find_Prim_Op): Reimplement to add preference of recovered primitive.
9220 (Has_Controlled_Coextensions): Removed.
9221 (Has_Controlled_Objects): New routine.
9222 (In_Library_Level_Package_Body): New routine.
9223 (Insert_Action_After): New routine.
9224 (Is_Finalizable_Transient): New routine. This predicate determines
9225 whether an object declaration is one of the many variants of controlled
9226 transients.
9227 (Is_Null_Access_BIP_Func_Call): New routine.
9228 (Is_Non_BIP_Func_Call): New routine.
9229 (Is_Related_To_Func_Return): New routine.
9230 (Needs_Finalization): Moved from Exp_Ch7.
9231 * exp_util.ads (Build_Allocate_Deallocate_Proc): New routine.
9232 (Find_Protection_Type): Moved from Exp_Ch9.
9233 (Has_Controlled_Coextensions): Removed.
9234 (Has_Controlled_Objects): New routine.
9235 (In_Library_Level_Package_Body): New routine.
9236 (Insert_Action_After): New routine.
9237 (Is_Finalizable_Transient): New routine.
9238 (Is_Null_Access_BIP_Func_Call): New routine.
9239 (Is_Non_BIP_Func_Call): New routine.
9240 (Is_Related_To_Func_Return): New routine.
9241 (Needs_Finalization): Moved from Exp_ch7.
9242 * expander.adb (Expand): Add a case for N_Free_Statement.
9243 * freeze.adb (Freeze_All): Replace the generation of a finalization
9244 list with a collection for access-to-controlled types.
9245 (Freeze_Entity): Code reformatting.
9246 (Freeze_Record_Type): Remove the freezing of a record controller
9247 component.
9248 (Freeze_Subprogram): Code reformatting.
9249 * inline.adb (Cleanup_Scopes): Remove the reset of the scope
9250 finalization list.
9251 * lib-writ.adb (Write_Unit_Information): Output "PF" when a package
9252 has a library-level finalizer.
9253 * lib-writ.ads: Add "PF" to the sequence of unit attributes.
9254 * a-filico.ads, a-filico.adb, s-finimp.ads, s-finimp.adb: Removed.
9255 * Makefile.rtl: Remove a-filico and s-finimp from the list of object
9256 files. Add a-fihema to the list of object files.
9257 * par-ch4.adb:
9258 Alphabetize the associations in type Is_Parameterless_Attribute.
9259 * rtsfind.ads: Ada.Finalization_List.Controller and
9260 System.Finalization_Implementation are no longer a GNAT unit.
9261 Update the range of type Ada_Finalization_Child. Remove the following
9262 recoverable entities:
9263
9264 RE_Attach_To_Final_List
9265 RE_Deep_Tag_Attach
9266 RE_Finalize_List
9267 RE_Finalize_One
9268 RE_Finalizable_Ptr_Ptr
9269 RE_Global_Final_List
9270 RE_Limited_Record_Controller
9271 RE_List_Controller
9272 RE_Move_Final_List
9273 RE_Record_Controller
9274 RE_Simple_List_Controller
9275
9276 Add the following recoverable entities:
9277
9278 RE_Add_Offset_To_Address
9279 RE_Allocate
9280 RE_Base_Pool
9281 RE_Deallocate
9282 RE_Exception_Identity
9283 RE_Finalization_Collection
9284 RE_Finalization_Collection_Ptr
9285 RE_Needs_Finalization
9286 RE_Save_Library_Occurrence
9287 RE_Set_Finalize_Address_Ptr
9288 RE_Set_Storage_Pool_Ptr
9289 RE_Storage_Count
9290 * sem_aggr.adb (Resolve_Record_Aggregate): Remove mention of
9291 Name_uController.
9292 * sem_aux.adb (First_Discriminant): Remove mention of Name_uController.
9293 (First_Stored_Discriminant): Remove the mention of Name_uController.
9294 * sem_aux.ads: Comment reformatting.
9295 * sem_ch10.adb (Build_Chain): Signal the class-wide creation machinery
9296 to redecorate an already existing class-wide type.
9297 (Decorate_Tagged_Type): New parameter profile and associated comment.
9298 Create a "shadow class-wide type" for a shadow entity.
9299 * sem_ch11.adb (Analyze_Exception_Handlers): Remove the dubious setting
9300 of the final chain along with the associated comment.
9301 * sem_ch3.adb (Access_Type_Declaration): Add new local variable
9302 Full_Desig and set it to the full view of the designated type.
9303 Initialize the finalization collection to empty.
9304 (Build_Derived_Record_Type): Alphabetize local variables. Code
9305 reformatting.
9306 (Collect_Fixed_Components): Remove the mention of Name_uController.
9307 (Create_Constrained_Components): Remove the mention of Name_uController.
9308 (Make_Class_Wide_Type): Add specialized code to redecorate an existing
9309 class-wide type of a shadow entity.
9310 (Process_Full_View): Update the machinery which marks type
9311 Limited_Controlled's entity as limited.
9312 * sem_ch4.adb (Analyze_One_Call): Code reformatting.
9313 * sem_ch6.adb (Create_Extra_Formals): Do not generate a finalization
9314 list, instead make a collection build-in-place formal.
9315 * sem_ch8.adb (Analyze_Object_Renaming): Look at the available view of
9316 a designated type in order to establish a match between the renaming
9317 and the renamed entity.
9318 (Find_Selected_Component): Add guard to prevent spurious exceptions
9319 from being raised on .NET/JVM.
9320 * sem_disp.adb (Check_Dispatching_Operation): Include Finalize_Address
9321 to the list of primitive that need special processing. Update arrays
9322 C_Names and D_Names.
9323 (Replace_Types): Handle class-wide types.
9324 * sem_elab.adb (Check_A_Call): Since Deep_Initialize now has a
9325 different parameter profile, look at the first formal.
9326 * sem_prag.adb: Remove with and use clauses for Exp_Ch7. Add with and
9327 use clauses for Exp_Util.
9328 * sem_res.adb: Remove with and use clauses for Elists.
9329 (Propagate_Coextensions): Removed.
9330 (Resolve_Allocator): Do not propagate the list of coextensions from one
9331 allocator to another.
9332 * sem_util.adb (Build_Actual_Subtype_Of_Component): Rename variable
9333 Deaccessed_T to Desig_Typ.
9334 (Enter_Name): Remove the mention of Name_uController.
9335 (Gather_Components): Remove the mention of Name_uController.
9336 (Incomplete_Or_Private_View): New routine.
9337 (Is_Coextension_Root): Removed.
9338 (Is_Fully_Initialized_Type): Remove the mention of Name_uController.
9339 * sem_util.ads (Incomplete_Or_Private_View): New routine.
9340 (Is_Coextension_Root): Removed.
9341 * s-finroo.ads: Remove with clause for Ada.Unchecked_Conversion.
9342 Controlled types are now derived from a null tagged record. Remove
9343 types Finalizable_Ptr, Finalizable and Empty_Root_Controlled.
9344 * sinfo.adb (Coextensions): Removed.
9345 (Set_Coextensions): Removed.
9346 * sinfo.ads: Remove Coextensions from the explanation of node fields
9347 and its uses in nodes.
9348 Update the field usage of N_Allocator.
9349 (Coextensions): Removed along with its pragma Inline.
9350 (Set_Coextensions): Removed along with its pragma Inline.
9351 * snames.ads-tmpl: Remove names
9352
9353 Name_uClean
9354 Name_uController
9355 Name_uFinal_List
9356 Name_uLocal_Final_List
9357 Name_Finalization_Root
9358 Name_Next
9359 Name_Prev
9360
9361 Add names
9362
9363 Name_uFinalizer
9364 Name_Finalize_Address
9365 * s-pooglo.adb (Allocate): Add overriding indicator.
9366 (Deallocate): Add overriding indicator.
9367 (Storage_Size): Add overriding indicator.
9368 * s-soflin.adb (Adafinal_NT): Invoke Finalize_Library_Objects rather
9369 than Finalize_Global_List.
9370 (Null_Finalize_Global_List): Removed.
9371 (Save_Library_Occurrence): New routine.
9372 * s-soflin.ads: Remove variable Finalize_Global_List along with its
9373 initialization. Add variable Finalize_Library_Objects along with its
9374 pragma Export. Add variables Library_Exception and
9375 Library_Exception_Set along with their pragma Export.
9376 (Null_Finalize_Global_List): Removed.
9377 (Save_Library_Occurrence): New routine.
9378 * s-tassta.adb (Finalize_Global_Tasks): Call Finalize_Library_Objects
9379 rather than Finalize_Global_List.
9380 * tbuild.adb (Unchecked_Convert_To): Capture and set the parent field
9381 of the constructed node.
9382
9383 2011-08-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9384
9385 * link.c: Include "auto-host.h" before system headers.
9386
9387 2011-08-03 Vincent Celier <celier@adacore.com>
9388
9389 * make.adb (Gnatmake): Add to table Library_Projs only library projects
9390 that are not extended. Do not check if a library project that is
9391 extended should be regenerated. Do not add to table Library_Paths the
9392 libraries that are in extended projects. Link only with libraries that
9393 are in libray projects that are not extended.
9394 * prj-nmsc.adb (Check_Library_Attributes): Do not reset flag Library
9395 for a library project that is extended.
9396
9397 2011-08-03 Gary Dismukes <dismukes@adacore.com>
9398
9399 * sem_ch6.adb (Find_Corresponding_Spec): When in an instance, skip
9400 conforming subprogram renamings that appear to be completions if they
9401 are not fully conformant.
9402 Such renamings are homographs but not completions.
9403 * sem_type.adb (Disambiguate): Handle disambiguation of overloaded
9404 names in a subprogram renaming that appears in an instance.
9405
9406 2011-08-03 Ed Schonberg <schonberg@adacore.com>
9407
9408 * exp_util.adb (Expand_Subtype_From_Expr): if the type is limited but
9409 not immutably limited, build actual subtype from expression to provide
9410 proper bounds to caller.
9411
9412 2011-08-03 Gary Dismukes <dismukes@adacore.com>
9413
9414 * sem_ch8.adb: Minor comment correction.
9415
9416 2011-08-03 Thomas Quinot <quinot@adacore.com>
9417
9418 * exp_strm.adb (Build_Array_Input_Function): In Ada 2005 mode, when
9419 returning a limited array, use an extended return statement.
9420
9421 2011-08-03 Vincent Celier <celier@adacore.com>
9422
9423 * make.adb (Initialize): If --subdirs= is used, but no project file is
9424 specified, attempt to create the specify subdir if it does not already
9425 exist and use it as the object directory as if -D had been specified.
9426
9427 2011-08-03 Arnaud Charlet <charlet@adacore.com>
9428
9429 * s-tpopsp-vms.adb: New file.
9430 * s-taprop-vms.adb: Put back ATCB_Key, since needed by this file on VMS.
9431 * gcc-interfaces/Makefile.in: Use s-taprop-vms.adb on VMS.
9432
9433 2011-08-03 Emmanuel Briot <briot@adacore.com>
9434
9435 * make.adb, makeutl.adb, makeutl.ads, clean.adb (Makeutl.Queue): new
9436 package.
9437
9438 2011-08-03 Yannick Moy <moy@adacore.com>
9439
9440 * cstand.adb (Create_Standard): select Universal_Integer as an ALFA type
9441 * sem_ch3.adb (Array_Type_Declaration): detect array types in ALFA
9442 * sem_util.adb, sem_util.ads (Has_Static_Array_Bounds): new function to
9443 detect that an array has static bounds.
9444
9445 2011-08-03 Thomas Quinot <quinot@adacore.com>
9446
9447 * exp_dist.adb: Minor reformatting.
9448
9449 2011-08-03 Arnaud Charlet <charlet@adacore.com>
9450
9451 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-vms.adb
9452 (ATCB_Key): Removed, not always used.
9453
9454 2011-08-03 Emmanuel Briot <briot@adacore.com>
9455
9456 * gnatcmd.adb, make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads,
9457 clean.adb, prj-conf.adb, prj-env.adb, prj-env.ads (Makeutl): remove
9458 most remaining global variables.
9459
9460 2011-08-03 Robert Dewar <dewar@adacore.com>
9461
9462 * gnatcmd.adb, prj-proc.adb, mlib-prj.adb, prj.adb, makeutl.ads,
9463 prj-util.adb, prj-util.ads, prj-conf.adb, prj-env.adb: Minor
9464 reformatting.
9465
9466 2011-08-03 Javier Miranda <miranda@adacore.com>
9467
9468 * exp_util.adb (Is_VM_By_Copy_Actual): Include N_Slide nodes as actuals
9469 that must be passed by copy in VM targets.
9470
9471 2011-08-03 Emmanuel Briot <briot@adacore.com>
9472
9473 * prj.ads, prj-nmsc.adb (Files_Htable): removed this htable, which
9474 duplicates a similar htable now in the project tree.
9475
9476 2011-08-03 Claire Dross <dross@adacore.com>
9477
9478 * a-cfdlli.adb, a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb,
9479 a-cofove.adb ("=", Length, Is_Empty, Clear, Assign, Copy, Element,
9480 Replace_Element, Query_Element, Update_Element, Move, Insert, Prepend,
9481 Append, Delete, Delete_First, Delete_Last, Reverse_Element, Swap,
9482 Splice, First, First_Element, Last, Last_Element, Next, Previous, Find,
9483 Reverse_Find, Contains, Has_Element, Iterate, Reverse_Iterate, Capacity,
9484 Reserve_Length, Length, Strict_Equal, Left, Right): Data-structure
9485 update.
9486
9487 2011-08-03 Arnaud Charlet <charlet@adacore.com>
9488
9489 * s-taprop-posix.adb, s-taprop-linux.adb, s-taprop-tru64.adb
9490 (ATCB_Key): Removed, not always used.
9491 * s-tpopsp-posix.adb, s-tpopsp-posix-foreign.adb (ATCB_Key): Moved from
9492 s-taprop-posix.adb.
9493 * s-tpopsp-tls.adb: New file.
9494 * gcc-interface/Makefile.in: Use TLS implementation of s-tpopsp.adb on
9495 x86/x64/ia64/powerpc/sparc Linux.
9496
9497 2011-08-03 Arnaud Charlet <charlet@adacore.com>
9498
9499 * system-aix.ads, system-aix64.ads: Set ZCX_By_Default to True.
9500 * gcc-interface/Makefile.in: Switch to ZCX by default on AIX ports.
9501
9502 2011-08-03 Thomas Quinot <quinot@adacore.com>
9503
9504 * rtsfind.ads, exp_dist.adb, exp_dist.ads
9505 (Build_From_Any_Call, Build_To_Any_Call, Build_TypeCode_Call):
9506 Fix type selection for mapping integer types to PolyORB types.
9507
9508 2011-08-03 Bob Duff <duff@adacore.com>
9509
9510 * sem_ch7.adb: Minor comment clarification.
9511
9512 2011-08-03 Bob Duff <duff@adacore.com>
9513
9514 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): If we get
9515 an error analyzing a choice, skip further processing. Further
9516 processing could cause a crash or cascade errors.
9517
9518 2011-08-03 Emmanuel Briot <briot@adacore.com>
9519
9520 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, mlib-prj.adb,
9521 prj.adb, prj.ads, makeutl.adb, makeutl.ads, clean.adb, prj-nmsc.adb,
9522 prj-util.adb, prj-util.ads, prj-conf.adb, prj-conf.ads, prj-env.adb,
9523 prj-env.ads (Shared_Project_Tree_Data): new type
9524 An aggregate project and its aggregated trees need to share the common
9525 data structures used for lists of strings, packages,... This makes the
9526 code simpler since otherwise we have to pass the root tree (also used
9527 for the configuration file data) in addition to the current project
9528 tree. This also avoids ambiguities as to which tree should be used.
9529 And finally this saves a bit of memory.
9530 (For_Every_Project_Imported): new parameter Tree.
9531 Since aggregated projects are using a different tree, we need to let
9532 the caller know which tree to use to manipulate the returned project.
9533
9534 2011-08-03 Robert Dewar <dewar@adacore.com>
9535
9536 * prj-proc.adb, exp_util.ads, exp_ch9.adb, make.adb, prj-ext.adb,
9537 prj-ext.ads, alfa.ads, sem_ch4.adb, makeutl.adb, makeutl.ads,
9538 lib-xref-alfa.adb, sem_cat.adb, exp_dist.adb, get_alfa.adb,
9539 prj-env.adb, prj-env.ads, prj-tree.adb, alfa.ads: Minor reformatting.
9540
9541 2011-08-03 Javier Miranda <miranda@adacore.com>
9542
9543 * exp_util.adb, sem_aux.adb, exp_util.ads, sem_aux.ads:
9544 Move routine Is_VM_By_Copy_Actual from sem_aux to exp_util.
9545
9546 2011-08-03 Bob Duff <duff@adacore.com>
9547
9548 * sem_ch8.adb (Is_Primitive_Operator_In_Use): Always check In_Use on
9549 the Base_Type.
9550
9551 2011-08-03 Joel Brobecker <brobecker@adacore.com brobecker>
9552
9553 * g-sha256.ads, g-sha512.ads, g-sha1.ads, g-sha224.ads, g-sha384.ads,
9554 g-sehash.ads: Fix typo. Update header.
9555
9556 2011-08-03 Thomas Quinot <quinot@adacore.com>
9557
9558 * exp_ch6.adb (Expand_Actuals): Remove Ada_2005 guard on build-in-place
9559 expansion.
9560
9561 2011-08-03 Gary Dismukes <dismukes@adacore.com>
9562
9563 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): Consider
9564 prefixes of private types along with records, since the selector may be
9565 a discriminant.
9566 * sem_res.adb (Resolve_Selected_Component): Consider prefixes of
9567 private types along with records, since the selector may be a
9568 discriminant.
9569
9570 2011-08-03 Emmanuel Briot <briot@adacore.com>
9571
9572 * prj-pp.adb (Pretty_Print): Remove trailing blank line.
9573
9574 2011-08-03 Javier Miranda <miranda@adacore.com>
9575
9576 * sem_aux.adb (Is_VM_By_Copy_Actual): Fix wrong use of
9577 Tagged_Type_Expansion.
9578
9579 2011-08-03 Yannick Moy <moy@adacore.com>
9580
9581 * sem_res.adb (Resolve_Op_Concat_Arg): Do not issue a SPARK
9582 violation when the argument of concatenation is the name of a
9583 constant.
9584
9585 2011-08-03 Emmanuel Briot <briot@adacore.com>
9586
9587 * prj-proc.adb, prj-ext.adb, prj-ext.ads, prj-env.adb, prj-env.ads,
9588 prj-tree.adb, prj-tree.ads (Initialize_And_Copy, Copy): new subprograms
9589 (Process_Declarative_Items): new parameter Child_Env.
9590
9591 2011-08-03 Yannick Moy <moy@adacore.com>
9592
9593 * alfa.ads: Update format of ALFA section in ALI file in order to
9594 add a mapping from bodies to specs when both are present.
9595 (ALFA_Scope_Record): Add components for spec file/scope.
9596 * get_alfa.adb (Get_ALFA): Read the new file/scope for spec when
9597 present.
9598 * lib-xref-alfa.adb (Collect_ALFA): After all scopes have been
9599 collected, fill in the spec information when relevant.
9600 * put_alfa.adb (Put_ALFA): Write the new file/scope for spec when
9601 present.
9602
9603 2011-08-03 Eric Botcazou <ebotcazou@adacore.com>
9604
9605 * inline.adb (Add_Inlined_Subprogram): Do not consider the enclosing
9606 code unit to decide whether to add internally generated subprograms.
9607
9608 2011-08-03 Javier Miranda <miranda@adacore.com>
9609
9610 * sem_aux.ads, sem_aux.adb (Is_VM_By_Copy_Actual): New subprogram.
9611 * exp_ch9.adb (Build_Simple_Entry_Call): Handle actuals that must
9612 be handled by copy in VM targets.
9613
9614 2011-08-03 Emmanuel Briot <briot@adacore.com>
9615
9616 * make.adb, makeutl.adb, makeutl.ads (Make.Switches_Of): Share
9617 code with Makeutl.Get_Switches.
9618 * prj-tree.adb: Update comment.
9619
9620 2011-08-03 Thomas Quinot <quinot@adacore.com>
9621
9622 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Reject a remote
9623 subprogram with a limited formal that does not support external
9624 streaming.
9625
9626 2011-08-03 Yannick Moy <moy@adacore.com>
9627
9628 * get_alfa.adb (Get_ALFA): add missing Skip_Spaces at start of
9629 continuation line
9630 * lib-xref-alfa.adb (Add_ALFA_File): split removal of scopes that are
9631 not from current unit in two phases, because it is not possible to
9632 change the table while iterating over its content.
9633 * put_alfa.adb (Put_ALFA): reset current file/scope at each new entity
9634
9635 2011-08-03 Sergey Rybin <rybin@adacore.com>
9636
9637 * vms_data.ads: Add qualifier for gnatmetric --no-static-loop option
9638 * gnat_ugn.texi: Update description of complexity metrics (gnatmetric)
9639
9640 2011-08-03 Ed Schonberg <schonberg@adacore.com>
9641
9642 * sem_res.adb (Resolve_Op_Concat_Arg): if the argument is an aggregate
9643 and the component type is composite, this is ambiguous for predefined
9644 concatenation, but if the node is not overloaded and the entity is a use
9645 -defined function its profile can be used to resolve that aggregate.
9646
9647 2011-08-03 Robert Dewar <dewar@adacore.com>
9648
9649 * exp_ch4.adb: Minor code cleanup.
9650
9651 2011-08-03 Thomas Quinot <quinot@adacore.com>
9652
9653 * exp_dist.adb: Do not generate distribution stubs if serious errors
9654 have been diagnosed.
9655
9656 2011-08-03 Ed Schonberg <schonberg@adacore.com>
9657
9658 * sem_ch4.adb (Try_Primitive_Operation): when checking the validity of
9659 the first formal of a primitive operation, go to the base type to
9660 handle properly an access to a derived type with constrained
9661 discriminants.
9662 * sem_type.adb (Disambiguate): an immediately visible operator hides a
9663 user-defined function that is only use-visible.
9664
9665 2011-08-03 Robert Dewar <dewar@adacore.com>
9666
9667 * sem_aggr.adb, sem_ch3.adb, lib.ads, gnatcmd.adb, prj-proc.adb,
9668 make.adb, lib-writ.adb, prj-part.adb, prj-part.ads, prj-ext.adb,
9669 fname-uf.adb, prj-ext.ads, prj.adb, prj.ads, sem_attr.adb, alfa.adb,
9670 prj-makr.adb, errout.adb, makeutl.adb, makeutl.ads, restrict.ads,
9671 sem_ch6.adb, g-pehage.adb, clean.adb, put_alfa.adb, lib-xref-alfa.adb,
9672 prj-nmsc.adb, prj-nmsc.ads, sem_ch8.adb, prj-pars.ads, exp_aggr.adb,
9673 prj-attr.ads, sem_ch13.adb, get_alfa.adb, prj-env.adb, prj-env.ads,
9674 alfa_test.adb, prj-tree.adb, prj-tree.ads, einfo.ads: Minor reformatting
9675
9676 2011-08-03 Robert Dewar <dewar@adacore.com>
9677
9678 * repinfo.adb (List_Mechanism): Add handling of
9679 Convention_Ada_Pass_By_XXX.
9680 * sem_mech.adb (Set_Mechanism): Ditto.
9681 * sem_prag.adb (Process_Convention): Add entries for
9682 Convention_Ada_Pass_By_XXX.
9683 * snames.adb-tmpl, snames.ads-tmpl: Ditto.
9684
9685 2011-08-03 Pascal Obry <obry@adacore.com>
9686
9687 * makeutl.adb: Minor reformatting.
9688
9689 2011-08-03 Vincent Celier <celier@adacore.com>
9690
9691 * fname-uf.adb
9692 (Get_File_Name) If the file cannot be found when there are no config
9693 pragmas file and May_Fail is True, return No_File instead of the file
9694 name, to be consistent.
9695
9696 2011-08-03 Pascal Obry <obry@adacore.com>
9697
9698 * adaint.c (__gnat_is_executable_file_attr): Avoid access
9699 to null pointer.
9700
9701 2011-08-03 Javier Miranda <miranda@adacore.com>
9702
9703 * sem_ch13.adb
9704 (Same_Representation): In VM targets the representation of arrays with
9705 aliased components differs from arrays with non-aliased components.
9706
9707 2011-08-03 Emmanuel Briot <briot@adacore.com>
9708
9709 * prj-proc.adb, prj-attr.adb, prj-attr.ads (Get_Attribute_Index): do
9710 not systematically lower case attribute indexes that contain no "."
9711 Fix definition of several Naming attributes, which take
9712 a unit name as index and therefore should be case insensitive.
9713 Minor refactoring (reduce length of variable names).
9714
9715 2011-08-03 Emmanuel Briot <briot@adacore.com>
9716
9717 * makeutl.adb, makeutl.ads (Get_Switches): new subprogram.
9718
9719 2011-08-03 Emmanuel Briot <briot@adacore.com>
9720
9721 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
9722 prj-part.ads, switch-m.adb, switch-m.ads, prj-makr.adb, clean.adb,
9723 prj-pars.adb, prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
9724 prj-tree.ads (Prj.Tree.Environment): new type.
9725
9726 2011-08-03 Emmanuel Briot <briot@adacore.com>
9727
9728 * prj-proc.adb, prj.ads, makeutl.adb, makeutl.ads, prj-conf.adb,
9729 prj-tree.adb, prj-tree.ads (Environment): new type.
9730
9731 2011-08-03 Emmanuel Briot <briot@adacore.com>
9732
9733 * prj-tree.ads: Remove unused variable.
9734
9735 2011-08-03 Yannick Moy <moy@adacore.com>
9736
9737 * restrict.adb (Restriction_Msg): set "SPARK" all in upper case for
9738 issuing messages related to SPARK restriction violation.
9739
9740 2011-08-03 Ed Schonberg <schonberg@adacore.com>
9741
9742 * sem_ch6.adb: guard against error nodes in return statements.
9743
9744 2011-08-03 Arnaud Charlet <charlet@adacore.com>
9745
9746 * errout.adb (Error_Msg_Internal): the main unit has not been read yet,
9747 a warning can only appear on a configuration file, so emit warning
9748 without further checks.
9749
9750 2011-08-03 Arnaud Charlet <charlet@adacore.com>
9751
9752 * s-interr.ads: add overriding keyword.
9753
9754 2011-08-03 Geert Bosch <bosch@adacore.com>
9755
9756 * exp_attr.adb: Fix minor typo.
9757
9758 2011-08-03 Ed Schonberg <schonberg@adacore.com>
9759
9760 * par-ch4.adb: improve error recovery.
9761
9762 2011-08-03 Emmanuel Briot <briot@adacore.com>
9763
9764 * prj-part.adb, prj-part.ads, prj-makr.adb, prj-pars.adb, prj-conf.adb,
9765 prj-env.adb (Prj.Part.Parse): change parameter Always_Errout_Finalize
9766 to Errout_Handling.
9767
9768 2011-08-03 Emmanuel Briot <briot@adacore.com>
9769
9770 * prj-dect.adb (Parse_Attribute_Declaration): make sure we can use
9771 "external" as an attribute name in aggregate projects.
9772
9773 2011-08-03 Jose Ruiz <ruiz@adacore.com>
9774
9775 * s-taprop-vxworks.adb: (Create_Task, Initialize): Ada 2012 pragma CPU
9776 uses CPU numbers starting 1, while VxWorks uses CPU numbers starting
9777 from 0, so we need to adjust.
9778
9779 2011-08-03 Emmanuel Briot <briot@adacore.com>
9780
9781 * prj-proc.adb, prj-ext.adb, prj-ext.ads, makeutl.adb, prj-tree.adb,
9782 prj-tree.ads, gnatcmd.adb, clean.adb (External_References): new type.
9783
9784 2011-08-03 Yannick Moy <moy@adacore.com>
9785
9786 * sem_ch6.adb (New_Overloaded_Entity): only issue error for SPARK
9787 restriction on overloaded entity if the entity is not an operator.
9788
9789 2011-08-03 Yannick Moy <moy@adacore.com>
9790
9791 * sem_ch7.adb, sem_res.adb, sem_attr.adb, restrict.adb,
9792 restrict.ads: Rename remaining Check_Formal_Restriction* into
9793 Check_SPARK_Restriction*.
9794
9795 2011-08-03 Emmanuel Briot <briot@adacore.com>
9796
9797 * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb,
9798 prj-nmsc.ads, prj-err.adb (Project_Data): now discriminated on its
9799 qualifier.
9800 (Project_Empty): removed
9801 (Empty_Project): new parameter Qualifier
9802 This is used to have fields specific to aggregate projects, cleaner
9803 New field to store the list of aggregated projects.
9804 (Check_Aggregate_Project): removed
9805 (Process_Aggregated_Projects, Free): new subprograms.
9806
9807 2011-08-03 Olivier Hainque <hainque@adacore.com>
9808
9809 * tracebak.c (STOP_FRAME ppc AIX): Stop at null return address as well.
9810
9811 2011-08-03 Ed Schonberg <schonberg@adacore.com>
9812
9813 * sem_ch8.adb (Analyze_Object_Renaming): if the renamed object is an
9814 explicit dereference of an unconstrained type, create a constrained
9815 subtype for it, as is done for function calls that return an
9816 unconstrained type.
9817
9818 2011-08-03 Thomas Quinot <quinot@adacore.com>
9819
9820 * g-pehage.adb (Finalize): Avoid possible double-free.
9821
9822 2011-08-03 Steve Baird <baird@adacore.com>
9823
9824 * exp_attr.adb (Expand_N_Attribute_Reference): Don't expand
9825 Elab_Spec/Body attrs in CodePeer_Mode.
9826
9827 2011-08-03 Javier Miranda <miranda@adacore.com>
9828
9829 * exp_aggr.adb (Flatten): Convert to positional form aggregates whose
9830 low bound is not known at compile time but they have no others choice.
9831 Done because in this case the bounds can be obtained directly from the
9832 aggregate.
9833
9834 2011-08-03 Ed Falis <falis@adacore.com>
9835
9836 * s-tasinf-vxworks.ads: Update comment to reflect 0 indexing of CPUs
9837 on VxWorks SMP. Remove unusable constant ANY_CPU.
9838
9839 2011-08-03 Emmanuel Briot <briot@adacore.com>
9840
9841 * gnatcmd.adb, make.adb, prj-part.adb, prj-part.ads, prj-makr.adb,
9842 clean.adb, prj-nmsc.adb, prj-pars.adb, prj-conf.adb, prj-env.adb,
9843 prj-env.ads (Prj.Env.Initialize_Default_Project_Path,
9844 Prj.Env.Initialize_Empty): new subprograms
9845 (Get_Env, Find_Project): remove parameter Target_Name.
9846
9847 2011-08-03 Gary Dismukes <dismukes@adacore.com>
9848
9849 * sem_ch3.adb (Build_Derived_Record_Type): Test the Derive_Subps formal
9850 as a condition for the delayed call to Derived_Subprograms done for the
9851 case of the rewriting of a derived type that constrains the
9852 discriminants of its parent type.
9853 Avoids redundant subprogram derivations for private subtype derivations.
9854
9855 2011-08-03 Javier Miranda <miranda@adacore.com>
9856
9857 * exp_aggr.adb (Init_Hidden_Discriminants): New subprogram of
9858 Build_Record_Aggr_Code.
9859 (Build_Record_Aggr_Code): Add missing support to initialize hidden
9860 discriminants in extension aggregates.
9861
9862 2011-08-03 Emmanuel Briot <briot@adacore.com>
9863
9864 * prj-pp.adb (Print): also output project qualifiers, since in
9865 particular "aggregate" is mandatory in an aggregate project.
9866
9867 2011-08-03 Emmanuel Briot <briot@adacore.com>
9868
9869 * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb:
9870 (Debug_Output): new function.
9871
9872 2011-08-03 Eric Botcazou <ebotcazou@adacore.com>
9873
9874 * gnat_ugn.texi: Document -Wstack-usage.
9875 * gcc-interface/misc.c (enumerate_modes): Add guard for ghost FP modes.
9876
9877 2011-08-03 Thomas Quinot <quinot@adacore.com>
9878
9879 * sem_prag.adb Issue an error (not a warning) when a C++ type does not
9880 have keyword LIMITED.
9881
9882 2011-08-03 Yannick Moy <moy@adacore.com>
9883
9884 * alfa.adb, alfa.ads, alfa_test.adb: New files.
9885 * ali.adb (Known_ALI_Lines): add 'C' lines (SCO) and 'F' lines (ALFA)
9886 (Scan_ALI): do not issue a fatal error if parsing known lines after Xref
9887 section (does not happen in compiler, only if code directly calls
9888 Scan_ALI).
9889 * get_alfa.adb, get_alfa.ads: New files.
9890 * lib-writ.adb, lib-writ.ads (Write_ALI): output ALFA information if
9891 needed.
9892 * lib-xref-alfa.adb: New file.
9893 * lib-xref.adb, lib-xref.ads
9894 (Xref_Entry): redefine information needed in cross-references for ALFA.
9895 Push ALFA treatments in separated local package.
9896 (Enclosing_Subpragram_Or_Package): treat specially subprogram
9897 identifiers. Return entity of package body instead of spec. Return
9898 Empty for a scope with no location.
9899 (Generate_Reference): adapt to new components for ALFA information.
9900 Remove the need for D references on definitions.
9901 (Is_Local_Reference): moved to ALFA local package
9902 (Output_References): extract subfunction as Extract_Source_Name
9903 (Output_Local_References): remove procedure, replaced by filtering of
9904 cross-references in package ALFA and printing in Put_ALFA.
9905 (Write_Entity_Name): remove procedure
9906 * lib.adb, lib.ads (Extract_Source_Name): extract here function to
9907 print exact name of entity as it appears in source file
9908 (Unit_Ref_Table): make type public for use in Lib.Xref.ALFA
9909 * put_alfa.adb, put_alfa.ads: New files.
9910 * xref_lib.adb (Search_Xref): protect read of cross-references against
9911 reading other sections of the ALI file, in gnatxref
9912 (Search): protect read of cross-references against reading other
9913 sections of the ALI file, in gnatfind.
9914 * gcc-interface/Make-lang.in: Update dependencies.
9915
9916 2011-08-03 Thomas Quinot <quinot@adacore.com>
9917
9918 * sem_ch3.adb: Minor reformatting.
9919
9920 2011-08-03 Jose Ruiz <ruiz@adacore.com>
9921
9922 * s-inmaop-vxworks.adb (Setup_Interrupt_Mask): Do nothing instead of
9923 raising an exception.
9924
9925 2011-08-03 Ed Schonberg <schonberg@adacore.com>
9926
9927 * sem_res.adb (Set_String_Literal_Subtype): if index type is an integer
9928 type, always use 1 as the lower bound or string, even if lower bound of
9929 context is not static, to handle properly null strings in a non-static
9930 context.
9931
9932 2011-08-03 Bob Duff <duff@adacore.com>
9933
9934 * sem_prag.adb (Resolve_Aggregate): An array aggregate with 'others' is
9935 always legal on the right-hand side of an assignment statement; there
9936 is always an applicable index constraint in this case. Therefore, the
9937 check for Pkind = N_Assignment_Statement is now unconditional -- it
9938 doesn't depend on whether Is_Constrained (Typ).
9939
9940 2011-08-03 Robert Dewar <dewar@adacore.com>
9941
9942 * exp_ch5.adb, sem_prag.adb, exp_ch4.adb: Minor reformatting.
9943
9944 2011-08-03 Ed Schonberg <schonberg@adacore.com>
9945
9946 * sem_ch3.adb (Build_Itype_Reference): do not create an itype reference
9947 for an itype created within a generic unit.
9948
9949 2011-08-03 Eric Botcazou <ebotcazou@adacore.com>
9950
9951 * gnat_ugn.texi (Switches for gcc): Make it clearer that -fno-inline
9952 suppresses all inlining.
9953
9954 2011-08-03 Robert Dewar <dewar@adacore.com>
9955
9956 * sem_ch3.adb, sem_res.adb, exp_ch13.adb, exp_disp.adb,
9957 exp_aggr.adb: Minor reformatting.
9958
9959 2011-08-03 Thomas Quinot <quinot@adacore.com>
9960
9961 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not force inlining of
9962 tagged assignment when discriminant checks are suppressed. This is
9963 useless and extremely costly in terms of static stack usage.
9964
9965 2011-08-03 Bob Duff <duff@adacore.com>
9966
9967 * sem_prag.adb (Get_Base_Subprogram): Do not follow Alias for instances
9968 of generics, because this leads to the wrong entity in the wrong scope,
9969 causing (e.g.) pragma Export_Procedure to get an error if the entity is
9970 an instance.
9971 (Process_Interface_Name): Follow Alias for instances of generics, to
9972 correct for the above change.
9973
9974 2011-08-03 Ed Schonberg <schonberg@adacore.com>
9975
9976 * exp_ch4.adb (Expand_N_Selected_Component): If the discriminant value
9977 is an integer literal it is always safe to replace the reference. In
9978 addition, if the reference appears in the generated code for an object
9979 declaration it is necessary to copy because otherwise the reference
9980 might be to the uninitilized value of the discriminant of the object
9981 itself.
9982
9983 2011-08-03 Pascal Obry <obry@adacore.com>
9984
9985 * adaint.c (__gnat_is_executable_file_attr): Fix Win32 circuitry when no
9986 ACL used, in this case we want to check for ending .exe, not .exe
9987 anywhere in the path.
9988
9989 2011-08-03 Sergey Rybin <rybin@adacore.com>
9990
9991 * tree_io.ads (ASIS_Version_Number): Update because of the changes in
9992 the tree structure (semantic decoration of references to record
9993 discriminants).
9994
9995 2011-08-03 Gary Dismukes <dismukes@adacore.com>
9996
9997 * sem_aggr.adb (Analyze_Array_Aggregate): When checking the discrete
9998 choices of a named array aggregate, bail out when any choices are
9999 marked as Errors_Posted.
10000
10001 2011-08-03 Ed Schonberg <schonberg@adacore.com>
10002
10003 * exp_ch13.adb (Expand_N_Freeze_Entity): cleanup determination of scope
10004 in which entity is frozen, to handle properly loop variables in
10005 iterators.
10006
10007 2011-08-03 Ed Schonberg <schonberg@adacore.com>
10008
10009 * sem_res.adb (Set_String_Literal_Subtype): if the lower bound of the
10010 subtype is not static, compute the upper bound using attributes, to
10011 handle properly index types that are not integer types.
10012
10013 2011-08-03 Bob Duff <duff@adacore.com>
10014
10015 * gnat_rm.texi, gnat_ugn.texi: Fix some dangling URLs.
10016 Update copyright notice.
10017
10018 2011-08-03 Ed Schonberg <schonberg@adacore.com>
10019
10020 * sem_ch3.adb (Build_Discriminant_Constraints): Only use
10021 Original_Discriminant if within an instance.
10022 * sem_ch4.adb (Analyze_Selected_Component): Ditto.
10023
10024 2011-08-03 Thomas Quinot <quinot@adacore.com>
10025
10026 * einfo.ads: Minor reformatting.
10027
10028 2011-08-03 Ed Schonberg <schonberg@adacore.com>
10029
10030 * exp_disp.adb (Check_Premature_Freezing): diagnose the presence of a
10031 composite type with an unfrozen subcomponent, in the profile of a
10032 primitive operation.
10033
10034 2011-08-03 Robert Dewar <dewar@adacore.com>
10035
10036 * sem_util.ads, exp_aggr.adb, exp_ch3.adb: Minor reformatting.
10037
10038 2011-08-03 Ed Schonberg <schonberg@adacore.com>
10039
10040 * sem_ch3.adb (Analyze_Object_Declaration): if a constant object of an
10041 unconstrained type with discriminants is initialized with an aggregate,
10042 use the constrained subtype of the aggregate as the type of the object,
10043 because it is immutable, and this allows the back-end to generate no
10044 code for the object declaration.
10045
10046 2011-08-03 Robert Dewar <dewar@adacore.com>
10047
10048 * exp_ch4.adb (Optimize_Length_Check): Fix bad handling of case where
10049 comparison operand is variable, and turns out to be zero or negative.
10050
10051 2011-08-03 Javier Miranda <miranda@adacore.com>
10052
10053 * exp_intr.adb
10054 (Expand_Dispatching_Constructor_Call): Disable expansion of
10055 code required for native targets. Done to avoid generating
10056 references to unavailable runtime entities in VM targets.
10057 * exp_ch3.adb
10058 (Expand_N_Object_Declaration): Add missing support to handle
10059 the explicit initialization of class-wide interface objects.
10060 Fix documentation.
10061
10062 2011-08-03 Matthew Heaney <heaney@adacore.com>
10063
10064 * a-cobove.adb (Merge): Move source onto target, instead of using
10065 Assign.
10066
10067 2011-08-03 Matthew Heaney <heaney@adacore.com>
10068
10069 * a-cbdlli.adb (Splice): Move source items from first to last.
10070
10071 2011-08-03 Yannick Moy <moy@adacore.com>
10072
10073 * sem_util.ads: Add comment.
10074
10075 2011-08-03 Javier Miranda <miranda@adacore.com>
10076
10077 * exp_aggr.adb
10078 (Expand_Record_Aggregate): In VM targets disable the expansion into
10079 assignments of aggregates whose type is not known at compile time.
10080
10081 2011-08-03 Ed Schonberg <schonberg@adacore.com>
10082
10083 * exp_ch9.adb (Build_Renamed_Formal_Declaration): common procedure for
10084 protected entries and task entries, to build the proper renaming
10085 declaration for entry formals, used in debugging.
10086 * exp_ch2.adb (Expand_Entry_Parameter): handle task and entry
10087 parameters in the same way.
10088
10089 2011-08-02 Robert Dewar <dewar@adacore.com>
10090
10091 * a-direct.adb, sinfo.ads, exp_ch9.adb, scng.adb, sem_util.adb,
10092 sem_util.ads, restrict.ads, par-prag.adb: Minor reformatting and/or
10093 code reorganization.
10094
10095 2011-08-02 Robert Dewar <dewar@adacore.com>
10096
10097 * debug.adb: Debug flag d.P to suppress length comparison optimization
10098 * exp_ch4.adb (Optimize_Length_Comparison): New routine to optimize
10099 comparison of Length by comparing First/Last instead.
10100
10101 2011-08-02 Matthew Heaney <heaney@adacore.com>
10102
10103 * a-cobove.ads: Code clean up.
10104
10105 2011-08-02 Vincent Celier <celier@adacore.com>
10106
10107 * adaint.c (file_names_case_sensitive_cache): New static int.
10108 (__gnat_get_file_names_case_sensitive): Cache the return value in
10109 file_names_case_sensitive_cache at the first invocation, to avoid
10110 multiple calls to getenv.
10111
10112 2011-08-02 Bob Duff <duff@adacore.com>
10113
10114 * sem_ch12.adb (Validate_Derived_Type_Instance): Implement AI05-0218-1.
10115
10116 2011-08-02 Yannick Moy <moy@adacore.com>
10117
10118 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem.ads,
10119 sem_util.adb, sem_util.ads, sem_res.adb, sem_ch2.adb, sem_ch4.adb,
10120 sem_ch6.adb, sem_ch11.adb: Add semantic flag In_Pre_Post_Expression to
10121 indicate that we are in a precondition or postcondition. This is used in
10122 Mark_Non_ALFA_Subprogram (renaming of Mark_Non_ALFA_Subprogram_Body) to
10123 decide whether to flag the spec or body of the current subprogram as
10124 not in ALFA.
10125
10126 2011-08-02 Fabien Chouteau <chouteau@adacore.com>
10127
10128 * impunit.adb: Add Ada.Execution_Time.Interrupts in the Ada2012 package
10129 list.
10130 * a-extiin.ads: New file.
10131
10132 2011-08-02 Bob Duff <duff@adacore.com>
10133
10134 * a-direct.adb (Rename): Implement AI05-0231-1. In particular, Rename
10135 now raises Name_Error instead of Use_Error in certain cases. The other
10136 parts of this AI were already implemented properly.
10137
10138 2011-08-02 Vincent Celier <celier@adacore.com>
10139
10140 * link.c: Only import "auto-host.h" when building the gnattools.
10141
10142 2011-08-02 Yannick Moy <moy@adacore.com>
10143
10144 * sem_util.adb: Inter-unit inlining does not work for a subprogram
10145 which calls a local subprogram, so extract subprogram
10146 from Mark_Non_ALFA_Subprogram_Body.
10147
10148 2011-08-02 Javier Miranda <miranda@adacore.com>
10149
10150 * exp_ch9.adb
10151 (Extract_Dispatching_Call): If the type of the dispatching object is an
10152 access type then return an explicit dereference in the Object out-mode
10153 parameter.
10154
10155 2011-08-02 Gary Dismukes <dismukes@adacore.com>
10156
10157 * sem_ch3.adb (Analyze_Subtype_Declaration): Generate range
10158 compatibility checks for all indexes of an array subtype, not just the
10159 first. Reset Has_Dynamic_Range_Check on the subtype before each
10160 potential check to ensure that Insert_Range_Checks will not elide any
10161 of the dynamic checks.
10162
10163 2011-08-02 Yannick Moy <moy@adacore.com>
10164
10165 * par-prag.ad (Process_Restrictions_Or_Restriction_Warnings): recognize
10166 SPARK restriction at parsing time.
10167 * scng.adb (Scan): Generate a token Tok_SPARK_Hide for a SPARK HIDE
10168 directive only if the SPARK restriction is set for this unit.
10169
10170 2011-08-02 Yannick Moy <moy@adacore.com>
10171
10172 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb, sem_util.ads,
10173 sem_res.adb, sem_ch2.adb, sem_ch4.adb, sem_ch6.adb,
10174 sem_ch11.adb: Protect call to Current_Subprogram which might be costly
10175 when repeated. Rename Current_Subprogram_Is_Not_In_ALFA into
10176 Mark_Non_ALFA_Subprogram_Body.
10177 Split body of Mark_Non_ALFA_Subprogram_Body to get body small and
10178 inlined.
10179
10180 2011-08-02 Yannick Moy <moy@adacore.com>
10181
10182 * sem_res.adb: Protect calls to Matching_Static_Array_Bounds which
10183 might be costly.
10184
10185 2011-08-02 Robert Dewar <dewar@adacore.com>
10186
10187 * exp_ch9.adb, exp_sel.adb, restrict.ads, exp_disp.adb, erroutc.ads,
10188 exp_ch3.adb: Minor reformatting.
10189
10190 2011-08-02 Emmanuel Briot <briot@adacore.com>
10191
10192 * adaint.c (__gnat_locate_exec_on_path): only returns executable
10193 files, not any regular file.
10194 (__gnat_locate_file_with_predicate): new subprogram.
10195
10196 2011-08-02 Yannick Moy <moy@adacore.com>
10197
10198 * sinfo.adb, sinfo.ads: Restrict the use of flags
10199 Has_Dynamic_Length_Check and Has_Dynamic_Range_Check to expression
10200 nodes, plus N_Subtype_Declaration for the 2nd one.
10201
10202 2011-08-02 Sergey Rybin <rybin@adacore.com>
10203
10204 * gnat_rm.texi: Ramification of pragma Eliminate documentation
10205 - fix bugs in the description of Source_Trace;
10206 - get rid of UNIT_NAME;
10207
10208 2011-08-02 Javier Miranda <miranda@adacore.com>
10209
10210 * exp_ch9.adb
10211 (Build_Dispatching_Requeue): Adding support for VM targets
10212 since we cannot directly reference the Tag entity.
10213 * exp_sel.adb (Build_K): Adding support for VM targets.
10214 (Build_S_Assignment): Adding support for VM targets.
10215 * exp_disp.adb
10216 (Default_Prim_Op_Position): In VM targets do not restrict availability
10217 of predefined interface primitives to compiling in Ada 2005 mode.
10218 (Is_Predefined_Interface_Primitive): In VM targets this service is not
10219 restricted to compiling in Ada 2005 mode.
10220 (Make_VM_TSD): Generate code that declares and initializes the OSD
10221 record. Needed to support dispatching calls through synchronized
10222 interfaces.
10223 * exp_ch3.adb
10224 (Make_Predefined_Primitive_Specs): Enable generation of predefined
10225 primitives associated with synchronized interfaces.
10226 (Make_Predefined_Primitive_Bodies): Enable generation of predefined
10227 primitives associated with synchronized interfaces.
10228
10229 2011-08-02 Yannick Moy <moy@adacore.com>
10230
10231 * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of
10232 statements hidden in SPARK if preceded by the HIDE directive
10233 (Parse_Exception_Handlers): mark each exception handler in a sequence of
10234 exception handlers as hidden in SPARK if preceded by the HIDE directive
10235 * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK
10236 if starting with the HIDE directive
10237 * par-ch7.adb (P_Package): mark a package body hidden in SPARK if
10238 starting with the HIDE directive; mark the declarations in a private
10239 part as hidden in SPARK if the private part starts with the HIDE
10240 directive
10241 * restrict.adb, restrict.ads
10242 (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK
10243 (Is_In_Hidden_Part_In_SPARK): new function which returns whether its
10244 argument node belongs to a part which is hidden in SPARK
10245 (Check_SPARK_Restriction): do not issue violations on nodes in hidden
10246 parts in SPARK; protect the possibly costly call to
10247 Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on
10248 * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration
10249 * scng.adb (Accumulate_Token_Checksum_GNAT_6_3,
10250 Accumulate_Token_Checksum_GNAT_5_03): add case for new token
10251 Tok_SPARK_Hide.
10252 (Scan): recognize special comment starting with '#' and followed by
10253 SPARK keyword "hide" as a HIDE directive.
10254
10255 2011-08-02 Yannick Moy <moy@adacore.com>
10256
10257 * types.ads, erroutc.ads: Minor reformatting.
10258
10259 2011-08-02 Vincent Celier <celier@adacore.com>
10260
10261 * link.c: Add response file support for cross platforms.
10262
10263 2011-08-02 Ed Schonberg <schonberg@adacore.com>
10264
10265 * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression
10266 in an association, set parent field of copy before partial analysis.
10267 * sem_res.adb (Resolve_Slice): create reference to itype only when
10268 expansion is enabled.
10269
10270 2011-08-02 Yannick Moy <moy@adacore.com>
10271
10272 * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set
10273 for new flag denoting which subprogram bodies are in ALFA
10274 * restrict.adb, sem_ch7.adb: Update comment
10275 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
10276 sem_ch9.adb, sem_res.adb: Add calls to
10277 Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs.
10278 * sem_ch6.adb (Analyze_Function_Return): add calls to
10279 Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the
10280 middle of the body, and extended return.
10281 (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument
10282 False when missing return.
10283 (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA
10284 to True for subprograms whose spec is in ALFA. Remove later on the flag
10285 on the entity used for a subprogram body when there exists a separate
10286 declaration.
10287 * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA):
10288 if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to
10289 False, otherwise do nothing.
10290
10291 2011-08-02 Robert Dewar <dewar@adacore.com>
10292
10293 * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
10294
10295 2011-08-02 Yannick Moy <moy@adacore.com>
10296
10297 * sem_ch4.ads: minor formatting.
10298
10299 2011-08-02 Yannick Moy <moy@adacore.com>
10300
10301 * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb,
10302 debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb,
10303 errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb,
10304 restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb,
10305 opt.ads: cleanup of SPARK mode
10306
10307 2011-08-02 Yannick Moy <moy@adacore.com>
10308
10309 * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard
10310 types.
10311 * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities
10312 (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA
10313 * sem_ch3.adb
10314 (Analyze_Object_Declaration): set Is_In_ALFA flag for objects
10315 (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes
10316 (Constrain_Integer): set Is_In_ALFA flag for integer subtypes
10317 (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration
10318 types.
10319 (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with
10320 non-static range.
10321 * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for
10322 functions whose return type is not in ALFA.
10323 (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram
10324 specifications.
10325 (Process_Formals): unset Is_In_ALFA flag for subprograms if a
10326 parameter's type is not in ALFA.
10327 * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard
10328 types are in ALFA.
10329
10330 2011-08-02 Ed Schonberg <schonberg@adacore.com>
10331
10332 * sem_ch6 (Analyze_Expression_Function): treat the function as
10333 Inline_Always, and introduce a subprogram declaration for it when it is
10334 not a completion.
10335 * inline.adb (Add_Inlined_Body): recognize bodies that come from
10336 expression functions, so that the back-end can determine whether they
10337 can in fact be inlined.
10338 * sem_util.adb (Is_Expression_Function): predicate to determine whether
10339 a function body comes from an expression function.
10340
10341 2011-08-02 Gary Dismukes <dismukes@adacore.com>
10342
10343 * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming
10344 null exclusions to test Can_Never_Be_Null on the anonymous access types
10345 of the formals rather than testing the formals themselves. Exclude this
10346 check in cases where the Old_Formal is marked as a controlling formal,
10347 to avoid issuing spurious errors for bodies completing dispatching
10348 operations (due to the flag not getting set on controlling access
10349 formals in body specs).
10350 (Find_Corresponding_Spec): When checking full and subtype conformance of
10351 subprogram bodies in instances, pass Designated and E in that order, for
10352 consistency with the expected order of the formals (New_Id followed by
10353 Old_Id).
10354
10355 2011-08-02 Robert Dewar <dewar@adacore.com>
10356
10357 * sem_ch8.adb: Minor reformatting.
10358
10359 2011-08-02 Ed Schonberg <schonberg@adacore.com>
10360
10361 * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure
10362 Check_Class_Wide_Actual, to implement AI05-0071, on defaulted
10363 primitive operations of class-wide actuals.
10364
10365 2011-08-02 Javier Miranda <miranda@adacore.com>
10366
10367 * exp_atag.ads, exp_atag.adb
10368 (Build_Common_Dispatching_Select_Statements): Remove argument Loc
10369 since its value is implicitly passed in argument Typ.
10370 * exp_disp.adb (Make_Disp_Conditional_Select_Body,
10371 Make_Disp_Timed_Select_Body): Remove Loc in calls to routine
10372 Build_Common_Dispatching_Select_Statements.
10373
10374 2011-08-02 Robert Dewar <dewar@adacore.com>
10375
10376 * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads,
10377 exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments.
10378 Minor reformatting.
10379
10380 2011-08-02 Robert Dewar <dewar@adacore.com>
10381
10382 * sem_res.adb: Minor reformatting.
10383 * sem_prag.adb: Minor reformatting.
10384
10385 2011-08-02 Javier Miranda <miranda@adacore.com>
10386
10387 * exp_atag.adb, exp_atags.ads
10388 (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr
10389 by the tagged type Entity. Required to use this routine in the VM
10390 targets since we do not have available the Tag entity in the VM
10391 platforms.
10392 * exp_ch6.adb
10393 (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package
10394 Ada.Tags has not been previously loaded.
10395 * exp_ch7.adb
10396 (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke
10397 Build_VM_TSDs if package Ada.Tags has not been previously loaded.
10398 * sem_aux.adb
10399 (Enclosing_Dynamic_Scope): Add missing support to handle the full
10400 view of enclosing scopes. Required to handle enclosing scopes that
10401 are synchronized types whose full view is a task type.
10402 * exp_disp.adb
10403 (Build_VM_TSDs): Minor code improvement to avoid generating and
10404 analyzing lists with empty nodes.
10405 (Make_Disp_Asynchronous_Select_Body): Add support for VM targets.
10406 (Make_Disp_Conditional_Select_Body): Add support for VM targets.
10407 (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets.
10408 (Make_Disp_Timed_Select_Body): Add support for VM targets.
10409 (Make_Select_Specific_Data_Table): Add support for VM targets.
10410 (Make_VM_TSD): Generate code to initialize the SSD structure of
10411 the TSD.
10412
10413 2011-08-02 Yannick Moy <moy@adacore.com>
10414
10415 * lib-writ.adb (Write_ALI): when ALFA mode is set, write local
10416 cross-references section in ALI.
10417 * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub
10418 (enclosing subprogram), Slc (location of Sub) and Sun (unit number of
10419 Sub).
10420 (Enclosing_Subprogram_Or_Package): new function to return the enclosing
10421 subprogram or package entity of a node
10422 (Is_Local_Reference_Type): new function returns True for references
10423 selected in local cross-references.
10424 (Lt): function extracted from Lt in Output_References
10425 (Write_Entity_Name): function extracted from Output_References
10426 (Generate_Definition): generate reference with type 'D' for definition
10427 of objects (object declaration and parameter specification), with
10428 appropriate locations and units, for use in local cross-references.
10429 (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created
10430 references of type 'I' for initialization in object definition.
10431 (Output_References): move part of function Lt and procedure
10432 Write_Entity_Name outside of the body. Ignore references of types 'D'
10433 and 'I' introduced for local cross-references.
10434 (Output_Local_References): new procedure to output the local
10435 cross-references sections.
10436 (Lref_Entity_Status): new array defining whether an entity is a local
10437 * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference
10438 with 'I' type when initialization expression is present.
10439 * get_scos.adb, get_scos.ads: Correct comments and typos
10440
10441 2011-08-02 Javier Miranda <miranda@adacore.com>
10442
10443 * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in
10444 the JVM target.
10445 * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in
10446 the JVM target.
10447 * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no
10448 TSD support.
10449
10450 2011-08-02 Vincent Celier <celier@adacore.com>
10451
10452 * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line
10453 (No_Space_Img): New function
10454 (Find_Excluded_Sources): When reading from a file, record the file name
10455 and the line number for each excluded source.
10456 (Mark_Excluded_Sources): When reporting an error, if the excluded
10457 sources were read from a file, include file name and line number in
10458 the error message.
10459
10460 2011-08-02 Ed Schonberg <schonberg@adacore.com>
10461
10462 * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2).
10463
10464 2011-08-02 Robert Dewar <dewar@adacore.com>
10465
10466 * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting
10467
10468 2011-08-02 Javier Miranda <miranda@adacore.com>
10469
10470 * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
10471 generation of TSDs to the DOTNET compiler.
10472 * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
10473 generation of TSDs to the DOTNET compiler.
10474
10475 2011-08-02 Javier Miranda <miranda@adacore.com>
10476
10477 * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
10478 record of all the tagged types declared inside library level package
10479 declarations, library level package bodies or library level subprograms.
10480 * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD
10481 associated with a given tagged type.
10482 (Build_VM_TSDs): New subprogram.
10483 * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main
10484 compilation units that are subprograms.
10485 * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main
10486 compilation units that are package bodies.
10487 (Expand_N_Package_Declaration): Generate TSDs of the main compilation
10488 units that are a package declaration or a package instantiation.
10489 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code
10490 reorganization to improve the error generated by the frontend when the
10491 function Ada.Tags.Secondary_Tag is not available.
10492 * rtsfind.ads (RE_Register_TSD): New runtime entity.
10493 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup.
10494
10495 2011-08-02 Javier Miranda <miranda@adacore.com>
10496
10497 * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode.
10498
10499 2011-08-02 Robert Dewar <dewar@adacore.com>
10500
10501 * s-imenne.ads: Minor reformatting.
10502
10503 2011-08-02 Robert Dewar <dewar@adacore.com>
10504
10505 * a-stunau.ads: Add pragma Suppress_Initialization for Big_String
10506 * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed
10507 * s-stalib.ads: Add pragma Suppress_Initialization for Big_String
10508
10509 2011-08-02 Robert Dewar <dewar@adacore.com>
10510
10511 * einfo.ads (Materialize_Entity): Document this is only for renamings
10512 * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate
10513 required debug information in the case where we transform the object
10514 declaration into a renaming declaration.
10515 * exp_ch4.adb (Expand_Concatenate): Generate debug info for result
10516 object
10517 * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of
10518 Materialize_Entity.
10519
10520 2011-08-02 Robert Dewar <dewar@adacore.com>
10521
10522 * einfo.ads, einfo.adb (Suppress_Initialization): Replaces
10523 Suppress_Init_Procs.
10524 * exp_ch3.adb, exp_disp.adb, freeze.adb: Use
10525 Suppress_Initialization/Initialization_Suppressed.
10526 * gnat_rm.texi: New documentation for pragma Suppress_Initialization
10527 * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function
10528 * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed
10529 * sem_prag.adb: New processing for pragma Suppress_Initialization.
10530
10531 2011-08-02 Robert Dewar <dewar@adacore.com>
10532
10533 * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb:
10534 Minor reformatting.
10535
10536 2011-08-02 Ed Schonberg <schonberg@adacore.com>
10537
10538 * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can
10539 only have inheritable classwide pre/postconditions.
10540
10541 2011-08-02 Javier Miranda <miranda@adacore.com>
10542
10543 * a-tags.ads, a-tags.adb (Check_TSD): New subprogram.
10544 * rtsfind.ads (RE_Check_TSD): New runtime entity.
10545 * exp_disp.adb (Make_DT): Generate call to the new runtime routine that
10546 checks if the external tag of a type is the same as the external tag
10547 of some other declaration.
10548
10549 2011-08-02 Thomas Quinot <quinot@adacore.com>
10550
10551 * s-taskin.ads: Minor reformatting.
10552
10553 2011-08-02 Emmanuel Briot <briot@adacore.com>
10554
10555 * g-comlin.adb (Display_Help): swap the order in which it prints the
10556 short help and the general usage.
10557
10558 2011-08-02 Ed Schonberg <schonberg@adacore.com>
10559
10560 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly
10561 the aspect declarations and attach them to the generic copy for
10562 subsequent analysis.
10563 (Analyze_Subprogram_Instantiation): copy explicitly the aspect
10564 declarations of the generic tree to the new subprogram declarations.
10565 * sem_attr.adb (Check_Precondition_Postcondition): recognize
10566 conditions that apply to a subprogram instance.
10567
10568 2011-08-02 Robert Dewar <dewar@adacore.com>
10569
10570 * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project].
10571
10572 2011-08-02 Ed Schonberg <schonberg@adacore.com>
10573
10574 * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged
10575 private type with a tagged full view is not derived in the immediate
10576 scope of the partial view, (RM 7.3 (7)) use the scope of the base type.
10577
10578 2011-08-02 Robert Dewar <dewar@adacore.com>
10579
10580 * exp_ch4.adb: Minor reformatting.
10581
10582 2011-08-02 Ed Schonberg <schonberg@adacore.com>
10583
10584 * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an
10585 Ada2012 iterator, the loop will be rewritten during expansion into a
10586 while loop with a cursor and an element declaration. Do not analyze the
10587 body in this case, because if the container is for indefinite types the
10588 actual subtype of the elements will only be determined when the cursor
10589 declaration is analyzed.
10590
10591 2011-08-02 Arnaud Charlet <charlet@adacore.com>
10592
10593 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore
10594 size/alignment related attributes in CodePeer_Mode.
10595
10596 2011-08-02 Gary Dismukes <dismukes@adacore.com>
10597
10598 * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to
10599 Prepend_Element, since this can result in the operation getting the
10600 wrong slot in the full type's dispatch table if the full type has
10601 inherited operations. The incomplete type's operation will get added
10602 to the proper position in the full type's primitives
10603 list later in Sem_Disp.Check_Operation_From_Incomplete_Type.
10604 (Process_Incomplete_Dependents): Add Is_Primitive test when checking for
10605 dispatching operations, since there are cases where nonprimitive
10606 subprograms can get added to the list of incomplete dependents (such
10607 as subprograms in nested packages).
10608 * sem_ch6.adb (Process_Formals): First, remove test for being in a
10609 private part when determining whether to add a primitive with a
10610 parameter of a tagged incomplete type to the Private_Dependents list.
10611 Such primitives can also occur in the visible part, and should not have
10612 been excluded from being private dependents.
10613 * sem_ch7.adb (Uninstall_Declarations): When checking the rule of
10614 RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents
10615 list of a Taft-amendment incomplete type is a primitive before issuing
10616 an error that the full type must appear in the same unit. There are
10617 cases where nonprimitives can be in the list (such as subprograms in
10618 nested packages).
10619 * sem_disp.adb (Derives_From): Use correct condition for checking that
10620 a formal's type is derived from the type of the corresponding formal in
10621 the parent subprogram (the condition was completely wrong). Add
10622 checking that was missing for controlling result types being derived
10623 from the result type of the parent operation.
10624
10625 2011-08-02 Yannick Moy <moy@adacore.com>
10626
10627 * errout.adb (First_Node): minor renaming
10628 * restrict.adb (Check_Formal_Restriction): put restriction warning on
10629 first node.
10630
10631 2011-08-02 Yannick Moy <moy@adacore.com>
10632
10633 * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator
10634 before accessing operands.
10635 * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to
10636 decide whether an initialization expression respects SPARK rules, as
10637 the plain node is the expanded one. This allows for more valid warnings
10638 to be issued.
10639 * gnat_rm.texi: Minor update.
10640
10641 2011-08-02 Arnaud Charlet <charlet@adacore.com>
10642
10643 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert
10644 previous change.
10645
10646 2011-08-02 Robert Dewar <dewar@adacore.com>
10647
10648 * sem_ch3.adb, sem_ch4.adb: Minor reformatting.
10649
10650 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
10651
10652 * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original
10653 loop statements and the element renaming declaration with a block when
10654 the element type is controlled.
10655
10656 2011-08-02 Yannick Moy <moy@adacore.com>
10657
10658 * sinfo.ads: Minor formatting.
10659
10660 2011-08-02 Ed Schonberg <schonberg@adacore.com>
10661
10662 * sem_aggr.adb (Add_Association): if the association has a box and no
10663 expression, use the Sloc of the aggregate itself for the new
10664 association.
10665 * errout.adb (First_Node): Exclude nodes with no Sloc, and always use
10666 the Original_Node.
10667
10668 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
10669
10670 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring.
10671 When a container is provided via a function call, generate a renaming
10672 of the function result. This avoids the creation of a transient scope
10673 and the premature finalization of the container.
10674 * exp_ch7.adb (Is_Container_Cursor): Removed.
10675 (Wrap_Transient_Declaration): Remove the supression of the finalization
10676 of the list controller when the declaration denotes a container cursor,
10677 it is not needed.
10678
10679 2011-08-02 Yannick Moy <moy@adacore.com>
10680
10681 * restrict.adb (Check_Formal_Restriction): only issue a warning if the
10682 node is from source, instead of the original node being from source.
10683 * sem_aggr.adb
10684 (Resolve_Array_Aggregate): refine the check for a static expression, to
10685 recognize also static ranges
10686 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration,
10687 Array_Type_Declaration): postpone the test for the type being a subtype
10688 mark after the type has been resolved, so that component-selection and
10689 expanded-name are discriminated.
10690 (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm
10691 to distinguish the case of an iteration scheme, so that an error is
10692 issed on a non-static range in SPARK except in an iteration scheme.
10693 * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with
10694 In_Iter_Schm = True.
10695 * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for
10696 user-defined operators so that they are allowed in renaming
10697 * sem_ch8.adb
10698 (Find_Selected_Component): refine the check for prefixing of operators
10699 so that they are allowed in renaming. Move the checks for restrictions
10700 on selector name after analysis discriminated between
10701 component-selection and expanded-name.
10702 * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on
10703 concatenation argument of string type if it is static.
10704 * sem_util.adb, sem_util.ads
10705 (Check_Later_Vs_Basic_Declarations): add a new function
10706 Is_Later_Declarative_Item to decice which declarations are allowed as
10707 later items, in the two different modes Ada 83 and SPARK. In the SPARK
10708 mode, add that renamings are considered as later items.
10709 (Enclosing_Package): new function to return the enclosing package
10710 (Enter_Name): correct the rule for homonyms in SPARK
10711 (Is_SPARK_Initialization_Expr): default to returning True on nodes not
10712 from source (result of expansion) to avoid issuing wrong warnings.
10713
10714 2011-08-02 Ed Schonberg <schonberg@adacore.com>
10715
10716 * errout.adb: On anything but an expression First_Node returns its
10717 argument.
10718
10719 2011-08-02 Pascal Obry <obry@adacore.com>
10720
10721 * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting.
10722
10723 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
10724
10725 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization.
10726 Set the associated loop as the related expression of internally
10727 generated cursors.
10728 * exp_ch7.adb (Is_Container_Cursor): New routine.
10729 (Wrap_Transient_Declaration): Supress the finalization of the list
10730 controller when the declaration denotes a container cursor.
10731
10732 2011-08-02 Yannick Moy <moy@adacore.com>
10733
10734 * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through
10735 command line now.
10736 * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the
10737 expression is a simple expression. This check cannot be performed in
10738 the semantics, so just drop it.
10739 (P_Index_Or_Discriminant_Constraint): move check that the index or
10740 discriminant is a subtype mark to Analyze_Subtype_Declaration in the
10741 semantics. Other cases were previously checked in the semantics.
10742 * par-ch4.adb (P_Name): move checks that a selector name is not
10743 character literal or an operator symbol to Find_Selected_Component in
10744 the semantics
10745 * par-ch5.adb (Parse_Decls_Begin_End): move check that basic
10746 declarations are not placed after later declarations in a separate
10747 procedure in Sem_Util (possibly not the best choice?), to be used both
10748 during parsing, for Ada 83 mode, and during semantic analysis, for
10749 SPARK mode.
10750 * par-endh.adb (Check_End): move check that end label is not missing
10751 to Process_End_Label in the semantics
10752 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove
10753 the special case for SPARK restriction
10754 * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End
10755 * restrict.adb, restrict.ads (Check_Formal_Restriction): add a
10756 parameter Force to issue the error message even on internal node (used
10757 for generated end label). Call Check_Restriction to check when an error
10758 must be issued. In SPARK mode, issue an error message even if the
10759 restriction is not set.
10760 (Check_Restriction): new procedure with an additional out parameter to
10761 inform the caller that a message has been issued
10762 * sem_aggr.adb: Minor modification of message
10763 * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction
10764 instead of issuing an error message directly
10765 * sem_ch3.adb (Analyze_Declarations): move here the check that basic
10766 declarations are not placed after later declarations, by calling
10767 Check_Later_Vs_Basic_Declarations
10768 (Analyze_Subtype_Declaration): move here the check that an index or
10769 discriminant constraint must be a subtype mark. Change the check that
10770 a subtype of String must start at one so that it works on subtype marks.
10771 * sem_ch4.adb (Analyze_Call): move here the check that a named
10772 association cannot follow a positional one in a call
10773 * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction
10774 instead of issuing an error message directly
10775 * sem_ch8.adb (Find_Selected_Component): move here the check that a
10776 selector name is not a character literal or an operator symbol. Move
10777 here the check that the prefix of an expanded name cannot be a
10778 subprogram or a loop statement.
10779 * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new
10780 procedure called from parsing and semantics to check that basic
10781 declarations are not placed after later declarations
10782 (Process_End_Label): move here the check that end label is not missing
10783
10784 2011-08-02 Arnaud Charlet <charlet@adacore.com>
10785
10786 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum
10787 representation clause in codepeer mode, since it confuses CodePeer and
10788 does not bring useful info.
10789
10790 2011-08-02 Ed Falis <falis@adacore.com>
10791
10792 * init.c: initialize fp hw on MILS.
10793
10794 2011-08-02 Ed Schonberg <schonberg@adacore.com>
10795
10796 * errout.adb (First_Node): for bodies, return the node itself (small
10797 optimization). For other nodes, do not check source_unit if the node
10798 comes from Standard.
10799
10800 2011-08-02 Robert Dewar <dewar@adacore.com>
10801
10802 * exp_ch3.adb: Minor comment additions.
10803 * sem_ch13.adb: Minor reformatting.
10804
10805 2011-08-02 Pascal Obry <obry@adacore.com>
10806
10807 * make.adb, makeutl.adb: Removes some superfluous directory separator.
10808
10809 2011-08-02 Robert Dewar <dewar@adacore.com>
10810
10811 * sem_attr.adb: Minor reformatting.
10812
10813 2011-08-02 Robert Dewar <dewar@adacore.com>
10814
10815 * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value
10816 (Has_Default_Component_Value): Removed
10817 * einfo.ads Comment updates
10818 (Has_Default_Aspect): Replaces Has_Default_Value
10819 (Has_Default_Component_Value): Removed
10820 * exp_ch13.adb
10821 (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects
10822 * exp_ch3.adb
10823 (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects
10824 (Get_Simple_Init_Val): Handle Default_Value aspect
10825 (Needs_Simple_Initialization): Handle Default_Value aspect
10826 * exp_ch3.ads: Needs_Simple_Initialization
10827 * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect
10828 * par-prag.adb (Pragma_Default[_Component]Value) Removed
10829 * sem_ch13.adb
10830 (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects
10831 * sem_prag.adb (Pragma_Default[_Component]Value) Removed
10832 * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed
10833
10834 2011-08-02 Ed Schonberg <schonberg@adacore.com>
10835
10836 * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate
10837 package containing iteration primitives.
10838 exp_ch5.adb (Expand_Iterator_Loop): ditto.
10839
10840 2011-08-02 Ed Schonberg <schonberg@adacore.com>
10841
10842 * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with
10843 "of", pre-analyze expression in case it is a function call with
10844 finalization actions that must be placed ahead of the loop.
10845 * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present
10846 on an Ada2012 iterator, insert them ahead of the rewritten loop.
10847
10848 2011-08-02 Geert Bosch <bosch@adacore.com>
10849
10850 * cstand.adb (Create_Float_Types): Only consider C's long double for
10851 Long_Long_Float, in addition to double.
10852
10853 2011-08-02 Robert Dewar <dewar@adacore.com>
10854
10855 * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads,
10856 sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads,
10857 prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb:
10858 Minor reformatting.
10859
10860 2011-08-02 Ed Schonberg <schonberg@adacore.com>
10861
10862 * sem_attr.adb: handle properly 'Result when it is a prefix of an
10863 indexed component.
10864
10865 2011-08-02 Javier Miranda <miranda@adacore.com>
10866
10867 * einfo.ads, einfo.adb
10868 (Original_Access_Type): Move this attribute to Node26 since there was
10869 an undocumented use of Node21 in E_Access_Subprogram_Type entities
10870 which causes conflicts and breaks the generation of the .NET compiler.
10871 (Interface_Name): Add missing documentation on JGNAT only uses of
10872 this attribute.
10873
10874 2011-08-02 Geert Bosch <bosch@adacore.com>
10875
10876 * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist
10877 (Find_Back_End_Float_Type): Likewise
10878 (Create_Back_End_Float_Types): Likewise
10879 (Create_Float_Types): Likewise
10880 (Register_Float_Type): Likewise
10881 * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of
10882 Nlist and split out type selection in new local Find_Base_Type function.
10883 * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of
10884 Nlist
10885 * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist
10886
10887 2011-08-02 Robert Dewar <dewar@adacore.com>
10888
10889 * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in
10890 alpha order).
10891 * opt.ads: Minor comment change.
10892 * sem_ch12.adb: Minor code reorganization.
10893
10894 2011-08-02 Gary Dismukes <dismukes@adacore.com>
10895
10896 * sem_ch3.adb (Complete_Private_Subtype): Don't append the private
10897 subtype's list of rep items to the list on the full subtype in the case
10898 where the lists are the same.
10899
10900 2011-08-02 Geert Bosch <bosch@adacore.com>
10901
10902 * switch-c.adb (Free): New deallocation procedure to avoid implicitly
10903 using the one from System.Strings, which also deallocates all strings.
10904
10905 2011-08-02 Geert Bosch <bosch@adacore.com>
10906
10907 * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New
10908 function.
10909 * gcc-interface/Make-lang.in: Update dependencies.
10910
10911 2011-08-02 Olivier Hainque <hainque@adacore.com>
10912
10913 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function
10914 end_locus.
10915
10916 2011-08-02 Javier Miranda <miranda@adacore.com>
10917
10918 * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals
10919 associated with anonymous access to subprograms.
10920
10921 2011-08-02 Geert Bosch <bosch@adacore.com>
10922
10923 * opt.ads
10924 (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions.
10925 (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition.
10926 * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads
10927 (Add_Symbol_Definition): Move to switch-c.adb
10928 (Process_Command_Line_Symbol_Definitions): Adjust references to above.
10929 * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation.
10930 (Add_Symbol_Definition): Move to switch-c.adb.
10931 * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw.
10932 * sem_warn.adb
10933 (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
10934 Move to warnsw.adb.
10935 * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size,
10936 Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
10937 Move to warnsw.adb.
10938 * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw.
10939 (Add_Symbol_Definition): Moved from Prepcomp.
10940 * switch-c.ads: Update copyright notice. Use String_List instead of
10941 Argument_List, removing dependency on System.OS_Lib.
10942
10943 2011-08-02 Yannick Moy <moy@adacore.com>
10944
10945 * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal
10946 mode on initialization expression which does not respect SPARK
10947 restrictions.
10948 * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines
10949 if the tree referenced by its argument represents an initialization
10950 expression in SPARK, suitable for initializing an object in an object
10951 declaration.
10952
10953 2011-08-02 Javier Miranda <miranda@adacore.com>
10954
10955 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the
10956 internally generated access to subprogram with its associated protected
10957 subprogram type.
10958 * einfo.ads, einfo.adb (Original_Access_Type): New attribute.
10959
10960 2011-08-02 Geert Bosch <bosch@adacore.com>
10961
10962 * cstand.adb (Register_Float_Type): Print information about type to
10963 register, if the Debug_Flag_Dot_B is set.
10964 * debug.adb (Debug_Flag_Dot_B): Document d.b debug option.
10965 * rtsfind.ads (RE_Max_Base_Digits): New run time entity.
10966 * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations
10967 with a requested precision of more than Max_Digits digits and no more
10968 than Max_Base_Digits digits, if a range specification is present and the
10969 Predefined_Float_Types list has a suitable type to derive from.
10970 * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the
10971 case of type completion with pragma Import
10972 * sem_prag.adb
10973 (Process_Import_Predefined_Type): Processing to complete a type
10974 with pragma Import. Currently supports floating point types only.
10975 (Set_Convention_From_Pragma): Do nothing without underlying type.
10976 (Process_Convention): Guard against absence of underlying type,
10977 which may happen when importing incomplete types.
10978 (Process_Import_Or_Interface): Handle case of importing predefined
10979 types. Tweak error message.
10980
10981 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
10982
10983 * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined
10984 functions to previous change. Reorganize code slightly.
10985
10986 2011-08-02 Geert Bosch <bosch@adacore.com>
10987
10988 * back_end.ads (Register_Type_Proc): New call back procedure type for
10989 allowing the back end to provide information about available types.
10990 (Register_Back_End_Types): New procedure to register back end types.
10991 * back_end.adb (Register_Back_End_Types): Call the back end to enumerate
10992 available types.
10993 * cstand.adb (Back_End_Float_Types): New list for floating point types
10994 supported by the back end.
10995 (Build_Float_Type): Add extra parameter for Float_Rep_Kind.
10996 (Copy_Float_Type): New procedure to make new copies of predefined types.
10997 (Register_Float_Type): New call back procedure to populate the BEFT list
10998 (Find_Back_End_Float_Type): New procedure to find a BEFT by name
10999 (Create_Back_End_Float_Types): New procedure to populate the BEFT list.
11000 (Create_Float_Types): New procedure to create entities for floating
11001 point types predefined in Standard, and put these and any remaining
11002 BEFTs on the Predefined_Float_Types list.
11003 * stand.ads (Predefined_Float_Types): New list for predefined floating
11004 point types that do not have declarations in package Standard.
11005
11006 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
11007
11008 * inline.adb (Get_Code_Unit_Entity): New local function. Returns the
11009 entity node for the unit containing the parameter.
11010 (Add_Inlined_Body): Use it to find the unit containing the subprogram.
11011 (Add_Inlined_Subprogram): Likewise.
11012 * gcc-interface/Make-lang.in: Update dependencies.
11013
11014 2011-08-02 Thomas Quinot <quinot@adacore.com>
11015
11016 * s-stusta.adb (Print): Make sure Pos is always initialized to a
11017 suitable value.
11018
11019 2011-08-02 Geert Bosch <bosch@adacore.com>
11020
11021 * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image.
11022
11023 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
11024
11025 * sem_type.adb (Covers): Move trivial case to the top and reuse the
11026 computed value of Base_Type.
11027
11028 2011-08-02 Yannick Moy <moy@adacore.com>
11029
11030 * restrict.adb (Check_Restriction): issue an error for any use of
11031 class-wide, even if the No_Dispatch restriction is not set.
11032 * sem_aggr.adb: Correct typos in comments and messages in formal mode
11033 * sem_ch3.adb (Process_Full_View): issue an error in formal mode is,
11034 when completing a private extension, the type named in the private part
11035 is not the same as that named in the visible part.
11036 * sem_res.adb (Resolve_Call): issue an error in formal mode on the use
11037 of an inherited primitive operations of a tagged type or type extension
11038 that returns the tagged type.
11039 * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new
11040 function which returns True for an implicit operation inherited by the
11041 derived type declaration for the argument type.
11042 (Is_SPARK_Object_Reference): move to appropriate place in alphabetic
11043 order.
11044
11045 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11046
11047 * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from
11048 Process_Bounds, to perform analysis with expansion of a range or an
11049 expression that is the iteration scheme for a loop.
11050 (Analyze_Iterator_Specification): If domain of iteration is given by a
11051 function call with a controlled result, as is the case if call returns
11052 a predefined container, ensure that finalization actions are properly
11053 generated.
11054 * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range.
11055
11056 2011-08-02 Javier Miranda <miranda@adacore.com>
11057
11058 * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo.
11059 * gcc-interface/Make-lang.in: Update dependencies.
11060
11061 2011-08-02 Javier Miranda <miranda@adacore.com>
11062
11063 * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to
11064 determine if the analysis is performed using N or Original_Node (N).
11065 * exp_util.adb (Side_Effect_Free): Code cleanup since the new
11066 functionality of routine Is_Variable avoids code duplication.
11067 * checks.adb (Determine_Range): Handle temporaries generated by
11068 Remove_Side_Effects.
11069
11070 2011-08-02 Javier Miranda <miranda@adacore.com>
11071
11072 * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and
11073 expansion of the condition. Required since the previous analysis was
11074 done with expansion disabled (see Resolve_Quantified_Expression) and
11075 hence checks were not inserted and record comparisons have not been
11076 expanded.
11077
11078 2011-08-02 Ed Falis <falis@adacore.com>
11079
11080 * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads:
11081 Update header.
11082
11083 2011-08-02 Bob Duff <duff@adacore.com>
11084
11085 * opt.ads: Minor comment fix.
11086
11087 2011-08-02 Bob Duff <duff@adacore.com>
11088
11089 * sem_ch12.adb (Analyze_Package_Instantiation,
11090 Analyze_Subprogram_Instantiation): Turn off style checking while
11091 analyzing an instance. Whatever style checks that apply to the generic
11092 unit should apply, so it makes no sense to apply them in an instance.
11093 This was causing trouble when compiling an instance of a runtime
11094 unit that violates the -gnatyO switch.
11095 * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from
11096 one of the two case statements, causing spurious errors.
11097
11098 2011-08-02 Robert Dewar <dewar@adacore.com>
11099
11100 * uname.adb: Minor reformatting.
11101 * gnatcmd.adb: Minor reformatting.
11102 * exp_attr.adb: Minor reformatting.
11103
11104 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11105
11106 * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction
11107 No_Dispatching_Calls, do not look for the Assign primitive, because
11108 predefined primitives are not created in this case.
11109
11110 2011-08-02 Bob Duff <duff@adacore.com>
11111
11112 * stylesw.ads: Minor comment fixes.
11113
11114 2011-08-02 Robert Dewar <dewar@adacore.com>
11115
11116 * freeze.adb (Add_To_Result): New procedure.
11117
11118 2011-08-02 Jose Ruiz <ruiz@adacore.com>
11119
11120 * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run
11121 time, if the specific run-time routines for handling streams of strings
11122 are not available, use the default mechanism.
11123
11124 2011-08-02 Arnaud Charlet <charlet@adacore.com>
11125
11126 * s-regpat.ads: Fix typo.
11127
11128 2011-08-02 Vincent Celier <celier@adacore.com>
11129
11130 * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is
11131 not null, call it to create the in memory config project file without
11132 parsing an existing default config project file.
11133
11134 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
11135
11136 * atree.adb (Allocate_Initialize_Node): Remove useless temporaries.
11137
11138 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11139
11140 * sem_elim.adb: an abstract subprogram does not need an eliminate
11141 pragma for its descendant to be eliminable.
11142
11143 2011-08-02 Ed Falis <falis@adacore.com>
11144
11145 * init.c: revert to handling before previous checkin for VxWorks
11146 * s-intman-vxworks.adb: delete unnecessary declarations related to
11147 using Ada interrupt facilities for handling signals.
11148 Delete Initialize_Interrupts. Use __gnat_install_handler instead.
11149 * s-intman-vxworks.ads: Import __gnat_install_handler as
11150 Initialize_Interrupts.
11151 * s-taprop-vxworks.adb: Delete Signal_Mask.
11152 (Abort_Handler): change construction of mask to unblock exception
11153 signals.
11154
11155 2011-08-02 Jerome Guitton <guitton@adacore.com>
11156
11157 * a-except-2005.adb (Raise_From_Signal_Handler): Call
11158 Debug_Raise_Exception before propagation starts.
11159
11160 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
11161
11162 * exp_ch6.adb (Expand_Call): Guard restriction checks with a call
11163 to Restriction_Check_Required.
11164 * sem_ch3.adb (Analyze_Object_Declaration): Likewise.
11165 * sem_res.adb (Resolve_Call): Likewise.
11166 * sem_attr.adb (Check_Stream_Attribute): Likewise.
11167
11168 2011-08-02 Bob Duff <duff@adacore.com>
11169
11170 * stylesw.ads: Update comment.
11171 * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
11172 * errout.ads: Remove obsolete comment.
11173
11174 2011-08-02 Javier Miranda <miranda@adacore.com>
11175
11176 * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
11177 (Set_Is_Safe_To_Reevaluate): new procedure.
11178 * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
11179 assignment is allowed on safe-to-reevaluate variables.
11180 (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
11181 temporary created to remove side effects in expressions that use
11182 the secondary stack as safe-to-reevaluate.
11183 * exp_util.adb (Side_Effect_Free): Add missing code to handle well
11184 variables that are not true constants.
11185
11186 2011-08-02 Robert Dewar <dewar@adacore.com>
11187
11188 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
11189 sem_res.adb, sem_ch6.adb: Minor reformatting.
11190
11191 2011-08-02 Jerome Guitton <guitton@adacore.com>
11192
11193 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
11194
11195 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11196
11197 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
11198 not set Overridden_Operation if subprogram is an initialization
11199 procedure.
11200
11201 2011-08-02 Yannick Moy <moy@adacore.com>
11202
11203 * par-ch6.adb: Correct obsolete name in comments
11204 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
11205 which takes two message arguments (existing function takes one), with
11206 second message used for continuation.
11207 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
11208 block statements that originate from a source block statement, not
11209 generated block statements
11210 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
11211 symmetry with procedure case
11212 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
11213 function to issue an error in formal mode if a package specification
11214 contains more than one tagged type or type extension.
11215 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
11216 parameters matching formals of tagged types are objects (or ancestor
11217 type conversions of objects), not general expressions. Issue an error
11218 on view conversions that are not involving ancestor conversion of an
11219 extended type.
11220 (Resolve_Type_Conversion): in formal mode, issue an error on the
11221 operand of an ancestor type conversion which is not an object
11222 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
11223 procedure so that it works also for actuals of function calls
11224 (Is_Actual_Tagged_Parameter): new function which determines if its
11225 argument is an actual parameter of a formal of tagged type in a
11226 subprogram call
11227 (Is_SPARK_Object_Reference): new function which determines if the tree
11228 referenced by its argument represents an object in SPARK
11229
11230 2011-08-02 Robert Dewar <dewar@adacore.com>
11231
11232 * sem_ch3.adb: Minor reformatting
11233 Minor comment addition
11234 Minor error msg text change
11235
11236 2011-08-02 Javier Miranda <miranda@adacore.com>
11237
11238 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
11239 function. Used to be more precise when we generate a variable plus one
11240 assignment to remove side effects in the evaluation of the Bound
11241 expressions.
11242 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
11243 of the bound expression to force its re-analysis and thus expand the
11244 associated transient scope (if required). Code cleanup replacing the
11245 previous code that declared the constant entity by an invocation to
11246 routine Force_Evaluation which centralizes this work in the frontend.
11247
11248 2011-08-02 Robert Dewar <dewar@adacore.com>
11249
11250 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
11251 (Base_Type): Now uses improved Is_Base_Type function
11252 * einfo.ads (Base_Type): Inline this function
11253
11254 2011-08-02 Robert Dewar <dewar@adacore.com>
11255
11256 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
11257 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
11258
11259 2011-08-02 Arnaud Charlet <charlet@adacore.com>
11260
11261 * gcc-interface/Make-lang.in: Update dependencies.
11262 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
11263 targets.
11264
11265 2011-08-02 Yannick Moy <moy@adacore.com>
11266
11267 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
11268 non-simple expression used in delta constraint
11269 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
11270 index constraint which is not a subtype mark
11271 * par.adb: With and use Restrict
11272 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
11273 mode on component type which is not a subtype mark and default
11274 expression on component
11275 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
11276 of string which does not have a lower index bound equal to 1
11277 (Array_Type_Declaration): issue an error in formal mode on index or
11278 component type which is not a subtype mark, and on aliased keyword on
11279 component
11280 (Derived_Type_Declaration): issue an error in formal mode on interface,
11281 limited or abstract type
11282 (Record_Type_Declaration): issue an error in formal mode on interface
11283 (Record_Type_Definition): issue an error in formal mode on tagged types
11284 and type extensions not declared in the specification of a library unit
11285 package; on null non-tagged record; on variant part
11286
11287 2011-08-02 Vincent Celier <celier@adacore.com>
11288
11289 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
11290 not declared for qualified library project when Library_Name is not
11291 declared, but Library_Dir is.
11292
11293 2011-08-02 Robert Dewar <dewar@adacore.com>
11294
11295 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
11296 pragmas (affects aspects [Component_]Default_Value
11297 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
11298 component type for the resolution
11299
11300 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
11301
11302 * einfo.adb (Base_Type): Tune implementation for speed.
11303
11304 2011-08-02 Robert Dewar <dewar@adacore.com>
11305
11306 * freeze.adb: Minor reformatting.
11307
11308 2011-08-02 Thomas Quinot <quinot@adacore.com>
11309
11310 * scos.ads: Update comments.
11311
11312 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11313
11314 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
11315 base type, because the parent may be a subtype of a private type whose
11316 convention is established in a private part.
11317
11318 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
11319
11320 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
11321 statement in a block when the expansion of the return expression has
11322 created a finalization chain.
11323 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
11324 with the parent node.
11325 Add N_Extended_Return_Statement to handle the case where a transient
11326 object declaration appears in the Return_Object_Declarations list of
11327 an extended return statement.
11328
11329 2011-08-02 Matthew Gingell <gingell@adacore.com>
11330
11331 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
11332 unused parameter 'name'.
11333
11334 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11335
11336 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
11337 inherited operation, check whether its alias, which is the source
11338 operastion that it renames, has been marked eliminated.
11339
11340 2011-08-02 Javier Miranda <miranda@adacore.com>
11341
11342 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
11343 in-mode parameter whose type is an access type since it can be used to
11344 modify its designated object. Enforce code that handles as safe an
11345 access type that is not access-to-constant but it is the result of a
11346 previous removal of side-effects.
11347 (Remove_Side_Effects): Minor code reorganization of cases which require
11348 no action. Done to incorporate documentation on new cases uncovered
11349 working in this ticket: no action needed if this routine was invoked
11350 too early and the nodes are not yet decorated.
11351 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
11352 to routine Remove_Side_Effects by calls to Force_Evaluation since they
11353 were issued with actuals that are implicitly provided by
11354 Force_Evaluation.
11355
11356 2011-08-02 Robert Dewar <dewar@adacore.com>
11357
11358 * sem_ch3.adb, sem_res.adb: Minor reformatting.
11359
11360 2011-08-02 Yannick Moy <moy@adacore.com>
11361
11362 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
11363 to issue an error in formal mode on attribute not supported in this mode
11364 (Analyze_Attribute): issue errors on standard attributes not supported
11365 in formal mode.
11366 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
11367 comment, and issue error in formal mode on modulus which is not a power
11368 of 2.
11369 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
11370 range.
11371 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
11372 subtype mark.
11373 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
11374 operator on modular type (except 'not').
11375
11376 2011-08-02 Robert Dewar <dewar@adacore.com>
11377
11378 * gnat_rm.texi: Minor reformatting.
11379
11380 2011-08-02 Arnaud Charlet <charlet@adacore.com>
11381
11382 * s-osinte-linux.ads: Minor comment update and reformatting.
11383 * i-cexten.ads: Make this unit pure, as for its parent.
11384 Will allow its usage in more contexts if needed.
11385
11386 2011-08-02 Robert Dewar <dewar@adacore.com>
11387
11388 * s-utf_32.ads: Minor comment fix.
11389
11390 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11391
11392 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
11393 operation of a tagged synchronized type, handle the case where the
11394 controlling argument is overloaded.
11395
11396 2011-08-02 Yannick Moy <moy@adacore.com>
11397
11398 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
11399 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
11400 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
11401 SPARK mode and formal verification mode on processing SPARK restriction
11402 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
11403 requiring consistency checking.
11404
11405 2011-08-02 Robert Dewar <dewar@adacore.com>
11406
11407 * sem_res.adb: Minor reformatting.
11408
11409 2011-08-02 Robert Dewar <dewar@adacore.com>
11410
11411 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
11412 a-cforse.ads: Remove unneeded with of Ada.Containers
11413 Remove commented out pragma Inline's
11414 Move specifications of new subprograms to the actual specs
11415
11416 2011-08-02 Yannick Moy <moy@adacore.com>
11417
11418 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
11419 a-cforse.ads: Update comments.
11420
11421 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11422
11423 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
11424
11425 2011-08-02 Robert Dewar <dewar@adacore.com>
11426
11427 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
11428 a-cforse.ads, a-cofove.ads: Minor reformatting.
11429
11430 2011-08-02 Claire Dross <dross@adacore.com>
11431
11432 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
11433 a-cofove.ads: Add comments.
11434
11435 2011-08-02 Yannick Moy <moy@adacore.com>
11436
11437 * gnat_rm.texi: Document formal containers.
11438
11439 2011-08-02 Emmanuel Briot <briot@adacore.com>
11440
11441 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
11442 are empty sections.
11443
11444 2011-08-02 Robert Dewar <dewar@adacore.com>
11445
11446 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
11447 reformatting.
11448
11449 2011-08-02 Robert Dewar <dewar@adacore.com>
11450
11451 * aspects.adb: New aspects Default_Value and Default_Component_Value
11452 New format of Aspect_Names table checks for omitted entries
11453 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
11454 handling of boolean aspects for derived types.
11455 New aspects Default_Value and Default_Component_Value
11456 New format of Aspect_Names table checks for omitted entries
11457 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
11458 (Has_Default_Value): New flag
11459 (Has_Default_Component_Value): New flag
11460 (Has_Default_Value): New flag
11461 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
11462 table.
11463 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
11464 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
11465 Default_Value and Default_Component_Value
11466 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
11467 New aspects Default_Value and Default_Component_Value
11468 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
11469 * sprint.adb: Print N_Aspect_Specification node when called from gdb
11470
11471 2011-08-02 Vincent Celier <celier@adacore.com>
11472
11473 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
11474 inherit library kind.
11475
11476 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11477
11478 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
11479 Minor reformatting.
11480
11481 2011-08-02 Robert Dewar <dewar@adacore.com>
11482
11483 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
11484
11485 2011-08-02 Yannick Moy <moy@adacore.com>
11486
11487 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
11488
11489 2011-08-02 Robert Dewar <dewar@adacore.com>
11490
11491 * impunit.adb: Add comment.
11492
11493 2011-08-02 Yannick Moy <moy@adacore.com>
11494
11495 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
11496 qualification of aggregates in formal mode
11497 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
11498 another aggregate
11499 (Resolve_Aggregate): complete the test that an aggregate is adequately
11500 qualified in formal mode
11501
11502 2011-08-02 Pascal Obry <obry@adacore.com>
11503
11504 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
11505 * mlib-prj.adb: Supress warning when compiling binder generated file.
11506 (Build_Library): Supress all warnings when compiling the binder
11507 generated file.
11508
11509 2011-08-02 Yannick Moy <moy@adacore.com>
11510
11511 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
11512 from here...
11513 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
11514 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
11515 Add with/use clauses to make Check_Formal_Restriction visible
11516
11517 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11518
11519 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
11520 in-parameters when type of the generic formal is private in the generic
11521 spec and non-private in the body.
11522
11523 2011-08-02 Claire Dross <dross@adacore.com>
11524
11525 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
11526 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
11527 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
11528 * impunit.adb, Makefile.rtl: Take new files into account.
11529
11530 2011-08-02 Robert Dewar <dewar@adacore.com>
11531
11532 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
11533 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
11534
11535 2011-08-02 Yannick Moy <moy@adacore.com>
11536
11537 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
11538 formal mode
11539 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
11540 matching static array bounds, taking into account the special case of
11541 string literals
11542 * sem_ch3.adb: Typo in comment.
11543
11544 2011-08-02 Yannick Moy <moy@adacore.com>
11545
11546 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
11547 which issues an error in formal mode if its argument node is originally
11548 from source
11549 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
11550 has a discriminant specification so that it does not include the case
11551 of derived types
11552 (Derived_Type_Declaration): move here the test that a derived type has a
11553 discriminant specification
11554 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
11555 first element of a component association before accessing its choices
11556 (presence of component association is not enough)
11557 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
11558 declaration is a library item before accessing the next element in a
11559 list, as library items are not member of lists
11560 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
11561 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
11562 Check_Formal_Restriction whenever possible.
11563
11564 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11565
11566 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
11567 reference when needed.
11568
11569 2011-08-02 Bob Duff <duff@adacore.com>
11570
11571 * gnat_ugn.texi: Fix typo.
11572
11573 2011-08-02 Vincent Celier <celier@adacore.com>
11574
11575 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
11576 archive file name. Do not use the full path name of archives for Open
11577 VMS.
11578
11579 2011-08-02 Robert Dewar <dewar@adacore.com>
11580
11581 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
11582 Analyze_Aspect_Specifications
11583 * sem_ch13.adb
11584 (Analyze_Aspect_Specifications): New handling for boolean aspects
11585 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
11586 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
11587 sequence for Analyze_Aspect_Specifications
11588 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
11589 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
11590
11591 2011-08-02 Robert Dewar <dewar@adacore.com>
11592
11593 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
11594 aspects, since these no longer exist.
11595
11596 2011-08-02 Robert Dewar <dewar@adacore.com>
11597
11598 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
11599 semicolon, do not try to see if there are aspects following it.
11600 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
11601 aspect spec.
11602
11603 2011-08-02 Robert Dewar <dewar@adacore.com>
11604
11605 * sem_ch8.adb, aspects.ads: Minor reformatting.
11606
11607 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
11608
11609 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
11610 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
11611 extracted from...
11612 (Analyze_Aspect_Specifications): ...here. Call above procedure.
11613
11614 2011-08-02 Yannick Moy <moy@adacore.com>
11615
11616 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
11617 mode on subprogram declaration outside of package specification, unless
11618 it is followed by a pragma Import
11619 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
11620 Access_Type_Declaration): issue error in formal mode on access type
11621 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
11622 incomplete type
11623 (Analyze_Object_Declaration): issue error in formal mode on object
11624 declaration which does not respect SPARK restrictions
11625 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
11626 declaration which does not respect SPARK restrictions
11627 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
11628 error in formal mode on digits or delta constraint
11629 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
11630 decimal fixed point type
11631 (Derived_Type_Declaration): issue error in formal mode on derived type
11632 other than type extensions of tagged record types
11633 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
11634 with check on access definition
11635 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
11636 mode on protected definition.
11637 (Analyze_Task_Definition): issue error in formal mode on task definition
11638
11639 2011-08-02 Robert Dewar <dewar@adacore.com>
11640
11641 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
11642
11643 2011-08-02 Javier Miranda <miranda@adacore.com>
11644
11645 * sem_ch6.adb (Can_Override_Operator): New function.
11646 (Verify_Overriding_Indicator): Add missing code to check overriding
11647 indicator in operators. Fixes regression.
11648 (Check_Overriding_Indicator): Minor reformating after replacing the
11649 code that evaluates if the subprogram can override an operator by
11650 invocations to the above new function.
11651 * einfo.adb
11652 (Write_Field26_Name): Add missing code to ensure that, following
11653 the documentation in einfo.ads, this field is not shown as attribute
11654 "Static_Initialization" on non-dispatching functions.
11655
11656 2011-08-02 Jose Ruiz <ruiz@adacore.com>
11657
11658 * sem_res.adb (Resolve_Call): A call to
11659 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
11660 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
11661 i.e., when the second parameter is of type Time_Span.
11662
11663 2011-08-02 Vincent Celier <celier@adacore.com>
11664
11665 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
11666 with an archive instead of -L<library dir> -l<library name>.
11667
11668 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11669
11670 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
11671 mark the base types In_Use in addition to making the operations
11672 use_visible.
11673
11674 2011-08-02 Ed Falis <falis@adacore.com>
11675
11676 * init.c: add and setup __gnat_signal_mask for the exception signals
11677 * s-inmaop-vxworks.adb: new file.
11678 * s-intman-vxworks.adb: remove unnecessary initializations and
11679 simplify remaining
11680 * s-intman-vxworks.ads: remove unnecessary variable
11681 * s-taprop-vxworks.adb: simplify signal initialization
11682
11683 2011-08-02 Robert Dewar <dewar@adacore.com>
11684
11685 * sem_ch8.adb: Minor code reorganization, comment updates.
11686
11687 2011-08-02 Robert Dewar <dewar@adacore.com>
11688
11689 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
11690 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
11691 here from Sem_Res.
11692 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
11693 (Matching_Static_Array_Bounds): Moved here from Sem_Res
11694
11695 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11696
11697 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
11698 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
11699 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
11700 use_type_clauses, to handle more efficiently use_type and use_all_type
11701 constructs.
11702 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
11703 Ada2012 Use_All_Type clause.
11704 (Use_Class_Wide_Operations): new procedure.
11705
11706 2011-08-02 Robert Dewar <dewar@adacore.com>
11707
11708 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
11709 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
11710 expression to expression function.
11711
11712 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11713
11714 * sem_ch4.adb: transform simple Ada2012 membership into equality only
11715 if types are compatible.
11716
11717 2011-08-02 Yannick Moy <moy@adacore.com>
11718
11719 * sem_res.adb (Matching_Static_Array_Bounds): new function which
11720 returns True if its argument array types have same dimension and same
11721 static bounds at each index.
11722 (Resolve_Actuals): issue an error in formal mode on actuals passed as
11723 OUT or IN OUT paramaters which are not view conversions in SPARK.
11724 (Resolve_Arithmetic_Op): issue an error in formal mode on
11725 multiplication or division with operands of fixed point types which are
11726 not qualified or explicitly converted.
11727 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
11728 Boolean or array type (except String) operands.
11729 (Resolve_Equality_Op): issue an error in formal mode on equality
11730 operators for array types other than String with non-matching static
11731 bounds.
11732 (Resolve_Logical_Op): issue an error in formal mode on logical operators
11733 for array types with non-matching static bounds. Factorize the code in
11734 Matching_Static_Array_Bounds.
11735 (Resolve_Qualified_Expression): issue an error in formal mode on
11736 qualified expressions for array types with non-matching static bounds.
11737 (Resolve_Type_Conversion): issue an error in formal mode on type
11738 conversion for array types with non-matching static bounds
11739
11740 2011-08-02 Robert Dewar <dewar@adacore.com>
11741
11742 * par-ch10.adb: Minor code reorganization (use Nkind_In).
11743
11744 2011-08-02 Ed Schonberg <schonberg@adacore.com>
11745
11746 * par-ch9.adb: save location of entry for proper error message.
11747
11748 2011-08-02 Javier Miranda <miranda@adacore.com>
11749
11750 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
11751 (Use_Full_View) which permits this routine to climb through the
11752 ancestors using the full-view of private parents.
11753 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
11754 Use_Full_View to true in calls to Is_Ancestor.
11755 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
11756 true in call to Is_Ancestor.
11757 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
11758 Use_Full_View to true in call to Is_Ancestor.
11759 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
11760 call to Is_Ancestor.
11761 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
11762 Use_Full_View to true in calls to Is_Ancestor.
11763 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
11764 Make_Select_Specific_Data_Table, Register_Primitive,
11765 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
11766 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
11767 to true in call to Is_Ancestor.
11768 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
11769 Use_Full_View to true in calls to Is_Ancestor.
11770 * exp_cg.adb
11771 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
11772 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
11773
11774 2011-08-02 Robert Dewar <dewar@adacore.com>
11775
11776 * gnat_rm.texi: Minor reformatting.
11777 * sem_prag.adb: Minor reformatting.
11778
11779 2011-08-02 Tristan Gingold <gingold@adacore.com>
11780
11781 * vms_data.ads: Add VMS qualifier for -gnateP.
11782
11783 2011-08-02 Robert Dewar <dewar@adacore.com>
11784
11785 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
11786 * par-ch7.adb (P_Package): Proper placement of aspects for package
11787 decl/instantiation.
11788 * par-endh.adb (Check_End): Ad Is_Sloc parameter
11789 (End_Statements): Add Is_Sloc parameterr
11790 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
11791 (Check_End): Ad Is_Sloc parameter
11792 (End_Statements): Add Is_Sloc parameterr
11793
11794 2011-08-02 Vincent Celier <celier@adacore.com>
11795
11796 * ug_words: Add VMS qualifier equivalent to -gnateP:
11797 /SYMBOL_PREPROCESSING.
11798
11799 2011-08-02 Jose Ruiz <ruiz@adacore.com>
11800
11801 * gnat-style.texi: For hexadecimal numeric literals the typical
11802 grouping of digits is 4 to represent 2 bytes.
11803 A procedure spec which is split into several lines is indented two
11804 characters.
11805
11806 2011-08-02 Yannick Moy <moy@adacore.com>
11807
11808 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
11809 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
11810 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
11811 properly qualified
11812 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
11813 choice in array aggregate
11814 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
11815 mark as ancestor
11816 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
11817 positional and named aggregate for record, or others in record
11818 aggregate, or multiple choice in record aggregate
11819 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
11820 array operands to logical operations AND, OR and XOR do not have the
11821 same static lower and higher bounds
11822 * sem_ch5.adb, sinfo.ads: Correct typos in comments
11823
11824 2011-08-01 Robert Dewar <dewar@adacore.com>
11825
11826 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
11827 Replaces Last_Source_Node_In_Sequence.
11828 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
11829 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
11830 parens and blank in string (this was inconsistently implemented).
11831 * errout.ads
11832 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
11833 blank in string (this was inconsistently implemented).
11834 * gnat1drv.adb
11835 (Set_Global_Switches): Set formal mode switches appropriately
11836 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
11837 * par-prag.adb
11838 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
11839 call Set_Error_Msg_Lang to set "spark" as language name.
11840 * par.adb: Remove unnecessary call to set formal language for errout
11841 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
11842 appropriately and call Set_Error_Msg_Lang to set "spark" as language
11843 name.
11844 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
11845 calls to it, moved after resolution so that types are known
11846 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
11847 result of concatenation is not of type String
11848 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
11849 concatenation is not properly restricted
11850 * gnat_rm.texi: Add doc on pragma Spark_95.
11851 * gcc-interface/Makefile.in: Remove obsolete target pairs for
11852 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
11853 * gcc-interface/Make-lang.in: Update dependencies.
11854
11855 2011-08-01 Javier Miranda <miranda@adacore.com>
11856
11857 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
11858 condition that detects if the overridden operation must replace an
11859 existing entity.
11860
11861 2011-08-01 Javier Miranda <miranda@adacore.com>
11862
11863 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
11864 code declarations inserted by Insert_Actions in each alternative of the
11865 N_Case_Expression node.
11866
11867 2011-08-01 Robert Dewar <dewar@adacore.com>
11868
11869 * sem_ch6.adb: Minor code reorganization.
11870 * sem_util.adb: Minor reformatting.
11871
11872 2011-08-01 Pascal Obry <obry@adacore.com>
11873
11874 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
11875 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
11876
11877 2011-08-01 Yannick Moy <moy@adacore.com>
11878
11879 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
11880 literal or operator symbol which is prefixed
11881 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
11882 mode on access attributes.
11883 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
11884 that concatenation operands are properly restricted in formal mode
11885 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
11886 Analyze_Concatenation_Operand. Issue an error in formal mode if the
11887 result of the concatenation has a type different from String.
11888 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
11889 Analyze_Quantified_Expression, Analyze_Slice,
11890 Analyze_Null): issue an error in formal mode on unsupported constructs
11891 * sem_ch5.adb
11892 (Analyze_Block_Statement): only issue error on source block statement
11893 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
11894 function which returns the last node in a list of nodes for which
11895 Comes_From_Source returns True, if any
11896 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
11897 Last_Source_Node_In_Sequence
11898 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
11899 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
11900 mode on unsupported constructs
11901 * sem_ch9.adb Do not return after issuing error in formal mode, as the
11902 rest of the actions may be needed later on since the error is marked as
11903 not serious.
11904 * sinfo.ads: Typos in comments.
11905
11906 2011-08-01 Pascal Obry <obry@adacore.com>
11907
11908 * projects.texi: Minor editing.
11909
11910 2011-08-01 Yannick Moy <moy@adacore.com>
11911
11912 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
11913 insertion character ~~
11914 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
11915 (Set_Error_Msg_Lang): new procedure which fixes the language for use
11916 with insertion character ~~
11917 (Set_Msg_Text): treat insertion character ~~
11918 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
11919 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
11920 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
11921 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
11922 errors related to the formal language restriction not serious
11923 (insertion character |).
11924 * par.adb (Par): set formal language for error messages if needed
11925 * sem_ch6.adb (Check_Missing_Return): take into account possible
11926 generated statements at the end of the function
11927 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
11928 enumeration value to define a new pragma SPARK_95
11929 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
11930 SPARK_Version): new type and variables to store the SPARK version
11931 (none by default).
11932 (SPARK_Mode): return True when SPARK_Version is set
11933 * par-prag.adb: Correct indentation
11934 (Prag): take Pragma_SPARK_95 into account
11935 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
11936 into account.
11937
11938 2011-08-01 Robert Dewar <dewar@adacore.com>
11939
11940 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
11941 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
11942 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
11943
11944 2011-08-01 Pascal Obry <obry@adacore.com>
11945
11946 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
11947 Target_Name to Get_Path call.
11948 (Parse_Single_Project): Likewise.
11949 (Post_Parse_Context_Clause): Likewise.
11950 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
11951 Call Initialise_Project_Path with the proper Target_Name.
11952 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
11953 search path.
11954 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
11955 with the proper Target_Name.
11956 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
11957 Part.Parse routine.
11958 (Parse_Project_And_Apply_Config): Likewise.
11959 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
11960 This is fine as this part of the code is supporting only native
11961 compilation.
11962 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
11963 is fine as this part of the code is supporting only native compilation.
11964
11965 2011-08-01 Yannick Moy <moy@adacore.com>
11966
11967 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
11968 of homonym, unless the homonym is one of the cases allowed in SPARK
11969 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
11970 package declaration occurring after a body.
11971
11972 2011-08-01 Robert Dewar <dewar@adacore.com>
11973
11974 * checks.adb, exp_ch4.adb: Minor reformatting.
11975
11976 2011-08-01 Javier Miranda <miranda@adacore.com>
11977
11978 * einfo.ads (Access_Disp_Table): Fix documentation.
11979 (Dispatch_Table_Wrappers): Fix documentation.
11980
11981 2011-08-01 Pascal Obry <obry@adacore.com>
11982
11983 * prj-env.adb, prj-env.ads: Minor reformatting.
11984
11985 2011-08-01 Yannick Moy <moy@adacore.com>
11986
11987 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
11988 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
11989 procedures out of these packages.
11990 * errout.ads, errout.adb
11991 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
11992 procedures in of this package
11993 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
11994 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
11995 on misplaced later vs initial declarations, like in Ada 83
11996 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
11997 formal mode on attribute of private type whose full type declaration
11998 is not visible
11999 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
12000 package declaration inside a package specification
12001 (Analyze_Full_Type_Declaration): issue error in formal mode on
12002 controlled type or discriminant type
12003 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
12004 user-defined operator means that it should come from the source
12005 (New_Overloaded_Entity): issue error in formal mode on overloaded
12006 entity.
12007 * sem_ch6.ads, sem_ch13.ads: typos in comments.
12008
12009 2011-08-01 Thomas Quinot <quinot@adacore.com>
12010
12011 * atree.adb: Minor reformatting.
12012 * checks.adb: Minor reformatting.
12013
12014 2011-08-01 Vincent Celier <celier@adacore.com>
12015
12016 * s-parame-vms-ia64.ads: Fix typo in comment
12017 Minor reformatting
12018 * s-parame-vms-restrict.ads: Removed, unused.
12019
12020 2011-08-01 Javier Miranda <miranda@adacore.com>
12021
12022 * exp_ch3.adb
12023 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
12024 * sem_ch3.adb
12025 (Constrain_Index): Remove side effects in the evaluation of the bounds.
12026 * sem_ch3.ads, sem_ch3.adb
12027 (Is_Constant_Bound): New extended version of the subprogram that was
12028 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
12029 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
12030 * sem_aux.ads (Constant_Value): Fix typo in comment.
12031 * checks.adb (Generate_Index_Checks): New implementation which, for
12032 array objects with constant bounds, generates the runtime check
12033 referencing the bounds of the array type. For other cases this routine
12034 provides its previous behavior obtaining such values from the array
12035 object.
12036 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
12037 parent type.
12038 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
12039 we cannot have semantic interpretations of the new node.
12040
12041 2011-08-01 Ed Schonberg <schonberg@adacore.com>
12042
12043 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
12044 expressions.
12045
12046 2011-08-01 Arnaud Charlet <charlet@adacore.com>
12047
12048 * sem_ch8.adb: Minor code editing.
12049 * s-vxwext.adb: Remove trailing space.
12050 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
12051 consistency with other files.
12052
12053 2011-08-01 Thomas Quinot <quinot@adacore.com>
12054
12055 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
12056
12057 2011-08-01 Ed Schonberg <schonberg@adacore.com>
12058
12059 * par-ch10.adb: reject parameterized expressions as compilation unit.
12060 * sem_ch4.adb: handle properly conditional expression with overloaded
12061 then_clause and no else_clause.
12062
12063 2011-08-01 Tristan Gingold <gingold@adacore.com>
12064
12065 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
12066 like done by System.Aux_DEC.
12067 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
12068
12069 2011-08-01 Yannick Moy <moy@adacore.com>
12070
12071 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
12072 missing label at end of declaration (subprogram or package)
12073 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
12074 of positional and named parameter association
12075 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
12076 Error_Msg_SP which adds a prefix to the error message giving the name
12077 of the formal language analyzed
12078 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
12079 access result type in subprogram, unconstrained array as result type,.
12080 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
12081 procedure
12082 * sem_ch8.adb: Code clean up.
12083
12084 2011-08-01 Javier Miranda <miranda@adacore.com>
12085
12086 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
12087 * einfo.ads (Access_Disp_Table): Fix documentation.
12088 (Dispatch_Table_Wrappers): Fix documentation.
12089 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
12090 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
12091 to enforce the documentation of this attribute.
12092 (Set_Is_Interface): Cleanup the assertion.
12093 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
12094 the Underlying_Type entity before reading attribute Access_Disp_Table.
12095 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
12096 Locate the Underlying_Type before reading attribute Access_Disp_Table.
12097 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
12098 the Underlying_Type entity before reading attribute Access_Disp_Table.
12099 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
12100 Locate the Underlying_Type entity before reading attribute
12101 Access_Disp_Table.
12102
12103 2011-08-01 Ed Schonberg <schonberg@adacore.com>
12104
12105 * s-poosiz.ads: Additional overriding indicators.
12106
12107 2011-08-01 Yannick Moy <moy@adacore.com>
12108
12109 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
12110 formal mode.
12111 (Analyze_Iteration_Scheme): issue error in formal mode when loop
12112 parameter specification does not include a subtype mark.
12113 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
12114 formal mode on abstract subprogram.
12115 (Analyze_Subprogram_Specification): issue error in formal mode on
12116 user-defined operator.
12117 (Process_Formals): issue error in formal mode on access parameter and
12118 default expression.
12119 * sem_ch9.adb (Analyze_Abort_Statement,
12120 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
12121 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
12122 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
12123 Analyze_Requeue, Analyze_Selective_Accept,
12124 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
12125 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
12126 issue error in formal mode on user-defined raise statement.
12127
12128 2011-08-01 Thomas Quinot <quinot@adacore.com>
12129
12130 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
12131 declaration being hidden when overriding an implicit inherited
12132 subprogram.
12133 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
12134 (-gnats), do not complain about a source file that contains only a
12135 pragma No_Body.
12136
12137 2011-08-01 Ed Schonberg <schonberg@adacore.com>
12138
12139 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
12140 variable if already set.
12141
12142 2011-08-01 Arnaud Charlet <charlet@adacore.com>
12143
12144 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
12145 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
12146 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
12147 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
12148 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
12149 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
12150 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
12151 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
12152 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
12153 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
12154 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
12155 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
12156 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
12157 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
12158 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
12159 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
12160 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
12161 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
12162 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
12163 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
12164 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
12165 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
12166 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
12167 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
12168 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
12169 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
12170 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
12171 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
12172 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
12173 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
12174 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
12175 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
12176 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
12177 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
12178 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
12179 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
12180 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
12181 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
12182 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
12183 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
12184 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
12185 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
12186 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
12187 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
12188 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
12189 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
12190 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
12191 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
12192 s-osinte-mingw.ads: Update to GPLv3 run-time license.
12193 Use GNAT instead of GNARL.
12194
12195 2011-08-01 Bob Duff <duff@adacore.com>
12196
12197 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
12198 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
12199 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
12200 reformatting.
12201
12202 2011-08-01 Yannick Moy <moy@adacore.com>
12203
12204 * debug.adb (d.D) reverve flag for the SPARK mode
12205 (d.E) reverve flag for SPARK generation mode
12206 (d.F) reverve flag for Why generation mode
12207 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
12208 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
12209 functions which return True when the corresponding modes are set
12210 (Formal_Language): return "spark" or "alfa" when in formal verification
12211 mode.
12212 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
12213 Error_Msg to prefix the error message with a tag giving the formal
12214 language
12215 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
12216 message with a tag giving the formal language
12217 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
12218 block statement
12219 (Analyze_Case_Statement): issue error in formal mode on case statement
12220 with a single "others" case alternative
12221 (Analyze_Exit_Statement): issue errors in formal mode on exit
12222 statements which do not respect SPARK restrictions
12223 (Analyze_Goto_Statement): issue error in formal mode on goto statement
12224 (Check_Unreachable_Code): always issue an error (not a warning) in
12225 formal mode on unreachable code (concerns both code after an infinite
12226 loop and after an unconditional jump, both not allowed in SPARK)
12227 * sem_ch6.adb (Analyze_Return_Statement): add call to
12228 Set_Return_Present for a procedure containing a return statement
12229 (already done for functions in Analyze_Function_Return)
12230 (Analyze_Function_Return): issue error in formal mode on extended
12231 return or if return is not last statement in function
12232 (Check_Missing_Return): issue error in formal mode if function does
12233 not end with return or if procedure contains a return
12234 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
12235 function to detect if there is an inner scope of its parameter S which
12236 is a loop.
12237
12238 2011-08-01 Thomas Quinot <quinot@adacore.com>
12239
12240 * sem_ch6.ads: Minor reformatting.
12241
12242 2011-08-01 Javier Miranda <miranda@adacore.com>
12243
12244 * sem_util.adb (Abstract_Interface_List): Complete condition when
12245 processing private type declarations to avoid reading unavailable
12246 attribute.
12247 (Is_Synchronized_Tagged_Type): Complete condition when processing
12248 private extension declaration nodes to avoid reading unavailable
12249 attribute.
12250
12251 2011-08-01 Thomas Quinot <quinot@adacore.com>
12252
12253 * sem_ch3.adb: Minor reformatting.
12254
12255 2011-08-01 Thomas Quinot <quinot@adacore.com>
12256
12257 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
12258 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
12259 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
12260 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
12261 for VMS, instead parametrize the common implementation with
12262 System.Parameters declarations.
12263
12264 2011-08-01 Eric Botcazou <ebotcazou@adacore.com>
12265
12266 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
12267
12268 2011-08-01 Tristan Gingold <gingold@adacore.com>
12269
12270 * seh_init.c: Fix SEH handler installation on win64.
12271
12272 2011-08-01 Ed Schonberg <schonberg@adacore.com>
12273
12274 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
12275 double analysis of an anonymous access to subprogram, because it can
12276 lead to improper sharing of profiles and a back-end crash.
12277
12278 2011-08-01 Robert Dewar <dewar@adacore.com>
12279
12280 * make.adb, sem_ch4.adb: Minor reformatting.
12281 * gcc-interface/Make-lang.in: Update dependencies.
12282 * sem_util.adb, exp_ch5.adb: Minor reformatting.
12283
12284 2011-08-01 Arnaud Charlet <charlet@adacore.com>
12285
12286 * gnat_rm.texi: Fix definition of Long_Integer.
12287
12288 2011-08-01 Ed Schonberg <schonberg@adacore.com>
12289
12290 * exp_aggr.adb: check limit size of static aggregate unconditionally,
12291 to prevent storage exhaustion.
12292 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
12293 finalized is a function body, insert the cleanup code before the final
12294 return statement, to prevent spurious warnings.
12295 * s-pooglo.ads: add overriding indicator.
12296
12297 2011-08-01 Ed Schonberg <schonberg@adacore.com>
12298
12299 * sem_ch4.adb (Operator_Check): improve error message when both a
12300 with_clause and a use_clause are needed to make operator usage legal.
12301 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
12302 determine whether a compilation unit is visible within an other,
12303 either through a with_clause in the current unit, or a with_clause in
12304 its library unit or one one of its parents.
12305
12306 2011-08-01 Ed Schonberg <schonberg@adacore.com>
12307
12308 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
12309 over an arbitrary expression of an array or container type.
12310 * lib-xref.adb: clarify comment.
12311
12312 2011-08-01 Bob Duff <duff@adacore.com>
12313
12314 * einfo.ads: Minor reformatting.
12315 * debug.adb: Minor comment improvement.
12316
12317 2011-08-01 Javier Miranda <miranda@adacore.com>
12318
12319 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
12320 consider hidden subprograms as valid candidates.
12321
12322 2011-08-01 Arnaud Charlet <charlet@adacore.com>
12323
12324 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
12325
12326 2011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
12327
12328 * gnat_ugn.texi: Fix typo.
12329
12330 2011-08-01 Robert Dewar <dewar@adacore.com>
12331
12332 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
12333 lib-xref.adb: Minor reformatting
12334
12335 2011-08-01 Gary Dismukes <dismukes@adacore.com>
12336
12337 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
12338 when to generate a call to Move_Final_List.
12339 (Has_Controlled_Parts): Remove this function.
12340
12341 2011-08-01 Geert Bosch <bosch@adacore.com>
12342
12343 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
12344 "," in choice list.
12345
12346 2011-08-01 Thomas Quinot <quinot@adacore.com>
12347
12348 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
12349 explicit raise of a predefined exception as Comes_From_Source if the
12350 original N_Raise_Statement comes from source.
12351
12352 2011-08-01 Robert Dewar <dewar@adacore.com>
12353
12354 * sinfo.ads: Add comment.
12355 * sem_ch6.adb: Minor reformatting.
12356
12357 2011-08-01 Robert Dewar <dewar@adacore.com>
12358
12359 * freeze.adb (Freeze_Entity): Refine check for bad component size
12360 clause to avoid rejecting confirming clause when atomic/aliased present.
12361
12362 2011-08-01 Ed Schonberg <schonberg@adacore.com>
12363
12364 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
12365 better determine whether an entity reference is a write.
12366 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
12367 subcomponent.
12368 * lib-xref.adb (Output_References): Do no suppress a read reference at
12369 the same location as an immediately preceeding modify-reference, to
12370 handle properly in-out actuals.
12371
12372 2011-08-01 Tristan Gingold <gingold@adacore.com>
12373
12374 * env.c (__gnat_setenv) [VMS]: Refine previous change.
12375
12376 2011-08-01 Quentin Ochem <ochem@adacore.com>
12377
12378 * i-cstrin.adb (New_String): Changed implementation, now uses only the
12379 heap to compute the result.
12380
12381 2011-08-01 Robert Dewar <dewar@adacore.com>
12382
12383 * atree.ads: Minor reformatting.
12384
12385 2011-08-01 Emmanuel Briot <briot@adacore.com>
12386
12387 * g-expect.adb (Get_Command_Output): Fix memory leak.
12388
12389 2011-08-01 Geert Bosch <bosch@adacore.com>
12390
12391 * cstand.adb (P_Float_Type): New procedure to print the definition of
12392 predefined fpt types.
12393 (P_Mixed_Name): New procedure to print a name using mixed case
12394 (Print_Standard): Use P_Float_Type for printing floating point types
12395 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
12396 precision IEEE float.
12397
12398 2011-08-01 Thomas Quinot <quinot@adacore.com>
12399
12400 * sem_ch3.adb: Minor reformatting.
12401
12402 2011-08-01 Ed Schonberg <schonberg@adacore.com>
12403
12404 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
12405 the completion of a generic function, insert the new body rather than
12406 rewriting the original.
12407
12408 2011-08-01 Yannick Moy <moy@adacore.com>
12409
12410 * sinfo.ads, errout.ads: Typos in comments.
12411
12412 2011-08-01 Robert Dewar <dewar@adacore.com>
12413
12414 * par-endh.adb: Minor reformatting.
12415
12416 2011-08-01 Robert Dewar <dewar@adacore.com>
12417
12418 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
12419 (Pre_Post_Aspects): New subtype.
12420 * par-ch12.adb (P_Generic): New syntax for aspects in packages
12421 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
12422 * par-ch7.adb (P_Package): Remove Decl parameter
12423 (P_Package): Handle new syntax for aspects (before IS)
12424 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
12425 new aspect syntax
12426 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
12427 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
12428 (P_Package): Remove Decl parameter
12429 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
12430 aspects
12431 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
12432 specs
12433 * sem_util.ads, sem_util.adb (Static_Boolean): New function
12434 * sinfo.ads: Document new syntax for aspects in packages etc.
12435 * sprint.adb: Handle new syntax of aspects before IS in package
12436
12437 2011-08-01 Thomas Quinot <quinot@adacore.com>
12438
12439 * atree.ads: Minor reformatting.
12440 * sem_prag.adb: Minor reformatting.
12441
12442 2011-08-01 Robert Dewar <dewar@adacore.com>
12443
12444 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
12445 case expr alternative.
12446
12447 2011-08-01 Ed Schonberg <schonberg@adacore.com>
12448
12449 * sem_ch12.adb: Fix typo.
12450
12451 2011-08-01 Geert Bosch <bosch@adacore.com>
12452
12453 * sem_prag.adb (Check_No_Link_Name): New procedure.
12454 (Process_Import_Or_Interface): Use Check_No_Link_Name.
12455 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
12456 instead of Standard_Long_Long_Float_Size global. Preparation for
12457 eventual removal of per type constants.
12458 * exp_util.ads (Get_Stream_Size): New function returning the stream
12459 size value of subtype E.
12460 * exp_util.adb (Get_Stream_Size): Implement new function.
12461 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
12462 function.
12463 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
12464 * einfo.adb:
12465 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
12466
12467 2011-08-01 Geert Bosch <bosch@adacore.com>
12468
12469 * cstand.adb: Fix comments.
12470 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
12471 count of arguments.
12472
12473 2011-08-01 Robert Dewar <dewar@adacore.com>
12474
12475 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
12476
12477 2011-08-01 Geert Bosch <bosch@adacore.com>
12478
12479 * atree.ads: Fix comment.
12480
12481 2011-08-01 Robert Dewar <dewar@adacore.com>
12482
12483 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
12484 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
12485 * par.adb: Add with for Namet.Sp.
12486 * par-tchk.adb: Minor reformatting.
12487
12488 2011-08-01 Vincent Celier <celier@adacore.com>
12489
12490 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
12491 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
12492 of the init procedure of a SAL.
12493 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
12494 New procedure.
12495
12496 2011-08-01 Thomas Quinot <quinot@adacore.com>
12497
12498 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
12499 reformatting.
12500
12501 2011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12502
12503 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
12504
12505 2011-08-01 Thomas Quinot <quinot@adacore.com>
12506
12507 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
12508 conformant with its spec (return True only for types that have
12509 an overriding Initialize primitive operation that prevents them from
12510 having preelaborable initialization).
12511 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
12512 initialization for controlled types in Ada 2005 or later mode.
12513
12514 2011-08-01 Robert Dewar <dewar@adacore.com>
12515
12516 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
12517 Postcondition.
12518 (Same_Aspect): New function.
12519 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
12520 Type_Invariant, Precondition, Postcondition.
12521 * snames.ads-tmpl: Add Name_Type_Invariant.
12522
12523 2011-08-01 Robert Dewar <dewar@adacore.com>
12524
12525 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
12526 here.
12527 (Freeze_All_Ent): Fix error in handling inherited aspects.
12528 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
12529 already analyzed, but don't skip entire processing of a declaration,
12530 that's wrong in some cases of declarations being rewritten.
12531 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
12532 Don't delay for integer, string literals
12533 Treat predicates in usual manner for delay, remove special case code,
12534 not needed.
12535 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
12536 (Build_Predicate_Function): Update saved expression in aspect
12537 (Build_Invariant_Procedure): Update saved expression in aspect
12538 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
12539 of replacement of discriminant references if the reference is simple.
12540
12541 2011-08-01 Robert Dewar <dewar@adacore.com>
12542
12543 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
12544 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
12545 Static_Predicate and Dynamic_Predicate.
12546 (Build_Predicate_Function): Add processing for Static_Predicate
12547 and Dynamic_Predicate.
12548 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
12549 (From_Static_Predicate): New flag
12550 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
12551
12552 2011-08-01 Robert Dewar <dewar@adacore.com>
12553
12554 * usage.adb: Documentation cleanup for Ada version modes in usage.
12555 * expander.adb: Minor reformatting.
12556
12557 2011-08-01 Robert Dewar <dewar@adacore.com>
12558
12559 * atree.ads: Minor comment fix.
12560 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
12561 a-witeio.ads, sem_prag.adb: Minor reformatting.
12562
12563 2011-08-01 Doug Rupp <rupp@adacore.com>
12564
12565 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
12566 pointers. Use descrip.h header file for convenience. Add some
12567 comments.
12568
12569 2011-08-01 Robert Dewar <dewar@adacore.com>
12570
12571 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
12572 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
12573 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
12574 New procedure.
12575 (Check_Aspect_At_End_Of_Declarations): New procedure
12576 (Analye_Aspect_Specification): Minor changes for above procedures
12577 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
12578 specification node as well.
12579
12580 2011-08-01 Pascal Obry <obry@adacore.com>
12581
12582 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
12583 Windows files. Use GetFilesAttributes() in this case to check for file
12584 existence instead of returning with an error code.
12585
12586 2011-08-01 Vincent Celier <celier@adacore.com>
12587
12588 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
12589 High is above Source length.
12590
12591 2011-08-01 Robert Dewar <dewar@adacore.com>
12592
12593 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
12594
12595 2011-08-01 Robert Dewar <dewar@adacore.com>
12596
12597 * aspects.ads (Boolean_Aspects): New subtype.
12598 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
12599 for derived types in cases where the parent type and derived type have
12600 aspects.
12601 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
12602 with aspects when parent type also has aspects.
12603 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
12604 boolean expression at this point).
12605 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
12606 accordance with final decision on the Ada 2012 feature.
12607 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
12608
12609 2011-08-01 Matthew Heaney <heaney@adacore.com>
12610
12611 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
12612
12613 2011-08-01 Pascal Obry <obry@adacore.com>
12614
12615 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
12616 Fix Replace_Slice when High is above current string size.
12617 (Replace_Slice): Fix DL computation when High is above current
12618 string length.
12619
12620 2011-08-01 Gary Dismukes <dismukes@adacore.com>
12621
12622 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
12623
12624 2011-08-01 Matthew Heaney <heaney@adacore.com>
12625
12626 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
12627 of node.
12628
12629 2011-08-01 Pascal Obry <obry@adacore.com>
12630
12631 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
12632 reformatting.
12633
12634 2011-08-01 Ed Schonberg <schonberg@adacore.com>
12635
12636 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
12637 access to protected subprograms in generic bodies.
12638 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
12639 protected type, indicate that the convention of the subprogram is
12640 Convention_Protected, because it may be used in subsequent declarations
12641 within the protected declaration.
12642
12643 2011-08-01 Vincent Celier <celier@adacore.com>
12644
12645 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
12646 and "final" procedures when the name of the library is "ada", to avoid
12647 duplicate symbols "adainit" and "adafinal" in executables.
12648
12649 2011-08-01 Ed Schonberg <schonberg@adacore.com>
12650
12651 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
12652 quantified expression that appears within a postcondition and uses the
12653 Ada2012 'Result attribute.
12654
12655 2011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12656
12657 * init.c (__gnat_error_handler): Cast reason to int.
12658 (__gnat_install_handler): Explain sa_sigaction use.
12659
12660 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
12661
12662 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
12663 subprogram has copy-in copy-out parameters, try to promote the mode of
12664 the return type if it is passed in registers.
12665
12666 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
12667
12668 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
12669 left operand as addressable.
12670
12671 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
12672
12673 * gcc-interface/gigi.h (build_function_stub): Remove.
12674 (build_return_expr): Likewise.
12675 (convert_vms_descriptor): Declare.
12676 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
12677 (build_function_stub): Move to...
12678 * gcc-interface/utils2.c (build_return_expr): Move to...
12679 * gcc-interface/trans.c (build_function_stub): ...here.
12680 (build_return_expr): ...here.
12681 (Subprogram_Body_to_gnu): Add local variable for language_function.
12682 Disconnect the parameter attributes cache, if any, once done with it.
12683 Call end_subprog_body only after setting the end_locus.
12684 Build the stub associated with the function, if any, at the very end.
12685 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
12686 variables and streamline control flow.
12687
12688 2011-07-23 Arnaud Charlet <charlet@adacore.com>
12689
12690 PR ada/49819
12691 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
12692 g-trasym-dwarf.adb.
12693
12694 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12695
12696 PR bootstrap/49794
12697 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
12698 Assign to act.sa_sigaction.
12699 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
12700 current->return_address to char * before arithmetic.
12701
12702 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12703
12704 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
12705 Correct argument types.
12706 Extract code from reason.
12707 (__gnat_install_handler): Assign to act.sa_sigaction.
12708
12709 2011-07-21 Eric Botcazou <ebotcazou@adacore.com>
12710
12711 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
12712 (GNAT1_OBJS): ...here.
12713
12714 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
12715
12716 PR ada/48711
12717 * g-socthi-mingw.adb (Fill): Fix formatting.
12718
12719 * gcc-interface/gigi.h: Move around comment.
12720
12721 2011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12722
12723 PR ada/46350
12724 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
12725
12726 2011-07-14 Florian Weimer <fw@deneb.enyo.de>
12727
12728 PR ada/48711
12729 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
12730
12731 2011-07-13 Eric Botcazou <ebotcazou@adacore.com>
12732
12733 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
12734 range comparison if Pmode is SImode.
12735
12736 2011-07-12 Laurent GUERBY <laurent@guerby.net>
12737 Eric Botcazou <ebotcazou@adacore.com>
12738
12739 * adadecode.c: Wrap up in extern "C" block.
12740 * adadecode.h: Likewise.
12741 * adaint.c: Likewise. Remove 'const' keyword.
12742 * adaint.h: Likewise.
12743 * argv.c: Likewise.
12744 * atree.h: Likewise.
12745 * cio.c: Likewise.
12746 * cstreams.c: Likewise.
12747 * env.c: Likewise.
12748 * exit.c: Likewise.
12749 * fe.h: Likewise.
12750 * final.c: Likewise.
12751 * init.c: Likewise.
12752 * initialize.c: Likewise.
12753 * link.c: Likewise.
12754 * namet.h: Likewise.
12755 * nlists.h: Likewise.
12756 * raise.c: Likewise.
12757 * raise.h: Likewise.
12758 * repinfo.h: Likewise.
12759 * seh_init.c: Likewise.
12760 * targext.c: Likewise.
12761 * tracebak.c: Likewise.
12762 * uintp.h: Likewise.
12763 * urealp.h: Likewise.
12764 * xeinfo.adb: Wrap up generated C code in extern "C" block.
12765 * xsinfo.adb: Likewise.
12766 * xsnamest.adb: Likewise.
12767 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
12768 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
12769 * gcc-interface/misc.c: Likewise.
12770 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
12771 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
12772 ada/targext.o here...
12773 (GNAT_ADA_OBJS): ...and not here.
12774 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
12775 (GNATBIND_OBJS): Reorder.
12776
12777 2011-07-07 Richard Henderson <rth@redhat.com>
12778
12779 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
12780 dwarf2out_frame_init.
12781
12782 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
12783
12784 * gcc-interface/misc.c (gnat_init): Tweak previous change.
12785
12786 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12787
12788 PR target/39150
12789 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
12790
12791 2011-07-06 Richard Guenther <rguenther@suse.de>
12792
12793 * gcc-interface/misc.c (gnat_init): Merge calls to
12794 build_common_tree_nodes and build_common_tree_nodes_2.
12795 Re-initialize boolean_false_node.
12796
12797 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
12798 Olivier Hainque <hainque@adacore.com>
12799 Nicolas Setton <setton@adacore.com>
12800
12801 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
12802 the type according to the ARTIFICIAL_P parameter.
12803 (create_type_decl): Likewise.
12804 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
12805
12806 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
12807
12808 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
12809 (gnatbind): Likewise.
12810
12811 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12812
12813 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
12814
12815 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
12816
12817 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
12818 local variable throughout. Remove useless call to Base_Type.
12819 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
12820 Take it also into account for the volatileness of the field. Set the
12821 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
12822
12823 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
12824
12825 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
12826 on a dereference built for a by-ref object if it has an address clause.
12827
12828 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
12829
12830 * einfo.ads (Address_Taken): Document use for the second argument of
12831 Asm_Input and Asm_Output attributes.
12832 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
12833 argument is an entity name, then set Address_Taken on it.
12834 <Attribute_Asm_Output>: Likewise.
12835 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
12836 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
12837 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
12838 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
12839
12840 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
12841
12842 PR middle-end/46500
12843 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
12844
12845 2011-06-14 Joseph Myers <joseph@codesourcery.com>
12846
12847 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
12848 (ada/utils.o): Update dependencies.
12849 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
12850 ../../../libcpp/libcpp.a.
12851 * gcc-interface/utils.c: Include common/common-target.h.
12852 (process_attributes): Use targetm_common.have_named_sections.
12853
12854 2011-06-07 Richard Guenther <rguenther@suse.de>
12855
12856 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
12857 set_sizetype.
12858
12859 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
12860
12861 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
12862 TREE_THIS_NOTRAP flag.
12863
12864 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
12865
12866 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
12867 Fix thinko.
12868
12869 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
12870
12871 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
12872 constants whose full view has discriminants specially.
12873
12874 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
12875
12876 * gcc-interface/utils.c: Include diagnostic.h.
12877 (gnat_write_global_declarations): Output debug information for all
12878 global type declarations before finalizing the compilation unit.
12879 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
12880
12881 2011-05-25 Jakub Jelinek <jakub@redhat.com>
12882
12883 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
12884
12885 2011-05-25 Kai Tietz <ktietz@redhat.com>
12886
12887 * adaint.c (__gnat_to_canonical_file_list_next): Use array
12888 initialization instead of const/none-const pointer assignment.
12889
12890 2011-05-24 Joseph Myers <joseph@codesourcery.com>
12891
12892 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
12893 $(EXTRA_GNAT1_OBJS).
12894 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
12895 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
12896 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
12897 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
12898 libcommon-target.a instead of prefix.o.
12899
12900 2011-05-21 Joseph Myers <joseph@codesourcery.com>
12901
12902 PR ada/49097
12903 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
12904
12905 2011-05-20 Joseph Myers <joseph@codesourcery.com>
12906
12907 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
12908 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
12909 instead of version.o.
12910
12911 2011-05-18 Kai Tietz <ktietz@redhat.com>
12912
12913 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
12914 boolean_false_node instead of integer_zero_node.
12915 (convert_with_check): Likewise.
12916 * gcc-interface/decl.c (choices_to_gnu): Likewise.
12917
12918 2011-05-12 Eric Botcazou <ebotcazou@adacore.com>
12919
12920 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
12921 type of the parameter is an unconstrained array, convert the actual to
12922 the type of the formal in the In Out and Out cases as well.
12923
12924 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
12925
12926 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
12927 call build_function_type_array or build_varargs_function_type_array
12928 instead.
12929 (create_subprog_type): Don't call build_function_type; call
12930 build_function_type_vec instead.
12931
12932 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
12933
12934 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
12935 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
12936 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
12937
12938 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
12939
12940 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
12941
12942 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
12943 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
12944
12945 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
12946
12947 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
12948
12949 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
12950
12951 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
12952 instead of accessing TYPE_ARG_TYPES directly.
12953 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
12954
12955 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
12956
12957 PR ada/48844
12958 * gcc-interface/gigi.h (get_variant_part): Declare.
12959 * gcc-interface/decl.c (get_variant_part): Make global.
12960 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
12961 types have the same constant size, are record types and T1 has a
12962 variant part while T2 doesn't.
12963
12964 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
12965
12966 * gcc-interface/utils.c (begin_subprog_body): Do not call
12967 get_pending_sizes.
12968 (end_subprog_body): Likewise.
12969
12970 2011-05-04 Richard Guenther <rguenther@suse.de>
12971
12972 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
12973 int_const_binop.
12974 (pos_to_constructor): Likewise.
12975
12976 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
12977 Eric Botcazou <ebotcazou@adacore.com>
12978
12979 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
12980 of build_function_type. Adjust calls to...
12981 (build_raise_check): ...this. Do not take a void_tree parameter.
12982 Call build_function_type_list instead of build_function_type.
12983 Fix head comment and swap couple of conditional blocks.
12984
12985 2011-04-30 Eric Botcazou <ebotcazou@adacore.com>
12986
12987 * gnatvsn.ads (Library_Version): Bump to 4.7.
12988 (Current_Year): Bump to 2011.
12989
12990 2011-04-29 Michael Matz <matz@suse.de>
12991
12992 * gcc-interface/misc.c (gnat_handle_option): Set
12993 warn_maybe_uninitialized.
12994
12995 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
12996
12997 * gnat_ugn.texi (Complexity Metrics Control): Update link to
12998 the Watson/McCabe paper.
12999
13000 2011-04-23 Jim Meyering <meyering@redhat.com>
13001
13002 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
13003
13004 2011-04-22 Eric Botcazou <ebotcazou@adacore.com>
13005
13006 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
13007 onto the new type.
13008
13009 2011-04-22 Eric Botcazou <ebotcazou@adacore.com>
13010
13011 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
13012 parameter.
13013 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
13014 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
13015 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
13016 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
13017 <all>: Do not set flags on the reused DECL node coming from an alias.
13018 Set DECL_IGNORED_P on the DECL node built for subprograms if they
13019 don't need debug info here...
13020 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
13021 (gigi): Adjust calls to create_subprog_decl.
13022 (build_raise_check): Likewise.
13023 (establish_gnat_vms_condition_handler): Likewise.
13024 (Compilation_Unit_to_gnu): Likewise.
13025 (gnat_to_gnu): Likewise.
13026
13027 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
13028
13029 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
13030 (NO_REORDER_ADAFLAGS): New variable.
13031 (EXTRA_GNATTOOLS): Always define.
13032 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
13033 Clean up and adjust list of files compiled with special options.
13034 * gcc-interface/Make-lang.in: Likewise.
13035 (ada/decl.o): Cosmetical change.
13036 (ada/misc.o): Remove dependency on $(PLUGIN_H).
13037
13038 2011-04-20 Jim Meyering <meyering@redhat.com>
13039
13040 * initialize.c (__gnat_initialize): Remove useless if-before-free.
13041
13042 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
13043
13044 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
13045 $(CFLAGS) on the link line.
13046
13047 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
13048
13049 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
13050 padded type built for the return type if it is unconstrained.
13051
13052 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
13053
13054 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
13055
13056 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
13057
13058 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
13059 before calling TREE_CHAIN.
13060 * gcc-interface/misc.c (gnat_init_ts): New function.
13061 (LANG_HOOKS_INIT_TS): Define.
13062
13063 2011-04-12 Martin Jambor <mjambor@suse.cz>
13064
13065 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
13066 instead of cgraph_node.
13067
13068 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
13069
13070 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
13071 alignment on fields of the RETURN type built for the Copy-In Copy-Out
13072 mechanism.
13073
13074 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
13075
13076 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
13077 of aggregate types that contain a placeholder.
13078
13079 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
13080
13081 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
13082 TYPE_ARG_TYPES.
13083 (handle_type_generic_attribute): Likewise.
13084
13085 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
13086
13087 PR ada/47163
13088 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
13089
13090 2011-04-04 Kai Tietz <ktietz@redhat.com>
13091
13092 PR ada/47163
13093 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
13094 to flag value.
13095
13096 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13097
13098 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
13099 type case, do not strip a padding type around the array type.
13100
13101 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13102
13103 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
13104 types.
13105
13106 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13107
13108 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
13109 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
13110 code for -feliminate-unused-debug-types.
13111 (gnat_post_options): Likewise.
13112
13113 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13114
13115 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
13116 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
13117 distinct copy.
13118
13119 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13120
13121 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
13122 DECL_ARTIFICIAL flag on enumeration types.
13123
13124 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13125
13126 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
13127 fat pointer types artificial unconditionally.
13128 <E_Array_Subtype>: Attach the base array type as a parallel type if it
13129 isn't artificial.
13130
13131 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13132
13133 * gcc-interface/gigi.h (get_dummy_type): Declare.
13134 (build_dummy_unc_pointer_types): Likewise.
13135 (finish_fat_pointer_type): Likewise.
13136 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
13137 fat pointer type has been built, complete it in place.
13138 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
13139 and thin pointers. Remove useless variable.
13140 (finish_fat_pointer_type): Make global and move to...
13141 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
13142 (get_dummy_type): New function.
13143 (build_dummy_unc_pointer_types): Likewise.
13144 (gnat_pushdecl): Propage the name to the anonymous variants only.
13145 (update_pointer_to): Only adjust the pointer types in the unconstrained
13146 array case.
13147
13148 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13149
13150 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
13151 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
13152 if this is a Taft amendment type and the full declaration is available.
13153 * gcc-interface/trans.c (process_type): Likewise.
13154 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
13155 (process_freeze_entity): Likewise.
13156 * gcc-interface/utils.c (dummy_global): New static variable.
13157 (gnat_write_global_declarations): If there are types declared as used
13158 at the global level, insert them in the global hash table.
13159
13160 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13161
13162 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
13163 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
13164 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
13165 copy.
13166 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
13167 flag of the type accordingly.
13168 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
13169
13170 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
13171
13172 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
13173 finalizing types when updating the pointers to the designated type.
13174 <all>: Finalize the deferred types even if we didn't defer processing
13175 of incomplete types in this invocation.
13176
13177 2011-04-01 Olivier Hainque <hainque@adacore.com>
13178 Nicolas Setton <setton@adacore.com>
13179 Eric Botcazou <ebotcazou@adacore.com>
13180
13181 * gcc-interface/misc.c (gnat_descriptive_type): New function.
13182 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
13183
13184 2011-03-28 Kai Tietz <ktietz@redhat.com>
13185
13186 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
13187 Windows targets.
13188 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
13189 * system-mingw.ads (System): Change ZCX_By_Default default to True.
13190
13191 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
13192
13193 2011-03-28 Tristan Gingold <gingold@adacore.com>
13194
13195 PR ada/44431
13196 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
13197 Use ada output of gnatbind.
13198 (ada/b_gnatb.adb): Ditto.
13199 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
13200 (ada.mostlyclean, ada.stage1)
13201 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
13202 (ada.stagefeedback): Adjust.
13203 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
13204 Use ada output of gnatbind.
13205 (b_gnatm.adb): Ditto.
13206 (b_gnatl.o, b_gnatm.o): New rules.
13207
13208 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
13209
13210 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
13211 for the padded type built to support a specified size or alignment.
13212
13213 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
13214
13215 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
13216 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
13217 unconditionally to the end of the unit when the designated type is
13218 limited_with'ed.
13219 <all>: Rename local variable. Attempt to un-defer types only and do it
13220 for limited_with'ed types as well.
13221 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
13222 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
13223 consistently and remove redundant call to finalize_from_with_types.
13224
13225 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
13226
13227 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
13228 subprograms without a previous spec declared in the same unit.
13229 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
13230 subprograms at the end of the unit instead of at the beginning.
13231 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
13232 isn't public for the special handling of non-inline functions nested
13233 inside inline external functions.
13234
13235 2011-03-25 Jeff Law <law@redhat.com>
13236
13237 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
13238
13239 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13240
13241 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
13242 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
13243 to compute Set_Size_Depends_On_Discriminant.
13244 (Layout_Type): Call it on array types in back-end layout mode.
13245 * sem_util.adb (Requires_Transient_Scope): Return true for array
13246 types only if the size depends on the value of discriminants.
13247 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
13248 type if the RHS is a call to a function that returns an unconstrained
13249 type with default discriminant.
13250
13251 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13252
13253 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
13254 non-conversion to the nominal result type at the end.
13255
13256 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
13257
13258 * gcc-interface/trans.c (create_temporary): New function taken from...
13259 (create_init_temporary): ...here. Call it.
13260 (call_to_gnu): Create the temporary for the return value early, if any.
13261 Create it for a function with copy-in/copy-out parameters if there is
13262 no target; in other cases of copy-in/copy-out, use another temporary.
13263 Push the new binding level lazily. Add and rename local variables.
13264
13265 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
13266
13267 * gcc-interface/decl.c (validate_size): Improve comments and tweak
13268 error message.
13269 (set_rm_size): Likewise.
13270
13271 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
13272
13273 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
13274 for the padded type built in order to support a specified alignment.
13275 Fix incorrect formatting.
13276
13277 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
13278
13279 PR bootstrap/48216
13280 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
13281
13282 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
13283
13284 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
13285 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
13286 to the end of the list. Adjust recursive call. Rename local variable.
13287 If REORDER is true, reorder components of the record type.
13288 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
13289 components_to_record and adjust the parameter list.
13290
13291 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
13292
13293 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
13294 disabled, use the variable for bounds of loop iteration scheme.
13295
13296 2011-03-21 Kai Tietz <ktietz@redhat.com>
13297
13298 PR target/12171
13299 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
13300
13301 2011-03-17 Eric Botcazou <ebotcazou@adacore.com>
13302
13303 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
13304 out whether the expression is read-only. Short-circuit placeholder
13305 case and rename a couple of local variables.
13306
13307 2011-03-17 Eric Botcazou <ebotcazou@adacore.com>
13308
13309 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
13310 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
13311 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
13312 (convert): Deal with conversions from a smaller form type specially.
13313
13314 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13315
13316 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
13317 its argument, except for the special -I- switch.
13318
13319 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
13320
13321 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
13322 "Ada Issues".
13323
13324 2011-02-08 Eric Botcazou <ebotcazou@adacore.com>
13325
13326 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
13327
13328 2011-02-03 Eric Botcazou <ebotcazou@adacore.com>
13329
13330 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
13331 GNAT_FORMAL.
13332 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
13333 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
13334 instead of GNAT_FORMAL. Protect the expression against multiple uses.
13335 Do not generate the check directly, instead instantiate the template
13336 check present in the descriptor.
13337 (make_descriptor_field): Move around.
13338 (build_vms_descriptor32): Build a template check in the POINTER field.
13339 (build_vms_descriptor): Remove useless suffixes.
13340 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
13341
13342 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
13343
13344 PR bootstrap/47467
13345 * targext.c: Include target files if IN_RTS is defined.
13346
13347 2011-01-26 Richard Guenther <rguenther@suse.de>
13348
13349 PR bootstrap/47467
13350 * targext.c: Include config.h.
13351 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
13352 dependency.
13353
13354 2011-01-04 Pascal Obry <obry@adacore.com>
13355 Eric Botcazou <ebotcazou@adacore.com>
13356
13357 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
13358
13359 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13360
13361 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
13362 end-of-case on the end label and its associated gotos, if any.
13363
13364 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13365
13366 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
13367 expressions of the parameter cache within the statement group of
13368 the CICO mechanism.
13369
13370 2011-01-04 Olivier Hainque <hainque@adacore.com>
13371 Eric Botcazou <ebotcazou@adacore.com>
13372
13373 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
13374 (set_end_locus_from_node): New function.
13375 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
13376 make and the function end_locus.
13377 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
13378 for the elaboration subprogram.
13379 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
13380 set the end_locus of the expression as well.
13381
13382 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13383
13384 PR ada/47131
13385 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
13386 variables that are referenced in exception handlers volatile.
13387
13388
13389 \f
13390 Copyright (C) 2011 Free Software Foundation, Inc.
13391
13392 Copying and distribution of this file, with or without modification,
13393 are permitted in any medium without royalty provided the copyright
13394 notice and this notice are preserved.
13395
13396 * gnat_rm.texi: Ramification of pragma Eliminate documentation
13397 - fix bugs in the description of Source_Trace;
13398 - get rid of UNIT_NAME;
13399
13400 2011-08-02 Javier Miranda <miranda@adacore.com>
13401
13402 * exp_ch9.adb
13403 (Build_Dispatching_Requeue): Adding support for VM targets
13404 since we cannot directly reference the Tag entity.
13405 * exp_sel.adb (Build_K): Adding support for VM targets.
13406 (Build_S_Assignment): Adding support for VM targets.
13407 * exp_disp.adb
13408 (Default_Prim_Op_Position): In VM targets do not restrict availability
13409 of predefined interface primitives to compiling in Ada 2005 mode.
13410 (Is_Predefined_Interface_Primitive): In VM targets this service is not
13411 restricted to compiling in Ada 2005 mode.
13412 (Make_VM_TSD): Generate code that declares and initializes the OSD
13413 record. Needed to support dispatching calls through synchronized
13414 interfaces.
13415 * exp_ch3.adb
13416 (Make_Predefined_Primitive_Specs): Enable generation of predefined
13417 primitives associated with synchronized interfaces.
13418 (Make_Predefined_Primitive_Bodies): Enable generation of predefined
13419 primitives associated with synchronized interfaces.
13420
13421 2011-08-02 Yannick Moy <moy@adacore.com>
13422
13423 * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of
13424 statements hidden in SPARK if preceded by the HIDE directive
13425 (Parse_Exception_Handlers): mark each exception handler in a sequence of
13426 exception handlers as hidden in SPARK if preceded by the HIDE directive
13427 * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK
13428 if starting with the HIDE directive
13429 * par-ch7.adb (P_Package): mark a package body hidden in SPARK if
13430 starting with the HIDE directive; mark the declarations in a private
13431 part as hidden in SPARK if the private part starts with the HIDE
13432 directive
13433 * restrict.adb, restrict.ads
13434 (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK
13435 (Is_In_Hidden_Part_In_SPARK): new function which returns whether its
13436 argument node belongs to a part which is hidden in SPARK
13437 (Check_SPARK_Restriction): do not issue violations on nodes in hidden
13438 parts in SPARK; protect the possibly costly call to
13439 Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on
13440 * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration
13441 * scng.adb (Accumulate_Token_Checksum_GNAT_6_3,
13442 Accumulate_Token_Checksum_GNAT_5_03): add case for new token
13443 Tok_SPARK_Hide.
13444 (Scan): recognize special comment starting with '#' and followed by
13445 SPARK keyword "hide" as a HIDE directive.
13446
13447 2011-08-02 Yannick Moy <moy@adacore.com>
13448
13449 * types.ads, erroutc.ads: Minor reformatting.
13450
13451 2011-08-02 Vincent Celier <celier@adacore.com>
13452
13453 * link.c: Add response file support for cross platforms.
13454
13455 2011-08-02 Ed Schonberg <schonberg@adacore.com>
13456
13457 * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression
13458 in an association, set parent field of copy before partial analysis.
13459 * sem_res.adb (Resolve_Slice): create reference to itype only when
13460 expansion is enabled.
13461
13462 2011-08-02 Yannick Moy <moy@adacore.com>
13463
13464 * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set
13465 for new flag denoting which subprogram bodies are in ALFA
13466 * restrict.adb, sem_ch7.adb: Update comment
13467 * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
13468 sem_ch9.adb, sem_res.adb: Add calls to
13469 Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs.
13470 * sem_ch6.adb (Analyze_Function_Return): add calls to
13471 Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the
13472 middle of the body, and extended return.
13473 (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument
13474 False when missing return.
13475 (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA
13476 to True for subprograms whose spec is in ALFA. Remove later on the flag
13477 on the entity used for a subprogram body when there exists a separate
13478 declaration.
13479 * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA):
13480 if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to
13481 False, otherwise do nothing.
13482
13483 2011-08-02 Robert Dewar <dewar@adacore.com>
13484
13485 * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
13486
13487 2011-08-02 Yannick Moy <moy@adacore.com>
13488
13489 * sem_ch4.ads: minor formatting.
13490
13491 2011-08-02 Yannick Moy <moy@adacore.com>
13492
13493 * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb,
13494 debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb,
13495 errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb,
13496 restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb,
13497 opt.ads: cleanup of SPARK mode
13498
13499 2011-08-02 Yannick Moy <moy@adacore.com>
13500
13501 * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard
13502 types.
13503 * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities
13504 (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA
13505 * sem_ch3.adb
13506 (Analyze_Object_Declaration): set Is_In_ALFA flag for objects
13507 (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes
13508 (Constrain_Integer): set Is_In_ALFA flag for integer subtypes
13509 (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration
13510 types.
13511 (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with
13512 non-static range.
13513 * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for
13514 functions whose return type is not in ALFA.
13515 (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram
13516 specifications.
13517 (Process_Formals): unset Is_In_ALFA flag for subprograms if a
13518 parameter's type is not in ALFA.
13519 * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard
13520 types are in ALFA.
13521
13522 2011-08-02 Ed Schonberg <schonberg@adacore.com>
13523
13524 * sem_ch6 (Analyze_Expression_Function): treat the function as
13525 Inline_Always, and introduce a subprogram declaration for it when it is
13526 not a completion.
13527 * inline.adb (Add_Inlined_Body): recognize bodies that come from
13528 expression functions, so that the back-end can determine whether they
13529 can in fact be inlined.
13530 * sem_util.adb (Is_Expression_Function): predicate to determine whether
13531 a function body comes from an expression function.
13532
13533 2011-08-02 Gary Dismukes <dismukes@adacore.com>
13534
13535 * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming
13536 null exclusions to test Can_Never_Be_Null on the anonymous access types
13537 of the formals rather than testing the formals themselves. Exclude this
13538 check in cases where the Old_Formal is marked as a controlling formal,
13539 to avoid issuing spurious errors for bodies completing dispatching
13540 operations (due to the flag not getting set on controlling access
13541 formals in body specs).
13542 (Find_Corresponding_Spec): When checking full and subtype conformance of
13543 subprogram bodies in instances, pass Designated and E in that order, for
13544 consistency with the expected order of the formals (New_Id followed by
13545 Old_Id).
13546
13547 2011-08-02 Robert Dewar <dewar@adacore.com>
13548
13549 * sem_ch8.adb: Minor reformatting.
13550
13551 2011-08-02 Ed Schonberg <schonberg@adacore.com>
13552
13553 * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure
13554 Check_Class_Wide_Actual, to implement AI05-0071, on defaulted
13555 primitive operations of class-wide actuals.
13556
13557 2011-08-02 Javier Miranda <miranda@adacore.com>
13558
13559 * exp_atag.ads, exp_atag.adb
13560 (Build_Common_Dispatching_Select_Statements): Remove argument Loc
13561 since its value is implicitly passed in argument Typ.
13562 * exp_disp.adb (Make_Disp_Conditional_Select_Body,
13563 Make_Disp_Timed_Select_Body): Remove Loc in calls to routine
13564 Build_Common_Dispatching_Select_Statements.
13565
13566 2011-08-02 Robert Dewar <dewar@adacore.com>
13567
13568 * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads,
13569 exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments.
13570 Minor reformatting.
13571
13572 2011-08-02 Robert Dewar <dewar@adacore.com>
13573
13574 * sem_res.adb: Minor reformatting.
13575 * sem_prag.adb: Minor reformatting.
13576
13577 2011-08-02 Javier Miranda <miranda@adacore.com>
13578
13579 * exp_atag.adb, exp_atags.ads
13580 (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr
13581 by the tagged type Entity. Required to use this routine in the VM
13582 targets since we do not have available the Tag entity in the VM
13583 platforms.
13584 * exp_ch6.adb
13585 (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package
13586 Ada.Tags has not been previously loaded.
13587 * exp_ch7.adb
13588 (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke
13589 Build_VM_TSDs if package Ada.Tags has not been previously loaded.
13590 * sem_aux.adb
13591 (Enclosing_Dynamic_Scope): Add missing support to handle the full
13592 view of enclosing scopes. Required to handle enclosing scopes that
13593 are synchronized types whose full view is a task type.
13594 * exp_disp.adb
13595 (Build_VM_TSDs): Minor code improvement to avoid generating and
13596 analyzing lists with empty nodes.
13597 (Make_Disp_Asynchronous_Select_Body): Add support for VM targets.
13598 (Make_Disp_Conditional_Select_Body): Add support for VM targets.
13599 (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets.
13600 (Make_Disp_Timed_Select_Body): Add support for VM targets.
13601 (Make_Select_Specific_Data_Table): Add support for VM targets.
13602 (Make_VM_TSD): Generate code to initialize the SSD structure of
13603 the TSD.
13604
13605 2011-08-02 Yannick Moy <moy@adacore.com>
13606
13607 * lib-writ.adb (Write_ALI): when ALFA mode is set, write local
13608 cross-references section in ALI.
13609 * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub
13610 (enclosing subprogram), Slc (location of Sub) and Sun (unit number of
13611 Sub).
13612 (Enclosing_Subprogram_Or_Package): new function to return the enclosing
13613 subprogram or package entity of a node
13614 (Is_Local_Reference_Type): new function returns True for references
13615 selected in local cross-references.
13616 (Lt): function extracted from Lt in Output_References
13617 (Write_Entity_Name): function extracted from Output_References
13618 (Generate_Definition): generate reference with type 'D' for definition
13619 of objects (object declaration and parameter specification), with
13620 appropriate locations and units, for use in local cross-references.
13621 (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created
13622 references of type 'I' for initialization in object definition.
13623 (Output_References): move part of function Lt and procedure
13624 Write_Entity_Name outside of the body. Ignore references of types 'D'
13625 and 'I' introduced for local cross-references.
13626 (Output_Local_References): new procedure to output the local
13627 cross-references sections.
13628 (Lref_Entity_Status): new array defining whether an entity is a local
13629 * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference
13630 with 'I' type when initialization expression is present.
13631 * get_scos.adb, get_scos.ads: Correct comments and typos
13632
13633 2011-08-02 Javier Miranda <miranda@adacore.com>
13634
13635 * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in
13636 the JVM target.
13637 * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in
13638 the JVM target.
13639 * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no
13640 TSD support.
13641
13642 2011-08-02 Vincent Celier <celier@adacore.com>
13643
13644 * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line
13645 (No_Space_Img): New function
13646 (Find_Excluded_Sources): When reading from a file, record the file name
13647 and the line number for each excluded source.
13648 (Mark_Excluded_Sources): When reporting an error, if the excluded
13649 sources were read from a file, include file name and line number in
13650 the error message.
13651
13652 2011-08-02 Ed Schonberg <schonberg@adacore.com>
13653
13654 * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2).
13655
13656 2011-08-02 Robert Dewar <dewar@adacore.com>
13657
13658 * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting
13659
13660 2011-08-02 Javier Miranda <miranda@adacore.com>
13661
13662 * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
13663 generation of TSDs to the DOTNET compiler.
13664 * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
13665 generation of TSDs to the DOTNET compiler.
13666
13667 2011-08-02 Javier Miranda <miranda@adacore.com>
13668
13669 * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
13670 record of all the tagged types declared inside library level package
13671 declarations, library level package bodies or library level subprograms.
13672 * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD
13673 associated with a given tagged type.
13674 (Build_VM_TSDs): New subprogram.
13675 * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main
13676 compilation units that are subprograms.
13677 * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main
13678 compilation units that are package bodies.
13679 (Expand_N_Package_Declaration): Generate TSDs of the main compilation
13680 units that are a package declaration or a package instantiation.
13681 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code
13682 reorganization to improve the error generated by the frontend when the
13683 function Ada.Tags.Secondary_Tag is not available.
13684 * rtsfind.ads (RE_Register_TSD): New runtime entity.
13685 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup.
13686
13687 2011-08-02 Javier Miranda <miranda@adacore.com>
13688
13689 * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode.
13690
13691 2011-08-02 Robert Dewar <dewar@adacore.com>
13692
13693 * s-imenne.ads: Minor reformatting.
13694
13695 2011-08-02 Robert Dewar <dewar@adacore.com>
13696
13697 * a-stunau.ads: Add pragma Suppress_Initialization for Big_String
13698 * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed
13699 * s-stalib.ads: Add pragma Suppress_Initialization for Big_String
13700
13701 2011-08-02 Robert Dewar <dewar@adacore.com>
13702
13703 * einfo.ads (Materialize_Entity): Document this is only for renamings
13704 * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate
13705 required debug information in the case where we transform the object
13706 declaration into a renaming declaration.
13707 * exp_ch4.adb (Expand_Concatenate): Generate debug info for result
13708 object
13709 * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of
13710 Materialize_Entity.
13711
13712 2011-08-02 Robert Dewar <dewar@adacore.com>
13713
13714 * einfo.ads, einfo.adb (Suppress_Initialization): Replaces
13715 Suppress_Init_Procs.
13716 * exp_ch3.adb, exp_disp.adb, freeze.adb: Use
13717 Suppress_Initialization/Initialization_Suppressed.
13718 * gnat_rm.texi: New documentation for pragma Suppress_Initialization
13719 * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function
13720 * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed
13721 * sem_prag.adb: New processing for pragma Suppress_Initialization.
13722
13723 2011-08-02 Robert Dewar <dewar@adacore.com>
13724
13725 * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb:
13726 Minor reformatting.
13727
13728 2011-08-02 Ed Schonberg <schonberg@adacore.com>
13729
13730 * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can
13731 only have inheritable classwide pre/postconditions.
13732
13733 2011-08-02 Javier Miranda <miranda@adacore.com>
13734
13735 * a-tags.ads, a-tags.adb (Check_TSD): New subprogram.
13736 * rtsfind.ads (RE_Check_TSD): New runtime entity.
13737 * exp_disp.adb (Make_DT): Generate call to the new runtime routine that
13738 checks if the external tag of a type is the same as the external tag
13739 of some other declaration.
13740
13741 2011-08-02 Thomas Quinot <quinot@adacore.com>
13742
13743 * s-taskin.ads: Minor reformatting.
13744
13745 2011-08-02 Emmanuel Briot <briot@adacore.com>
13746
13747 * g-comlin.adb (Display_Help): swap the order in which it prints the
13748 short help and the general usage.
13749
13750 2011-08-02 Ed Schonberg <schonberg@adacore.com>
13751
13752 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly
13753 the aspect declarations and attach them to the generic copy for
13754 subsequent analysis.
13755 (Analyze_Subprogram_Instantiation): copy explicitly the aspect
13756 declarations of the generic tree to the new subprogram declarations.
13757 * sem_attr.adb (Check_Precondition_Postcondition): recognize
13758 conditions that apply to a subprogram instance.
13759
13760 2011-08-02 Robert Dewar <dewar@adacore.com>
13761
13762 * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project].
13763
13764 2011-08-02 Ed Schonberg <schonberg@adacore.com>
13765
13766 * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged
13767 private type with a tagged full view is not derived in the immediate
13768 scope of the partial view, (RM 7.3 (7)) use the scope of the base type.
13769
13770 2011-08-02 Robert Dewar <dewar@adacore.com>
13771
13772 * exp_ch4.adb: Minor reformatting.
13773
13774 2011-08-02 Ed Schonberg <schonberg@adacore.com>
13775
13776 * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an
13777 Ada2012 iterator, the loop will be rewritten during expansion into a
13778 while loop with a cursor and an element declaration. Do not analyze the
13779 body in this case, because if the container is for indefinite types the
13780 actual subtype of the elements will only be determined when the cursor
13781 declaration is analyzed.
13782
13783 2011-08-02 Arnaud Charlet <charlet@adacore.com>
13784
13785 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore
13786 size/alignment related attributes in CodePeer_Mode.
13787
13788 2011-08-02 Gary Dismukes <dismukes@adacore.com>
13789
13790 * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to
13791 Prepend_Element, since this can result in the operation getting the
13792 wrong slot in the full type's dispatch table if the full type has
13793 inherited operations. The incomplete type's operation will get added
13794 to the proper position in the full type's primitives
13795 list later in Sem_Disp.Check_Operation_From_Incomplete_Type.
13796 (Process_Incomplete_Dependents): Add Is_Primitive test when checking for
13797 dispatching operations, since there are cases where nonprimitive
13798 subprograms can get added to the list of incomplete dependents (such
13799 as subprograms in nested packages).
13800 * sem_ch6.adb (Process_Formals): First, remove test for being in a
13801 private part when determining whether to add a primitive with a
13802 parameter of a tagged incomplete type to the Private_Dependents list.
13803 Such primitives can also occur in the visible part, and should not have
13804 been excluded from being private dependents.
13805 * sem_ch7.adb (Uninstall_Declarations): When checking the rule of
13806 RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents
13807 list of a Taft-amendment incomplete type is a primitive before issuing
13808 an error that the full type must appear in the same unit. There are
13809 cases where nonprimitives can be in the list (such as subprograms in
13810 nested packages).
13811 * sem_disp.adb (Derives_From): Use correct condition for checking that
13812 a formal's type is derived from the type of the corresponding formal in
13813 the parent subprogram (the condition was completely wrong). Add
13814 checking that was missing for controlling result types being derived
13815 from the result type of the parent operation.
13816
13817 2011-08-02 Yannick Moy <moy@adacore.com>
13818
13819 * errout.adb (First_Node): minor renaming
13820 * restrict.adb (Check_Formal_Restriction): put restriction warning on
13821 first node.
13822
13823 2011-08-02 Yannick Moy <moy@adacore.com>
13824
13825 * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator
13826 before accessing operands.
13827 * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to
13828 decide whether an initialization expression respects SPARK rules, as
13829 the plain node is the expanded one. This allows for more valid warnings
13830 to be issued.
13831 * gnat_rm.texi: Minor update.
13832
13833 2011-08-02 Arnaud Charlet <charlet@adacore.com>
13834
13835 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert
13836 previous change.
13837
13838 2011-08-02 Robert Dewar <dewar@adacore.com>
13839
13840 * sem_ch3.adb, sem_ch4.adb: Minor reformatting.
13841
13842 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
13843
13844 * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original
13845 loop statements and the element renaming declaration with a block when
13846 the element type is controlled.
13847
13848 2011-08-02 Yannick Moy <moy@adacore.com>
13849
13850 * sinfo.ads: Minor formatting.
13851
13852 2011-08-02 Ed Schonberg <schonberg@adacore.com>
13853
13854 * sem_aggr.adb (Add_Association): if the association has a box and no
13855 expression, use the Sloc of the aggregate itself for the new
13856 association.
13857 * errout.adb (First_Node): Exclude nodes with no Sloc, and always use
13858 the Original_Node.
13859
13860 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
13861
13862 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring.
13863 When a container is provided via a function call, generate a renaming
13864 of the function result. This avoids the creation of a transient scope
13865 and the premature finalization of the container.
13866 * exp_ch7.adb (Is_Container_Cursor): Removed.
13867 (Wrap_Transient_Declaration): Remove the supression of the finalization
13868 of the list controller when the declaration denotes a container cursor,
13869 it is not needed.
13870
13871 2011-08-02 Yannick Moy <moy@adacore.com>
13872
13873 * restrict.adb (Check_Formal_Restriction): only issue a warning if the
13874 node is from source, instead of the original node being from source.
13875 * sem_aggr.adb
13876 (Resolve_Array_Aggregate): refine the check for a static expression, to
13877 recognize also static ranges
13878 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration,
13879 Array_Type_Declaration): postpone the test for the type being a subtype
13880 mark after the type has been resolved, so that component-selection and
13881 expanded-name are discriminated.
13882 (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm
13883 to distinguish the case of an iteration scheme, so that an error is
13884 issed on a non-static range in SPARK except in an iteration scheme.
13885 * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with
13886 In_Iter_Schm = True.
13887 * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for
13888 user-defined operators so that they are allowed in renaming
13889 * sem_ch8.adb
13890 (Find_Selected_Component): refine the check for prefixing of operators
13891 so that they are allowed in renaming. Move the checks for restrictions
13892 on selector name after analysis discriminated between
13893 component-selection and expanded-name.
13894 * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on
13895 concatenation argument of string type if it is static.
13896 * sem_util.adb, sem_util.ads
13897 (Check_Later_Vs_Basic_Declarations): add a new function
13898 Is_Later_Declarative_Item to decice which declarations are allowed as
13899 later items, in the two different modes Ada 83 and SPARK. In the SPARK
13900 mode, add that renamings are considered as later items.
13901 (Enclosing_Package): new function to return the enclosing package
13902 (Enter_Name): correct the rule for homonyms in SPARK
13903 (Is_SPARK_Initialization_Expr): default to returning True on nodes not
13904 from source (result of expansion) to avoid issuing wrong warnings.
13905
13906 2011-08-02 Ed Schonberg <schonberg@adacore.com>
13907
13908 * errout.adb: On anything but an expression First_Node returns its
13909 argument.
13910
13911 2011-08-02 Pascal Obry <obry@adacore.com>
13912
13913 * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting.
13914
13915 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
13916
13917 * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization.
13918 Set the associated loop as the related expression of internally
13919 generated cursors.
13920 * exp_ch7.adb (Is_Container_Cursor): New routine.
13921 (Wrap_Transient_Declaration): Supress the finalization of the list
13922 controller when the declaration denotes a container cursor.
13923
13924 2011-08-02 Yannick Moy <moy@adacore.com>
13925
13926 * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through
13927 command line now.
13928 * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the
13929 expression is a simple expression. This check cannot be performed in
13930 the semantics, so just drop it.
13931 (P_Index_Or_Discriminant_Constraint): move check that the index or
13932 discriminant is a subtype mark to Analyze_Subtype_Declaration in the
13933 semantics. Other cases were previously checked in the semantics.
13934 * par-ch4.adb (P_Name): move checks that a selector name is not
13935 character literal or an operator symbol to Find_Selected_Component in
13936 the semantics
13937 * par-ch5.adb (Parse_Decls_Begin_End): move check that basic
13938 declarations are not placed after later declarations in a separate
13939 procedure in Sem_Util (possibly not the best choice?), to be used both
13940 during parsing, for Ada 83 mode, and during semantic analysis, for
13941 SPARK mode.
13942 * par-endh.adb (Check_End): move check that end label is not missing
13943 to Process_End_Label in the semantics
13944 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove
13945 the special case for SPARK restriction
13946 * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End
13947 * restrict.adb, restrict.ads (Check_Formal_Restriction): add a
13948 parameter Force to issue the error message even on internal node (used
13949 for generated end label). Call Check_Restriction to check when an error
13950 must be issued. In SPARK mode, issue an error message even if the
13951 restriction is not set.
13952 (Check_Restriction): new procedure with an additional out parameter to
13953 inform the caller that a message has been issued
13954 * sem_aggr.adb: Minor modification of message
13955 * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction
13956 instead of issuing an error message directly
13957 * sem_ch3.adb (Analyze_Declarations): move here the check that basic
13958 declarations are not placed after later declarations, by calling
13959 Check_Later_Vs_Basic_Declarations
13960 (Analyze_Subtype_Declaration): move here the check that an index or
13961 discriminant constraint must be a subtype mark. Change the check that
13962 a subtype of String must start at one so that it works on subtype marks.
13963 * sem_ch4.adb (Analyze_Call): move here the check that a named
13964 association cannot follow a positional one in a call
13965 * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction
13966 instead of issuing an error message directly
13967 * sem_ch8.adb (Find_Selected_Component): move here the check that a
13968 selector name is not a character literal or an operator symbol. Move
13969 here the check that the prefix of an expanded name cannot be a
13970 subprogram or a loop statement.
13971 * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new
13972 procedure called from parsing and semantics to check that basic
13973 declarations are not placed after later declarations
13974 (Process_End_Label): move here the check that end label is not missing
13975
13976 2011-08-02 Arnaud Charlet <charlet@adacore.com>
13977
13978 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum
13979 representation clause in codepeer mode, since it confuses CodePeer and
13980 does not bring useful info.
13981
13982 2011-08-02 Ed Falis <falis@adacore.com>
13983
13984 * init.c: initialize fp hw on MILS.
13985
13986 2011-08-02 Ed Schonberg <schonberg@adacore.com>
13987
13988 * errout.adb (First_Node): for bodies, return the node itself (small
13989 optimization). For other nodes, do not check source_unit if the node
13990 comes from Standard.
13991
13992 2011-08-02 Robert Dewar <dewar@adacore.com>
13993
13994 * exp_ch3.adb: Minor comment additions.
13995 * sem_ch13.adb: Minor reformatting.
13996
13997 2011-08-02 Pascal Obry <obry@adacore.com>
13998
13999 * make.adb, makeutl.adb: Removes some superfluous directory separator.
14000
14001 2011-08-02 Robert Dewar <dewar@adacore.com>
14002
14003 * sem_attr.adb: Minor reformatting.
14004
14005 2011-08-02 Robert Dewar <dewar@adacore.com>
14006
14007 * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value
14008 (Has_Default_Component_Value): Removed
14009 * einfo.ads Comment updates
14010 (Has_Default_Aspect): Replaces Has_Default_Value
14011 (Has_Default_Component_Value): Removed
14012 * exp_ch13.adb
14013 (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects
14014 * exp_ch3.adb
14015 (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects
14016 (Get_Simple_Init_Val): Handle Default_Value aspect
14017 (Needs_Simple_Initialization): Handle Default_Value aspect
14018 * exp_ch3.ads: Needs_Simple_Initialization
14019 * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect
14020 * par-prag.adb (Pragma_Default[_Component]Value) Removed
14021 * sem_ch13.adb
14022 (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects
14023 * sem_prag.adb (Pragma_Default[_Component]Value) Removed
14024 * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed
14025
14026 2011-08-02 Ed Schonberg <schonberg@adacore.com>
14027
14028 * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate
14029 package containing iteration primitives.
14030 exp_ch5.adb (Expand_Iterator_Loop): ditto.
14031
14032 2011-08-02 Ed Schonberg <schonberg@adacore.com>
14033
14034 * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with
14035 "of", pre-analyze expression in case it is a function call with
14036 finalization actions that must be placed ahead of the loop.
14037 * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present
14038 on an Ada2012 iterator, insert them ahead of the rewritten loop.
14039
14040 2011-08-02 Geert Bosch <bosch@adacore.com>
14041
14042 * cstand.adb (Create_Float_Types): Only consider C's long double for
14043 Long_Long_Float, in addition to double.
14044
14045 2011-08-02 Robert Dewar <dewar@adacore.com>
14046
14047 * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads,
14048 sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads,
14049 prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb:
14050 Minor reformatting.
14051
14052 2011-08-02 Ed Schonberg <schonberg@adacore.com>
14053
14054 * sem_attr.adb: handle properly 'Result when it is a prefix of an
14055 indexed component.
14056
14057 2011-08-02 Javier Miranda <miranda@adacore.com>
14058
14059 * einfo.ads, einfo.adb
14060 (Original_Access_Type): Move this attribute to Node26 since there was
14061 an undocumented use of Node21 in E_Access_Subprogram_Type entities
14062 which causes conflicts and breaks the generation of the .NET compiler.
14063 (Interface_Name): Add missing documentation on JGNAT only uses of
14064 this attribute.
14065
14066 2011-08-02 Geert Bosch <bosch@adacore.com>
14067
14068 * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist
14069 (Find_Back_End_Float_Type): Likewise
14070 (Create_Back_End_Float_Types): Likewise
14071 (Create_Float_Types): Likewise
14072 (Register_Float_Type): Likewise
14073 * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of
14074 Nlist and split out type selection in new local Find_Base_Type function.
14075 * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of
14076 Nlist
14077 * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist
14078
14079 2011-08-02 Robert Dewar <dewar@adacore.com>
14080
14081 * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in
14082 alpha order).
14083 * opt.ads: Minor comment change.
14084 * sem_ch12.adb: Minor code reorganization.
14085
14086 2011-08-02 Gary Dismukes <dismukes@adacore.com>
14087
14088 * sem_ch3.adb (Complete_Private_Subtype): Don't append the private
14089 subtype's list of rep items to the list on the full subtype in the case
14090 where the lists are the same.
14091
14092 2011-08-02 Geert Bosch <bosch@adacore.com>
14093
14094 * switch-c.adb (Free): New deallocation procedure to avoid implicitly
14095 using the one from System.Strings, which also deallocates all strings.
14096
14097 2011-08-02 Geert Bosch <bosch@adacore.com>
14098
14099 * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New
14100 function.
14101 * gcc-interface/Make-lang.in: Update dependencies.
14102
14103 2011-08-02 Olivier Hainque <hainque@adacore.com>
14104
14105 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function
14106 end_locus.
14107
14108 2011-08-02 Javier Miranda <miranda@adacore.com>
14109
14110 * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals
14111 associated with anonymous access to subprograms.
14112
14113 2011-08-02 Geert Bosch <bosch@adacore.com>
14114
14115 * opt.ads
14116 (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions.
14117 (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition.
14118 * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads
14119 (Add_Symbol_Definition): Move to switch-c.adb
14120 (Process_Command_Line_Symbol_Definitions): Adjust references to above.
14121 * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation.
14122 (Add_Symbol_Definition): Move to switch-c.adb.
14123 * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw.
14124 * sem_warn.adb
14125 (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
14126 Move to warnsw.adb.
14127 * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size,
14128 Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch):
14129 Move to warnsw.adb.
14130 * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw.
14131 (Add_Symbol_Definition): Moved from Prepcomp.
14132 * switch-c.ads: Update copyright notice. Use String_List instead of
14133 Argument_List, removing dependency on System.OS_Lib.
14134
14135 2011-08-02 Yannick Moy <moy@adacore.com>
14136
14137 * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal
14138 mode on initialization expression which does not respect SPARK
14139 restrictions.
14140 * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines
14141 if the tree referenced by its argument represents an initialization
14142 expression in SPARK, suitable for initializing an object in an object
14143 declaration.
14144
14145 2011-08-02 Javier Miranda <miranda@adacore.com>
14146
14147 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the
14148 internally generated access to subprogram with its associated protected
14149 subprogram type.
14150 * einfo.ads, einfo.adb (Original_Access_Type): New attribute.
14151
14152 2011-08-02 Geert Bosch <bosch@adacore.com>
14153
14154 * cstand.adb (Register_Float_Type): Print information about type to
14155 register, if the Debug_Flag_Dot_B is set.
14156 * debug.adb (Debug_Flag_Dot_B): Document d.b debug option.
14157 * rtsfind.ads (RE_Max_Base_Digits): New run time entity.
14158 * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations
14159 with a requested precision of more than Max_Digits digits and no more
14160 than Max_Base_Digits digits, if a range specification is present and the
14161 Predefined_Float_Types list has a suitable type to derive from.
14162 * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the
14163 case of type completion with pragma Import
14164 * sem_prag.adb
14165 (Process_Import_Predefined_Type): Processing to complete a type
14166 with pragma Import. Currently supports floating point types only.
14167 (Set_Convention_From_Pragma): Do nothing without underlying type.
14168 (Process_Convention): Guard against absence of underlying type,
14169 which may happen when importing incomplete types.
14170 (Process_Import_Or_Interface): Handle case of importing predefined
14171 types. Tweak error message.
14172
14173 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
14174
14175 * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined
14176 functions to previous change. Reorganize code slightly.
14177
14178 2011-08-02 Geert Bosch <bosch@adacore.com>
14179
14180 * back_end.ads (Register_Type_Proc): New call back procedure type for
14181 allowing the back end to provide information about available types.
14182 (Register_Back_End_Types): New procedure to register back end types.
14183 * back_end.adb (Register_Back_End_Types): Call the back end to enumerate
14184 available types.
14185 * cstand.adb (Back_End_Float_Types): New list for floating point types
14186 supported by the back end.
14187 (Build_Float_Type): Add extra parameter for Float_Rep_Kind.
14188 (Copy_Float_Type): New procedure to make new copies of predefined types.
14189 (Register_Float_Type): New call back procedure to populate the BEFT list
14190 (Find_Back_End_Float_Type): New procedure to find a BEFT by name
14191 (Create_Back_End_Float_Types): New procedure to populate the BEFT list.
14192 (Create_Float_Types): New procedure to create entities for floating
14193 point types predefined in Standard, and put these and any remaining
14194 BEFTs on the Predefined_Float_Types list.
14195 * stand.ads (Predefined_Float_Types): New list for predefined floating
14196 point types that do not have declarations in package Standard.
14197
14198 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
14199
14200 * inline.adb (Get_Code_Unit_Entity): New local function. Returns the
14201 entity node for the unit containing the parameter.
14202 (Add_Inlined_Body): Use it to find the unit containing the subprogram.
14203 (Add_Inlined_Subprogram): Likewise.
14204 * gcc-interface/Make-lang.in: Update dependencies.
14205
14206 2011-08-02 Thomas Quinot <quinot@adacore.com>
14207
14208 * s-stusta.adb (Print): Make sure Pos is always initialized to a
14209 suitable value.
14210
14211 2011-08-02 Geert Bosch <bosch@adacore.com>
14212
14213 * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image.
14214
14215 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
14216
14217 * sem_type.adb (Covers): Move trivial case to the top and reuse the
14218 computed value of Base_Type.
14219
14220 2011-08-02 Yannick Moy <moy@adacore.com>
14221
14222 * restrict.adb (Check_Restriction): issue an error for any use of
14223 class-wide, even if the No_Dispatch restriction is not set.
14224 * sem_aggr.adb: Correct typos in comments and messages in formal mode
14225 * sem_ch3.adb (Process_Full_View): issue an error in formal mode is,
14226 when completing a private extension, the type named in the private part
14227 is not the same as that named in the visible part.
14228 * sem_res.adb (Resolve_Call): issue an error in formal mode on the use
14229 of an inherited primitive operations of a tagged type or type extension
14230 that returns the tagged type.
14231 * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new
14232 function which returns True for an implicit operation inherited by the
14233 derived type declaration for the argument type.
14234 (Is_SPARK_Object_Reference): move to appropriate place in alphabetic
14235 order.
14236
14237 2011-08-02 Ed Schonberg <schonberg@adacore.com>
14238
14239 * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from
14240 Process_Bounds, to perform analysis with expansion of a range or an
14241 expression that is the iteration scheme for a loop.
14242 (Analyze_Iterator_Specification): If domain of iteration is given by a
14243 function call with a controlled result, as is the case if call returns
14244 a predefined container, ensure that finalization actions are properly
14245 generated.
14246 * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range.
14247
14248 2011-08-02 Javier Miranda <miranda@adacore.com>
14249
14250 * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo.
14251 * gcc-interface/Make-lang.in: Update dependencies.
14252
14253 2011-08-02 Javier Miranda <miranda@adacore.com>
14254
14255 * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to
14256 determine if the analysis is performed using N or Original_Node (N).
14257 * exp_util.adb (Side_Effect_Free): Code cleanup since the new
14258 functionality of routine Is_Variable avoids code duplication.
14259 * checks.adb (Determine_Range): Handle temporaries generated by
14260 Remove_Side_Effects.
14261
14262 2011-08-02 Javier Miranda <miranda@adacore.com>
14263
14264 * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and
14265 expansion of the condition. Required since the previous analysis was
14266 done with expansion disabled (see Resolve_Quantified_Expression) and
14267 hence checks were not inserted and record comparisons have not been
14268 expanded.
14269
14270 2011-08-02 Ed Falis <falis@adacore.com>
14271
14272 * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads:
14273 Update header.
14274
14275 2011-08-02 Bob Duff <duff@adacore.com>
14276
14277 * opt.ads: Minor comment fix.
14278
14279 2011-08-02 Bob Duff <duff@adacore.com>
14280
14281 * sem_ch12.adb (Analyze_Package_Instantiation,
14282 Analyze_Subprogram_Instantiation): Turn off style checking while
14283 analyzing an instance. Whatever style checks that apply to the generic
14284 unit should apply, so it makes no sense to apply them in an instance.
14285 This was causing trouble when compiling an instance of a runtime
14286 unit that violates the -gnatyO switch.
14287 * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from
14288 one of the two case statements, causing spurious errors.
14289
14290 2011-08-02 Robert Dewar <dewar@adacore.com>
14291
14292 * uname.adb: Minor reformatting.
14293 * gnatcmd.adb: Minor reformatting.
14294 * exp_attr.adb: Minor reformatting.
14295
14296 2011-08-02 Ed Schonberg <schonberg@adacore.com>
14297
14298 * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction
14299 No_Dispatching_Calls, do not look for the Assign primitive, because
14300 predefined primitives are not created in this case.
14301
14302 2011-08-02 Bob Duff <duff@adacore.com>
14303
14304 * stylesw.ads: Minor comment fixes.
14305
14306 2011-08-02 Robert Dewar <dewar@adacore.com>
14307
14308 * freeze.adb (Add_To_Result): New procedure.
14309
14310 2011-08-02 Jose Ruiz <ruiz@adacore.com>
14311
14312 * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run
14313 time, if the specific run-time routines for handling streams of strings
14314 are not available, use the default mechanism.
14315
14316 2011-08-02 Arnaud Charlet <charlet@adacore.com>
14317
14318 * s-regpat.ads: Fix typo.
14319
14320 2011-08-02 Vincent Celier <celier@adacore.com>
14321
14322 * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is
14323 not null, call it to create the in memory config project file without
14324 parsing an existing default config project file.
14325
14326 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
14327
14328 * atree.adb (Allocate_Initialize_Node): Remove useless temporaries.
14329
14330 2011-08-02 Ed Schonberg <schonberg@adacore.com>
14331
14332 * sem_elim.adb: an abstract subprogram does not need an eliminate
14333 pragma for its descendant to be eliminable.
14334
14335 2011-08-02 Ed Falis <falis@adacore.com>
14336
14337 * init.c: revert to handling before previous checkin for VxWorks
14338 * s-intman-vxworks.adb: delete unnecessary declarations related to
14339 using Ada interrupt facilities for handling signals.
14340 Delete Initialize_Interrupts. Use __gnat_install_handler instead.
14341 * s-intman-vxworks.ads: Import __gnat_install_handler as
14342 Initialize_Interrupts.
14343 * s-taprop-vxworks.adb: Delete Signal_Mask.
14344 (Abort_Handler): change construction of mask to unblock exception
14345 signals.
14346
14347 2011-08-02 Jerome Guitton <guitton@adacore.com>
14348
14349 * a-except-2005.adb (Raise_From_Signal_Handler): Call
14350 Debug_Raise_Exception before propagation starts.
14351
14352 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
14353
14354 * exp_ch6.adb (Expand_Call): Guard restriction checks with a call
14355 to Restriction_Check_Required.
14356 * sem_ch3.adb (Analyze_Object_Declaration): Likewise.
14357 * sem_res.adb (Resolve_Call): Likewise.
14358 * sem_attr.adb (Check_Stream_Attribute): Likewise.
14359
14360 2011-08-02 Bob Duff <duff@adacore.com>
14361
14362 * stylesw.ads: Update comment.
14363 * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N.
14364 * errout.ads: Remove obsolete comment.
14365
14366 2011-08-02 Javier Miranda <miranda@adacore.com>
14367
14368 * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function.
14369 (Set_Is_Safe_To_Reevaluate): new procedure.
14370 * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no
14371 assignment is allowed on safe-to-reevaluate variables.
14372 (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the
14373 temporary created to remove side effects in expressions that use
14374 the secondary stack as safe-to-reevaluate.
14375 * exp_util.adb (Side_Effect_Free): Add missing code to handle well
14376 variables that are not true constants.
14377
14378 2011-08-02 Robert Dewar <dewar@adacore.com>
14379
14380 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
14381 sem_res.adb, sem_ch6.adb: Minor reformatting.
14382
14383 2011-08-02 Jerome Guitton <guitton@adacore.com>
14384
14385 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
14386
14387 2011-08-02 Ed Schonberg <schonberg@adacore.com>
14388
14389 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
14390 not set Overridden_Operation if subprogram is an initialization
14391 procedure.
14392
14393 2011-08-02 Yannick Moy <moy@adacore.com>
14394
14395 * par-ch6.adb: Correct obsolete name in comments
14396 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
14397 which takes two message arguments (existing function takes one), with
14398 second message used for continuation.
14399 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
14400 block statements that originate from a source block statement, not
14401 generated block statements
14402 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
14403 symmetry with procedure case
14404 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
14405 function to issue an error in formal mode if a package specification
14406 contains more than one tagged type or type extension.
14407 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
14408 parameters matching formals of tagged types are objects (or ancestor
14409 type conversions of objects), not general expressions. Issue an error
14410 on view conversions that are not involving ancestor conversion of an
14411 extended type.
14412 (Resolve_Type_Conversion): in formal mode, issue an error on the
14413 operand of an ancestor type conversion which is not an object
14414 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
14415 procedure so that it works also for actuals of function calls
14416 (Is_Actual_Tagged_Parameter): new function which determines if its
14417 argument is an actual parameter of a formal of tagged type in a
14418 subprogram call
14419 (Is_SPARK_Object_Reference): new function which determines if the tree
14420 referenced by its argument represents an object in SPARK
14421
14422 2011-08-02 Robert Dewar <dewar@adacore.com>
14423
14424 * sem_ch3.adb: Minor reformatting
14425 Minor comment addition
14426 Minor error msg text change
14427
14428 2011-08-02 Javier Miranda <miranda@adacore.com>
14429
14430 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
14431 function. Used to be more precise when we generate a variable plus one
14432 assignment to remove side effects in the evaluation of the Bound
14433 expressions.
14434 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
14435 of the bound expression to force its re-analysis and thus expand the
14436 associated transient scope (if required). Code cleanup replacing the
14437 previous code that declared the constant entity by an invocation to
14438 routine Force_Evaluation which centralizes this work in the frontend.
14439
14440 2011-08-02 Robert Dewar <dewar@adacore.com>
14441
14442 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
14443 (Base_Type): Now uses improved Is_Base_Type function
14444 * einfo.ads (Base_Type): Inline this function
14445
14446 2011-08-02 Robert Dewar <dewar@adacore.com>
14447
14448 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
14449 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
14450
14451 2011-08-02 Arnaud Charlet <charlet@adacore.com>
14452
14453 * gcc-interface/Make-lang.in: Update dependencies.
14454 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
14455 targets.
14456
14457 2011-08-02 Yannick Moy <moy@adacore.com>
14458
14459 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
14460 non-simple expression used in delta constraint
14461 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
14462 index constraint which is not a subtype mark
14463 * par.adb: With and use Restrict
14464 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
14465 mode on component type which is not a subtype mark and default
14466 expression on component
14467 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
14468 of string which does not have a lower index bound equal to 1
14469 (Array_Type_Declaration): issue an error in formal mode on index or
14470 component type which is not a subtype mark, and on aliased keyword on
14471 component
14472 (Derived_Type_Declaration): issue an error in formal mode on interface,
14473 limited or abstract type
14474 (Record_Type_Declaration): issue an error in formal mode on interface
14475 (Record_Type_Definition): issue an error in formal mode on tagged types
14476 and type extensions not declared in the specification of a library unit
14477 package; on null non-tagged record; on variant part
14478
14479 2011-08-02 Vincent Celier <celier@adacore.com>
14480
14481 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
14482 not declared for qualified library project when Library_Name is not
14483 declared, but Library_Dir is.
14484
14485 2011-08-02 Robert Dewar <dewar@adacore.com>
14486
14487 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
14488 pragmas (affects aspects [Component_]Default_Value
14489 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
14490 component type for the resolution
14491
14492 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
14493
14494 * einfo.adb (Base_Type): Tune implementation for speed.
14495
14496 2011-08-02 Robert Dewar <dewar@adacore.com>
14497
14498 * freeze.adb: Minor reformatting.
14499
14500 2011-08-02 Thomas Quinot <quinot@adacore.com>
14501
14502 * scos.ads: Update comments.
14503
14504 2011-08-02 Ed Schonberg <schonberg@adacore.com>
14505
14506 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
14507 base type, because the parent may be a subtype of a private type whose
14508 convention is established in a private part.
14509
14510 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
14511
14512 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
14513 statement in a block when the expansion of the return expression has
14514 created a finalization chain.
14515 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
14516 with the parent node.
14517 Add N_Extended_Return_Statement to handle the case where a transient
14518 object declaration appears in the Return_Object_Declarations list of
14519 an extended return statement.
14520
14521 2011-08-02 Matthew Gingell <gingell@adacore.com>
14522
14523 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
14524 unused parameter 'name'.
14525
14526 2011-08-02 Ed Schonberg <schonberg@adacore.com>
14527
14528 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
14529 inherited operation, check whether its alias, which is the source
14530 operastion that it renames, has been marked eliminated.
14531
14532 2011-08-02 Javier Miranda <miranda@adacore.com>
14533
14534 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
14535 in-mode parameter whose type is an access type since it can be used to
14536 modify its designated object. Enforce code that handles as safe an
14537 access type that is not access-to-constant but it is the result of a
14538 previous removal of side-effects.
14539 (Remove_Side_Effects): Minor code reorganization of cases which require
14540 no action. Done to incorporate documentation on new cases uncovered
14541 working in this ticket: no action needed if this routine was invoked
14542 too early and the nodes are not yet decorated.
14543 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
14544 to routine Remove_Side_Effects by calls to Force_Evaluation since they
14545 were issued with actuals that are implicitly provided by
14546 Force_Evaluation.
14547
14548 2011-08-02 Robert Dewar <dewar@adacore.com>
14549
14550 * sem_ch3.adb, sem_res.adb: Minor reformatting.
14551
14552 2011-08-02 Yannick Moy <moy@adacore.com>
14553
14554 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
14555 to issue an error in formal mode on attribute not supported in this mode
14556 (Analyze_Attribute): issue errors on standard attributes not supported
14557 in formal mode.
14558 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
14559 comment, and issue error in formal mode on modulus which is not a power
14560 of 2.
14561 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
14562 range.
14563 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
14564 subtype mark.
14565 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
14566 operator on modular type (except 'not').
14567
14568 2011-08-02 Robert Dewar <dewar@adacore.com>
14569
14570 * gnat_rm.texi: Minor reformatting.
14571
14572 2011-08-02 Arnaud Charlet <charlet@adacore.com>
14573
14574 * s-osinte-linux.ads: Minor comment update and reformatting.
14575 * i-cexten.ads: Make this unit pure, as for its parent.
14576 Will allow its usage in more contexts if needed.
14577
14578 2011-08-02 Robert Dewar <dewar@adacore.com>
14579
14580 * s-utf_32.ads: Minor comment fix.
14581
14582 2011-08-02 Ed Schonberg <schonberg@adacore.com>
14583
14584 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
14585 operation of a tagged synchronized type, handle the case where the
14586 controlling argument is overloaded.
14587
14588 2011-08-02 Yannick Moy <moy@adacore.com>
14589
14590 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
14591 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
14592 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
14593 SPARK mode and formal verification mode on processing SPARK restriction
14594 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
14595 requiring consistency checking.
14596
14597 2011-08-02 Robert Dewar <dewar@adacore.com>
14598
14599 * sem_res.adb: Minor reformatting.
14600
14601 2011-08-02 Robert Dewar <dewar@adacore.com>
14602
14603 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
14604 a-cforse.ads: Remove unneeded with of Ada.Containers
14605 Remove commented out pragma Inline's
14606 Move specifications of new subprograms to the actual specs
14607
14608 2011-08-02 Yannick Moy <moy@adacore.com>
14609
14610 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
14611 a-cforse.ads: Update comments.
14612
14613 2011-08-02 Ed Schonberg <schonberg@adacore.com>
14614
14615 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
14616
14617 2011-08-02 Robert Dewar <dewar@adacore.com>
14618
14619 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
14620 a-cforse.ads, a-cofove.ads: Minor reformatting.
14621
14622 2011-08-02 Claire Dross <dross@adacore.com>
14623
14624 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
14625 a-cofove.ads: Add comments.
14626
14627 2011-08-02 Yannick Moy <moy@adacore.com>
14628
14629 * gnat_rm.texi: Document formal containers.
14630
14631 2011-08-02 Emmanuel Briot <briot@adacore.com>
14632
14633 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
14634 are empty sections.
14635
14636 2011-08-02 Robert Dewar <dewar@adacore.com>
14637
14638 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
14639 reformatting.
14640
14641 2011-08-02 Robert Dewar <dewar@adacore.com>
14642
14643 * aspects.adb: New aspects Default_Value and Default_Component_Value
14644 New format of Aspect_Names table checks for omitted entries
14645 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
14646 handling of boolean aspects for derived types.
14647 New aspects Default_Value and Default_Component_Value
14648 New format of Aspect_Names table checks for omitted entries
14649 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
14650 (Has_Default_Value): New flag
14651 (Has_Default_Component_Value): New flag
14652 (Has_Default_Value): New flag
14653 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
14654 table.
14655 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
14656 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
14657 Default_Value and Default_Component_Value
14658 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
14659 New aspects Default_Value and Default_Component_Value
14660 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
14661 * sprint.adb: Print N_Aspect_Specification node when called from gdb
14662
14663 2011-08-02 Vincent Celier <celier@adacore.com>
14664
14665 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
14666 inherit library kind.
14667
14668 2011-08-02 Ed Schonberg <schonberg@adacore.com>
14669
14670 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
14671 Minor reformatting.
14672
14673 2011-08-02 Robert Dewar <dewar@adacore.com>
14674
14675 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
14676
14677 2011-08-02 Yannick Moy <moy@adacore.com>
14678
14679 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
14680
14681 2011-08-02 Robert Dewar <dewar@adacore.com>
14682
14683 * impunit.adb: Add comment.
14684
14685 2011-08-02 Yannick Moy <moy@adacore.com>
14686
14687 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
14688 qualification of aggregates in formal mode
14689 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
14690 another aggregate
14691 (Resolve_Aggregate): complete the test that an aggregate is adequately
14692 qualified in formal mode
14693
14694 2011-08-02 Pascal Obry <obry@adacore.com>
14695
14696 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
14697 * mlib-prj.adb: Supress warning when compiling binder generated file.
14698 (Build_Library): Supress all warnings when compiling the binder
14699 generated file.
14700
14701 2011-08-02 Yannick Moy <moy@adacore.com>
14702
14703 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
14704 from here...
14705 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
14706 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
14707 Add with/use clauses to make Check_Formal_Restriction visible
14708
14709 2011-08-02 Ed Schonberg <schonberg@adacore.com>
14710
14711 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
14712 in-parameters when type of the generic formal is private in the generic
14713 spec and non-private in the body.
14714
14715 2011-08-02 Claire Dross <dross@adacore.com>
14716
14717 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
14718 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
14719 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
14720 * impunit.adb, Makefile.rtl: Take new files into account.
14721
14722 2011-08-02 Robert Dewar <dewar@adacore.com>
14723
14724 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
14725 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
14726
14727 2011-08-02 Yannick Moy <moy@adacore.com>
14728
14729 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
14730 formal mode
14731 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
14732 matching static array bounds, taking into account the special case of
14733 string literals
14734 * sem_ch3.adb: Typo in comment.
14735
14736 2011-08-02 Yannick Moy <moy@adacore.com>
14737
14738 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
14739 which issues an error in formal mode if its argument node is originally
14740 from source
14741 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
14742 has a discriminant specification so that it does not include the case
14743 of derived types
14744 (Derived_Type_Declaration): move here the test that a derived type has a
14745 discriminant specification
14746 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
14747 first element of a component association before accessing its choices
14748 (presence of component association is not enough)
14749 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
14750 declaration is a library item before accessing the next element in a
14751 list, as library items are not member of lists
14752 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
14753 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
14754 Check_Formal_Restriction whenever possible.
14755
14756 2011-08-02 Ed Schonberg <schonberg@adacore.com>
14757
14758 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
14759 reference when needed.
14760
14761 2011-08-02 Bob Duff <duff@adacore.com>
14762
14763 * gnat_ugn.texi: Fix typo.
14764
14765 2011-08-02 Vincent Celier <celier@adacore.com>
14766
14767 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
14768 archive file name. Do not use the full path name of archives for Open
14769 VMS.
14770
14771 2011-08-02 Robert Dewar <dewar@adacore.com>
14772
14773 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
14774 Analyze_Aspect_Specifications
14775 * sem_ch13.adb
14776 (Analyze_Aspect_Specifications): New handling for boolean aspects
14777 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
14778 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
14779 sequence for Analyze_Aspect_Specifications
14780 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
14781 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
14782
14783 2011-08-02 Robert Dewar <dewar@adacore.com>
14784
14785 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
14786 aspects, since these no longer exist.
14787
14788 2011-08-02 Robert Dewar <dewar@adacore.com>
14789
14790 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
14791 semicolon, do not try to see if there are aspects following it.
14792 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
14793 aspect spec.
14794
14795 2011-08-02 Robert Dewar <dewar@adacore.com>
14796
14797 * sem_ch8.adb, aspects.ads: Minor reformatting.
14798
14799 2011-08-02 Eric Botcazou <ebotcazou@adacore.com>
14800
14801 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
14802 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
14803 extracted from...
14804 (Analyze_Aspect_Specifications): ...here. Call above procedure.
14805
14806 2011-08-02 Yannick Moy <moy@adacore.com>
14807
14808 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
14809 mode on subprogram declaration outside of package specification, unless
14810 it is followed by a pragma Import
14811 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
14812 Access_Type_Declaration): issue error in formal mode on access type
14813 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
14814 incomplete type
14815 (Analyze_Object_Declaration): issue error in formal mode on object
14816 declaration which does not respect SPARK restrictions
14817 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
14818 declaration which does not respect SPARK restrictions
14819 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
14820 error in formal mode on digits or delta constraint
14821 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
14822 decimal fixed point type
14823 (Derived_Type_Declaration): issue error in formal mode on derived type
14824 other than type extensions of tagged record types
14825 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
14826 with check on access definition
14827 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
14828 mode on protected definition.
14829 (Analyze_Task_Definition): issue error in formal mode on task definition
14830
14831 2011-08-02 Robert Dewar <dewar@adacore.com>
14832
14833 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
14834
14835 2011-08-02 Javier Miranda <miranda@adacore.com>
14836
14837 * sem_ch6.adb (Can_Override_Operator): New function.
14838 (Verify_Overriding_Indicator): Add missing code to check overriding
14839 indicator in operators. Fixes regression.
14840 (Check_Overriding_Indicator): Minor reformating after replacing the
14841 code that evaluates if the subprogram can override an operator by
14842 invocations to the above new function.
14843 * einfo.adb
14844 (Write_Field26_Name): Add missing code to ensure that, following
14845 the documentation in einfo.ads, this field is not shown as attribute
14846 "Static_Initialization" on non-dispatching functions.
14847
14848 2011-08-02 Jose Ruiz <ruiz@adacore.com>
14849
14850 * sem_res.adb (Resolve_Call): A call to
14851 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
14852 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
14853 i.e., when the second parameter is of type Time_Span.
14854
14855 2011-08-02 Vincent Celier <celier@adacore.com>
14856
14857 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
14858 with an archive instead of -L<library dir> -l<library name>.
14859
14860 2011-08-02 Ed Schonberg <schonberg@adacore.com>
14861
14862 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
14863 mark the base types In_Use in addition to making the operations
14864 use_visible.
14865
14866 2011-08-02 Ed Falis <falis@adacore.com>
14867
14868 * init.c: add and setup __gnat_signal_mask for the exception signals
14869 * s-inmaop-vxworks.adb: new file.
14870 * s-intman-vxworks.adb: remove unnecessary initializations and
14871 simplify remaining
14872 * s-intman-vxworks.ads: remove unnecessary variable
14873 * s-taprop-vxworks.adb: simplify signal initialization
14874
14875 2011-08-02 Robert Dewar <dewar@adacore.com>
14876
14877 * sem_ch8.adb: Minor code reorganization, comment updates.
14878
14879 2011-08-02 Robert Dewar <dewar@adacore.com>
14880
14881 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
14882 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
14883 here from Sem_Res.
14884 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
14885 (Matching_Static_Array_Bounds): Moved here from Sem_Res
14886
14887 2011-08-02 Ed Schonberg <schonberg@adacore.com>
14888
14889 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
14890 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
14891 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
14892 use_type_clauses, to handle more efficiently use_type and use_all_type
14893 constructs.
14894 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
14895 Ada2012 Use_All_Type clause.
14896 (Use_Class_Wide_Operations): new procedure.
14897
14898 2011-08-02 Robert Dewar <dewar@adacore.com>
14899
14900 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
14901 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
14902 expression to expression function.
14903
14904 2011-08-02 Ed Schonberg <schonberg@adacore.com>
14905
14906 * sem_ch4.adb: transform simple Ada2012 membership into equality only
14907 if types are compatible.
14908
14909 2011-08-02 Yannick Moy <moy@adacore.com>
14910
14911 * sem_res.adb (Matching_Static_Array_Bounds): new function which
14912 returns True if its argument array types have same dimension and same
14913 static bounds at each index.
14914 (Resolve_Actuals): issue an error in formal mode on actuals passed as
14915 OUT or IN OUT paramaters which are not view conversions in SPARK.
14916 (Resolve_Arithmetic_Op): issue an error in formal mode on
14917 multiplication or division with operands of fixed point types which are
14918 not qualified or explicitly converted.
14919 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
14920 Boolean or array type (except String) operands.
14921 (Resolve_Equality_Op): issue an error in formal mode on equality
14922 operators for array types other than String with non-matching static
14923 bounds.
14924 (Resolve_Logical_Op): issue an error in formal mode on logical operators
14925 for array types with non-matching static bounds. Factorize the code in
14926 Matching_Static_Array_Bounds.
14927 (Resolve_Qualified_Expression): issue an error in formal mode on
14928 qualified expressions for array types with non-matching static bounds.
14929 (Resolve_Type_Conversion): issue an error in formal mode on type
14930 conversion for array types with non-matching static bounds
14931
14932 2011-08-02 Robert Dewar <dewar@adacore.com>
14933
14934 * par-ch10.adb: Minor code reorganization (use Nkind_In).
14935
14936 2011-08-02 Ed Schonberg <schonberg@adacore.com>
14937
14938 * par-ch9.adb: save location of entry for proper error message.
14939
14940 2011-08-02 Javier Miranda <miranda@adacore.com>
14941
14942 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
14943 (Use_Full_View) which permits this routine to climb through the
14944 ancestors using the full-view of private parents.
14945 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
14946 Use_Full_View to true in calls to Is_Ancestor.
14947 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
14948 true in call to Is_Ancestor.
14949 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
14950 Use_Full_View to true in call to Is_Ancestor.
14951 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
14952 call to Is_Ancestor.
14953 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
14954 Use_Full_View to true in calls to Is_Ancestor.
14955 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
14956 Make_Select_Specific_Data_Table, Register_Primitive,
14957 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
14958 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
14959 to true in call to Is_Ancestor.
14960 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
14961 Use_Full_View to true in calls to Is_Ancestor.
14962 * exp_cg.adb
14963 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
14964 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
14965
14966 2011-08-02 Robert Dewar <dewar@adacore.com>
14967
14968 * gnat_rm.texi: Minor reformatting.
14969 * sem_prag.adb: Minor reformatting.
14970
14971 2011-08-02 Tristan Gingold <gingold@adacore.com>
14972
14973 * vms_data.ads: Add VMS qualifier for -gnateP.
14974
14975 2011-08-02 Robert Dewar <dewar@adacore.com>
14976
14977 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
14978 * par-ch7.adb (P_Package): Proper placement of aspects for package
14979 decl/instantiation.
14980 * par-endh.adb (Check_End): Ad Is_Sloc parameter
14981 (End_Statements): Add Is_Sloc parameterr
14982 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
14983 (Check_End): Ad Is_Sloc parameter
14984 (End_Statements): Add Is_Sloc parameterr
14985
14986 2011-08-02 Vincent Celier <celier@adacore.com>
14987
14988 * ug_words: Add VMS qualifier equivalent to -gnateP:
14989 /SYMBOL_PREPROCESSING.
14990
14991 2011-08-02 Jose Ruiz <ruiz@adacore.com>
14992
14993 * gnat-style.texi: For hexadecimal numeric literals the typical
14994 grouping of digits is 4 to represent 2 bytes.
14995 A procedure spec which is split into several lines is indented two
14996 characters.
14997
14998 2011-08-02 Yannick Moy <moy@adacore.com>
14999
15000 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
15001 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
15002 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
15003 properly qualified
15004 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
15005 choice in array aggregate
15006 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
15007 mark as ancestor
15008 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
15009 positional and named aggregate for record, or others in record
15010 aggregate, or multiple choice in record aggregate
15011 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
15012 array operands to logical operations AND, OR and XOR do not have the
15013 same static lower and higher bounds
15014 * sem_ch5.adb, sinfo.ads: Correct typos in comments
15015
15016 2011-08-01 Robert Dewar <dewar@adacore.com>
15017
15018 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
15019 Replaces Last_Source_Node_In_Sequence.
15020 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
15021 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
15022 parens and blank in string (this was inconsistently implemented).
15023 * errout.ads
15024 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
15025 blank in string (this was inconsistently implemented).
15026 * gnat1drv.adb
15027 (Set_Global_Switches): Set formal mode switches appropriately
15028 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
15029 * par-prag.adb
15030 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
15031 call Set_Error_Msg_Lang to set "spark" as language name.
15032 * par.adb: Remove unnecessary call to set formal language for errout
15033 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
15034 appropriately and call Set_Error_Msg_Lang to set "spark" as language
15035 name.
15036 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
15037 calls to it, moved after resolution so that types are known
15038 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
15039 result of concatenation is not of type String
15040 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
15041 concatenation is not properly restricted
15042 * gnat_rm.texi: Add doc on pragma Spark_95.
15043 * gcc-interface/Makefile.in: Remove obsolete target pairs for
15044 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
15045 * gcc-interface/Make-lang.in: Update dependencies.
15046
15047 2011-08-01 Javier Miranda <miranda@adacore.com>
15048
15049 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
15050 condition that detects if the overridden operation must replace an
15051 existing entity.
15052
15053 2011-08-01 Javier Miranda <miranda@adacore.com>
15054
15055 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
15056 code declarations inserted by Insert_Actions in each alternative of the
15057 N_Case_Expression node.
15058
15059 2011-08-01 Robert Dewar <dewar@adacore.com>
15060
15061 * sem_ch6.adb: Minor code reorganization.
15062 * sem_util.adb: Minor reformatting.
15063
15064 2011-08-01 Pascal Obry <obry@adacore.com>
15065
15066 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
15067 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
15068
15069 2011-08-01 Yannick Moy <moy@adacore.com>
15070
15071 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
15072 literal or operator symbol which is prefixed
15073 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
15074 mode on access attributes.
15075 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
15076 that concatenation operands are properly restricted in formal mode
15077 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
15078 Analyze_Concatenation_Operand. Issue an error in formal mode if the
15079 result of the concatenation has a type different from String.
15080 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
15081 Analyze_Quantified_Expression, Analyze_Slice,
15082 Analyze_Null): issue an error in formal mode on unsupported constructs
15083 * sem_ch5.adb
15084 (Analyze_Block_Statement): only issue error on source block statement
15085 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
15086 function which returns the last node in a list of nodes for which
15087 Comes_From_Source returns True, if any
15088 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
15089 Last_Source_Node_In_Sequence
15090 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
15091 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
15092 mode on unsupported constructs
15093 * sem_ch9.adb Do not return after issuing error in formal mode, as the
15094 rest of the actions may be needed later on since the error is marked as
15095 not serious.
15096 * sinfo.ads: Typos in comments.
15097
15098 2011-08-01 Pascal Obry <obry@adacore.com>
15099
15100 * projects.texi: Minor editing.
15101
15102 2011-08-01 Yannick Moy <moy@adacore.com>
15103
15104 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
15105 insertion character ~~
15106 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
15107 (Set_Error_Msg_Lang): new procedure which fixes the language for use
15108 with insertion character ~~
15109 (Set_Msg_Text): treat insertion character ~~
15110 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
15111 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
15112 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
15113 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
15114 errors related to the formal language restriction not serious
15115 (insertion character |).
15116 * par.adb (Par): set formal language for error messages if needed
15117 * sem_ch6.adb (Check_Missing_Return): take into account possible
15118 generated statements at the end of the function
15119 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
15120 enumeration value to define a new pragma SPARK_95
15121 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
15122 SPARK_Version): new type and variables to store the SPARK version
15123 (none by default).
15124 (SPARK_Mode): return True when SPARK_Version is set
15125 * par-prag.adb: Correct indentation
15126 (Prag): take Pragma_SPARK_95 into account
15127 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
15128 into account.
15129
15130 2011-08-01 Robert Dewar <dewar@adacore.com>
15131
15132 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
15133 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
15134 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
15135
15136 2011-08-01 Pascal Obry <obry@adacore.com>
15137
15138 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
15139 Target_Name to Get_Path call.
15140 (Parse_Single_Project): Likewise.
15141 (Post_Parse_Context_Clause): Likewise.
15142 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
15143 Call Initialise_Project_Path with the proper Target_Name.
15144 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
15145 search path.
15146 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
15147 with the proper Target_Name.
15148 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
15149 Part.Parse routine.
15150 (Parse_Project_And_Apply_Config): Likewise.
15151 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
15152 This is fine as this part of the code is supporting only native
15153 compilation.
15154 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
15155 is fine as this part of the code is supporting only native compilation.
15156
15157 2011-08-01 Yannick Moy <moy@adacore.com>
15158
15159 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
15160 of homonym, unless the homonym is one of the cases allowed in SPARK
15161 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
15162 package declaration occurring after a body.
15163
15164 2011-08-01 Robert Dewar <dewar@adacore.com>
15165
15166 * checks.adb, exp_ch4.adb: Minor reformatting.
15167
15168 2011-08-01 Javier Miranda <miranda@adacore.com>
15169
15170 * einfo.ads (Access_Disp_Table): Fix documentation.
15171 (Dispatch_Table_Wrappers): Fix documentation.
15172
15173 2011-08-01 Pascal Obry <obry@adacore.com>
15174
15175 * prj-env.adb, prj-env.ads: Minor reformatting.
15176
15177 2011-08-01 Yannick Moy <moy@adacore.com>
15178
15179 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
15180 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
15181 procedures out of these packages.
15182 * errout.ads, errout.adb
15183 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
15184 procedures in of this package
15185 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
15186 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
15187 on misplaced later vs initial declarations, like in Ada 83
15188 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
15189 formal mode on attribute of private type whose full type declaration
15190 is not visible
15191 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
15192 package declaration inside a package specification
15193 (Analyze_Full_Type_Declaration): issue error in formal mode on
15194 controlled type or discriminant type
15195 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
15196 user-defined operator means that it should come from the source
15197 (New_Overloaded_Entity): issue error in formal mode on overloaded
15198 entity.
15199 * sem_ch6.ads, sem_ch13.ads: typos in comments.
15200
15201 2011-08-01 Thomas Quinot <quinot@adacore.com>
15202
15203 * atree.adb: Minor reformatting.
15204 * checks.adb: Minor reformatting.
15205
15206 2011-08-01 Vincent Celier <celier@adacore.com>
15207
15208 * s-parame-vms-ia64.ads: Fix typo in comment
15209 Minor reformatting
15210 * s-parame-vms-restrict.ads: Removed, unused.
15211
15212 2011-08-01 Javier Miranda <miranda@adacore.com>
15213
15214 * exp_ch3.adb
15215 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
15216 * sem_ch3.adb
15217 (Constrain_Index): Remove side effects in the evaluation of the bounds.
15218 * sem_ch3.ads, sem_ch3.adb
15219 (Is_Constant_Bound): New extended version of the subprogram that was
15220 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
15221 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
15222 * sem_aux.ads (Constant_Value): Fix typo in comment.
15223 * checks.adb (Generate_Index_Checks): New implementation which, for
15224 array objects with constant bounds, generates the runtime check
15225 referencing the bounds of the array type. For other cases this routine
15226 provides its previous behavior obtaining such values from the array
15227 object.
15228 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
15229 parent type.
15230 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
15231 we cannot have semantic interpretations of the new node.
15232
15233 2011-08-01 Ed Schonberg <schonberg@adacore.com>
15234
15235 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
15236 expressions.
15237
15238 2011-08-01 Arnaud Charlet <charlet@adacore.com>
15239
15240 * sem_ch8.adb: Minor code editing.
15241 * s-vxwext.adb: Remove trailing space.
15242 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
15243 consistency with other files.
15244
15245 2011-08-01 Thomas Quinot <quinot@adacore.com>
15246
15247 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
15248
15249 2011-08-01 Ed Schonberg <schonberg@adacore.com>
15250
15251 * par-ch10.adb: reject parameterized expressions as compilation unit.
15252 * sem_ch4.adb: handle properly conditional expression with overloaded
15253 then_clause and no else_clause.
15254
15255 2011-08-01 Tristan Gingold <gingold@adacore.com>
15256
15257 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
15258 like done by System.Aux_DEC.
15259 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
15260
15261 2011-08-01 Yannick Moy <moy@adacore.com>
15262
15263 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
15264 missing label at end of declaration (subprogram or package)
15265 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
15266 of positional and named parameter association
15267 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
15268 Error_Msg_SP which adds a prefix to the error message giving the name
15269 of the formal language analyzed
15270 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
15271 access result type in subprogram, unconstrained array as result type,.
15272 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
15273 procedure
15274 * sem_ch8.adb: Code clean up.
15275
15276 2011-08-01 Javier Miranda <miranda@adacore.com>
15277
15278 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
15279 * einfo.ads (Access_Disp_Table): Fix documentation.
15280 (Dispatch_Table_Wrappers): Fix documentation.
15281 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
15282 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
15283 to enforce the documentation of this attribute.
15284 (Set_Is_Interface): Cleanup the assertion.
15285 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
15286 the Underlying_Type entity before reading attribute Access_Disp_Table.
15287 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
15288 Locate the Underlying_Type before reading attribute Access_Disp_Table.
15289 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
15290 the Underlying_Type entity before reading attribute Access_Disp_Table.
15291 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
15292 Locate the Underlying_Type entity before reading attribute
15293 Access_Disp_Table.
15294
15295 2011-08-01 Ed Schonberg <schonberg@adacore.com>
15296
15297 * s-poosiz.ads: Additional overriding indicators.
15298
15299 2011-08-01 Yannick Moy <moy@adacore.com>
15300
15301 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
15302 formal mode.
15303 (Analyze_Iteration_Scheme): issue error in formal mode when loop
15304 parameter specification does not include a subtype mark.
15305 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
15306 formal mode on abstract subprogram.
15307 (Analyze_Subprogram_Specification): issue error in formal mode on
15308 user-defined operator.
15309 (Process_Formals): issue error in formal mode on access parameter and
15310 default expression.
15311 * sem_ch9.adb (Analyze_Abort_Statement,
15312 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
15313 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
15314 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
15315 Analyze_Requeue, Analyze_Selective_Accept,
15316 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
15317 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
15318 issue error in formal mode on user-defined raise statement.
15319
15320 2011-08-01 Thomas Quinot <quinot@adacore.com>
15321
15322 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
15323 declaration being hidden when overriding an implicit inherited
15324 subprogram.
15325 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
15326 (-gnats), do not complain about a source file that contains only a
15327 pragma No_Body.
15328
15329 2011-08-01 Ed Schonberg <schonberg@adacore.com>
15330
15331 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
15332 variable if already set.
15333
15334 2011-08-01 Arnaud Charlet <charlet@adacore.com>
15335
15336 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
15337 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
15338 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
15339 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
15340 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
15341 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
15342 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
15343 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
15344 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
15345 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
15346 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
15347 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
15348 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
15349 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
15350 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
15351 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
15352 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
15353 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
15354 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
15355 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
15356 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
15357 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
15358 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
15359 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
15360 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
15361 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
15362 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
15363 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
15364 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
15365 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
15366 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
15367 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
15368 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
15369 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
15370 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
15371 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
15372 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
15373 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
15374 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
15375 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
15376 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
15377 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
15378 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
15379 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
15380 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
15381 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
15382 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
15383 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
15384 s-osinte-mingw.ads: Update to GPLv3 run-time license.
15385 Use GNAT instead of GNARL.
15386
15387 2011-08-01 Bob Duff <duff@adacore.com>
15388
15389 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
15390 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
15391 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
15392 reformatting.
15393
15394 2011-08-01 Yannick Moy <moy@adacore.com>
15395
15396 * debug.adb (d.D) reverve flag for the SPARK mode
15397 (d.E) reverve flag for SPARK generation mode
15398 (d.F) reverve flag for Why generation mode
15399 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
15400 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
15401 functions which return True when the corresponding modes are set
15402 (Formal_Language): return "spark" or "alfa" when in formal verification
15403 mode.
15404 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
15405 Error_Msg to prefix the error message with a tag giving the formal
15406 language
15407 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
15408 message with a tag giving the formal language
15409 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
15410 block statement
15411 (Analyze_Case_Statement): issue error in formal mode on case statement
15412 with a single "others" case alternative
15413 (Analyze_Exit_Statement): issue errors in formal mode on exit
15414 statements which do not respect SPARK restrictions
15415 (Analyze_Goto_Statement): issue error in formal mode on goto statement
15416 (Check_Unreachable_Code): always issue an error (not a warning) in
15417 formal mode on unreachable code (concerns both code after an infinite
15418 loop and after an unconditional jump, both not allowed in SPARK)
15419 * sem_ch6.adb (Analyze_Return_Statement): add call to
15420 Set_Return_Present for a procedure containing a return statement
15421 (already done for functions in Analyze_Function_Return)
15422 (Analyze_Function_Return): issue error in formal mode on extended
15423 return or if return is not last statement in function
15424 (Check_Missing_Return): issue error in formal mode if function does
15425 not end with return or if procedure contains a return
15426 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
15427 function to detect if there is an inner scope of its parameter S which
15428 is a loop.
15429
15430 2011-08-01 Thomas Quinot <quinot@adacore.com>
15431
15432 * sem_ch6.ads: Minor reformatting.
15433
15434 2011-08-01 Javier Miranda <miranda@adacore.com>
15435
15436 * sem_util.adb (Abstract_Interface_List): Complete condition when
15437 processing private type declarations to avoid reading unavailable
15438 attribute.
15439 (Is_Synchronized_Tagged_Type): Complete condition when processing
15440 private extension declaration nodes to avoid reading unavailable
15441 attribute.
15442
15443 2011-08-01 Thomas Quinot <quinot@adacore.com>
15444
15445 * sem_ch3.adb: Minor reformatting.
15446
15447 2011-08-01 Thomas Quinot <quinot@adacore.com>
15448
15449 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
15450 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
15451 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
15452 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
15453 for VMS, instead parametrize the common implementation with
15454 System.Parameters declarations.
15455
15456 2011-08-01 Eric Botcazou <ebotcazou@adacore.com>
15457
15458 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
15459
15460 2011-08-01 Tristan Gingold <gingold@adacore.com>
15461
15462 * seh_init.c: Fix SEH handler installation on win64.
15463
15464 2011-08-01 Ed Schonberg <schonberg@adacore.com>
15465
15466 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
15467 double analysis of an anonymous access to subprogram, because it can
15468 lead to improper sharing of profiles and a back-end crash.
15469
15470 2011-08-01 Robert Dewar <dewar@adacore.com>
15471
15472 * make.adb, sem_ch4.adb: Minor reformatting.
15473 * gcc-interface/Make-lang.in: Update dependencies.
15474 * sem_util.adb, exp_ch5.adb: Minor reformatting.
15475
15476 2011-08-01 Arnaud Charlet <charlet@adacore.com>
15477
15478 * gnat_rm.texi: Fix definition of Long_Integer.
15479
15480 2011-08-01 Ed Schonberg <schonberg@adacore.com>
15481
15482 * exp_aggr.adb: check limit size of static aggregate unconditionally,
15483 to prevent storage exhaustion.
15484 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
15485 finalized is a function body, insert the cleanup code before the final
15486 return statement, to prevent spurious warnings.
15487 * s-pooglo.ads: add overriding indicator.
15488
15489 2011-08-01 Ed Schonberg <schonberg@adacore.com>
15490
15491 * sem_ch4.adb (Operator_Check): improve error message when both a
15492 with_clause and a use_clause are needed to make operator usage legal.
15493 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
15494 determine whether a compilation unit is visible within an other,
15495 either through a with_clause in the current unit, or a with_clause in
15496 its library unit or one one of its parents.
15497
15498 2011-08-01 Ed Schonberg <schonberg@adacore.com>
15499
15500 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
15501 over an arbitrary expression of an array or container type.
15502 * lib-xref.adb: clarify comment.
15503
15504 2011-08-01 Bob Duff <duff@adacore.com>
15505
15506 * einfo.ads: Minor reformatting.
15507 * debug.adb: Minor comment improvement.
15508
15509 2011-08-01 Javier Miranda <miranda@adacore.com>
15510
15511 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
15512 consider hidden subprograms as valid candidates.
15513
15514 2011-08-01 Arnaud Charlet <charlet@adacore.com>
15515
15516 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
15517
15518 2011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
15519
15520 * gnat_ugn.texi: Fix typo.
15521
15522 2011-08-01 Robert Dewar <dewar@adacore.com>
15523
15524 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
15525 lib-xref.adb: Minor reformatting
15526
15527 2011-08-01 Gary Dismukes <dismukes@adacore.com>
15528
15529 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
15530 when to generate a call to Move_Final_List.
15531 (Has_Controlled_Parts): Remove this function.
15532
15533 2011-08-01 Geert Bosch <bosch@adacore.com>
15534
15535 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
15536 "," in choice list.
15537
15538 2011-08-01 Thomas Quinot <quinot@adacore.com>
15539
15540 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
15541 explicit raise of a predefined exception as Comes_From_Source if the
15542 original N_Raise_Statement comes from source.
15543
15544 2011-08-01 Robert Dewar <dewar@adacore.com>
15545
15546 * sinfo.ads: Add comment.
15547 * sem_ch6.adb: Minor reformatting.
15548
15549 2011-08-01 Robert Dewar <dewar@adacore.com>
15550
15551 * freeze.adb (Freeze_Entity): Refine check for bad component size
15552 clause to avoid rejecting confirming clause when atomic/aliased present.
15553
15554 2011-08-01 Ed Schonberg <schonberg@adacore.com>
15555
15556 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
15557 better determine whether an entity reference is a write.
15558 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
15559 subcomponent.
15560 * lib-xref.adb (Output_References): Do no suppress a read reference at
15561 the same location as an immediately preceeding modify-reference, to
15562 handle properly in-out actuals.
15563
15564 2011-08-01 Tristan Gingold <gingold@adacore.com>
15565
15566 * env.c (__gnat_setenv) [VMS]: Refine previous change.
15567
15568 2011-08-01 Quentin Ochem <ochem@adacore.com>
15569
15570 * i-cstrin.adb (New_String): Changed implementation, now uses only the
15571 heap to compute the result.
15572
15573 2011-08-01 Robert Dewar <dewar@adacore.com>
15574
15575 * atree.ads: Minor reformatting.
15576
15577 2011-08-01 Emmanuel Briot <briot@adacore.com>
15578
15579 * g-expect.adb (Get_Command_Output): Fix memory leak.
15580
15581 2011-08-01 Geert Bosch <bosch@adacore.com>
15582
15583 * cstand.adb (P_Float_Type): New procedure to print the definition of
15584 predefined fpt types.
15585 (P_Mixed_Name): New procedure to print a name using mixed case
15586 (Print_Standard): Use P_Float_Type for printing floating point types
15587 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
15588 precision IEEE float.
15589
15590 2011-08-01 Thomas Quinot <quinot@adacore.com>
15591
15592 * sem_ch3.adb: Minor reformatting.
15593
15594 2011-08-01 Ed Schonberg <schonberg@adacore.com>
15595
15596 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
15597 the completion of a generic function, insert the new body rather than
15598 rewriting the original.
15599
15600 2011-08-01 Yannick Moy <moy@adacore.com>
15601
15602 * sinfo.ads, errout.ads: Typos in comments.
15603
15604 2011-08-01 Robert Dewar <dewar@adacore.com>
15605
15606 * par-endh.adb: Minor reformatting.
15607
15608 2011-08-01 Robert Dewar <dewar@adacore.com>
15609
15610 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
15611 (Pre_Post_Aspects): New subtype.
15612 * par-ch12.adb (P_Generic): New syntax for aspects in packages
15613 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
15614 * par-ch7.adb (P_Package): Remove Decl parameter
15615 (P_Package): Handle new syntax for aspects (before IS)
15616 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
15617 new aspect syntax
15618 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
15619 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
15620 (P_Package): Remove Decl parameter
15621 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
15622 aspects
15623 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
15624 specs
15625 * sem_util.ads, sem_util.adb (Static_Boolean): New function
15626 * sinfo.ads: Document new syntax for aspects in packages etc.
15627 * sprint.adb: Handle new syntax of aspects before IS in package
15628
15629 2011-08-01 Thomas Quinot <quinot@adacore.com>
15630
15631 * atree.ads: Minor reformatting.
15632 * sem_prag.adb: Minor reformatting.
15633
15634 2011-08-01 Robert Dewar <dewar@adacore.com>
15635
15636 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
15637 case expr alternative.
15638
15639 2011-08-01 Ed Schonberg <schonberg@adacore.com>
15640
15641 * sem_ch12.adb: Fix typo.
15642
15643 2011-08-01 Geert Bosch <bosch@adacore.com>
15644
15645 * sem_prag.adb (Check_No_Link_Name): New procedure.
15646 (Process_Import_Or_Interface): Use Check_No_Link_Name.
15647 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
15648 instead of Standard_Long_Long_Float_Size global. Preparation for
15649 eventual removal of per type constants.
15650 * exp_util.ads (Get_Stream_Size): New function returning the stream
15651 size value of subtype E.
15652 * exp_util.adb (Get_Stream_Size): Implement new function.
15653 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
15654 function.
15655 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
15656 * einfo.adb:
15657 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
15658
15659 2011-08-01 Geert Bosch <bosch@adacore.com>
15660
15661 * cstand.adb: Fix comments.
15662 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
15663 count of arguments.
15664
15665 2011-08-01 Robert Dewar <dewar@adacore.com>
15666
15667 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
15668
15669 2011-08-01 Geert Bosch <bosch@adacore.com>
15670
15671 * atree.ads: Fix comment.
15672
15673 2011-08-01 Robert Dewar <dewar@adacore.com>
15674
15675 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
15676 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
15677 * par.adb: Add with for Namet.Sp.
15678 * par-tchk.adb: Minor reformatting.
15679
15680 2011-08-01 Vincent Celier <celier@adacore.com>
15681
15682 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
15683 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
15684 of the init procedure of a SAL.
15685 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
15686 New procedure.
15687
15688 2011-08-01 Thomas Quinot <quinot@adacore.com>
15689
15690 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
15691 reformatting.
15692
15693 2011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15694
15695 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
15696
15697 2011-08-01 Thomas Quinot <quinot@adacore.com>
15698
15699 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
15700 conformant with its spec (return True only for types that have
15701 an overriding Initialize primitive operation that prevents them from
15702 having preelaborable initialization).
15703 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
15704 initialization for controlled types in Ada 2005 or later mode.
15705
15706 2011-08-01 Robert Dewar <dewar@adacore.com>
15707
15708 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
15709 Postcondition.
15710 (Same_Aspect): New function.
15711 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
15712 Type_Invariant, Precondition, Postcondition.
15713 * snames.ads-tmpl: Add Name_Type_Invariant.
15714
15715 2011-08-01 Robert Dewar <dewar@adacore.com>
15716
15717 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
15718 here.
15719 (Freeze_All_Ent): Fix error in handling inherited aspects.
15720 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
15721 already analyzed, but don't skip entire processing of a declaration,
15722 that's wrong in some cases of declarations being rewritten.
15723 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
15724 Don't delay for integer, string literals
15725 Treat predicates in usual manner for delay, remove special case code,
15726 not needed.
15727 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
15728 (Build_Predicate_Function): Update saved expression in aspect
15729 (Build_Invariant_Procedure): Update saved expression in aspect
15730 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
15731 of replacement of discriminant references if the reference is simple.
15732
15733 2011-08-01 Robert Dewar <dewar@adacore.com>
15734
15735 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
15736 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
15737 Static_Predicate and Dynamic_Predicate.
15738 (Build_Predicate_Function): Add processing for Static_Predicate
15739 and Dynamic_Predicate.
15740 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
15741 (From_Static_Predicate): New flag
15742 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
15743
15744 2011-08-01 Robert Dewar <dewar@adacore.com>
15745
15746 * usage.adb: Documentation cleanup for Ada version modes in usage.
15747 * expander.adb: Minor reformatting.
15748
15749 2011-08-01 Robert Dewar <dewar@adacore.com>
15750
15751 * atree.ads: Minor comment fix.
15752 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
15753 a-witeio.ads, sem_prag.adb: Minor reformatting.
15754
15755 2011-08-01 Doug Rupp <rupp@adacore.com>
15756
15757 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
15758 pointers. Use descrip.h header file for convenience. Add some
15759 comments.
15760
15761 2011-08-01 Robert Dewar <dewar@adacore.com>
15762
15763 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
15764 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
15765 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
15766 New procedure.
15767 (Check_Aspect_At_End_Of_Declarations): New procedure
15768 (Analye_Aspect_Specification): Minor changes for above procedures
15769 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
15770 specification node as well.
15771
15772 2011-08-01 Pascal Obry <obry@adacore.com>
15773
15774 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
15775 Windows files. Use GetFilesAttributes() in this case to check for file
15776 existence instead of returning with an error code.
15777
15778 2011-08-01 Vincent Celier <celier@adacore.com>
15779
15780 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
15781 High is above Source length.
15782
15783 2011-08-01 Robert Dewar <dewar@adacore.com>
15784
15785 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
15786
15787 2011-08-01 Robert Dewar <dewar@adacore.com>
15788
15789 * aspects.ads (Boolean_Aspects): New subtype.
15790 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
15791 for derived types in cases where the parent type and derived type have
15792 aspects.
15793 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
15794 with aspects when parent type also has aspects.
15795 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
15796 boolean expression at this point).
15797 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
15798 accordance with final decision on the Ada 2012 feature.
15799 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
15800
15801 2011-08-01 Matthew Heaney <heaney@adacore.com>
15802
15803 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
15804
15805 2011-08-01 Pascal Obry <obry@adacore.com>
15806
15807 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
15808 Fix Replace_Slice when High is above current string size.
15809 (Replace_Slice): Fix DL computation when High is above current
15810 string length.
15811
15812 2011-08-01 Gary Dismukes <dismukes@adacore.com>
15813
15814 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
15815
15816 2011-08-01 Matthew Heaney <heaney@adacore.com>
15817
15818 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
15819 of node.
15820
15821 2011-08-01 Pascal Obry <obry@adacore.com>
15822
15823 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
15824 reformatting.
15825
15826 2011-08-01 Ed Schonberg <schonberg@adacore.com>
15827
15828 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
15829 access to protected subprograms in generic bodies.
15830 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
15831 protected type, indicate that the convention of the subprogram is
15832 Convention_Protected, because it may be used in subsequent declarations
15833 within the protected declaration.
15834
15835 2011-08-01 Vincent Celier <celier@adacore.com>
15836
15837 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
15838 and "final" procedures when the name of the library is "ada", to avoid
15839 duplicate symbols "adainit" and "adafinal" in executables.
15840
15841 2011-08-01 Ed Schonberg <schonberg@adacore.com>
15842
15843 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
15844 quantified expression that appears within a postcondition and uses the
15845 Ada2012 'Result attribute.
15846
15847 2011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15848
15849 * init.c (__gnat_error_handler): Cast reason to int.
15850 (__gnat_install_handler): Explain sa_sigaction use.
15851
15852 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
15853
15854 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
15855 subprogram has copy-in copy-out parameters, try to promote the mode of
15856 the return type if it is passed in registers.
15857
15858 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
15859
15860 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
15861 left operand as addressable.
15862
15863 2011-07-24 Eric Botcazou <ebotcazou@adacore.com>
15864
15865 * gcc-interface/gigi.h (build_function_stub): Remove.
15866 (build_return_expr): Likewise.
15867 (convert_vms_descriptor): Declare.
15868 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
15869 (build_function_stub): Move to...
15870 * gcc-interface/utils2.c (build_return_expr): Move to...
15871 * gcc-interface/trans.c (build_function_stub): ...here.
15872 (build_return_expr): ...here.
15873 (Subprogram_Body_to_gnu): Add local variable for language_function.
15874 Disconnect the parameter attributes cache, if any, once done with it.
15875 Call end_subprog_body only after setting the end_locus.
15876 Build the stub associated with the function, if any, at the very end.
15877 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
15878 variables and streamline control flow.
15879
15880 2011-07-23 Arnaud Charlet <charlet@adacore.com>
15881
15882 PR ada/49819
15883 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
15884 g-trasym-dwarf.adb.
15885
15886 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15887
15888 PR bootstrap/49794
15889 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
15890 Assign to act.sa_sigaction.
15891 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
15892 current->return_address to char * before arithmetic.
15893
15894 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15895
15896 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
15897 Correct argument types.
15898 Extract code from reason.
15899 (__gnat_install_handler): Assign to act.sa_sigaction.
15900
15901 2011-07-21 Eric Botcazou <ebotcazou@adacore.com>
15902
15903 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
15904 (GNAT1_OBJS): ...here.
15905
15906 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
15907
15908 PR ada/48711
15909 * g-socthi-mingw.adb (Fill): Fix formatting.
15910
15911 * gcc-interface/gigi.h: Move around comment.
15912
15913 2011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15914
15915 PR ada/46350
15916 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
15917
15918 2011-07-14 Florian Weimer <fw@deneb.enyo.de>
15919
15920 PR ada/48711
15921 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
15922
15923 2011-07-13 Eric Botcazou <ebotcazou@adacore.com>
15924
15925 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
15926 range comparison if Pmode is SImode.
15927
15928 2011-07-12 Laurent GUERBY <laurent@guerby.net>
15929 Eric Botcazou <ebotcazou@adacore.com>
15930
15931 * adadecode.c: Wrap up in extern "C" block.
15932 * adadecode.h: Likewise.
15933 * adaint.c: Likewise. Remove 'const' keyword.
15934 * adaint.h: Likewise.
15935 * argv.c: Likewise.
15936 * atree.h: Likewise.
15937 * cio.c: Likewise.
15938 * cstreams.c: Likewise.
15939 * env.c: Likewise.
15940 * exit.c: Likewise.
15941 * fe.h: Likewise.
15942 * final.c: Likewise.
15943 * init.c: Likewise.
15944 * initialize.c: Likewise.
15945 * link.c: Likewise.
15946 * namet.h: Likewise.
15947 * nlists.h: Likewise.
15948 * raise.c: Likewise.
15949 * raise.h: Likewise.
15950 * repinfo.h: Likewise.
15951 * seh_init.c: Likewise.
15952 * targext.c: Likewise.
15953 * tracebak.c: Likewise.
15954 * uintp.h: Likewise.
15955 * urealp.h: Likewise.
15956 * xeinfo.adb: Wrap up generated C code in extern "C" block.
15957 * xsinfo.adb: Likewise.
15958 * xsnamest.adb: Likewise.
15959 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
15960 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
15961 * gcc-interface/misc.c: Likewise.
15962 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
15963 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
15964 ada/targext.o here...
15965 (GNAT_ADA_OBJS): ...and not here.
15966 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
15967 (GNATBIND_OBJS): Reorder.
15968
15969 2011-07-07 Richard Henderson <rth@redhat.com>
15970
15971 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
15972 dwarf2out_frame_init.
15973
15974 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
15975
15976 * gcc-interface/misc.c (gnat_init): Tweak previous change.
15977
15978 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15979
15980 PR target/39150
15981 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
15982
15983 2011-07-06 Richard Guenther <rguenther@suse.de>
15984
15985 * gcc-interface/misc.c (gnat_init): Merge calls to
15986 build_common_tree_nodes and build_common_tree_nodes_2.
15987 Re-initialize boolean_false_node.
15988
15989 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
15990 Olivier Hainque <hainque@adacore.com>
15991 Nicolas Setton <setton@adacore.com>
15992
15993 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
15994 the type according to the ARTIFICIAL_P parameter.
15995 (create_type_decl): Likewise.
15996 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
15997
15998 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
15999
16000 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
16001 (gnatbind): Likewise.
16002
16003 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16004
16005 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
16006
16007 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
16008
16009 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
16010 local variable throughout. Remove useless call to Base_Type.
16011 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
16012 Take it also into account for the volatileness of the field. Set the
16013 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
16014
16015 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
16016
16017 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
16018 on a dereference built for a by-ref object if it has an address clause.
16019
16020 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
16021
16022 * einfo.ads (Address_Taken): Document use for the second argument of
16023 Asm_Input and Asm_Output attributes.
16024 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
16025 argument is an entity name, then set Address_Taken on it.
16026 <Attribute_Asm_Output>: Likewise.
16027 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
16028 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
16029 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
16030 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
16031
16032 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
16033
16034 PR middle-end/46500
16035 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
16036
16037 2011-06-14 Joseph Myers <joseph@codesourcery.com>
16038
16039 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
16040 (ada/utils.o): Update dependencies.
16041 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
16042 ../../../libcpp/libcpp.a.
16043 * gcc-interface/utils.c: Include common/common-target.h.
16044 (process_attributes): Use targetm_common.have_named_sections.
16045
16046 2011-06-07 Richard Guenther <rguenther@suse.de>
16047
16048 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
16049 set_sizetype.
16050
16051 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
16052
16053 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
16054 TREE_THIS_NOTRAP flag.
16055
16056 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
16057
16058 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
16059 Fix thinko.
16060
16061 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
16062
16063 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
16064 constants whose full view has discriminants specially.
16065
16066 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
16067
16068 * gcc-interface/utils.c: Include diagnostic.h.
16069 (gnat_write_global_declarations): Output debug information for all
16070 global type declarations before finalizing the compilation unit.
16071 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
16072
16073 2011-05-25 Jakub Jelinek <jakub@redhat.com>
16074
16075 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
16076
16077 2011-05-25 Kai Tietz <ktietz@redhat.com>
16078
16079 * adaint.c (__gnat_to_canonical_file_list_next): Use array
16080 initialization instead of const/none-const pointer assignment.
16081
16082 2011-05-24 Joseph Myers <joseph@codesourcery.com>
16083
16084 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
16085 $(EXTRA_GNAT1_OBJS).
16086 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
16087 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
16088 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
16089 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
16090 libcommon-target.a instead of prefix.o.
16091
16092 2011-05-21 Joseph Myers <joseph@codesourcery.com>
16093
16094 PR ada/49097
16095 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
16096
16097 2011-05-20 Joseph Myers <joseph@codesourcery.com>
16098
16099 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
16100 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
16101 instead of version.o.
16102
16103 2011-05-18 Kai Tietz <ktietz@redhat.com>
16104
16105 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
16106 boolean_false_node instead of integer_zero_node.
16107 (convert_with_check): Likewise.
16108 * gcc-interface/decl.c (choices_to_gnu): Likewise.
16109
16110 2011-05-12 Eric Botcazou <ebotcazou@adacore.com>
16111
16112 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
16113 type of the parameter is an unconstrained array, convert the actual to
16114 the type of the formal in the In Out and Out cases as well.
16115
16116 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
16117
16118 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
16119 call build_function_type_array or build_varargs_function_type_array
16120 instead.
16121 (create_subprog_type): Don't call build_function_type; call
16122 build_function_type_vec instead.
16123
16124 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
16125
16126 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
16127 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
16128 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
16129
16130 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
16131
16132 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
16133
16134 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
16135 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
16136
16137 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
16138
16139 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
16140
16141 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
16142
16143 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
16144 instead of accessing TYPE_ARG_TYPES directly.
16145 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
16146
16147 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
16148
16149 PR ada/48844
16150 * gcc-interface/gigi.h (get_variant_part): Declare.
16151 * gcc-interface/decl.c (get_variant_part): Make global.
16152 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
16153 types have the same constant size, are record types and T1 has a
16154 variant part while T2 doesn't.
16155
16156 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
16157
16158 * gcc-interface/utils.c (begin_subprog_body): Do not call
16159 get_pending_sizes.
16160 (end_subprog_body): Likewise.
16161
16162 2011-05-04 Richard Guenther <rguenther@suse.de>
16163
16164 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
16165 int_const_binop.
16166 (pos_to_constructor): Likewise.
16167
16168 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
16169 Eric Botcazou <ebotcazou@adacore.com>
16170
16171 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
16172 of build_function_type. Adjust calls to...
16173 (build_raise_check): ...this. Do not take a void_tree parameter.
16174 Call build_function_type_list instead of build_function_type.
16175 Fix head comment and swap couple of conditional blocks.
16176
16177 2011-04-30 Eric Botcazou <ebotcazou@adacore.com>
16178
16179 * gnatvsn.ads (Library_Version): Bump to 4.7.
16180 (Current_Year): Bump to 2011.
16181
16182 2011-04-29 Michael Matz <matz@suse.de>
16183
16184 * gcc-interface/misc.c (gnat_handle_option): Set
16185 warn_maybe_uninitialized.
16186
16187 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
16188
16189 * gnat_ugn.texi (Complexity Metrics Control): Update link to
16190 the Watson/McCabe paper.
16191
16192 2011-04-23 Jim Meyering <meyering@redhat.com>
16193
16194 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
16195
16196 2011-04-22 Eric Botcazou <ebotcazou@adacore.com>
16197
16198 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
16199 onto the new type.
16200
16201 2011-04-22 Eric Botcazou <ebotcazou@adacore.com>
16202
16203 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
16204 parameter.
16205 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
16206 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
16207 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
16208 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
16209 <all>: Do not set flags on the reused DECL node coming from an alias.
16210 Set DECL_IGNORED_P on the DECL node built for subprograms if they
16211 don't need debug info here...
16212 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
16213 (gigi): Adjust calls to create_subprog_decl.
16214 (build_raise_check): Likewise.
16215 (establish_gnat_vms_condition_handler): Likewise.
16216 (Compilation_Unit_to_gnu): Likewise.
16217 (gnat_to_gnu): Likewise.
16218
16219 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
16220
16221 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
16222 (NO_REORDER_ADAFLAGS): New variable.
16223 (EXTRA_GNATTOOLS): Always define.
16224 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
16225 Clean up and adjust list of files compiled with special options.
16226 * gcc-interface/Make-lang.in: Likewise.
16227 (ada/decl.o): Cosmetical change.
16228 (ada/misc.o): Remove dependency on $(PLUGIN_H).
16229
16230 2011-04-20 Jim Meyering <meyering@redhat.com>
16231
16232 * initialize.c (__gnat_initialize): Remove useless if-before-free.
16233
16234 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
16235
16236 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
16237 $(CFLAGS) on the link line.
16238
16239 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
16240
16241 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
16242 padded type built for the return type if it is unconstrained.
16243
16244 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
16245
16246 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
16247
16248 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
16249
16250 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
16251 before calling TREE_CHAIN.
16252 * gcc-interface/misc.c (gnat_init_ts): New function.
16253 (LANG_HOOKS_INIT_TS): Define.
16254
16255 2011-04-12 Martin Jambor <mjambor@suse.cz>
16256
16257 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
16258 instead of cgraph_node.
16259
16260 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
16261
16262 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
16263 alignment on fields of the RETURN type built for the Copy-In Copy-Out
16264 mechanism.
16265
16266 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
16267
16268 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
16269 of aggregate types that contain a placeholder.
16270
16271 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
16272
16273 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
16274 TYPE_ARG_TYPES.
16275 (handle_type_generic_attribute): Likewise.
16276
16277 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
16278
16279 PR ada/47163
16280 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
16281
16282 2011-04-04 Kai Tietz <ktietz@redhat.com>
16283
16284 PR ada/47163
16285 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
16286 to flag value.
16287
16288 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
16289
16290 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
16291 type case, do not strip a padding type around the array type.
16292
16293 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
16294
16295 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
16296 types.
16297
16298 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
16299
16300 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
16301 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
16302 code for -feliminate-unused-debug-types.
16303 (gnat_post_options): Likewise.
16304
16305 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
16306
16307 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
16308 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
16309 distinct copy.
16310
16311 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
16312
16313 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
16314 DECL_ARTIFICIAL flag on enumeration types.
16315
16316 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
16317
16318 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
16319 fat pointer types artificial unconditionally.
16320 <E_Array_Subtype>: Attach the base array type as a parallel type if it
16321 isn't artificial.
16322
16323 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
16324
16325 * gcc-interface/gigi.h (get_dummy_type): Declare.
16326 (build_dummy_unc_pointer_types): Likewise.
16327 (finish_fat_pointer_type): Likewise.
16328 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
16329 fat pointer type has been built, complete it in place.
16330 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
16331 and thin pointers. Remove useless variable.
16332 (finish_fat_pointer_type): Make global and move to...
16333 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
16334 (get_dummy_type): New function.
16335 (build_dummy_unc_pointer_types): Likewise.
16336 (gnat_pushdecl): Propage the name to the anonymous variants only.
16337 (update_pointer_to): Only adjust the pointer types in the unconstrained
16338 array case.
16339
16340 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
16341
16342 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
16343 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
16344 if this is a Taft amendment type and the full declaration is available.
16345 * gcc-interface/trans.c (process_type): Likewise.
16346 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
16347 (process_freeze_entity): Likewise.
16348 * gcc-interface/utils.c (dummy_global): New static variable.
16349 (gnat_write_global_declarations): If there are types declared as used
16350 at the global level, insert them in the global hash table.
16351
16352 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
16353
16354 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
16355 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
16356 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
16357 copy.
16358 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
16359 flag of the type accordingly.
16360 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
16361
16362 2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
16363
16364 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
16365 finalizing types when updating the pointers to the designated type.
16366 <all>: Finalize the deferred types even if we didn't defer processing
16367 of incomplete types in this invocation.
16368
16369 2011-04-01 Olivier Hainque <hainque@adacore.com>
16370 Nicolas Setton <setton@adacore.com>
16371 Eric Botcazou <ebotcazou@adacore.com>
16372
16373 * gcc-interface/misc.c (gnat_descriptive_type): New function.
16374 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
16375
16376 2011-03-28 Kai Tietz <ktietz@redhat.com>
16377
16378 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
16379 Windows targets.
16380 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
16381 * system-mingw.ads (System): Change ZCX_By_Default default to True.
16382
16383 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
16384
16385 2011-03-28 Tristan Gingold <gingold@adacore.com>
16386
16387 PR ada/44431
16388 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
16389 Use ada output of gnatbind.
16390 (ada/b_gnatb.adb): Ditto.
16391 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
16392 (ada.mostlyclean, ada.stage1)
16393 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
16394 (ada.stagefeedback): Adjust.
16395 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
16396 Use ada output of gnatbind.
16397 (b_gnatm.adb): Ditto.
16398 (b_gnatl.o, b_gnatm.o): New rules.
16399
16400 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
16401
16402 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
16403 for the padded type built to support a specified size or alignment.
16404
16405 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
16406
16407 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
16408 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
16409 unconditionally to the end of the unit when the designated type is
16410 limited_with'ed.
16411 <all>: Rename local variable. Attempt to un-defer types only and do it
16412 for limited_with'ed types as well.
16413 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
16414 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
16415 consistently and remove redundant call to finalize_from_with_types.
16416
16417 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
16418
16419 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
16420 subprograms without a previous spec declared in the same unit.
16421 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
16422 subprograms at the end of the unit instead of at the beginning.
16423 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
16424 isn't public for the special handling of non-inline functions nested
16425 inside inline external functions.
16426
16427 2011-03-25 Jeff Law <law@redhat.com>
16428
16429 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
16430
16431 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
16432
16433 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
16434 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
16435 to compute Set_Size_Depends_On_Discriminant.
16436 (Layout_Type): Call it on array types in back-end layout mode.
16437 * sem_util.adb (Requires_Transient_Scope): Return true for array
16438 types only if the size depends on the value of discriminants.
16439 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
16440 type if the RHS is a call to a function that returns an unconstrained
16441 type with default discriminant.
16442
16443 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
16444
16445 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
16446 non-conversion to the nominal result type at the end.
16447
16448 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
16449
16450 * gcc-interface/trans.c (create_temporary): New function taken from...
16451 (create_init_temporary): ...here. Call it.
16452 (call_to_gnu): Create the temporary for the return value early, if any.
16453 Create it for a function with copy-in/copy-out parameters if there is
16454 no target; in other cases of copy-in/copy-out, use another temporary.
16455 Push the new binding level lazily. Add and rename local variables.
16456
16457 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
16458
16459 * gcc-interface/decl.c (validate_size): Improve comments and tweak
16460 error message.
16461 (set_rm_size): Likewise.
16462
16463 2011-03-23 Eric Botcazou <ebotcazou@adacore.com>
16464
16465 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
16466 for the padded type built in order to support a specified alignment.
16467 Fix incorrect formatting.
16468
16469 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
16470
16471 PR bootstrap/48216
16472 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
16473
16474 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
16475
16476 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
16477 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
16478 to the end of the list. Adjust recursive call. Rename local variable.
16479 If REORDER is true, reorder components of the record type.
16480 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
16481 components_to_record and adjust the parameter list.
16482
16483 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
16484
16485 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
16486 disabled, use the variable for bounds of loop iteration scheme.
16487
16488 2011-03-21 Kai Tietz <ktietz@redhat.com>
16489
16490 PR target/12171
16491 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
16492
16493 2011-03-17 Eric Botcazou <ebotcazou@adacore.com>
16494
16495 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
16496 out whether the expression is read-only. Short-circuit placeholder
16497 case and rename a couple of local variables.
16498
16499 2011-03-17 Eric Botcazou <ebotcazou@adacore.com>
16500
16501 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
16502 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
16503 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
16504 (convert): Deal with conversions from a smaller form type specially.
16505
16506 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
16507
16508 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
16509 its argument, except for the special -I- switch.
16510
16511 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
16512
16513 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
16514 "Ada Issues".
16515
16516 2011-02-08 Eric Botcazou <ebotcazou@adacore.com>
16517
16518 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
16519
16520 2011-02-03 Eric Botcazou <ebotcazou@adacore.com>
16521
16522 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
16523 GNAT_FORMAL.
16524 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
16525 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
16526 instead of GNAT_FORMAL. Protect the expression against multiple uses.
16527 Do not generate the check directly, instead instantiate the template
16528 check present in the descriptor.
16529 (make_descriptor_field): Move around.
16530 (build_vms_descriptor32): Build a template check in the POINTER field.
16531 (build_vms_descriptor): Remove useless suffixes.
16532 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
16533
16534 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
16535
16536 PR bootstrap/47467
16537 * targext.c: Include target files if IN_RTS is defined.
16538
16539 2011-01-26 Richard Guenther <rguenther@suse.de>
16540
16541 PR bootstrap/47467
16542 * targext.c: Include config.h.
16543 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
16544 dependency.
16545
16546 2011-01-04 Pascal Obry <obry@adacore.com>
16547 Eric Botcazou <ebotcazou@adacore.com>
16548
16549 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
16550
16551 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16552
16553 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
16554 end-of-case on the end label and its associated gotos, if any.
16555
16556 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16557
16558 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
16559 expressions of the parameter cache within the statement group of
16560 the CICO mechanism.
16561
16562 2011-01-04 Olivier Hainque <hainque@adacore.com>
16563 Eric Botcazou <ebotcazou@adacore.com>
16564
16565 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
16566 (set_end_locus_from_node): New function.
16567 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
16568 make and the function end_locus.
16569 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
16570 for the elaboration subprogram.
16571 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
16572 set the end_locus of the expression as well.
16573
16574 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16575
16576 PR ada/47131
16577 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
16578 variables that are referenced in exception handlers volatile.
16579
16580
16581 \f
16582 Copyright (C) 2011 Free Software Foundation, Inc.
16583
16584 Copying and distribution of this file, with or without modification,
16585 are permitted in any medium without royalty provided the copyright
16586 notice and this notice are preserved.
This page took 0.792796 seconds and 4 git commands to generate.