1 2016-04-21 Hristian Kirtchev <kirtchev@adacore.com>
3 * sem_ch3.adb: Code cleanup.
4 * sem_ch6.adb: Code cleanup.
5 (Is_Matching_Limited_View): New routine.
6 (Matches_Limited_With_View): Reimplemented.
7 * sem_ch10.adb (Decorate_Type): Code cleanup.
9 2016-04-21 Doug Rupp <rupp@adacore.com>
11 * tracebak.c (PPC ELF): Add macro defs for lynxos178e.
13 2016-04-21 Ed Schonberg <schonberg@adacore.com>
15 * sem_ch4.adb (Try_Container_Indexing): If there are overloaded
16 indexing functions, collect all overloadings of the call firts,
17 and then transfer them to indexing node, to prevent interleaving
18 of the set of interpretations of the nodes involved.
19 * sem_res.adb (Resolve): Suppress cascaded errors that report
20 ambiguities when one of the actuals in an overloaded generatlized
21 indexing operation is illegal and has type Any_Type, as is done
22 for similar cascaded errors in subprogram calls.
23 (Valid_Tagged_Conversion): Cleanup conversion checks when one
24 of the types involved is a class-wide subtype.
26 2016-04-21 Ed Schonberg <schonberg@adacore.com>
28 * sem_ch12.adb (Load_Parent_Of_Generic): When looking for the
29 subprogram declaration within a wrapper package, skip pragmas
30 that may have been generated by aspect specifications on the
33 2016-04-21 Javier Miranda <miranda@adacore.com>
35 * exp_aggr.adb (Component_Not_OK_For_Backend): Generating C
36 code return True for array identifiers since the backend needs
37 to initialize such component by means of memcpy().
39 2016-04-21 Arnaud Charlet <charlet@adacore.com>
41 * a-tasatt.adb, a-tasatt.ads (Fast_Path): Rewritten to avoid reading
42 potentially uninitialized memory.
43 * sem_ch3.adb: Minor style fix in comment.
45 2016-04-21 Arnaud Charlet <charlet@adacore.com>
47 * gnat_rm.texi, gnat_ugn.texi,
48 doc/gnat_ugn/gnat_project_manager.rst,
49 doc/gnat_ugn/building_executable_programs_with_gnat.rst,
50 doc/gnat_ugn/gnat_and_program_execution.rst,
51 doc/gnat_ugn/gnat_utility_programs.rst,
52 doc/gnat_ugn/the_gnat_compilation_model.rst,
53 doc/gnat_rm/implementation_defined_attributes.rst,
54 doc/gnat_rm/standard_and_implementation_defined_restrictions.rst,
55 doc/gnat_rm/implementation_defined_pragmas.rst,
56 doc/gnat_rm/the_gnat_library.rst,
57 doc/gnat_rm/implementation_defined_aspects.rst: Update doc.
58 * doc/Makefile: Cleanups.
60 2016-04-21 Hristian Kirtchev <kirtchev@adacore.com>
62 * exp_pakd.adb, sem_ch13.adb: Minor reformatting.
64 2016-04-21 Ed Schonberg <schonberg@adacore.com>
66 * exp_dbug.adb, exp_dbug.ads (Qualify_Entity_Name): Add suffixes to
67 disambiguate local variables that may be hidden from inner visibility
68 by nested block declarations or loop variables.
70 2016-04-21 Jerome Lambourg <lambourg@adacore.com>
72 * s-soflin.adb: Initialize the Stack_Limit global variable.
74 2016-04-21 Hristian Kirtchev <kirtchev@adacore.com>
76 * lib-writ.adb: Minor reformatting.
78 2016-04-21 Ed Schonberg <schonberg@adacore.com>
80 * exp_pakd.adb (Compute_Number_Components): New function to
81 build an expression that computes the number of a components of
82 an array that may be multidimensional.
83 (Expan_Packed_Eq): Use it.
85 2016-04-21 Arnaud Charlet <charlet@adacore.com>
87 * g-traceb.ads: Update list of supported platforms.
89 2016-04-21 Ed Schonberg <schonberg@adacore.com>
91 * sem_ch13.adb (Add_Predicates): if the type is declared in
92 an inner package it may be frozen outside of the package, and
93 the generated pragma has not been analyzed yet, the expression
94 for the predicate must be captured and added to the predicate
95 function at this point.
97 2016-04-21 Hristian Kirtchev <kirtchev@adacore.com>
99 * contracts.adb (Analyze_Package_Body_Contract): Do not check
100 for a missing package refinement because 1) packages do not have
101 "refinement" and 2) the check for proper state refinement is
102 performed in a different place.
103 * einfo.adb (Has_Non_Null_Visible_Refinement): Reimplemented.
104 (Has_Null_Visible_Refinement): Reimplemented.
105 * sem_ch3.adb (Analyze_Declarations): Determine whether all
106 abstract states have received a refinement and if not, emit
108 * sem_ch7.adb (Analyze_Package_Declaration): Code
109 cleanup. Determine whether all abstract states of the
110 package and any nested packages have received a refinement
111 and if not, emit errors.
112 (Requires_Completion_In_Body): Add new formal parameter
113 Do_Abstract_States. Update the comment on usage. Propagate the
114 Do_Abstract_States flag to all Unit_Requires_Body calls.
115 (Unit_Requires_Body): Remove formal
116 parameter Ignore_Abstract_States. Add new formal paramter
117 Do_Abstract_States. Propagate the Do_Abstract_States flag to
118 all Requires_Completion_In calls.
119 * sem_ch7.ads (Unit_Requires_Body): Remove formal
120 parameter Ignore_Abstract_States. Add new formal paramter
121 Do_Abstract_States. Update the comment on usage.
122 * sem_ch9.adb (Analyze_Single_Protected_Declaration): Do
123 not initialize the constituent list as this is now done on a
124 need-to-add-element basis.
125 (Analyze_Single_Task_Declaration):
126 Do not initialize the constituent list as this is now done on
127 a need-to-add-element basis.
128 * sem_ch10.adb (Decorate_State): Do not initialize the constituent
129 lists as this is now done on a need-to-add-element basis.
130 * sem_prag.adb (Analyze_Constituent): Set the
131 refinement constituents when adding a new element.
132 (Analyze_Part_Of_In_Decl_Part): Set the Part_Of constituents when
133 adding a new element.
134 (Analyze_Part_Of_Option): Set the Part_Of
135 constituents when adding a new element.
136 (Analyze_Pragma): Set the Part_Of constituents when adding a new
138 (Check_Constituent_Usage (all versions)): Reimplemented.
139 (Collect_Constituent): Set the refinement constituents when adding
141 (Create_Abstract_State): Do not initialize the
142 constituent lists as this is now done on a need-to-add-element basis.
143 (Propagate_Part_Of): Set the Part_Of constituents when
144 adding a new element.
145 * sem_util.adb (Check_State_Refinements): New routine.
146 (Has_Non_Null_Refinement): Reimplemented.
147 (Has_Null_Refinement): Reimplemented.
148 (Requires_State_Refinement): Removed.
149 * sem_util.ads (Check_State_Refinements): New routine.
150 (Requires_State_Refinement): Removed.
152 2016-04-21 Hristian Kirtchev <kirtchev@adacore.com>
154 * lib-writ.adb, sem_ch6.adb: Minor reformatting and code cleanup.
155 * sem.adb: Fix comment.
157 2016-04-21 Ed Schonberg <schonberg@adacore.com>
159 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype
160 declaration with no aspects, whose subtype_mark is a subtype
161 with predicates, inherits the list of subprograms for the type.
163 2016-04-21 Arnaud Charlet <charlet@adacore.com>
165 * exp_aggr.adb (Has_Per_Object_Constraint): Refine previous
168 2016-04-21 Thomas Quinot <quinot@adacore.com>
170 * g-socket.adb (Raise_Host_Error): Include additional Name parameter.
172 2016-04-21 Ed Schonberg <schonberg@adacore.com>
174 * lib-writ.adb (Write_ALI): Do not record in ali file units
175 that are present in the files table but not analyzed. These
176 units are present because they appear in the context of units
177 named in limited_with clauses, and the unit being compiled does
178 not depend semantically on them.
180 2016-04-21 Ed Schonberg <schonberg@adacore.com>
182 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Simplify code to
183 create the procedure body for an function returning an array type,
184 when generating C code. Reuse the subprogram body rather than
185 creating a new one, both as an efficiency measure and because
186 in an instance the body may contain global references that must
189 2016-04-21 Hristian Kirtchev <kirtchev@adacore.com>
191 * sem_ch3.adb, exp_attr.adb, exp_ch6.adb, exp_aggr.adb: Minor
194 2016-04-21 Javier Miranda <miranda@adacore.com>
196 * exp_aggr.adb (Component_Check): Extend
197 the check that verifies that the aggregate has no function
198 calls to handle transformations performed by the frontend.
199 (Ultimate_Original_Expression): New subprogram.
201 2016-04-21 Philippe Gil <gil@adacore.com>
203 * krunch.adb (Krunch): Fix krunching of i-java.
205 2016-04-21 Arnaud Charlet <charlet@adacore.com>
207 * exp_ch8.adb (Evaluation_Required): Always return
208 True when Modify_Tree_For_C.
210 2016-04-21 Eric Botcazou <ebotcazou@adacore.com>
212 * gnatlink.adb (Gnatlink): Robustify detection of Windows target.
213 * alloc.ads: Minor comment fixes.
214 * einfo.ads: Fix typo.
216 2016-04-21 Arnaud Charlet <charlet@adacore.com>
218 * exp_aggr.adb (Component_Not_OK_For_Backend): Redo previous
219 changes to handle all cases of components depending on the
220 discriminant, not just string literals.
222 2016-04-21 Ed Schonberg <schonberg@adacore.com>
224 * sem_ch3.adb (Analyze_Subtype_Declaration): If the subtype
225 declaration is the generated declaration for a generic actual,
226 inherit predicates from the actual if it is a predicated subtype.
228 2016-04-21 Ed Schonberg <schonberg@adacore.com>
230 * exp_ch6.adb (Rewrite_Function_Call_For_C): If the function is
231 inherited and its result is controlling, introduce a conversion
232 on the actual for the corresponding procedure call, to avoid
233 spurious type errors.
235 2016-04-21 Jerome Lambourg <lambourg@adacore.com>
237 * krunch.adb (Krunch): Fix krunching of i-vxworks.
239 2016-04-21 Gary Dismukes <dismukes@adacore.com>
241 * exp_aggr.adb: Minor reformatting and code cleanup.
243 2016-04-21 Ed Schonberg <schonberg@adacore.com>
245 * sem_ch13.adb (Resolve_Name): Omit quantified expressions from
246 resolution, because they introduce local names. Full resolution
247 will take place when predicate function is constructed.
249 2016-04-21 Arnaud Charlet <charlet@adacore.com>
251 * exp_aggr.adb (Component_Not_OK_For_Backend): Refine previous
252 change to take into account Per_Object_Constraint field rather
253 than special casing strings.
254 * exp_ch6.adb: Fix typo in Replace_Returns.
256 2016-04-21 Hristian Kirtchev <kirtchev@adacore.com>
258 * sem_ch5.adb: Minor reformatting.
260 2016-04-21 Arnaud Charlet <charlet@adacore.com>
262 * exp_aggr.adb (Backend_Processing_Possible): Return False
263 when generating C and aggregate contains function calls.
265 2016-04-21 Tristan Gingold <gingold@adacore.com>
267 * krunch.adb (Krunch): Only partially krunch children of
268 Interfaces that aren't known.
270 2016-04-21 Ed Schonberg <schonberg@adacore.com>
272 * sem_prag.adb (Make_Inline): Handle properly the instantiation
273 of a generic subpprogram that carries an Inline aspect. Place
274 inline info on the anonymous subprogram that is constructed in
276 (Analyze_Pragma, case Pure): Do not check placement if pragma
277 appears within an instantiation, which can be nested at any level.
278 * sem_ch12.adb (Analyze_Instance_And_Renamings): Do not copy Freeze
279 node from anonymous subprogram to its visible renaming. The
280 freeze node will be constructed if the subprogram carries
282 (Set_Global): Preserve dimension information if present (from
285 2016-04-21 Vasiliy Fofanov <fofanov@adacore.com>
287 * gnatlink.adb: Change wording of the warning message on
288 problematic filenames to be more neutral. Add a new substring
289 "patch" introduced on Windows 10.
291 2016-04-21 Philippe Gil <gil@adacore.com>
293 * tracebak.c (__gnat_backtrace): handle bad RIP values (win64 only)
295 2016-04-21 Javier Miranda <miranda@adacore.com>
297 * exp_aggr.adb (Component_Not_OK_For_Backend): Return true for string
300 2016-04-21 Hristian Kirtchev <kirtchev@adacore.com>
302 * einfo.adb (Has_Non_Null_Abstract_State): New routine.
303 * einfo.ads New synthesized attribute
304 Has_Non_Null_Abstract_State along with occurrences in entities.
305 (Has_Non_Null_Abstract_State): New routine.
306 * sem_ch7.adb (Unit_Requires_Body): Add local variable
307 Requires_Body. A package declaring an abstract state requires
308 a body only when the state is non-null and the package contains
309 at least one other construct that requires completion in a body.
310 * sem_util.adb (Mode_Is_Off): Removed.
311 (Requires_State_Refinement): Remove an obsolete check. Code
314 2016-04-21 Bob Duff <duff@adacore.com>
316 * sem_attr.adb (Analyze_Attribute): In processing
317 the 'Old attribute, a warning is given for infinite recursion. Fix
318 the code to not crash when the prefix of 'Old denotes a protected
320 * sem_ch5.adb (Analyze_Iterator_Specification):
321 Avoid calling Is_Dependent_Component_Of_Mutable_Object in cases
322 where the parameter would not be an object.
324 2016-04-21 Eric Botcazou <ebotcazou@adacore.com>
326 * sem_eval.adb (Compile_Time_Compare): Be prepared for an empty
327 Etype or Underlying_Type of the operands.
329 2016-04-21 Eric Botcazou <ebotcazou@adacore.com>
331 * atree.adb (Print_Statistics): Protect against overflows and
332 print the memory consumption in bytes.
333 * table.adb (Reallocate): Do the intermediate calculation of the new
334 size using the Memory.size_t type.
336 2016-04-21 Gary Dismukes <dismukes@adacore.com>
338 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): Suppress
339 expansion of Attribute_Machine and Attribute_Model for AAMP.
341 2016-04-21 Ed Schonberg <schonberg@adacore.com>
343 * freeze.adb: Disable previous change for now.
345 2016-04-21 Ed Schonberg <schonberg@adacore.com>
347 * sem_ch8.adb (Find_Selected_Component): If prefix has an
348 access type and designated type is a limited view, introduce
349 an explicit dereference before continuing the analysis, and
350 set its type to the non-limited view of the designated type,
351 if we are in context where it is available.
353 2016-04-21 Ed Schonberg <schonberg@adacore.com>
355 * freeze.adb: Freeze profile in ASIS mode.
357 2016-04-21 Hristian Kirtchev <kirtchev@adacore.com>
359 * sem_aux.ads, sem_aux.adb (Has_Rep_Item): New variant.
360 * sem_util.adb (Inherit_Rep_Item_Chain): Reimplemented.
362 2016-04-21 Hristian Kirtchev <kirtchev@adacore.com>
364 * exp_ch6.adb: Minor reformatting.
366 2016-04-21 Ed Schonberg <schonberg@adacore.com>
368 * sem_ch13.adb: Minor comment update.
370 2016-04-21 Ed Schonberg <schonberg@adacore.com>
372 * freeze.ads, freeze.adb (Freeze_Entity, Freeze_Before): Add
373 boolean parameter to determine whether freezing an overloadable
374 entity freezes its profile as well. This is required by
375 AI05-019. The call to Freeze_Profile within Freeze_Entity is
376 conditioned by the value of this flag, whose default is True.
377 * sem_attr.adb (Resolve_Attribute, case 'Access): The attribute
378 reference freezes the prefix, but it the prefix is a subprogram
379 it does not freeze its profile.
381 2016-04-21 Javier Miranda <miranda@adacore.com>
383 * exp_util.adb (Build_Procedure_Form): No action needed for
384 subprogram renamings since the backend can generate the call
385 using the renamed subprogram. This leaves the tree more clean
387 * exp_ch6.adb (Expand_Call): Extend previous patch for
388 rewritten-for-c entities to handle subprogram renamings.
389 (Rewrite_Function_Call_For_C): Handle subprogram renamings.
391 2016-04-21 Ed Schonberg <schonberg@adacore.com>
393 * sem_ch13.adb: Code cleanup.
395 2016-04-21 Ed Schonberg <schonberg@adacore.com>
397 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): If the body is
398 created for SPARK_To_C, the entity must remain invisible so it
399 does not overload subsequent references to the original function.
400 * exp_ch6.adb (Build_Procedure_Body_Form, Replace_Returns):
401 Handle Extended_Return_Statements by replacing it with a block
402 with assignments and a simple return statement.
403 * exp_util.adb (Build_Procedure_Form): Make procedure entity
404 invisible after analyzing declaration, to prevent improper
407 2016-04-21 Javier Miranda <miranda@adacore.com>
409 * sem_ch6.adb (Build_Subprogram_Declaration): Propagate the
410 attribute Rewritten_For_C to the body since since the expander
411 may generate calls using that entity.
412 * exp_ch6.adb (Expand_Call): For internally generated
413 calls ensure that they reference the entity of the spec
414 of the called function.
415 (Rewritten_For_C_Func_Id): New subprogram.
416 (Rewritten_For_C_Proc_Id): New subprogram.
417 (Rewrite_Function_Call_For_C): Invoke the new subprogram to
418 ensure that we skip freezing entities.
419 * exp_util.adb (Build_Procedure_Form): No action needed if the
420 procedure was already built.
422 2016-04-21 Hristian Kirtchev <kirtchev@adacore.com>
424 * sem_ch3.adb, exp_util.adb, sem_ch13.adb, exp_unst.adb: Minor
427 2016-04-21 Ed Schonberg <schonberg@adacore.com>
429 * sem_util.adb (Denotes_Iterator): Use root type to determine
430 whether the ultimate ancestor is the predefined iterator
432 * exp_ch5.adb (Expand_Iterator_Over_Container): simplify code
433 and avoid reuse of Pack local variable.
435 2016-04-21 Olivier Hainque <hainque@adacore.com>
437 * system-vxworks-arm.ads, system-vxworks-sparcv9.ads,
438 system-vxworks-ppc.ads, system-vxworks-m68k.ads,
439 system-vxworks-mips.ads, system-vxworks-x86.ads: Define
440 Executable_Extension to ".out".
442 2016-04-21 Javier Miranda <miranda@adacore.com>
444 * frontend.adb: Update call to Unnest_Subprograms.
445 * exp_ch6.ads, exp_ch6.adb, exp_unst.ads, exp_unst.adb
446 (Unnest_Subprograms): Moved to package exp_unst.
447 * exp_unst.ads (Unnest_Subprogram): Moved to the body of the
449 * exp_dbug.adb (Qualify_Entity_Name): Enable qualification of
450 enumeration literals when generating C code.
452 2016-04-21 Javier Miranda <miranda@adacore.com>
454 * frontend.adb: Remove call to initialize Exp_Ch6.
455 * exp_ch6.ads, exp_ch6.adb (Initialize): removed.
456 (Unest_Entry/Unest_Bodies): Removed.
457 (Unnest_Subprograms): Code cleanup.
459 2016-04-21 Arnaud Charlet <charlet@adacore.com>
461 * set_targ.adb (Read_Target_Dependent_Values):
462 close target description file once its contents is read.
463 * s-os_lib.adb (Non_Blocking_Spawn, version with Stdout_File
464 and Stderr_File): Close local file descriptors before spawning
466 * exp_util.adb (Containing_Package_With_Ext_Axioms): Limit scope of
467 local variables to make the code easier to understand and avoid
468 duplicated calls to Parent and Generic_Parent.
470 2016-04-20 Bob Duff <duff@adacore.com>
472 * s-os_lib.ads: Minor comment fix.
474 2016-04-20 Ed Schonberg <schonberg@adacore.com>
476 * exp_ch5.adb (Expand_N_Assignment_Statement): Do no generate
477 a discriminant check for a type whose partial view has unknown
478 discriminants when the full view has discriminants with defaults.
480 2016-04-20 Javier Miranda <miranda@adacore.com>
482 * exp_util.adb (Remove_Side_Effects): When generating C code
483 remove side effect of type conversion of access to unconstrained
485 (Side_Effect_Free): Return false for the type
486 conversion of access to unconstrained array type when generating
488 * sem_res.adb (Resolved_Type_Conversion): Remove side effects
489 of access to unconstrained array type conversion when generating
492 2016-04-20 Ed Schonberg <schonberg@adacore.com>
494 * sem_ch13.adb (Build_Predicate_Function_Declaration): New
495 function, to construct the declaration of a predicate function
496 at the end of the current declarative part rather than at the
497 (possibly later) freeze point of the type. This also allows uses
498 of a type with predicates in instantiations elsewhere.
499 (Resolve_Aspect_Expression): New procedure to detect visiblity
500 errors in aspect expressions, at the end of the declarative part
501 that includes the type declaration.
502 * sem_ch3.adb (Complete_Private_Subtype): Propagate properly the
503 predicate function from private to full view.
504 * einfo.adb (Predicate_Function): Refine search for predicate
505 function when type has a full view and predicate function may
506 be defined on either view.
508 2016-04-20 Javier Miranda <miranda@adacore.com>
510 * frontend.adb: Passing the root of the tree to
511 Unnest_Subprograms().
512 * exp_ch6.adb (Expand_N_Subprogram_Body): Remove code that
513 took care of adding subprograms to the Unest_Bodies table since
514 performing such action too early disables the ability to process
515 generic instantiations.
516 (Unnest_Subprograms): Adding parameter.
517 (Search_Unnesting_Subprograms): New subprogram.
518 * exp_ch6.ads (Unnest_Subrograms): Update documentation.
520 2016-04-20 Hristian Kirtchev <kirtchev@adacore.com>
522 * exp_util.adb, freeze.adb, sem_util.adb: Minor reformatting.
524 2016-04-20 Ed Schonberg <schonberg@adacore.com>
526 * exp_unst.adb (Check_Static_Type): For a private type, check
529 2016-04-20 Ed Schonberg <schonberg@adacore.com>
531 * sem_attr.adb (Check_Type): Reject an attribute reference in
532 an aspect expression, when the prefix of the reference is the
533 current instance of the type to which the aspect applies.
535 2016-04-20 Bob Duff <duff@adacore.com>
537 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about
538 hiding unless we're actually hiding something. The previous
539 code would (for example) warn about a "<" on a record type
540 because it incorrectly thought it was hiding the "<" on Boolean
541 in Standard. We need to check that the homonym S is in fact a
542 homograph of a predefined operator.
544 2016-04-20 Ed Schonberg <schonberg@adacore.com>
546 * exp_util.ads, exp_util.adb (Build_Procedure_Form): Moved here
547 from exp_ch6.adb, for use in SPARK_To_C mode when creating the
548 procedure equivalent to a function returning an array, when this
549 construction is deferred to the freeze point of the function.
550 * sem_util.adb (Is_Unchecked_Conversion_Instance): Include a
551 function that renames an instance of Unchecked_Conversion.
552 * freeze.adb (Freeze_Subprogram): Generate the proper procedure
553 declaration for a function returning an array.
554 * exp_ch6.adb (Build_Procedure_Form): Moved to exp_util.
556 2016-04-20 Ed Schonberg <schonberg@adacore.com>
558 * sem_util.ads, sem_util.adb (Is_Expanded_Priority_Attribute):
559 New predicate to determine that in a context with full run-time,
560 a function call is an expansion of a reference to attribute
562 * sem_ch5.adb (Analyze_Function_Call): use it.
563 * exp_ch5.adb (Expand_N_Subprogram_Call): use it.
565 2016-04-20 Hristian Kirtchev <kirtchev@adacore.com>
567 * einfo.adb Flag286 is now used as Is_Exception_Handler.
568 (Is_Exception_Handler): New routine.
569 (Set_Is_Exception_Handler): New routine.
570 (Write_Entity_Flags): Output the status of Is_Exception_Handler.
571 * einfo.ads New attribute Is_Exception_Handler along with
572 occurrences in entities.
573 (Is_Exception_Handler): New routine along with pragma Inline.
574 (Set_Is_Exception_Handler): New routine along with pragma Inline.
575 * exp_ch7.adb (Make_Transient_Block): Ignore blocks generated
576 for exception handlers with a choice parameter.
577 * sem_ch11.adb (Analyze_Exception_Handlers): Mark the scope
578 generated for a choice parameter as an exception handler.
580 2016-04-20 Ed Schonberg <schonberg@adacore.com>
582 * sem_ch3.adb (Build_Derived_Access_Type): Remove dead code.
583 (Constrain_Discriminated_Type): In an instance, if the type has
584 unknown discriminants, use its full view.
585 (Process_Subtype): Check that the base type is private before
586 adding subtype to Private_Dependents list.
588 2016-04-20 Bob Duff <duff@adacore.com>
590 * sem_ch13.adb: Minor comment fix.
592 2016-04-20 Yannick Moy <moy@adacore.com>
594 * sem_ch4.adb: Fix typos in comments.
595 * sem_res.adb (Resolve_Case_Expression): Fix type of case alternatives.
597 2016-04-20 Ed Schonberg <schonberg@adacore.com>
599 * sem_ch4.adb (Analyze_Selected_Component): A reference to the
600 current instance of a task type is legal if the prefix is an
601 expression of that task type and the selector is an entry or
604 2016-04-20 Arnaud Charlet <charlet@adacore.com>
606 * a-cfdlli.ads (List): Type is no longer tagged, not needed. Move
607 varsize field at the end for efficiency.
609 2016-04-20 Vincent Celier <celier@adacore.com>
611 * gnatcmd.adb: Do not invoke gprls when the invocation of "gnat
612 ls" includes the switch -V.
613 * clean.adb: "<target>-gnatclean -P" now calls "gprclean
615 * make.adb: "<target>-gnatmake -P" now calls "gprbuild
618 2016-04-20 Hristian Kirtchev <kirtchev@adacore.com>
620 * sem_ch12.adb (Qualify_Type): Do not perform
621 partial qualification when the immediate scope is a generic unit.
623 2016-04-20 Hristian Kirtchev <kirtchev@adacore.com>
625 * exp_unst.adb: Minor reformatting.
627 2016-04-20 Hristian Kirtchev <kirtchev@adacore.com>
629 * exp_ch4.adb (Expand_Allocator_Expression): Ensure that the
630 tag assignment and adjustment preceed the accessibility check.
631 * exp_ch7.adb (Is_Subprogram_Call): Reimplemented.
633 2016-04-20 Hristian Kirtchev <kirtchev@adacore.com>
635 * exp_prag.adb (Expand_Attributes): Ensure that
636 the temporary used to capture the value of attribute 'Old's
637 prefix is properly initialized.
639 2016-04-20 Javier Miranda <miranda@adacore.com>
641 * exp_unst.ads, exp_unst.adb (Get_Level, Subp_Index): Moved to library
644 2016-04-20 Arnaud Charlet <charlet@adacore.com>
646 * sem_ch9.adb (Analyze_Task_Type_Declaration): Shut down warning
649 2016-04-20 Vincent Celier <celier@adacore.com>
651 * make.adb: Code cleanup.
653 2016-04-20 Arnaud Charlet <charlet@adacore.com>
655 * exp_ch4.adb (Expand_Allocator_Expression): Help C code
658 2016-04-20 Hristian Kirtchev <kirtchev@adacore.com>
660 * sem_ch12.adb (Copy_Generic_Node): Handle the special
661 qualification installed for universal literals that act as
662 operands in binary or unary operators. (Qualify_Operand): Mark
663 the qualification to signal the instantiation mechanism how to
664 handle global reference propagation.
665 * sinfo.adb (Is_Qualified_Universal_Literal): New routine.
666 (Set_Is_Qualified_Universal_Literal): New routine.
667 * sinfo.ads New attribute Is_Qualified_Universal_Literal along
668 with occurrences in nodes.
669 (Is_Qualified_Universal_Literal):
670 New routine along with pragma Inline.
671 (Set_Is_Qualified_Universal_Literal): New routine along with
674 2016-04-20 Ed Schonberg <schonberg@adacore.com>
676 * sem.adb (Do_Analyze): Save and restore Style_Max_Line_Length
677 so that the corresponding checks are preserved across compilations
678 that include System.Constants in their context.
680 2016-04-20 Gary Dismukes <dismukes@adacore.com>
682 * sem_type.adb: Minor typo fix and reformatting.
683 * a-conhel.ads: Update comment.
685 2016-04-20 Bob Duff <duff@adacore.com>
687 * a-cihama.adb, a-cihase.adb, a-coinve.adb (Copy): Rewrite the
688 code so it doesn't trigger an "uninit var" warning.
690 2016-04-20 Hristian Kirtchev <kirtchev@adacore.com>
692 * sem_attr.ads Add new table Universal_Type_Attribute.
693 * sem_util.adb (Yields_Universal_Type): Use a table lookup when
696 2016-04-20 Ed Schonberg <schonberg@adacore.com>
698 * exp_aggr.adb (Init_Stored_Discriminants,
699 Init_Visible_Discriminants): New procedures, subsidiary of
700 Build_Record_Aggr_Code, to handle properly the construction
701 of aggregates for a derived type that constrains some parent
702 discriminants and renames others.
704 2016-04-20 Hristian Kirtchev <kirtchev@adacore.com>
706 * sem_ch12.adb (Qualify_Universal_Operands): New routine.
707 (Save_References_In_Operator): Add explicit qualifications in
708 the generic template for all operands of universal type.
709 * sem_type.adb (Disambiguate): Update the call to Matches.
710 (Matches): Reimplemented.
711 * sem_util.ads, sem_util.adb (Yields_Universal_Type): New routine.
713 2016-04-20 Ed Schonberg <schonberg@adacore.com>
715 * sem_ch13.adb (Rep_Item_Too_Late): Better error message for
716 an illegal aspect that freezes the entity to which it applies.
718 2016-04-20 Bob Duff <duff@adacore.com>
720 * a-stwibo.ads, a-stzbou.ads
721 ("="): Add overriding keyword before function to avoid crash when
722 compiler is called with -gnatyO (check overriding indicators).
724 2016-04-20 Ed Schonberg <schonberg@adacore.com>
726 * sem_prag.adb (Analyze_Pragma, case Check_Policy): If this
727 is a configuration pragma and it uses the ARG syntax, insert
728 the rewritten pragma after the current one rather than using
731 2016-04-20 Arnaud Charlet <charlet@adacore.com>
733 * exp_aggr.adb (Backend_Processing_Possible): Add handling of
736 2016-04-20 Hristian Kirtchev <kirtchev@adacore.com>
738 * s-imgllu.adb, sem_util.adb, s-imgint.adb, s-imguns.adb,
739 s-imglli.adb: Minor reformatting.
741 2016-04-20 Hristian Kirtchev <kirtchev@adacore.com>
743 * sem_res.adb (Rewrite_Renamed_Operator): Do not rewrite the
744 renamed operator when the associated node appears within a
746 * sem_util.ads, sem_util.adb (In_Pre_Post_Condition): New routine.
748 2016-04-20 Yannick Moy <moy@adacore.com>
750 * osint.adb (Relocate_Path): Fix test when Path is shorter than Prefix.
751 * einfo.adb (Set_Overridden_Operation): Add assertion.
752 * sem_util.adb (Unique_Entity): for renaming-as-body return the spec
755 2016-04-20 Javier Miranda <miranda@adacore.com>
757 * exp_unst.adb (Append_Unique_Call): New subprogram.
758 (Unnest_Subprogram): Replace the unique occurrence
759 of Call.Append() by Append_Unique_Call() which protects us from
760 adding to the Calls table duplicated entries.
762 2016-04-20 Arnaud Charlet <charlet@adacore.com>
764 * exp_attr.adb (Is_GCC_Target): Fix for C backend.
765 * xref_lib.ads (Dependencies_Tables): instantiate
766 Table package with types that guarantee its safe use.
767 * s-imgllu.adb, s-imgint.adb, s-imguns.adb, s-imglli.adb: Avoid nested
770 2016-04-20 Arnaud Charlet <charlet@adacore.com>
772 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]):
773 Disable expansion when generating C code.
774 * sinfo.ads, inline.ads: Minor editing.
776 2016-04-20 Hristian Kirtchev <kirtchev@adacore.com>
778 * sem_util.adb, contracts.adb, ghost.adb, exp_ch6.adb: Minor
781 2016-04-20 Javier Miranda <miranda@adacore.com>
783 * contracts.adb (Build_Postconditions_Procedure): Code cleanup.
784 * ghost.adb (Os_OK_Ghost_Context.Is_OK_Declaration): Handle the
785 declaration of the internally built _postcondition procedure.
787 2016-04-20 Arnaud Charlet <charlet@adacore.com>
789 * snames.ads-tmpl (Internal_Attribute_Id, Attribute_Class_Array): Fix
791 * sem_util.adb (Is_Unchecked_Conversion_Instance):
792 defense against library-level renamings of other functions,
793 which are never instances of Unchecked_Conversion.
794 * einfo.ads: minor fix of casing in comment
796 2016-04-20 Ed Schonberg <schonberg@adacore.com>
798 * exp_ch6.adb (Expand_N_Subprogram_Stub): Do not expand a body
799 that has been analyzed and expanded already. Qualify the names
800 in the proper body for use in the generation of C code.
802 2016-04-20 Javier Miranda <miranda@adacore.com>
804 * contracts.adb (Build_Postconditions_Procedure): Force its
805 inlining when generating C code.
806 * sem_attr.adb (Analyze_Attribute_Old_Result): Handle inlined
807 _postconditions when generating C code.
808 * exp_ch6.adb (Inlined_Subprogram): Inline calls to
809 _postconditions when generating C code.
810 * sinfo.ads, sinfo.adb (Corresponding_Spec, Set_Corresponding_Spec):
811 types of return value and argument changed from Node_Id to
814 2016-04-20 Vincent Celier <celier@adacore.com>
816 * make.adb, clean.adb, gnatname.adb: Revert previous change for now.
818 2016-04-20 Eric Botcazou <ebotcazou@adacore.com>
820 * sem_ch12.adb (Analyze_Instance_And_Renamings): Do not reset
821 the Has_Delayed_Freeze flag on the anonymous instance node.
823 2016-04-20 Javier Miranda <miranda@adacore.com>
825 * sem_ch5.adb (Analyze_Iterator_Specification): Remove transient
826 scope associated with the renaming object declaration.
827 * exp_util.adb (Insert_Actions): Remove handling of iterator
828 loop marked as requiring the secondary stack.
830 2016-04-20 Ed Schonberg <schonberg@adacore.com>
832 * sem_attr.adb (Analyze_Attribute, case 'Image): Implement
833 AI12-0124, which extends the functionality of the attribute so it
834 reflects the semantics of GNAT 'Img when applied to scalar types.
835 * lib-xref.adb: minor whitespace layout fix.
837 2016-04-20 Vincent Celier <celier@adacore.com>
839 * clean.adb (Gnatclean): Fail if project file specified and
840 gprclean is not available.
841 * gnatname.adb: Fail is -P is used and gprname is not available.
842 * make.adb (Initialize): Fail if project file specified and
843 gprbuild is not available.
845 2016-04-20 Bob Duff <duff@adacore.com>
847 * sem_ch5.adb (Analyze_Iterator_Specification): Do not use secondary
850 2016-04-20 Gary Dismukes <dismukes@adacore.com>
852 * par_sco.adb, sem_util.adb, sem_ch13.adb: Minor typo corrections and
855 2016-04-20 Ed Schonberg <schonberg@adacore.com>
857 * sem_prag.adb (Analyze_Pragma, case Default_Storage_Pool):
858 If the pragma comes from an aspect specification, verify that
859 the aspect applies to an entity with a declarative part.
860 * exp_ch5.adb: Code cleanup.
862 2016-04-20 Ed Schonberg <schonberg@adacore.com>
864 * sem_res.adb (Resolve_If_Expression): If first expression is
865 universal, resolve subsequent ones with the corresponding class
866 type (Any_Integer or Any_Real).
868 2016-04-20 Ed Schonberg <schonberg@adacore.com>
870 * sem_ch5.adb (Analyze_Iterator_Specification): If expansion is
871 disabled, complete the analysis of the iterator name to ensure
872 that reference for entities within are properly generated.
874 2016-04-20 Arnaud Charlet <charlet@adacore.com>
876 * a-dispat.ads (Yield): add Global contract.
877 * a-calend.ads, a-reatim.ads: Added Initializes => Clock_Time.
878 * a-taside.adb: Added Initializes => Tasking_State.
880 2016-04-20 Hristian Kirtchev <kirtchev@adacore.com>
882 * sem_ch13.adb (Build_Invariant_Procedure):
883 Reimplement the invariant procedure spec and body insertion.
885 2016-04-20 Hristian Kirtchev <kirtchev@adacore.com>
887 * sem_ch13.adb (Add_Invariant): Do not replace
888 the saved expression of an invariatn aspect when inheriting
889 a class-wide type invariant as this clobbers the existing
890 expression. Do not use New_Copy_List as it is unnecessary
891 and leaves the parent pointers referencing the wrong part of
892 the tree. Do not replace the type references for ASIS when
893 inheriting a class-wide type invariant as this clobbers the
894 existing replacement.
896 2016-04-20 Ed Schonberg <schonberg@adacore.com>
898 * sem_util.adb (Build_Explicit_Dereference): If the designated
899 expression is an entity name, generate reference to the entity
900 because it will not be resolved again.
902 2016-04-19 Arnaud Charlet <charlet@adacore.com>
904 * doc/gnat_rm/standard_and_implementation_defined_restrictions.rst,
905 gnat_rm.texi: Update documentation.
907 2016-04-19 Olivier Hainque <hainque@adacore.com>
909 * par_sco.adb (Traverse_One, case N_Case_Statement):
910 Skip pragmas before the first alternative.
911 (Traverse_Handled_Statement_Sequence, Exception_Handlers): Likewise.
913 2016-04-19 Tristan Gingold <gingold@adacore.com>
915 * adaint.c (__gnat_lwp_self): New function (for darwin).
916 * s-osinte-darwin.ads, s-osinte-darwin.adb (lwp_self): Import
919 2016-04-19 Olivier Hainque <hainque@adacore.com>
921 * sem_util.adb (Build_Elaboration_Entity): Always request an
922 elab counter when preserving control-flow.
924 2016-04-19 Olivier Hainque <hainque@adacore.com>
926 * sem_ch13.adb (Build_Invariant_Procedure_Declaration): Set
927 Needs_Debug_Info when producing SCOs.
928 * par_sco.adb (Traverse_Aspects): Fix categorization of
929 Type_Invariant to match actual processing as activated depending
930 on pragma Assertion_Policy.
931 * sem_prag.adb (Analyze_Pragma): Remove special case for
932 Name_Invariant regarding SCO generation, which completely disabled
933 the production of SCOs for Invariant pragmas and aspects.
935 2016-04-19 Hristian Kirtchev <kirtchev@adacore.com>
937 * checks.adb, sem_util.adb, sem_res.adb, sem_attr.adb: Minor
940 2016-04-19 Ed Schonberg <schonberg@adacore.com>
942 * freeze.adb (Freeze_Profile): Refine predicate that checks
943 whether a function that returns a limited view is declared in
944 another unit and cannot be frozen at this point.
946 2016-04-19 Ed Schonberg <schonberg@adacore.com>
948 * exp_aggr.adb (Component_Count): Handle properly superflat
949 arrays, i.e. empty arrays where Hi < Lo - 1, to ensure that the
950 return value of the function is Natural, rather than leaving
951 the handling of such arrays to the caller of this function.
953 2016-04-19 Arnaud Charlet <charlet@adacore.com>
955 * sem_prag.adb, sem_attr.adb, par-prag.adb, exp_aggr.adb, sem_type.adb
956 sem_ch12.adb, sem_ch3.adb, exp_ch7.adb, exp_ch9.adb: Code cleanup.
957 * sem_res.adb, sem_util.ads, sem_util.adb (Is_OK_Volatile_Context):
958 Promoted from being a nested subprogram in Sem_Res.Resolve_Entity_Name
959 to publicly visible routine in Sem_Util.
961 2016-04-19 Ed Schonberg <schonberg@adacore.com>
963 * checks.adb (Apply_Parameter_Aliasing_Checks): Do not apply
964 the check if the type of the actual is By_Reference.
966 2016-04-19 Arnaud Charlet <charlet@adacore.com>
968 * sem_res.adb (Within_Subprogram_Call): Detect
969 also nodes that appear in entry calls.
970 (Resolve_Actuals, Insert_Default): Propagate
971 dimension information if any, from default expression to the
972 copy that appears in the list of actuals.
973 * uintp.ads: minor whitespace fix in comment.
974 * sem_prag.adb, stringt.adb, inline.adb, lib-xref-spark_specific.adb:
976 * set_targ.adb (Set_Targ): convert directly from
977 Natural to Pos, without intermediate conversion to Int.
979 2016-04-19 Arnaud Charlet <charlet@adacore.com>
981 * sem_ch6.adb (Process_Formals): Mark suspicious reference to
983 * sem_prag.adb (Analyze_Global_Item): Fix reference to SPARK RM
985 * sem_res.adb (Property_Error, Resolve_Actuals): Fix reference
986 to SPARK RM in both comment and error message.
988 2016-04-19 Eric Botcazou <ebotcazou@adacore.com>
990 * sem_ch6.adb (Possible_Freeze): If the type is an incomplete
991 CW type, then the subprogram must have a delayed freeze. This
992 ensures that the backend can properly recover the full view when
993 elaborating the access subprogram declaration.
995 2016-04-19 Ed Schonberg <schonberg@adacore.com>
997 * sem_attr.adb (Resolve_Attribute, case 'Access): Freeze
998 overloadable entity if originally overloaded.
1000 2016-04-19 Arnaud Charlet <charlet@adacore.com>
1002 * exp_aggr.adb, exp_ch3.adb, exp_ch7.adb, exp_ch9.adb, exp_code.adb,
1003 exp_fixd.adb, namet.adb, osint.adb, osint.ads, par-ch2.adb,
1004 sem_ch10.adb, sem_ch12.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb
1005 sem_util.adb, styleg.adb, styleg.ads, stylesw.ads: Minor code
1008 2016-04-19 Arnaud Charlet <charlet@adacore.com>
1010 * sem_util.adb (Copy_Node_With_Replacement):
1011 use Set_Comes_From_Source instead of directly manipulating
1012 internals of the node table.
1013 * sem_util.adb (Within_Scope): refactored to remove duplicated code.
1014 * sem_aux.adb (Get_Rep_Pragma,
1015 Subprogram_Body_Entity, Subprogram_Spec): declare variables that
1016 do not change as constants and initialize them in the declaration.
1017 (Get_Rep_Pragma, Subprogram_Body_Entity, Subprogram_Spec): declare
1018 variables that do not change as constants and initialize them
1021 2016-04-19 Ed Schonberg <schonberg@adacore.com>
1023 * sem_res.adb (Resolve_Entry_Call): If the entry has
1024 preconditions it is rewritten by means of a wrapper that
1025 incorporates the original call. Before rewriting generate a
1026 reference to the entry being called to prevent spurious warnings
1027 and provide correct cross-reference information.
1029 2016-04-19 Hristian Kirtchev <kirtchev@adacore.com>
1031 * sem_disp.adb (Check_Dispatching_Context): Code cleanup. Add
1032 local constant Scop. Ignore any internally generated loops when
1033 performing the check concerning an abstract subprogram call
1034 without a controlling argument.
1035 * sem_util.ads, sem_util.adb (Current_Scope_No_Loops): New routine.
1037 2016-04-19 Bob Duff <duff@adacore.com>
1039 * sem_elab.adb (Check_A_Call): There are cases where we have No
1040 (Ent) after the Alias loop, even when there was no previous error,
1041 so we can't assert that there was an error.
1043 2016-04-19 Ed Schonberg <schonberg@adacore.com>
1045 * sem_attr.adb (Analyze_Access_Attribute, OK_Self_Reference):
1046 Reject use of type name as a prefix to 'access within an aggregate
1047 in a context that is not the declarative region of a type.
1049 2016-04-19 Vincent Celier <celier@adacore.com>
1051 * gnatcmd.adb: Make "gnat ls -P" invoke gprls Make "gnat bind
1052 -P" invoke "gprbuild -b" Make "gnat link -P" invoke "gprbuild
1053 -l" Fail if the invocation is "gnat find -P" or "gnat xref -P"
1054 Remove anything related to project files
1055 * g-mbdira.adb: minor whitespace cleanup
1056 * g-spipat.adb: minor removal of extra spaces after closing paren
1058 2016-04-19 Ed Schonberg <schonberg@adacore.com>
1060 * exp_ch6.adb (Expand_Actuals): If post-statements are present
1061 and the enclosing context is a function call or indexing, build
1062 an Expression_With_Actions for the call.
1064 2016-04-19 Hristian Kirtchev <kirtchev@adacore.com>
1066 * lib-writ.adb (Write_With_Lines): Code cleanup. Do not generate
1067 a with line for an ignored Ghost unit.
1068 * sem_ch7.adb (Analyze_Package_Declaration): Add local constant
1069 Par. A child package is Ghost when its parent is Ghost.
1070 * sem_prag.adb (Analyze_Pragma): Pragma Ghost can now apply to
1071 a subprogram declaration that acts as a compilation unit.
1073 2016-04-18 Michael Matz <matz@suse.de>
1075 * gcc-interface/decl.c (gnat_to_gnu_entity): Use SET_TYPE_ALIGN.
1076 (gnat_to_gnu_field): Ditto.
1077 (components_to_record): Ditto.
1078 (create_variant_part_from): Ditto.
1079 (copy_and_substitute_in_size): Ditto.
1080 (substitute_in_type): Ditto.
1081 * gcc-interface/utils.c (make_aligning_type): Use SET_TYPE_ALIGN.
1082 (make_packable_type): Ditto.
1083 (maybe_pad_type): Ditto.
1084 (finish_fat_pointer_type): Ditto.
1085 (finish_record_type): Ditto and use SET_DECL_ALIGN.
1086 (rest_of_record_type_compilation): Use SET_TYPE_ALIGN.
1087 (create_field_decl): Use SET_DECL_ALIGN.
1089 2016-04-18 Arnaud Charlet <charlet@adacore.com>
1091 * einfo.adb (Overridden_Operation): assert that
1092 function is called for valid arguments.
1093 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, sem_type.adb,
1094 s-osinte-vxworks.ads, a-ngcefu.adb, sem_ch10.adb, einfo.ads,
1095 sem_prag.adb, sem_ch12.adb, sem.adb, i-cobol.ads, freeze.adb,
1096 sem_util.adb, a-chtgop.ads, s-rannum.adb, exp_ch6.adb, s-bignum.adb,
1097 s-osinte-freebsd.ads, par-ch5.adb, a-chtgbo.ads, a-cofove.adb:
1098 No space after closing parenthesis except where required for
1100 * sem_res.adb: Minor reformatting.
1102 2016-04-18 Arnaud Charlet <charlet@adacore.com>
1104 * exp_ch4.adb (Expand_N_Case_Expression): Convert into a case
1105 statement when relevant.
1107 2016-04-18 Bob Duff <duff@adacore.com>
1109 * a-cuprqu.adb (Enqueue): Properly handle the
1110 case where the new element has a unique priority.
1112 2016-04-18 Tristan Gingold <gingold@adacore.com>
1114 * adaint.h: Define stat structures and functions for iOS
1117 2016-04-18 Arnaud Charlet <charlet@adacore.com>
1119 * sem_res.adb (Resolve_Entry_Call): reset
1120 Is_Overloaded flag after resolving calls to overloaded protected
1122 * exp_spark.adb (Expand_SPARK): call
1123 Qualify_Entity_Names for tasking nodes, i.e. protected types,
1124 task types and entries.
1125 * exp_ch4.adb (Expand_N_If_Expression): Refine previous change
1126 in case of an unconstrained type.
1128 2016-04-18 Yannick Moy <moy@adacore.com>
1130 * sem_eval.adb, sem_eval.ads (Check_Non_Static_Context): Add
1131 comment to document usage of subprogram in GNATprove.
1133 2016-04-18 Ed Schonberg <schonberg@adacore.com>
1135 * sem_prag.adb (Analyze_Pragma, case Test_Case): Improve error
1136 message for wrong placement of aspect Test_Case.
1138 2016-04-18 Hristian Kirtchev <kirtchev@adacore.com>
1140 * einfo.ads: Update the documentation of attribute Renamed_Object.
1141 * exp_spark.adb (Expand_Potential_Renaming): Reimplemented.
1143 2016-04-18 Gary Dismukes <dismukes@adacore.com>
1145 * exp_ch4.adb (Optimize_Length_Comparison): Return immediately
1146 in the case of AAMP (same as for use of the -gnatd.P switch) to
1147 suppress this optimization, which avoids creating a dependence
1148 on the 64-bit arithmetic package.
1150 2016-04-18 Arnaud Charlet <charlet@adacore.com>
1152 * exp_ch4.adb: Update comment.
1154 2016-04-18 Eric Botcazou <ebotcazou@adacore.com>
1156 * exp_ch6.adb (Expand_Call): Make sure instantiations are
1157 registered only once as pending here.
1159 2016-04-18 Arnaud Charlet <charlet@adacore.com>
1161 * exp_ch4.adb, gnat1drv.adb, opt.ads, sem_res.adb
1162 (Minimize_Expression_With_Actions): New flag.
1163 (Adjust_Global_Switches): Set Minimize_Expression_With_Actions
1165 (Resolve_Short_Circuit): Redo previous change
1166 using Minimize_Expression_With_Actions.
1167 (Expand_N_If_Expression,
1168 Expand_Short_Circuit_Operator): Restore old code to avoid
1169 Expression_With_Actions when Minimize_Expression_With_Actions
1172 2016-04-18 Vincent Celier <celier@adacore.com>
1174 * s-os_lib.adb (Non_Blocking_Spawn, version with Stdout_File and
1175 Stderr_File): Close local file descriptors when no longer needed.
1177 2016-04-18 Ed Schonberg <schonberg@adacore.com>
1179 * sem_ch5.adb (Analyze_Iterator_Specification): Remove SPARK
1180 mode check that the type of the cursor in an iteration over
1181 a formal container is not volatile. The proper check on the
1182 element type is done elsewhere.
1184 2016-04-18 Ed Schonberg <schonberg@adacore.com>
1186 * sem_ch6.adb (Process_Formals): Do not set a delay freeze on
1187 a subprogram that returns a class-wide type, if the subprogram
1188 is a compilation unit, because otherwise gigi will treat the
1189 subprogram as external, leading to link errors.
1191 2016-04-18 Arnaud Charlet <charlet@adacore.com>
1193 * sem_res.adb (Resolve_Short_Circuit): Do not use
1194 expression-with-actions when generating C.
1196 2016-04-18 Yannick Moy <moy@adacore.com>
1198 * sem_util.adb (Apply_Compile_Time_Constraint_Error): Do not generate
1199 raise node in GNATprove mode.
1201 2016-04-18 Hristian Kirtchev <kirtchev@adacore.com>
1203 * s-fileio.adb: Minor reformatting.
1204 * sem_prag.adb (Analyze_Input_Item): Add local
1205 variable Input_OK. Do not consider mappings of generic formal
1206 parameters to actuals.
1208 2016-04-18 Ed Schonberg <schonberg@adacore.com>
1210 * sem_ch5.adb (Get_Cursor_Type): If iterator type is a derived
1211 type, the cursor is declared in the scope of the parent type.
1212 (Analyze_Parameter_Specification): A qualified expression with an
1213 iterator type indicates an iteration over a container (explicit
1216 2016-04-18 Arnaud Charlet <charlet@adacore.com>
1218 * osint-c.ads, osint-c.adb (Delete_C_File, Delete_H_File): New.
1219 * gnat1drv.adb (Gnat1drv): Delete old C files before regenerating them.
1220 * debug.adb: Reserve -gnatd.4 to force generation of C files.
1222 2016-04-18 Yannick Moy <moy@adacore.com>
1224 * sem_eval.adb (Eval_Arithmetic_Op): Do not issue error on static
1225 division by zero, instead possibly issue a warning.
1226 * sem_res.adb (Resolve_Arithmetic_Op): Do not issue error on
1227 static division by zero, instead add check flag on original
1229 * sem_util.adb, sem_util.ads (Compile_Time_Constraint_Error):
1230 Only issue error when both SPARK_Mode is On and Warn is False.
1232 2016-04-18 Yannick Moy <moy@adacore.com>
1234 * checks.adb (Apply_Scalar_Range_Check): Force
1235 warning instead of error when SPARK_Mode is On, on index out of
1236 bounds, and set check flag for GNATprove.
1238 2016-04-18 Hristian Kirtchev <kirtchev@adacore.com>
1240 * sem_prag.adb (Check_In_Out_States.Check_Constituent_Usage):
1241 Update the comment on usage. Reimplemented.
1242 (Check_Input_States.Check_Constituent_Usage): Update the comment
1243 on usage. A Proof_In constituent can now refine an Input state
1244 as long as there is at least one Input constituent present.
1246 2016-04-18 Ed Schonberg <schonberg@adacore.com>
1248 * sem_ch6.adb (Check_Inline_Pragma): Use the Sloc of the
1249 body id as the sloc of the entity in the generated subprogram
1250 declaration, to avoid spurious conformance errors when style
1253 2016-04-18 Ed Schonberg <schonberg@adacore.com>
1255 * sem_ch4.adb (Analyze_Selected_Component, Has_Dereference):
1256 Refine check on illegal calls to entities within a task body,
1257 when the entity is declared in an object of the same type. In
1258 a generic context there might be no explicit dereference but if
1259 the prefix includes an access type the construct is legal.
1261 2016-04-18 Arnaud Charlet <charlet@adacore.com>
1263 * rtsfind.ads, rtsfind.adb (RE_Id, RE_Unit_Table): add
1264 RE_Default_Priority.
1266 2016-04-18 Bob Duff <duff@adacore.com>
1268 * sem_prag.adb (Check_Arg_Is_Local_Name): Don't do the check
1269 if the pragma came from an aspect specification.
1271 2016-04-18 Gary Dismukes <dismukes@adacore.com>
1273 * gnat1drv.adb, contracts.adb: Minor reformatting and wording fixes.
1275 2016-04-18 Ed Schonberg <schonberg@adacore.com>
1277 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): To suppress
1278 superfluous conformance check on an inlined body with a previous
1279 spec, use the fact that the generated declaration does not come
1280 from source. We must treat the entity as coming from source to
1281 enable some back-end inlining when pragma appears after the body.
1283 2016-04-18 Gary Dismukes <dismukes@adacore.com>
1285 * lib-xref-spark_specific.adb, par-ch2.adb, errout.ads,
1286 exp_intr.adb: Minor reformatting and typo corrections.
1288 2016-04-18 Ed Schonberg <schonberg@adacore.com>
1290 * sem_ch6.adb: Code cleanup.
1292 2016-04-18 Thomas Quinot <quinot@adacore.com>
1294 * sem_ch13.adb: Minor reformatting and error message tweaking
1295 (remove extraneous spaces).
1297 2016-04-18 Johannes Kanig <kanig@adacore.com>
1299 * gnat1drv.adb (Gnat1drv): Force loading of System unit for SPARK.
1301 2016-04-18 Bob Duff <duff@adacore.com>
1303 * s-fileio.adb (Fopen_Mode): If Mode = Out_File, and the file
1304 exists, and it's a fifo, we use "w" as the open string instead of
1305 "r+". This is necessary to make a write to the fifo block until
1308 2016-04-18 Hristian Kirtchev <kirtchev@adacore.com>
1310 * sem_attr.adb (Denote_Same_Function): Account
1311 for a special case where a primitive of a tagged type inherits
1312 a class-wide postcondition from a parent type.
1314 2016-04-18 Hristian Kirtchev <kirtchev@adacore.com>
1316 * par-ch2.adb (P_Expression_Or_Reserved_Word): New routine.
1317 (P_Pragma): Signal Scan_Pragma_Argument_Association when the use
1318 of reserved words is OK.
1319 (Scan_Pragma_Argument_Association):
1320 Add new formal Reserved_Words_OK and update the comment on
1321 usage. Code cleanup. Parse an expression or a reserved word in
1322 identifier form for pragmas Restriction_Warnings and Restrictions
1323 No_Use_Of_Attribute.
1324 * restrict.adb (Check_Restriction_No_Use_Of_Attribute):
1325 Reimplemented. (Check_Restriction_No_Use_Of_Pragma): Code cleanup.
1326 (Set_Restriction_No_Specification_Of_Aspect): Properly set the warning
1328 (Set_Restriction_No_Use_Of_Attribute): Properly set the warning
1329 flag for an attribute. (Set_Restriction_No_Use_Of_Entity):
1330 Update the parameter profile.
1331 (Set_Restriction_No_Use_Of_Pragma): Properly set the warning flag for
1333 * restrict.ads (Check_Restriction_No_Use_Of_Attribute): Update
1334 the comment on usage.
1335 (Set_Restriction_No_Use_Of_Entity): Update the parameter profile.
1336 * sem_attr.adb (Analyze_Attribute): Check restriction
1337 No_Use_Of_Attribute.
1338 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Check
1339 restriction No_Use_Of_Attribute before any rewritings have
1341 * sem_prag.adb (Analyze_Pragma): Check restriction
1342 No_Use_Of_Pragma before any rewritings have taken place.
1344 2016-04-18 Bob Duff <duff@adacore.com>
1346 * sem_ch6.adb (Is_Inline_Pragma): The pragma
1347 argument can be a selected component, which has no Chars field,
1348 so we need to deal with that case (use the Selector_Name).
1349 (Check_Inline_Pragma): We need to test Is_List_Member before
1350 calling In_Same_List, because in case of a library unit, they're
1351 not in lists, so In_Same_List fails an assertion.
1353 2016-04-18 Bob Duff <duff@adacore.com>
1355 * namet.ads, namet.adb: Add an Append that appends a
1356 Bounded_String onto a Bounded_String. Probably a little more
1357 efficient than "Append(X, +Y);". Also minor cleanup.
1358 (Append_Decoded, Append_Decoded_With_Brackets, Append_Unqualified,
1359 Append_Unqualified_Decoded): Make sure these work with non-empty
1361 * casing.ads, casing.adb (Set_Casing): Pass a Bounded_String
1362 parameter, defaulting to Global_Name_Buffer.
1363 * errout.ads, errout.adb (Adjust_Name_Case): Pass a
1364 Bounded_String parameter, no default.
1365 * exp_ch11.adb (Expand_N_Raise_Statement): Use local
1366 Bounded_String instead of Global_Name_Buffer.
1367 * exp_intr.ads, exp_intr.adb (Write_Entity_Name): Rename it
1368 to Append_Entity_Name, and pass a Bounded_String parameter,
1369 instead of using globals.
1370 (Add_Source_Info): Pass a Bounded_String parameter, instead of
1372 (Expand_Source_Info): Use local instead of globals.
1373 * stringt.ads, stringt.adb (Append): Add an Append procedure
1374 for appending a String_Id onto a Bounded_String.
1375 (String_To_Name_Buffer, Add_String_To_Name_Buffer): Rewrite in
1377 * sem_prag.adb (Set_Error_Msg_To_Profile_Name): Adjust for new
1378 Adjust_Name_Case parameter.
1379 * erroutc.adb, uname.adb: Don't pass D => Mixed_Case to
1380 Set_Casing; that's the default.
1381 * lib-xref-spark_specific.adb (Add_SPARK_Scope): Pretend that calls to
1382 protected subprograms are entry calls; otherwise it is not possible to
1383 distinguish them from regular subprogram calls.
1385 2016-04-18 Gary Dismukes <dismukes@adacore.com>
1387 * sem_ch13.adb (Has_Good_Profile): Improvement
1388 of error message. Now indicates subtype_mark of formal parameter
1389 rather than the formal's name, plus minor rewording.
1391 2016-04-18 Pascal Obry <obry@adacore.com>
1393 * adaint.c, adaint.h, s-os_lib.ads: Add new routine Current_Process_Id.
1395 2016-04-18 Hristian Kirtchev <kirtchev@adacore.com>
1397 * stringt.adb, exp_ch6.adb, sem_ch13.adb: Minor reformatting.
1399 2016-04-18 Gary Dismukes <dismukes@adacore.com>
1401 * par-ch4.adb, sem_prag.adb: Minor reformatting.
1403 2016-04-18 Bob Duff <duff@adacore.com>
1405 * sinput.ads, sinput.adb (Build_Location_String): Take a
1406 parameter instead of using a global variable. The function
1407 version no longer destroys the Name_Buffer.
1408 * stringt.ads, stringt.adb (String_From_Name_Buffer): Take a
1409 parameter, which defaults to the Global_Name_Buffer, so some
1410 calls can avoid the global.
1411 * exp_ch11.adb, exp_intr.adb: Use new interfaces above
1412 to avoid using globals. All but one call to Build_Location_String
1413 avoids the global. Only one call to String_From_Name_Buffer
1416 2016-04-18 Hristian Kirtchev <kirtchev@adacore.com>
1418 * namet.adb, namet.ads, exp_unst.adb: Minor reformatting.
1420 2016-04-18 Hristian Kirtchev <kirtchev@adacore.com>
1422 * sem_eval.adb (Choice_Matches): Check the expression
1423 against the predicate values when the choice denotes a
1424 subtype with a static predicate.
1425 (Eval_Membership_Op): Code cleanup. Remove the suspicious guard which
1426 tests for predicates.
1427 (Is_OK_Static_Subtype): A subtype with a dynamic predicate
1428 is not static. (Is_Static_Subtype): A subtype with a dynamic
1429 predicate is not static.
1430 * sem_eval.ads (Is_OK_Static_Subtype): Update the comment on usage.
1431 (Is_Static_Subtype): Update the comment on usage.
1433 2016-04-18 Hristian Kirtchev <kirtchev@adacore.com>
1435 * sem_prag.adb (Analyze_Input_Item): Allow
1436 generic formals to appear as initialization items.
1438 2016-04-18 Ed Schonberg <schonberg@adacore.com>
1440 * sem_ch13.adb (Analyze_Stream_TSS_Definition,
1441 Has_Good_Profile): Additional error message to indicate that
1442 the second parameter of the subprogram must be a first subtype.
1444 2016-04-18 Ed Schonberg <schonberg@adacore.com>
1446 * sem_ch6.adb (Analyze_Subprogram_Body_Helper, Is_Inline_Pragma):
1447 Use the pragma lookahead that determines whether a subprogram
1448 is to be inlined, when some level of backend optimization is
1450 * sem_ch12.ads, sem_ch12.adb (Add_Pending_Instantiation): Factorize
1451 code used to create an instance body when needed for inlining.
1452 * exp_ch6.adb (Expand_Call): When a call is to be inlined, and the
1453 call appears within an instantiation that is not a compilation
1454 unit, add a pending instantiation for the enclosing instance,
1455 so the backend can inline in turn the calls contained in the
1458 2016-04-18 Ed Schonberg <schonberg@adacore.com>
1460 * sem_prag.adb (Build_Pragma_Check_Equivalent): The mapping
1461 that relates operations of the parent type to the operations of
1462 the derived type has three distinct sources:
1463 a) explicit operations of the derived type carry an
1464 Overridden_Operation that designates the operation in the
1466 b) Implicit operations that are inherited by the derived type
1467 carry an alias that may be an explicit subprogram (in which case
1468 it may have an Overridden_ Operation indicator) or may also be
1469 inherited and carry its own alias.
1470 c) If the parent type is an interface, the operation of the
1471 derived type does not override, but the interface operation
1472 indicates the operation that implements it.
1473 * sem_prag.adb: Minor reformatting.
1474 * sem_prag.adb (Check_External_Property): Update
1475 the comment on usage. Reimplement.
1477 2016-04-18 Ed Schonberg <schonberg@adacore.com>
1479 * exp_ch5.adb (Expand_Assignment_Statement): In restricted
1480 profiles such as ZFP, ceiling priority is not available.
1482 2016-04-18 Bob Duff <duff@adacore.com>
1484 * namet-sp.ads: Minor typo fix, ironically in 'Spelling_Checker'.
1486 2016-04-18 Bob Duff <duff@adacore.com>
1488 * sem_elab.adb (Output_Calls): Use
1489 Get_Name_String, to clearly indicate that the global Name_Buffer
1490 is being used. The previous code used Is_Internal_Name, which
1491 returns a Boolean, but also has a side effect of setting the
1492 Name_Buffer. Then it called the other Is_Internal_Name, which uses
1493 the Name_Buffer for its input. And then it called Error_Msg_N,
1494 again using the Name_Buffer. We haven't eliminated the global
1495 usage here, but we've made it a bit clearer.
1496 This also allows us to have a side-effect-free version of
1498 * namet.ads, namet.adb: Provide a type Bounded_String, along with
1499 routines that can be used without using global variables. Provide
1500 Global_Name_Buffer so existing code can continue to use the
1501 global. Mark the routines that use globals as obsolete. New code
1502 shouldn't call the obsolete ones, and we should clean up existing
1503 code from time to time.
1504 Name_Find_Str is renamed as Name_Find.
1505 * namet.h: Changed as necessary to interface to the new version
1507 * bindgen.adb, exp_unst.adb: Name_Find_Str is renamed as
1510 2016-04-18 Yannick Moy <moy@adacore.com>
1512 * sem_util.adb, sem_util.ads (Has_Full_Default_Initialization): used
1513 outside of GNATprove, hence it should not be removed.
1515 2016-04-18 Hristian Kirtchev <kirtchev@adacore.com>
1517 * sem_prag.adb (Analyze_Refinement_Clause):
1518 The refinement of an external abstract state can now mention
1519 non-external constituents.
1520 (Check_External_Property): Update all SPARK RM references.
1522 2016-04-18 Bob Duff <duff@adacore.com>
1524 * exp_intr.adb: Remove some duplicated code.
1526 2016-04-18 Yannick Moy <moy@adacore.com>
1528 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads: Mark
1529 package spec and body out of SPARK.
1531 2016-04-18 Johannes Kanig <kanig@adacore.com>
1533 * spark_xrefs.ads: Minor comment update.
1535 2016-04-18 Johannes Kanig <kanig@adacore.com>
1537 * gnat1drv.adb (Gnat1drv): Force loading of System
1540 2016-04-18 Bob Duff <duff@adacore.com>
1542 * a-cuprqu.adb: Correction to previous change. If a new node
1543 is inserted at the front of the queue (because it is higher
1544 priority than the previous front node), we need to update
1545 Header.Next_Unequal -- not just in the case where the queue was
1548 2016-04-18 Bob Duff <duff@adacore.com>
1550 * a-cuprqu.ads: Change the representation of List_Type from a
1551 singly-linked list to a doubly-linked list. In addition, add a
1552 pointer Next_Unequal, which points past a possibly-long chain
1553 of equal-priority items. This increases efficiency, especially
1554 in the case of many equal-priority items.
1555 * a-cuprqu.adb (Dequeue, Enqueue): Rewrite algorithms to take
1556 advantage of new data structure.
1557 (Finalize): Rewrite in terms of Dequeue, for simplicity.
1559 2016-04-18 Yannick Moy <moy@adacore.com>
1561 * contracts.adb (Analyze_Object_Contract,
1562 Analyze_Protected_Contract): Remove tests performed in GNATprove.
1563 * sem_util.adb, sem_util.ads (Has_Full_Default_Initialization):
1564 Remove query for tests performed in GNATprove.
1566 2016-04-18 Ed Schonberg <schonberg@adacore.com>
1568 * sem_aggr.adb (Resolve_Record_Aggregate): If
1569 Warn_On_Redundant_Constructs is enabled, report a redundant box
1570 association that does not cover any components, as it done for
1571 redundant others associations in case statements.
1573 2016-04-18 Ed Schonberg <schonberg@adacore.com>
1575 * sem_prag.adb (Collect_Inherited_Class_Wide_Conditions):
1576 Analyze the generated Check pragma for an inherited condition so
1577 that it does not freeze the dispatching type of the primitive
1578 operation, because it is pre-analyzed at the point of the
1579 subprogram declaration (and not in the subprogram body, as is
1580 done during regular expansion).
1582 2016-04-18 Vincent Celier <celier@adacore.com>
1584 * ali.ads: Increase the range of all _Id types to 100 millions.
1586 2016-04-18 Gary Dismukes <dismukes@adacore.com>
1588 * sem_warn.adb (Check_References): Change warning to suggest
1589 using pragma Export rather than saying "volatile has no effect".
1591 2016-04-18 Bob Duff <duff@adacore.com>
1593 * g-souinf.ads (Compilation_ISO_Date): New function to return
1594 the current date in ISO form.
1595 * exp_intr.adb (Expand_Source_Info, Add_Source_Info): Expand
1596 a call to Compilation_ISO_Date into a string literal containing
1597 the current date in ISO form.
1598 * exp_intr.ads (Add_Source_Info): Improve documentation.
1599 * sem_intr.adb (Check_Intrinsic_Subprogram): Recognize
1600 Compilation_ISO_Date.
1601 * snames.ads-tmpl (Name_Compilation_ISO_Date): New Name_Id.
1603 2016-04-18 Eric Botcazou <ebotcazou@adacore.com>
1605 * layout.adb (Set_Elem_Alignment): Extend setting of alignment
1606 to subtypes that are not first subtypes.
1608 2016-04-18 Ed Schonberg <schonberg@adacore.com>
1610 * sem_prag.ads (Collect_Inherited_Class_Wide_Conditions):
1612 * sem_prag.adb (Collect_Inherited_Class_Wide_Conditions): Insert
1613 generated pragmas after subprogram declaration, rather than in
1614 the corresponding subprogram body.
1615 * sem_ch6.adb (New_Overloaded_Entity): In GNATProve
1616 mode, if the operation is overridding, call
1617 Collect_Inherited_Class_Wide_Conditions to generate the
1618 corresponding pragmas immediately after the corresponding
1619 subprogram declaration.
1621 2016-04-18 Arnaud Charlet <charlet@adacore.com>
1623 * spark_xrefs.ads (Xref_Index, Scope_Index, File_Index): restrict
1624 type to natural numbers.
1625 (Stype): document code characters for concurrent entities.
1627 2016-04-18 Olivier Hainque <hainque@adacore.com>
1629 * targparm.ads: Update the Frontend_Exceptions default internal
1631 (Frontend_Exceptions_On_Target): Change default value to True.
1633 2016-04-18 Ed Schonberg <schonberg@adacore.com>
1635 * sem_ch4.adb (Analyze_Selected_Component): Refine error
1636 detection when a selected component in the body of a synchronized
1637 type is a reference to an object of the same type declared
1638 elsewhere. The construct is legal if the prefix of the selected
1639 component includes an explicit dereference at any point.
1641 2016-04-18 Hristian Kirtchev <kirtchev@adacore.com>
1643 * sem_ch3.adb (Analyze_Object_Declaration): Do not consider
1644 internally generated expressions when trying to determine whether
1645 a formal parameter of a tagged type subject to Extensions_Visible
1646 False is used to initialize an object.
1647 * sem_ch4.adb (Analyze_Type_Conversion): Do not consider
1648 internally generated expressions when trying to determine whether
1649 a formal parameter of a tagged type subject to Extensions_Visible
1650 False is used in a type conversion.
1652 2016-04-18 Hristian Kirtchev <kirtchev@adacore.com>
1654 * sem_res.adb (Is_Protected_Operation_Call):
1655 Add guards to account for a non-decorated selected component.
1657 2016-04-18 Yannick Moy <moy@adacore.com>
1659 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Improve
1660 implementation of Body_Has_SPARK_Mode_On.
1661 * sem_prag.adb, sem_prag.ads (Get_SPARK_Mode_From_Annotation):
1662 New function replacing previous Get_SPARK_Mode_From_Pragma, that
1663 deals also with aspects.
1664 (Get_SPARK_Mode_Type): Make function internal again.
1665 * inline.adb, sem_ch7.adb, sem_util.adb: Use new
1666 Get_SPARK_Mode_From_Annotation.
1668 2016-04-18 Hristian Kirtchev <kirtchev@adacore.com>
1670 * contracts.adb (Analyze_Object_Contract): Update references to
1672 * freeze.adb (Freeze_Entity): Update references to SPARK RM.
1673 * ghost.adb Add with and use clauses for Sem_Disp.
1674 (Check_Ghost_Derivation): Removed.
1675 (Check_Ghost_Overriding):
1676 Reimplemented. (Check_Ghost_Policy): Update references to SPARK RM.
1677 (Check_Ghost_Primitive): New routine.
1678 (Check_Ghost_Refinement): New routine. (Is_OK_Ghost_Context):
1679 Update references to SPARK RM. (Is_OK_Pragma): Update references
1680 to SPARK RM. Predicates are now a valid context for references
1682 * ghost.ads (Check_Ghost_Derivation): Removed.
1683 (Check_Ghost_Overriding): Update the comment on usage.
1684 (Check_Ghost_Primitive): New routine.
1685 (Check_Ghost_Refinement): New routine.
1686 (Remove_Ignored_Ghost_Code): Update references to SPARK RM.
1687 * sem_ch3.adb (Process_Full_View): Remove the now obsolete check
1688 related to Ghost derivations
1689 * sem_ch6.adb (Check_Conformance): Remove now obsolete check
1690 related to the convention-like behavior of pragma Ghost.
1691 (Check_For_Primitive_Subprogram): Verify that the Ghost policy
1692 of a tagged type and its primitive agree.
1693 * sem_prag.adb (Analyze_Pragma): Update references to SPARK
1694 RM. Move the verification of pragma Assertion_Policy Ghost
1695 to the proper place. Remove the now obsolete check related
1696 to Ghost derivations.
1697 (Collect_Constituent): Add a call to Check_Ghost_Refinement.
1698 * sem_res.adb (Resolve_Actuals): Update references to SPARK RM.
1700 2016-04-18 Eric Botcazou <ebotcazou@adacore.com>
1702 * layout.adb: Fix more minor typos in comments.
1704 2016-04-18 Hristian Kirtchev <kirtchev@adacore.com>
1706 * a-calend.ads, sem_prag.adb, sem_ch6.adb: Minor reformatting.
1708 2016-04-18 Ed Schonberg <schonberg@adacore.com>
1710 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): In GNATprove
1711 mode, collect inherited class-wide conditions to generate the
1712 corresponding pragmas.
1713 * sem_prag.ads (Build_Pragma_Check_Equivalent): Moved from contracts
1714 * contracts.adb (Collect_Inherited_Class_Wide_Conditions): New
1715 procedure for overriding subprograms, used to generate the pragmas
1716 corresponding to an inherited class- wide pre- or postcondition.
1717 * sem_prag.adb (Build_Pragma_Check_Equivalent): moved here
1718 from contracts.adb (Replace_Condition_Entities): Subsidiary
1719 Build_Pragma_Check_Equivalent, to implement the proper semantics
1720 of inherited class-wide conditions, as given in AI12-0113.
1721 (Process_Class_Wide_Condition): Removed.
1722 (Collect_Inherited_Class_Wide_Conditions): Iterate over pragmas
1723 in contract of subprogram, to collect inherited class-wide
1725 (Build_Pragma_Check_Equivalent): Moved to sem_prag.adb
1727 2016-04-18 Yannick Moy <moy@adacore.com>
1729 * a-calend.adb (Ada.Calendar): Mark package body as SPARK_Mode Off.
1730 * a-calend.ads (Ada.Calendar): Mark package spec as
1731 SPARK_Mode and add synchronous external abstract state Clock_Time.
1733 2016-04-18 Yannick Moy <moy@adacore.com>
1735 * sem_res.adb (Resolve_Call): Prevent inlining of
1736 calls inside expression functions. Factor previous code issuing
1737 errors to call Cannot_Inline instead, which does appropriate
1738 processing of message for GNATprove.
1740 2016-04-18 Arnaud Charlet <charlet@adacore.com>
1742 * einfo.ads, sem_ch3.adb, sem_ch8.adb, osint-l.adb, rtsfind.adb,
1743 osint-b.adb: Cleanups.
1745 2016-04-18 Yannick Moy <moy@adacore.com>
1747 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Only create
1748 body to inline in GNATprove mode when SPARK_Mode On applies to
1750 * sem_prag.adb, sem_prag.ads (Get_SPARK_Mode_Type): Make function
1753 2016-04-18 Eric Botcazou <ebotcazou@adacore.com>
1755 * layout.adb: Fix minor typo in comment.
1756 * inline.adb: Fix minor pasto.
1757 * sem_ch12.ads: Fix minor typos in comments.
1759 2016-04-18 Ed Schonberg <schonberg@adacore.com>
1761 * sem_disp.adb (Check_Dispatching_Call): Major rewriting to
1762 handle some complex cases of tag indeterminate calls that are
1763 actuals in other dispatching calls that are themselves tag
1765 (Check_Dispatching_Context): Add parameter to support recursive
1766 check for an enclosing construct that may provide a tag for a
1767 tag-indeterminate call.
1769 2016-04-18 Hristian Kirtchev <kirtchev@adacore.com>
1771 * sem_prag.adb (Analyze_Depends_In_Decl_Part):
1772 Add global variables Task_Input_Seen and Task_Output_Seen.
1773 (Analyze_Global_Item): Detect an illegal use of the current
1774 instance of a single protected/task type in a global annotation.
1775 (Analyze_Input_Output): Inputs and output related to the current
1776 instance of a task unit are now tracked.
1777 (Check_Usage): Require
1778 the presence of the current instance of a task unit only when
1779 one input/output is available. (Current_Task_Instance_Seen):
1781 (Is_CCT_Instance): New parameter profile. Update
1782 the comment on usage. The routine now properly recognizes several
1783 cases related to single protected/task types.
1785 2016-04-18 Hristian Kirtchev <kirtchev@adacore.com>
1787 * freeze.adb (Freeze_Entity): Use New_Freeze_Node
1788 to create a brand new freeze node. This handles a case where an
1789 ignored Ghost context is freezing something which is not ignored
1790 Ghost and whose freeze node should not be removed from the tree.
1791 (New_Freeze_Node): New routine.
1793 2016-04-18 Jerome Lambourg <lambourg@adacore.com>
1795 * sigtramp.h (__gnat_set_is_vxsim) New function to
1796 tell sigtramp-vxworks to handle vxsim signal contexts. *
1797 sigtramp-vxworks.c (__gnat_sigtramp) Take into account the
1798 differences in the sigcontext structure between the expected
1799 regular x86 or x86_64 ones and the ones received in case of
1800 exexution on the vxworks simulator.
1801 * init.c: also compute is_vxsim in case of x86_64-vx7 target. Provide
1802 this information to sigtramp-vxworks.c. Remove the old mechanism for
1804 * init-vxsim.c, sigtramp-vxworks-vxsim.c: remove, now obsolete.
1806 2016-04-18 Eric Botcazou <ebotcazou@adacore.com>
1808 * exp_ch3.adb (Inline_Init_Proc): New function returning
1809 whether the initialization procedure of a type should be
1810 inlined. Return again True for controlled type themselves.
1811 (Build_Array_Init_Proc): Call it to set Set_Is_Inlined on Init_Proc.
1812 (Build_Record_Init_Proc): Likewise.
1814 2016-04-18 Arnaud Charlet <charlet@adacore.com>
1816 * gnatvsn.ads (Library_Version): Bump to 7.
1818 2016-04-18 Ed Schonberg <schonberg@adacore.com>
1820 * sem_ch6.adb (Analyze_Expression_Function): Set Inlined flag
1821 on the entity of a subprogram declaration that is completed by
1822 an expression function.
1824 2016-04-18 Ed Schonberg <schonberg@adacore.com>
1826 * sem_util.adb (Is_Current_Instance): A entity given by a subtype
1827 declaration can appear in an aspect specification for a dynamic
1828 predicate, and a pragma for aspect Predicate_Failure.
1829 * exp_util.adb (Replace_Subtype_References): Replace current
1830 occurrences of the subtype to which a dynamic predicate applies,
1831 byt the expression that triggers a predicate check. Needed to
1832 implement new aspect Predicate_Failure.
1834 2016-04-18 Arnaud Charlet <charlet@adacore.com>
1836 * a-intsig.ads, a-intsig.adb: Removed, no longer used.
1837 * Makefile.rtl: update accordingly.
1839 2016-04-18 Eric Botcazou <ebotcazou@adacore.com>
1841 * sem_type.adb (Disambiguate): Call Covers only when necessary
1842 for standard operators.
1844 2016-04-18 Eric Botcazou <ebotcazou@adacore.com>
1846 * atree.ads (Num_Extension_Nodes): Add couple of figures
1848 * atree.adb: Add GNAT.Heap_Sort_G dependency.
1849 (Print_Statistics): New exported procedure to print statistics.
1851 2016-04-18 Eric Botcazou <ebotcazou@adacore.com>
1853 * exp_ch3.adb (Build_Record_Init_Proc): Do not mark the procedure
1854 as to be inlined if the type needs finalization.
1856 2016-04-18 Jerome Lambourg <lambourg@adacore.com>
1858 * sigtramp-vxworks-target.inc: sigtramp-vxworks: force the stack
1859 alignment for x86_64.
1860 * init.c: Better fix for guard page reset on x86_64-vx7.
1861 Do not try to retrieve the page that actually raised
1862 the signal as the probing mechanism used on x86_64 do not allow
1863 such retrieval. We thus just test if the guard page is active,
1864 and re-activate it if not.
1866 2016-04-18 Arnaud Charlet <charlet@adacore.com>
1868 * a-sytaco.adb (Suspension_Object): Aspect Default_Initial_Condition
1871 2016-04-18 Jerome Lambourg <lambourg@adacore.com>
1873 * affinity.c: Use the proper type for task id.
1874 * init.c (__gnat_inum_to_ivec): ivec is a pointer.
1876 2016-04-18 Arnaud Charlet <charlet@adacore.com>
1878 * sem_prag.adb (Process_Convention): Relax rule on exporting
1879 Intrinsic types if Relaxed_RM_Semantics is True.
1881 2016-04-18 Vincent Celier <celier@adacore.com>
1883 * sem_ch3.adb, lib.ads, sinfo.ads, sem_ch10.adb, einfo.adb, einfo.ads,
1884 checks.ads, sem_ch12.adb, sem.adb, sem_util.adb, sem_util.ads,
1885 sem_res.adb, sem_attr.adb, par.adb, exp_ch4.adb, errout.ads,
1886 sem_ch4.adb, atree.adb, atree.ads, sem_warn.adb, treepr.adb,
1887 exp_ch3.ads, exp_unst.adb: Change "descendent" to
1888 "descendant" in comments, error messages and identifiers.
1889 * gcc-interface/decl.c: Ditto.
1891 2016-04-18 Eric Botcazou <ebotcazou@adacore.com>
1893 * sem_type.adb (Operator_Matches_Spec): Call First_Formal on
1894 New_S only once at the beginning of the function.
1896 2016-04-02 Eric Botcazou <ebotcazou@adacore.com>
1898 * gcc-interface/decl.c (components_to_record): Restrict the previous
1899 change to fields with variable size.
1901 2016-03-27 Eric Botcazou <ebotcazou@adacore.com>
1903 * gcc-interface/decl.c (components_to_record): Add special case for
1904 single field with representation clause at offset 0.
1906 2016-03-16 Svante Signell <svante.signell@gmail.com>
1908 * gcc-interface/Makefile.in: Add support for x86 GNU/Hurd.
1909 * s-osinte-gnu.ads: New file.
1911 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
1913 * system-vxworks-m68k.ads (Stack_Check_Probes): Set to True.
1914 (Stack_Check_Limits): Set to False.
1915 * system-vxworks-mips.ads (Stack_Check_Probes): Set to True.
1916 (Stack_Check_Limits): Set to False.
1917 * system-vxworks-ppc.ads (Stack_Check_Probes): Set to True.
1918 (Stack_Check_Limits): Set to False.
1919 * system-vxworks-sparcv9.ads (Stack_Check_Probes): Set to True.
1920 (Stack_Check_Limits): Set to False.
1921 * system-vxworks-x86.ads (Stack_Check_Probes): Set to True.
1922 (Stack_Check_Limits): Set to False.
1924 2016-03-07 Eric Botcazou <ebotcazou@adacore.com>
1926 * gcc-interface/trans.c (statement_node_p): New predicate.
1927 (gnat_to_gnu): Invoke it to detect statement nodes. In ASIS mode, do
1928 not return dummy results for expressions attached to packed array
1929 implementation types.
1931 2016-03-07 Eric Botcazou <ebotcazou@adacore.com>
1933 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Always mark
1934 the expression of a renaming manually in case #3.
1936 2016-03-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1938 * system-linux-s390.ads: Enable Stack_Check_Probes.
1939 * system-linux-s390.ads: Likewise.
1941 2016-02-29 Martin Liska <mliska@suse.cz>
1943 * gcc-interface/utils.c (set_reverse_storage_order_on_pad_type):
1944 Replace ENABLE_CHECKING macro with flag_checking.
1946 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
1948 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Retrofit
1949 handling of unconstrained array types as designated types into common
1950 processing. Also handle array types as incomplete designated types.
1952 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
1954 * gcc-interface/decl.c (gnat_to_gnu_entity) <Concurrent types>: In
1955 ASIS mode, fully lay out the minimal record type.
1957 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
1959 * gcc-interface/trans.c (finalize_nrv_r): Remove obsolete code.
1960 (build_return_expr): Likewise.
1961 (Call_to_gnu): If this is a function call and there is no target,
1962 create a temporary for the return value for all aggregate types,
1963 but never create it for a return statement. Push a binding level
1964 around the call in more cases. Remove obsolete code.
1966 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
1968 * gcc-interface/ada-tree.h (DECL_RETURN_VALUE_P): New macro.
1969 * gcc-interface/gigi.h (gigi): Remove useless attribute.
1970 (gnat_gimplify_expr): Likewise.
1971 (gnat_to_gnu_external): Declare.
1972 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Factor out
1973 code dealing with the expression of external constants into...
1974 Invoke gnat_to_gnu_external instead.
1975 <E_Variable>: Invoke gnat_to_gnu_external to translate renamed objects
1976 when not for a definition. Deal with COMPOUND_EXPR and variables with
1977 DECL_RETURN_VALUE_P set for renamings and with the case of a dangling
1978 'reference to a function call in a renaming. Remove obsolete test and
1979 adjust associated comment.
1980 * gcc-interface/trans.c (Call_to_gnu): Set DECL_RETURN_VALUE_P on the
1981 temporaries created to hold the return value, if any.
1982 (gnat_to_gnu_external): ...this. New function.
1983 * gcc-interface/utils.c (create_var_decl): Detect a constant created
1984 to hold 'reference to function call.
1985 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Add folding
1986 for COMPOUND_EXPR in the DECL_RETURN_VALUE_P case.
1988 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
1990 * exp_ch4.adb (Expand_N_Indexed_Component): Activate synchronization if
1991 the prefix denotes an entity which Has_Atomic_Components.
1992 * gcc-interface/trans.c (node_is_atomic): Return true if the prefix
1993 denotes an entity which Has_Atomic_Components.
1995 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
1997 * gcc-interface/utils2.c (gnat_protect_expr): Make a SAVE_EXPR only
1998 for fat pointer or scalar types.
2000 2016-02-16 Eric Botcazou <ebotcazou@adacore.com>
2002 * gcc-interface/gigi.h (maybe_debug_type): New inline function.
2003 * gcc-interface/misc.c (gnat_get_array_descr_info): Use it.
2004 Call maybe_character_value on the array bounds. Get to the base type
2005 of the index type and call maybe_debug_type on it.
2006 * gcc-interface/utils.c (finish_character_type): Add special treatment
2009 2016-02-16 Eric Botcazou <ebotcazou@adacore.com>
2011 * gcc-interface/misc.c (gnat_enum_underlying_base_type): New function.
2012 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): Define to above.
2014 2016-02-12 Jakub Jelinek <jakub@redhat.com>
2016 * prj-tree.ads: Spelling fixes - behaviour -> behavior and
2017 neighbour -> neighbor.
2018 * prep.adb: Likewise.
2019 * prj.ads: Likewise.
2020 * prepcomp.adb: Likewise.
2021 * g-socket.ads: Likewise.
2022 * s-imgrea.adb: Likewise.
2023 * a-calend.adb: Likewise.
2024 * exp_disp.adb: Likewise.
2025 * doc/gnat_ugn/gnat_utility_programs.rst: Likewise.
2026 * g-socket.adb: Likewise.
2027 * sem_ch12.adb: Likewise.
2028 * terminals.c: Likewise.
2030 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
2032 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
2033 build_common_tree_nodes.
2035 2016-02-08 Eric Botcazou <ebotcazou@adacore.com>
2037 * gcc-interface/utils.c (create_var_decl): Set again DECL_COMMON and
2038 DECL_IGNORED_P last.
2040 2016-01-28 Eric Botcazou <ebotcazou@adacore.com>
2042 * gcc-interface/gigi.h (enum attr_type): Rename into...
2043 (enum attrib_type): ...this.
2044 (struct attrib): Adjust.
2045 * gcc-interface/decl.c (prepend_one_attribute): Likewise.
2047 2016-01-20 Eric Botcazou <ebotcazou@adacore.com>
2049 * exp_ch2.adb (Expand_Current_Value): Make an appropriate character
2050 literal if the entity is of a character type.
2051 * gcc-interface/lang.opt (fsigned-char): New option.
2052 * gcc-interface/misc.c (gnat_handle_option): Accept it.
2053 (gnat_init): Adjust comment.
2054 * gcc-interface/gigi.h (finish_character_type): New prototype.
2055 (maybe_character_type): New inline function.
2056 (maybe_character_value): Likewise.
2057 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>: For
2058 a character of CHAR_TYPE_SIZE, make a signed type if flag_signed_char.
2059 Set TYPE_ARTIFICIAL early and call finish_character_type on the type.
2060 <E_Enumeration_Subtype>: For a subtype of character with RM_Size and
2061 Esize equal to CHAR_TYPE_SIZE, make a signed type if flag_signed_char.
2062 Copy TYPE_STRING_FLAG from type to subtype.
2063 <E_Array_Type>: Deal with character index types.
2064 <E_Array_Subtype>: Likewise.
2065 * gcc-interface/trans.c (gigi): Replace unsigned_char_type_node with
2066 char_type_node throughout.
2067 (build_raise_check): Likewise.
2068 (get_type_length): Deal with character types.
2069 (Attribute_to_gnu) <Attr_Pos>: Likewise. Remove obsolete range check
2071 <Attr_Pred>: Likewise.
2072 (Loop_Statement_to_gnu): Likewise.
2073 (Raise_Error_to_gnu): Likewise.
2074 <N_Indexed_Component>: Deal with character index types. Remove
2076 <N_Slice>: Likewise.
2077 <N_Type_Conversion>: Deal with character types. Minor tweak.
2078 <N_Unchecked_Type_Conversion>: Likewise.
2080 <N_Op_Eq>: Likewise.
2081 (emit_index_check): Delete.
2082 * gcc-interface/utils.c (finish_character_type): New function.
2083 (gnat_signed_or_unsigned_type_for): Deal with built-in character types.
2084 * gcc-interface/utils2.c (expand_sloc): Replace unsigned_char_type_node
2085 with char_type_node.
2086 (build_call_raise): Likewise.
2087 (build_call_raise_column): Likewise.
2088 (build_call_raise_range): Likewise.
2090 2016-01-18 Eric Botcazou <ebotcazou@adacore.com>
2092 * gcc-interface/gigi.h (build_call_raise_column): Adjust prototype.
2093 (build_call_raise_range): Likewise.
2094 (gnat_unsigned_type): Delete.
2095 (gnat_signed_type): Likewise.
2096 (gnat_signed_or_unsigned_type_for): New prototype.
2097 (gnat_unsigned_type_for): New inline function.
2098 (gnat_signed_type_for): Likewise.
2099 * gcc-interface/cuintp.c (build_cst_from_int): Call build_int_cst.
2100 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
2101 (gnat_to_gnu_entity) <E_Array_Type>: Always translate the index types
2102 and compute their base type from that.
2103 <E_Array_Subtype>: Remove duplicate declaration.
2104 * gcc-interface/misc.c (get_array_bit_stride): Call build_int_cst.
2105 * gcc-interface/trans.c (get_type_length): Likewise.
2106 (Attribute_to_gnu): Likewise.
2107 (Loop_Statement_to_gnu): Likewise.
2108 (Call_to_gnu): Likewise.
2109 (gnat_to_gnu): Call build_real, build_int_cst, gnat_unsigned_type_for
2110 and gnat_signed_type_for. Minor tweaks.
2111 (build_binary_op_trapv): Likewise.
2112 (emit_check): Likewise.
2113 (convert_with_check): Likewise.
2114 (Raise_Error_to_gnu): Adjust calls to the build_call_raise family of
2115 functions. Minor tweaks.
2116 (Case_Statement_to_gnu): Remove dead code.
2117 (gnat_to_gnu): Call gnat_unsigned_type_for and gnat_signed_type_for.
2118 (init_code_table): Minor reordering.
2119 * gcc-interface/utils.c (gnat_unsigned_type): Delete.
2120 (gnat_signed_type): Likewise.
2121 (gnat_signed_or_unsigned_type_for): New function.
2122 (unchecked_convert): Use directly the size in the test for precision
2123 vs size adjustments.
2124 (install_builtin_elementary_types): Call gnat_signed_type_for.
2125 * gcc-interface/utils2.c (nonbinary_modular_operation): Call
2127 (build_goto_raise): New function taken from...
2128 (build_call_raise): ...here. Call it.
2129 (build_call_raise_column): Add KIND parameter and call it.
2130 (build_call_raise_range): Likewise.
2132 2016-01-18 Eric Botcazou <ebotcazou@adacore.com>
2134 * gcc-interface/ada-tree.h (TYPE_IMPLEMENTS_PACKED_ARRAY_P): Rename to
2135 (TYPE_IMPL_PACKED_ARRAY_P): ...this.
2136 (TYPE_CAN_HAVE_DEBUG_TYPE_P): Do not test TYPE_DEBUG_TYPE.
2137 * gcc-interface/decl.c (gnat_to_gnu_entity): Simplify NULL_TREE tests
2138 and tweak gnat_encodings tests throughout.
2139 (initial_value_needs_conversion): Likewise.
2140 (intrin_arglists_compatible_p): Likewise.
2141 * gcc-interface/misc.c (gnat_print_type): Likewise.
2142 (gnat_get_debug_type): Likewise.
2143 (gnat_get_fixed_point_type_info): Likewise.
2144 (gnat_get_array_descr_info): Likewise.
2145 (get_array_bit_stride): Likewise.
2146 (gnat_get_type_bias): Fix formatting.
2147 (enumerate_modes): Likewise.
2148 * gcc-interface/trans.c (gnat_to_gnu): Likewise.
2149 (add_decl_expr): Simplify NULL_TREE test.
2150 (end_stmt_group): Likewise.
2151 (build_binary_op_trapv): Fix formatting.
2152 (get_exception_label): Use switch statement.
2153 (init_code_table): Move around.
2154 * gcc-interface/utils.c (global_bindings_p): Simplify NULL_TREE test.
2155 (gnat_poplevel): Likewise.
2156 (gnat_set_type_context): Likewise.
2157 (defer_or_set_type_context): Fix formatting.
2158 (gnat_pushdecl): Simplify NULL_TREE test.
2159 (maybe_pad_type): Likewise.
2160 (add_parallel_type): Likewise.
2161 (create_range_type): Likewise.
2162 (process_deferred_decl_context): Likewise.
2163 (convert): Likewise.
2164 (def_builtin_1): Likewise.
2165 * gcc-interface/utils2.c (find_common_type): Likewise.
2166 (build_binary_op): Likewise.
2167 (gnat_rewrite_reference): Likewise.
2168 (get_inner_constant_reference): Likewise.
2170 2016-01-18 Eric Botcazou <ebotcazou@adacore.com>
2173 * gcc-interface/trans.c (check_inlining_for_nested_subprog): Consider
2174 the parent function instead of the current function in order to issue
2175 the warning or the error. Add guard for ignored functions.
2177 2016-01-17 Jakub Jelinek <jakub@redhat.com>
2179 * adaint.c (__gnat_killprocesstree): Avoid -Wparentheses warning.
2181 2016-01-15 Jakub Jelinek <jakub@redhat.com>
2183 * adaint.c (__gnat_locate_exec_on_path): Use const char * instead
2184 of char * for path_val to avoid warnings.
2186 2016-01-06 Pierre-Marie de Rodat <derodat@adacore.com>
2188 * gcc-interface/utils.c: Bump copyright year.
2189 (rest_of_record_type_compilation): Add XVE/XVU parallel types to
2190 the current lexical scope.
2192 2016-01-04 Jakub Jelinek <jakub@redhat.com>
2194 * gnat_ugn.texi: Bump @copying's copyright year.
2195 * gnat_rm.texi: Likewise.
2197 2016-01-02 Eric Botcazou <ebotcazou@adacore.com>
2199 * gnatvsn.ads: Bump copyright year.
2202 Copyright (C) 2016 Free Software Foundation, Inc.
2204 Copying and distribution of this file, with or without modification,
2205 are permitted in any medium without royalty provided the copyright
2206 notice and this notice are preserved.