1 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
3 * gcc-interface/decl.c (value_annotation_hasher): Inherit from
4 ggc_cache_ptr_hash rather than ggc_cache_hasher.
5 * gcc-interface/utils.c (pad_type_hasher): Likewise.
7 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
9 * gcc-interface/decl.c (value_annotation_hasher::handle_cache_entry):
11 (value_annotation_hasher::keep_cache_entry): New function.
12 * gcc-interface/utils.c (pad_type_hasher::handle_cache_entry):
14 (pad_type_hasher::keep_cache_entry): New function.
16 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
18 * gcc-interface/misc.c: Include calls.h not function.h.
20 2015-06-19 Eric Botcazou <ebotcazou@adacore.com>
22 * gcc-interface/gigi.h (record_builtin_type): Adjust comment.
23 (tree create_type_decl): Likewise.
24 (create_var_decl_1): Add artificial_p and debug_info_p parameters.
25 (create_var_decl): Likewise.
26 (create_true_var_decl): Delete.
27 (create_subprog_decl): Add debug_info_p parameter.
28 * gcc-interface/decl.c (gnat_to_gnu_entity): Add artificial_p local
29 variable and use it throughout. Remove DECL_ARTIFICIAL settings.
30 <E_Variable>: Adjust calls to create_var_decl and create_var_decl_1.
31 Remove DECL_IGNORED_P settings.
32 <E_Enumeration_Type>: Likewise.
33 <E_Record_Type>: Likewise.
34 <E_Subprogram_Type>: Likewise. Remove artificial_flag local variable.
35 Adjust call to create_subprog_decl.
36 (get_minimal_subprog_decl): Likewise.
37 (elaborate_expression_1): Adjust call to create_var_decl.
38 * gcc-interface/trans.c (gigi): Adjust calls to create_var_decl and
39 create_subprog_decl. Remove DECL_ARTIFICIAL & DECL_IGNORED_P settings.
40 * gcc-interface/utils.c (maybe_pad_type): Likewise.
41 (record_builtin_type): Adjust comment.
42 (create_type_stub_decl): Remove obsolete comment.
43 (create_var_decl_1): Add artificial_p and debug_info_p parameters.
44 Set DECL_ARTIFICIAL and DECL_IGNORED_P accordingly.
45 (create_subprog_decl): Add debug_info_p parameter. Set DECL_IGNORED_P
48 2015-06-19 Eric Botcazou <ebotcazou@adacore.com>
50 * gcc-interface/misc.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): Define.
52 2015-06-19 Eric Botcazou <ebotcazou@adacore.com>
54 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Make sure
55 the size of a padding type built around the return type is positive.
56 * gcc-interface/trans.c (gnat_to_gnu) <N_Simple_Return_Statement>:
57 Use INIT_EXPR instead of MODIFY_EXPR to assign to the return object.
59 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
61 * gcc-interface/cuintp.c: Do not include input.h, line-map.h or is-a.h.
62 * gcc-interface/decl.c: Likewise.
63 * gcc-interface/misc.c: Likewise.
64 * gcc-interface/targtyps.c: Likewise.
65 * gcc-interface/trans.c: Likewise.
66 * gcc-interface/utils.c: Likewise.
67 * gcc-interface/utils2.c: Likewise.
69 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
71 * gcc-interface/utils.c (get_global_context): Register the main
72 translation unit through the new debug hook.
74 2015-06-09 Eric Botcazou <ebotcazou@adacore.com>
76 * gcc-interface/misc.c: Remove duplicate include directives.
77 * gcc-interface/trans.c: Likewise.
78 * gcc-interface/utils.c: Likewise.
80 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
82 * gcc-interface/cuintp.c : Adjust include files.
83 * gcc-interface/decl.c : Likewise.
84 * gcc-interface/misc.c : Likewise.
85 * gcc-interface/targtyps.c : Likewise.
86 * gcc-interface/trans.c : Likewise.
87 * gcc-interface/utils.c : Likewise.
88 * gcc-interface/utils2.c : Likewise.
90 2015-06-08 John Marino <gnugcc@marino.st>
92 * a-intnam-dragonfly.ads: New.
93 * s-osinte-dragonfly.adb: Likewise.
94 * s-osinte-dragonfly.ads: Likewise.
95 * system-dragonfly-x86_64.ads: Likewise.
96 * adaint.c: Add BSD macros.
97 * cstreams.c: Likewise.
98 * gsocket.h: Likewise.
100 * socket.c: Likewise.
101 * env.c: Add __DragonFly__, remove __FreeBSD__ macro.
102 * init.c: Add __DragonFly__, change __gnat_install_handler
103 prototype from empty to void.
104 * initialize.c: Add __DragonFly__.
105 * sysdep.c: Likewise.
106 * s-osinte-freebsd.adb: Use __get_errno instead of __error.
107 * tracebak.c: Set unwinder for i386 BSD.
108 * gcc-interface/Makefile.in: Add x86_64 DragonFly, tweak
109 x86_64 FreeBSD and x86 FreeBSD.
111 2015-06-06 Eric Botcazou <ebotcazou@adacore.com>
113 * gcc-interface/utils.c (note_types_used_by_globals): Tweak comment.
114 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
116 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
118 * gcc-interface/gigi.h (note_types_used_by_globals): Rename from
119 gnat_write_global_declarations.
120 * gcc-interface/misc.c (gnat_parse_file): Call
121 note_types_used_by_globals.
122 Remove LANG_HOOKS_WRITE_GLOBALS.
123 * gcc-interface/utils.c: Rename global_decls to type_decls.
124 (gnat_write_global_declarations): Rename
125 to note_types_used_by_globals.
126 Remove call to finalize_compilation_unit.
127 Remove call to debug_hooks->global_decl for globals.
128 (gnat_pushdecls): Only insert into type_decls if TYPE_DECL.
130 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
132 * gcc-interface/cuintp.c: Adjust includes for restructured coretypes.h.
133 * gcc-interface/decl.c: Likewise.
134 * gcc-interface/misc.c: Likewise.
135 * gcc-interface/targtyps.c: Likewise.
136 * gcc-interface/trans.c: Likewise.
137 * gcc-interface/utils.c: Likewise.
138 * gcc-interface/utils2.c: Likewise.
140 2015-06-04 Pierre-Marie de Rodat <derodat@adacore.com>
142 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: If
143 processing a definition, create definitions for padding types
146 2015-06-03 Eric Botcazou <ebotcazou@adacore.com>
148 * gcc-interface/utils.c (copy_type): Also set TYPE_CANONICAL.
150 2015-06-03 Eric Botcazou <ebotcazou@adacore.com>
152 * gcc-interface/trans.c (gnat_to_gnu) <N_Simple_Return_Statement>: Fix
153 typo in latest change.
155 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
157 * gcc-interface/Makefile.in: Fix ARM/Darwin configuration.
159 2015-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
161 * gcc-interface/utils.c (scale_by_factor_of): When handling a function
162 call expression, process the corresponding function body. Also handle
165 2015-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
167 * gcc-interface/decl.c (gnat_to_gnu_entity): Replace pointer types with
168 references ones for functions that return references.
170 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
172 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: For a
173 definition of a type coming from a limited_with, get to the full view
174 if it is not in the main code unit.
176 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
178 * gcc-interface/utils.c (create_var_decl_1): If an assembler name is
179 specified, let the target mangle it before settting.
180 (create_subprog_decl): Likewise and move this treatment last.
182 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
184 * gcc-interface/lang-specs.h (TARGET_VXWORKS_RTP): Move substitution to
185 before first -gnatez switch. Simplify and add trailing space.
187 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
189 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the
190 record has a parent field and a representation clause, make sure that
191 it is properly aligned.
193 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
195 * gcc-interface/trans.c (lvalue_required_p) <N_Indexed_Component>: Deal
196 with character and enumeration literals as index values.
198 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
200 * gcc-interface/gigi.h (build_simple_component_ref): Declare.
201 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Deal with
202 address clause on aliased object with unconstrained nominal subtype.
203 Mark the aligning variable as artificial, do not convert the address
204 expression immediately but mark it as constant instead.
205 * gcc-interface/utils.c (convert): If the target type contains a
206 template, be prepared for an empty array.
207 (maybe_unconstrained_array): Likewise.
208 * gcc-interface/utils2.c (known_alignment) <POINTER_PLUS_EXPR>: Deal
209 with the pattern built for aligning types.
210 <INTEGER_CST>: Do not cap the value at BIGGEST_ALIGNMENT.
211 (build_simple_component_ref): Make public.
212 If the base object is a constructor that contains a template, fold the
213 result field by field.
215 2015-05-31 Eric Botcazou <ebotcazou@adacore.com>
217 * s-oscons-tmplt.c: Add explicit tests for Android alongside Linux.
219 2015-05-30 Eric Botcazou <ebotcazou@adacore.com>
221 * adaint.c: Test for __linux__ instead of linux and __sun__ instead
222 of sun. Add missing leading underscore to AIX. Remove #elif 0.
223 * adaint.h: Likewise.
225 * cstreams.c: Likewise.
227 * gsocket.h: Likewise.
228 * init.c: Likewise. Test for __i386__ instead of i386.
230 * s-oscons-tmplt.c: Likewise.
231 * sysdep.c: Likewise.
232 * terminals.c: Likewise. Use BSD symbol instead of FREEBSD.
233 * tracebak.c: Likewise. Test for __sparc__ instead of sparc.
235 2015-05-28 Eric Botcazou <ebotcazou@adacore.com>
237 * gcc-interface/utils.c (max_size) <tcc_binary>: Add special code to
238 deal with the subtraction of a "negative" value in an unsigned type.
240 2015-05-28 Eric Botcazou <ebotcazou@adacore.com>
242 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Do
243 not error out on a return type which has a size that overflows if the
244 return is done by invisible reference.
246 2015-05-28 Eric Botcazou <ebotcazou@adacore.com>
248 * gcc-interface/utils.c (gnat_pushdecl): Reunify the handling of array
249 and pointer types wrt DECL_ORIGINAL_TYPE and adjust left and right.
251 2015-05-28 Eric Botcazou <ebotcazou@adacore.com>
253 * gcc-interface/gigi.h (gnat_stabilize_reference): Adjust.
254 (rewrite_fn): Remove third parameter.
255 (type_is_padding_self_referential): New inline predicate.
256 (return_type_with_variable_size_p): Likewise.
257 * gcc-interface/decl.c (allocatable_size_p): More around.
258 (cannot_be_superflat_p): Rename into...
259 (cannot_be_superflat ): ...this.
260 (initial_value_needs_conversion): New predicate.
261 (gnat_to_gnu_entity): Invoke type_is_padding_self_referential,
262 initial_value_needs_conversion and adjust to above renaming.
263 For a renaming, force the materialization if the inner expression
264 is compound. Adjust calls to elaborate_reference and build a
265 compound expression if needed.
266 (struct er_dat): Add N field.
267 (elaborate_reference_1): Remove N parameter and adjust.
268 (elaborate_reference): Add INIT parameter and pass it in the call to
269 gnat_rewrite_reference. Adjust initial expression.
270 * gcc-interface/trans.c (Call_to_gnu): Treat renamings the same way as
271 regular object declarations when it comes to creating a temporary.
272 Adjust call to gnat_stabilize_reference and build a compound expression
273 if needed. Invoke return_type_with_variable_size_p.
274 (gnat_to_gnu): Invoke type_is_padding_self_referential. In case #4,
275 return a call to a function unmodified if it returns with variable size
276 and is also the initial expression in an object declaration.
277 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: Use the RHS'
278 type if it is a call to a function that returns with variable size.
279 (build_unary_op): Invoke type_is_padding_self_referential.
280 (gnat_stabilize_reference_1): Remove N parameter and adjust.
281 (gnat_stabilize_reference): Add INIT parameter and pass it in the call
282 to gnat_rewrite_reference.
283 (gnat_rewrite_reference): Remove N, add INIT parameter and adjust.
284 <COMPOUND_EXPR>: New case.
286 2015-05-28 Ed Schonberg <schonberg@adacore.com>
288 * sem_ch3.adb (Is_Visible_Component): Component is visible
289 in a derived type if inherited through an ancestor that has a
290 partial view of the original type holding the component, if the
291 full view of that original type is in scope.
292 * sem_util.ads (Get_Body_From_Stub): Works for all kinds of stubs.
294 2015-05-28 Bob Duff <duff@adacore.com>
296 * sem_util.adb (Requires_Transient_Scope): For definite untagged
297 subtypes, we should never have to use the secondary stack. This moves
298 toward that goal. But there are still cases that don't work.
299 Here, we move the check for Is_Definite first, but add a
300 special-purpose check for Has_Discrim_Dep_Array.
302 2015-05-28 Bob Duff <duff@adacore.com>
304 * sem_util.adb (Requires_Transient_Scope): Avoid returning
305 function results on the secondary stack in so many cases.
307 2015-05-28 Ed Schonberg <schonberg@adacore.com>
309 * sem_util.adb (Wrong_Type): In any instance, do not emit error
310 if type of expression is the partial view of the expected type.
312 2015-05-28 Ed Schonberg <schonberg@adacore.com>
314 * sem_res.adb (Resolve_Actuals): a) The replacement of formal
315 names in named associations only needs to be done within an
316 instance, on a call to a primitive of a formal derived type,
317 where the actual subprogram may have different formal names than
318 those of the primitive operation of the formal type.
319 b) Defaulted parameters must be taken into account when obtaining
320 the names of the formals of the actual subprogram being called.
322 2015-05-28 Robert Dewar <dewar@adacore.com>
324 * sem_ch13.adb, sem_disp.ads: Minor reformatting.
326 2015-05-28 Ed Schonberg <schonberg@adacore.com>
328 * sem_util.adb (Set_Debug_Info_Needed): For a private type
329 whose full view is itself a derived private type, set flag on
330 underlying full view as well, for proper gdb display.
332 2015-05-28 Bob Duff <duff@adacore.com>
334 * exp_tss.ads: Minor comment fix.
335 * exp_ch3.adb (Build_Array_Init_Proc, Build_Record_Init_Proc):
336 Inline init_procs when the type has controlled parts. Remove
337 obsolete comments about those init_procs -- init_procs for
338 such types are no longer complex. A typical init_proc just
339 initializes the 'Tag field, and calls the parent init_proc
340 (e.g. for Limited_Controlled), which calls the grandparent
341 (for Root_Controlled), which does nothing. This all boils down
342 to one instruction when inlined.
343 * exp_ch7.adb (Create_Finalizer): Inline the finalizer.
345 2015-05-28 Ed Schonberg <schonberg@adacore.com>
347 * sem_ch4.adb (Analyze_Selected_Component): If the type to use
348 is a derived type and is a generic actual, the selected component
349 appears within an instance body, and the check over the type
350 has failed, examine ancestor types for the desired component.
351 (Find_Component_In_Instance): If record type is a derived type,
352 examine all ancestors in order to locate desired component.
354 2015-05-27 H.J. Lu <hongjiu.lu@intel.com>
356 * gcc-interface/Makefile.in (TOOLS_LIBS): Add @NO_PIE_FLAG@.
358 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
360 * gcc-interface/trans.c (elaborate_all_entities): Do not elaborate an
361 incomplete type coming from a limited_with and whose non-limited view
362 comes from the main unit.
364 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
366 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Move down
367 code applying atomic checks to the object.
369 2015-05-27 Robert Dewar <dewar@adacore.com>
371 * sem_aux.adb: Minor rewording.
373 2015-05-27 Bob Duff <duff@adacore.com>
375 * exp_prag.adb (Expand_Pragma_Abort_Defer): Make
376 pragma Abort_Defer do nothing if Abort_Allowed is False.
378 2015-05-27 Arnaud Charlet <charlet@adacore.com>
380 * exp_ch9.adb, sem_util.adb, sem_util.ads, s-stposu.adb, s-spsufi.ads,
381 sem_elab.ads, g-comlin.ads, errout.ads, exp_ch6.adb, sem_ch4.adb,
382 opt.ads, s-bignum.adb, output.ads, sem_ch13.adb, erroutc.ads,
383 sem_disp.ads, exp_ch3.adb: Minor fixes of duplicate words in comments.
385 2015-05-27 Doug Rupp <rupp@adacore.com>
387 * adaint.c (__gnat_tmp_name) [vxworks]: Robustify and use for rtp as
390 2015-05-27 Pierre-Marie de Rodat <derodat@adacore.com>
392 * par_sco.adb (Process_Decision): Store sloc to
393 condition/pragmas SCOs associations into a temporary table before
394 moving them to the SCO_Raw_Hash_Table so that we can back them
395 out just like we do for SCO entries that are simple decisions
396 in an expression context.
398 2015-05-27 Ed Schonberg <schonberg@adacore.com>
400 * sem_ch6.adb (Process_Formals): A non-private formal type that
401 is a limited view does not have a list of private dependents.
403 2015-05-27 Ed Schonberg <schonberg@adacore.com>
405 * exp_ch5.adb (Expand_N_Case_Statement): If the expression in
406 the case statement is a compile-time known value, we look for a
407 corresponding alternative to optimize the case statement into a
408 single case. If the type has a static predicate and the expression
409 does not satisfy the predicate, there is no legal alternative and
410 this optimization is not applicable. Excecution is erroneous,
411 or else if assertions are enabled, an exception will be raised
412 earlier, at the point the expression is elaborated.
414 2015-05-27 Robert Dewar <dewar@adacore.com>
416 * sem_elab.adb (Check_Internal_Call_Continue): Suppress
417 warning on Finalize, Adjust, or Initialize if type involved has
420 2015-05-27 Ed Schonberg <schonberg@adacore.com>
422 * sem_aux.adb, sem_aux.ads (First_Discriminant): Return empty when
423 applied to a type with no known discriminants.
425 2015-05-26 Robert Dewar <dewar@adacore.com>
427 * errout.ads, sem_ch4.adb, sem_ch6.adb: Minor reformatting.
429 2015-05-26 Bob Duff <duff@adacore.com>
431 * sem_elab.adb (Check_A_Call): In the case where we're
432 calling something in an instance of a generic package that is
433 within this same unit (as the call), make sure we treat it
434 as a call to an entity within the same unit. That is, call
435 Check_Internal_Call, rather than putting "Elaborate_All(X)"
436 on X, which would necessarily result in an elaboration cycle in
437 static-elaboration mode.
439 2015-05-26 Eric Botcazou <ebotcazou@adacore.com>
441 * freeze.ads (Is_Atomic_VFA_Aggregate): Adjust profile.
442 * freeze.adb (Is_Atomic_VFA_Aggregate): Change Entity
443 parameter into Node parameter and remove Type parameter.
444 Look at Is_Atomic_Or_VFA both on the type and on the object.
445 (Freeze_Entity): Adjust call to Is_Atomic_VFA_Aggregate.
446 * exp_aggr.adb (Expand_Record_Aggregate): Likewise.
447 (Process_Atomic_Independent_Shared_Volatile): Remove code
448 propagating Atomic or VFA from object to locally-defined type.
450 2015-05-26 Bob Duff <duff@adacore.com>
452 * exp_ch7.adb: Minor comment fix.
454 2015-05-26 Eric Botcazou <ebotcazou@adacore.com>
456 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Min/Attr_Max>: Do not
457 bother about NaN's if Machine_Overflows is true.
459 2015-05-26 Eric Botcazou <ebotcazou@adacore.com>
461 * gcc-interface/trans.c (gnat_to_gnu) <N_Object_Declaration>: Really
462 force evaluation of the expression, if any, when the object has its
463 elaboration delayed. Do not create a variable at global level.
465 2015-05-26 Eric Botcazou <ebotcazou@adacore.com>
467 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Machine>: Do not apply
468 extra-precision trick to literals. Build SAVE_EXPR manually.
470 * gcc-interface/misc.c (enumerate_modes): Add bypass for x86/x86-64.
472 2015-05-26 Eric Botcazou <ebotcazou@adacore.com>
474 * gcc-interface/ada-tree.h (DECL_GLOBAL_NONCONSTANT_RENAMING_P): Delete
475 (DECL_RENAMED_OBJECT): Adjust comment.
476 * gcc-interface/gigi.h (record_global_nonconstant_renaming): Delete.
477 (invalidate_global_nonconstant_renamings): Likewise.
478 (gnat_constant_reference_p): Likewise.
479 (rewrite_fn): New function type.
480 (gnat_rewrite_reference): Declare.
481 (call_is_atomic_load): New inline predicate.
482 * gcc-interface/decl.c (elaborate_reference_1): New function.
483 (elaborate_reference): Likewise.
484 (gnat_to_gnu_entity): Call elaborate_reference to elaborate renamings
485 and simplify associated code. Set const_flag to true consistently in
486 conjunction with used_by_ref.
487 * gcc-interface/trans.c (Identifier_to_gnu): Always replace renaming
488 pointers by renamed objects.
489 (outer_atomic_access_required_p): Deal with renamings.
490 (Compilation_Unit_to_gnu): Do not call
491 invalidate_global_nonconstant_renamings.
492 (gnat_to_gnu) <N_Object_Renaming_Declaration>: Adjust comment.
493 (gnat_gimplify_expr): Deal with atomic loads.
494 * gcc-interface/utils.c (global_nonconstant_renamings): Delete.
495 (destroy_gnat_utils): Do not call
496 invalidate_global_nonconstant_renamings.
497 (record_global_nonconstant_renaming): Delete.
498 (invalidate_global_nonconstant_renamings): Likewise.
499 * gcc-interface/utils2.c (call_is_atomic_load): Move to gigi.h.
500 (build_load_modify_store): Build a copy of the destination.
501 (gnat_stabilize_reference_1): Adjust.
502 (gnat_stabilize_reference): Call gnat_stabilize_reference_1 through
503 gnat_rewrite_reference and move bulk of code to...
504 (gnat_rewrite_reference): ...here. New global function.
505 (gnat_constant_reference_p): Delete.
507 2015-05-26 Eric Botcazou <ebotcazou@adacore.com>
509 * gcc-interface/gigi.h (gnat_stabilize_reference): Adjust prototype.
510 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not rely on const_flag
511 to detect constant renamings. Be prepared for specific pattern of
512 renamed object based on function calls. Create a constant object
513 for the renaming of a NULL_EXPR or of a CONSTRUCTOR. Adjust calls
514 to gnat_stabilize_reference and tidy up. Remove redundant tests.
515 (elaborate_expression_1): Remove obsolete test and tidy up.
516 * gcc-interface/trans.c (Call_to_gnu): Do not stabilize In/Out or Out
517 parameters passed by reference.
518 (gnat_to_gnu) <N_Selected_Component>: Remove redundant protection again
520 Use gnat_protect_expr instead of gnat_stabilize_reference for general
521 protection against side-effects.
522 * gcc-interface/utils2.c (gnat_stable_expr_p): New predicate.
523 (gnat_save_expr): Invoke it.
524 (gnat_protect_expr): Likewise.
525 (gnat_stabilize_reference_1): Likewise. Remove useless propagation
527 (gnat_stabilize_reference): Remove parameter and adjust throughout.
528 Delete ADDR_EXDR, COMPOUND_EXPR and CONSTRUCTOR cases.
529 Restrict CALL_EXPR case to atomic loads and tweak ERROR_MARK case.
531 2015-05-26 Ed Schonberg <schonberg@adacore.com>
533 * sinfo.ads: Minor reformatting.
534 * sem_aux.ads: Clarify use of First_Discriminant.
535 * sem_ch4.adb (Analyze_Explicit_Dereference): The use of a limited
536 view is replaced with the non-limited view in an instance body,
537 where the enclosing unit must have a regular with_clause on the
539 * sem_ch12.adb (Install_Body): Freeze instantation after its
540 body. Remove useless freeze nodes for incomplete actuals to
541 prevent multiple generation of internal operations.
542 (Instantiate_Package_Body): Set sloc of body appropriately when
543 there are incomplete actuals and the instance body is placed in
544 the body of the enclosing unit.
545 * errout.ads: Consistent punctuation, better alignment and trivial
547 * err_vars.ads: Fix typo.
549 2015-05-26 Eric Botcazou <ebotcazou@adacore.com>
551 * sem_ch8.adb (Analyze_Object_Renaming): Lift restriction on
552 components of Volatile_Full_Access objects.
554 2015-05-26 Ed Schonberg <schonberg@adacore.com>
556 * sem_ch6.adb (Is_Non_Overriding_Operation,
557 Get_Generic_Parent_Type): Handle properly the case of a derived
558 scalar type by using the first subtype rather than its generated
561 2015-05-26 Eric Botcazou <ebotcazou@adacore.com>
563 * einfo.adb (Write_Field17_Name): Move E_Incomplete_Subtype
565 (Write_Field19_Name): ...here.
567 2015-05-26 Ed Schonberg <schonberg@adacore.com>
569 * sem_ch13.adb: sem_ch13.adb (Add_Predicates): Undo analysis
570 of original expression in ASIS mode: does not solve the ASIS
571 problem of a usable type information, and crashes the back-end
572 when performing type annotations.
574 2015-05-26 Robert Dewar <dewar@adacore.com>
576 * sem_disp.adb (Inherited_Subprograms): Add One_Only parameter.
577 (Is_Overriding_Subprogram): Use One_Only_Parameter.
578 * sem_disp.ads (Inherited_Subprograms): Add One_Only parameter.
580 2015-05-26 Robert Dewar <dewar@adacore.com>
582 * exp_prag.adb, sem_ch3.adb, sem_ch5.adb, exp_ch11.adb, ghost.adb,
583 exp_ch6.adb, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb, sem_ch13.adb,
584 exp_ch3.adb: Minor reformatting.
586 2015-05-26 Bob Duff <duff@adacore.com>
588 * treepr.adb: Minor improvement to debugging routines (pp, pn)
589 robustness. Rearrange the code so passing a nonexistent Node_Id
590 prints "No such node" rather than crashing, and causing gdb to
591 generate confusing messages.
593 2015-05-26 Gary Dismukes <dismukes@adacore.com>
595 * sem_util.adb: Minor typo fix.
597 2015-05-26 Yannick Moy <moy@adacore.com>
599 * sem_aux.adb (Subprogram_Body_Entity): Deal with subprogram stubs.
601 2015-05-26 Hristian Kirtchev <kirtchev@adacore.com>
603 * exp_ch3.adb (Expand_N_Full_Type_Declaration): Capture, set and
604 restore the Ghost mode.
605 (Expand_N_Object_Declaration): Capture, set and restore the Ghost mode.
606 (Freeze_Type): Update the call to Set_Ghost_Mode.
607 (Restore_Globals): New routine.
608 * exp_ch5.adb Add with and use clauses for Ghost.
609 (Expand_N_Assignment_Statement): Capture, set and restore the
611 (Restore_Globals): New routine.
612 * exp_ch6.adb Add with and use clauses for Ghost.
613 (Expand_N_Procedure_Call_Statement): Capture, set and
614 restore the Ghost mode.
615 (Expand_N_Subprogram_Body):
616 Code cleanup. Capture, set and restore the Ghost mode.
617 (Expand_N_Subprogram_Declaration): Capture, set and restore the
619 (Restore_Globals): New routine.
620 * exp_ch7.adb Add with and use clauses for Ghost.
621 (Expand_N_Package_Body): Capture, set and restore the Ghost mode.
622 (Expand_N_Package_Declaration): Capture, set and restore the
624 (Wrap_HSS_In_Block): Create a proper identifier for the block.
625 * exp_ch8.adb Add with and use clauses for Ghost.
626 (Expand_N_Exception_Renaming_Declaration): Code
627 cleanup. Capture, set and restore the Ghost mode.
628 (Expand_N_Object_Renaming_Declaration): Capture, set and restore
630 (Expand_N_Package_Renaming_Declaration): Capture, set and restore the
632 (Expand_N_Subprogram_Renaming_Declaration): Capture, set and
633 restore the Ghost mode.
634 * exp_ch11.adb (Expand_N_Exception_Declaration): Code
635 cleanup. Capture, set and restore the Ghost mode.
636 * exp_disp.adb (Make_DT): Update the call to Set_Ghost_Mode. Do
637 not initialize the dispatch table slot of a Ghost subprogram.
638 * exp_prag.adb Add with and use clauses for Ghost.
639 (Expand_Pragma_Check): Capture, set and restore the Ghost mode.
640 (Expand_Pragma_Contract_Cases): Capture, set and restore the
642 (Expand_Pragma_Initial_Condition): Capture, set and
643 restore the Ghost mode.
644 (Expand_Pragma_Loop_Variant): Capture,
645 set and restore the Ghost mode.
646 (Restore_Globals): New routine.
647 * exp_util.adb Add with and use clauses for Ghost.
648 (Make_Predicate_Call): Code cleanup. Capture, set and restore
650 (Restore_Globals): New routine.
651 * freeze.adb (Freeze_Entity): Code cleanup. Update the call
653 * ghost.adb Add with and use clause for Sem_Prag.
654 (Check_Ghost_Completion): Code cleanup.
655 (Check_Ghost_Overriding): New routine.
656 (Check_Ghost_Policy): Code cleanup.
657 (Ghost_Entity): New routine.
658 (Is_Ghost_Declaration): Removed.
659 (Is_Ghost_Statement_Or_Pragma): Removed.
660 (Is_OK_Context): Reimplemented.
661 (Is_OK_Declaration): New routine.
662 (Is_OK_Pragma): New routine.
663 (Is_OK_Statement): New routine.
664 (Mark_Full_View_As_Ghost): New routine.
665 (Mark_Pragma_As_Ghost): New routine.
666 (Mark_Renaming_As_Ghost): New routine.
667 (Propagate_Ignored_Ghost_Code): Update the comment on usage.
668 (Set_From_Entity): New routine.
669 (Set_From_Policy): New routine.
670 (Set_Ghost_Mode): This routine now handles pragmas and freeze nodes.
671 (Set_Ghost_Mode_For_Freeze): Removed.
672 (Set_Ghost_Mode_From_Entity): New routine.
673 (Set_Ghost_Mode_From_Policy): Removed.
674 * ghost.ads (Check_Ghost_Overriding): New routine.
675 (Mark_Full_View_As_Ghost): New routine.
676 (Mark_Pragma_As_Ghost): New routine.
677 (Mark_Renaming_As_Ghost): New routine.
678 (Set_Ghost_Mode): Update the parameter profile. Update the
680 (Set_Ghost_Mode_For_Freeze): Removed.
681 (Set_Ghost_Mode_From_Entity): New routine.
682 * sem_ch3.adb (Analyze_Full_Type_Declaration):
683 Capture and restore the Ghost mode. Mark a type
684 as Ghost regardless of whether it comes from source.
685 (Analyze_Incomplete_Type_Decl): Capture, set and restore the
687 (Analyze_Number_Declaration): Capture and restore the Ghost mode.
688 (Analyze_Object_Declaration): Capture and restore the Ghost mode.
689 (Analyze_Private_Extension_Declaration): Capture and
690 restore the Ghost mode.
691 (Analyze_Subtype_Declaration): Capture and restore the Ghost mode.
692 (Process_Full_View): The full view inherits all Ghost-related
693 attributes from the private view.
694 (Restore_Globals): New routine.
695 * sem_ch5.adb (Analyze_Assignment): Capture and restore the
697 (Restore_Globals): New routine.
698 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration):
699 Code cleanup. Capture and restore the Ghost mode. Mark a
700 subprogram as Ghost regarless of whether it comes from source.
701 (Analyze_Procedure_Call): Capture and restore the Ghost mode.
702 (Analyze_Subprogram_Body_Helper): Capture and restore the Ghost mode.
703 (Analyze_Subprogram_Declaration): Capture and restore the Ghost mode.
704 (New_Overloaded_Entity): Ensure that a
705 parent subprogram and an overriding subprogram have compatible
707 * sem_ch7.adb (Analyze_Package_Body_Helper): Capture and restore
709 (Analyze_Package_Declaration): Capture and
710 restore the Ghost mode. Mark a package as Ghost when it is
711 declared in a Ghost region.
712 (Analyze_Private_Type_Declaration): Capture and restore the Ghost mode.
713 (Restore_Globals): New routine.
714 * sem_ch8.adb (Analyze_Exception_Renaming): Code
715 reformatting. Capture and restore the Ghost mode. A renaming
716 becomes Ghost when its name references a Ghost entity.
717 (Analyze_Generic_Renaming): Capture and restore the Ghost mode. A
718 renaming becomes Ghost when its name references a Ghost entity.
719 (Analyze_Object_Renaming): Capture and restore the Ghost mode. A
720 renaming becomes Ghost when its name references a Ghost entity.
721 (Analyze_Package_Renaming): Capture and restore the Ghost mode. A
722 renaming becomes Ghost when its name references a Ghost entity.
723 (Analyze_Subprogram_Renaming): Capture and restore the Ghost
724 mode. A renaming becomes Ghost when its name references a
726 * sem_ch11.adb (Analyze_Exception_Declaration): Capture, set
727 and restore the Ghost mode.
728 * sem_ch12.adb (Analyze_Generic_Package_Declaration): Capture and
729 restore the Ghost mode.
730 (Analyze_Generic_Subprogram_Declaration):
731 Capture and restore the Ghost mode.
732 * sem_ch13.adb Add with and use clauses for Ghost.
733 (Add_Invariant): New routine.
734 (Add_Invariants): Factor out code.
735 (Add_Predicate): New routine.
736 (Add_Predicates): Factor out code.
737 (Build_Invariant_Procedure_Declaration): Code cleanup. Capture,
738 set and restore the Ghost mode.
739 (Build_Invariant_Procedure): Code cleanup.
740 (Build_Predicate_Functions): Capture, set and
741 restore the Ghost mode. Mark the generated functions as Ghost.
742 * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part):
743 Capture, set and restore the Ghost mode.
744 (Analyze_External_Property_In_Decl_Part): Capture, set and restore
746 (Analyze_Initial_Condition_In_Decl_Part):
747 Capture, set and restore the Ghost mode.
749 Code cleanup. Capture, set and restore the Ghost mode. Flag
750 pragmas Linker_Section, No_Return, Unmodified, Unreferenced and
751 Unreferenced_Objects as illegal when it applies to both Ghost
752 and living arguments. Pragma Ghost cannot apply to synchronized
754 (Check_Kind): Moved to the spec of Sem_Prag.
755 (Process_Inline): Flag the pragma as illegal when it applies to
756 both Ghost and living arguments.
757 (Restore_Globals): New routine.
758 * sem_prag.ads Add pragma Default_Initial_Condition
759 to table Assertion_Expression_Pragma. Add new table
760 Is_Aspect_Specifying_Pragma.
761 (Check_Kind): Moved from body of Sem_Prag.
762 * sem_util.adb Add with and use clauses for Ghost.
763 (Build_Default_Init_Cond_Procedure_Body): Capture, set and restore
765 (Build_Default_Init_Cond_Procedure_Declaration):
766 Capture, set and restore the Ghost mode. Mark the default
767 initial condition procedure as Ghost when it is declared
769 (Is_Renaming_Declaration): New routine.
770 (Policy_In_List): Account for the single argument version of
772 * sem_util.ads (Is_Renaming_Declaration): New routine.
773 * sinfo.adb (Is_Ghost_Pragma): New routine.
774 (Set_Is_Ghost_Pragma): New routine.
775 * sinfo.ads New attribute Is_Ghost_Pragma.
776 (Is_Ghost_Pragma): New routine along with pragma Inline.
777 (Set_Is_Ghost_Pragma): New routine along with pragma Inline.
779 2015-05-26 Robert Dewar <dewar@adacore.com>
781 * sem_ch3.adb, sem_aux.adb, sem_aux.ads, exp_ch6.adb, sprint.adb:
784 2015-05-26 Gary Dismukes <dismukes@adacore.com>
786 * gnat1drv.adb, targparm.adb, targparm.ads, restrict.adb: Minor
787 reformatting and typo fixes in comments.
789 2015-05-26 Ed Schonberg <schonberg@adacore.com>
791 * sem_ch7.adb (Swap_Private_Dependets): Set visibility of
792 the two views of a private dependent in two separate steps,
793 to ensure proper visibility in parent units analyzed for inlining.
795 2015-05-26 Yannick Moy <moy@adacore.com>
797 * sem_aux.adb, sem_aux.ads (Get_Low_Bound): Use Type_Low_Bound.
798 (Package_Body, Package_Spec): New queries moved
800 (Package_Specification): Simplify query to remove use of loop.
801 * sem_util.adb, sem_util.ads (Enclosing_Declaration,
802 Enclosing_Package_Or_Subprogram, Is_Attribute_Update): New
803 queries moved here from GNATprove.
805 2015-05-26 Bob Duff <duff@adacore.com>
807 * einfo.adb, einfo.ads, sprint.adb, lib-xref.ads: Minor cleanup: Remove
808 obsolete Entity_Kinds E_String_Type and E_String_Subtype. Update
809 redundant assertions.
811 2015-05-26 Gary Dismukes <dismukes@adacore.com>
813 * sem_util.adb, sem_util.ads, sem_ch13.adb: Minor typo fixes.
815 2015-05-26 Doug Rupp <rupp@adacore.com>
817 * init.c [vxworks]: Refine previous checkin.
819 2015-05-26 Robert Dewar <dewar@adacore.com>
821 * exp_ch4.adb (Wrap_MA): New function.
822 (Expand_N_Op_Expon): Use Wrap_MA.
824 2015-05-26 Bob Duff <duff@adacore.com>
826 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
827 Do not use secondary stack to return limited records with
828 defaulted discriminants. This is an efficiency improvement.
829 * exp_ch6.adb, exp_dist.adb, sem_attr.adb, sem_aux.adb, sem_aux.ads,
830 sem_ch12.adb, sem_ch3.adb, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb,
831 sem_util.adb: Change the sense of Is_Indefinite_Subtype to be
832 Is_Definite_Subtype. This is an improvement to readability (the double
833 negative in "not Is_Indefinite_Subtype" was slightly confusing). Also
834 disallow passing non-[sub]type entities, an unnecessary and slightly
835 bug-prone flexibility.
837 2015-05-26 Robert Dewar <dewar@adacore.com>
839 * sem_aggr.adb (Resolve_Array_Aggregate): Defend against
841 * debug.adb: Document -gnatd.k.
842 * erroutc.adb (Set_Msg_Insertion_Line_Number): Implement -gnatd.k.
844 2015-05-26 Robert Dewar <dewar@adacore.com>
846 * gnat1drv.adb (Gnat1drv): Provide new arguments for
847 Get_Target_Parameters.
848 * restrict.adb (Set_Restriction_No_Specification_Of_Aspect):
850 (Set_Restriction_No_Use_Of_Attribute): new procedure.
851 * restrict.ads (Set_Restriction_No_Specification_Of_Aspect):
853 (Set_Restriction_No_Use_Of_Attribute): new procedure.
854 * s-rident.ads (Integer_Parameter_Restrictions): New subtype.
855 * targparm.adb (Get_Target_Parameters): Allow new restriction
856 pragmas No_Specification_Of_Aspect No_Use_Of_Attribute
858 * targparm.ads: New parameters for Get_Target_Parameters.
859 * tbuild.adb (Set_NOD): New name for Set_RND.
860 (Set_NSA): New procedure.
861 (Set_NUA): New procedure.
862 (Set_NUP): New procedure.
863 * tbuild.ads (Make_SC): Minor reformatting.
864 (Set_NOD): New name for Set_RND.
865 (Set_NSA, Set_NUA, Set_NUP): New procedure.
867 2015-05-26 Ed Schonberg <schonberg@adacore.com>
869 * a-stwise.adb (Find_Token): If source'first is not positive,
870 an exception must be raised, as specified by RM 2005 A.4.3
871 (68/1). This must be checked explicitly, given that run-time
872 files are normally compiled without constraint checks.
873 * a-stzsea.adb (Find_Token): Ditto.
875 2015-05-26 Ed Schonberg <schonberg@adacore.com>
877 * sem_util.ads sem_util.adb (Is_Current_Instance): New predicate
878 to fully implement RM 8.6 (17/3). which earlier only applied
879 to synchronized types. Used to preanalyze aspects that include
880 current instances of types, such as Predicate and Invariant.
881 * sem_res.adb (Resolve_Entity_Name): Use Is_Current_Instance.
882 * sem_ch13.adb (Add_Predicates): In ASIS mode, preserve original
883 expression of aspect and analyze it to provide proper type
886 2015-05-26 Robert Dewar <dewar@adacore.com>
888 * rtsfind.ads: Add entries for RE_Exn[_Long]_Float.
889 * s-exnllf.adb (Exn_Float): New function.
890 (Exn_Long_Float): New function.
891 (Exn_Long_Long_Float): Rewritten interface.
892 (Exp): New name for what used to be Exn_Long_Long_Float.
893 * s-exnllf.ads (Exn_Float): New function.
894 (Exn_Long_Float): New function.
896 2015-05-26 Ed Schonberg <schonberg@adacore.com>
898 * sem_ch8.adb (Find_Selected_Component): Do not emit an error
899 on a selected component when the prefix is a type name that is
901 * einfo.ads: Minor grammar fix.
903 2015-05-26 Doug Rupp <rupp@adacore.com>
905 * init.c [vxworks] (sysLib.h): Only for x86.
907 2015-05-26 Doug Rupp <rupp@adacore.com>
909 * init-vxsim.c (CPU): define as __VXSIM_CPU__
910 * sigtramp-vxworks-vxsim.c (CPU): Likewise.
911 sigtramp-vxworks-target.inc: Add check for SIMLINUX.
912 * sigtramp.h: Likewise.
914 2015-05-26 Robert Dewar <dewar@adacore.com>
916 * sem_aux.adb, sem_disp.adb, sem_util.ads: Add comment.
917 * sem_util.adb: Minor reformatting
919 2015-05-26 Yannick Moy <moy@adacore.com>
921 * inline.adb (Has_Initialized_Type): Adapt to new names.
922 * sem_aux.adb, sem_aux.ads (Get_Low_Bound, Number_Components,
923 Subprogram_Body, Subprogram_Body_Entity, Subprogram_Spec,
924 Subprogram_Specification): New query functions used in GNATprove.
925 * sem_disp.adb, sem_disp.ads (Is_Overriding_Subprogram): New
926 query functions used in GNATprove.
927 * sem_util.adb, sem_util.adso (Enclosing_Lib_Unit_Node,
928 Get_Cursor_Type, Get_Return_Object, Get_User_Defined_Eq,
929 Is_Double_Precision_Floating_Point_Type,
930 Is_Single_Precision_Floating_Point_Type): New query functions
933 2015-05-26 Bob Duff <duff@adacore.com>
935 * s-rpc.ads (Partition_ID): Increase maximum Partition_ID to
937 * a-except-2005.adb, a-except-2005.ads, a-except.adb,
938 a-except.ads, a-exexda.adb, a-exstat.adb: Minor comment fixes.
940 2015-05-26 Robert Dewar <dewar@adacore.com>
942 * sinfo.adb: Minor comment addition.
943 * einfo.adb: Minor whitespace and punctuation fix.
944 * sem_util.adb: Minor editing of comments.
946 2015-05-26 Ed Schonberg <schonberg@adacore.com>
948 * sem_ch7.adb (Install_Private_Declarations,
949 Swap_Private_Dependents): Ensure that both views of the dependent
950 subtype are immediately visible if we are within their scope. This
951 may be needed when a procedure body is both the parent of an
952 instantiated child unit, and is itself used to inline a local
955 2015-05-26 Gary Dismukes <dismukes@adacore.com>
957 * exp_prag.adb, gnat1drv.adb: Minor reformatting.
959 2015-05-26 Eric Botcazou <ebotcazou@adacore.com>
961 * exp_ch4.adb (Expand_N_Indexed_Component): In the circuit
962 detecting exceptions to the rewriting, deal with implicit
963 dereferences in the selected component case.
965 2015-05-26 Bob Duff <duff@adacore.com>
967 * sem_ch13.adb (Analyze_One_Aspect): Do not
968 require the expression of the Disable_Controlled aspect to be
969 static in a generic template, because 'Enabled is not known
972 2015-05-26 Doug Rupp <rupp@adacore.com>
974 * init-vxsim.c: New file for vxsim ZCX
975 * sigtramp-vxworks-vxsim.c: Likewise.
976 * sigtramp-vxworks.c: Factor out target dependent bits into ...
977 * sigtramp-vxworks-target.inc: ... here.
978 * sigtramp.h: Add vxsim zcx protos.
979 * init.c [vxworks...] (sysLib.h): Include.
980 (__gnat_map_signal): Make global.
981 [...i386] (__gnat_error_handler): Call __gnat_vxsim_error_handler if
983 [...i386] (__gnat_install_handler): Test if on vxsim.
985 2015-05-26 Ed Schonberg <schonberg@adacore.com>
987 * sem_ch5.adb (Analyze_Iterator_Specification): For an element
988 iterator over an array, if the component is aliased, the loop
989 variable is aliased as well.
991 2015-05-26 Ed Schonberg <schonberg@adacore.com>
993 * exp_ch6.adb (Expand_Actuals): For a function call with in-out
994 parameters that is rewritten as an expression_with_actions,
995 we preserve the original function call node for further use by
996 the caller (typically Expand_Call). In the presence of validity
997 checks, that function call, though it is labelled Analyzed to
998 prevent an infinite recursion, may be rewritten as a temporary
999 by Remove_Side_Effects. Ensure that the caller has access to
1000 the original function call to continue expansion.
1001 * atree.ads: Minor typo in comment.
1003 2015-05-26 Javier Miranda <miranda@adacore.com>
1005 * sem_util.adb (Check_Function_Writable_Actuals):
1006 Add missing support to check the violation of writable actuals
1007 in array aggregates that have a nonstatic range.
1009 2015-05-26 Hristian Kirtchev <kirtchev@adacore.com>
1011 * exp_ch6.adb (Process_Contract_Cases_For): Update the call to
1012 Expand_Pragma_Contract_Cases.
1013 * exp_prag.ads, exp_prag.adb (Expand_Contract_Cases): Rename to
1014 Expand_Pragma_Contract_Cases.
1015 * sem_ch13.adb (Add_Invariants): Use the original aspect name
1016 when creating the arguments of pragma Check. This ensures that
1017 'Class is properly recognized and handled.
1019 2015-05-26 Arnaud Charlet <charlet@adacore.com>
1021 * gnat1drv.adb: Minor adjustments.
1022 (Adjust_Global_Switches): Disable some related flags in CodePeer mode.
1023 * sem_ch4.adb (Has_Arbitrary_Evaluation_Order,
1024 Stop_Subtree_Climbind): Code cleanup.
1025 * einfo.ads: Minor comment change.
1027 2015-05-26 Javier Miranda <miranda@adacore.com>
1029 * sem_aggr.adb (Resolve_Aggregate, Resolve_Extension_Aggregate):
1031 * sem_ch3.adb (Build_Derived_Record_Type,
1032 Record_Type_Declaration): Code cleanup.
1033 * sem_ch4.adb (Has_Arbitrary_Evaluation_Order,
1034 Stop_Subtree_Climbind): Tables which speed up the identification
1035 of dangerous calls to Ada 2012 functions with writable actuals
1037 (Analyze_Arithmetic_Op, Analyze_Call, Analyze_Comparison_Op,
1038 Analyze_Equality_Op, Analyze_Logical_Op, Analyze_Membership_Op,
1039 Analyze_Range): Code cleanup.
1040 (Is_Arbitrary_Evaluation_Order_Construct): Removed.
1041 (Check_Writable_Actuals): Code cleanup using the added tables.
1042 * sem_util.adb (Check_Function_Writable_Actuals): Return
1043 immediately if the node does not have the flag Check_Actuals
1046 2015-05-26 Eric Botcazou <ebotcazou@adacore.com>
1048 * exp_ch6.adb (Add_Call_By_Copy_Code): Remove restrictive
1049 condition in the detection of the effects of Remove_Side_Effects.
1050 * exp_util.ads (Remove_Side_Effects): Add general and historical note.
1051 * exp_util.adb (Is_Name_Reference): New predicate.
1052 (Remove_Side_Effects): Use it in lieu of Is_Object_Reference
1053 in order to decide whether to use the renaming to capture the
1054 side effects of the subexpression.
1055 (Side_Effect_Free): Remove obsolete test.
1057 2015-05-26 Robert Dewar <dewar@adacore.com>
1059 * aspects.ads, aspects.adb: Add aspect Disable_Controlled.
1060 * einfo.ads, einfo.adb (Disable_Controlled): New flag.
1061 (Is_Controlled_Active): New function.
1062 * exp_ch3.adb (Expand_Freeze_Record_Type): Use
1063 Is_Controlled_Active.
1064 * exp_util.adb (Needs_Finalization): Finalization not needed
1065 if Disable_Controlled set.
1066 * freeze.adb (Freeze_Array_Type): Do not set
1067 Has_Controlled_Component if the component has Disable_Controlled.
1068 (Freeze_Record_Type): ditto.
1069 * sem_ch13.adb (Decorate): Minor reformatting.
1070 (Analyze_Aspect_Specifications): Implement Disable_Controlled.
1071 * sem_ch3.adb (Analyze_Object_Declaration): Handle
1073 (Array_Type_Declaration): ditto.
1074 (Build_Derived_Private_Type): ditto.
1075 (Build_Derived_Type): ditto.
1076 (Record_Type_Definition): ditto.
1077 * snames.ads-tmpl: Add Name_Disable_Controlled.
1079 2015-05-26 Eric Botcazou <ebotcazou@adacore.com>
1081 * exp_ch6.adb (Expand_Actuals): Use a constant declaration instead
1082 of a renaming to capture the return value of a function call.
1083 (Expand_Simple_Function_Return): Call Remove_Side_Effects
1084 instead of removing side effects manually before the call to
1087 2015-05-26 Robert Dewar <dewar@adacore.com>
1089 * exp_ch4.adb (Expand_N_Op_Expon): Deal with problem of wrong
1090 order in calling Duplicate_Subexpr.
1091 * einfo.ads: Fix documentation of Object/Value size for scalar types.
1093 2015-05-26 Ed Schonberg <schonberg@adacore.com>
1095 * exp_aggr.adb (Build_Array_Aggr_Code, Gen_Assign):
1096 If a component is default-initialized and its type has an
1097 invariant procedure, insert an invariant test after code for
1098 default-initialization of the component.
1100 2015-05-26 Gary Dismukes <dismukes@adacore.com>
1102 * einfo.ads, sem_util.adb, sem_ch4.adb: Minor reformatting.
1104 2015-05-26 Robert Dewar <dewar@adacore.com>
1106 * exp_unst.adb, exp_unst.ads: Change to using Subps table index for
1107 making AREC entity names unique.
1109 2015-05-26 Ed Schonberg <schonberg@adacore.com>
1111 * sem_cat.adb (Has_Stream_Attribute_Definition): If the type
1112 has aspect specifications, examine the corresponding list of
1113 representation items to determine whether there is a visible
1114 stream operation. The attribute definition clause generated from
1115 the aspect will be inserted at the freeze point of the type,
1116 which may be in the private part and not directly visible,
1117 but the aspect makes the operation available to a client.
1119 2015-05-26 Robert Dewar <dewar@adacore.com>
1121 * sem_util.adb: Minor code reorganization.
1122 * sem_ch6.adb: Minor reformatting.
1124 2015-05-25 Eric Botcazou <ebotcazou@adacore.com>
1126 * gcc-interface/utils.c (maybe_pad_type): Do not apply adjustment to
1127 original size for elementary types before issuing the size warning.
1129 2015-05-25 Eric Botcazou <ebotcazou@adacore.com>
1131 * get_targ.adb (C_Get_Float_Words_BE): Adjust import name.
1132 (C_Get_Words_BE): Likewise.
1133 (C_Get_Bytes_BE): Likewise.
1134 (C_Get_Bits_BE): Likewise.
1135 (Width_From_Size): Remove superfluous space.
1136 * gcc-interface/targtyps.c (get_float_words_be): Rename into...
1137 (get_target_float_words_be): ...this.
1138 (get_words_be): Rename into...
1139 (get_target_words_be): ...this.
1140 (get_bytes_be): Rename into...
1141 (get_target_bytes_be): ...this.
1142 (get_bits_be): Rename into...
1143 (get_target_bits_be): ...this.
1144 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_ptr_void_type.
1145 (ptr_void_type_node): Delete.
1146 (get_target_float_size): Likewise.
1147 (get_target_double_size): Likewise.
1148 (get_target_long_double_size): Likewise.
1149 (get_float_words_be): Likewise.
1150 (get_words_be): Likewise.
1151 (get_bytes_be): Likewise.
1152 (get_bits_be): Likewise.
1153 (get_target_float_words_be): Declare.
1154 (get_target_words_be): Likewise.
1155 (get_target_bytes_be): Likewise.
1156 (get_target_bits_be): Likewise.
1157 * gcc-interface/decl.c (gnat_to_gnu_entity): Replace ptr_void_type_node
1159 (intrin_return_compatible_p): Likewise.
1160 * gcc-interface/trans.c (gigi): Likewise.
1161 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
1162 (maybe_wrap_free): Likewise.
1163 * gcc-interface/utils.c (maybe_pad_type): Remove superfluous space.
1164 * gcc-interface/misc.c (gnat_init): Do not set ptr_void_type_node.
1166 2015-05-25 Eric Botcazou <ebotcazou@adacore.com>
1168 * gcc-interface/decl.c (elaborate_expression): Take a const string
1169 suffix instead of a tree.
1170 (elaborate_expression_1): Likewise.
1171 (elaborate_expression_2): Likewise.
1172 (gnat_to_gnu_entity): Adjust to above changes.
1173 (build_subst_list): Likewise.
1174 (get_entity_char): New static function.
1176 2015-05-25 Eric Botcazou <ebotcazou@adacore.com>
1178 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Move around.
1179 <E_Exception>: Merge with E_Variable case.
1180 <E_Variable>: Remove 'object' label.
1182 2015-05-25 Eric Botcazou <ebotcazou@adacore.com>
1184 * gcc-interface/decl.c (gnat_to_gnu_entity): Minor tweak.
1185 * gcc-interface/trans.c (finalize_nrv_unc_r): Use CONSTRUCTOR_ELT.
1186 * gcc-interface/utils.c (convert): Likewise and simplify.
1187 (remove_conversions): Likewise.
1188 * gcc-interface/utils2.c (compare_fat_pointers): Likewise.
1189 (build_unary_op): Likewise and simplify.
1191 2015-05-25 Eric Botcazou <ebotcazou@adacore.com>
1193 * gcc-interface/gigi.h (build_atomic_load): Adjust prototype.
1194 (build_atomic_store): Likewise.
1195 (build_load_modify_store): Declare.
1196 (VECTOR_TYPE_P): Delete.
1197 * gcc-interface/decl.c (gnat_to_gnu_entity): Replace Is_Atomic with
1198 Is_Atomic_Or_VFA throughout.
1199 <E_Array_Type>: Build a variant of the XUA type instead of forcing
1200 TYPE_VOLATILE on it.
1201 <E_Array_Subtype>: Use the main variant of the base type.
1202 Do not force TYPE_VOLATILE on the type being built.
1203 <E_Record_Type>: Likewise.
1204 <E_Array_Subtype>: Likewise.
1205 <E_Subprogram_Type>: Rename local variable.
1206 Add Atomic qualifier in conjunction with Volatile on types if needed.
1207 Force BLKmode for by-ref types only at the end of the processing.
1208 Change qualifiers only after changing the mode of the type. Set
1209 TYPE_UNIVERSAL_ALIASING_P on the type directly.
1210 (check_ok_for_atomic_type): Issue specific error message for VFA.
1211 (gnat_to_gnu_component_type): Replace Is_Atomic with
1212 Is_Atomic_Or_VFA throughout.
1213 * gcc-interface/misc.c (gnat_get_alias_set): Test
1214 TYPE_UNIVERSAL_ALIASING_P on the type directly.
1215 * gcc-interface/trans.c (lvalue_required_p): Replace Is_Atomic with
1216 Is_Atomic_Or_VFA throughout. Add missing guard.
1217 (node_is_atomic): New predicate.
1218 (node_has_volatile_full_access): Likewise.
1219 (gnat_strip_type_conversion): New function.
1220 (outer_atomic_access_required_p): New predicate.
1221 (atomic_sync_required_p): Rename into...
1222 (atomic_access_required_p): ...this. Add SYNC parameter, scan the
1223 parent node first and then look for the atomic setting. Add support
1224 for Volatile_Full_Access.
1225 (Call_to_gnu): Add atomic_access and outer_atomic_access parameters
1226 and adjusts calls to above functions. Use load-modify-store sequence
1227 for updates of In/Out and Out parameters if required, as well as for
1228 moving the result to the target if required. Add couple of missing
1230 (gnat_to_gnu): Adjust calls to above functions.
1231 <N_Object_Renaming_Declaration>: If the renamed object has side-effects
1232 evaluate only its address.
1233 <N_Assignment_Statement>: Adjust call to Call_to_gnu. Use load-modify
1234 store sequence if required.
1235 <N_Function_Call>: Adjust call to Call_to_gnu.
1236 (extract_values): Adjust comment.
1237 * gcc-interface/utils2.c (build_atomic_load): Add SYNC parameter and
1238 use relaxed memory model if it is not set.
1239 (build_atomic_store): Likewise.
1240 (call_is_atomic_load): New predicate.
1241 (build_load_modify_store): New function.
1242 (build_binary_op) <MODIFY_EXPR>: Accept SAVE_EXPR on the LHS.
1243 (gnat_stabilize_reference) <CALL_EXPR>: Deal with atomic loads.
1245 2015-05-25 Eric Botcazou <ebotcazou@adacore.com>
1247 * gcc-interface/ada-tree.h (DECL_RENAMING_GLOBAL_P): Rename into...
1248 (DECL_GLOBAL_NONCONSTANT_RENAMING_P): ...this.
1249 * gcc-interface/gigi.h (record_global_renaming_pointer): Delete.
1250 (invalidate_global_renaming_pointers): Likewise.
1251 (record_global_nonconstant_renaming): New.
1252 (invalidate_global_nonconstant_renamings): Likewise.
1253 (get_inner_constant_reference): Likewise.
1254 (gnat_constant_reference_p): Likewise.
1255 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Adjust to above
1256 and register the renaming pointer only if the object is non-constant.
1257 (elaborate_expression_1): Call get_inner_constant_reference instead
1258 of get_inner_reference.
1259 * gcc-interface/trans.c (fold_constant_decl_in_expr): Minor tweak.
1260 (Identifier_to_gnu): Adjust to above and do not recheck the renamed
1261 object before substituting it.
1262 (Compilation_Unit_to_gnu): Adjust to above renaming. Minor tweaks.
1263 (gnat_to_gnu) <N_Object_Renaming_Declaration>: Do not return the
1264 result at the global level.
1265 (N_Exception_Renaming_Declaration): Likewise.
1266 * gcc-interface/utils.c (global_renaming_pointers): Rename into...
1267 (global_nonconstant_renamings): ...this.
1268 (destroy_gnat_utils): Adjust to above renaming.
1269 (record_global_renaming_pointer): Rename into...
1270 (record_global_nonconstant_renaming): ...this.
1271 (invalidate_global_renaming_pointers): Rename into...
1272 (invalidate_global_nonconstant_renamings): ...this and do not recheck
1273 the renamed object before invalidating.
1274 * gcc-interface/utils2.c (gnat_stabilize_reference): Minor tweak.
1275 (get_inner_constant_reference): New public function.
1276 (gnat_constant_reference_p): New predicate.
1278 2015-05-25 Javier Miranda <miranda@adacore.com>
1280 * einfo.ads, einfo.adb (Has_Out_Or_In_Out_Parameter): This attribute
1281 is now present in subprograms, generic subprograms, entries and
1283 * sem_ch6.adb (Set_Formal_Mode): Set As_Out_Or_In_Out_Parameter
1284 on entries, entry families, subprograms and generic subprograms.
1285 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration):
1286 Minor code reorganization to ensure that the Ekind attribute
1287 of the subprogram entity is set before its formals are
1288 processed. Required to allow the use of the attribute
1289 Has_Out_Or_In_Out_Parameter on the subprogram entity.
1290 * sem_aggr.adb (Resolve_Aggregate, Resolve_Extension_Aggregate):
1291 Perform the check on writable actuals only if the value of some
1292 component of the aggregate involves calling a function with
1293 out-mode parameters.
1294 (Resolve_Record_Aggregate): Propagate the Check_Actuals flag to the
1295 internally built aggregate.
1296 * sem_ch3.adb (Build_Derived_Record_Type, Record_Type_Declaration):
1297 Perform the check on writable actuals only if the initialization of
1298 some component involves calling a function with out-mode parameters.
1299 * sem_ch4.adb (Analyze_Arithmetic_Op, Analyze_Comparison_Op,
1300 Analyze_Equality_Op, Analyze_Logical_Op, Analyze_Membership_Op,
1301 Analyze_Range): Check writable actuals only if the
1302 subtrees have a call to a function with out-mode parameters
1303 (Analyze_Call.Check_Writable_Actuals): New subprogram. If the call
1304 has out or in-out parameters then mark its outermost enclosing
1305 construct as a node on which the writable actuals check must
1307 (Analyze_Call): Check if the flag must be set and if the outermost
1308 enclosing construct.
1309 * sem_util.adb (Check_Function_Writable_Actuals): Code cleanup
1310 and reorganization. We skip processing aggregate discriminants
1311 since their precise analysis involves two phases traversal.
1312 * sem_res.adb (Resolve_Actuals, Resolve_Arithmetic_Op,
1313 Resolve_Logical_Op, Resolve_Membership_Op): Remove call to
1314 check_writable_actuals.
1316 2015-05-22 Ed Schonberg <schonberg@adacore.com>
1318 * sem_ch3.adb (Constrain_Concurrent): If the context is a
1319 type declaration, generate an Itype_Reference for the anonymous
1320 subtype, to force elaboration at this point in gigi.
1322 2015-05-22 Gary Dismukes <dismukes@adacore.com>
1324 * layout.adb, einfo.ads, sem_ch12.adb, freeze.adb, sem_util.ads,
1325 exp_ch4.adb, sem_ch6.adb: Minor reformatting and typo fixes.
1327 2015-05-22 Ed Schonberg <schonberg@adacore.com>
1329 * sem_res.adb (Resolve_Actuals): If the call is to an overridden
1330 operation, replace the names of the actuals in named associations
1331 with the names of the actuals of the subprogram that is eventually
1332 executed. The names of the formals and the defaults can differ
1333 between the two operations when they are operations of a formal
1336 2015-05-22 Bob Duff <duff@adacore.com>
1338 * a-convec.ads, a-convec.adb (Append): Check for fast path. Split
1339 out slow path into separate procedure. Inline Append. Fast path
1340 now avoids calling Insert.
1341 (Finalize): Do the busy checking last, so the container gets emptied.
1342 (Insert, Insert_Space): Remove redundancy.
1344 2015-05-22 Robert Dewar <dewar@adacore.com>
1346 * switch-c.adb (Scan_Front_End_Switches): Insist on -gnatc
1349 2015-05-22 Arnaud Charlet <charlet@adacore.com>
1351 * gnatvsn.ads: Minor code reorg to remember more easily to update
1354 2015-05-22 Ed Schonberg <schonberg@adacore.com>
1356 * sem_ch10.adb (Analyze_With_Clause): In ASIS_Mode, a
1357 limited_with clause on a predefined unit is not transformed into
1358 a regular with_clause, to preserve the original tree structure.
1359 * sinfo.ads (N_With_Clause): Add comment on handling of
1361 * sem_ch10.adb: Minor reformatting.
1363 2015-05-22 Ed Schonberg <schonberg@adacore.com>
1365 * sem_ch8.adb (Freeze_Profile): A limited view of a type in
1366 the profile of a subprogram renaming does not require freezing,
1367 because it is declared in a different unit.
1369 2015-05-22 Ed Schonberg <schonberg@adacore.com>
1371 * exp_aggr.adb (Get_Constraint_Association): If type (of ancestor
1372 composite type) is private, go to full view. This was previously
1373 done only in an instance context, but is happen whenever a chain
1374 of private extensions includes one inherited discriminant.
1376 2015-05-22 Robert Dewar <dewar@adacore.com>
1378 * einfo.ads: Minor comment updates.
1379 * exp_unst.adb: Move Subps table to spec Don't remove old entries
1380 from table Add Last field to record last entry used.
1381 * exp_unst.ads: Move Subps table here from body So that Cprint
1382 can access saved values.
1384 2015-05-22 Bob Duff <duff@adacore.com>
1386 * a-cdlili.adb, a-cdlili.ads, a-cohama.adb, a-cohama.ads,
1387 * a-cohase.adb, a-cohase.ads, a-convec.adb, a-convec.ads,
1388 * a-coorma.adb, a-coorma.ads, a-coorse.adb, a-coorse.ads:
1389 (Pseudo_Reference, Element_Access, Get_Element_Access): New
1390 declarations added for use by performance improvements in exp_ch5.adb.
1391 * snames.ads-tmpl: New names referenced by exp_ch5.adb.
1392 * exp_ch5.adb: Speed up "for ... of" loops for predefined containers.
1393 Instead of doing literally what the RM calls for, we do something
1394 equivalent that avoids expensive operations inside the loop. If the
1395 container package has appropriate Next, Pseudo_Reference,
1396 Element_Access, Get_Element_Access declarations, we invoke the
1398 * snames.ads-tmpl: Note speed improvement.
1400 2015-05-22 Eric Botcazou <ebotcazou@adacore.com>
1402 * einfo.ads (Is_Atomic_Or_VFA): Move to XEINFO INLINES section.
1403 * xeinfo.adb: Replace a-einfo.h with einfo.h throughout.
1404 Add pattern to translate "or else" into "||".
1406 2015-05-22 Eric Botcazou <ebotcazou@adacore.com>
1408 * einfo.ads (Has_Volatile_Full_Access): Rename into...
1409 (Is_Volatile_Full_Access): ...this.
1410 (Set_Has_Volatile_Full_Access): Rename into...
1411 (Set_Is_Volatile_Full_Access): ...this.
1412 * einfo.adb (Has_Volatile_Full_Access): Rename into...
1413 (Is_Volatile_Full_Access): ...this.
1414 (Set_Has_Volatile_Full_Access): Rename into...
1415 (Set_Is_Volatile_Full_Access): ...this.
1416 (Is_Atomic_Or_VFA): Adjust to above renaming.
1417 * errout.adb (Special_Msg_Delete): Likewise.
1418 * exp_pakd.adb (Install_PAT): Likewise.
1419 * freeze.adb (Freeze_Array_Type): Likewise.
1420 * sem_ch8.adb (Analyze_Object_Renaming): Likewise.
1421 * sem_ch13.adb (Inherit_Delayed_Rep_Aspects): Likewise.
1422 (Inherit_Aspects_At_Freeze_Point): Likewise.
1423 * sem_prag.adb (Set_Atomic_VFA): Likewise.
1424 (Process_Atomic_Independent_Shared_Volatile): Likewise.
1425 * sem_util.adb (Is_Atomic_Or_VFA_Object): Likewise.
1427 2015-05-22 Robert Dewar <dewar@adacore.com>
1429 * exp_ch5.adb, layout.adb, einfo.adb, einfo.ads, sem_prag.adb,
1430 freeze.adb, freeze.ads, sem_util.adb, sem_util.ads, exp_ch2.adb,
1431 exp_ch4.adb, errout.adb, exp_aggr.adb, sem_ch13.adb: This is a general
1432 change that deals with the fact that most of the special coding for
1433 Atomic should also apply to the case of Volatile_Full_Access.
1434 A new attribute Is_Atomic_Or_VFA is introduced, and many of the
1435 references to Is_Atomic now use this new attribute.
1437 2015-05-22 Robert Dewar <dewar@adacore.com>
1439 * exp_ch4.adb (Expand_N_Op_Eq): Introduce 'Machine for 'Result
1442 2015-05-22 Eric Botcazou <ebotcazou@adacore.com>
1444 * sprint.adb (Source_Dump): When generating debug files, deal
1445 with the case of a stand-alone package instantiation by dumping
1446 together the spec and the body in the common debug file.
1448 2015-05-22 Robert Dewar <dewar@adacore.com>
1450 * sem_ch13.adb (Minimum_Size): Size is zero for null range
1453 2015-05-22 Hristian Kirtchev <kirtchev@adacore.com>
1455 * einfo.adb (Anonymous_Master): This attribute now applies
1456 to package and subprogram bodies.
1457 (Set_Anonymous_Master): This attribute now applies to package and
1459 (Write_Field36_Name): Add output for package and subprogram bodies.
1460 * einfo.ads Update the documentation on attribute Anonymous_Master
1461 along with occurrences in entities.
1462 * exp_ch4.adb (Create_Anonymous_Master): Reimplemented to
1463 handle spec and body anonymous masters of the same unit.
1464 (Current_Anonymous_Master): Reimplemented. Handle a
1465 package instantiation that acts as a compilation unit.
1466 (Insert_And_Analyze): Reimplemented.
1468 2015-05-22 Ed Schonberg <schonberg@adacore.com>
1470 * sem_ch10.adb (Analyze_With_Clause): A limited_with_clause on a
1471 predefined unit is treated as a regular with_clause.
1473 2015-05-22 Robert Dewar <dewar@adacore.com>
1475 * sem_ch12.adb, prj.ads, makeutl.ads, sem_ch6.adb, prj-nmsc.adb,
1476 prj-conf.adb, sem_disp.adb: Minor reformatting.
1478 2015-05-22 Vincent Celier <celier@adacore.com>
1480 * clean.adb (Parse_Cmd_Line): For native gnatclean, check
1481 for switch -P and, if found and gprclean is available, invoke
1483 * make.adb (Initialize): For native gnatmake, check for switch -P
1484 and, if found and gprbuild is available, invoke silently gprbuild.
1486 2015-05-22 Eric Botcazou <ebotcazou@adacore.com>
1488 * sem_ch13.adb (Validate_Unchecked_Conversions): Also issue
1489 specific warning for discrete types when the source is larger
1492 2015-05-22 Ed Schonberg <schonberg@adacore.com>
1494 * einfo.ads, einfo.adb (Incomplete_Actuals): New attribute of
1495 package instantiations. Holds the list of actuals in the instance
1496 that are incomplete types, to determine where the corresponding
1497 instance body must be placed.
1498 * sem_ch6.adb (Conforming_Types): An incomplete type used as an
1499 actual in an instance matches an incomplete formal.
1500 * sem_disp.adb (Check_Dispatching_Call): Handle missing case of
1501 explicit dereference.
1502 (Inherited_Subprograms): In the presence of a limited view there
1503 are no subprograms to inherit.
1504 * sem_ch12.adb (Preanalyze_Actuals): Build list of incomplete
1505 actuals of instance, for later placement of instance body and
1506 freeze nodes for actuals.
1507 (Install_Body): In the presence of actuals that incomplete types
1508 from a limited view, the instance body cannot be placed after
1509 the declaration because full views have not been seen yet. Any
1510 use of the non-limited views in the instance body requires
1511 the presence of a regular with_clause in the enclosing unit,
1512 and will fail if this with_clause is missing. We place the
1513 instance body at the beginning of the enclosing body, which is
1514 the unit being compiled, and ensure that freeze nodes for the
1515 full views of the incomplete types appear before the instance.
1517 2015-05-22 Pascal Obry <obry@adacore.com>
1519 * makeutl.ads, prj-conf.adb, prj-nmsc.adb, prj.ads
1520 (In_Place_Option): Removed.
1521 (Relocate_Build_Tree_Option): New constant.
1522 (Root_Dir_Option): New constant.
1523 (Obj_Root_Dir): Removed.
1524 (Build_Tree_Dir): New variable.
1525 (Root_Src_Tree): Removed.
1526 (Root_Dir): New variable.
1527 * prj-conf.adb (Get_Or_Create_Configuration_File): Add check
1528 for improper relocation.
1529 * prj-nmsc.adb (Locate_Directory): Add check for improper
1532 2015-05-22 Hristian Kirtchev <kirtchev@adacore.com>
1534 * einfo.adb (Default_Init_Cond_Procedure): Code cleanup. The
1535 attribute now applies to the base type.
1536 (Has_Default_Init_Cond): Now applies to the base type.
1537 (Has_Inherited_Default_Init_Cond): Now applies to the base type.
1538 (Set_Default_Init_Cond_Procedure): Code cleanup. The attribute now
1539 applies to the base type.
1540 (Set_Has_Default_Init_Cond): Now applies to the base type.
1541 (Set_Has_Inherited_Default_Init_Cond): Now applies to the base type.
1542 * exp_ch3.adb (Expand_N_Object_Declaration): No need to use the
1543 base type when adding a call to the Default_Initial_Condition.
1545 2015-05-22 Hristian Kirtchev <kirtchev@adacore.com>
1547 * einfo.adb: Node36 is now used as Anonymous_Master. Flag253
1549 (Anonymous_Master): New routine.
1550 (Has_Anonymous_Master): Removed.
1551 (Set_Anonymous_Master): New routine.
1552 (Set_Has_Anonymous_Master): Removed.
1553 (Write_Entity_Flags): Remove the output for Has_Anonymous_Maser.
1554 (Write_Field36_Name): Add output for Anonymous_Master.
1555 * einfo.ads Add new attribute Anonymous_Master along with
1556 occurrences in nodes. Remove attribute Has_Anonymous_Master along
1557 with occurrences in nodes.
1558 (Anonymous_Master): New routine along with pragma Inline.
1559 (Has_Anonymous_Master): Removed along with pragma Inline.
1560 (Set_Anonymous_Master): New routine along with pragma Inline.
1561 (Set_Has_Anonymous_Master): Removed along with pragma Inline.
1562 * exp_ch4.adb (Create_Anonymous_Master): New routine.
1563 (Current_Anonymous_Master): Reimplemented.
1565 2015-05-22 Bob Duff <duff@adacore.com>
1567 * freeze.adb (Freeze_Profile): Suppress warning if imported
1568 subprogram is not at library level.
1570 2015-05-22 Robert Dewar <dewar@adacore.com>
1572 * sem_ch8.adb (Analyze_Object_Renaming): Check for renaming
1573 component of an object to which Volatile_Full_Access applies.
1575 2015-05-22 Jerome Guitton <guitton@adacore.com>
1577 * exp_dbug.ads: Add note about non bit-packed arrays.
1579 2015-05-22 Eric Botcazou <ebotcazou@adacore.com>
1581 * sem_prag.adb: Fix typo.
1582 * einfo.ads: Grammar fixes in comments.
1584 2015-05-22 Bob Duff <duff@adacore.com>
1586 * a-cborma.ads, a-cidlli.ads, a-cimutr.ads, a-ciormu.ads,
1587 * a-cihase.ads, a-cohama.ads, a-coorse.ads, a-cbhama.ads,
1588 * a-cborse.ads, a-comutr.ads, a-ciorma.ads, a-cobove.ads,
1589 * a-coormu.ads, a-convec.ads, a-cohase.ads, a-coinho.ads,
1590 * a-cbdlli.ads, a-cbmutr.ads, a-cbhase.ads, a-cdlili.ads,
1591 * a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
1592 * a-coinho-shared.ads (Constant_Reference_Type, Reference_Type):
1593 Add an initialization expression "raise Program_Error". See,
1594 for example, RM-A.18.2(148.4).
1596 2015-05-22 Robert Dewar <dewar@adacore.com>
1598 * debug.adb: Update documentation.
1599 * einfo.ads, einfo.adb (Needs_Typedef): New flag
1600 * exp_unst.adb (Unnest_Subprogram): Mark AREC types as needing
1602 * frontend.adb: Update comments.
1603 * gnat1drv.adb (Adjust_Global_Switches): Set all needed flags
1605 * opt.ads (Generate_C_Code): New switch.
1606 * osint-c.adb (Write_C_File_Info): Removed, not used
1607 (Write_H_File_Info): Removed, not used
1608 * osint-c.ads (Write_C_File_Info): Removed, not used
1609 (Write_H_File_Info): Removed, not used
1610 * osint.ads (Write_Info): Minor comment updates.
1611 (Output_FD): Moved from private part to public part of spec.
1612 * sem.adb (Semantics): Force expansion on if in Generate_C_Code
1614 * atree.ads: minor typo in comment.
1615 * sem_prag.adb (Process_Atomic_Independent_Shared_Volatile):
1616 Do not allow VFA on composite object with aliased component.
1618 2015-05-22 Arnaud Charlet <charlet@adacore.com>
1620 * osint-c.adb, osint-c.ads (Set_File_Name): Move back to spec.
1622 2015-05-22 Pascal Obry <obry@adacore.com>
1624 * prj-util.adb: Minor comment editing.
1626 2015-05-22 Pascal Obry <obry@adacore.com>
1628 * makeutl.ads (In_Place_Option): New constant.
1629 * prj.ads (Obj_Root_Dir): New variable (absolute path to relocate
1631 (Root_Src_Tree): New variable (absolute path of root source tree).
1632 * prj-conf.adb (Do_Autoconf): Take into account the object root
1633 directory (if defined) to generate configuration project.
1634 * prj-nmsc.adb (Get_Directories): Handle case where Obj_Root_Dir
1636 (Locate_Directory): Likewise.
1638 2015-05-22 Pascal Obry <obry@adacore.com>
1640 * prj-util.ads, prj-util.adb (Relative_Path): New routine.
1642 2015-05-22 Bob Duff <duff@adacore.com>
1644 * exp_utils.ads, exp_utils.adb (Find_Optional_Prim_Op): New
1645 interface to return Empty when not found, so we can avoid handling
1646 Program_Error in that case.
1647 (Find_Prim_Op): Fix latent bug: raise Program_Error when there are no
1649 * exp_ch7.adb, sem_util.adb: Use Find_Optional_Prim_Op when the
1650 code is expecting Empty.
1651 * sem_ch8.adb: Use Find_Optional_Prim_Op to avoid handling
1654 2015-05-22 Robert Dewar <dewar@adacore.com>
1656 * sem_ch3.adb, sem_intr.adb, exp_ch4.adb, s-rannum.adb,
1657 sem_eval.adb, s-fatgen.adb, s-expmod.ads: Remove incorrect hyphen in
1659 * exp_util.adb: Add comment.
1660 * osint-c.ads, osint-c.adb (Set_Library_Info_Name): Move from spec to
1662 (Set_File_Name): New name for the above.
1663 (Create_C_File, Create_H_File, Write_C_File_Info, Write_H_File_Info,
1664 Close_C_File, Close_H_File): New procedure.
1665 * osint.adb: Minor reformatting.
1666 * osint.ads: Minor comment updates.
1668 2015-05-22 Robert Dewar <dewar@adacore.com>
1670 * exp_ch4.adb: Minor rewording.
1671 * exp_util.ads: Clarify that Find_Prim_Op is only for
1674 2015-05-22 Robert Dewar <dewar@adacore.com>
1676 * atree.adb, atree.ads, treepr.adb: Change name Needs_Actuals_Check to
1678 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**x in modular
1681 2015-05-22 Eric Botcazou <ebotcazou@adacore.com>
1683 * exp_pakd.adb (Install_PAT): Propagate representation aspects
1684 from the original array type to the PAT.
1686 2015-05-22 Robert Dewar <dewar@adacore.com>
1688 * treepr.adb (Print_Node_Header): Add output of Needs_Actuals_Check.
1690 2015-05-22 Robert Dewar <dewar@adacore.com>
1692 * atree.adb, atree.ads (Needs_Actuals_Check): New flag.
1694 2015-05-22 Hristian Kirtchev <kirtchev@adacore.com>
1696 * sem_prag.adb (Analyze_Pragma): Remove the detection
1697 of a useless Part_Of indicator when the related item is a constant.
1698 (Check_Matching_Constituent): Do not emit an error on a constant.
1699 (Check_Missing_Part_Of): Do not check for a missing Part_Of indicator
1700 when the related item is a constant.
1701 (Collect_Body_States): Code cleanup.
1702 (Collect_Visible_States): Code cleanup.
1703 (Report_Unused_States): Do not emit an error on a constant.
1704 * sem_util.ads, sem_util.adb (Has_Variable_Input): Removed.
1706 2015-05-22 Eric Botcazou <ebotcazou@adacore.com>
1708 * sem_ch8.adb (Analyze_Object_Renaming): Copy
1709 Has_Volatile_Full_Access from renamed to renaming entities.
1710 * sem_prag.adb (Process_Atomic_Independent_Shared_Volatile):
1711 Tidy up and remove redundant setting of Has_Volatile_Full_Access.
1713 2015-05-22 Hristian Kirtchev <kirtchev@adacore.com>
1715 * ghost.adb (Check_Ghost_Completion): Update references to SPARK
1717 (Check_Ghost_Policy): Update references to SPARK RM 6.9 rules.
1718 * sem_ch3.adb (Analyze_Object_Declaration): Update references
1719 to SPARK RM 6.9 rules.
1720 (Check_Completion): Ghost entities do not require a special form of
1722 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Update references
1723 to SPARK RM 6.9 rules.
1724 (Analyze_Subprogram_Body_Helper): Update references to SPARK RM 6.9
1726 * sem_ch7.adb (Analyze_Package_Body_Helper): Update references
1727 to SPARK RM 6.9 rules.
1728 (Requires_Completion_In_Body): Ghost entities do not require a special
1731 2015-05-22 Robert Dewar <dewar@adacore.com>
1733 * a-csquin.ads: Use Ada 2012 notation.
1734 * sem_ch8.adb: Minor reformatting.
1736 2015-05-22 Hristian Kirtchev <kirtchev@adacore.com>
1738 * sem_ch13.adb (Analyze_Aspect_Specifications): Aspect Import
1739 acts as a completion.
1741 2015-05-22 Ed Schonberg <schonberg@adacore.com>
1743 * sem_ch13.adb: Minor reformatting.
1745 2015-05-22 Jose Ruiz <ruiz@adacore.com>
1747 * a-reatim.adb: Minor change, fix typo.
1749 2015-05-22 Robert Dewar <dewar@adacore.com>
1751 * sem_util.ads: Minor addition of ??? comment.
1752 * sem_prag.adb, sem_util.adb: Minor reformatting.
1753 * sem_ch13.adb: minor reformatting.
1755 2015-05-22 Robert Dewar <dewar@adacore.com>
1757 * a-reatim.ads: Add Compile_Time_Error to ensure Duration
1759 * sem_ch13.adb: Improve error message.
1760 * exp_ch4.adb: Minor reformatting.
1762 2015-05-22 Hristian Kirtchev <kirtchev@adacore.com>
1764 * sem_prag.adb (Analyze_Pragma): Constants without variable
1765 input do not require indicator Part_Of.
1766 (Check_Missing_Part_Of): Constants without variable input do not
1767 requrie indicator Part_Of.
1768 (Collect_Visible_States): Constants without variable input are
1769 not part of the hidden state of a package.
1770 * sem_util.ads, sem_util.adb (Has_Variable_Input): New routine.
1772 2015-05-22 Robert Dewar <dewar@adacore.com>
1774 * exp_util.adb (Activate_Atomic_Synchronization): Do not set
1775 Atomic_Sync_Required for an object renaming declaration.
1776 * sem_ch8.adb (Analyze_Object_Renaming): Copy Is_Atomic and
1777 Is_Independent to renaming object.
1779 2015-05-22 Ed Schonberg <schonberg@adacore.com>
1781 * sem_ch5.adb (Analyze_Iterator_Specification): Diagnose
1782 various illegalities in iterators over arrays and containers:
1783 a) New function Get_Cursor_Type, to verify that the cursor is
1784 not a limited type at the point of iteration.
1785 b) If the container is a constant, an element_iterator is illegal
1786 if the container type does not have a Constant_Indexing aspect.
1787 c) If the iterate function has an in-out controlling parameter,
1788 the container cannot be a constant object.
1789 d) Reject additional cases of iterators over a
1790 discriminant-dependent component of a mutable object.
1792 2015-05-21 Hristian Kirtchev <kirtchev@adacore.com>
1794 * einfo.adb (Contract): This attribute now applies to constants.
1795 (Set_Contract): This attribute now applies to constants.
1796 (Write_Field34_Name): Add output for constants.
1797 * einfo.ads Attribute Contract now applies to constants.
1798 * sem_ch3.adb (Analyze_Object_Contract): Constants now have
1799 their Part_Of indicator verified.
1800 * sem_prag.adb (Analyze_Constituent): A constant is now a valid
1802 (Analyze_Global_Item): A constant cannot act as an output.
1803 (Analyze_Initialization_Item): Constants are now a valid
1804 initialization item.
1805 (Analyze_Initializes_In_Decl_Part): Rename
1806 global variable States_And_Vars to States_And_Objs and update
1807 all its occurrences.
1808 (Analyze_Input_Item): Constants are now a
1809 valid initialization item. Remove SPARM RM references from error
1811 (Analyze_Pragma): Indicator Part_Of can now apply to a constant.
1812 (Collect_Body_States): Collect both source constants
1814 (Collect_States_And_Objects): Collect both source constants and
1816 (Collect_States_And_Variables): Rename
1817 to Collect_States_And_Objects and update all its occurrences.
1818 (Collect_Visible_States): Do not collect constants and variables
1819 used to map generic formals to actuals.
1820 (Find_Role): The role of a constant is that of an input. Separate the
1821 role of a variable from that of a constant.
1822 (Report_Unused_Constituents): Add specialized wording for constants.
1823 (Report_Unused_States): Add specialized wording for constants.
1824 * sem_util.adb (Add_Contract_Item): Add processing for constants.
1825 * sem_util.ads (Add_Contract_Item): Update the comment on usage.
1826 (Find_Placement_In_State_Space): Update the comment on usage.
1828 2015-05-21 Ed Schonberg <schonberg@adacore.com>
1830 * sem_ch5.adb: minor reformatting.
1832 2015-05-21 Robert Dewar <dewar@adacore.com>
1834 * freeze.adb (Freeze_Entity): Properly tag -gnatw.z messages.
1836 2015-05-21 Robert Dewar <dewar@adacore.com>
1838 * freeze.adb: Minor reformatting.
1839 * cstand.adb (Print_Standard): Fix bad printing of Duration
1841 * a-reatim.adb (Time_Of): Complete rewrite to properly detect
1844 2015-05-21 Ed Schonberg <schonberg@adacore.com>
1846 * sem_ch5.adb: add (useless) initial value.
1847 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram):
1848 Check whether the procedure has parameters before processing
1849 formals in ASIS mode.
1851 2015-05-21 Ed Schonberg <schonberg@adacore.com>
1853 * sem_ch13.adb (Check_Iterator_Functions): Emit error on Iterator
1854 aspect as well when indexing function is illegal.
1855 (Valid_Default_Iterator): Handle properly somme illegal cases
1856 to prevent compilation abandoned messages.
1857 (Check_Primitive_Function): Verify that type and indexing function
1858 are in the same scope.
1859 * freeze.adb (Freeze_Record): Extend patch on the presence of
1860 indexing aspects to aspect Default_Iterator.
1862 2015-05-19 David Malcolm <dmalcolm@redhat.com>
1864 * gcc-interface/trans.c (Sloc_to_locus1): Strenghthen local "map"
1865 from line_map * to line_map_ordinary *.
1867 2015-05-12 Jason Merrill <jason@redhat.com>
1869 * sigtramp-vxworks.c: Add space between string literal and macro
1872 2015-05-12 Arnaud Charlet <charlet@adacore.com>
1874 * gnat_rm.texi, gnat_ugn.texi, doc: Documentation updates and clean ups
1876 2015-05-12 Ed Schonberg <schonberg@adacore.com>
1878 * sem_ch5.adb (Analyze_Iterator_Specifications): Additional
1879 legality checks for array and container iterators:
1880 a) The domain of iteration cannot be a component that depends
1881 on discriminants of a mutable object. The check was recently
1882 added for element iterators.
1883 b) The cursor type cannot be a limited type at the point of the
1884 iteration, because the cursor will be assigned to in the body
1887 2015-05-12 Robert Dewar <dewar@adacore.com>
1889 * freeze.adb (Freeze_Record_Type): Make sure that if we have
1890 aspect Iterator_Element, then we have either Constant_Indexing
1891 or Variable_Indexing.
1893 2015-05-12 Ed Schonberg <schonberg@adacore.com>
1895 * a-coormu.ads, a-coormu.adb: Add Indexing aspect, Reference_Type,
1896 and Reference_Control_Type to support element iterators over
1898 * a-ciormu.ads, a-ciormu.adb: Ditto for
1899 indefinite_ordered_multisets.
1901 2015-05-12 Hristian Kirtchev <kirtchev@adacore.com>
1903 * exp_ch4.adb (Expand_N_Expression_With_Actions): Force
1904 the evaluation of the EWA expression. Code cleanup.
1905 (Process_Transient_Object): Code cleanup.
1906 * exp_util.adb (Is_Aliased): Controlled transient objects found
1907 within EWA nodes are not aliased.
1908 (Is_Finalizable_Transient): Iterators are not finalizable transients.
1910 2015-05-12 Robert Dewar <dewar@adacore.com>
1912 * sem_prag.adb (Process_Atomic_Independent_Shared_Volatile):
1913 Don't allow Atomic and Volatile_Full_Access for the same entity.
1915 2015-05-12 Ed Schonberg <schonberg@adacore.com>
1917 * sem_ch5.adb (Analyze_Iterator_Specification): Implement new
1918 semantics and safety checks specified in AI12-0151.
1920 2015-05-12 Pierre-Marie de Rodat <derodat@adacore.com>
1922 * sem_ch10.adb (Sem_Ch10.Analyze_Proper_Body): Generate SCOs
1923 for subunit in generic units.
1925 2015-05-12 Robert Dewar <dewar@adacore.com>
1927 * sem_elab.adb (Check_A_Call): Avoid checking internal call
1930 2015-05-12 Ed Schonberg <schonberg@adacore.com>
1932 * sem_ch6.adb (Process_Formals): An untagged incomplete type
1933 is legal in the profile of a null procedure.
1935 2015-05-12 Ed Schonberg <schonberg@adacore.com>
1937 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly
1938 the checks on a derived formal whose parent type is a previous
1939 formal that is not a derived type.
1941 2015-05-12 Robert Dewar <dewar@adacore.com>
1943 * aspects.ads, aspects.adb: Add entries for aspect Volatile_Full_Access
1944 * einfo.adb (Has_Volatile_Full_Access): New flag.
1945 (Has_Volatile_Full_Access): New flag.
1946 * einfo.ads (Has_Volatile_Full_Access): New flag.
1947 * par-prag.adb: Add dummy entry for Volatile_Full_Access.
1948 * sem_prag.adb (Analyze_Pragma, case Volatile_Full_Access):
1949 Implement new pragma.
1950 * snames.ads-tmpl: Add entries for pragma Volatile_Full_Access.
1952 2015-05-12 Robert Dewar <dewar@adacore.com>
1954 * targparm.ads: Minor reformatting.
1956 2015-05-12 Robert Dewar <dewar@adacore.com>
1958 * a-reatim.adb (Time_Of): Properly detect overflow when TS = 0.0.
1959 * a-reatim.ads: Minor reformatting.
1961 2015-05-12 Hristian Kirtchev <kirtchev@adacore.com>
1963 * einfo.ads: Update the documentation of flags
1964 Has_Inherited_Default_Init_Cond and Has_Default_Init_Cond.
1966 2015-05-12 Robert Dewar <dewar@adacore.com>
1968 * impunit.adb: Add entry for a-dhfina.ads
1969 * a-dhfina.ads: New file.
1971 2015-05-12 Ed Schonberg <schonberg@adacore.com>
1973 * exp_ch5.adb (Expand_Iterator_Loop_Over_Array): if the array
1974 type has convention Fortran, a multidimensional iterator varies
1975 the first dimension fastest.
1977 2015-05-12 Hristian Kirtchev <kirtchev@adacore.com>
1979 * einfo.adb: Node32 is now used as Encapsulating_State.
1980 Node37 is now used as Associated_Entity.
1981 (Associated_Entity): New routine.
1982 (Encapsulating_State): Update the assertion guard to include constants.
1983 (Set_Associated_Entity): New routine.
1984 (Set_Encapsulating_State): Update the assertion guard to
1986 (Write_Field10_Name): Remove the output for Encapsulating_State.
1987 (Write_Field32_Name): Add output for Encapsulating_State.
1988 (Write_Field37_Name): Add output for Associated_Entity.
1989 * einfo.ads New attribute Associated_Entity along with placement
1990 in entities. Attribute Encapsulating_State now uses Node32.
1991 (Associated_Entity): New routine along with pragma Inline.
1992 (Set_Associated_Entity): New routine along with pragma Inline.
1993 * inline.ads Code reformatting.
1994 * sem_attr.adb (Analyze_Attribute): Correct the prefix of
1995 attribute 'Result when the context is a generic instantiation.
1996 (Analyze_Attribute_Old_Result): Pragmas Depends and
1997 Refined_Depends are a valid context for attribute 'Result.
1998 (Denote_Same_Function): Allow attribute 'Result to denote
2000 * sem_ch3.adb Add with and use clauses for Sem_Ch12.
2001 (Analyze_Declarations): Capture global references within the
2002 contracts of packages, subprograms and their respective bodies.
2003 * sem_ch6.adb (Analyze_Aspects_On_Body_Or_Stub): Removed.
2004 (Analyze_Completion_Contract): Removed.
2005 (Analyze_Generic_Subprogram_Body): Enchange the aspects after
2006 creating the generic copy. Create a generic contract for the
2007 template. Analyze the aspects of the generic body. Analyze the
2008 contract of the generic body when it is a compilation unit and
2009 capture global references.
2010 (Analyze_Subprogram_Body_Contract): Code cleanup.
2011 (Analyze_Subprogram_Contract): Do not save global references here.
2012 (Save_Global_References_In_List): Removed.
2013 * sem_ch7.adb (Analyze_Package_Body_Contract): Code cleanup.
2014 (Analyze_Package_Body_Helper): Create a generic contract for
2016 (Analyze_Package_Contract): Code cleanup.
2017 * sem_ch10.adb Add with and use clauses for Sem_Ch12.
2018 (Analyze_Compilation_Unit): Capture global references in a
2019 generic subprogram declaration that acts as a compilation unit.
2020 * sem_ch12.adb Add with and use clauses for Sem_Prag. Illustrate
2021 the implementation of generic contracts. Alphabetize various
2023 (Analyze_Generic_Package_Declaration):
2024 Create a generic contract for the template.
2025 (Analyze_Generic_Subprogram_Declaration): Create a generic
2026 contract for the template.
2027 (Analyze_Subprogram_Instantiation): Instantiate the contract of the
2029 (Copy_Generic_Node): Link defining entities of the generic template
2030 with the corresponding defining entities of the generic copy. Update
2031 the processing of pragmas.
2032 (Instantiate_Contract): Removed.
2033 (Instantiate_Subprogram_Contract): New routine.
2034 (Requires_Delayed_Save): New routine.
2035 (Save_Global_References): Rename formal parameter N to Templ. Various
2037 (Save_Global_References_In_Aspects): Moved from the spec.
2038 (Save_Global_References_In_Contract): New routine.
2039 (Save_References_In_Aggregate): New routine.
2040 (Save_References_In_Char_Lit_Or_Op_Symbol): New routine.
2041 (Save_References_In_Descendants): New routine.
2042 (Save_References_In_Identifier): New routine.
2043 (Save_References_In_Operator): New routine.
2044 (Save_References_In_Pragma): New routine.
2045 * sem_ch12.ads (Save_Global_References): Rename formal
2046 parameter N to Templ. Update the comment on usage.
2047 (Save_Global_References_In_Aspects): Moved to the body.
2048 (Save_Global_References_In_Contract): New routine.
2049 * sem_ch13.adb (Analyze_Aspect_Specifications_On_Body_Or_Stub):
2051 * sem_ch13.ads (Analyze_Aspect_Specifications_On_Body_Or_Stub):
2053 * sem_prag.adb (Add_Item_To_Name_Buffer): Add support for
2055 (Analyze_Contract_Cases_In_Decl_Part): Code cleanup.
2056 (Analyze_Depends_Global): New routine.
2057 (Analyze_Depends_In_Decl_Part): Code cleanup.
2058 (Analyze_Global_In_Decl_Part): Code cleanup.
2059 (Analyze_Global_Item): Constants are now valid global items. Do
2060 not perform state-related checks in an instance. Change the way
2061 renamings are handled. (Analyze_Initial_Condition_In_Decl_Part):
2063 (Analyze_Initializes_In_Decl_Part): Code cleanup.
2064 (Analyze_Input_Output): The analysis of attribute 'Result in
2065 the context of pragmas Depends or Refined_Depends now reuses
2066 the existing attribute analysis machinery. Constants and
2067 generic parameters are now valid dependency items. Do not
2068 perform state-related checks in an instance. Change the way
2069 renamings are handled. (Analyze_Pragma): Add a "characteristics"
2070 section for pragmas Abstract_State, Contract_Cases, Depends,
2071 Extensions_Visible, Global, Initial_Condition, Initializes,
2072 Post, Post_Class, Postcondition, Pre, Pre_Class, Precondition,
2073 Refined_Depends, Refined_Global, Refined_Post, Refined_State, Test_Case.
2074 (Analyze_Pre_Post_Condition): Do not create a generic
2076 (Analyze_Pre_Post_Condition_In_Decl_Part): Code cleanup.
2077 (Analyze_Refined_Depends_Global_Post): New routine.
2078 (Analyze_Refined_Depends_In_Decl_Part): Code cleanup.
2079 (Analyze_Refined_Global_In_Decl_Part): Code cleanup.
2080 (Analyze_Refined_Pragma): Removed.
2081 (Analyze_Refined_State_In_Decl_Part): Code cleanup.
2082 (Analyze_Test_Case_In_Decl_Part): Code cleanup.
2083 (Check_Dependency_Clause): Do not perform this check in an instance.
2084 (Check_Function_Return): Add support for generic functions.
2085 (Check_In_Out_States): Do not perform this check in an instance.
2086 (Check_Input_States): Do not perform this check in an instance.
2087 (Check_Mode_Restriction_In_Function): Add support for generic functions.
2088 (Check_Output_States): Do not perform this check in an instance.
2089 (Check_Postcondition_Use_In_Inlined_Subprogram): Rename
2090 parameter Subp_Id to Spec_Id and update comment on usage.
2091 (Check_Proof_In_States): Do not perform this check in an instance.
2092 (Check_Refined_Global_Item): Add support for constants.
2093 (Check_Refined_Global_List): Do not perform this check in an instance.
2094 (Collect_Global_Items): Reimplemented.
2095 (Collect_Subprogram_Inputs_Outputs): Add support for generic parameters.
2096 (Create_Generic_Template): Removed.
2097 (Find_Related_Package_Or_Body): Moved to spec.
2098 (Find_Role): Add support for generic parameters and constants.
2099 (Get_Argument): Moved to spec. Rename parameter Spec_Id to Context_Id.
2100 (Match_Item): Add support for constants.
2101 (Preanalyze_Test_Case_Arg): Reimplemented.
2102 (Report_Extra_Clauses): Do not perform this check in an instance.
2103 (Report_Extra_Constituents): Do not perform this check in an instance.
2104 * sem_prag.ads (Collect_Subprogram_Inputs_Outputs): Update
2105 the comment on usage.
2106 (Find_Related_Package_Or_Body): Moved from body.
2107 (Get_Argument): Moved from body.
2108 * sem_util.adb Add with and use clauses for Sem_Ch12.
2109 (Corresponding_Spec_Of): Add support for packages and package bodies.
2110 (Create_Generic_Contract): New routine.
2111 (Is_Contract_Annotation): Reimplemented.
2112 (Is_Generic_Declaration_Or_Body): New routine.
2113 (Is_Package_Contract_Annotation): New routine.
2114 (Is_Subprogram_Contract_Annotation): New routine.
2115 * sem_util.ads (Corresponding_Spec_Of): Update the comment on usage.
2116 (Create_Generic_Contract): New routine.
2117 (Is_Generic_Declaration_Or_Body): New routine.
2118 (Is_Package_Contract_Annotation): New routine.
2119 (Is_Subprogram_Contract_Annotation): New routine.
2120 * sinfo.adb (Is_Generic_Contract_Pragma): New routine.
2121 (Set_Is_Generic_Contract_Pragma): New routine.
2122 * sinfo.ads Add new attribute Is_Generic_Contract_Pragma along
2123 with occurrences in nodes.
2124 (Is_Generic_Contract_Pragma): New routine along with pragma Inline.
2125 (Set_Is_Generic_Contract_Pragma): New routine along with pragma Inline.
2126 * treepr.adb (Print_Entity_Info): Output fields 36 to 41.
2128 2015-05-12 Robert Dewar <dewar@adacore.com>
2130 * a-taster.ads: Minor comment fix: fix bad header, this is a
2133 2015-05-12 Robert Dewar <dewar@adacore.com>
2135 * sem_intr.adb: (Check_Shift): Diagnose bad modulus value.
2137 2015-05-12 Robert Dewar <dewar@adacore.com>
2139 * gnat1drv.adb (Adjust_Global_Switches): Default to suppressing
2140 Alignment_Checks on non-strict alignment machine.
2141 * sem_ch13.adb (Validate_Address_Clauses): Don't give
2142 compile-time alignment warnings if run time Alignment_Check
2145 2015-05-12 Thomas Quinot <quinot@adacore.com>
2147 * g-sercom.ads, g-sercom-linux.adb (GNAT.Serial_Communications.
2148 Data_Rate): New literals B75, B110, B150, B300, B600.
2150 2015-05-12 Doug Rupp <rupp@adacore.com>
2152 * init.c (__gnat_init_float) [vxworks]: For e500v2,
2153 do nothing and leave the responsibility to install the handler
2154 and enable the exceptions to the BSP.
2156 2015-05-12 Robert Dewar <dewar@adacore.com>
2158 * sem_ch9.adb, einfo.ads, exp_intr.adb: Minor reformatting.
2159 * sem_disp.adb: Minor code reorganization (remove junk redundant
2161 * exp_unst.adb (Unnest_Subprogram.Uplev_Refs): Ignore uplevel
2162 references to bounds of types coming from original type reference.
2163 * checks.ads: Minor reformatting.
2164 * checks.adb: Minor reformatting.
2165 * sem_prag.adb (Analyze_Pragma, case Check): If in ignored
2166 assertion, then make sure we do not drag in bignum stuff.
2168 2015-05-12 Ed Schonberg <schonberg@adacore.com>
2170 * sem_ch9.adb (Collect_Interfaces): Initialize
2171 Direct_Primitive_Operations for a tagged synchronized type,
2172 so it can used in ASIS mode.
2173 * sem_disp.adb (Check_Dispatching_Operation): If expansion is
2174 disabled, attach subprogram to list of Direct_Primitive_Operations
2175 of synchronized type itself, for ASIS use, because in this case
2176 Corresponding_Record_Type is not built.
2177 * einfo.ads: Indicate use of Direct_Primitive_Operations on
2180 2015-05-12 Pierre-Marie de Rodat <derodat@adacore.com>
2182 * exp_pakd.adb: Make clearer the comment in exp_pakd.adb about
2185 2015-05-12 Robert Dewar <dewar@adacore.com>
2187 * sem_ch3.adb, sem_util.adb, sem_ch6.adb: Minor reformatting.
2189 2015-05-12 Robert Dewar <dewar@adacore.com>
2191 * exp_unst.adb (Visit_Node): Deal with subprogram and package stubs.
2193 2015-05-12 Ed Schonberg <schonberg@adacore.com>
2195 * exp_intr.adb (Expand_Dispatching_Constructor_Call): The
2196 tag to be retrieved for the generated call is the first entry
2197 in the dispatch table for the return type of the instantiated
2200 2015-05-12 Bob Duff <duff@adacore.com>
2202 * exp_ch7.adb, exp_ch7.ads, exp_intr.adb, exp_util.adb,
2203 exp_util.ads: Update comments.
2205 2015-05-12 Ed Schonberg <schonberg@adacore.com>
2207 * sem_ch3.adb (Add_Internal_Interface_Entities): Do no generate
2208 freeze nodes for these in ASIS mode, because they lead to
2209 elaoration order issues in gigi.
2211 2015-05-12 Hristian Kirtchev <kirtchev@adacore.com>
2213 * sem_ch6.adb (Analyze_Expression_Function): Code
2214 cleanup. Use Copy_Subprogram_Spec to create a proper spec.
2215 (Analyze_Subprogram_Body_Helper): Code cleanup. Do not
2216 prepare a stand alone body for inlining in GNATprove mode
2217 when inside a generic. (Body_Has_Contract): Reimplemented.
2218 (Build_Subprogram_Declaration): New routine.
2219 * sem_ch10.adb (Analyze_Compilation_Unit): Capture global
2220 references within generic bodies by loading them.
2221 * sem_util.adb (Copy_Parameter_List): Code cleanup.
2222 (Copy_Subprogram_Spec): New routine.
2223 (Is_Contract_Annotation): New routine.
2224 * sem_util.ads (Copy_Subprogram_Spec): New routine.
2225 (Is_Contract_Annotation): New routine.
2227 2015-05-12 Hristian Kirtchev <kirtchev@adacore.com>
2229 * sem_attr.adb (Resolve_Attribute): Do not analyze the generated
2230 body of an expression function when the prefix of attribute
2231 'Access is the body.
2233 2015-05-12 Ed Schonberg <schonberg@adacore.com>
2235 * sem_ch3.adb (Build_Derived_Enumeration_Type): The anonymous base
2236 created for a derived enumeration type is not a first subtype,
2237 even though it is defined through a full type declaration.
2238 * sem_ch13.adb (Analyze_Aspects_At_Freeze_Point): Do not process
2239 aspects for the anonymous base type constructed for a derived
2240 scalar type, because they will be set when the first subtype
2242 (Inherit_Aspects_At_Freeze_Point): Fix typos on handling of
2243 Default_Value and Default_Component_Value, that prevented the
2244 proper inheritance of these aspects.
2246 2015-05-12 Gary Dismukes <dismukes@adacore.com>
2248 * exp_ch6.adb, exp_unst.adb: Minor typo fixes.
2250 2015-05-12 Robert Dewar <dewar@adacore.com>
2252 * sem_ch3.adb: Minor reformatting.
2254 2015-05-12 Vincent Celier <celier@adacore.com>
2256 * gnatcmd.adb: If we want to invoke gnatmake (gnatclean) with
2257 -P, then check if gprbuild (gprclean) is available; if it is,
2258 use gprbuild (gprclean) instead of gnatmake (gnatclean).
2260 2015-05-12 Robert Dewar <dewar@adacore.com>
2262 * debug.adb: Add flag -gnatd.3 to output diagnostic info from
2264 * einfo.ad, einfo.adb: Reorganize (and remove most of) flags used by
2266 * exp_ch6.adb (Unest_Bodies): Table for delayed calls to
2267 Unnest_Subprogram (Expand_N_Subprogram_Body): Add entry to table
2268 for later call instead of calling Unnest_Subprogram directly
2269 (Initialize): New procedure (Unnest_Subprograms): New procedure
2270 * exp_ch6.ads (Add_Extra_Actual_To_Call): Move into proper
2272 (Initialize): New procedure.
2273 (Unnest_Subprograms): New procedure.
2274 * exp_unst.adb (Unnest_Subprogram): Major rewrite, moving
2275 all processing to this routine which is now called late
2276 after instantiating bodies. Fully handles the case of generic
2278 * exp_unst.ads: Major rewrite, moving all processing to
2280 * frontend.adb (Frontend): Add call to Exp_Ch6.Initialize.
2281 (Frontend): Add call to Unnest_Subprograms.
2282 * sem_ch8.adb (Find_Direct_Name): Back to old calling sequence
2283 for Check_Nested_Access.
2284 * sem_util.adb (Build_Default_Subtype): Minor reformatting
2285 (Check_Nested_Access): Back to original VM-only form (we
2286 now do all the processing for Unnest_Subprogram at the time
2288 (Denotes_Same_Object): Minor reformatting
2289 (Note_Possible_Modification): Old calling sequence for
2290 Check_Nested_Access.
2291 * sem_util.ads (Check_Nested_Access): Back to original VM-only
2292 form (we now do all the processing for Unnest_Subprogram at the
2295 2015-05-12 Robert Dewar <dewar@adacore.com>
2297 * sem_ch3.adb, freeze.adb, sem_ch6.adb: Minor reformatting.
2299 2015-05-12 Ed Schonberg <schonberg@adacore.com>
2301 * sem_ch3.adb (Analyze_Object_Declaration): New function
2302 Has_Delayed_Aspect, used to defer resolution of an aggregate
2303 expression when the object declaration carries aspects Address
2305 * freeze.adb (Freeze_Object_Declaration): New subsidiary procedure
2306 to Freeze_Entity. In addition to the previous processing steps
2307 at the freeze point of an object, this procedure also handles
2308 aggregates in object declarations, when the declaration carries
2309 delayed aspects that require that the initialization of the
2310 object be attached to its freeze actions.
2312 2015-05-12 Ed Schonberg <schonberg@adacore.com>
2314 * sem_ch6.adb (Analyze_Subprogram_Declaration): Following
2315 AI12-0147, null procedures and expression functions are allowed
2316 in protected bodies.
2318 2015-05-12 Tristan Gingold <gingold@adacore.com>
2320 * i-cpoint.adb (Copy_Terminated_Array): Copy nothing if Length is 0.
2322 2015-05-12 Ed Schonberg <schonberg@adacore.com>
2324 * sem_ch3.adb (Complete_Private_Subtype): Propagate
2325 Has_Delayed_Aspects flag from private to full view, to ensure
2326 that predicate functions are constructed.
2328 2015-05-12 Ed Schonberg <schonberg@adacore.com>
2330 * sem_ch6.adb (Process_Formals): If a tagged formal is an
2331 incomplete class-wide type, the subprogram must have a delayed
2332 freeze even though the opertation is not a primitive of the
2333 type. THis ensures that the backend can recover the full view
2334 when elaborating the subprogram declaration.
2336 2015-05-12 Ed Schonberg <schonberg@adacore.com>
2338 * exp_util.adb (Get_Current_Value_Condition): Nothing to be
2339 done if an elsif part has been rewritten so that it is not part
2340 of an enclosing if_statement.
2342 2015-05-12 Robert Dewar <dewar@adacore.com>
2344 * sem_type.adb, sem_ch10.adb, freeze.adb, sem_ch6.adb, exp_disp.adb:
2347 2015-05-12 Bob Duff <duff@adacore.com>
2349 * exp_attr.adb (Size): Remove unnecessary check for types with
2350 unknown discriminants. That was causing the compiler to build
2351 a function call _size(T), where T is a type, not an object.
2353 2015-05-12 Ed Schonberg <schonberg@adacore.com>
2355 * sem_ch4.adb (Extended_Primitive_Ops): Exclude overriding
2356 primitive operations of a type extension declared in the package
2357 body, to prevent duplicates in extended list.
2359 2015-05-12 Ed Schonberg <schonberg@adacore.com>
2361 * sem_ch3.adb (Analyze_Component_Declaration): If the component is
2362 an unconstrained synchronized type with discriminants, create a
2363 constrained default subtype for it, so that the enclosing record
2364 can be given the proper size.
2365 * sem_util.adb (Build_Default_Subtype): If the subtype is created
2366 for a record discriminant, do not analyze the declarztion at
2367 once because it is added to the freezing actions of the enclosing
2370 2015-05-12 Robert Dewar <dewar@adacore.com>
2372 * exp_prag.adb (Expand_N_Pragma): Rewrite ignored pragma as
2374 * namet.ads (Boolean3): Document this flag used for Ignore_Pragma.
2375 * par-prag.adb (Prag): Implement Ignore_Pragma.
2376 * sem_prag.adb: Implement Ignore_Pragma.
2377 * snames.ads-tmpl: Add entries for pragma Ignore_Pragma.
2379 2015-05-12 Javier Miranda <miranda@adacore.com>
2381 * sem_ch10.adb (Build_Shadow_Entity): Link the class-wide shadow
2382 entity with its corresponding real entity.
2383 (Decorate_Type): Unconditionally build the class-wide shadow entity of
2385 * einfo.ads, einfo.adb (Has_Non_Limited_View): New synthesized
2387 (Non_Limited_View): Moved from field 17 to field 19 be available
2388 in class-wide entities.
2389 * exp_attr.adb (Access_Cases): Code cleanup.
2390 * exp_disp.adb (Expand_Interface_Actuals): Ditto.
2391 * exp_util.adb (Non_Limited_Designated_Type): Ditto.
2392 * freeze.adb (Build_Renamed_Bdody): Ditto.
2393 * sem_aux.adb (Available_View): Ditto.
2394 * sem_ch4.adb (Analyze_Selected_Component): Ditto.
2395 (Try_One_Prefix_Interpretation): Ditto.
2396 * sem_ch5.adb (Analyze_Assignment): Ditto.
2397 * sem_ch6.adb (Detect_And_Exchange): Ditto.
2398 * sem_ch8.adb (Find_Expanded_Name): Ditto.
2399 * sem_disp.adb (Check_Controlling_Type): Ditto.
2400 * sem_res.adb (Resolve_Type_Conversion): Ditto.
2401 (Full_Designated_Type): Ditto.
2402 * sem_type.adb (Covers): Ditto.
2403 * sem_util.adb: Fix typo in comment.
2405 2015-05-12 Robert Dewar <dewar@adacore.com>
2407 * exp_unst.adb (Get_Real_Subp): New subprogram.
2408 (Unnest_Subprogram): Use Get_Real_Subp.
2409 (Uplev_Refs_For_One_Subp): Skip if no ARECnU entity.
2410 (Uplev_Refs_For_One_Subp): Use actual subtype in unconstrained case.
2412 2015-05-12 Robert Dewar <dewar@adacore.com>
2414 * a-reatim.adb ("/"): Add explicit check for Time_Span_First / -1.
2416 2015-05-12 Ed Schonberg <schonberg@adacore.com>
2418 * sem_ch4.adb (Extended_Primitive_Ops): New subprogram,
2419 auxiliary to Try_Primitive_Operation to handle properly prefixed
2420 calls where the operation is not a primitive of the type, but
2421 is declared in the package body that is in the immediate scope
2424 2015-05-12 Robert Dewar <dewar@adacore.com>
2426 * sem_util.adb (Is_Variable): Allow X'Deref(Y) as a variable.
2428 2015-05-12 Ed Schonberg <schonberg@adacore.com>
2430 * sem_ch8.adb (Find_Expanded_Name): Handle properly a fully
2431 qualified name for an instance of a generic grand-child unit in
2432 the body its parent.
2434 2015-05-12 Robert Dewar <dewar@adacore.com>
2436 * exp_unst.adb (Upref_Name): New subprogram.
2437 (Unnest_Subprogram): Use Upref_Name.
2438 (Unnest_Subprogram): Use new Deref attribute.
2439 * exp_unst.ads: Doc updates.
2441 2015-05-12 Thomas Quinot <quinot@adacore.com>
2443 * adaint.c: Enable Large File Support in adaint so that __gnat_readdir
2444 can access files on filesystems mounted from servers that use large
2447 2015-05-09 Eric Botcazou <ebotcazou@adacore.com>
2449 * gcc-interface/utils.c (gnat_write_global_declarations): Use type_decl
2450 method instead of global_decl for TYPE_DECLs.
2452 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
2454 * gcc-interface/Makefile-lan.in (ada.mostlyclean): Remove gnatbind
2457 2015-04-13 Eric Botcazou <ebotcazou@adacore.com>
2459 * gnatvsn.ads (Library_Version): Bump to 6.
2461 2015-04-09 Iain Sandoe <iain@codesourcery.com>
2463 * gcc-interface/Makefile.in (darwin, powerpc): Enable atomics.
2465 2015-04-08 Eric Botcazou <ebotcazou@adacore.com>
2467 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Do not make
2468 a function returning an unconstrained type 'const' for the middle-end.
2470 * gcc-interface/trans.c (Pragma_to_gnu) <case Pragma_Warning>: Use
2471 exact condition to detect Reason => "..." pattern.
2473 2015-03-31 Tom de Vries <tom@codesourcery.com>
2476 * terminals.c (child_setup_tty): Fix warning 'argument to sizeof in
2477 bzero call is the same expression as the destination'.
2479 2015-03-26 Eric Botcazou <ebotcazou@adacore.com>
2481 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Deref>: New case.
2483 2015-03-24 Gary Dismukes <dismukes@adacore.com>
2485 * sem_ch3.adb: Minor typo fix (missing paren).
2487 2015-03-24 Robert Dewar <dewar@adacore.com>
2489 * sinfo.ads: Update comment.
2491 2015-03-24 Robert Dewar <dewar@adacore.com>
2493 * exp_attr.adb: Add entry for typ'Deref.
2494 * sem_attr.adb (Deref): New GNAT attribute.
2495 * sem_attr.ads: Add entry for new GNAT attribute Deref.
2496 * snames.ads-tmpl: Add entries for new attribute Deref.
2498 2015-03-24 Ed Schonberg <schonberg@adacore.com>
2500 * sem_ch13.adb (Rep_Item_Too_Early): allow pragma Convention
2503 2015-03-24 Gary Dismukes <dismukes@adacore.com>
2505 * inline.adb: Minor typo fix.
2507 2015-03-24 Arnaud Charlet <charlet@adacore.com>
2509 * doc/gnat_ugn/building_executable_programs_with_gnat.rst,
2510 doc/gnat_ugn/gnat_utility_programs.rst
2511 doc/gnat_rm/implementation_defined_attributes.rst
2512 doc/gnat_rm/implementation_defined_pragmas.rst
2513 doc/gnat_rm/representation_clauses_and_pragmas.rst
2514 doc/gnat_rm/about_this_guide.rst
2515 doc/gnat_rm/implementation_of_ada_2012_features.rst: Doc improvements.
2516 * gnat_rm.texi, gnat_ugn.texi: Regenerate.
2518 2015-03-23 Jakub Jelinek <jakub@redhat.com>
2521 * adadecode.c (ada_demangle): Guard with IN_RTS instead of IN_GCC.
2523 2015-03-20 Eric Botcazou <ebotcazou@adacore.com>
2526 * gcc-interface/utils.c (gnat_pushdecl): Tidy up and improve comment.
2527 Make sure to chain only main variants through TYPE_NEXT_PTR_TO.
2529 * gcc-interface/trans.c (Attribute_to_gnu): Revert latest change.
2531 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
2533 * gcc-interface/utils2.c (gnat_invariant_expr): Return null if the type
2534 of the expression ends up being composite.
2536 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
2538 * gcc-interface/decl.c (is_from_limited_with_of_main): New predicate.
2539 (gnat_to_gnu_entity) <E_Subprogram_Type>: Invoke it on return and
2540 parameter types to detect circularities in ASIS mode.
2541 * gcc-interface/trans.c (Attribute_to_gnu): Mention AI05-0151.
2543 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
2545 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Abstract_State>: Do not
2546 short-circuit the regular handling.
2548 2015-03-13 Robert Dewar <dewar@adacore.com>
2550 * exp_unst.adb (Note_Uplevel_Reference): Eliminate duplicate
2552 (Actual_Ref): New function.
2553 (AREC_String): Minor reformatting.
2554 (Unnest_Subprogram): Use Actual_Ref.
2555 * frontend.adb (Frontend): Turn off Unnest_Subprogram_Mode
2556 before call to Instantiate_Bodies.
2558 2015-03-13 Ed Schonberg <schonberg@adacore.com>
2560 * freeze.adb (Freeze_Profile): If the return type of a function
2561 being frozen is an untagged limited view and the function is
2562 abstract, mark the type as frozen because there is no later
2563 point at which the profile of the subprogram will be elaborated.
2565 2015-03-13 Robert Dewar <dewar@adacore.com>
2567 * einfo.adb, einfo.ads, atree.adb, atree.ads, atree.h: Add seventh
2568 component to entities. Add new fields Field36-41 and Node36-41.
2570 2015-03-13 Claire Dross <dross@adacore.com>
2572 * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Rewrite after review.
2574 2015-03-13 Robert Dewar <dewar@adacore.com>
2576 * exp_util.adb (Is_Volatile_Reference): Compile time known
2577 value is never considered to be a volatile reference.
2579 2015-03-13 Robert Dewar <dewar@adacore.com>
2581 * sem_ch3.adb (Analyze_Object_Contract): Suppress "constant
2582 cannot be volatile" for internally generated object (such as
2583 FIRST and LAST constants).
2585 2015-03-13 Ed Schonberg <schonberg@adacore.com>
2587 * sem_ch12.adb (Validate_Access_Subprogram_Instance): If a
2588 convention is specified for the formal parameter, verify that
2589 the actual has the same convention.
2590 * sem_prag.adb (Set_Convention_From_Pragma): Allow convention
2591 pragma to be set on a generic formal type.
2592 * sem_util.adb (Set_Convention): Ignore within an instance,
2593 as it has already been verified in the generic unit.
2595 2015-03-13 Claire Dross <dross@adacore.com>
2597 * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Do not inline
2598 subprograms with unconstrained record parameters containing
2600 * sinfo.ads Document GNATprove assumption that type should match
2602 * sem_ch6.adb (Analyze_Subprogram_Body_Contract):
2603 Do not check for Refined_Depends and Refined_Globals contracts
2604 as they are optional.
2606 2015-03-13 Ed Schonberg <schonberg@adacore.com>
2608 * sem_ch12.adb (Instantiate_Type): For a floating-point type,
2609 capture dimension info if any, because the generated subtype
2610 declaration does not come from source and will not process dimensions.
2611 * sem_dim,adb (Analyze_Dimension_Extension_Or_Record_Aggregate):
2612 Do not analyze expressions with an initialization procedure
2613 because aggregates will have been checked at the point of record
2616 2015-03-13 Robert Dewar <dewar@adacore.com>
2618 * aspects.ads, aspects.adb: Add entries for aspect Unimplemented.
2619 * einfo.ads, einfo.adb (Is_Unimplemented): New flag.
2620 * sem_ch13.adb: Add dummy entry for aspect Unimplemented.
2621 * snames.ads-tmpl: Add entry for Name_Unimplemented.
2623 2015-03-13 Gary Dismukes <dismukes@adacore.com>
2625 * style.adb (Missing_Overriding): Apply the
2626 Comes_From_Source test to the Original_Node of the subprogram
2627 node, to handle the case of a null procedure declaration that
2628 has been rewritten as an empty procedure body.
2630 2015-03-13 Robert Dewar <dewar@adacore.com>
2632 * exp_util.ads: Minor fix to comment.
2633 * sem_ch3.adb (Constrain_Index): Correct pasto from previous
2636 2015-03-13 Robert Dewar <dewar@adacore.com>
2638 * exp_util.ads, exp_util.adb (Force_Evaluation): Add Related_Id and
2639 Is_Low/High_Bound params.
2640 * sem_ch3.adb (Constrain_Index): Use new Force_Evaluation calling
2641 sequence to simplify generation of FIRST/LAST temps for bounds.
2643 2015-03-12 Olivier Hainque <hainque@adacore.com>
2645 * gcc-interface/trans.c (Attribute_to_gnu) <Code_Address case>:
2646 On targets where a function symbol designates a function descriptor,
2647 fetch the function code address from the descriptor.
2648 (USE_RUNTIME_DESCRIPTORS): Provide a default definition.
2650 2015-03-04 Robert Dewar <dewar@adacore.com>
2652 * sem_warn.adb: Minor reformatting.
2653 * init.c: Minor tweaks.
2655 2015-03-04 Dmitriy Anisimko <anisimko@adacore.com>
2657 * a-coinho-shared.adb: Fix clear of already empty holder.
2659 2015-03-04 Robert Dewar <dewar@adacore.com>
2661 * exp_unst.adb (Check_Dynamic_Type): Ignore library level types.
2662 (Check_Uplevel_Reference_To_Type): Ignore call inside generic.
2663 (Note_Uplevel_Reference): Ignore call inside generic.
2664 (Note_Uplevel_Reference): Fix check for no entity field.
2665 (Unnest_Subprogram): Ignore call inside generic.
2666 (Find_Current_Subprogram): Use Defining_Entity, not Defining_Unit_Name.
2667 (Visit_Node): Ignore calls to Imported subprograms.
2668 (Visit_Node): Fix problem in finding subprogram body in some cases.
2669 (Add_Form_To_Spec): Use Defining_Entity, not Defining_Unit_Name.
2671 2015-03-04 Robert Dewar <dewar@adacore.com>
2673 * einfo.adb (Is_ARECnF_Entity): Removed.
2674 (Last_Formal): Remove special handling of Is_ARECnF_Entity.
2675 (Next_Formal): Remove special handling of Is_ARECnF_Entity.
2676 (Next_Formal_With_Extras): Remove special handling of Is_ARECnF_Entity.
2677 (Number_Entries): Minor reformatting.
2678 * einfo.ads (Is_ARECnF_Entity): Removed.
2679 * exp_unst.adb (Unnest_Subprogram): Remove setting of
2681 (Add_Extra_Formal): Use normal Extra_Formal circuit.
2682 * sprint.adb (Write_Param_Specs): Properly handle case where
2683 there are no source formals, but we have at least one Extra_Formal
2686 2015-03-04 Ed Schonberg <schonberg@adacore.com>
2688 * sem_aggr.adb (Resolve_Record_Aggregate,
2689 Add_Discriminant_Values): If the value is a reference to the
2690 current instance of an enclosing type, use its base type to check
2691 against prefix of attribute reference, because the target type
2692 may be otherwise constrained.
2694 2015-03-04 Robert Dewar <dewar@adacore.com>
2696 * atree.h: Add entries for Flag287-Flag309.
2697 * einfo.adb: Add (unused) flags Flag287-Flag309.
2699 2015-03-04 Ed Schonberg <schonberg@adacore.com>
2701 * sem_util.adb (Collect_Interfaces, Collect): When gathering
2702 interfaces of ancestors, handle properly a subtype of a private
2705 2015-03-04 Robert Dewar <dewar@adacore.com>
2707 * einfo.adb (Is_ARECnF_Entity): New flag (ARECnF is an extra formal).
2708 (Next_Formal): Don't return ARECnF formal.
2709 (Last_Formal): Don't consider ARECnF formal.
2710 (Next_Formal_With_Extras): Do consider ARECnF formal.
2711 * einfo.ads (Is_ARECnF_Entity): New flag (ARECnF is an extra formal).
2712 * exp_unst.adb (Create_Entities): Set Is_ARECnF_Entity flag.
2714 2015-03-04 Javier Miranda <miranda@adacore.com>
2716 * exp_ch6.adb (Expand_Simple_Function_Return): When the returned
2717 object is a class-wide interface object and we generate the
2718 accessibility described in RM 6.5(8/3) then displace the pointer
2719 to the object to reference the base of the object (to get access
2720 to the TSD of the object).
2722 2015-03-04 Hristian Kirtchev <kirtchev@adacore.com>
2724 * sem_prag.adb (Analyze_Abstract_State): Use routine
2725 Malformed_State_Error to issue general errors.
2726 (Analyze_Pragma): Diagnose a syntax error related to a state
2727 declaration with a simple option.
2728 (Malformed_State_Error): New routine.
2730 2015-03-04 Robert Dewar <dewar@adacore.com>
2732 * a-strsup.adb (Super_Slice): Deal with super flat case.
2733 * einfo.ads: Minor reformatting.
2734 * s-imgdec.adb (Set_Decimal_Digits): Add comment about possibly
2737 2015-03-04 Claire Dross <dross@adacore.com>
2739 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
2740 a-cforse.ads, a-cofove.ads: Use Default_Initial_Condition on formal
2743 2015-03-04 Ed Schonberg <schonberg@adacore.com>
2745 * sem_warn.adb (Check_References): When checking for an unused
2746 in-out parameter of a class- wide type, use its type to determine
2747 whether it is private, in order to avoid a spurious warning when
2748 subprogram spec and body are in different units.
2750 2015-03-04 Yannick Moy <moy@adacore.com>
2752 * sem_attr.adb: Improve warning messages.
2754 2015-03-04 Robert Dewar <dewar@adacore.com>
2756 * exp_ch6.adb (Expand_N_Subprogram_Body): Avoid trying to unnest
2757 generic subprograms.
2758 * exp_unst.adb (Check_Dynamic_Type): Handle record types properly
2759 (Note_Uplevel_Reference): Ignore uplevel references to non-types
2760 (Get_Level): Consider only subprograms, not blocks.
2761 (Visit_Node): Set proper condition for generating ARECnF entity.
2762 Ignore indirect calls. Ignore calls to subprograms
2764 (Unnest_Subprogram): Minor changes in dealing with ARECnF entity.
2765 (Add_Form_To_Spec): Properly set Last_Entity field.
2766 (Unnest_Subprogram): Set current subprogram scope for analyze calls.
2767 Handle case of no uplevel refs in outer subprogram
2768 Don't mark uplevel entities as aliased.
2769 Don't deal with calls with no ARECnF requirement.
2771 2015-03-04 Robert Dewar <dewar@adacore.com>
2773 * s-valrea.adb (Scan_Real): Remove redundant tests from scaling loops.
2774 * s-imgdec.adb (Set_Decimal_Digits): Remove redundant Max
2775 operation in computing LZ.
2776 * sem_attr.adb: Minor typo fix
2778 2015-03-04 Robert Dewar <dewar@adacore.com>
2780 * exp_ch7.adb: Minor reformatting.
2781 * exp_unst.adb (Build_Tables): Fix minor glitch for no separate
2783 * erroutc.adb (Delete_Msg): add missing decrement of info msg counter.
2785 2015-03-04 Hristian Kirtchev <kirtchev@adacore.com>
2787 * exp_ch6.adb (Build_Pragma_Check_Equivalent): Suppress
2788 references to formal parameters subject to pragma Unreferenced.
2789 (Suppress_Reference): New routine.
2790 * sem_attr.adb (Analyze_Attribute): Reimplement the analysis
2791 of attribute 'Old. Attributes 'Old and 'Result now share
2793 (Analyze_Old_Result_Attribute): New routine.
2794 (Check_Placement_In_Check): Removed.
2795 (Check_Placement_In_Contract_Cases): Removed.
2796 (Check_Placement_In_Test_Case): Removed.
2797 (Check_Use_In_Contract_Cases): Removed.
2798 (Check_Use_In_Test_Case): Removed.
2799 (In_Refined_Post): Removed.
2800 (Is_Within): Removed.
2801 * sem_warn.adb (Check_Low_Bound_Tested): Code cleanup.
2802 (Check_Low_Bound_Tested_For): New routine.
2804 2015-03-04 Hristian Kirtchev <kirtchev@adacore.com>
2806 * exp_ch3.adb (Expand_N_Object_Declaration):
2807 Generate a runtime check to test the expression of pragma
2808 Default_Initial_Condition when the object is default initialized.
2810 2015-03-02 Robert Dewar <dewar@adacore.com>
2812 * scng.adb (Scan): Ignore illegal character in relaxed
2815 2015-03-02 Ed Schonberg <schonberg@adacore.com>
2817 * sem_ch4.adb (Analyze_Set_Membership); Retain Overloaded flag
2818 on left operand, so it can be properly resolved with type of
2819 alternatives of right operand.
2820 * sem_res.adb (Resolve_Set_Membership): Handle properly an
2821 overloaded left-hand side when the alternatives on the right
2822 hand side are literals of some universal type. Use first
2823 non-overloaded alternative to find expected type.
2825 2015-03-02 Ed Schonberg <schonberg@adacore.com>
2827 * exp_ch7.adb (Make_Set_Finalize_Address_Call): Use underlying
2828 type to retrieve designated type, because the purported access
2829 type may be a partial (private) view, when it is declared in
2830 the private part of a nested package, and finalization actions
2831 are generated when completing compilation of enclosing unit.
2833 2015-03-02 Robert Dewar <dewar@adacore.com>
2835 * back_end.adb (Call_Back_End): Remove previous patch,
2836 the back end now gets to see the result of -gnatd.1
2837 (Unnest_Subprogram_Mode) processing.
2838 * elists.ads, elists.adb (List_Length): New function.
2839 * exp_unst.ads, exp_unst.adb: Major changes, first complete version.
2840 * sem_util.adb (Check_Nested_Access): Handle formals in
2841 Unnest_Subprogram_Mode.
2842 (Adjust_Named_Associations): Minor reformatting.
2843 * sprint.adb (Sprint_Node_Actual): Fix failure to print aliased
2846 2015-03-02 Robert Dewar <dewar@adacore.com>
2848 * atree.ads, atree.adb (Uint24): New function
2849 (Set_Uint24): New procedure.
2850 * atree.h (Uint24): New macro for field access.
2851 * back_end.adb (Call_Back_End): For now, don't call back end
2852 if unnesting subprogs.
2853 * einfo.adb (Activation_Record_Component): New field
2854 (Subps_Index): New field.
2855 * einfo.ads (Activation_Record_Component): New field
2856 (Subps_Index): New field Minor reordering of comments into alpha order.
2857 * exp_unst.ads, exp_unst.adb: Continued development.
2859 2015-03-02 Gary Dismukes <dismukes@adacore.com>
2861 * exp_disp.ads: Minor reformatting.
2863 2015-03-02 Ed Schonberg <schonberg@adacore.com>
2865 * sem_ch8.adb (Chain_Use_Clause): Do not chain use clause from
2866 ancestor to list of use clauses active in descendant unit if we
2867 are within the private part of an intervening parent, to prevent
2868 circularities in use clause list.
2870 2015-03-02 Javier Miranda <miranda@adacore.com>
2872 * exp_ch9.adb (Build_Corresponding_Record): Propagate type
2873 invariants to the corresponding record type.
2874 * exp_disp.ad[sb] (Set_DT_Position_Value): New subprogram
2875 which sets the value of the DTC_Entity associated with a given
2876 primitive of a tagged type and propagates the value to the
2878 (Set_DTC_Entity_Value): Propagate the DTC
2879 value to the wrapped entity.
2880 * sem_ch13.adb (Build_Invariant_Procedure): Append the code
2881 associated with invariants of progenitors.
2882 * sem_ch3.adb (Build_Derived_Record_Type): Inherit type invariants
2883 of parents and progenitors.
2884 (Process_Full_View): Check hidden inheritance of class-wide type
2886 * sem_ch7.adb (Analyze_Package_Specification): Do not generate
2887 the invariant procedure for interface types; build the invariant
2888 procedure for tagged types inheriting invariants from their
2890 * sem_prag.adb (Pragma_Invariant) Allow invariants in interface
2891 types but do not build their invariant procedure since their
2892 invariants will be propagated to the invariant procedure of
2893 types covering the interface.
2894 * exp_ch6.adb, exp_disp.adb, sem_ch3.adb, sem_ch7.adb,
2895 sem_ch8.adb, sem_disp.adb: Replace all calls to Set_DT_Position
2896 by calls to Set_DT_Position_Value.
2898 2015-03-02 Hristian Kirtchev <kirtchev@adacore.com>
2900 * sem_attr.adb (Analyze_Attribute): Factor out heavily indented
2901 code in Denote_Same_Function. Do not analyze attribute 'Result
2902 when it is inside procedure _Postconditions. Remove a misplaced
2903 warning diagnostic. Code cleanup.
2904 (Denote_Same_Function): New routine.
2905 * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): Code
2906 cleanup. Warn on pre/postconditions on an inlined subprogram.
2907 (Analyze_Pragma, Refined_Post case): Warn on pre/postconditions on
2908 an inlined subprogram.
2909 (Analyze_Pre_Post_Condition_In_Decl_Part): Code cleanup. Warn on
2910 pre/post condition on an inlined subprogram.
2911 (Analyze_Test_Case_In_Decl_Part): Code cleanup. Warn on
2912 pre/postconditions on an inlined subprogram.
2913 (Check_Postcondition_Use_In_Inlined_Subprogram): New routine.
2915 2015-03-02 Hristian Kirtchev <kirtchev@adacore.com>
2917 * sem_prag.adb (Ensure_Aggregate_Form):
2918 Ensure that the name denoted by the Chars of a pragma argument
2919 association has the proper Sloc when converted into an aggregate.
2921 2015-03-02 Bob Duff <duff@adacore.com>
2923 * sem_ch6.adb (Check_Private_Overriding): Capture
2924 Incomplete_Or_Partial_View in a constant. This is cleaner and
2927 2015-03-02 Gary Dismukes <dismukes@adacore.com>
2929 * einfo.ads, exp_unst.ads: Minor reformatting.
2931 2015-03-02 Ed Schonberg <schonberg@adacore.com>
2933 * a-strsea.adb (Find_Token): Ensure that the range of iteration
2934 does not perform any improper character access. This prevents
2935 erroneous access in the unusual case of an empty string target
2936 and a From parameter less than Source'First.
2938 2015-03-02 Robert Dewar <dewar@adacore.com>
2940 * elists.adb (List_Length): Fix incorrect result.
2942 2015-03-02 Bob Duff <duff@adacore.com>
2944 * sem_ch6.adb (Check_Private_Overriding): Refine the legality
2945 checks here. It used to check that the function is merely
2946 overriding SOMEthing. Now it checks that the function is
2947 overriding a corresponding public operation. This is a correction
2948 to the implementation of the rule in RM-3.9.3(10).
2950 2015-03-02 Robert Dewar <dewar@adacore.com>
2952 * debug.adb: Document new debug flag -gnatd.1.
2953 * einfo.ads, einfo.adb (Has_Nested_Subprogram): New flag.
2954 (Has_Uplevel_Reference): New flag (Is_Static_Type): New flag.
2955 (Uplevel_Reference_Noted):New flag (Uplevel_References): New field.
2956 * elists.ads elists.adb (List_Length): New function.
2957 * exp_ch6.adb (Expand_N_Subprogram_Body): Call Unnest_Subprogram
2958 when appropriate (Process_Preconditions): Minor code
2959 reorganization and reformatting
2960 * exp_unst.ads, exp_unst.adb: New files.
2961 * gnat1drv.adb (Adjust_Global_Switches): Set
2962 Unnest_Subprogram_Mode if -gnatd.1
2963 * namet.ads, namet.adb (Name_Find_Str): New version of Name_Find with
2965 * opt.ads (Unnest_Subprogram_Mode): New flag.
2966 * par-ch3.adb (P_Identifier_Declarations): Fixes to -gnatd.2 handling.
2967 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set
2968 Has_Nested_Subprogram flag.
2969 * sem_ch8.adb (Find_Direct_Name): New calling sequence for
2970 Check_Nested_Access.
2971 (Find_Selected_Component): Minor comment addition.
2972 * sem_util.adb (Check_Nested_Access): New version for use with Exp_Unst.
2973 (Note_Possible_Modification): New calling sequence for
2974 Check_Nested_Access.
2975 * sem_util.ads (Check_Nested_Access): New version for use with Exp_Unst.
2976 * gcc-interface/Make-lang.in (GNAT1_OBJS): Add exp_unst.o
2978 2015-03-02 Pierre-Marie de Rodat <derodat@adacore.com>
2980 * gcc-interface/utils.c (gnat_pushdecl): For non-artificial pointer
2981 types, preserve the original type and create copies just like the C
2982 front-end does. For artificial ones, do not define a name for
2984 (create_type_decl): When gnat_pushdecl made the input type the
2985 original type for the new declaration, do not define a stub
2987 * gcc-interface/utils2.c (build_binary_op): Accept two different
2988 pointer types when they point to the same type.
2990 2015-03-02 Hristian Kirtchev <kirtchev@adacore.com>
2992 * exp_util.adb (Possible_Bit_Aligned_Component): Do not process
2994 * sem_util.adb (Kill_Current_Values): Do not invalidate and
2997 2015-03-02 Robert Dewar <dewar@adacore.com>
2999 * sem_ch3.adb, exp_attr.adb, checks.adb, exp_aggr.adb: Minor
3002 2015-03-02 Ed Schonberg <schonberg@adacore.com>
3004 * sem_ch8.adb: extend use of Available_Subtype.
3006 2015-03-02 Hristian Kirtchev <kirtchev@adacore.com>
3008 * sem_prag.adb (Duplication_Error): Remove the special handling
3009 of 'Class or _Class in the context of pre/postconditions.
3010 (Process_Class_Wide_Condition): Remove the special handling of
3011 'Class or _Class in the context of pre/postconditions.
3012 * sem_util.adb (Original_Aspect_Pragma_Name): Names Pre_Class
3013 and Post_Class no longer need to be converted to _Pre and _Post.
3014 * sem_util.ads (Original_Aspect_Pragma_Name): Update the comment
3017 2015-03-02 Hristian Kirtchev <kirtchev@adacore.com>
3019 * exp_ch6.adb (Process_Preconditions): Modify the
3020 mechanism that find the first source declaration to correct exit
3021 the loop once it has been found.
3023 2015-03-02 Gary Dismukes <dismukes@adacore.com>
3025 * a-strsea.adb: Minor typo fix.
3027 2015-03-02 Bob Duff <duff@adacore.com>
3029 * einfo.ads: Minor comment fixes.
3031 2015-03-02 Gary Dismukes <dismukes@adacore.com>
3033 * einfo.adb, checks.adb: Minor reformatting and typo fixes.
3035 2015-03-02 Ed Schonberg <schonberg@adacore.com>
3037 * exp_aggr.adb (Get_Assoc_Expr): If the Default_Component_Value
3038 is defined for the array type, use it instead of a Default_Value
3039 specified for the component type itself.
3041 2015-03-02 Thomas Quinot <quinot@adacore.com>
3043 * exp_attr.adb (Expand_N_Attribute_Reference, case Input): When
3044 expanding a 'Input attribute reference for a class-wide type,
3045 do not generate a separate object declaration for the controlling
3046 tag dummy object; instead, generate the expression inline in the
3047 dispatching call. Otherwise, the declaration (which involves a
3048 call to String'Input, returning a dynamically sized value on the
3049 secondary stack) will be expanded outside of proper secondary
3050 stack mark/release operations, and will thus cause a secondary
3053 2015-03-02 Hristian Kirtchev <kirtchev@adacore.com>
3055 * checks.adb (Add_Validity_Check): Change the names of all
3056 formal parameters to better illustrate their purpose. Update
3057 the subprogram documentation. Update all occurrences of the
3058 formal parameters. Generate a pre/postcondition pragma by
3059 calling Build_Pre_Post_Condition.
3060 (Build_PPC_Pragma): Removed.
3061 (Build_Pre_Post_Condition): New routine.
3062 * einfo.adb Node8 is no longer used as Postcondition_Proc. Node14
3063 is now used as Postconditions_Proc. Flag240 is now renamed to
3064 Has_Expanded_Contract. (First_Formal): The routine can now
3065 operate on generic subprograms.
3066 (First_Formal_With_Extras): The routine can now operate on generic
3068 (Has_Expanded_Contract): New routine.
3069 (Has_Postconditions): Removed.
3070 (Postcondition_Proc): Removed.
3071 (Postconditions_Proc): New routine.
3072 (Set_Has_Expanded_Contract): New routine.
3073 (Set_Has_Postconditions): Removed.
3074 (Set_Postcondition_Proc): Removed.
3075 (Set_Postconditions_Proc): New routine.
3076 (Write_Entity_Flags): Remove the output of Has_Postconditions. Add
3077 the output of Has_Expanded_Contract.
3078 (Write_Field8_Name): Remove the output of Postcondition_Proc.
3079 (Write_Field14_Name): Add the output of Postconditions_Proc.
3080 * einfo.ads New attributes Has_Expanded_Contract and
3081 Postconditions_Proc along with occurrences in entities.
3082 Remove attributes Has_Postconditions and Postcondition_Proc
3083 along with occurrences in entities.
3084 (Has_Expanded_Contract): New routine along with pragma Inline.
3085 (Has_Postconditions): Removed along with pragma Inline.
3086 (Postcondition_Proc): Removed along with pragma Inline.
3087 (Postconditions_Proc): New routine along with pragma Inline.
3088 (Set_Has_Expanded_Contract): New routine along with pragma Inline.
3089 (Set_Has_Postconditions): Removed along with pragma Inline.
3090 (Set_Postcondition_Proc): Removed along with pragma Inline.
3091 (Set_Postconditions_Proc): New routine along with pragma Inline.
3092 * exp_ch6.adb (Add_Return): Code cleanup. Update the
3093 generation of the call to the _Postconditions routine of
3094 the procedure. (Expand_Non_Function_Return): Reformat the
3095 comment on usage. Code cleanup. Update the generation of
3096 the call to the _Postconditions routine of the procedure or
3098 (Expand_Simple_Function_Return): Update the
3099 generation of the _Postconditions routine of the function.
3100 (Expand_Subprogram_Contract): Reimplemented.
3101 * exp_ch6.ads (Expand_Subprogram_Contract): Update the parameter
3102 profile along the comment on usage.
3103 * exp_ch9.adb (Build_PPC_Wrapper): Code cleanup.
3104 (Expand_N_Task_Type_Declaration): Generate pre/postconditions
3105 wrapper when the entry [family] has a contract with
3107 * exp_prag.adb (Expand_Attributes_In_Consequence): New routine.
3108 (Expand_Contract_Cases): This routine and its subsidiaries now
3109 analyze all generated code.
3110 (Expand_Old_In_Consequence): Removed.
3111 * sem_attr.adb Add with and use clause for Sem_Prag.
3112 (Analyze_Attribute): Reimplment the analysis of attribute 'Result.
3113 (Check_Use_In_Test_Case): Use routine Test_Case_Arg to obtain
3115 * sem_ch3.adb (Analyze_Declarations): Analyze the contract of
3116 a generic subprogram.
3117 (Analyze_Object_Declaration): Do not create a contract node.
3118 (Derive_Subprogram): Do not create a contract node.
3119 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Do
3120 not create a contract node.
3121 (Analyze_Completion_Contract): New routine.
3122 (Analyze_Function_Return): Alphabetize.
3123 (Analyze_Generic_Subprogram_Body): Alphabetize. Do not create a
3124 contract node. Do not copy pre/postconditions to the original
3126 (Analyze_Null_Procedure): Do not create a contract node.
3127 (Analyze_Subprogram_Body_Contract): Reimplemented.
3128 (Analyze_Subprogram_Body_Helper): Do not mark the enclosing scope
3129 as having postconditions. Do not create a contract node. Analyze
3130 the subprogram body contract of a body that acts as a compilation
3131 unit. Expand the subprogram contract after the declarations have
3133 (Analyze_Subprogram_Contract): Reimplemented.
3134 (Analyze_Subprogram_Specification): Do not create a contract node.
3135 (List_Inherited_Pre_Post_Aspects): Code cleanup.
3136 * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Update the
3138 (Analyze_Subprogram_Contract): Update the
3139 parameter profile and the comment on usage.
3140 * sem_ch7.adb (Analyze_Package_Body_Helper): Do not create a
3142 (Analyze_Package_Declaration): Do not create a
3144 (Is_Subp_Or_Const_Ref): Ensure that the prefix has an entity.
3145 * sem_ch8.adb (Analyze_Subprogram_Renaming): Do not create a
3147 * sem_ch9.adb (Analyze_Entry_Declaration): Do not create a
3149 * sem_ch10.adb (Analyze_Compilation_Unit): Move local variables to
3150 their proper section and alphabetize them. Analyze the contract of
3151 a [generic] subprogram after all Pragmas_After have been analyzed.
3152 (Analyze_Subprogram_Body_Stub_Contract): Alphabetize.
3153 * sem_ch12.adb (Analyze_Generic_Package_Declaration): Do not
3154 create a contract node.
3155 (Analyze_Generic_Subprogram_Declaration):
3156 Alphabetize local variables. Do not create a contract
3157 node. Do not generate aspects out of pragmas for ASIS.
3158 (Analyze_Subprogram_Instantiation): Instantiate
3159 the contract of the subprogram. Do not create a
3160 contract node. (Instantiate_Contract): New routine.
3161 (Instantiate_Subprogram_Body): Alphabetize local variables.
3162 (Save_Global_References_In_Aspects): New routine.
3163 (Save_References): Do not save the global references found within
3164 the aspects of a generic subprogram.
3165 * sem_ch12.ads (Save_Global_References_In_Aspects): New routine.
3166 * sem_ch13.adb (Analyze_Aspect_Specifications): Do not use
3167 Original_Node for establishing linkages.
3168 (Insert_Pragma): Insertion in a subprogram body takes precedence over
3169 the case where the subprogram body is also a compilation unit.
3170 * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): Use
3171 Get_Argument to obtain the proper expression. Install the generic
3172 formals when the related context is a generic subprogram.
3173 (Analyze_Depends_In_Decl_Part): Use Get_Argument to obtain
3174 the proper expression. Use Corresponding_Spec_Of to obtain
3175 the spec. Install the generic formal when the related context
3176 is a generic subprogram.
3177 (Analyze_Global_In_Decl_Part): Use Get_Argument to obtain the proper
3178 expression. Use Corresponding_Spec_Of to obtain the spec. Install the
3179 generic formal when the related context is a generic subprogram.
3180 (Analyze_Initial_Condition_In_Decl_Part): Use Get_Argument
3181 to obtain the proper expression. Remove the call to
3182 Check_SPARK_Aspect_For_ASIS as the analysis is now done
3184 (Analyze_Pragma): Update all occurrences
3185 to Original_Aspect_Name. Pragmas Contract_Cases, Depends,
3186 Extensions_Visible, Global, Postcondition, Precondition and
3187 Test_Case now carry generic templates when the related context
3188 is a generic subprogram. The same pragmas are no longer
3189 forcefully fully analyzed when the context is a subprogram
3190 that acts as a compilation unit. Pragmas Abstract_State,
3191 Initial_Condition, Initializes and Refined_State have been clean
3192 up. Pragmas Post, Post_Class, Postcondition, Pre, Pre_Class
3193 and Precondition now use the same routine for analysis. Pragma
3194 Refined_Post does not need to check the use of 'Result or
3195 the lack of a post-state in its expression. Reimplement the
3196 analysis of pragma Test_Case.
3197 (Analyze_Pre_Post_Condition): New routine.
3198 (Analyze_Pre_Post_Condition_In_Decl_Part):
3200 (Analyze_Refined_Depends_In_Decl_Part): Use Get_Argument to obtain the
3202 (Analyze_Refined_Global_In_Decl_Part): Use Get_Argument to obtain
3203 the proper expression.
3204 (Analyze_Test_Case_In_Decl_Part): Reimplemented.
3205 (Check_Pre_Post): Removed.
3206 (Check_Precondition_Postcondition): Removed.
3207 (Check_SPARK_Aspect_For_ASIS): Removed.
3208 (Check_Test_Case): Removed.
3209 (Collect_Subprogram_Inputs_Outputs): Use Get_Argument
3210 to obtain the proper expression. Use Corresponding_Spec_Of to
3211 find the proper spec.
3212 (Create_Generic_Template): New routine.
3213 (Duplication_Error): New routine.
3214 (Expression_Function_Error): New routine.
3215 (Find_Related_Subprogram_Or_Body): Moved to the spec
3216 of Sem_Prag. Emit precise error messages. Account for cases of
3217 rewritten expression functions, generic instantiations, handled
3218 sequence of statements and pragmas from aspects.
3219 (Get_Argument): New routine.
3220 (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Removed.
3221 (Preanalyze_CTC_Args): Removed.
3222 (Process_Class_Wide_Condition): New routine.
3223 * sem_prag.ads (Analyze_Test_Case_In_Decl_Part): Update
3224 the parameter profile along with the comment on usage.
3225 (Find_Related_Subprogram_Or_Body): Moved from the body of Sem_Prag.
3226 (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Removed.
3227 (Test_Case_Arg): New routine.
3228 * sem_util.adb Add with and use clauses for Sem_Ch6.
3229 (Add_Contract_Item): This routine now creates a contract
3230 node the first time an item is added. Remove the duplicate
3231 aspect/pragma checks.
3232 (Check_Result_And_Post_State): Reimplemented.
3233 (Corresponding_Spec_Of): New routine.
3234 (Get_Ensures_From_CTC_Pragma): Removed.
3235 (Get_Requires_From_CTC_Pragma): Removed.
3236 (Has_Significant_Contract): New routine.
3237 (Inherit_Subprogram_Contract): Inherit only if the source
3239 (Install_Generic_Formals): New routine.
3240 (Original_Aspect_Name): Removed.
3241 (Original_Aspect_Pragma_Name): New routine.
3242 * sem_util.ads (Check_Result_And_Post_State): Reimplemented.
3243 (Corresponding_Spec_Of): New routine.
3244 (Get_Ensures_From_CTC_Pragma): Removed.
3245 (Get_Requires_From_CTC_Pragma): Removed.
3246 (Has_Significant_Contract): New routine.
3247 (Install_Generic_Formals): New routine.
3248 (Original_Aspect_Name): Removed.
3249 (Original_Aspect_Pragma_Name): New routine.
3250 * sem_warn.adb Add with and use clauses for Sem_Prag.
3251 (Within_Postcondition): Use Test_Case_Arg to extract "Ensures".
3253 2015-03-02 Ed Schonberg <schonberg@adacore.com>
3255 * sem_ch8.adb (Available_Subtype): Optimization in
3256 Find_Selected_Component: when safe, use existing subtype of
3257 array component, possibly discriminant-dependent, rather than
3258 creating new subtype declaration for it. In this fashion different
3259 occurrences of the component have the same subtype, rather than
3260 just equivalent ones. Simplifies value tracing in GNATProve.
3262 2015-03-01 Arnaud Charlet <charlet@adacore.com>
3266 * doc/gnat_ugn/gnat_project_manager.rst,
3267 doc/gnat_ugn/platform_specific_information.rst: Remove reference to
3268 image, too troublesome with texi format.
3269 * gnat_ugn.texi: Regenerate.
3271 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
3274 * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8): Remove.
3275 (DEF_FUNCTION_TYPE_VAR_12): Likewise.
3276 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
3278 2015-02-23 Thomas Schwinge <thomas@codesourcery.com>
3280 * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8): Fix number of
3281 arguments parameter.
3282 (DEF_FUNCTION_TYPE_VAR_12): Likewise.
3284 2015-02-22 Arnaud Charlet <charlet@adacore.com>
3286 * doc/Makefile: postprocess texinfo files to update @dircategory
3287 and update texi files under gcc/ada.
3288 * gnat_ugn.texi, gnat_rm.texi: Regenerated.
3290 2015-02-22 Arnaud Charlet <charlet@adacore.com>
3292 * doc/gnat_ugn/project-manager-figure.png,
3293 doc/gnat_ugn/rtlibrary-structure.png: New.
3295 2015-02-22 Tom de Vries <tom@codesourcery.com>
3298 * gnat-style.texi (@subsection Loop Statements): Replace @noindent by
3299 @item, and fix warning '@itemize has text but no @item'.
3301 2015-02-20 Ed Schonberg <schonberg@adacore.com>
3303 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Pragma
3304 legally applies to an abstract subprogram declaration.
3305 * freeze.adb: Minor comment addition.
3307 2015-02-20 Robert Dewar <dewar@adacore.com>
3309 * errout.ads: Document replacement of Name_uPre/Post/Type_Invariant.
3310 * erroutc.adb (Set_Msg_Str): Replace _xxx.
3311 (Pre/Post/Type_Invariant) by xxx'Class.
3312 * erroutc.ads (Set_Msg_Str): Replace _xxx.
3313 (Pre/Post/Type_Invariant) by xxx'Class.
3314 * sem_prag.adb (Fix_Error): Remove special casing of
3315 Name_uType_Invariant.
3316 (Analyze_Pre_Post_Condition_In_Decl_Part): Remove special casing of
3317 Name_uPre and Name_uPost in aspect case (done in Errout now).
3319 2015-02-20 Robert Dewar <dewar@adacore.com>
3321 * g-alveop.adb: Minor style fixes.
3323 2015-02-20 Robert Dewar <dewar@adacore.com>
3325 * freeze.adb (Warn_Overlay): Guard against blow up with address
3328 2015-02-20 Bob Duff <duff@adacore.com>
3330 * exp_attr.adb (May_Be_External_Call): Remove this. There is no need
3331 for the compiler to guess whether the call is internal or external --
3332 it is always external.
3333 (Expand_Access_To_Protected_Op): For P'Access, where P
3334 is a protected subprogram, always create a pointer to the
3335 External_Subprogram.
3337 2015-02-20 Robert Dewar <dewar@adacore.com>
3339 * a-dispat.adb, a-stcoed.ads: Minor reformatting.
3341 2015-02-20 Robert Dewar <dewar@adacore.com>
3343 * sem_ch13.adb (Build_Discrete_Static_Predicate): Allow static
3344 predicate for non-static subtype.
3345 (Build_Predicate_Functions): Do not assume subtype associated with a
3346 static predicate must be static.
3348 2015-02-20 Robert Dewar <dewar@adacore.com>
3350 * errout.adb (Set_Msg_Node): Better handling of internal names
3351 (Set_Msg_Node): Kill message when we cannot eliminate internal name.
3352 * errout.ads: Document additional case of message deletion.
3353 * namet.adb (Is_Internal_Name): Refined to consider wide
3354 strings in brackets notation and character literals not to be
3356 * sem_ch8.adb (Find_Selected_Component): Give additional error
3357 when selector name is a subprogram whose first parameter has
3358 the same type as the prefix, but that type is untagged.
3360 2015-02-20 Robert Dewar <dewar@adacore.com>
3362 * g-allein.ads, g-alveop.adb, g-alveop.ads, opt.ads: Minor reformatting
3364 2015-02-20 Tristan Gingold <gingold@adacore.com>
3366 * opt.ads (GNAT_Mode_Config): New variable.
3367 * opt.adb (Set_Opt_Config_Switches): Consider GNAT_Mode_Config
3368 to set Assertions_Enabled.
3369 * switch-c.adb (Scan_Front_End_Switches): Set GNAT_Mode_Config
3372 2015-02-20 Robert Dewar <dewar@adacore.com>
3374 * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add an additional
3375 comment regarding the handling of unterminated fixed-point
3377 * s-valuns.ads (Scan_Raw_Unsigned): Add comments
3378 corresponding to those previously added for
3379 System.Val_LLU.Scan_Raw_Long_Long_Unsigned.
3381 2015-02-20 Olivier Hainque <hainque@adacore.com>
3383 * g-allein.ads, g-alveop.ads, g-alveop.adb: Code clean ups.
3385 2015-02-20 Robert Dewar <dewar@adacore.com>
3387 * sem_prag.adb: Minor comment clarification.
3389 2015-02-20 Olivier Hainque <hainque@adacore.com>
3391 * g-allein.ads (vec_ctf, vec_vcsfx, vec_vcfux): Remove.
3392 * g-alleve.ads, g-alleva.adb (vcfux): Likewise.
3393 * g-alveop.ads (vec_vcfsx, vec_vcfux): Just rename the ll versions.
3394 (vec_ctf): Now renamings as well.
3396 2015-02-20 Robert Dewar <dewar@adacore.com>
3398 * switch-c.adb, bindgen.adb: Minor reformatting.
3400 2015-02-20 Ed Schonberg <schonberg@adacore.com>
3402 * sem_prag.adb (Analyze_Pragma, case Type_Invariant):
3403 Invariant'class is allowed on an abstract type.
3405 2015-02-20 Ed Schonberg <schonberg@adacore.com>
3407 * sem_ch3.adb (Access_Definition): If the access definition is
3408 for a protected component and defines an access to protected
3409 subprogram, do not create an itype reference for it because a
3410 full type declaration will be built in order to generate the
3411 proper equivalent type.
3412 (Analyze_Subtype_Declaration): Add information of incomplete
3413 subtypes, for Ada 2012 extended uses of incomplete types.
3415 2015-02-20 Gary Dismukes <dismukes@adacore.com>
3417 * sem_res.adb: Minor reformatting.
3419 2015-02-20 Vincent Celier <celier@adacore.com>
3421 * switch-c.adb (Scan_Front_End_Switches): When comparing runtime
3422 path name for several switches --RTS, use the normalized path
3425 2015-02-20 Vincent Celier <celier@adacore.com>
3427 * bindgen.adb: Minor reformatting and code reorganization.
3429 2015-02-20 Jose Ruiz <ruiz@adacore.com>
3431 * a-stcoed.ads: Add spec for this package (Unimplemented_Unit).
3432 * impunit.adb (Non_Imp_File_Names_12): Mark unit a-stcoed.ads as
3433 defined by Ada 2012.
3435 2015-02-20 Arnaud Charlet <charlet@adacore.com>
3437 * sysdep.c, expect.c, s-oscons-tmplt.c, gsocket.h, adaint.c: Remove
3438 obsolete references to RTX, nucleus, VMS.
3440 2015-02-20 Ed Schonberg <schonberg@adacore.com>
3442 * sem_prag.adb (Fix_Error): For an illegal Type_Invariant'Class
3443 aspect, use name that mentions Class explicitly, rather than
3444 compiler-internal name.
3446 2015-02-20 Robert Dewar <dewar@adacore.com>
3448 * debug.adb: Add documentation for -gnatd.2 (allow statements
3450 * par-ch3.adb (P_Identifier_Declarations): Handle
3451 statement appearing where declaration expected more cleanly.
3452 (Statement_When_Declaration_Expected): Implement debug flag
3455 2015-02-20 Jose Ruiz <ruiz@adacore.com>
3457 * a-dinopr.ads: Add spec for this package (Unimplemented_Unit).
3458 * a-dispat.ads (Yield): Include procedure added in Ada 2012.
3459 * a-dispat.adb (Yield): Implement procedure added in Ada 2012.
3460 * impunit.adb (Non_Imp_File_Names_05): Mark unit a-dinopr.ads as
3461 defined by Ada 2005.
3462 * snames.ads-tmpl (Name_Non_Preemptive_FIFO_Within_Priorities):
3463 This is the correct name for the dispatching policy (FIFO was
3466 2015-02-20 Javier Miranda <miranda@adacore.com>
3468 * sem_res.adb (Resolve_Type_Conversion): If the type of the
3469 operand is the limited-view of a class-wide type then recover
3470 the class-wide type of the non-limited view.
3472 2015-02-20 Arnaud Charlet <charlet@adacore.com>
3474 * gcc-interface/Makefile.in: Remove references to nucleus.
3475 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Procedure): Set
3476 extern_flag to true for Inline_Always subprograms with
3477 Intrinsic convention.
3479 2015-02-20 Yannick Moy <moy@adacore.com>
3481 * sem_prag.ads: Minor typo in comment.
3483 2015-02-20 Pascal Obry <obry@adacore.com>
3485 * s-osprim-mingw.adb: Fix Get_Base_Time parameter mode.
3487 2015-02-20 Vincent Celier <celier@adacore.com>
3489 * makeutl.adb (Get_Directories.Add_Dir): Add a directory only
3492 2015-02-20 Robert Dewar <dewar@adacore.com>
3494 * sem_eval.ads: Minor reformatting.
3496 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
3498 * freeze.adb (Size_Known): Do not set the packed size for
3499 independent type or component.
3500 (Freeze_Array_Type): Check for Independent[_Components] with packing
3501 or explicit component size clause.
3502 * gnat1drv.adb (Post_Compilation_Validation_Checks): Do the validation
3503 of independence pragmas only for non-GCC back-ends.
3504 * sem_ch13.adb (Initialize): Likewise for the initialization.
3505 * sem_prag.adb (Record_Independence_Check): New procedure to record an
3506 independence check in the table.
3507 (Analyze_Pragma): Use it throughout instead of doing it manually.
3508 * gcc-interface/decl.c (gnat_to_gnu_field): Add support for
3509 independent type or component.
3511 2015-02-20 Thomas Quinot <quinot@adacore.com>
3513 * adaint.c (__gnat_readdir): For Solaris, use 64 bit variants of
3514 struct direct and readdir. This is required for NFS filesystems
3515 mounted from servers that use 64-bit cookies.
3517 2015-02-20 Ed Schonberg <schonberg@adacore.com>
3519 * sem_ch12.adb (Analyze_Subprogram_Instantiaion): New subprogram
3520 Build_Subprogram_Renaming, to create renaming of subprogram
3521 instance in the the declaration of the wrapper package rather
3522 than in its body, so that it is available for analysis of aspects
3523 propagated from generic to instantiation.
3524 (Check_Mismatch): An actual for a formal package that is an
3525 incomplete type matches a formal type that is incomplete.
3526 (Instantiate_Package_Body): Move code that builds subprogram
3527 renaming to Analyze_Subprogram_Instantiation.
3528 (Instantiate_Type): The generated subtype is a limited view if
3529 the actual is a limited view.
3530 (Load_Parent_Of_Generic): Retrieve instance declaration from
3531 its new position within wrapper package.
3533 2015-02-20 Arnaud Charlet <charlet@adacore.com>
3535 * s-parame-vxworks.adb, s-os_lib.ads: Update comments.
3537 2015-02-20 Robert Dewar <dewar@adacore.com>
3539 * s-osinte-vxworks.ads (To_Timespec): Add comment about the
3540 issue of negative arguments.
3542 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
3544 * gnat1drv.adb: Minor consistency fix.
3546 2015-02-20 Pascal Obry <obry@adacore.com>
3548 * s-osprim-mingw.adb (Get_Base_Time): Properly release lock in all
3551 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
3553 * inline.adb (Expand_Inlined_Call): Skip again calls to subprogram
3555 * exp_ch6.adb (Expand_Call): Use back-end inlining
3556 instead of expansion for simple subprogram renamings.
3558 2015-02-20 Robert Dewar <dewar@adacore.com>
3560 * exp_util.adb: Minor reformatting.
3562 2015-02-20 Vincent Celier <celier@adacore.com>
3564 * switch-c.adb (Scan_Front_End_Switches): Do not fail when --RTS=
3565 is specified several times with different values that indicates
3566 the same runtime directory.
3568 2015-02-20 Ed Schonberg <schonberg@adacore.com>
3570 * sem_attr.adb (Check_Not_Incomplete_Type): Clean up code to
3571 handle properly illegal uses of attributes on prefixes on an
3572 incomplete type, both when the type of the prefix is locally
3573 incomplete, and when it is a limited view of a type whose
3574 non-limited view is not available.
3575 (Analyze_Attribute): Add calls to Check_Not_Incomplete_Type for
3576 'Address and others.
3578 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
3580 * exp_ch6.adb: Fix minor typo in comment.
3582 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
3584 * sinfo.ads: Add comment.
3586 2015-02-20 Olivier Hainque <hainque@adacore.com>
3588 * opt.ads: Replace Opt.Suppress_All_Inlining by two separate
3589 flags controlling the actual FE inlining out of pragma Inline
3590 and pragma Inline_Always.
3591 * adabkend.adb (Scan_Compiler_Arguments): Set both flags to True
3592 on -fno-inline, which disables all inlining in compilers with
3593 an Ada back-end and without back-end inlining support.
3594 * back_end.adb (Scan_Back_End_Switches): Set the Inline related
3595 flag to True on -fno-inline and leave Inline_Always alone for
3597 * back_end.ads (Scan_Compiler_Arguments): Adjust spec wrt the
3598 names of the Opt flags it sets.
3599 * gnat1drv.adb (Adjust_Global_Switches): Remove test on
3600 Opt.Suppress_All_Inlining in the Back_End_Inlining computation.
3601 * sem_prag.adb (Make_Inline): Remove early return conditioned
3602 on Opt.Suppress_All_Inlining.
3603 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use the flags to
3604 disable the calls to Build_Body_To_Inline otherwise triggered
3605 by pragma Inline or Inline_Always. This will prevent actual
3606 front-end inlining of the subprogram on calls.
3608 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
3610 * exp_ch3.adb (Default_Initialize_Object): Call Add_Inlined_Body on the
3611 Abort_Undefer_Direct function.
3612 * exp_ch5.adb (Expand_N_Assignment_Statement): Likewise.
3613 * exp_intr.adb (Expand_Unc_Deallocation): Likewise.
3614 * exp_prag.adb (Expand_Pragma_Abort_Defer): Likewise.
3615 * exp_ch4.adb (Expand_N_Selected_Component): Adjust call to
3617 * exp_ch6.adb (Expand_Call): Adjust calls to Add_Inlined_Body.
3618 Remove call to Register_Backend_Call and move code resetting
3619 Needs_Debug_Info on inlined subprograms to...
3620 * inline.ads (Add_Inlined_Body): Add N parameter.
3621 (Register_Backend_Call): Delete.
3622 * inline.adb (Add_Inlined_Body): ...here and simplify.
3623 Register the call with Backend_Calls directly.
3624 (Register_Backend_Call): Delete.
3625 * s-stalib.ads (Abort_Undefer_Direct): Restore pragma Inline.
3627 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
3629 * s-stalib.ads: Fix typo.
3631 2015-02-20 Ed Schonberg <schonberg@adacore.com>
3633 * exp_ch3.adb (Default_Initialize_Object): If the object has a
3634 delayed freeze, the actions associated with default initialization
3635 must be part of the freeze actions, rather that being inserted
3636 directly after the object declaration.
3638 2015-02-20 Robert Dewar <dewar@adacore.com>
3640 * lib-load.adb: Minor comment update.
3642 2015-02-20 Vincent Celier <celier@adacore.com>
3644 * prj-proc.adb (Process_Case_Construction): When there are
3645 incomplete withed projects and the case variable is unknown,
3646 skip the case construction.
3648 2015-02-20 Ed Schonberg <schonberg@adacore.com>
3650 * exp_ch6.adb (Expand_Actuals): Add caller-side invariant checks
3651 when an actual is a view conversion, either because the call is
3652 to an inherited operation, or because the actual is an explicit
3653 type conversion to an ancestor type. Fixes ACATS 4.0D: C732001
3655 2015-02-20 Robert Dewar <dewar@adacore.com>
3657 * einfo.ads: Minor comment updates Fix missing pragma Inline
3658 for Set_Partial_View_Has_Unknown_Discr.
3659 * einfo.adb (Write_Entity_Flags): Add missing entry for
3660 Partial_View_Has_Unknown_Discr.
3661 * sem_ch3.adb: Minor reformatting.
3663 2015-02-20 Vincent Celier <celier@adacore.com>
3665 * opt.ads: Minor cleanup: remove mention of gprmake.
3666 * s-stalib.ads (Abort_Undefer_Direct): Do not inline.
3667 * s-tataat.adb: Do not call System.Tasking.Self but directly
3668 System.Task_Primitives.Operations.Self.
3670 2015-02-20 Arnaud Charlet <charlet@adacore.com>
3672 * gnat_rm.texi, gnat_ugn.texi: Now automatically generated from
3673 sphinx in the doc directory.
3674 * doc: New directory containing sphinx versions of gnat_rm and gnat_ugn
3676 2015-02-20 Robert Dewar <dewar@adacore.com>
3678 * sem_res.adb: Minor reformatting.
3679 * exp_ch9.adb (Build_Protected_Spec): Copy Aliased setting when
3681 * sem_ch13.adb (Analyze_Aspect_Specifications): Exclude Boolean
3682 aspects from circuitry setting delay required to false if the
3683 argument is an integer literal.
3685 2015-02-20 Ed Schonberg <schonberg@adacore.com>
3687 * einfo.ads. einfo.adb (Partial_View_Has_Unknown_Discr): New flag
3688 on type entities, to enforce AI12-0133: default initialization
3689 of types whose partial view has unknown discriminants does not
3690 get an invariant check, because clients of the unit can never
3691 declare objects of such types.
3692 * sem_ch3.adb (Find_Type_Name); Set new flag
3693 Partial_View_Has_Unknown_Discr when needed.
3694 * exp_ch3.adb (Expand_N_Object_Declaration): Use flag to suppress
3695 generation of invariant call on default-initialized object.
3697 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
3699 * gcc-interface/decl.c (gnat_to_gnu_param): Do not strip the padding
3700 if the parameter either is passed by reference or if the alignment
3703 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
3705 * gcc-interface/decl.c (is_cplusplus_method): Use Is_Primitive flag to
3706 detect primitive operations of tagged and untagged types.
3708 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
3710 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias
3711 sets in presence of derivation for subprogram types.
3713 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
3715 * gcc-interface/utils.c (begin_subprog_body): Assert that the body is
3716 present in the same context as the declaration.
3718 2015-02-07 Jakub Jelinek <jakub@redhat.com>
3721 * gcc-interface/trans.c (gigi): Recreate optimization_default_node
3722 and optimization_current_node after tweaking global_options.
3724 2015-02-05 Robert Dewar <dewar@adacore.com>
3726 * prj-proc.adb, sem_aux.adb, exp_ch9.adb, errout.adb, prj-dect.adb,
3727 prj-nmsc.adb: Minor reformatting.
3729 2015-02-05 Ed Schonberg <schonberg@adacore.com>
3731 * sem_type.adb (Covers): In ASIS_Mode the Corresponding_Record
3732 of a protected type may not be available, so to check conformance
3733 with an interface type, examine the interface list in the type
3734 declaration directly.
3735 (Write_Overloads): Improve information for indirect calls,
3738 2015-02-05 Ed Schonberg <schonberg@adacore.com>
3740 * exp_ch3.adb (Make_Tag_Assignment): Do not perform this
3741 expansion activity in ASIS mode.
3743 2015-02-05 Javier Miranda <miranda@adacore.com>
3745 * errout.adb (Error_Msg_PT): Add missing error.
3746 * sem_ch6.adb (Check_Synchronized_Overriding): Check the missing
3747 RM rule. Code cleanup.
3748 * exp_ch9.adb (Build_Wrapper_Spec): Propagate "constant" in
3749 anonymous access types. Found working on the tests. Code cleanup.
3751 2015-02-05 Vincent Celier <celier@adacore.com>
3753 * prj-dect.adb (Parse_Attribute_Declaration): Continue scanning
3754 when there are incomplete withs.
3755 * prj-nmsc.adb (Process_Naming): Do not try to get the value
3756 of an element when it is nil.
3757 (Check_Naming): Do not check a nil suffix for illegality
3758 * prj-proc.adb (Expression): Do not process an empty term.
3759 * prj-strt.adb (Attribute_Reference): If attribute cannot be
3760 found, parse a possible index to avoid cascading errors.
3762 2015-02-05 Ed Schonberg <schonberg@adacore.com>
3764 * sem_aux.adb (Is_Derived_Type): A subprogram_type generated
3765 for an access_to_subprogram declaration is not a derived type.
3767 2015-02-05 Robert Dewar <dewar@adacore.com>
3769 * errout.adb (Error_Msg_Internal): For non-serious error set
3770 Fatal_Error to Ignored.
3771 * lib-load.adb (Load_Unit): Minor comment updates.
3772 * sem_ch10.adb (Analyze_With_Clause): Propagate Fatal_Error
3773 setting from with'ed unit to with'ing unit.
3774 * sem_prag.adb (Analyze_Pragma, case Warnings): Document handling
3777 2015-02-05 Yannick Moy <moy@adacore.com>
3779 * sem_prag.adb, par-prag.adb: Minor code clean up.
3781 2015-02-05 Yannick Moy <moy@adacore.com>
3783 * par-prag.adb (Pragma_Warnings): Update for extended form
3784 of pragma Warnings. The "one" argument case may now have 2 or
3786 * sem_prag.adb (Analyze_Pragma/Pragma_Warnings): Update for
3787 extended form of pragma Warnings. Pragma with tool name is either
3788 rewritten as null or as an equivalent form without tool name,
3790 * snames.ads-tmpl (Name_Gnatprove): New name.
3792 2015-02-05 Robert Dewar <dewar@adacore.com>
3794 * sem_ch13.adb (Add_Invariants): Don't assume invariant is
3796 * sem_prag.adb (Analyze_Pragma, case Check): Don't assume
3797 condition is standard Boolean, it can be non-standard derived
3800 2015-02-05 Robert Dewar <dewar@adacore.com>
3802 * checks.adb (Enable_Range_Check): Disconnect attempted
3803 optimization for the case of range check for subscript of
3804 unconstrained array.
3806 2015-02-05 Robert Dewar <dewar@adacore.com>
3808 * par-ch13.adb (With_Present): New function
3809 (Aspect_Specifications_Present): Handle WHEN in place of WITH
3810 (Get_Aspect_Specifications): Comment update.
3811 * par.adb: Comment updates.
3813 2015-02-05 Robert Dewar <dewar@adacore.com>
3815 * errout.adb (Handle_Serious_Error): New setting of Fatal_Error.
3816 * frontend.adb (Frontend): New setting of Fatal_Error.
3817 * lib-load.adb (Create_Dummy_Package_Unit): New setting of
3819 (Load_Main_Source): New setting of Fatal_Error
3820 (Load_Unit): New setting of Fatal_Error.
3821 * lib-writ.adb (Add_Preprocessing_Dependency): New setting of
3823 (Ensure_System_Dependency): New setting of Fatal_Error.
3824 * lib.adb (Fatal_Error): New setting of Fatal_Error
3825 (Set_Fatal_Error): New setting of Fatal_Error.
3826 * lib.ads: New definition of Fatal_Error and associated routines.
3827 * par-ch10.adb (P_Compilation_Unit): New setting of Fatal_Error.
3828 * par-load.adb (Load): New setting of Fatal_Error.
3829 * rtsfind.adb (Load_RTU): New setting of Fatal_Error.
3830 * sem_ch10.adb (Analyze_Compilation_Unit): New setting of
3832 (Optional_Subunit): New setting of Fatal_Error.
3833 (Analyze_Proper_Body): New setting of Fatal_Error.
3834 (Load_Needed_Body): New setting of Fatal_Error.
3836 2015-02-05 Ed Schonberg <schonberg@adacore.com>
3838 * sem_res.adb (Resolve_Call): If the function being called has
3839 out parameters do not check for language version if the function
3840 comes from a predefined unit, as those are always compiled in
3843 2015-02-05 Ed Schonberg <schonberg@adacore.com>
3845 * sem_ch3.adb (Process_Full_View): Verify that the full view
3846 of a type extension must carry an explicit limited keyword if
3847 the partial view does (RM 7.3 (10.1)).
3849 2015-02-05 Robert Dewar <dewar@adacore.com>
3851 * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads,
3852 sem_warn.ads: Minor reformatting.
3853 * exp_ch13.adb (Expand_N_Freeze_Entity): Add guard for aspect
3855 * sem_prag.adb (Analyze_Pragma, case Type_Invariant): Give
3856 error for abstract type.
3858 2015-02-05 Yannick Moy <moy@adacore.com>
3860 * opt.ads (Warn_On_Suspicious_Contract): Update comment
3862 * sem_attr.adb (Analyze_Attribute/Attribute_Update): Warn on
3863 suspicious uses of 'Update.
3864 * sem_warn.adb, sem_warn.ads (Warn_On_Suspicious_Update): New
3865 function issues warning on suspicious uses of 'Update.
3866 * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads: Mark
3867 package spec and body as SPARK_Mode Off.
3869 2015-02-05 Robert Dewar <dewar@adacore.com>
3871 * sem_prag.adb (Set_Elab_Unit_Name): New name for Set_Unit_Name
3872 (Analyze_Pragma): Change Set_Unit_Name to Set_Elab_Unit_Name
3873 (Set_Elab_Unit_Name): Generate reference for Elaborate[_All]
3874 * sem_warn.adb (Warn_On_Unreferenced_Entity): Suppress warning
3875 for exported entity.
3877 2015-02-05 Hristian Kirtchev <kirtchev@adacore.com>
3879 * sem_prag.adb (Check_Pragma_Conformance): Add
3880 local variable Arg. Ensure that all errors are associated with
3881 the pragma if it appears without an argument. Add comments on
3884 2015-02-05 Robert Dewar <dewar@adacore.com>
3886 * lib-xref.adb: Minor reformatting.
3888 2015-02-05 Tristan Gingold <gingold@adacore.com>
3891 * env.c: Fix thinko: handle Darwin case before default one.
3893 2015-01-30 Robert Dewar <dewar@adacore.com>
3895 * a-assert.adb: Minor reformatting.
3896 * sem_ch13.adb: Minor comment clarification.
3897 * types.ads: Minor comment update.
3898 * sem_eval.adb (Real_Or_String_Static_Predicate_Matches): Avoid blow up
3899 when we have a predicate that is nothing but an inherited dynamic
3902 2015-01-30 Jerome Guitton <guitton@adacore.com>
3904 * gcc-interface/Makefile.in (x86-vxworks): Update GCC_SPEC_FILES to
3905 include cert link spec.
3907 2015-01-30 Robert Dewar <dewar@adacore.com>
3909 * einfo.ads: Minor comment fix.
3910 * freeze.adb (Freeze_Profile): Add test for suspicious import
3912 * sem_prag.adb (Process_Import_Or_Interface): Test for suspicious
3913 use in Pure unit is now moved to Freeze (to properly catch
3914 Pure_Function exemption).
3916 2015-01-30 Bob Duff <duff@adacore.com>
3918 * sem_res.ads: Minor comment fix.
3919 * sem_type.adb: sem_type.adb (Remove_Conversions): Need to
3920 check both operands of an operator.
3922 2015-01-30 Yannick Moy <moy@adacore.com>
3924 * a-assert.ads, a-assert.adb: Mark package spec in SPARK. Set assertion
3925 policy for Pre to Ignore.
3926 (Assert): Add precondition.
3928 2015-01-30 Robert Dewar <dewar@adacore.com>
3930 * sem_prag.adb (Process_Import_Or_Interface): Warn if used in
3932 * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Clarify
3933 documentation for some special cases of invalid attempts at
3936 2015-01-30 Gary Dismukes <dismukes@adacore.com>
3938 * errout.ads: Minor reformatting.
3940 2015-01-30 Yannick Moy <moy@adacore.com>
3942 * inline.adb (Process_Formals): Use the sloc of
3943 the inlined node instead of the sloc of the actual parameter,
3944 when replacing formal parameters by the actual one.
3946 2015-01-30 Arnaud Charlet <charlet@adacore.com>
3948 * g-expect.adb (Get_Command_Output): Use infinite timeout when
3951 2015-01-30 Ed Schonberg <schonberg@adacore.com>
3953 * sem_ch12.adb (Analyze_Associations): If an in-parameter is
3954 defaulted in an instantiation, add an entry in the list of actuals
3955 to indicate the default value of the formal (as is already done
3956 for defaulted subprograms).
3958 2015-01-30 Javier Miranda <miranda@adacore.com>
3960 * errout.adb (Error_Msg_PT): Minor error phrasing update.
3962 2015-01-30 Robert Dewar <dewar@adacore.com>
3964 * sem_warn.adb (Warn_On_Known_Condition): Improve error message
3967 2015-01-30 Pierre-Marie de Rodat <derodat@adacore.com>
3969 * exp_dbug.adb (Get_Encoded_Name): When
3970 -fgnat-encodings=minimal, do not generate names for biased types.
3972 2015-01-30 Tristan Gingold <gingold@adacore.com>
3975 * env.c: Move vxworks and darwin includes out of #ifdef IN_RTS.
3977 2015-01-30 Gary Dismukes <dismukes@adacore.com>
3979 * freeze.adb: Minor reformatting.
3981 2015-01-30 Javier Miranda <miranda@adacore.com>
3983 * errout.ads (Error_Msg_PT): Replace Node_Id by Entity_Id and
3984 improve its documentation.
3985 * errout.adb (Error_Msg_PT): Improve the error message.
3986 * sem_ch6.adb (Check_Conformance): Update call to Error_Msg_PT.
3987 (Check_Synchronized_Overriding): Update call to Error_Msg_PT.
3988 * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup.
3990 2015-01-30 Robert Dewar <dewar@adacore.com>
3992 * sem_warn.adb (Warn_On_Known_Condition): Do special casing of
3993 message for False case.
3995 2015-01-30 Doug Rupp <rupp@adacore.com>
3997 * s-vxwext-kernel.ads (Task_Cont): Remove imported subprogram body.
3998 * s-vxwext-kernel.adb (Task_Cont): New subpprogram body specialized for
4001 2015-01-30 Gary Dismukes <dismukes@adacore.com>
4003 * sem_attr.adb (Declared_Within_Generic_Unit):
4004 New function to test whether an entity is declared within the
4005 declarative region of a given generic unit.
4006 (Resolve_Attribute): For checking legality of subprogram'Access within
4007 a generic unit, call new Boolean function Declared_Within_Generic_Unit
4008 instead of simply comparing the results of Enclosing_Generic_Unit on
4009 the prefix and access type. Correct minor comment typos.
4011 2015-01-30 Robert Dewar <dewar@adacore.com>
4013 * freeze.adb, exp_util.ads: Update comment.
4014 * exp_util.adb, exp_ch3.adb: Minor code reorganization and reformatting.
4015 * sem_util.adb: Minor: fix typo.
4017 2015-01-30 Hristian Kirtchev <kirtchev@adacore.com>
4019 * sem_attr.adb (Analyze_Attribute): Ensure that
4020 the check concerning Refined_Post takes precedence over the
4023 2015-01-30 Gary Dismukes <dismukes@adacore.com>
4025 * sem_prag.adb: Minor typo fixes and reformatting.
4027 2015-01-30 Yannick Moy <moy@adacore.com>
4029 * sem_attr.adb: Code clean up.
4031 2015-01-30 Robert Dewar <dewar@adacore.com>
4033 * ali.adb (Scan_ALI): Set Serious_Errors flag in Unit record.
4034 * ali.ads (Unit_Record): Add new field Serious_Errors.
4035 * lib-writ.adb (Write_Unit_Information): Set SE (serious errors)
4036 attribute in U line.
4037 * lib-writ.ads: New attribute SE (serious erors) in unit line.
4039 2015-01-30 Hristian Kirtchev <kirtchev@adacore.com>
4041 * einfo.adb Update the usage of attributes Entry_Bodies_Array,
4042 Lit_Indexes, Scale_Value, Storage_Size_Variable,
4043 String_Literal_Low_Bound along associated routines and
4045 (Pending_Access_Types): New routine.
4046 (Set_Pending_Access_Types): New routine.
4047 (Write_Field15_Name): Add an entry for Pending_Access_Types.
4048 * einfo.ads Add new attribute Pending_Access_Types along
4049 with usage in nodes. Update the usage of attributes
4050 Entry_Bodies_Array, Lit_Indexes, Scale_Value,
4051 Storage_Size_Variable, String_Literal_Low_Bound.
4052 (Pending_Access_Types): New routine along with pragma Inline.
4053 (Set_Pending_Access_Types): New routine along with pragma Inline.
4054 * exp_ch3.adb (Expand_Freeze_Array_Type): Add new local variable
4055 Ins_Node. Determine the insertion node for anonynous access type
4056 that acts as a component type of an array. Update the call to
4057 Build_Finalization_Master.
4058 (Expand_Freeze_Record_Type): Update
4059 the calls to Build_Finalization_Master.
4060 (Freeze_Type): Remove
4061 local variable RACW_Seen. Factor out the code that deals with
4062 remote access-to-class-wide types. Create a finalization master
4063 when the designated type contains a private component. Fully
4064 initialize all pending access types.
4065 (Process_RACW_Types): New routine.
4066 (Process_Pending_Access_Types): New routine.
4067 * exp_ch4.adb (Expand_Allocator_Expression): Allocation no longer
4068 needs to set primitive Finalize_Address.
4069 (Expand_N_Allocator): Allocation no longer sets primitive
4071 * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
4072 Update the call to Build_Finalization_Master.
4073 (Make_Build_In_Place_Call_In_Allocator): Allocation no longer
4074 needs to set primitive Finalize_Address.
4075 * exp_ch7.adb (Add_Pending_Access_Type): New routine.
4076 (Build_Finalization_Master): New parameter profile. Associate
4077 primitive Finalize_Address with the finalization master if the
4078 designated type has been frozen, otherwise treat the access
4079 type as pending. Simplify the insertion of the master and
4080 related initialization code.
4081 (Make_Finalize_Address_Body): Allow Finalize_Address for class-wide
4083 (Make_Set_Finalize_Address_Call): Remove forlam parameter Typ.
4084 Simplify the implementation.
4085 * exp_ch7.ads (Build_Finalization_Master): New parameter profile
4086 along with comment on usage.
4087 (Make_Set_Finalize_Address_Call): Remove formal parameter Typ. Update
4088 the comment on usage.
4089 * exp_util.adb (Build_Allocate_Deallocate_Proc): Use routine
4090 Finalize_Address to retrieve the primitive.
4091 (Finalize_Address): New routine.
4092 (Find_Finalize_Address): Removed.
4093 * exp_util.ads (Finalize_Address): New routine.
4094 * freeze.adb (Freeze_All): Remove the generation of finalization
4096 * sem_ch3.adb (Analyze_Full_Type_Declaration): Propagate any
4097 pending access types from the partial to the full view.
4099 2015-01-30 Robert Dewar <dewar@adacore.com>
4101 * sem_disp.adb: Minor reformatting.
4102 * sem_disp.ads: Documentation update.
4104 2015-01-30 Ed Schonberg <schonberg@adacore.com>
4106 * sem_disp.adb (Is_Dynamically_Tagged): when applied to an entity
4107 or a function call, return True if type is class-wide.
4108 * sem_res.adb (Resolve_Case_Expression, Resolve_If_Expression);
4109 Apply RM 4.5.7 (17/3): all or none of the dependent expression
4110 of a conditional expression must be dynamically tagged.
4112 2015-01-30 Ed Schonberg <schonberg@adacore.com>
4114 * sem_ch6.adb (Analyze_Function_Return): In an extended return
4115 statement, apply accessibility check to result object when there
4116 is no initializing expression (Ada 2012 RM 6.5 (5.4/3))
4118 2015-01-30 Robert Dewar <dewar@adacore.com>
4120 * sem_ch4.adb (Analyze_If_Expression): Allow for non-standard
4121 Boolean for case where ELSE is omitted.
4122 * sem_res.adb: Minor reformatting.
4124 2015-01-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
4126 Fix build under cygwin/64.
4127 * adaint.h: Add check for __CYGWIN__.
4128 * mingw32.h: Prevent windows.h from including x86intrin.h in GCC.
4130 2015-01-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
4133 * adaint.c: Handle __CYGWIN__ like __MINGW32__ here.
4134 * mingw32.h: Don't include <tchar.h> under cygwin.
4135 (_O_U8TEXT, _O_U16TEXT, _O_WTEXT): Set to _O_TEXT if not yet defined.
4137 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
4139 * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8)
4140 (DEF_FUNCTION_TYPE_VAR_12): New macros.
4142 2015-01-09 Michael Collison <michael.collison@linaro.org>
4144 * gcc-interface/cuintp.c: Include hash-set.h, machmode.h,
4145 vec.h, double-int.h, input.h, alias.h, symtab.h,
4146 fold-const.h, wide-int.h, and inchash.h due to
4147 flattening of tree.h.
4148 * gcc-interface/decl.c: Ditto.
4149 * gcc-interface/misc.c: Ditto.
4150 * gcc-interface/targtyps.c: Include hash-set.h, machmode.h,
4151 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h,
4152 fold-const.h, wide-int.h, and inchash.h due to
4153 flattening of tree.h.
4154 * gcc-interface/trans.c: Include hash-set.h, machmode.h,
4155 vec.h, double-int.h, input.h, alias.h, symtab.h, real.h,
4156 fold-const.h, wide-int.h, inchash.h due to
4157 flattening of tree.h.
4158 * gcc-interface/utils.c: Include hash-set.h, machmode.h,
4159 vec.h, double-int.h, input.h, alias.h, symtab.h,
4160 fold-const.h, wide-int.h, and inchash.h due to
4161 flattening of tree.h.
4162 * gcc-interface/utils2.c: Ditto.
4164 2015-01-07 Robert Dewar <dewar@adacore.com>
4166 * sem_warn.adb (Check_One_Unit): Don't give unused entities
4167 warning for a package which is used as a generic parameter.
4169 2015-01-07 Bob Duff <duff@adacore.com>
4171 * usage.adb (Usage): Correct documentation of
4174 2015-01-07 Robert Dewar <dewar@adacore.com>
4176 * s-fileio.adb: Minor reformatting.
4178 2015-01-07 Ed Schonberg <schonberg@adacore.com>
4180 * sem_ch12.adb (Instantiate_Object): If formal is an anonymous
4181 access to subprogram, replace its formals with new entities when
4182 building the object declaration, both if actual is present and
4183 when it is defaulted.
4185 2015-01-07 Ed Schonberg <schonberg@adacore.com>
4187 * sem_ch5.adb (Analyze_Assignment): If left-hand side is a view
4188 conversion and type of expression has invariant, apply invariant
4189 check on expression.
4191 2015-01-07 Ed Schonberg <schonberg@adacore.com>
4193 * sem_ch3.adb (Create_Constrained_Components): A call to
4194 Gather_Components may detect an error if an inherited discriminant
4195 that controls a variant is non-static.
4196 * sem_aggr.adb (Resolve_Record_Aggregate, Step 5): The call to
4197 Gather_Components may report an error if an inherited discriminant
4198 in a variant in non-static.
4199 * sem_util.adb (Gather_Components): If a non-static discriminant
4200 is inherited do not report error here, but let caller handle it.
4201 (Find_Actual): Small optimization.
4203 2015-01-07 Bob Duff <duff@adacore.com>
4205 * usage.adb (Usage): Document -gnatw.f switch.
4207 2015-01-07 Ed Schonberg <schonberg@adacore.com>
4209 * sem_ch12.adb: Code clean up and minor reformatting.
4211 2015-01-07 Robert Dewar <dewar@adacore.com>
4213 * exp_ch4.adb (Expand_N_Type_Conversion): Add guard for
4214 Raise_Accessibility_Error call.
4215 * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add documentation
4216 on handling of invalid digits in based constants.
4217 * s-fatgen.ads: Minor reformatting.
4218 * sem_attr.adb (Analyze_Attribute, case Unrestricted_Access):
4219 Avoid noting bogus modification for Valid test.
4220 * snames.ads-tmpl (Name_Attr_Long_Float): New Name.
4221 * einfo.ads: Minor reformatting.
4222 * sem_warn.adb: Minor comment clarification.
4223 * sem_ch12.adb: Minor reformatting.
4225 2015-01-07 Ed Schonberg <schonberg@adacore.com>
4227 * exp_ch5.adb (Expand_Predicated_Loop): Handle properly loops
4228 over static predicates when the loop parameter specification
4229 carries a Reverse indicator.
4231 2015-01-07 Ed Schonberg <schonberg@adacore.com>
4233 * sem_ch12.adb (Instantiate_Object): If formal has a default,
4234 actual is missing and formal has an anonymous access type, copy
4235 access definition in full so that tree for instance is properly
4236 formatted for ASIS use.
4238 2015-01-07 Bob Duff <duff@adacore.com>
4240 * sem_elab.adb (Check_Internal_Call_Continue): Give a warning
4241 for P'Access, where P is a subprogram in the same package as
4242 the P'Access, and the P'Access is evaluated at elaboration
4243 time, and occurs before the body of P. For example, "X : T :=
4244 P'Access;" would allow a subsequent call to X.all to be an
4245 access-before-elaboration error; hence the warning. This warning
4246 is enabled by the -gnatw.f switch.
4247 * opt.ads (Warn_On_Elab_Access): New flag for warning switch.
4248 * warnsw.adb (Set_Dot_Warning_Switch): Set Warn_On_Elab_Access.
4249 * gnat_ugn.texi: Document the new warning.
4251 2015-01-07 Johannes Kanig <kanig@adacore.com>
4253 * lib-xref-spark_specific.adb (Collect_SPARK_Xrefs): Skip unneeded
4256 2015-01-07 Robert Dewar <dewar@adacore.com>
4258 * s-taprop-linux.adb, clean.adb: Minor reformatting.
4260 2015-01-07 Arnaud Charlet <charlet@adacore.com>
4262 * s-tassta.adb: Relax some overzealous assertions.
4264 2015-01-07 Ed Schonberg <schonberg@adacore.com>
4266 * sem_ch6.adb (Analyze_Return_Type): An call that returns a limited
4267 view of a type is legal when context is a thunk generated for
4268 operation inherited from an interface.
4269 * exp_ch6.adb (Expand_Simple_Function_Return): If context is
4270 a thunk and return type is an incomplete type do not continue
4271 expansion; thunk will be fully elaborated when generating code.
4273 2015-01-07 Doug Rupp <rupp@adacore.com>
4275 * s-osinte-mingw.ads (LARGE_INTEGR): New subtype.
4276 (QueryPerformanceFrequency): New imported procedure.
4277 * s-taprop-mingw.adb (RT_Resolution): Call above and return
4278 resolution vice a hardcoded value.
4279 * s-taprop-solaris.adb (RT_Resolution): Call clock_getres and return
4280 resolution vice a hardcoded value.
4281 * s-linux-android.ads (clockid_t): New subtype.
4282 * s-osinte-aix.ads (clock_getres): New imported subprogram.
4283 * s-osinte-android.ads (clock_getres): Likewise.
4284 * s-osinte-freebsd.ads (clock_getres): Likewise.
4285 * s-osinte-solaris-posix.ads (clock_getres): Likewise.
4286 * s-osinte-darwin.ads (clock_getres): New subprogram.
4287 * s-osinte-darwin.adb (clock_getres): New subprogram.
4288 * thread.c (__gnat_clock_get_res) [__APPLE__]: New function.
4289 * s-taprop-posix.adb (RT_Resolution): Call clock_getres to
4290 calculate resolution vice hard coded value.
4292 2015-01-07 Ed Schonberg <schonberg@adacore.com>
4294 * exp_util.adb (Make_CW_Equivalent_Type): If root type is a
4295 limited view, use non-limited view when available to create
4296 equivalent record type.
4298 2015-01-07 Vincent Celier <celier@adacore.com>
4300 * gnatcmd.adb: Remove command Sync and any data and processing
4301 related to this command. Remove project processing for gnatstack.
4302 * prj-attr.adb: Remove package Synchonize and its attributes.
4304 2015-01-07 Vincent Celier <celier@adacore.com>
4306 * clean.adb: Minor error message change.
4308 2015-01-07 Tristan Gingold <gingold@adacore.com>
4311 * env.c (__gnat_environ): Adjust for darwin9/darwin10.
4313 2015-01-07 Javier Miranda <miranda@adacore.com>
4315 * sem_ch10.adb (Analyze_With_Clause): Compiling under -gnatq
4316 protect the frontend against never ending recursion caused by
4317 circularities in the sources.
4319 2015-01-07 Robert Dewar <dewar@adacore.com>
4321 * a-reatim.adb, make.adb, exp_pakd.adb, i-cpoint.adb, sem_ch8.adb,
4322 exp_ch3.adb: Minor reformatting.
4324 2015-01-07 Doug Rupp <rupp@adacore.com>
4326 * s-linux.ads (clockid_t): New subtype.
4327 * s-osinte-linux.ads (pragma Linker Options): Add -lrt.
4328 (clockid_t): New subtype.
4329 (clock_getres): Import system call.
4330 * s-taprop-linux.adb (System.OS_Constants): With and rename.
4331 (RT_Resolution): Remove
4332 hardcoded value and call clock_getres.
4333 * s-linux-sparc.ads, s-linux-mipsel.ads, s-linux-hppa.ads,
4334 s-linux-alpha.ads, s-linux-x32.ads (clockid_t): Add new subtype.
4336 2015-01-07 Robert Dewar <dewar@adacore.com>
4338 * sem_warn.adb (Check_One_Unit): Guard against context item
4339 with no Entity field.
4341 2015-01-07 Vincent Celier <celier@adacore.com>
4343 * clean.adb (Gnatclean): Warn that 'gnatclean -P' is obsolete.
4344 * make.adb (Initialize): Warn that 'gnatmake -P' is obsolete.
4346 2015-01-07 Vincent Celier <celier@adacore.com>
4348 * prj-conf.adb (Parse_Project_And_Apply_Config): Always finalize
4349 errors/warnings in the first parsing of the project files,
4350 to display the warnings when there is no errors.
4352 2015-01-07 Tristan Gingold <gingold@adacore.com>
4354 * i-cpoint.adb (Copy_Terminated_Array): Nicely handle null target.
4356 2015-01-07 Doug Rupp <rupp@adacore.com>
4358 * s-taprop-vxworks.adb (Stop_All_Tasks): Pass return
4359 value from Int_Lock as parameter to Int_Unlock.
4360 * s-osinte-vxworks.ads (Int_Unlock): Add parameter.
4361 * s-vxwext.ads (Int_Unlock): Likewise.
4362 * s-vxwext-kernel.adb (intUnlock, Int_Unlock): Likewise.
4363 * s-vxwext-kernel.ads (Int_Unlock): Likewise.
4364 * s-vxwext-rtp.adb (Int_Unlock): Likewise.
4365 * s-vxwext-rtp.ads (Int_Unlock): Likewise.
4367 2015-01-07 Pierre-Marie de Rodat <derodat@adacore.com>
4369 * exp_pakd.adb: Add a comment in exp_pakd.adb to explain why we
4372 2015-01-07 Tristan Gingold <gingold@adacore.com>
4374 * i-cpoint.adb (Copy_Terminated_Array): Use Copy_Array to
4377 2015-01-07 Eric Botcazou <ebotcazou@adacore.com>
4379 * sem_ch3.adb (Analyze_Full_Type_Declaration): Do not
4380 automatically set No_Strict_Aliasing on access types.
4381 * fe.h (No_Strict_Aliasing_CP): Declare.
4382 * gcc-interface/trans.c (gigi): Force flag_strict_aliasing to 0 if
4383 No_Strict_Aliasing_CP is set.
4385 2015-01-07 Johannes Kanig <kanig@adacore.com>
4387 * sem_ch8.adb (Analyze_Subprogram_Renaming) do
4388 not build function wrapper in gnatprove mode when the package
4389 is externally axiomatized.
4391 2015-01-07 Jose Ruiz <ruiz@adacore.com>
4393 * a-reatim.adb (Time_Of): Reduce the number of spurious overflows in
4394 intermediate computations when the parameters have different signs.
4396 2015-01-07 Javier Miranda <miranda@adacore.com>
4398 * exp_ch3.adb (Build_Init_Procedure): For derived types,
4399 improve the code which takes care of identifying and moving to
4400 the beginning of the init-proc the call to the init-proc of the
4403 2015-01-07 Olivier Hainque <hainque@adacore.com>
4405 * gcc-interface/trans.c (gnat_to_gnu, <N_Expression_With_Action>):
4406 Elaborate the expression as part of the same stmt group as the actions.
4408 2015-01-07 Robert Dewar <dewar@adacore.com>
4410 * sem_ch3.adb: Minor error message change.
4412 2015-01-07 Ed Schonberg <schonberg@adacore.com>
4414 * sem_prag.adb (Analyze_Pragma, case Preelaborable_Initialization):
4415 Following AI05-028, the pragam applies legally to any composite type.
4417 2015-01-07 Arnaud Charlet <charlet@adacore.com>
4419 * s-osinte-vxworks.adb, s-osinte-vxworks.ads
4420 (sigwait, sigwaitinfo): Removed, not needed after all on any
4421 VxWorks configurations.
4423 2015-01-07 Robert Dewar <dewar@adacore.com>
4425 * sem_ch3.adb, freeze.adb, exp_disp.adb: Minor reformatting.
4427 2015-01-07 Javier Miranda <miranda@adacore.com>
4429 * exp_disp.adb (Expand_Interface_Conversion): Adding missing
4430 generation of accessibility check.
4432 2015-01-07 Ed Schonberg <schonberg@adacore.com>
4434 * sem_ch3.adb (Derived_Type_Declaration): In the case of an
4435 illegal completion from a class- wide type, set etype of the
4436 derived type properly to prevent cascaded errors.
4438 2015-01-07 Robert Dewar <dewar@adacore.com>
4440 * prj.ads, i-cpoint.adb, freeze.adb, ghost.adb, prj-err.adb: Minor
4443 2015-01-07 Robert Dewar <dewar@adacore.com>
4445 * restrict.adb (Check_Restriction_No_Use_Of_Attribute):
4447 (OK_No_Use_Of_Entity_Name): New function.
4448 (Set_Restriction_No_Use_Of_Entity): New procedure.
4449 * restrict.ads (Check_Restriction_No_Use_Of_Attribute):
4451 (OK_No_Use_Of_Entity_Name): New function.
4452 (Set_Restriction_No_Use_Of_Entity): New procedure.
4453 * sem_ch8.adb (Find_Direct_Name): Add check for violation of
4455 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
4456 Add processing for new restriction No_Use_Of_Entity.
4458 2015-01-07 Eric Botcazou <ebotcazou@adacore.com>
4460 * freeze.adb (Freeze_Array_Type): Apply same handling to Is_Atomic
4461 component type as to Has_Atomic_Components type. Remove useless
4462 test on Is_Aliased component type.
4464 2015-01-07 Hristian Kirtchev <kirtchev@adacore.com>
4466 * alloc.ads Alphabetize several declarations. Add constants
4467 Ignored_Ghost_Units_Initial and Ignored_Ghost_Units_Increment.
4468 * atree.adb Add with and use clauses for Opt.
4469 (Allocate_Initialize_Node): Mark a node as ignored Ghost
4470 if it is created in an ignored Ghost region.
4471 (Ekind_In): New variant.
4472 (Is_Ignored_Ghost_Node): New routine.
4473 (Set_Is_Ignored_Ghost_Node): New routine.
4474 * atree.adb Aplhabetize several subprograms declarations. Flag
4475 Spare0 is now known as Is_Ignored_Ghost_Node.
4476 (Ekind_In): New variant.
4477 (Is_Ignored_Ghost_Node): New routine.
4478 (Set_Is_Ignored_Ghost_Node): New routine.
4479 * einfo.adb: Flag 279 is now known as Contains_Ignored_Ghost_Code.
4480 (Contains_Ignored_Ghost_Code): New routine.
4481 (Set_Contains_Ignored_Ghost_Code): New routine.
4482 (Set_Is_Checked_Ghost_Entity, Set_Is_Ignored_Ghost_Entity):
4483 It is now possible to set this property on an unanalyzed entity.
4484 (Write_Entity_Flags): Output the status of flag
4485 Contains_Ignored_Ghost_Code.
4486 * einfo.ads New attribute Contains_Ignored_Ghost_Code along with
4488 (Contains_Ignored_Ghost_Code): New routine
4489 along with pragma Inline.
4490 (Set_Contains_Ignored_Ghost_Code): New routine along with pragma Inline.
4491 * exp_ch3.adb Add with and use clauses for Ghost.
4492 (Freeze_Type): Capture/restore the value of Ghost_Mode on entry/exit.
4493 Set the Ghost_Mode in effect.
4494 (Restore_Globals): New routine.
4495 * exp_ch7.adb (Process_Declarations): Do not process a context
4496 that invoves an ignored Ghost entity.
4497 * exp_dbug.adb (Qualify_All_Entity_Names): Skip an ignored Ghost
4498 construct that has been rewritten as a null statement.
4499 * exp_disp.adb Add with and use clauses for Ghost.
4500 (Make_DT): Capture/restore the value of Ghost_Mode on entry/exit. Set
4501 the Ghost_Mode in effect.
4502 (Restore_Globals): New routine.
4503 * exp_util.adb (Requires_Cleanup_Actions): An ignored Ghost entity
4504 does not require any clean up. Add two missing cases that deal
4505 with block statements.
4506 * freeze.adb Add with and use clauses for Ghost.
4507 (Freeze_Entity): Capture/restore the value of Ghost_Mode on entry/exit.
4508 Set the Ghost_Mode in effect.
4509 (Restore_Globals): New routine.
4510 * frontend.adb Add with and use clauses for Ghost. Remove any
4511 ignored Ghost code from all units that qualify.
4512 * ghost.adb New unit.
4513 * ghost.ads New unit.
4514 * gnat1drv.adb Add with clause for Ghost. Initialize and lock
4515 the table in package Ghost.
4516 * lib.ads: Alphabetize several subprogram declarations.
4517 * lib-xref.adb (Output_References): Do not generate reference
4518 information for ignored Ghost entities.
4519 * opt.ads Add new type Ghost_Mode_Type and new global variable
4521 * rtsfind.adb (Load_RTU): Provide a clean environment when
4522 loading a runtime unit.
4523 * sem.adb (Analyze): Capture/restore the value of Ghost_Mode on
4524 entry/exit as the node may set a different mode.
4526 Capture/restore the value of Ghost_Mode on entry/exit as the
4527 unit may be withed from a unit with a different Ghost mode.
4528 * sem_ch3.adb Add with and use clauses for Ghost.
4529 (Analyze_Full_Type_Declaration, Analyze_Incomplete_Type_Decl,
4530 Analyze_Number_Declaration, Analyze_Private_Extension_Declaration,
4531 Analyze_Subtype_Declaration): Set the Ghost_Mode in effect. Mark
4532 the entity as Ghost when there is a Ghost_Mode in effect.
4533 (Array_Type_Declaration): The implicit base type inherits the
4534 "ghostness" from the array type.
4535 (Derive_Subprogram): The
4536 alias inherits the "ghostness" from the parent subprogram.
4537 (Make_Implicit_Base): The implicit base type inherits the
4538 "ghostness" from the parent type.
4539 * sem_ch5.adb Add with and use clauses for Ghost.
4540 (Analyze_Assignment): Set the Ghost_Mode in effect.
4541 * sem_ch6.adb Add with and use clauses for Ghost.
4542 (Analyze_Abstract_Subprogram_Declaration, Analyze_Procedure_Call,
4543 Analyze_Subprogram_Body_Helper, Analyze_Subprogram_Declaration):
4544 Set the Ghost_Mode in effect. Mark the entity as Ghost when
4545 there is a Ghost_Mode in effect.
4546 * sem_ch7.adb Add with and use clauses for Ghost.
4547 (Analyze_Package_Body_Helper, Analyze_Package_Declaration,
4548 Analyze_Private_Type_Declaration): Set the Ghost_Mode in
4549 effect. Mark the entity as Ghost when there is a Ghost_Mode
4551 * sem_ch8.adb Add with and use clauses for Ghost.
4552 (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
4553 Analyze_Object_Renaming, Analyze_Package_Renaming,
4554 Analyze_Subprogram_Renaming): Set the Ghost_Mode in effect. Mark
4555 the entity as Ghost when there is a Ghost_Mode in effect.
4556 (Find_Type): Check the Ghost context of a type.
4557 * sem_ch11.adb Add with and use clauses for Ghost.
4558 (Analyze_Exception_Declaration): Set the Ghost_Mode in
4559 effect. Mark the entity as Ghost when there is a Ghost_Mode
4561 * sem_ch12.adb Add with and use clauses for Ghost.
4562 (Analyze_Generic_Package_Declaration,
4563 Analyze_Generic_Subprogram_Declaration): Set the Ghost_Mode in effect.
4564 Mark the entity as Ghost when there is a Ghost_Mode in effect.
4565 * sem_prag.adb Add with and use clauses for Ghost.
4566 (Analyze_Pragma): Ghost-related checks are triggered when there
4567 is a Ghost mode in effect.
4568 (Create_Abstract_State): Mark the
4569 entity as Ghost when there is a Ghost_Mode in effect.
4570 * sem_res.adb Add with and use clauses for Ghost.
4571 (Check_Ghost_Context): Removed.
4572 * sem_util.adb (Check_Ghost_Completion): Removed.
4573 (Check_Ghost_Derivation): Removed.
4574 (Incomplete_Or_Partial_View):
4575 Add a guard in case the entity has not been analyzed yet
4576 and does carry a scope.
4577 (Is_Declaration): New routine.
4578 (Is_Ghost_Entity): Removed.
4579 (Is_Ghost_Statement_Or_Pragma):
4581 (Is_Subject_To_Ghost): Removed.
4582 (Set_Is_Ghost_Entity):
4584 (Within_Ghost_Scope): Removed.
4585 * sem_util.adb (Check_Ghost_Completion): Removed.
4586 (Check_Ghost_Derivation): Removed.
4587 (Is_Declaration): New routine.
4588 (Is_Ghost_Entity): Removed.
4589 (Is_Ghost_Statement_Or_Pragma): Removed.
4590 (Is_Subject_To_Ghost): Removed.
4591 (Set_Is_Ghost_Entity): Removed.
4592 (Within_Ghost_Scope): Removed.
4593 * sinfo.ads Add a section on Ghost mode.
4594 * treepr.adb (Print_Header_Flag): New routine.
4595 (Print_Node_Header): Factor out code. Output flag
4596 Is_Ignored_Ghost_Node.
4597 * gcc-interface/Make-lang.in: Add dependency for unit Ghost.
4599 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
4601 * freeze.adb (Freeze_Array_Type) <Complain_CS>: Remove always
4602 true test and unreachable 'else' arm.
4604 2015-01-06 Vincent Celier <celier@adacore.com>
4606 * prj-conf.adb (Check_Target): Improve error message when
4607 there are mismatched targets between the on in the configuration
4608 project file and the specified one, either in the main project
4609 file or in the --target= switch.
4611 2015-01-06 Pascal Obry <obry@adacore.com>
4613 * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Mode and
4614 Install_Name attribute definitions.
4616 2015-01-06 Ed Schonberg <schonberg@adacore.com>
4618 * freeze.adb (Wrap_Imported_Subprogram): Indicate that the
4619 generated Import pragma for the internal imported procedure does
4620 not come from an aspect, so that Is_Imported can be properly
4623 2015-01-06 Gary Dismukes <dismukes@adacore.com>
4625 * sem_ch12.adb (Might_Inline_Subp): Record whether
4626 any subprograms in the generic package are marked with
4627 pragma Inline_Always (setting flag Has_Inline_Always).
4628 (Analyze_Package_Instantiation): Add test of Has_Inline_Always
4629 alongside existing test of Front_End_Inlining as alternative
4630 conditions for setting Inline_Now. Also add test of
4631 Has_Inline_Always along with Front_End_Inlining test as an
4632 alternative condition for setting Needs_Body to False.
4634 2015-01-06 Tristan Gingold <gingold@adacore.com>
4636 * i-cpoint.adb (Copy_Array): Handle overlap.
4638 2015-01-06 Pascal Obry <obry@adacore.com>
4640 * bindgen.adb: Minor style fix.
4642 2015-01-06 Robert Dewar <dewar@adacore.com>
4644 * sem_util.ads, sem_util.adb: Minor reformatting.
4646 2015-01-06 Vincent Celier <celier@adacore.com>
4648 * prj-conf.adb (Parse_Project_And_Apply_Config): Reset incomplete
4649 with flags before parsing the projects.
4650 * prj-err.adb (Error_Msg): Do nothing if there are incomplete withs.
4651 * prj-part.adb (Post_Parse_Context_Clause): Set Incomplete_Withs
4652 to True in the flags, when Ignore_Missing_With is True and an
4653 imported project cannot be found.
4654 * prj-proc.adb (Expression): When there are incomplete withs and
4655 a variable or attribute is not found, set the variable/attribute
4657 * prj.ads (Processing_Flags): New flag Incomplete_Withs,
4660 2015-01-06 Vasiliy Fofanov <fofanov@adacore.com>
4662 * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-conf.adb,
4663 prj-err.adb: Add new switch --no-command-line.
4665 2015-01-06 Ed Schonberg <schonberg@adacore.com>
4667 * sem_ch12.adb: Sloc of wrapper is that of instantiation.
4669 2015-01-06 Robert Dewar <dewar@adacore.com>
4671 * sem_ch11.adb: Minor reformatting.
4673 2015-01-06 Ed Schonberg <schonberg@adacore.com>
4675 * exp_aggr.adb (Get_Assoc_Expr): New routine internal to
4676 Build_Array_Aggr_Code, used to initialized components covered
4677 by a box association. If the component type is scalar and has
4678 a default aspect, use it to initialize such components.
4680 2015-01-06 Pascal Obry <obry@adacore.com>
4682 * rtinit.c (__gnat_runtime_initialize): Add a parameter to
4683 control the setup of the exception handler.
4684 * initialize.c: Remove unused declaration.
4685 * bindgen.adb: Always call __gnat_runtime_initialize and pass
4686 whether the exeception handler must be set or not.
4688 2015-01-06 Thomas Quinot <quinot@adacore.com>
4690 * freeze.adb (Set_SSO_From_Defaults): When setting scalar storage
4691 order to native from default, make sure to also adjust bit order.
4692 * exp_aggr.adb: Minor reformatting.
4694 2015-01-06 Robert Dewar <dewar@adacore.com>
4696 * s-valllu.adb, s-valllu.ads, s-valuti.ads, s-valuns.adb, s-valuns.ads,
4697 s-valrea.adb, s-valrea.ads: Add some additional guards for
4698 Str'Last = Positive'Last.
4700 2015-01-06 Ed Schonberg <schonberg@adacore.com>
4702 * sem_ch12.adb, sem_ch8.adb: Ongoing work for wrappers for actual
4705 2015-01-06 Javier Miranda <miranda@adacore.com>
4707 * exp_disp.adb (Expand_Interface_Conversion): Reapply patch.
4709 2015-01-06 Thomas Quinot <quinot@adacore.com>
4711 * sem_util.ads: Minor reformatting.
4712 * sem_cat.adb (In_RCI_Visible_Declarations): Change back to...
4713 (In_RCI_Declaration) Return to old name, as proper checking of
4714 entity being in the visible part depends on entity kind and must
4715 be done by the caller.
4717 2015-01-06 Ed Schonberg <schonberg@adacore.com>
4719 * sem_ch12.adb, sem_ch12.ads, sem_ch8.adb: Ongoing work for wrappers
4720 for operators in SPARK.
4722 2015-01-06 Ed Schonberg <schonberg@adacore.com>
4724 * sem_aggr.adb (Get_Value): In ASIS mode, preanalyze the
4725 expression in an others association before making copies for
4726 separate resolution and accessibility checks. This ensures that
4727 the type of the expression is available to ASIS in all cases,
4728 in particular if the expression is itself an aggregate.
4730 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
4732 * einfo.ads (Has_Independent_Components): Document extended
4734 * einfo.adb (Has_Independent_Components): Remove obsolete assertion.
4735 (Set_Has_Independent_Components): Adjust assertion.
4736 * sem_prag.adb (Analyze_Pragma): Also set Has_Independent_Components
4737 for pragma Atomic_Components. Set Has_Independent_Components
4738 on the object instead of the type for an object declaration with
4739 pragma Independent_Components.
4741 2015-01-06 Olivier Hainque <hainque@adacore.com>
4743 * set_targ.adb (Read_Target_Dependent_Values): Set
4744 Long_Double_Index when "long double" is read.
4745 (elaboration code): Register_Back_End_Types only when not reading from
4746 config files. Doing otherwise is pointless and error prone.
4748 2015-01-06 Robert Dewar <dewar@adacore.com>
4750 * s-valrea.adb (Value_Real): Check for Str'Last = Positive'Last
4752 2015-01-06 Robert Dewar <dewar@adacore.com>
4754 * a-wtgeau.adb, a-ztgeau.adb, a-tigeau.adb (String_Skip): Raise PE if
4755 Str'Last = Positive'Last.
4757 2015-01-06 Ed Schonberg <schonberg@adacore.com>
4759 * sem_ch6.adb (Matches_Limited_View): Handle properly the case
4760 where the non-limited type is a generic actual and appears as
4761 a subtype of the non-limited view of the other.
4762 * freeze.adb (Build_Renamed_Body): If the return type of the
4763 declaration that is being completed is a limited view and the
4764 non-limited view is available, use it in the specification of
4767 2015-01-06 Ed Schonberg <schonberg@adacore.com>
4769 * sem_ch3.adb (Find_Type_Name): If there is a previous tagged
4770 incomplete view, the type of the classwide type common to both
4771 views is the type being declared.
4773 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
4775 * einfo.ads (Is_Independent): Further document extended usage.
4777 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
4779 * einfo.ads (Is_Independent): Document extended usage.
4780 * einfo.adb (Is_Independent): Remove obsolete assertion.
4781 (Set_Is_Independent): Likewise.
4782 * sem_prag.adb (Process_Atomic_Shared_Volatile): Rename into...
4783 (Process_Atomic_Independent_Shared_Volatile): ...this.
4784 Deal with pragma Independent here.
4785 (Analyze_Pragma): Adjust
4786 to above renaming and also invoke it for pragma Independent.
4787 Adjust comment for Independent_Components.
4789 2015-01-06 Robert Dewar <dewar@adacore.com>
4791 * snames.ads-tmpl: Remove entries for attribute Enum_Image.
4792 * exp_attr.adb: Remove reference to Attribute_Enum_Image.
4794 2015-01-06 Robert Dewar <dewar@adacore.com>
4796 * s-vallli.adb (Value_Long_Long_Integer): Handle case of Str'Last
4798 * s-valllu.adb (Value_Long_Long_Unsigned): Handle case of
4799 Str'Last = Positive'Last.
4801 2015-01-06 Robert Dewar <dewar@adacore.com>
4803 * sem_prag.adb (Process_Inline): Remove redundant construct
4804 warning (-gnatw.r) for an ineffective pragma Inline.
4806 2015-01-06 Robert Dewar <dewar@adacore.com>
4808 * s-valint.adb: Fix typo in last checkin.
4809 * s-valuns.adb (Value_Unsigned): More efficient fix for
4811 * sem_attr.adb (Analyze_Attribute): Minor reformatting
4812 (Eval_Attribute): Static ervaluation of 'Img for enumeration types.
4814 2015-01-06 Robert Dewar <dewar@adacore.com>
4816 * s-valint.adb, s-valuns.adb (Value_Integer): Deal with case where
4817 Str'Last = Positive'Last
4819 2015-01-06 Thomas Quinot <quinot@adacore.com>
4821 * xoscons.adb: Display exception information and return non-zero
4822 exit status in top level exception handler.
4824 2015-01-06 Ed Schonberg <schonberg@adacore.com>
4826 * sem_ch8.adb: Code clean up.
4828 2015-01-06 Tristan Gingold <gingold@adacore.com>
4830 * targparm.ads: Remove obsolete comment.
4832 2015-01-06 Olivier Hainque <hainque@adacore.com>
4834 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Variable): When
4835 constructing a ref to variable, update inner_const_flag from the
4836 variable TREE_READONLY attribute.
4837 * gcc-interface/targtyps.c (WIDEST_HARDWARE_FP_SIZE): Remove default
4839 (get_target_float_size): Remove.
4840 (get_target_double_size): Remove.
4841 (get_target_long_double_size): Remove.
4843 2015-01-06 Pascal Obry <obry@adacore.com>
4845 * adaint.c (ProcListEvt): Set to NULL.
4846 * rtinit.c: New file.
4847 (__gnat_rt_init_count): New reference counter set to 0.
4848 (__gnat_runtime_initialize): Move code here from __gnat_initialize when
4849 this code is actually needed for the runtime initialization. This
4850 routine returns immediately if the initialization has already been done.
4851 * final.c: Revert previous change.
4852 * rtfinal.c: New file.
4853 (__gnat_runtime_finalize)[Win32]: Add finalization of the critical
4854 section and event. The default version of this routine is empty (except
4855 for the reference counting code). This routine returns immediately if
4856 some others libraries are referencing the runtime.
4857 * bindgen.adb (Gen_Adainit): Generate call to Runtime_Initialize
4858 remove circuitry to initialize the signal handler as this is
4859 now done by the runtime initialization routine.
4860 (Gen_Adafinal): Generate call to Runtime_Finalize.
4861 * gnat_ugn.texi: Update documentation about concurrency and
4862 initialization/finalization of the run-time.
4863 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Add
4864 references to rtfinal.o and rtinit.o
4866 2015-01-06 Robert Dewar <dewar@adacore.com>
4868 * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
4870 * sem_attr.adb: Implement Enum_Image attribute.
4871 * snames.ads-tmpl: Add entries for Enum_Image attribute.
4873 2015-01-06 Robert Dewar <dewar@adacore.com>
4875 * namet.ads: Document use of Boolean2 for No_Use_Of_Entity.
4876 * restrict.ads (No_Use_Of_Entity): New table.
4877 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
4878 Ignore No_Use_Of_Entity (will be processed in parser).
4879 * snames.ads-tmpl: Add entry for Name_No_Use_Of_Entity.
4881 2015-01-06 Vincent Celier <celier@adacore.com>
4883 * prj-tree.adb (Imported_Or_Extended_Project_Of): Do not try
4884 to check for an extended project, if a project does not have
4885 yet a project declaration.
4887 2015-01-06 Pierre-Marie Derodat <derodat@adacore.com>
4889 * scos.ads: Update documentation about the SCO table build
4890 process and about table records format.
4891 * par_sco.ads (SCO_Record): Rename to SCO_Record_Raw.
4892 (SCO_Record_Filtered): New procedure.
4893 (Set_SCO_Logical_Operator): New procedure.
4894 (dsco): Update documentation.
4895 * par_sco.adb: Update library-level comments.
4896 (SCO_Generation_State_Type): New type.
4897 (SCO_Generation_State): New variable.
4898 (SCO_Raw_Table): New package instanciation.
4899 (Condition_Pragma_Hash_Table): Rename to SCO_Raw_Hash_Table.
4901 (Tristate): New type.
4902 (Is_Logical_Operator): Return Tristate and update documentation.
4903 (Has_Decision): Update call to Is_Logical_Operator and complete
4905 (Set_Table_Entry): Rename to Set_Raw_Table_Entry, update
4906 comment, add an assertion for state checking and change
4907 references to SCO_Table into SCO_Raw_Table.
4908 (dsco): Refactor to dump the raw and the filtered tables.
4909 (Process_Decisions.Output_Decision_Operand): Handle putative
4910 short-circuit operators.
4911 (Process_Decisions.Output_Element): Update references
4912 to Set_Table_Entry and to Condition_Pragma_Hash_Table.
4913 (Process_Decisions.Process_Decision_Operand): Update call
4914 to Is_Logical_Operator.
4915 (Process_Decisions.Process_Node): Handle putative short-circuit
4916 operators and change references to
4917 SCO_Table into SCO_Raw_Table.
4918 (SCO_Output): Add an assertion
4919 for state checking and remove code that used to stamp out SCO entries.
4920 (SCO_Pragma_Disabled): Change reference to SCO_Table
4922 (SCO_Record): Rename to SCO_Record_Raw,
4923 add an assertion for state checking and change references
4924 to SCO_Table into SCO_Raw_Table.
4925 (Set_SCO_Condition): Add an assertion for state checking, update
4926 references to Condition_Pragma_Hash_Table and change references to
4927 SCO_Table into SCO_Raw_Table.
4928 (Set_SCO_Pragma_Enabled): Add an assertion for state checking and
4929 change references to SCO_Table into SCO_Raw_Table.
4930 (Set_SCO_Logical_Operator): New procedure.
4931 (Traverse_Declarations_Or_Statements.Set_Statement_Entry): Update
4932 references to Set_Table_Entry and to Condition_Pragma_Hash_Table.
4933 (SCO_Record_Fildered): New procedure.
4934 * gnat1drv.adb (Gnat1drv): Invoke the SCO filtering pass.
4935 * lib-writ.adb (Write_ALI): Invoke the SCO filtering pass and
4937 * par-load.adb (Load): Update reference to SCO_Record.
4938 * par.adb (Par): Update reference to SCO_Record.
4939 * put_scos.adb (Put_SCOs): Add an assertion to check that no
4940 putative SCO condition reaches this end.
4941 * sem_ch10.adb (Analyze_Proper_Body): Update reference to SCO_Record.
4942 * sem_res.adb (Resolve_Logical_Op): Validate putative SCOs
4943 when corresponding to an "and"/"or" operator affected by the
4944 Short_Circuit_And_Or pragma.
4946 2015-01-06 Robert Dewar <dewar@adacore.com>
4948 * sem_ch8.adb (Analyze_Use_Package): Give more specific error
4949 msg for attempted USE of generic subprogram or subprogram.
4951 2015-01-06 Robert Dewar <dewar@adacore.com>
4953 * s-valllu.adb, a-tiinau.adb, a-timoau.adb, a-ztinau.adb, a-ztmoau.adb,
4954 s-valuns.adb, s-valrea.adb, a-wtflau.adb, a-tiflau.adb, a-ztflau.adb,
4955 a-wtinau.adb, a-wtmoau.adb: Document recognition of : in place of #.
4957 2015-01-06 Ed Schonberg <schonberg@adacore.com>
4959 * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
4960 that specify stream subprograms, if the prefix is a class-wide
4961 type then the generated attribute definition clause must apply
4962 to the same class-wide type.
4963 (Default_Iterator): An iterator defined by an aspect of some
4964 container type T must have a first parameter of type T, T'class,
4965 or an access to such (from code reading RM 5.5.1 (2/3)).
4967 2015-01-06 Arnaud Charlet <charlet@adacore.com>
4969 * gnat1drv.adb: Minor: complete previous change.
4971 2015-01-06 Olivier Hainque <hainque@adacore.com>
4973 * set_targ.ads (C_Type_For): New function. Return the name of
4974 a C type supported by the back-end and suitable as a basis to
4975 construct the standard Ada floating point type identified by
4976 the T parameter. This is used as a common ground to feed both
4977 ttypes values and the GNAT tree nodes for the standard floating
4979 * set_targ.adb (Long_Double_Index): The index at which "long
4980 double" gets registered in the FPT_Mode_Table. This is useful to
4981 know whether we have a "long double" available at all and get at
4982 it's characteristics without having to search the FPT_Mode_Table
4983 when we need to decide which C type should be used as the
4984 basis for Long_Long_Float in Ada.
4985 (Register_Float_Type): Fill Long_Double_Index.
4986 (FPT_Mode_Index_For): New function. Return the index in
4987 FPT_Mode_Table that designates the entry corresponding to the
4988 provided C type name.
4989 (FPT_Mode_Index_For): New function. Return the index in
4990 FPT_Mode_Table that designates the entry for a back-end type
4991 suitable as a basis to construct the standard Ada floating point
4992 type identified by the input T parameter.
4993 (elaboration code): Register_Back_End_Types unconditionally,
4994 so C_Type_For can operate regardless of -gnateT. Do it
4995 early so we can query it for the floating point sizes, via
4996 FPT_Mode_Index_For. Initialize Float_Size, Double_Size and
4997 Long_Double_Size from the FPT_Mode_Table, as cstand will do.
4998 * cstand.adb (Create_Float_Types): Use C_Type_For to determine
4999 which C type should be used as the basis for the construction
5000 of the Standard Ada floating point types.
5001 * get_targ.ads (Get_Float_Size, Get_Double_Size,
5002 Get_Long_Double_Size): Remove.
5003 * get_targ.adb: Likewise.
5005 2015-01-06 Thomas Quinot <quinot@adacore.com>
5007 * sem_cat.adb (In_RCI_Declaration): Remove unnecessary
5008 parameter and rename to...
5009 (In_RCI_Visible_Declarations): Fix handling of private part of nested
5011 (Validate_RCI_Subprogram_Declaration): Reject illegal function
5012 returning anonymous access in RCI unit.
5014 2015-01-06 Ed Schonberg <schonberg@adacore.com>
5016 * sem_ch6.adb (New_Overloaded_Entity): In GNATprove mode, a
5017 function wrapper may be a homonym of another local declaration.
5018 * sem_ch8.adb (Analyze_Subprogram_Renaming): In GNATprove mode,
5019 build function and operator wrappers after the actual subprogram
5020 has been resolved, and replace the standard renaming declaration
5021 with the declaration of wrapper.
5022 * sem_ch12.ads (Build_Function_Wrapper, Build_Operator_Wraooer):
5023 make public for use elsewhere.
5024 * sem_ch12.adb (Build_Function_Wrapper, Build_Operator_Wraooer):
5025 rewrite, now that actual is fully resolved when wrapper is
5028 2015-01-06 Javier Miranda <miranda@adacore.com>
5030 * exp_disp.adb: Revert previous change.
5032 2015-01-06 Robert Dewar <dewar@adacore.com>
5034 * exp_util.adb: Change name Name_Table_Boolean to
5035 Name_Table_Boolean1.
5036 * namet.adb: Change name Name_Table_Boolean to Name_Table_Boolean1
5037 Introduce Name_Table_Boolean2/3.
5038 * namet.ads: Change name Name_Table_Boolean to Name_Table_Boolean1
5039 Introduce Name_Table_Boolean2/3.
5040 * par-ch13.adb: Change name Name_Table_Boolean to
5041 Name_Table_Boolean1.
5043 2015-01-06 Bob Duff <duff@adacore.com>
5045 * gnat_rm.texi: Improve documentation regarding No_Task_Termination.
5047 2015-01-06 Ed Schonberg <schonberg@adacore.com>
5049 * sem_aggr.adb (Resolve_Record_Aggregte, Get_Value): For an
5050 others choice that covers multiple components, analyze each
5051 copy with the type of the component even in compile-only mode,
5052 to detect potential accessibility errors.
5054 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
5056 * sem_res.adb (Is_Assignment_Or_Object_Expression): New routine.
5057 (Resolve_Actuals): An effectively volatile out
5058 parameter cannot act as an in or in out actual in a call.
5059 (Resolve_Entity_Name): An effectively volatile out parameter
5062 2015-01-06 Ed Schonberg <schonberg@adacore.com>
5064 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): If the body is
5065 the expansion of an expression function it may be pre-analyzed
5066 if a 'access attribute is applied to the function, in which case
5067 last_entity may have been assigned already.
5069 2015-01-06 Ed Schonberg <schonberg@adacore.com>
5071 * sem_ch4.adb (Analyze_One_Call): If formal has an incomplete
5072 type and actual has the corresponding full view, there is no
5073 error, but a case of use of incomplete type in a predicate or
5074 invariant expression.
5076 2015-01-06 Vincent Celier <celier@adacore.com>
5078 * makeutl.adb (Insert_No_Roots): Make sure that the same source
5079 in two different project tree is checked in both trees, if they
5080 are sources of two different projects, extended or not.
5082 2015-01-06 Arnaud Charlet <charlet@adacore.com>
5084 * gnat1drv.adb: Minor code clean up.
5085 (Adjust_Global_Switches): Ignore gnatprove_mode in codepeer_mode.
5087 2015-01-06 Bob Duff <duff@adacore.com>
5089 * osint.adb (Read_Source_File): Don't print out
5090 file name unless T = Source.
5092 2015-01-06 Ed Schonberg <schonberg@adacore.com>
5094 * sem_util.adb (Is_Variable, Is_OK_Variable_For_Out_Formal):
5095 recognize improper uses of constant_reference types as actuals
5096 for in-out parameters.
5097 (Check_Function_Call): Do not collect identifiers if function
5098 name is missing because of previous error.
5100 2015-01-06 Robert Dewar <dewar@adacore.com>
5102 * ali-util.adb, sem_prag.adb, rtsfind.adb, sem_util.adb, sem_res.adb,
5103 ali.adb, binde.adb, namet.adb, namet.ads, gnatls.adb, bcheck.adb:
5104 Minor change of name Name_Table_Info => Name_Table_Int.
5106 2015-01-06 Robert Dewar <dewar@adacore.com>
5108 * exp_strm.adb (Build_Elementary_Input_Call): Clarify comments
5109 in previous checkin.
5110 * freeze.adb (Freeze_Fixed_Point_Type): Add warning for shaving
5112 * sem_prag.adb, sem_ch10.adb, sem_ch6.adb: Minor reformatting.
5114 2015-01-06 Vincent Celier <celier@adacore.com>
5116 * a-strsup.adb (Times (Natural;String;Positive)): Raise
5117 Length_Error, not Index_Error, when the result is too long.
5119 2015-01-06 Thomas Quinot <quinot@adacore.com>
5121 * a-direct.adb (Create_Path): Minor error handling and
5122 performance improvement.
5124 2015-01-06 Robert Dewar <dewar@adacore.com>
5126 * checks.ads, sem_ch12.adb: Minor reformatting.
5127 * exp_ch4.adb (Expand_N_Op_Divide): Generate explicit divide by
5128 zero check for fixed-point case if Backend_Divide_Checks_On_Target
5131 2015-01-06 Robert Dewar <dewar@adacore.com>
5133 * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
5134 Do not set restriction No_Elaboration_Code unless the pragma
5135 appears in the main unit).
5137 2015-01-06 Ed Schonberg <schonberg@adacore.com>
5139 * sem_ch10.adb (Is_Regular_With_Clause): Add guard to verify
5140 that with clause has already been analyzed before checking kind
5143 2015-01-06 Robert Dewar <dewar@adacore.com>
5145 * exp_strm.adb (Build_Elementary_Input_Call): Return base type
5146 (as required by RM).
5148 2015-01-06 Arnaud Charlet <charlet@adacore.com>
5150 * a-reatim.adb ("/"): Add explicit pragma Unsuppress (Division_Check).
5152 2015-01-06 Robert Dewar <dewar@adacore.com>
5154 * sem_prag.adb (Process_Suppress_Unsuppress): Add extra warning
5155 for ignoring pragma Suppress (Elaboration_Check) in SPARK mode.
5157 2015-01-06 Javier Miranda <miranda@adacore.com>
5159 * exp_disp.adb (Expand_Interface_Conversion): No displacement
5160 of the pointer to the object needed when the type of the operand
5161 is not an interface type and the interface is one of its parent
5162 types (since they share the primary dispatch table).
5164 2015-01-06 Vincent Celier <celier@adacore.com>
5166 * prj-env.adb: Minor comment update.
5168 2015-01-06 Javier Miranda <miranda@adacore.com>
5170 * sem_res.adb (Valid_Conversion): Restrict the checks on anonymous
5171 access types whose target type is an interface type to operands
5172 that are access types; required to report an error when the
5173 operand is not an access type.
5175 2015-01-06 Bob Duff <duff@adacore.com>
5177 * a-cfinve.adb (Copy): Set the discriminant to the Length when
5179 * a-cofove.ads (Capacity): Add a postcondition.
5180 * a-cfinve.ads (Capacity): Add a postcondition.
5181 (Reserve_Capacity): Correct the postcondition in the case where
5182 Capacity = 0; that means "Capacity => Length (Container)".
5183 * a-cofove.adb (Elems[c]): Add a comment
5184 explaining the dangers and how to avoid them.
5186 2015-01-06 Ed Schonberg <schonberg@adacore.com>
5188 * sem_ch12.adb: Code clean up.
5190 2015-01-06 Arnaud Charlet <charlet@adacore.com>
5192 * gnatvsn.ads: Bump copyright year.
5194 2015-01-06 Robert Dewar <dewar@adacore.com>
5196 * s-taskin.ads, s-traces.ads: Minor reformatting.
5197 * exp_util.adb: Minor typo fix.
5199 2015-01-06 Vincent Celier <celier@adacore.com>
5201 * gnatls.adb (Search_RTS): Invoke Initialize_Default_Project_Path
5202 with the runtime name.
5203 * prj-env.adb (Initialize_Default_Project_Path): When both
5204 Target_Name and Runtime_Name are not empty string, add to the
5205 project path the two directories .../lib/gnat and .../share/gpr
5206 related to the runtime.
5207 * prj-env.ads (Initialize_Default_Project_Path): New String
5208 parameter Runtime_Name, defaulted to the empty string.
5210 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
5212 * frontend.adb: Guard against the case where a configuration
5213 pragma may be split into multiple pragmas and the original
5214 rewritten as a null statement.
5215 * sem_prag.adb (Analyze_Pragma): Insert a brand new Check_Policy
5216 pragma using Insert_Before rather than Insert_Action. This
5217 takes care of the configuration pragma case where Insert_Action
5220 2015-01-06 Bob Duff <duff@adacore.com>
5222 * a-coboho.ads (Element_Access): Add "pragma
5223 No_Strict_Aliasing (Element_Access);". This is needed because
5224 we are unchecked-converting from Address to Element_Access.
5225 * a-cofove.ads, a-cofove.adb (Elems,Elemsc): Fix bounds of the
5228 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
5230 * sem_res.adb (Resolve_Actuals): Remove the
5231 restriction which prohibits volatile actual parameters with
5232 enabled external propery Async_Writers to act appear in procedure
5233 calls where the corresponding formal is of mode OUT.
5235 2015-01-05 Jakub Jelinek <jakub@redhat.com>
5237 * gnat_ugn.texi: Bump @copying's copyright year.
5239 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
5242 * gcc-interface/Makefile.in (../stamp-tools): Reinstate dropped code.
5244 2015-01-04 Uros Bizjak <ubizjak@gmail.com>
5246 * gcc-interface/misc.c (internal_error_function): Use xasprintf instead
5247 of unchecked asprintf.
5250 Copyright (C) 2015 Free Software Foundation, Inc.
5252 Copying and distribution of this file, with or without modification,
5253 are permitted in any medium without royalty provided the copyright
5254 notice and this notice are preserved.