2015-05-22 Robert Dewar <dewar@adacore.com>
[official-gcc.git] / gcc / ada / ChangeLog
blobe2b22ddcffcf62cbbf56cb0deffca1eab83c2c8b
1 2015-05-22  Robert Dewar  <dewar@adacore.com>
3         * debug.adb: Update documentation.
4         * einfo.ads, einfo.adb (Needs_Typedef): New flag
5         * exp_unst.adb (Unnest_Subprogram): Mark AREC types as needing
6         typedef's in C.
7         * frontend.adb: Update comments.
8         * gnat1drv.adb (Adjust_Global_Switches): Set all needed flags
9         for -gnatd.V
10         * opt.ads (Generate_C_Code): New switch.
11         * osint-c.adb (Write_C_File_Info): Removed, not used
12         (Write_H_File_Info): Removed, not used
13         * osint-c.ads (Write_C_File_Info): Removed, not used
14         (Write_H_File_Info): Removed, not used
15         * osint.ads (Write_Info): Minor comment updates.
16         (Output_FD): Moved from private part to public part of spec.
17         * sem.adb (Semantics): Force expansion on if in Generate_C_Code
18         mode.
19         * atree.ads: minor typo in comment.
20         * sem_prag.adb (Process_Atomic_Independent_Shared_Volatile):
21         Do not allow VFA on composite object with aliased component.
23 2015-05-22  Arnaud Charlet  <charlet@adacore.com>
25         * osint-c.adb, osint-c.ads (Set_File_Name): Move back to spec.
27 2015-05-22  Pascal Obry  <obry@adacore.com>
29         * prj-util.adb: Minor comment editing.
31 2015-05-22  Pascal Obry  <obry@adacore.com>
33         * makeutl.ads (In_Place_Option): New constant.
34         * prj.ads (Obj_Root_Dir): New variable (absolute path to relocate
35         objects).
36         (Root_Src_Tree): New variable (absolute path of root source tree).
37         * prj-conf.adb (Do_Autoconf): Take into account the object root
38         directory (if defined) to generate configuration project.
39         * prj-nmsc.adb (Get_Directories): Handle case where Obj_Root_Dir
40         is defined.
41         (Locate_Directory): Likewise.
43 2015-05-22  Pascal Obry  <obry@adacore.com>
45         * prj-util.ads, prj-util.adb (Relative_Path): New routine.
47 2015-05-22  Bob Duff  <duff@adacore.com>
49         * exp_utils.ads, exp_utils.adb (Find_Optional_Prim_Op): New
50         interface to return Empty when not found, so we can avoid handling
51         Program_Error in that case.
52         (Find_Prim_Op): Fix latent bug: raise Program_Error when there are no
53         primitives.
54         * exp_ch7.adb, sem_util.adb: Use Find_Optional_Prim_Op when the
55         code is expecting Empty.
56         * sem_ch8.adb: Use Find_Optional_Prim_Op to avoid handling
57         Program_Error.
59 2015-05-22  Robert Dewar  <dewar@adacore.com>
61         * sem_ch3.adb, sem_intr.adb, exp_ch4.adb, s-rannum.adb,
62         sem_eval.adb, s-fatgen.adb, s-expmod.ads: Remove incorrect hyphen in
63         non-binary.
64         * exp_util.adb: Add comment.
65         * osint-c.ads, osint-c.adb (Set_Library_Info_Name): Move from spec to
66         body.
67         (Set_File_Name): New name for the above.
68         (Create_C_File, Create_H_File, Write_C_File_Info, Write_H_File_Info,
69         Close_C_File, Close_H_File): New procedure.
70         * osint.adb: Minor reformatting.
71         * osint.ads: Minor comment updates.
73 2015-05-22  Robert Dewar  <dewar@adacore.com>
75         * exp_ch4.adb: Minor rewording.
76         * exp_util.ads: Clarify that Find_Prim_Op is only for
77         tagged types.
79 2015-05-22  Robert Dewar  <dewar@adacore.com>
81         * atree.adb, atree.ads, treepr.adb: Change name Needs_Actuals_Check to
82         Check_Actuals.
83         * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**x in modular
84         and overflow cases.
86 2015-05-22  Eric Botcazou  <ebotcazou@adacore.com>
88         * exp_pakd.adb (Install_PAT): Propagate representation aspects
89         from the original array type to the PAT.
91 2015-05-22  Robert Dewar  <dewar@adacore.com>
93         * treepr.adb (Print_Node_Header): Add output of Needs_Actuals_Check.
95 2015-05-22  Robert Dewar  <dewar@adacore.com>
97         * atree.adb, atree.ads (Needs_Actuals_Check): New flag.
99 2015-05-22  Hristian Kirtchev  <kirtchev@adacore.com>
101         * sem_prag.adb (Analyze_Pragma): Remove the detection
102         of a useless Part_Of indicator when the related item is a constant.
103         (Check_Matching_Constituent): Do not emit an error on a constant.
104         (Check_Missing_Part_Of): Do not check for a missing Part_Of indicator
105         when the related item is a constant.
106         (Collect_Body_States): Code cleanup.
107         (Collect_Visible_States): Code cleanup.
108         (Report_Unused_States): Do not emit an error on a constant.
109         * sem_util.ads, sem_util.adb (Has_Variable_Input): Removed.
111 2015-05-22  Eric Botcazou  <ebotcazou@adacore.com>
113         * sem_ch8.adb (Analyze_Object_Renaming): Copy
114         Has_Volatile_Full_Access from renamed to renaming entities.
115         * sem_prag.adb (Process_Atomic_Independent_Shared_Volatile):
116         Tidy up and remove redundant setting of Has_Volatile_Full_Access.
118 2015-05-22  Hristian Kirtchev  <kirtchev@adacore.com>
120         * ghost.adb (Check_Ghost_Completion): Update references to SPARK
121         RM 6.9 rules.
122         (Check_Ghost_Policy): Update references to SPARK RM 6.9 rules.
123         * sem_ch3.adb (Analyze_Object_Declaration): Update references
124         to SPARK RM 6.9 rules.
125         (Check_Completion): Ghost entities do not require a special form of
126         completion.
127         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Update references
128         to SPARK RM 6.9 rules.
129         (Analyze_Subprogram_Body_Helper): Update references to SPARK RM 6.9
130         rules.
131         * sem_ch7.adb (Analyze_Package_Body_Helper): Update references
132         to SPARK RM 6.9 rules.
133         (Requires_Completion_In_Body): Ghost entities do not require a special
134         form of completion.
136 2015-05-22  Robert Dewar  <dewar@adacore.com>
138         * a-csquin.ads: Use Ada 2012 notation.
139         * sem_ch8.adb: Minor reformatting.
141 2015-05-22  Hristian Kirtchev  <kirtchev@adacore.com>
143         * sem_ch13.adb (Analyze_Aspect_Specifications): Aspect Import
144         acts as a completion.
146 2015-05-22  Ed Schonberg  <schonberg@adacore.com>
148         * sem_ch13.adb: Minor reformatting.
150 2015-05-22  Jose Ruiz  <ruiz@adacore.com>
152         * a-reatim.adb: Minor change, fix typo.
154 2015-05-22  Robert Dewar  <dewar@adacore.com>
156         * sem_util.ads: Minor addition of ??? comment.
157         * sem_prag.adb, sem_util.adb: Minor reformatting.
158         * sem_ch13.adb: minor reformatting.
160 2015-05-22  Robert Dewar  <dewar@adacore.com>
162         * a-reatim.ads: Add Compile_Time_Error to ensure Duration
163         is 64-bits.
164         * sem_ch13.adb: Improve error message.
165         * exp_ch4.adb: Minor reformatting.
167 2015-05-22  Hristian Kirtchev  <kirtchev@adacore.com>
169         * sem_prag.adb (Analyze_Pragma): Constants without variable
170         input do not require indicator Part_Of.
171         (Check_Missing_Part_Of): Constants without variable input do not
172         requrie indicator Part_Of.
173         (Collect_Visible_States): Constants without variable input are
174         not part of the hidden state of a package.
175         * sem_util.ads, sem_util.adb (Has_Variable_Input): New routine.
177 2015-05-22  Robert Dewar  <dewar@adacore.com>
179         * exp_util.adb (Activate_Atomic_Synchronization): Do not set
180         Atomic_Sync_Required for an object renaming declaration.
181         * sem_ch8.adb (Analyze_Object_Renaming): Copy Is_Atomic and
182         Is_Independent to renaming object.
184 2015-05-22  Ed Schonberg  <schonberg@adacore.com>
186         * sem_ch5.adb (Analyze_Iterator_Specification): Diagnose
187         various illegalities in iterators over arrays and containers:
188         a) New function Get_Cursor_Type, to verify that the cursor is
189         not a limited type at the point of iteration.
190         b) If the container is a constant, an element_iterator is illegal
191         if the container type does not have a Constant_Indexing aspect.
192         c) If the iterate function has an in-out controlling parameter,
193         the container cannot be a constant object.
194         d) Reject additional cases of iterators over a
195         discriminant-dependent component of a mutable object.
197 2015-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
199         * einfo.adb (Contract): This attribute now applies to constants.
200         (Set_Contract): This attribute now applies to constants.
201         (Write_Field34_Name): Add output for constants.
202         * einfo.ads Attribute Contract now applies to constants.
203         * sem_ch3.adb (Analyze_Object_Contract): Constants now have
204         their Part_Of indicator verified.
205         * sem_prag.adb (Analyze_Constituent): A constant is now a valid
206         constituent.
207         (Analyze_Global_Item): A constant cannot act as an output.
208         (Analyze_Initialization_Item): Constants are now a valid
209         initialization item.
210         (Analyze_Initializes_In_Decl_Part): Rename
211         global variable States_And_Vars to States_And_Objs and update
212         all its occurrences.
213         (Analyze_Input_Item): Constants are now a
214         valid initialization item. Remove SPARM RM references from error
215         messages.
216         (Analyze_Pragma): Indicator Part_Of can now apply to a constant.
217         (Collect_Body_States): Collect both source constants
218         and variables.
219         (Collect_States_And_Objects): Collect both source constants and
220         variables.
221         (Collect_States_And_Variables): Rename
222         to Collect_States_And_Objects and update all its occurrences.
223         (Collect_Visible_States): Do not collect constants and variables
224         used to map generic formals to actuals.
225         (Find_Role): The role of a constant is that of an input. Separate the
226         role of a variable from that of a constant.
227         (Report_Unused_Constituents): Add specialized wording for constants.
228         (Report_Unused_States): Add specialized wording for constants.
229         * sem_util.adb (Add_Contract_Item): Add processing for constants.
230         * sem_util.ads (Add_Contract_Item): Update the comment on usage.
231         (Find_Placement_In_State_Space): Update the comment on usage.
233 2015-05-21  Ed Schonberg  <schonberg@adacore.com>
235         * sem_ch5.adb: minor reformatting.
237 2015-05-21  Robert Dewar  <dewar@adacore.com>
239         * freeze.adb (Freeze_Entity): Properly tag -gnatw.z messages.
241 2015-05-21  Robert Dewar  <dewar@adacore.com>
243         * freeze.adb: Minor reformatting.
244         * cstand.adb (Print_Standard): Fix bad printing of Duration
245         low bound.
246         * a-reatim.adb (Time_Of): Complete rewrite to properly detect
247         out of range args.
249 2015-05-21  Ed Schonberg  <schonberg@adacore.com>
251         * sem_ch5.adb: add (useless) initial value.
252         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram):
253         Check whether the procedure has parameters before processing
254         formals in ASIS mode.
256 2015-05-21  Ed Schonberg  <schonberg@adacore.com>
258         * sem_ch13.adb (Check_Iterator_Functions): Emit error on Iterator
259         aspect as well when indexing function is illegal.
260         (Valid_Default_Iterator): Handle properly somme illegal cases
261         to prevent compilation abandoned messages.
262         (Check_Primitive_Function): Verify that type and indexing function
263         are in the same scope.
264         * freeze.adb (Freeze_Record): Extend patch on the presence of
265         indexing aspects to aspect Default_Iterator.
267 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
269         * gcc-interface/trans.c (Sloc_to_locus1): Strenghthen local "map"
270         from line_map * to line_map_ordinary *.
272 2015-05-12  Jason Merrill  <jason@redhat.com>
274         * sigtramp-vxworks.c: Add space between string literal and macro
275         name.
277 2015-05-12  Arnaud Charlet  <charlet@adacore.com>
279         * gnat_rm.texi, gnat_ugn.texi, doc: Documentation updates and clean ups
281 2015-05-12  Ed Schonberg  <schonberg@adacore.com>
283         * sem_ch5.adb (Analyze_Iterator_Specifications): Additional
284         legality checks for array and container iterators:
285         a) The domain of iteration cannot be a component that depends
286         on discriminants of a mutable object. The check was recently
287         added for element iterators.
288         b) The cursor type cannot be a limited type at the point of the
289         iteration, because the cursor will be assigned to in the body
290         of the loop.
292 2015-05-12  Robert Dewar  <dewar@adacore.com>
294         * freeze.adb (Freeze_Record_Type): Make sure that if we have
295         aspect Iterator_Element, then we have either Constant_Indexing
296         or Variable_Indexing.
298 2015-05-12  Ed Schonberg  <schonberg@adacore.com>
300         * a-coormu.ads, a-coormu.adb: Add Indexing aspect, Reference_Type,
301         and Reference_Control_Type to support element iterators over
302         ordered multisets.
303         * a-ciormu.ads, a-ciormu.adb: Ditto for
304         indefinite_ordered_multisets.
306 2015-05-12  Hristian Kirtchev  <kirtchev@adacore.com>
308         * exp_ch4.adb (Expand_N_Expression_With_Actions): Force
309         the evaluation of the EWA expression.  Code cleanup.
310         (Process_Transient_Object): Code cleanup.
311         * exp_util.adb (Is_Aliased): Controlled transient objects found
312         within EWA nodes are not aliased.
313         (Is_Finalizable_Transient): Iterators are not finalizable transients.
315 2015-05-12  Robert Dewar  <dewar@adacore.com>
317         * sem_prag.adb (Process_Atomic_Independent_Shared_Volatile):
318         Don't allow Atomic and Volatile_Full_Access for the same entity.
320 2015-05-12  Ed Schonberg  <schonberg@adacore.com>
322         * sem_ch5.adb (Analyze_Iterator_Specification): Implement new
323         semantics and safety checks specified in AI12-0151.
325 2015-05-12  Pierre-Marie de Rodat  <derodat@adacore.com>
327         * sem_ch10.adb (Sem_Ch10.Analyze_Proper_Body): Generate SCOs
328         for subunit in generic units.
330 2015-05-12  Robert Dewar  <dewar@adacore.com>
332         * sem_elab.adb (Check_A_Call): Avoid checking internal call
333         from Valid_Scalars
335 2015-05-12  Ed Schonberg  <schonberg@adacore.com>
337         * sem_ch6.adb (Process_Formals): An untagged incomplete type
338         is legal in the profile of a null procedure.
340 2015-05-12  Ed Schonberg  <schonberg@adacore.com>
342         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly
343         the checks on a derived formal whose parent type is a previous
344         formal that is not a derived type.
346 2015-05-12  Robert Dewar  <dewar@adacore.com>
348         * aspects.ads, aspects.adb: Add entries for aspect Volatile_Full_Access
349         * einfo.adb (Has_Volatile_Full_Access): New flag.
350         (Has_Volatile_Full_Access): New flag.
351         * einfo.ads (Has_Volatile_Full_Access): New flag.
352         * par-prag.adb: Add dummy entry for Volatile_Full_Access.
353         * sem_prag.adb (Analyze_Pragma, case Volatile_Full_Access):
354         Implement new pragma.
355         * snames.ads-tmpl: Add entries for pragma Volatile_Full_Access.
357 2015-05-12  Robert Dewar  <dewar@adacore.com>
359         * targparm.ads: Minor reformatting.
361 2015-05-12  Robert Dewar  <dewar@adacore.com>
363         * a-reatim.adb (Time_Of): Properly detect overflow when TS = 0.0.
364         * a-reatim.ads: Minor reformatting.
366 2015-05-12  Hristian Kirtchev  <kirtchev@adacore.com>
368         * einfo.ads: Update the documentation of flags
369         Has_Inherited_Default_Init_Cond and Has_Default_Init_Cond.
371 2015-05-12  Robert Dewar  <dewar@adacore.com>
373         * impunit.adb: Add entry for a-dhfina.ads
374         * a-dhfina.ads: New file.
376 2015-05-12  Ed Schonberg  <schonberg@adacore.com>
378         * exp_ch5.adb (Expand_Iterator_Loop_Over_Array): if the array
379         type has convention Fortran, a multidimensional iterator varies
380         the first dimension fastest.
382 2015-05-12  Hristian Kirtchev  <kirtchev@adacore.com>
384         * einfo.adb: Node32 is now used as Encapsulating_State.
385         Node37 is now used as Associated_Entity.
386         (Associated_Entity): New routine.
387         (Encapsulating_State): Update the assertion guard to include constants.
388         (Set_Associated_Entity): New routine.
389         (Set_Encapsulating_State): Update the assertion guard to
390         include constants.
391         (Write_Field10_Name): Remove the output for Encapsulating_State.
392         (Write_Field32_Name): Add output for Encapsulating_State.
393         (Write_Field37_Name): Add output for Associated_Entity.
394         * einfo.ads New attribute Associated_Entity along with placement
395         in entities. Attribute Encapsulating_State now uses Node32.
396         (Associated_Entity): New routine along with pragma Inline.
397         (Set_Associated_Entity): New routine along with pragma Inline.
398         * inline.ads Code reformatting.
399         * sem_attr.adb (Analyze_Attribute): Correct the prefix of
400         attribute 'Result when the context is a generic instantiation.
401         (Analyze_Attribute_Old_Result): Pragmas Depends and
402         Refined_Depends are a valid context for attribute 'Result.
403         (Denote_Same_Function): Allow attribute 'Result to denote
404         generic functions.
405         * sem_ch3.adb Add with and use clauses for Sem_Ch12.
406         (Analyze_Declarations): Capture global references within the
407         contracts of packages, subprograms and their respective bodies.
408         * sem_ch6.adb (Analyze_Aspects_On_Body_Or_Stub): Removed.
409         (Analyze_Completion_Contract): Removed.
410         (Analyze_Generic_Subprogram_Body): Enchange the aspects after
411         creating the generic copy. Create a generic contract for the
412         template. Analyze the aspects of the generic body. Analyze the
413         contract of the generic body when it is a compilation unit and
414         capture global references.
415         (Analyze_Subprogram_Body_Contract): Code cleanup.
416         (Analyze_Subprogram_Contract): Do not save global references here.
417         (Save_Global_References_In_List): Removed.
418         * sem_ch7.adb (Analyze_Package_Body_Contract): Code cleanup.
419         (Analyze_Package_Body_Helper): Create a generic contract for
420         the template.
421         (Analyze_Package_Contract): Code cleanup.
422         * sem_ch10.adb Add with and use clauses for Sem_Ch12.
423         (Analyze_Compilation_Unit): Capture global references in a
424         generic subprogram declaration that acts as a compilation unit.
425         * sem_ch12.adb Add with and use clauses for Sem_Prag. Illustrate
426         the implementation of generic contracts. Alphabetize various
427         subprograms.
428         (Analyze_Generic_Package_Declaration):
429         Create a generic contract for the template.
430         (Analyze_Generic_Subprogram_Declaration): Create a generic
431         contract for the template.
432         (Analyze_Subprogram_Instantiation): Instantiate the contract of the
433         subprogram.
434         (Copy_Generic_Node): Link defining entities of the generic template
435         with the corresponding defining entities of the generic copy. Update
436         the processing of pragmas.
437         (Instantiate_Contract): Removed.
438         (Instantiate_Subprogram_Contract): New routine.
439         (Requires_Delayed_Save): New routine.
440         (Save_Global_References): Rename formal parameter N to Templ. Various
441         cleanups.
442         (Save_Global_References_In_Aspects): Moved from the spec.
443         (Save_Global_References_In_Contract): New routine.
444         (Save_References_In_Aggregate): New routine.
445         (Save_References_In_Char_Lit_Or_Op_Symbol): New routine.
446         (Save_References_In_Descendants): New routine.
447         (Save_References_In_Identifier): New routine.
448         (Save_References_In_Operator): New routine.
449         (Save_References_In_Pragma): New routine.
450         * sem_ch12.ads (Save_Global_References): Rename formal
451         parameter N to Templ. Update the comment on usage.
452         (Save_Global_References_In_Aspects): Moved to the body.
453         (Save_Global_References_In_Contract): New routine.
454         * sem_ch13.adb (Analyze_Aspect_Specifications_On_Body_Or_Stub):
455         New routine.
456         * sem_ch13.ads (Analyze_Aspect_Specifications_On_Body_Or_Stub):
457         New routine.
458         * sem_prag.adb (Add_Item_To_Name_Buffer): Add support for
459         generic parameters.
460         (Analyze_Contract_Cases_In_Decl_Part): Code cleanup.
461         (Analyze_Depends_Global): New routine.
462         (Analyze_Depends_In_Decl_Part): Code cleanup.
463         (Analyze_Global_In_Decl_Part): Code cleanup.
464         (Analyze_Global_Item): Constants are now valid global items. Do
465         not perform state-related checks in an instance. Change the way
466         renamings are handled.  (Analyze_Initial_Condition_In_Decl_Part):
467         Code cleanup.
468         (Analyze_Initializes_In_Decl_Part): Code cleanup.
469         (Analyze_Input_Output): The analysis of attribute 'Result in
470         the context of pragmas Depends or Refined_Depends now reuses
471         the existing attribute analysis machinery. Constants and
472         generic parameters are now valid dependency items. Do not
473         perform state-related checks in an instance. Change the way
474         renamings are handled.  (Analyze_Pragma): Add a "characteristics"
475         section for pragmas Abstract_State, Contract_Cases, Depends,
476         Extensions_Visible, Global, Initial_Condition, Initializes,
477         Post, Post_Class, Postcondition, Pre, Pre_Class, Precondition,
478         Refined_Depends, Refined_Global, Refined_Post, Refined_State, Test_Case.
479         (Analyze_Pre_Post_Condition): Do not create a generic
480         template here.
481         (Analyze_Pre_Post_Condition_In_Decl_Part): Code cleanup.
482         (Analyze_Refined_Depends_Global_Post): New routine.
483         (Analyze_Refined_Depends_In_Decl_Part): Code cleanup.
484         (Analyze_Refined_Global_In_Decl_Part): Code cleanup.
485         (Analyze_Refined_Pragma): Removed.
486         (Analyze_Refined_State_In_Decl_Part): Code cleanup.
487         (Analyze_Test_Case_In_Decl_Part): Code cleanup.
488         (Check_Dependency_Clause): Do not perform this check in an instance.
489         (Check_Function_Return): Add support for generic functions.
490         (Check_In_Out_States): Do not perform this check in an instance.
491         (Check_Input_States): Do not perform this check in an instance.
492         (Check_Mode_Restriction_In_Function): Add support for generic functions.
493         (Check_Output_States): Do not perform this check in an instance.
494         (Check_Postcondition_Use_In_Inlined_Subprogram): Rename
495         parameter Subp_Id to Spec_Id and update comment on usage.
496         (Check_Proof_In_States): Do not perform this check in an instance.
497         (Check_Refined_Global_Item): Add support for constants.
498         (Check_Refined_Global_List): Do not perform this check in an instance.
499         (Collect_Global_Items): Reimplemented.
500         (Collect_Subprogram_Inputs_Outputs): Add support for generic parameters.
501         (Create_Generic_Template): Removed.
502         (Find_Related_Package_Or_Body): Moved to spec.
503         (Find_Role): Add support for generic parameters and constants.
504         (Get_Argument): Moved to spec. Rename parameter Spec_Id to Context_Id.
505         (Match_Item): Add support for constants.
506         (Preanalyze_Test_Case_Arg): Reimplemented.
507         (Report_Extra_Clauses): Do not perform this check in an instance.
508         (Report_Extra_Constituents): Do not perform this check in an instance.
509         * sem_prag.ads (Collect_Subprogram_Inputs_Outputs): Update
510         the comment on usage.
511         (Find_Related_Package_Or_Body): Moved from body.
512         (Get_Argument): Moved from body.
513         * sem_util.adb Add with and use clauses for Sem_Ch12.
514         (Corresponding_Spec_Of): Add support for packages and package bodies.
515         (Create_Generic_Contract): New routine.
516         (Is_Contract_Annotation): Reimplemented.
517         (Is_Generic_Declaration_Or_Body): New routine.
518         (Is_Package_Contract_Annotation): New routine.
519         (Is_Subprogram_Contract_Annotation): New routine.
520         * sem_util.ads (Corresponding_Spec_Of): Update the comment on usage.
521         (Create_Generic_Contract): New routine.
522         (Is_Generic_Declaration_Or_Body): New routine.
523         (Is_Package_Contract_Annotation): New routine.
524         (Is_Subprogram_Contract_Annotation): New routine.
525         * sinfo.adb (Is_Generic_Contract_Pragma): New routine.
526         (Set_Is_Generic_Contract_Pragma): New routine.
527         * sinfo.ads Add new attribute Is_Generic_Contract_Pragma along
528         with occurrences in nodes.
529         (Is_Generic_Contract_Pragma): New routine along with pragma Inline.
530         (Set_Is_Generic_Contract_Pragma): New routine along with pragma Inline.
531         * treepr.adb (Print_Entity_Info): Output fields 36 to 41.
533 2015-05-12  Robert Dewar  <dewar@adacore.com>
535         * a-taster.ads: Minor comment fix: fix bad header, this is a
536         pure RM unit.
538 2015-05-12  Robert Dewar  <dewar@adacore.com>
540         * sem_intr.adb: (Check_Shift): Diagnose bad modulus value.
542 2015-05-12  Robert Dewar  <dewar@adacore.com>
544         * gnat1drv.adb (Adjust_Global_Switches): Default to suppressing
545         Alignment_Checks on non-strict alignment machine.
546         * sem_ch13.adb (Validate_Address_Clauses): Don't give
547         compile-time alignment warnings if run time Alignment_Check
548         is suppressed.
550 2015-05-12  Thomas Quinot  <quinot@adacore.com>
552         * g-sercom.ads, g-sercom-linux.adb (GNAT.Serial_Communications.
553         Data_Rate): New literals B75, B110, B150, B300, B600.
555 2015-05-12  Doug Rupp  <rupp@adacore.com>
557         * init.c (__gnat_init_float) [vxworks]: For e500v2,
558         do nothing and leave the responsibility to install the handler
559         and enable the exceptions to the BSP.
561 2015-05-12  Robert Dewar  <dewar@adacore.com>
563         * sem_ch9.adb, einfo.ads, exp_intr.adb: Minor reformatting.
564         * sem_disp.adb: Minor code reorganization (remove junk redundant
565         null statement).
566         * exp_unst.adb (Unnest_Subprogram.Uplev_Refs): Ignore uplevel
567         references to bounds of types coming from original type reference.
568         * checks.ads: Minor reformatting.
569         * checks.adb: Minor reformatting.
570         * sem_prag.adb (Analyze_Pragma, case Check): If in ignored
571         assertion, then make sure we do not drag in bignum stuff.
573 2015-05-12  Ed Schonberg  <schonberg@adacore.com>
575         * sem_ch9.adb (Collect_Interfaces): Initialize
576         Direct_Primitive_Operations for a tagged synchronized type,
577         so it can used in ASIS mode.
578         * sem_disp.adb (Check_Dispatching_Operation): If expansion is
579         disabled, attach subprogram to list of Direct_Primitive_Operations
580         of synchronized type itself, for ASIS use, because in this case
581         Corresponding_Record_Type is not built.
582         * einfo.ads: Indicate use of Direct_Primitive_Operations on
583         synchronized type.
585 2015-05-12  Pierre-Marie de Rodat  <derodat@adacore.com>
587         * exp_pakd.adb: Make clearer the comment in exp_pakd.adb about
588         ___XP suffixes.
590 2015-05-12  Robert Dewar  <dewar@adacore.com>
592         * sem_ch3.adb, sem_util.adb, sem_ch6.adb: Minor reformatting.
594 2015-05-12  Robert Dewar  <dewar@adacore.com>
596         * exp_unst.adb (Visit_Node): Deal with subprogram and package stubs.
598 2015-05-12  Ed Schonberg  <schonberg@adacore.com>
600         * exp_intr.adb (Expand_Dispatching_Constructor_Call): The
601         tag to be retrieved for the generated call is the first entry
602         in the dispatch table for the return type of the instantiated
603         constructor.
605 2015-05-12  Bob Duff  <duff@adacore.com>
607         * exp_ch7.adb, exp_ch7.ads, exp_intr.adb, exp_util.adb,
608         exp_util.ads: Update comments.
610 2015-05-12  Ed Schonberg  <schonberg@adacore.com>
612         * sem_ch3.adb (Add_Internal_Interface_Entities): Do no generate
613         freeze nodes for these in ASIS mode, because they lead to
614         elaoration order issues in gigi.
616 2015-05-12  Hristian Kirtchev  <kirtchev@adacore.com>
618         * sem_ch6.adb (Analyze_Expression_Function): Code
619         cleanup. Use Copy_Subprogram_Spec to create a proper spec.
620         (Analyze_Subprogram_Body_Helper): Code cleanup. Do not
621         prepare a stand alone body for inlining in GNATprove mode
622         when inside a generic.  (Body_Has_Contract): Reimplemented.
623         (Build_Subprogram_Declaration): New routine.
624         * sem_ch10.adb (Analyze_Compilation_Unit): Capture global
625         references within generic bodies by loading them.
626         * sem_util.adb (Copy_Parameter_List): Code cleanup.
627         (Copy_Subprogram_Spec): New routine.
628         (Is_Contract_Annotation): New routine.
629         * sem_util.ads (Copy_Subprogram_Spec): New routine.
630         (Is_Contract_Annotation): New routine.
632 2015-05-12  Hristian Kirtchev  <kirtchev@adacore.com>
634         * sem_attr.adb (Resolve_Attribute): Do not analyze the generated
635         body of an expression function when the prefix of attribute
636         'Access is the body.
638 2015-05-12  Ed Schonberg  <schonberg@adacore.com>
640         * sem_ch3.adb (Build_Derived_Enumeration_Type): The anonymous base
641         created for a derived enumeration type is not a first subtype,
642         even though it is defined through a full type declaration.
643         * sem_ch13.adb (Analyze_Aspects_At_Freeze_Point): Do not process
644         aspects for the anonymous base type constructed for a derived
645         scalar type, because they will be set when the first subtype
646         is frozen.
647         (Inherit_Aspects_At_Freeze_Point): Fix typos on handling of
648         Default_Value and Default_Component_Value, that prevented the
649         proper inheritance of these aspects.
651 2015-05-12  Gary Dismukes  <dismukes@adacore.com>
653         * exp_ch6.adb, exp_unst.adb: Minor typo fixes.
655 2015-05-12  Robert Dewar  <dewar@adacore.com>
657         * sem_ch3.adb: Minor reformatting.
659 2015-05-12  Vincent Celier  <celier@adacore.com>
661         * gnatcmd.adb: If we want to invoke gnatmake (gnatclean) with
662         -P, then check if gprbuild (gprclean) is available; if it is,
663         use gprbuild (gprclean) instead of gnatmake (gnatclean).
665 2015-05-12  Robert Dewar  <dewar@adacore.com>
667         * debug.adb: Add flag -gnatd.3 to output diagnostic info from
668         Exp_Unst.
669         * einfo.ad, einfo.adb: Reorganize (and remove most of) flags used by
670         Exp_Unst.
671         * exp_ch6.adb (Unest_Bodies): Table for delayed calls to
672         Unnest_Subprogram (Expand_N_Subprogram_Body): Add entry to table
673         for later call instead of calling Unnest_Subprogram directly
674         (Initialize): New procedure (Unnest_Subprograms): New procedure
675         * exp_ch6.ads (Add_Extra_Actual_To_Call): Move into proper
676         alpha order.
677         (Initialize): New procedure.
678         (Unnest_Subprograms): New procedure.
679         * exp_unst.adb (Unnest_Subprogram): Major rewrite, moving
680         all processing to this routine which is now called late
681         after instantiating bodies. Fully handles the case of generic
682         instantiations now.
683         * exp_unst.ads: Major rewrite, moving all processing to
684         Unnest_Subprogram.
685         * frontend.adb (Frontend): Add call to Exp_Ch6.Initialize.
686         (Frontend): Add call to Unnest_Subprograms.
687         * sem_ch8.adb (Find_Direct_Name): Back to old calling sequence
688         for Check_Nested_Access.
689         * sem_util.adb (Build_Default_Subtype): Minor reformatting
690         (Check_Nested_Access): Back to original VM-only form (we
691         now do all the processing for Unnest_Subprogram at the time
692         it is called.
693         (Denotes_Same_Object): Minor reformatting
694         (Note_Possible_Modification): Old calling sequence for
695         Check_Nested_Access.
696         * sem_util.ads (Check_Nested_Access): Back to original VM-only
697         form (we now do all the processing for Unnest_Subprogram at the
698         time it is called.
700 2015-05-12  Robert Dewar  <dewar@adacore.com>
702         * sem_ch3.adb, freeze.adb, sem_ch6.adb: Minor reformatting.
704 2015-05-12  Ed Schonberg  <schonberg@adacore.com>
706         * sem_ch3.adb (Analyze_Object_Declaration): New function
707         Has_Delayed_Aspect, used to defer resolution of an aggregate
708         expression when the object declaration carries aspects Address
709         and/or Alignment.
710         * freeze.adb (Freeze_Object_Declaration): New subsidiary procedure
711         to Freeze_Entity.  In addition to the previous processing steps
712         at the freeze point of an object, this procedure also handles
713         aggregates in object declarations, when the declaration carries
714         delayed aspects that require that the initialization of the
715         object be attached to its freeze actions.
717 2015-05-12  Ed Schonberg  <schonberg@adacore.com>
719         * sem_ch6.adb (Analyze_Subprogram_Declaration): Following
720         AI12-0147, null procedures and expression functions are allowed
721         in protected bodies.
723 2015-05-12  Tristan Gingold  <gingold@adacore.com>
725         * i-cpoint.adb (Copy_Terminated_Array): Copy nothing if Length is 0.
727 2015-05-12  Ed Schonberg  <schonberg@adacore.com>
729         * sem_ch3.adb (Complete_Private_Subtype): Propagate
730         Has_Delayed_Aspects flag from private to full view, to ensure
731         that predicate functions are constructed.
733 2015-05-12  Ed Schonberg  <schonberg@adacore.com>
735         * sem_ch6.adb (Process_Formals): If a tagged formal is an
736         incomplete class-wide type, the subprogram must have a delayed
737         freeze even though the opertation is not a primitive of the
738         type. THis ensures that the backend can recover the full view
739         when elaborating the subprogram declaration.
741 2015-05-12  Ed Schonberg  <schonberg@adacore.com>
743         * exp_util.adb (Get_Current_Value_Condition): Nothing to be
744         done if an elsif part has been rewritten so that it is not part
745         of an enclosing if_statement.
747 2015-05-12  Robert Dewar  <dewar@adacore.com>
749         * sem_type.adb, sem_ch10.adb, freeze.adb, sem_ch6.adb, exp_disp.adb:
750         Minor reformatting.
752 2015-05-12  Bob Duff  <duff@adacore.com>
754         * exp_attr.adb (Size): Remove unnecessary check for types with
755         unknown discriminants.  That was causing the compiler to build
756         a function call _size(T), where T is a type, not an object.
758 2015-05-12  Ed Schonberg  <schonberg@adacore.com>
760         * sem_ch4.adb (Extended_Primitive_Ops): Exclude overriding
761         primitive operations of a type extension declared in the package
762         body, to prevent duplicates in extended list.
764 2015-05-12  Ed Schonberg  <schonberg@adacore.com>
766         * sem_ch3.adb (Analyze_Component_Declaration): If the component is
767         an unconstrained synchronized type with discriminants, create a
768         constrained default subtype for it, so that the enclosing record
769         can be given the proper size.
770         * sem_util.adb (Build_Default_Subtype): If the subtype is created
771         for a record discriminant, do not analyze the declarztion at
772         once because it is added to the freezing actions of the enclosing
773         record type.
775 2015-05-12  Robert Dewar  <dewar@adacore.com>
777         * exp_prag.adb (Expand_N_Pragma): Rewrite ignored pragma as
778         Null statements.
779         * namet.ads (Boolean3): Document this flag used for Ignore_Pragma.
780         * par-prag.adb (Prag): Implement Ignore_Pragma.
781         * sem_prag.adb: Implement Ignore_Pragma.
782         * snames.ads-tmpl: Add entries for pragma Ignore_Pragma.
784 2015-05-12  Javier Miranda  <miranda@adacore.com>
786         * sem_ch10.adb (Build_Shadow_Entity): Link the class-wide shadow
787         entity with its corresponding real entity.
788         (Decorate_Type): Unconditionally build the class-wide shadow entity of
789         tagged types.
790         * einfo.ads, einfo.adb (Has_Non_Limited_View): New synthesized
791         attribute.
792         (Non_Limited_View): Moved from field 17 to field 19 be available
793         in class-wide entities.
794         * exp_attr.adb (Access_Cases): Code cleanup.
795         * exp_disp.adb (Expand_Interface_Actuals): Ditto.
796         * exp_util.adb (Non_Limited_Designated_Type): Ditto.
797         * freeze.adb (Build_Renamed_Bdody): Ditto.
798         * sem_aux.adb (Available_View): Ditto.
799         * sem_ch4.adb (Analyze_Selected_Component): Ditto.
800         (Try_One_Prefix_Interpretation): Ditto.
801         * sem_ch5.adb (Analyze_Assignment): Ditto.
802         * sem_ch6.adb (Detect_And_Exchange): Ditto.
803         * sem_ch8.adb (Find_Expanded_Name): Ditto.
804         * sem_disp.adb (Check_Controlling_Type): Ditto.
805         * sem_res.adb (Resolve_Type_Conversion): Ditto.
806         (Full_Designated_Type): Ditto.
807         * sem_type.adb (Covers): Ditto.
808         * sem_util.adb: Fix typo in comment.
810 2015-05-12  Robert Dewar  <dewar@adacore.com>
812         * exp_unst.adb (Get_Real_Subp): New subprogram.
813         (Unnest_Subprogram): Use Get_Real_Subp.
814         (Uplev_Refs_For_One_Subp): Skip if no ARECnU entity.
815         (Uplev_Refs_For_One_Subp): Use actual subtype in unconstrained case.
817 2015-05-12  Robert Dewar  <dewar@adacore.com>
819         * a-reatim.adb ("/"): Add explicit check for Time_Span_First / -1.
821 2015-05-12  Ed Schonberg  <schonberg@adacore.com>
823         * sem_ch4.adb (Extended_Primitive_Ops): New subprogram,
824         auxiliary to Try_Primitive_Operation to handle properly prefixed
825         calls where the operation is not a primitive of the type, but
826         is declared in the package body that is in the immediate scope
827         of the type.
829 2015-05-12  Robert Dewar  <dewar@adacore.com>
831         * sem_util.adb (Is_Variable): Allow X'Deref(Y) as a variable.
833 2015-05-12  Ed Schonberg  <schonberg@adacore.com>
835         * sem_ch8.adb (Find_Expanded_Name): Handle properly a fully
836         qualified name for an instance of a generic grand-child unit in
837         the body its parent.
839 2015-05-12  Robert Dewar  <dewar@adacore.com>
841         * exp_unst.adb (Upref_Name): New subprogram.
842         (Unnest_Subprogram): Use Upref_Name.
843         (Unnest_Subprogram): Use new Deref attribute.
844         * exp_unst.ads: Doc updates.
846 2015-05-12  Thomas Quinot  <quinot@adacore.com>
848         * adaint.c: Enable Large File Support in adaint so that __gnat_readdir
849         can access files on filesystems mounted from servers that use large
850         NFS file handles.
852 2015-05-09  Eric Botcazou  <ebotcazou@adacore.com>
854         * gcc-interface/utils.c (gnat_write_global_declarations): Use type_decl
855         method instead of global_decl for TYPE_DECLs.
857 2015-04-27  Jim Wilson  <jim.wilson@linaro.org>
859         * gcc-interface/Makefile-lan.in (ada.mostlyclean): Remove gnatbind
860         and gnat1.
862 2015-04-13  Eric Botcazou  <ebotcazou@adacore.com>
864         * gnatvsn.ads (Library_Version): Bump to 6.
866 2015-04-09  Iain Sandoe  <iain@codesourcery.com>
868         * gcc-interface/Makefile.in (darwin, powerpc): Enable atomics.
870 2015-04-08  Eric Botcazou  <ebotcazou@adacore.com>
872         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Do not make
873         a function returning an unconstrained type 'const' for the middle-end.
875         * gcc-interface/trans.c (Pragma_to_gnu) <case Pragma_Warning>: Use
876         exact condition to detect Reason => "..." pattern.
878 2015-03-31  Tom de Vries  <tom@codesourcery.com>
880         PR ada/65490
881         * terminals.c (child_setup_tty): Fix warning 'argument to sizeof in
882         bzero call is the same expression as the destination'.
884 2015-03-26  Eric Botcazou  <ebotcazou@adacore.com>
886         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Deref>: New case.
888 2015-03-24  Gary Dismukes  <dismukes@adacore.com>
890         * sem_ch3.adb: Minor typo fix (missing paren).
892 2015-03-24  Robert Dewar  <dewar@adacore.com>
894         * sinfo.ads: Update comment.
896 2015-03-24  Robert Dewar  <dewar@adacore.com>
898         * exp_attr.adb: Add entry for typ'Deref.
899         * sem_attr.adb (Deref): New GNAT attribute.
900         * sem_attr.ads: Add entry for new GNAT attribute Deref.
901         * snames.ads-tmpl: Add entries for new attribute Deref.
903 2015-03-24  Ed Schonberg  <schonberg@adacore.com>
905         * sem_ch13.adb (Rep_Item_Too_Early): allow pragma Convention
906         on generic type.
908 2015-03-24  Gary Dismukes  <dismukes@adacore.com>
910         * inline.adb: Minor typo fix.
912 2015-03-24  Arnaud Charlet  <charlet@adacore.com>
914         * doc/gnat_ugn/building_executable_programs_with_gnat.rst,
915         doc/gnat_ugn/gnat_utility_programs.rst
916         doc/gnat_rm/implementation_defined_attributes.rst
917         doc/gnat_rm/implementation_defined_pragmas.rst
918         doc/gnat_rm/representation_clauses_and_pragmas.rst
919         doc/gnat_rm/about_this_guide.rst
920         doc/gnat_rm/implementation_of_ada_2012_features.rst: Doc improvements.
921         * gnat_rm.texi, gnat_ugn.texi: Regenerate.
923 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
925         PR bootstrap/65522
926         * adadecode.c (ada_demangle): Guard with IN_RTS instead of IN_GCC.
928 2015-03-20  Eric Botcazou  <ebotcazou@adacore.com>
930         PR ada/65451
931         * gcc-interface/utils.c (gnat_pushdecl): Tidy up and improve comment.
932         Make sure to chain only main variants through TYPE_NEXT_PTR_TO.
934         * gcc-interface/trans.c (Attribute_to_gnu): Revert latest change.
936 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
938         * gcc-interface/utils2.c (gnat_invariant_expr): Return null if the type
939         of the expression ends up being composite.
941 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
943         * gcc-interface/decl.c (is_from_limited_with_of_main): New predicate.
944         (gnat_to_gnu_entity) <E_Subprogram_Type>: Invoke it on return and
945         parameter types to detect circularities in ASIS mode.
946         * gcc-interface/trans.c (Attribute_to_gnu): Mention AI05-0151.
948 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
950         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Abstract_State>: Do not
951         short-circuit the regular handling.
953 2015-03-13  Robert Dewar  <dewar@adacore.com>
955         * exp_unst.adb (Note_Uplevel_Reference): Eliminate duplicate
956         references.
957         (Actual_Ref): New function.
958         (AREC_String): Minor reformatting.
959         (Unnest_Subprogram): Use Actual_Ref.
960         * frontend.adb (Frontend): Turn off Unnest_Subprogram_Mode
961         before call to Instantiate_Bodies.
963 2015-03-13  Ed Schonberg  <schonberg@adacore.com>
965         * freeze.adb (Freeze_Profile): If the return type of a function
966         being frozen is an untagged limited view and the function is
967         abstract, mark the type as frozen because there is no later
968         point at which the profile of the subprogram will be elaborated.
970 2015-03-13  Robert Dewar  <dewar@adacore.com>
972         * einfo.adb, einfo.ads, atree.adb, atree.ads, atree.h: Add seventh
973         component to entities. Add new fields Field36-41 and Node36-41.
975 2015-03-13  Claire Dross  <dross@adacore.com>
977         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Rewrite after review.
979 2015-03-13  Robert Dewar  <dewar@adacore.com>
981         * exp_util.adb (Is_Volatile_Reference): Compile time known
982         value is never considered to be a volatile reference.
984 2015-03-13  Robert Dewar  <dewar@adacore.com>
986         * sem_ch3.adb (Analyze_Object_Contract): Suppress "constant
987         cannot be volatile" for internally generated object (such as
988         FIRST and LAST constants).
990 2015-03-13  Ed Schonberg  <schonberg@adacore.com>
992         * sem_ch12.adb (Validate_Access_Subprogram_Instance): If a
993         convention is specified for the formal parameter, verify that
994         the actual has the same convention.
995         * sem_prag.adb (Set_Convention_From_Pragma): Allow convention
996         pragma to be set on a generic formal type.
997         * sem_util.adb (Set_Convention): Ignore within an instance,
998         as it has already been verified in the generic unit.
1000 2015-03-13  Claire Dross  <dross@adacore.com>
1002         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Do not inline
1003         subprograms with unconstrained record parameters containing
1004         Itype declarations.
1005         * sinfo.ads Document GNATprove assumption that type should match
1006         in the AST.
1007         * sem_ch6.adb (Analyze_Subprogram_Body_Contract):
1008         Do not check for Refined_Depends and Refined_Globals contracts
1009         as they are optional.
1011 2015-03-13  Ed Schonberg  <schonberg@adacore.com>
1013         * sem_ch12.adb (Instantiate_Type): For a floating-point type,
1014         capture dimension info if any, because the generated subtype
1015         declaration does not come from source and will not process dimensions.
1016         * sem_dim,adb (Analyze_Dimension_Extension_Or_Record_Aggregate):
1017         Do not analyze expressions with an initialization procedure
1018         because aggregates will have been checked at the point of record
1019         declaration.
1021 2015-03-13  Robert Dewar  <dewar@adacore.com>
1023         * aspects.ads, aspects.adb: Add entries for aspect Unimplemented.
1024         * einfo.ads, einfo.adb (Is_Unimplemented): New flag.
1025         * sem_ch13.adb: Add dummy entry for aspect Unimplemented.
1026         * snames.ads-tmpl: Add entry for Name_Unimplemented.
1028 2015-03-13  Gary Dismukes  <dismukes@adacore.com>
1030         * style.adb (Missing_Overriding): Apply the
1031         Comes_From_Source test to the Original_Node of the subprogram
1032         node, to handle the case of a null procedure declaration that
1033         has been rewritten as an empty procedure body.
1035 2015-03-13  Robert Dewar  <dewar@adacore.com>
1037         * exp_util.ads: Minor fix to comment.
1038         * sem_ch3.adb (Constrain_Index): Correct pasto from previous
1039         change.
1041 2015-03-13  Robert Dewar  <dewar@adacore.com>
1043         * exp_util.ads, exp_util.adb (Force_Evaluation): Add Related_Id and
1044         Is_Low/High_Bound params.
1045         * sem_ch3.adb (Constrain_Index): Use new Force_Evaluation calling
1046         sequence to simplify generation of FIRST/LAST temps for bounds.
1048 2015-03-12  Olivier Hainque  <hainque@adacore.com>
1050         * gcc-interface/trans.c (Attribute_to_gnu) <Code_Address case>:
1051         On targets where a function symbol designates a function descriptor,
1052         fetch the function code address from the descriptor.
1053         (USE_RUNTIME_DESCRIPTORS): Provide a default definition.
1055 2015-03-04  Robert Dewar  <dewar@adacore.com>
1057         * sem_warn.adb: Minor reformatting.
1058         * init.c: Minor tweaks.
1060 2015-03-04  Dmitriy Anisimko  <anisimko@adacore.com>
1062         * a-coinho-shared.adb: Fix clear of already empty holder.
1064 2015-03-04  Robert Dewar  <dewar@adacore.com>
1066         * exp_unst.adb (Check_Dynamic_Type): Ignore library level types.
1067         (Check_Uplevel_Reference_To_Type): Ignore call inside generic.
1068         (Note_Uplevel_Reference): Ignore call inside generic.
1069         (Note_Uplevel_Reference): Fix check for no entity field.
1070         (Unnest_Subprogram): Ignore call inside generic.
1071         (Find_Current_Subprogram): Use Defining_Entity, not Defining_Unit_Name.
1072         (Visit_Node): Ignore calls to Imported subprograms.
1073         (Visit_Node): Fix problem in finding subprogram body in some cases.
1074         (Add_Form_To_Spec): Use Defining_Entity, not Defining_Unit_Name.
1076 2015-03-04  Robert Dewar  <dewar@adacore.com>
1078         * einfo.adb (Is_ARECnF_Entity): Removed.
1079         (Last_Formal): Remove special handling of Is_ARECnF_Entity.
1080         (Next_Formal): Remove special handling of Is_ARECnF_Entity.
1081         (Next_Formal_With_Extras): Remove special handling of Is_ARECnF_Entity.
1082         (Number_Entries): Minor reformatting.
1083         * einfo.ads (Is_ARECnF_Entity): Removed.
1084         * exp_unst.adb (Unnest_Subprogram): Remove setting of
1085         Is_ARECnF_Entity.
1086         (Add_Extra_Formal): Use normal Extra_Formal circuit.
1087         * sprint.adb (Write_Param_Specs): Properly handle case where
1088         there are no source formals, but we have at least one Extra_Formal
1089         present.
1091 2015-03-04  Ed Schonberg  <schonberg@adacore.com>
1093         * sem_aggr.adb (Resolve_Record_Aggregate,
1094         Add_Discriminant_Values): If the value is a reference to the
1095         current instance of an enclosing type, use its base type to check
1096         against prefix of attribute reference, because the target type
1097         may be otherwise constrained.
1099 2015-03-04  Robert Dewar  <dewar@adacore.com>
1101         * atree.h: Add entries for Flag287-Flag309.
1102         * einfo.adb: Add (unused) flags Flag287-Flag309.
1104 2015-03-04  Ed Schonberg  <schonberg@adacore.com>
1106         * sem_util.adb (Collect_Interfaces, Collect): When gathering
1107         interfaces of ancestors, handle properly a subtype of a private
1108         extension.
1110 2015-03-04  Robert Dewar  <dewar@adacore.com>
1112         * einfo.adb (Is_ARECnF_Entity): New flag (ARECnF is an extra formal).
1113         (Next_Formal): Don't return ARECnF formal.
1114         (Last_Formal): Don't consider ARECnF formal.
1115         (Next_Formal_With_Extras): Do consider ARECnF formal.
1116         * einfo.ads (Is_ARECnF_Entity): New flag (ARECnF is an extra formal).
1117         * exp_unst.adb (Create_Entities): Set Is_ARECnF_Entity flag.
1119 2015-03-04  Javier Miranda  <miranda@adacore.com>
1121         * exp_ch6.adb (Expand_Simple_Function_Return): When the returned
1122         object is a class-wide interface object and we generate the
1123         accessibility described in RM 6.5(8/3) then displace the pointer
1124         to the object to reference the base of the object (to get access
1125         to the TSD of the object).
1127 2015-03-04  Hristian Kirtchev  <kirtchev@adacore.com>
1129         * sem_prag.adb (Analyze_Abstract_State): Use routine
1130         Malformed_State_Error to issue general errors.
1131         (Analyze_Pragma): Diagnose a syntax error related to a state
1132         declaration with a simple option.
1133         (Malformed_State_Error): New routine.
1135 2015-03-04  Robert Dewar  <dewar@adacore.com>
1137         * a-strsup.adb (Super_Slice): Deal with super flat case.
1138         * einfo.ads: Minor reformatting.
1139         * s-imgdec.adb (Set_Decimal_Digits): Add comment about possibly
1140         redundant code.
1142 2015-03-04  Claire Dross  <dross@adacore.com>
1144         * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
1145         a-cforse.ads, a-cofove.ads: Use Default_Initial_Condition on formal
1146         containers.
1148 2015-03-04  Ed Schonberg  <schonberg@adacore.com>
1150         * sem_warn.adb (Check_References): When checking for an unused
1151         in-out parameter of a class- wide type, use its type to determine
1152         whether it is private, in order to avoid a spurious warning when
1153         subprogram spec and body are in different units.
1155 2015-03-04  Yannick Moy  <moy@adacore.com>
1157         * sem_attr.adb: Improve warning messages.
1159 2015-03-04  Robert Dewar  <dewar@adacore.com>
1161         * exp_ch6.adb (Expand_N_Subprogram_Body): Avoid trying to unnest
1162         generic subprograms.
1163         * exp_unst.adb (Check_Dynamic_Type): Handle record types properly
1164         (Note_Uplevel_Reference): Ignore uplevel references to non-types
1165         (Get_Level): Consider only subprograms, not blocks.
1166         (Visit_Node): Set proper condition for generating ARECnF entity.
1167         Ignore indirect calls. Ignore calls to subprograms
1168         outside our nest.
1169         (Unnest_Subprogram): Minor changes in dealing with ARECnF entity.
1170         (Add_Form_To_Spec): Properly set Last_Entity field.
1171         (Unnest_Subprogram): Set current subprogram scope for analyze calls.
1172         Handle case of no uplevel refs in outer subprogram
1173         Don't mark uplevel entities as aliased.
1174         Don't deal with calls with no ARECnF requirement.
1176 2015-03-04  Robert Dewar  <dewar@adacore.com>
1178         * s-valrea.adb (Scan_Real): Remove redundant tests from scaling loops.
1179         * s-imgdec.adb (Set_Decimal_Digits): Remove redundant Max
1180         operation in computing LZ.
1181         * sem_attr.adb: Minor typo fix
1183 2015-03-04  Robert Dewar  <dewar@adacore.com>
1185         * exp_ch7.adb: Minor reformatting.
1186         * exp_unst.adb (Build_Tables): Fix minor glitch for no separate
1187         spec case.
1188         * erroutc.adb (Delete_Msg): add missing decrement of info msg counter.
1190 2015-03-04  Hristian Kirtchev  <kirtchev@adacore.com>
1192         * exp_ch6.adb (Build_Pragma_Check_Equivalent): Suppress
1193         references to formal parameters subject to pragma Unreferenced.
1194         (Suppress_Reference): New routine.
1195         * sem_attr.adb (Analyze_Attribute): Reimplement the analysis
1196         of attribute 'Old. Attributes 'Old and 'Result now share
1197         common processing.
1198         (Analyze_Old_Result_Attribute): New routine.
1199         (Check_Placement_In_Check): Removed.
1200         (Check_Placement_In_Contract_Cases): Removed.
1201         (Check_Placement_In_Test_Case): Removed.
1202         (Check_Use_In_Contract_Cases): Removed.
1203         (Check_Use_In_Test_Case): Removed.
1204         (In_Refined_Post): Removed.
1205         (Is_Within): Removed.
1206         * sem_warn.adb (Check_Low_Bound_Tested): Code cleanup.
1207         (Check_Low_Bound_Tested_For): New routine.
1209 2015-03-04  Hristian Kirtchev  <kirtchev@adacore.com>
1211         * exp_ch3.adb (Expand_N_Object_Declaration):
1212         Generate a runtime check to test the expression of pragma
1213         Default_Initial_Condition when the object is default initialized.
1215 2015-03-02  Robert Dewar  <dewar@adacore.com>
1217         * scng.adb (Scan): Ignore illegal character in relaxed
1218         semantics mode.
1220 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
1222         * sem_ch4.adb (Analyze_Set_Membership); Retain Overloaded flag
1223         on left operand, so it can be properly resolved with type of
1224         alternatives of right operand.
1225         * sem_res.adb (Resolve_Set_Membership): Handle properly an
1226         overloaded left-hand side when the alternatives on the right
1227         hand side are literals of some universal type.  Use first
1228         non-overloaded alternative to find expected type.
1230 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
1232         * exp_ch7.adb (Make_Set_Finalize_Address_Call): Use underlying
1233         type to retrieve designated type, because the purported access
1234         type may be a partial (private) view, when it is declared in
1235         the private part of a nested package, and finalization actions
1236         are generated when completing compilation of enclosing unit.
1238 2015-03-02  Robert Dewar  <dewar@adacore.com>
1240         * back_end.adb (Call_Back_End): Remove previous patch,
1241         the back end now gets to see the result of -gnatd.1
1242         (Unnest_Subprogram_Mode) processing.
1243         * elists.ads, elists.adb (List_Length): New function.
1244         * exp_unst.ads, exp_unst.adb: Major changes, first complete version.
1245         * sem_util.adb (Check_Nested_Access): Handle formals in
1246         Unnest_Subprogram_Mode.
1247         (Adjust_Named_Associations): Minor reformatting.
1248         * sprint.adb (Sprint_Node_Actual): Fix failure to print aliased
1249         for parameters.
1251 2015-03-02  Robert Dewar  <dewar@adacore.com>
1253         * atree.ads, atree.adb (Uint24): New function
1254         (Set_Uint24): New procedure.
1255         * atree.h (Uint24): New macro for field access.
1256         * back_end.adb (Call_Back_End): For now, don't call back end
1257         if unnesting subprogs.
1258         * einfo.adb (Activation_Record_Component): New field
1259         (Subps_Index): New field.
1260         * einfo.ads (Activation_Record_Component): New field
1261         (Subps_Index): New field Minor reordering of comments into alpha order.
1262         * exp_unst.ads, exp_unst.adb: Continued development.
1264 2015-03-02  Gary Dismukes  <dismukes@adacore.com>
1266         * exp_disp.ads: Minor reformatting.
1268 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
1270         * sem_ch8.adb (Chain_Use_Clause): Do not chain use clause from
1271         ancestor to list of use clauses active in descendant unit if we
1272         are within the private part of an intervening parent, to prevent
1273         circularities in use clause list.
1275 2015-03-02  Javier Miranda  <miranda@adacore.com>
1277         * exp_ch9.adb (Build_Corresponding_Record): Propagate type
1278         invariants to the corresponding record type.
1279         * exp_disp.ad[sb] (Set_DT_Position_Value): New subprogram
1280         which sets the value of the DTC_Entity associated with a given
1281         primitive of a tagged type and propagates the value to the
1282         wrapped subprogram.
1283         (Set_DTC_Entity_Value): Propagate the DTC
1284         value to the wrapped entity.
1285         * sem_ch13.adb (Build_Invariant_Procedure): Append the code
1286         associated with invariants of progenitors.
1287         * sem_ch3.adb (Build_Derived_Record_Type): Inherit type invariants
1288         of parents and progenitors.
1289         (Process_Full_View): Check hidden inheritance of class-wide type
1290         invariants.
1291         * sem_ch7.adb (Analyze_Package_Specification): Do not generate
1292         the invariant procedure for interface types; build the invariant
1293         procedure for tagged types inheriting invariants from their
1294         progenitors.
1295         * sem_prag.adb (Pragma_Invariant) Allow invariants in interface
1296         types but do not build their invariant procedure since their
1297         invariants will be propagated to the invariant procedure of
1298         types covering the interface.
1299         * exp_ch6.adb, exp_disp.adb, sem_ch3.adb, sem_ch7.adb,
1300         sem_ch8.adb, sem_disp.adb: Replace all calls to Set_DT_Position
1301         by calls to Set_DT_Position_Value.
1303 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
1305         * sem_attr.adb (Analyze_Attribute): Factor out heavily indented
1306         code in Denote_Same_Function.  Do not analyze attribute 'Result
1307         when it is inside procedure _Postconditions.  Remove a misplaced
1308         warning diagnostic. Code cleanup.
1309         (Denote_Same_Function): New routine.
1310         * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): Code
1311         cleanup. Warn on pre/postconditions on an inlined subprogram.
1312         (Analyze_Pragma, Refined_Post case): Warn on pre/postconditions on
1313         an inlined subprogram.
1314         (Analyze_Pre_Post_Condition_In_Decl_Part): Code cleanup. Warn on
1315         pre/post condition on an inlined subprogram.
1316         (Analyze_Test_Case_In_Decl_Part): Code cleanup. Warn on
1317         pre/postconditions on an inlined subprogram.
1318         (Check_Postcondition_Use_In_Inlined_Subprogram): New routine.
1320 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
1322         * sem_prag.adb (Ensure_Aggregate_Form):
1323         Ensure that the name denoted by the Chars of a pragma argument
1324         association has the proper Sloc when converted into an aggregate.
1326 2015-03-02  Bob Duff  <duff@adacore.com>
1328         * sem_ch6.adb (Check_Private_Overriding): Capture
1329         Incomplete_Or_Partial_View in a constant. This is cleaner and
1330         more efficient.
1332 2015-03-02  Gary Dismukes  <dismukes@adacore.com>
1334         * einfo.ads, exp_unst.ads: Minor reformatting.
1336 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
1338         * a-strsea.adb (Find_Token): Ensure that the range of iteration
1339         does not perform any improper character access. This prevents
1340         erroneous access in the unusual case of an empty string target
1341         and a From parameter less than Source'First.
1343 2015-03-02  Robert Dewar  <dewar@adacore.com>
1345         * elists.adb (List_Length): Fix incorrect result.
1347 2015-03-02  Bob Duff  <duff@adacore.com>
1349         * sem_ch6.adb (Check_Private_Overriding): Refine the legality
1350         checks here. It used to check that the function is merely
1351         overriding SOMEthing. Now it checks that the function is
1352         overriding a corresponding public operation. This is a correction
1353         to the implementation of the rule in RM-3.9.3(10).
1355 2015-03-02  Robert Dewar  <dewar@adacore.com>
1357         * debug.adb: Document new debug flag -gnatd.1.
1358         * einfo.ads, einfo.adb (Has_Nested_Subprogram): New flag.
1359         (Has_Uplevel_Reference): New flag (Is_Static_Type): New flag.
1360         (Uplevel_Reference_Noted):New flag (Uplevel_References): New field.
1361         * elists.ads elists.adb (List_Length): New function.
1362         * exp_ch6.adb (Expand_N_Subprogram_Body): Call Unnest_Subprogram
1363         when appropriate (Process_Preconditions): Minor code
1364         reorganization and reformatting
1365         * exp_unst.ads, exp_unst.adb: New files.
1366         * gnat1drv.adb (Adjust_Global_Switches): Set
1367         Unnest_Subprogram_Mode if -gnatd.1
1368         * namet.ads, namet.adb (Name_Find_Str): New version of Name_Find with
1369         string argument.
1370         * opt.ads (Unnest_Subprogram_Mode): New flag.
1371         * par-ch3.adb (P_Identifier_Declarations): Fixes to -gnatd.2 handling.
1372         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set
1373         Has_Nested_Subprogram flag.
1374         * sem_ch8.adb (Find_Direct_Name): New calling sequence for
1375         Check_Nested_Access.
1376         (Find_Selected_Component): Minor comment addition.
1377         * sem_util.adb (Check_Nested_Access): New version for use with Exp_Unst.
1378         (Note_Possible_Modification): New calling sequence for
1379         Check_Nested_Access.
1380         * sem_util.ads (Check_Nested_Access): New version for use with Exp_Unst.
1381         * gcc-interface/Make-lang.in (GNAT1_OBJS): Add exp_unst.o
1383 2015-03-02  Pierre-Marie de Rodat  <derodat@adacore.com>
1385         * gcc-interface/utils.c (gnat_pushdecl): For non-artificial pointer
1386         types, preserve the original type and create copies just like the C
1387         front-end does.  For artificial ones, do not define a name for
1388         the original type.
1389         (create_type_decl): When gnat_pushdecl made the input type the
1390         original type for the new declaration, do not define a stub
1391         declaration for it.
1392         * gcc-interface/utils2.c (build_binary_op): Accept two different
1393         pointer types when they point to the same type.
1395 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
1397         * exp_util.adb (Possible_Bit_Aligned_Component): Do not process
1398         an unanalyzed node.
1399         * sem_util.adb (Kill_Current_Values): Do not invalidate and
1400         de-null a constant.
1402 2015-03-02  Robert Dewar  <dewar@adacore.com>
1404         * sem_ch3.adb, exp_attr.adb, checks.adb, exp_aggr.adb: Minor
1405         reformatting.
1407 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
1409         * sem_ch8.adb: extend use of Available_Subtype.
1411 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
1413         * sem_prag.adb (Duplication_Error): Remove the special handling
1414         of 'Class or _Class in the context of pre/postconditions.
1415         (Process_Class_Wide_Condition): Remove the special handling of
1416         'Class or _Class in the context of pre/postconditions.
1417         * sem_util.adb (Original_Aspect_Pragma_Name): Names Pre_Class
1418         and Post_Class no longer need to be converted to _Pre and _Post.
1419         * sem_util.ads (Original_Aspect_Pragma_Name): Update the comment
1420         on usage.
1422 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
1424         * exp_ch6.adb (Process_Preconditions): Modify the
1425         mechanism that find the first source declaration to correct exit
1426         the loop once it has been found.
1428 2015-03-02  Gary Dismukes  <dismukes@adacore.com>
1430         * a-strsea.adb: Minor typo fix.
1432 2015-03-02  Bob Duff  <duff@adacore.com>
1434         * einfo.ads: Minor comment fixes.
1436 2015-03-02  Gary Dismukes  <dismukes@adacore.com>
1438         * einfo.adb, checks.adb: Minor reformatting and typo fixes.
1440 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
1442         * exp_aggr.adb (Get_Assoc_Expr): If the Default_Component_Value
1443         is defined for the array type, use it instead of a Default_Value
1444         specified for the component type itself.
1446 2015-03-02  Thomas Quinot  <quinot@adacore.com>
1448         * exp_attr.adb (Expand_N_Attribute_Reference, case Input): When
1449         expanding a 'Input attribute reference for a class-wide type,
1450         do not generate a separate object declaration for the controlling
1451         tag dummy object; instead, generate the expression inline in the
1452         dispatching call. Otherwise, the declaration (which involves a
1453         call to String'Input, returning a dynamically sized value on the
1454         secondary stack) will be expanded outside of proper secondary
1455         stack mark/release operations, and will thus cause a secondary
1456         stack leak.
1458 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
1460         * checks.adb (Add_Validity_Check): Change the names of all
1461         formal parameters to better illustrate their purpose. Update
1462         the subprogram documentation. Update all occurrences of the
1463         formal parameters. Generate a pre/postcondition pragma by
1464         calling Build_Pre_Post_Condition.
1465         (Build_PPC_Pragma): Removed.
1466         (Build_Pre_Post_Condition): New routine.
1467         * einfo.adb Node8 is no longer used as Postcondition_Proc. Node14
1468         is now used as Postconditions_Proc. Flag240 is now renamed to
1469         Has_Expanded_Contract.  (First_Formal): The routine can now
1470         operate on generic subprograms.
1471         (First_Formal_With_Extras): The routine can now operate on generic
1472         subprograms.
1473         (Has_Expanded_Contract): New routine.
1474         (Has_Postconditions): Removed.
1475         (Postcondition_Proc): Removed.
1476         (Postconditions_Proc): New routine.
1477         (Set_Has_Expanded_Contract): New routine.
1478         (Set_Has_Postconditions): Removed.
1479         (Set_Postcondition_Proc): Removed.
1480         (Set_Postconditions_Proc): New routine.
1481         (Write_Entity_Flags): Remove the output of Has_Postconditions. Add
1482         the output of Has_Expanded_Contract.
1483         (Write_Field8_Name): Remove the output of Postcondition_Proc.
1484         (Write_Field14_Name): Add the output of Postconditions_Proc.
1485         * einfo.ads New attributes Has_Expanded_Contract and
1486         Postconditions_Proc along with occurrences in entities.
1487         Remove attributes Has_Postconditions and Postcondition_Proc
1488         along with occurrences in entities.
1489         (Has_Expanded_Contract): New routine along with pragma Inline.
1490         (Has_Postconditions): Removed along with pragma Inline.
1491         (Postcondition_Proc): Removed along with pragma Inline.
1492         (Postconditions_Proc): New routine along with pragma Inline.
1493         (Set_Has_Expanded_Contract): New routine along with pragma Inline.
1494         (Set_Has_Postconditions): Removed along with pragma Inline.
1495         (Set_Postcondition_Proc): Removed along with pragma Inline.
1496         (Set_Postconditions_Proc): New routine along with pragma Inline.
1497         * exp_ch6.adb (Add_Return): Code cleanup. Update the
1498         generation of the call to the _Postconditions routine of
1499         the procedure.  (Expand_Non_Function_Return): Reformat the
1500         comment on usage. Code cleanup.  Update the generation of
1501         the call to the _Postconditions routine of the procedure or
1502         entry [family].
1503         (Expand_Simple_Function_Return): Update the
1504         generation of the _Postconditions routine of the function.
1505         (Expand_Subprogram_Contract): Reimplemented.
1506         * exp_ch6.ads (Expand_Subprogram_Contract): Update the parameter
1507         profile along the comment on usage.
1508         * exp_ch9.adb (Build_PPC_Wrapper): Code cleanup.
1509         (Expand_N_Task_Type_Declaration): Generate pre/postconditions
1510         wrapper when the entry [family] has a contract with
1511         pre/postconditions.
1512         * exp_prag.adb (Expand_Attributes_In_Consequence): New routine.
1513         (Expand_Contract_Cases): This routine and its subsidiaries now
1514         analyze all generated code.
1515         (Expand_Old_In_Consequence): Removed.
1516         * sem_attr.adb Add with and use clause for Sem_Prag.
1517         (Analyze_Attribute): Reimplment the analysis of attribute 'Result.
1518         (Check_Use_In_Test_Case): Use routine Test_Case_Arg to obtain
1519         "Ensures".
1520         * sem_ch3.adb (Analyze_Declarations): Analyze the contract of
1521         a generic subprogram.
1522         (Analyze_Object_Declaration): Do not create a contract node.
1523         (Derive_Subprogram): Do not create a contract node.
1524         * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Do
1525         not create a contract node.
1526         (Analyze_Completion_Contract): New routine.
1527         (Analyze_Function_Return): Alphabetize.
1528         (Analyze_Generic_Subprogram_Body): Alphabetize. Do not create a
1529         contract node.  Do not copy pre/postconditions to the original
1530         generic template.
1531         (Analyze_Null_Procedure): Do not create a contract node.
1532         (Analyze_Subprogram_Body_Contract): Reimplemented.
1533         (Analyze_Subprogram_Body_Helper): Do not mark the enclosing scope
1534         as having postconditions. Do not create a contract node. Analyze
1535         the subprogram body contract of a body that acts as a compilation
1536         unit. Expand the subprogram contract after the declarations have
1537         been analyzed.
1538         (Analyze_Subprogram_Contract): Reimplemented.
1539         (Analyze_Subprogram_Specification): Do not create a contract node.
1540         (List_Inherited_Pre_Post_Aspects): Code cleanup.
1541         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Update the
1542         comment on usage.
1543         (Analyze_Subprogram_Contract): Update the
1544         parameter profile and the comment on usage.
1545         * sem_ch7.adb (Analyze_Package_Body_Helper): Do not create a
1546         contract node.
1547         (Analyze_Package_Declaration): Do not create a
1548         contract node.
1549         (Is_Subp_Or_Const_Ref): Ensure that the prefix has an entity.
1550         * sem_ch8.adb (Analyze_Subprogram_Renaming): Do not create a
1551         contract node.
1552         * sem_ch9.adb (Analyze_Entry_Declaration): Do not create a
1553         contract node.
1554         * sem_ch10.adb (Analyze_Compilation_Unit): Move local variables to
1555         their proper section and alphabetize them. Analyze the contract of
1556         a [generic] subprogram after all Pragmas_After have been analyzed.
1557         (Analyze_Subprogram_Body_Stub_Contract): Alphabetize.
1558         * sem_ch12.adb (Analyze_Generic_Package_Declaration): Do not
1559         create a contract node.
1560         (Analyze_Generic_Subprogram_Declaration):
1561         Alphabetize local variables. Do not create a contract
1562         node. Do not generate aspects out of pragmas for ASIS.
1563         (Analyze_Subprogram_Instantiation): Instantiate
1564         the contract of the subprogram.  Do not create a
1565         contract node.  (Instantiate_Contract): New routine.
1566         (Instantiate_Subprogram_Body): Alphabetize local variables.
1567         (Save_Global_References_In_Aspects): New routine.
1568         (Save_References): Do not save the global references found within
1569         the aspects of a generic subprogram.
1570         * sem_ch12.ads (Save_Global_References_In_Aspects): New routine.
1571         * sem_ch13.adb (Analyze_Aspect_Specifications): Do not use
1572         Original_Node for establishing linkages.
1573         (Insert_Pragma): Insertion in a subprogram body takes precedence over
1574         the case where the subprogram body is also a compilation unit.
1575         * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): Use
1576         Get_Argument to obtain the proper expression. Install the generic
1577         formals when the related context is a generic subprogram.
1578         (Analyze_Depends_In_Decl_Part): Use Get_Argument to obtain
1579         the proper expression. Use Corresponding_Spec_Of to obtain
1580         the spec. Install the generic formal when the related context
1581         is a generic subprogram.
1582         (Analyze_Global_In_Decl_Part): Use Get_Argument to obtain the proper
1583         expression. Use Corresponding_Spec_Of to obtain the spec. Install the
1584         generic formal when the related context is a generic subprogram.
1585         (Analyze_Initial_Condition_In_Decl_Part): Use Get_Argument
1586         to obtain the proper expression. Remove the call to
1587         Check_SPARK_Aspect_For_ASIS as the analysis is now done
1588         automatically.
1589         (Analyze_Pragma): Update all occurrences
1590         to Original_Aspect_Name. Pragmas Contract_Cases, Depends,
1591         Extensions_Visible, Global, Postcondition, Precondition and
1592         Test_Case now carry generic templates when the related context
1593         is a generic subprogram. The same pragmas are no longer
1594         forcefully fully analyzed when the context is a subprogram
1595         that acts as a compilation unit. Pragmas Abstract_State,
1596         Initial_Condition, Initializes and Refined_State have been clean
1597         up. Pragmas Post, Post_Class, Postcondition, Pre, Pre_Class
1598         and Precondition now use the same routine for analysis. Pragma
1599         Refined_Post does not need to check the use of 'Result or
1600         the lack of a post-state in its expression. Reimplement the
1601         analysis of pragma Test_Case.
1602         (Analyze_Pre_Post_Condition): New routine.
1603         (Analyze_Pre_Post_Condition_In_Decl_Part):
1604         Reimplemented.
1605         (Analyze_Refined_Depends_In_Decl_Part): Use Get_Argument to obtain the
1606         proper expression.
1607         (Analyze_Refined_Global_In_Decl_Part): Use Get_Argument to obtain
1608         the proper expression.
1609         (Analyze_Test_Case_In_Decl_Part): Reimplemented.
1610         (Check_Pre_Post): Removed.
1611         (Check_Precondition_Postcondition): Removed.
1612         (Check_SPARK_Aspect_For_ASIS): Removed.
1613         (Check_Test_Case): Removed.
1614         (Collect_Subprogram_Inputs_Outputs): Use Get_Argument
1615         to obtain the proper expression. Use Corresponding_Spec_Of to
1616         find the proper spec.
1617         (Create_Generic_Template): New routine.
1618         (Duplication_Error): New routine.
1619         (Expression_Function_Error): New routine.
1620         (Find_Related_Subprogram_Or_Body): Moved to the spec
1621         of Sem_Prag. Emit precise error messages. Account for cases of
1622         rewritten expression functions, generic instantiations, handled
1623         sequence of statements and pragmas from aspects.
1624         (Get_Argument): New routine.
1625         (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Removed.
1626         (Preanalyze_CTC_Args): Removed.
1627         (Process_Class_Wide_Condition): New routine.
1628         * sem_prag.ads (Analyze_Test_Case_In_Decl_Part): Update
1629         the parameter profile along with the comment on usage.
1630         (Find_Related_Subprogram_Or_Body): Moved from the body of Sem_Prag.
1631         (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Removed.
1632         (Test_Case_Arg): New routine.
1633         * sem_util.adb Add with and use clauses for Sem_Ch6.
1634         (Add_Contract_Item): This routine now creates a contract
1635         node the first time an item is added. Remove the duplicate
1636         aspect/pragma checks.
1637         (Check_Result_And_Post_State): Reimplemented.
1638         (Corresponding_Spec_Of): New routine.
1639         (Get_Ensures_From_CTC_Pragma): Removed.
1640         (Get_Requires_From_CTC_Pragma): Removed.
1641         (Has_Significant_Contract): New routine.
1642         (Inherit_Subprogram_Contract): Inherit only if the source
1643         has a contract.
1644         (Install_Generic_Formals): New routine.
1645         (Original_Aspect_Name): Removed.
1646         (Original_Aspect_Pragma_Name): New routine.
1647         * sem_util.ads (Check_Result_And_Post_State): Reimplemented.
1648         (Corresponding_Spec_Of): New routine.
1649         (Get_Ensures_From_CTC_Pragma): Removed.
1650         (Get_Requires_From_CTC_Pragma): Removed.
1651         (Has_Significant_Contract): New routine.
1652         (Install_Generic_Formals): New routine.
1653         (Original_Aspect_Name): Removed.
1654         (Original_Aspect_Pragma_Name): New routine.
1655         * sem_warn.adb Add with and use clauses for Sem_Prag.
1656         (Within_Postcondition): Use Test_Case_Arg to extract "Ensures".
1658 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
1660         * sem_ch8.adb (Available_Subtype): Optimization in
1661         Find_Selected_Component: when safe, use existing subtype of
1662         array component, possibly discriminant-dependent, rather than
1663         creating new subtype declaration for it. In this fashion different
1664         occurrences of the component have the same subtype, rather than
1665         just equivalent ones. Simplifies value tracing in GNATProve.
1667 2015-03-01  Arnaud Charlet  <charlet@adacore.com>
1669         PR ada/65259
1671         * doc/gnat_ugn/gnat_project_manager.rst,
1672         doc/gnat_ugn/platform_specific_information.rst: Remove reference to
1673         image, too troublesome with texi format.
1674         * gnat_ugn.texi: Regenerate.
1676 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
1678         PR libgomp/64625
1679         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8): Remove.
1680         (DEF_FUNCTION_TYPE_VAR_12): Likewise.
1681         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
1683 2015-02-23  Thomas Schwinge  <thomas@codesourcery.com>
1685         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8): Fix number of
1686         arguments parameter.
1687         (DEF_FUNCTION_TYPE_VAR_12): Likewise.
1689 2015-02-22  Arnaud Charlet  <charlet@adacore.com>
1691         * doc/Makefile: postprocess texinfo files to update @dircategory
1692         and update texi files under gcc/ada.
1693         * gnat_ugn.texi, gnat_rm.texi: Regenerated.
1695 2015-02-22  Arnaud Charlet  <charlet@adacore.com>
1697         * doc/gnat_ugn/project-manager-figure.png,
1698         doc/gnat_ugn/rtlibrary-structure.png: New.
1700 2015-02-22  Tom de Vries  <tom@codesourcery.com>
1702         PR ada/65100
1703         * gnat-style.texi (@subsection Loop Statements): Replace @noindent by
1704         @item, and fix warning '@itemize has text but no @item'.
1706 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
1708         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Pragma
1709         legally applies to an abstract subprogram declaration.
1710         * freeze.adb: Minor comment addition.
1712 2015-02-20  Robert Dewar  <dewar@adacore.com>
1714         * errout.ads: Document replacement of Name_uPre/Post/Type_Invariant.
1715         * erroutc.adb (Set_Msg_Str): Replace _xxx.
1716         (Pre/Post/Type_Invariant) by xxx'Class.
1717         * erroutc.ads (Set_Msg_Str): Replace _xxx.
1718         (Pre/Post/Type_Invariant) by xxx'Class.
1719         * sem_prag.adb (Fix_Error): Remove special casing of
1720         Name_uType_Invariant.
1721         (Analyze_Pre_Post_Condition_In_Decl_Part): Remove special casing of
1722         Name_uPre and Name_uPost in aspect case (done in Errout now).
1724 2015-02-20  Robert Dewar  <dewar@adacore.com>
1726         * g-alveop.adb: Minor style fixes.
1728 2015-02-20  Robert Dewar  <dewar@adacore.com>
1730         * freeze.adb (Warn_Overlay): Guard against blow up with address
1731         clause.
1733 2015-02-20  Bob Duff  <duff@adacore.com>
1735         * exp_attr.adb (May_Be_External_Call): Remove this. There is no need
1736         for the compiler to guess whether the call is internal or external --
1737         it is always external.
1738         (Expand_Access_To_Protected_Op): For P'Access, where P
1739         is a protected subprogram, always create a pointer to the
1740         External_Subprogram.
1742 2015-02-20  Robert Dewar  <dewar@adacore.com>
1744         * a-dispat.adb, a-stcoed.ads: Minor reformatting.
1746 2015-02-20  Robert Dewar  <dewar@adacore.com>
1748         * sem_ch13.adb (Build_Discrete_Static_Predicate): Allow static
1749         predicate for non-static subtype.
1750         (Build_Predicate_Functions): Do not assume subtype associated with a
1751         static predicate must be static.
1753 2015-02-20  Robert Dewar  <dewar@adacore.com>
1755         * errout.adb (Set_Msg_Node): Better handling of internal names
1756         (Set_Msg_Node): Kill message when we cannot eliminate internal name.
1757         * errout.ads: Document additional case of message deletion.
1758         * namet.adb (Is_Internal_Name): Refined to consider wide
1759         strings in brackets notation and character literals not to be
1760         internal names.
1761         * sem_ch8.adb (Find_Selected_Component): Give additional error
1762         when selector name is a subprogram whose first parameter has
1763         the same type as the prefix, but that type is untagged.
1765 2015-02-20  Robert Dewar  <dewar@adacore.com>
1767         * g-allein.ads, g-alveop.adb, g-alveop.ads, opt.ads: Minor reformatting
1769 2015-02-20  Tristan Gingold  <gingold@adacore.com>
1771         * opt.ads (GNAT_Mode_Config): New variable.
1772         * opt.adb (Set_Opt_Config_Switches): Consider GNAT_Mode_Config
1773         to set Assertions_Enabled.
1774         * switch-c.adb (Scan_Front_End_Switches): Set GNAT_Mode_Config
1775         for -gnatg.
1777 2015-02-20  Robert Dewar  <dewar@adacore.com>
1779         * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add an additional
1780         comment regarding the handling of unterminated fixed-point
1781         constants.
1782         * s-valuns.ads (Scan_Raw_Unsigned): Add comments
1783         corresponding to those previously added for
1784         System.Val_LLU.Scan_Raw_Long_Long_Unsigned.
1786 2015-02-20  Olivier Hainque  <hainque@adacore.com>
1788         * g-allein.ads, g-alveop.ads, g-alveop.adb: Code clean ups.
1790 2015-02-20  Robert Dewar  <dewar@adacore.com>
1792         * sem_prag.adb: Minor comment clarification.
1794 2015-02-20  Olivier Hainque  <hainque@adacore.com>
1796         * g-allein.ads (vec_ctf, vec_vcsfx, vec_vcfux): Remove.
1797         * g-alleve.ads, g-alleva.adb (vcfux): Likewise.
1798         * g-alveop.ads (vec_vcfsx, vec_vcfux): Just rename the ll versions.
1799         (vec_ctf): Now renamings as well.
1801 2015-02-20  Robert Dewar  <dewar@adacore.com>
1803         * switch-c.adb, bindgen.adb: Minor reformatting.
1805 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
1807         * sem_prag.adb (Analyze_Pragma, case Type_Invariant):
1808         Invariant'class is allowed on an abstract type.
1810 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
1812         * sem_ch3.adb (Access_Definition): If the access definition is
1813         for a protected component and defines an access to protected
1814         subprogram, do not create an itype reference for it because a
1815         full type declaration will be built in order to generate the
1816         proper equivalent type.
1817         (Analyze_Subtype_Declaration): Add information of incomplete
1818         subtypes, for Ada 2012 extended uses of incomplete types.
1820 2015-02-20  Gary Dismukes  <dismukes@adacore.com>
1822         * sem_res.adb: Minor reformatting.
1824 2015-02-20  Vincent Celier  <celier@adacore.com>
1826         * switch-c.adb (Scan_Front_End_Switches): When comparing runtime
1827         path name for several switches --RTS, use the normalized path
1828         names.
1830 2015-02-20  Vincent Celier  <celier@adacore.com>
1832         * bindgen.adb: Minor reformatting and code reorganization.
1834 2015-02-20  Jose Ruiz  <ruiz@adacore.com>
1836         * a-stcoed.ads: Add spec for this package (Unimplemented_Unit).
1837         * impunit.adb (Non_Imp_File_Names_12): Mark unit a-stcoed.ads as
1838         defined by Ada 2012.
1840 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
1842         * sysdep.c, expect.c, s-oscons-tmplt.c, gsocket.h, adaint.c: Remove
1843         obsolete references to RTX, nucleus, VMS.
1845 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
1847         * sem_prag.adb (Fix_Error): For an illegal Type_Invariant'Class
1848         aspect, use name that mentions Class explicitly, rather than
1849         compiler-internal name.
1851 2015-02-20  Robert Dewar  <dewar@adacore.com>
1853         * debug.adb: Add documentation for -gnatd.2 (allow statements
1854         in decl sequences).
1855         * par-ch3.adb (P_Identifier_Declarations): Handle
1856         statement appearing where declaration expected more cleanly.
1857         (Statement_When_Declaration_Expected): Implement debug flag
1858         -gnatd.2.
1860 2015-02-20  Jose Ruiz  <ruiz@adacore.com>
1862         * a-dinopr.ads: Add spec for this package (Unimplemented_Unit).
1863         * a-dispat.ads (Yield): Include procedure added in Ada 2012.
1864         * a-dispat.adb (Yield): Implement procedure added in Ada 2012.
1865         * impunit.adb (Non_Imp_File_Names_05): Mark unit a-dinopr.ads as
1866         defined by Ada 2005.
1867         * snames.ads-tmpl (Name_Non_Preemptive_FIFO_Within_Priorities):
1868         This is the correct name for the dispatching policy (FIFO was
1869         missing).
1871 2015-02-20  Javier Miranda  <miranda@adacore.com>
1873         * sem_res.adb (Resolve_Type_Conversion): If the type of the
1874         operand is the limited-view of a class-wide type then recover
1875         the class-wide type of the non-limited view.
1877 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
1879         * gcc-interface/Makefile.in: Remove references to nucleus.
1880         * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Procedure): Set
1881         extern_flag to true for Inline_Always subprograms with
1882         Intrinsic convention.
1884 2015-02-20  Yannick Moy  <moy@adacore.com>
1886         * sem_prag.ads: Minor typo in comment.
1888 2015-02-20  Pascal Obry  <obry@adacore.com>
1890         * s-osprim-mingw.adb: Fix Get_Base_Time parameter mode.
1892 2015-02-20  Vincent Celier  <celier@adacore.com>
1894         * makeutl.adb (Get_Directories.Add_Dir): Add a directory only
1895         if it exists.
1897 2015-02-20  Robert Dewar  <dewar@adacore.com>
1899         * sem_eval.ads: Minor reformatting.
1901 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
1903         * freeze.adb (Size_Known): Do not set the packed size for
1904         independent type or component.
1905         (Freeze_Array_Type): Check for Independent[_Components] with packing
1906         or explicit component size clause.
1907         * gnat1drv.adb (Post_Compilation_Validation_Checks): Do the validation
1908         of independence pragmas only for non-GCC back-ends.
1909         * sem_ch13.adb (Initialize): Likewise for the initialization.
1910         * sem_prag.adb (Record_Independence_Check): New procedure to record an
1911         independence check in the table.
1912         (Analyze_Pragma): Use it throughout instead of doing it manually.
1913         * gcc-interface/decl.c (gnat_to_gnu_field): Add support for
1914         independent type or component.
1916 2015-02-20  Thomas Quinot  <quinot@adacore.com>
1918         * adaint.c (__gnat_readdir): For Solaris, use 64 bit variants of
1919         struct direct and readdir. This is required for NFS filesystems
1920         mounted from servers that use 64-bit cookies.
1922 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
1924         * sem_ch12.adb (Analyze_Subprogram_Instantiaion): New subprogram
1925         Build_Subprogram_Renaming, to create renaming of subprogram
1926         instance in the the declaration of the wrapper package rather
1927         than in its body, so that it is available for analysis of aspects
1928         propagated from generic to instantiation.
1929         (Check_Mismatch): An actual for a formal package that is an
1930         incomplete type matches a formal type that is incomplete.
1931         (Instantiate_Package_Body): Move code that builds subprogram
1932         renaming to Analyze_Subprogram_Instantiation.
1933         (Instantiate_Type): The generated subtype is a limited view if
1934         the actual is a limited view.
1935         (Load_Parent_Of_Generic): Retrieve instance declaration from
1936         its new position within wrapper package.
1938 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
1940         * s-parame-vxworks.adb, s-os_lib.ads: Update comments.
1942 2015-02-20  Robert Dewar  <dewar@adacore.com>
1944         * s-osinte-vxworks.ads (To_Timespec): Add comment about the
1945         issue of negative arguments.
1947 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
1949         * gnat1drv.adb: Minor consistency fix.
1951 2015-02-20  Pascal Obry  <obry@adacore.com>
1953         * s-osprim-mingw.adb (Get_Base_Time): Properly release lock in all
1954         paths.
1956 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
1958         * inline.adb (Expand_Inlined_Call): Skip again calls to subprogram
1959         renamings.
1960         * exp_ch6.adb (Expand_Call): Use back-end inlining
1961         instead of expansion for simple subprogram renamings.
1963 2015-02-20  Robert Dewar  <dewar@adacore.com>
1965         * exp_util.adb: Minor reformatting.
1967 2015-02-20  Vincent Celier  <celier@adacore.com>
1969         * switch-c.adb (Scan_Front_End_Switches): Do not fail when --RTS=
1970         is specified several times with different values that indicates
1971         the same runtime directory.
1973 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
1975         * sem_attr.adb (Check_Not_Incomplete_Type): Clean up code to
1976         handle properly illegal uses of attributes on prefixes on an
1977         incomplete type, both when the type of the prefix is locally
1978         incomplete, and when it is a limited view of a type whose
1979         non-limited view is not available.
1980         (Analyze_Attribute): Add calls to Check_Not_Incomplete_Type for
1981         'Address and others.
1983 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
1985         * exp_ch6.adb: Fix minor typo in comment.
1987 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
1989         * sinfo.ads: Add comment.
1991 2015-02-20  Olivier Hainque  <hainque@adacore.com>
1993         * opt.ads: Replace Opt.Suppress_All_Inlining by two separate
1994         flags controlling the actual FE inlining out of pragma Inline
1995         and pragma Inline_Always.
1996         * adabkend.adb (Scan_Compiler_Arguments): Set both flags to True
1997         on -fno-inline, which disables all inlining in compilers with
1998         an Ada back-end and without back-end inlining support.
1999         * back_end.adb (Scan_Back_End_Switches): Set the Inline related
2000         flag to True on -fno-inline and leave Inline_Always alone for
2001         gcc back-ends.
2002         * back_end.ads (Scan_Compiler_Arguments): Adjust spec wrt the
2003         names of the Opt flags it sets.
2004         * gnat1drv.adb (Adjust_Global_Switches): Remove test on
2005         Opt.Suppress_All_Inlining in the Back_End_Inlining computation.
2006         * sem_prag.adb (Make_Inline): Remove early return conditioned
2007         on Opt.Suppress_All_Inlining.
2008         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use the flags to
2009         disable the calls to Build_Body_To_Inline otherwise triggered
2010         by pragma Inline or Inline_Always. This will prevent actual
2011         front-end inlining of the subprogram on calls.
2013 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
2015         * exp_ch3.adb (Default_Initialize_Object): Call Add_Inlined_Body on the
2016         Abort_Undefer_Direct function.
2017         * exp_ch5.adb (Expand_N_Assignment_Statement): Likewise.
2018         * exp_intr.adb (Expand_Unc_Deallocation): Likewise.
2019         * exp_prag.adb (Expand_Pragma_Abort_Defer): Likewise.
2020         * exp_ch4.adb (Expand_N_Selected_Component): Adjust call to
2021         Add_Inlined_Body.
2022         * exp_ch6.adb (Expand_Call): Adjust calls to Add_Inlined_Body.
2023          Remove call to Register_Backend_Call and move code resetting
2024         Needs_Debug_Info on inlined subprograms to...
2025         * inline.ads (Add_Inlined_Body): Add N parameter.
2026         (Register_Backend_Call): Delete.
2027         * inline.adb (Add_Inlined_Body): ...here and simplify.
2028          Register the call with Backend_Calls directly.
2029         (Register_Backend_Call): Delete.
2030         * s-stalib.ads (Abort_Undefer_Direct): Restore pragma Inline.
2032 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
2034         * s-stalib.ads: Fix typo.
2036 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
2038         * exp_ch3.adb (Default_Initialize_Object): If the object has a
2039         delayed freeze, the actions associated with default initialization
2040         must be part of the freeze actions, rather that being inserted
2041         directly after the object declaration.
2043 2015-02-20  Robert Dewar  <dewar@adacore.com>
2045         * lib-load.adb: Minor comment update.
2047 2015-02-20  Vincent Celier  <celier@adacore.com>
2049         * prj-proc.adb (Process_Case_Construction): When there are
2050         incomplete withed projects and the case variable is unknown,
2051         skip the case construction.
2053 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
2055         * exp_ch6.adb (Expand_Actuals): Add caller-side invariant checks
2056         when an actual is a view conversion, either because the call is
2057         to an inherited operation, or because the actual is an explicit
2058         type conversion to an ancestor type.  Fixes ACATS 4.0D: C732001
2060 2015-02-20  Robert Dewar  <dewar@adacore.com>
2062         * einfo.ads: Minor comment updates Fix missing pragma Inline
2063         for Set_Partial_View_Has_Unknown_Discr.
2064         * einfo.adb (Write_Entity_Flags): Add missing entry for
2065         Partial_View_Has_Unknown_Discr.
2066         * sem_ch3.adb: Minor reformatting.
2068 2015-02-20  Vincent Celier  <celier@adacore.com>
2070         * opt.ads: Minor cleanup: remove mention of gprmake.
2071         * s-stalib.ads (Abort_Undefer_Direct): Do not inline.
2072         * s-tataat.adb: Do not call System.Tasking.Self but directly
2073         System.Task_Primitives.Operations.Self.
2075 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
2077         * gnat_rm.texi, gnat_ugn.texi: Now automatically generated from
2078         sphinx in the doc directory.
2079         * doc: New directory containing sphinx versions of gnat_rm and gnat_ugn
2081 2015-02-20  Robert Dewar  <dewar@adacore.com>
2083         * sem_res.adb: Minor reformatting.
2084         * exp_ch9.adb (Build_Protected_Spec): Copy Aliased setting when
2085         building spec.
2086         * sem_ch13.adb (Analyze_Aspect_Specifications): Exclude Boolean
2087         aspects from circuitry setting delay required to false if the
2088         argument is an integer literal.
2090 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
2092         * einfo.ads. einfo.adb (Partial_View_Has_Unknown_Discr):  New flag
2093         on type entities, to enforce AI12-0133: default initialization
2094         of types whose partial view has unknown discriminants does not
2095         get an invariant check, because clients of the unit can never
2096         declare objects of such types.
2097         * sem_ch3.adb (Find_Type_Name); Set new flag
2098         Partial_View_Has_Unknown_Discr when needed.
2099         * exp_ch3.adb (Expand_N_Object_Declaration): Use flag to suppress
2100         generation of invariant call on default-initialized object.
2102 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
2104         * gcc-interface/decl.c (gnat_to_gnu_param): Do not strip the padding
2105         if the parameter either is passed by reference or if the alignment
2106         would be lowered.
2108 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
2110         * gcc-interface/decl.c (is_cplusplus_method): Use Is_Primitive flag to
2111         detect primitive operations of tagged and untagged types.
2113 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
2115         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias
2116         sets in presence of derivation for subprogram types.
2118 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
2120         * gcc-interface/utils.c (begin_subprog_body): Assert that the body is
2121         present in the same context as the declaration.
2123 2015-02-07  Jakub Jelinek  <jakub@redhat.com>
2125         PR middle-end/64340
2126         * gcc-interface/trans.c (gigi): Recreate optimization_default_node
2127         and optimization_current_node after tweaking global_options.
2129 2015-02-05  Robert Dewar  <dewar@adacore.com>
2131         * prj-proc.adb, sem_aux.adb, exp_ch9.adb, errout.adb, prj-dect.adb,
2132         prj-nmsc.adb: Minor reformatting.
2134 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
2136         * sem_type.adb (Covers): In ASIS_Mode the Corresponding_Record
2137         of a protected type may not be available, so to check conformance
2138         with an interface type, examine the interface list in the type
2139         declaration directly.
2140         (Write_Overloads): Improve information for indirect calls,
2141         for debugger use.
2143 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
2145         * exp_ch3.adb (Make_Tag_Assignment): Do not perform this
2146         expansion activity in ASIS mode.
2148 2015-02-05  Javier Miranda  <miranda@adacore.com>
2150         * errout.adb (Error_Msg_PT): Add missing error.
2151         * sem_ch6.adb (Check_Synchronized_Overriding): Check the missing
2152         RM rule.  Code cleanup.
2153         * exp_ch9.adb (Build_Wrapper_Spec): Propagate "constant" in
2154         anonymous access types.  Found working on the tests. Code cleanup.
2156 2015-02-05  Vincent Celier  <celier@adacore.com>
2158         * prj-dect.adb (Parse_Attribute_Declaration): Continue scanning
2159         when there are incomplete withs.
2160         * prj-nmsc.adb (Process_Naming): Do not try to get the value
2161         of an element when it is nil.
2162         (Check_Naming): Do not check a nil suffix for illegality
2163         * prj-proc.adb (Expression): Do not process an empty term.
2164         * prj-strt.adb (Attribute_Reference): If attribute cannot be
2165         found, parse a possible index to avoid cascading errors.
2167 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
2169         * sem_aux.adb (Is_Derived_Type): A subprogram_type generated
2170         for an access_to_subprogram declaration is not a derived type.
2172 2015-02-05  Robert Dewar  <dewar@adacore.com>
2174         * errout.adb (Error_Msg_Internal): For non-serious error set
2175         Fatal_Error to Ignored.
2176         * lib-load.adb (Load_Unit): Minor comment updates.
2177         * sem_ch10.adb (Analyze_With_Clause): Propagate Fatal_Error
2178         setting from with'ed unit to with'ing unit.
2179         * sem_prag.adb (Analyze_Pragma, case Warnings): Document handling
2180         of ambiguity.
2182 2015-02-05  Yannick Moy  <moy@adacore.com>
2184         * sem_prag.adb, par-prag.adb: Minor code clean up.
2186 2015-02-05  Yannick Moy  <moy@adacore.com>
2188         * par-prag.adb (Pragma_Warnings): Update for extended form
2189         of pragma Warnings. The "one" argument case may now have 2 or
2190         3 arguments.
2191         * sem_prag.adb (Analyze_Pragma/Pragma_Warnings): Update for
2192         extended form of pragma Warnings. Pragma with tool name is either
2193         rewritten as null or as an equivalent form without tool name,
2194         before reanalysis.
2195         * snames.ads-tmpl (Name_Gnatprove): New name.
2197 2015-02-05  Robert Dewar  <dewar@adacore.com>
2199         * sem_ch13.adb (Add_Invariants): Don't assume invariant is
2200         standard Boolean.
2201         * sem_prag.adb (Analyze_Pragma, case Check): Don't assume
2202         condition is standard Boolean, it can be non-standard derived
2203         Boolean.
2205 2015-02-05  Robert Dewar  <dewar@adacore.com>
2207         * checks.adb (Enable_Range_Check): Disconnect attempted
2208         optimization for the case of range check for subscript of
2209         unconstrained array.
2211 2015-02-05  Robert Dewar  <dewar@adacore.com>
2213         * par-ch13.adb (With_Present): New function
2214         (Aspect_Specifications_Present): Handle WHEN in place of WITH
2215         (Get_Aspect_Specifications): Comment update.
2216         * par.adb: Comment updates.
2218 2015-02-05  Robert Dewar  <dewar@adacore.com>
2220         * errout.adb (Handle_Serious_Error): New setting of Fatal_Error.
2221         * frontend.adb (Frontend): New setting of Fatal_Error.
2222         * lib-load.adb (Create_Dummy_Package_Unit): New setting of
2223         Fatal_Error.
2224         (Load_Main_Source): New setting of Fatal_Error
2225         (Load_Unit): New setting of Fatal_Error.
2226         * lib-writ.adb (Add_Preprocessing_Dependency): New setting of
2227         Fatal_Error.
2228         (Ensure_System_Dependency): New setting of Fatal_Error.
2229         * lib.adb (Fatal_Error): New setting of Fatal_Error
2230         (Set_Fatal_Error): New setting of Fatal_Error.
2231         * lib.ads: New definition of Fatal_Error and associated routines.
2232         * par-ch10.adb (P_Compilation_Unit): New setting of Fatal_Error.
2233         * par-load.adb (Load): New setting of Fatal_Error.
2234         * rtsfind.adb (Load_RTU): New setting of Fatal_Error.
2235         * sem_ch10.adb (Analyze_Compilation_Unit): New setting of
2236         Fatal_Error.
2237         (Optional_Subunit): New setting of Fatal_Error.
2238         (Analyze_Proper_Body): New setting of Fatal_Error.
2239         (Load_Needed_Body): New setting of Fatal_Error.
2241 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
2243         * sem_res.adb (Resolve_Call): If the function being called has
2244         out parameters do not check for language version if the function
2245         comes from a predefined unit, as those are always compiled in
2246         Ada 2012 mode.
2248 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
2250         * sem_ch3.adb (Process_Full_View): Verify that the full view
2251         of a type extension must carry an explicit limited keyword if
2252         the partial view does (RM 7.3 (10.1)).
2254 2015-02-05  Robert Dewar  <dewar@adacore.com>
2256         * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads,
2257         sem_warn.ads: Minor reformatting.
2258         * exp_ch13.adb (Expand_N_Freeze_Entity): Add guard for aspect
2259         deleted by -gnatI.
2260         * sem_prag.adb (Analyze_Pragma, case Type_Invariant): Give
2261         error for abstract type.
2263 2015-02-05  Yannick Moy  <moy@adacore.com>
2265         * opt.ads (Warn_On_Suspicious_Contract): Update comment
2266         describing use.
2267         * sem_attr.adb (Analyze_Attribute/Attribute_Update): Warn on
2268         suspicious uses of 'Update.
2269         * sem_warn.adb, sem_warn.ads (Warn_On_Suspicious_Update): New
2270         function issues warning on suspicious uses of 'Update.
2271         * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads: Mark
2272         package spec and body as SPARK_Mode Off.
2274 2015-02-05  Robert Dewar  <dewar@adacore.com>
2276         * sem_prag.adb (Set_Elab_Unit_Name): New name for Set_Unit_Name
2277         (Analyze_Pragma): Change Set_Unit_Name to Set_Elab_Unit_Name
2278         (Set_Elab_Unit_Name): Generate reference for Elaborate[_All]
2279         * sem_warn.adb (Warn_On_Unreferenced_Entity): Suppress warning
2280         for exported entity.
2282 2015-02-05  Hristian Kirtchev  <kirtchev@adacore.com>
2284         * sem_prag.adb (Check_Pragma_Conformance): Add
2285         local variable Arg. Ensure that all errors are associated with
2286         the pragma if it appears without an argument. Add comments on
2287         various cases.
2289 2015-02-05  Robert Dewar  <dewar@adacore.com>
2291         * lib-xref.adb: Minor reformatting.
2293 2015-02-05  Tristan Gingold  <gingold@adacore.com>
2295         PR ada/64349da/64349
2296         * env.c: Fix thinko: handle Darwin case before default one.
2298 2015-01-30  Robert Dewar  <dewar@adacore.com>
2300         * a-assert.adb: Minor reformatting.
2301         * sem_ch13.adb: Minor comment clarification.
2302         * types.ads: Minor comment update.
2303         * sem_eval.adb (Real_Or_String_Static_Predicate_Matches): Avoid blow up
2304         when we have a predicate that is nothing but an inherited dynamic
2305         predicate.
2307 2015-01-30  Jerome Guitton  <guitton@adacore.com>
2309         * gcc-interface/Makefile.in (x86-vxworks): Update GCC_SPEC_FILES to
2310         include cert link spec.
2312 2015-01-30  Robert Dewar  <dewar@adacore.com>
2314         * einfo.ads: Minor comment fix.
2315         * freeze.adb (Freeze_Profile): Add test for suspicious import
2316         in pure unit.
2317         * sem_prag.adb (Process_Import_Or_Interface): Test for suspicious
2318         use in Pure unit is now moved to Freeze (to properly catch
2319         Pure_Function exemption).
2321 2015-01-30  Bob Duff  <duff@adacore.com>
2323         * sem_res.ads: Minor comment fix.
2324         * sem_type.adb: sem_type.adb (Remove_Conversions): Need to
2325         check both operands of an operator.
2327 2015-01-30  Yannick Moy  <moy@adacore.com>
2329         * a-assert.ads, a-assert.adb: Mark package spec in SPARK. Set assertion
2330         policy for Pre to Ignore.
2331         (Assert): Add precondition.
2333 2015-01-30  Robert Dewar  <dewar@adacore.com>
2335         * sem_prag.adb (Process_Import_Or_Interface): Warn if used in
2336         Pure unit.
2337         * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Clarify
2338         documentation for some special cases of invalid attempts at
2339         based integers.
2341 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
2343         * errout.ads: Minor reformatting.
2345 2015-01-30  Yannick Moy  <moy@adacore.com>
2347         * inline.adb (Process_Formals): Use the sloc of
2348         the inlined node instead of the sloc of the actual parameter,
2349         when replacing formal parameters by the actual one.
2351 2015-01-30  Arnaud Charlet  <charlet@adacore.com>
2353         * g-expect.adb (Get_Command_Output): Use infinite timeout when
2354         calling Expect.
2356 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
2358         * sem_ch12.adb (Analyze_Associations): If an in-parameter is
2359         defaulted in an instantiation, add an entry in the list of actuals
2360         to indicate the default value of the formal (as is already done
2361         for defaulted subprograms).
2363 2015-01-30  Javier Miranda  <miranda@adacore.com>
2365         * errout.adb (Error_Msg_PT): Minor error phrasing update.
2367 2015-01-30  Robert Dewar  <dewar@adacore.com>
2369         * sem_warn.adb (Warn_On_Known_Condition): Improve error message
2370         for object case.
2372 2015-01-30  Pierre-Marie de Rodat  <derodat@adacore.com>
2374         * exp_dbug.adb (Get_Encoded_Name): When
2375         -fgnat-encodings=minimal, do not generate names for biased types.
2377 2015-01-30  Tristan Gingold  <gingold@adacore.com>
2379         PR ada/64349
2380         * env.c: Move vxworks and darwin includes out of #ifdef IN_RTS.
2382 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
2384         * freeze.adb: Minor reformatting.
2386 2015-01-30  Javier Miranda  <miranda@adacore.com>
2388         * errout.ads (Error_Msg_PT): Replace Node_Id by Entity_Id and
2389         improve its documentation.
2390         * errout.adb (Error_Msg_PT): Improve the error message.
2391         * sem_ch6.adb (Check_Conformance): Update call to Error_Msg_PT.
2392         (Check_Synchronized_Overriding): Update call to Error_Msg_PT.
2393         * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup.
2395 2015-01-30  Robert Dewar  <dewar@adacore.com>
2397         * sem_warn.adb (Warn_On_Known_Condition): Do special casing of
2398         message for False case.
2400 2015-01-30  Doug Rupp  <rupp@adacore.com>
2402         * s-vxwext-kernel.ads (Task_Cont): Remove imported subprogram body.
2403         * s-vxwext-kernel.adb (Task_Cont): New subpprogram body specialized for
2404         kernel.
2406 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
2408         * sem_attr.adb (Declared_Within_Generic_Unit):
2409         New function to test whether an entity is declared within the
2410         declarative region of a given generic unit.
2411         (Resolve_Attribute): For checking legality of subprogram'Access within
2412         a generic unit, call new Boolean function Declared_Within_Generic_Unit
2413         instead of simply comparing the results of Enclosing_Generic_Unit on
2414         the prefix and access type.  Correct minor comment typos.
2416 2015-01-30  Robert Dewar  <dewar@adacore.com>
2418         * freeze.adb, exp_util.ads: Update comment.
2419         * exp_util.adb, exp_ch3.adb: Minor code reorganization and reformatting.
2420         * sem_util.adb: Minor: fix typo.
2422 2015-01-30  Hristian Kirtchev  <kirtchev@adacore.com>
2424         * sem_attr.adb (Analyze_Attribute): Ensure that
2425         the check concerning Refined_Post takes precedence over the
2426         other cases.
2428 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
2430         * sem_prag.adb: Minor typo fixes and reformatting.
2432 2015-01-30  Yannick Moy  <moy@adacore.com>
2434         * sem_attr.adb: Code clean up.
2436 2015-01-30  Robert Dewar  <dewar@adacore.com>
2438         * ali.adb (Scan_ALI): Set Serious_Errors flag in Unit record.
2439         * ali.ads (Unit_Record): Add new field Serious_Errors.
2440         * lib-writ.adb (Write_Unit_Information): Set SE (serious errors)
2441         attribute in U line.
2442         * lib-writ.ads: New attribute SE (serious erors) in unit line.
2444 2015-01-30  Hristian Kirtchev  <kirtchev@adacore.com>
2446         * einfo.adb Update the usage of attributes Entry_Bodies_Array,
2447         Lit_Indexes, Scale_Value, Storage_Size_Variable,
2448         String_Literal_Low_Bound along associated routines and
2449         Write_FieldX_Name.
2450         (Pending_Access_Types): New routine.
2451         (Set_Pending_Access_Types): New routine.
2452         (Write_Field15_Name): Add an entry for Pending_Access_Types.
2453         * einfo.ads Add new attribute Pending_Access_Types along
2454         with usage in nodes.  Update the usage of attributes
2455         Entry_Bodies_Array, Lit_Indexes, Scale_Value,
2456         Storage_Size_Variable, String_Literal_Low_Bound.
2457         (Pending_Access_Types): New routine along with pragma Inline.
2458         (Set_Pending_Access_Types): New routine along with pragma Inline.
2459         * exp_ch3.adb (Expand_Freeze_Array_Type): Add new local variable
2460         Ins_Node. Determine the insertion node for anonynous access type
2461         that acts as a component type of an array. Update the call to
2462         Build_Finalization_Master.
2463         (Expand_Freeze_Record_Type): Update
2464         the calls to Build_Finalization_Master.
2465         (Freeze_Type): Remove
2466         local variable RACW_Seen. Factor out the code that deals with
2467         remote access-to-class-wide types. Create a finalization master
2468         when the designated type contains a private component. Fully
2469         initialize all pending access types.
2470         (Process_RACW_Types): New routine.
2471         (Process_Pending_Access_Types): New routine.
2472         * exp_ch4.adb (Expand_Allocator_Expression): Allocation no longer
2473         needs to set primitive Finalize_Address.
2474         (Expand_N_Allocator): Allocation no longer sets primitive
2475         Finalize_Address.
2476         * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
2477         Update the call to Build_Finalization_Master.
2478         (Make_Build_In_Place_Call_In_Allocator): Allocation no longer
2479         needs to set primitive Finalize_Address.
2480         * exp_ch7.adb (Add_Pending_Access_Type): New routine.
2481         (Build_Finalization_Master): New parameter profile. Associate
2482         primitive Finalize_Address with the finalization master if the
2483         designated type has been frozen, otherwise treat the access
2484         type as pending. Simplify the insertion of the master and
2485         related initialization code.
2486         (Make_Finalize_Address_Body): Allow Finalize_Address for class-wide
2487         abstract types.
2488         (Make_Set_Finalize_Address_Call): Remove forlam parameter Typ.
2489         Simplify the implementation.
2490         * exp_ch7.ads (Build_Finalization_Master): New parameter profile
2491         along with comment on usage.
2492         (Make_Set_Finalize_Address_Call): Remove formal parameter Typ. Update
2493         the comment on usage.
2494         * exp_util.adb (Build_Allocate_Deallocate_Proc): Use routine
2495         Finalize_Address to retrieve the primitive.
2496         (Finalize_Address): New routine.
2497         (Find_Finalize_Address): Removed.
2498         * exp_util.ads (Finalize_Address): New routine.
2499         * freeze.adb (Freeze_All): Remove the generation of finalization
2500         masters.
2501         * sem_ch3.adb (Analyze_Full_Type_Declaration): Propagate any
2502         pending access types from the partial to the full view.
2504 2015-01-30  Robert Dewar  <dewar@adacore.com>
2506         * sem_disp.adb: Minor reformatting.
2507         * sem_disp.ads: Documentation update.
2509 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
2511         * sem_disp.adb (Is_Dynamically_Tagged): when applied to an entity
2512         or a function call, return True if type is class-wide.
2513         * sem_res.adb (Resolve_Case_Expression, Resolve_If_Expression);
2514         Apply RM 4.5.7 (17/3): all or none of the dependent expression
2515         of a conditional expression must be dynamically tagged.
2517 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
2519         * sem_ch6.adb (Analyze_Function_Return): In an extended return
2520         statement, apply accessibility check to result object when there
2521         is no initializing expression (Ada 2012 RM 6.5 (5.4/3))
2523 2015-01-30  Robert Dewar  <dewar@adacore.com>
2525         * sem_ch4.adb (Analyze_If_Expression): Allow for non-standard
2526         Boolean for case where ELSE is omitted.
2527         * sem_res.adb: Minor reformatting.
2529 2015-01-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2531         Fix build under cygwin/64.
2532         * adaint.h: Add check for __CYGWIN__.
2533         * mingw32.h: Prevent windows.h from including x86intrin.h in GCC.
2535 2015-01-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2537         PR ada/64640
2538         * adaint.c: Handle __CYGWIN__ like __MINGW32__ here.
2539         * mingw32.h: Don't include <tchar.h> under cygwin.
2540         (_O_U8TEXT, _O_U16TEXT, _O_WTEXT): Set to _O_TEXT if not yet defined.
2542 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
2544         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8)
2545         (DEF_FUNCTION_TYPE_VAR_12): New macros.
2547 2015-01-09  Michael Collison  <michael.collison@linaro.org>
2549         * gcc-interface/cuintp.c: Include hash-set.h, machmode.h,
2550         vec.h, double-int.h, input.h, alias.h, symtab.h,
2551         fold-const.h, wide-int.h, and inchash.h due to
2552         flattening of tree.h.
2553         * gcc-interface/decl.c: Ditto.
2554         * gcc-interface/misc.c: Ditto.
2555         * gcc-interface/targtyps.c: Include hash-set.h, machmode.h,
2556         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h,
2557         fold-const.h, wide-int.h, and inchash.h due to
2558         flattening of tree.h.
2559         * gcc-interface/trans.c: Include hash-set.h, machmode.h,
2560         vec.h, double-int.h, input.h, alias.h, symtab.h, real.h,
2561         fold-const.h, wide-int.h, inchash.h due to
2562         flattening of tree.h.
2563         * gcc-interface/utils.c: Include hash-set.h, machmode.h,
2564         vec.h, double-int.h, input.h, alias.h, symtab.h,
2565         fold-const.h, wide-int.h, and inchash.h due to
2566         flattening of tree.h.
2567         * gcc-interface/utils2.c: Ditto.
2569 2015-01-07  Robert Dewar  <dewar@adacore.com>
2571         * sem_warn.adb (Check_One_Unit): Don't give unused entities
2572         warning for a package which is used as a generic parameter.
2574 2015-01-07  Bob Duff  <duff@adacore.com>
2576         * usage.adb (Usage): Correct documentation of
2577         -gnatw.f switches.
2579 2015-01-07  Robert Dewar  <dewar@adacore.com>
2581         * s-fileio.adb: Minor reformatting.
2583 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
2585         * sem_ch12.adb (Instantiate_Object): If formal is an anonymous
2586         access to subprogram, replace its formals with new entities when
2587         building the object declaration, both if actual is present and
2588         when it is defaulted.
2590 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
2592         * sem_ch5.adb (Analyze_Assignment): If left-hand side is a view
2593         conversion and type of expression has invariant, apply invariant
2594         check on expression.
2596 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
2598         * sem_ch3.adb (Create_Constrained_Components): A call to
2599         Gather_Components may detect an error if an inherited discriminant
2600         that controls a variant is non-static.
2601         * sem_aggr.adb (Resolve_Record_Aggregate, Step 5): The call to
2602         Gather_Components may report an error if an inherited discriminant
2603         in a variant in non-static.
2604         * sem_util.adb (Gather_Components): If a non-static discriminant
2605         is inherited do not report error here, but let caller handle it.
2606         (Find_Actual): Small optimization.
2608 2015-01-07  Bob Duff  <duff@adacore.com>
2610         * usage.adb (Usage): Document -gnatw.f switch.
2612 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
2614         * sem_ch12.adb: Code clean up and minor reformatting.
2616 2015-01-07  Robert Dewar  <dewar@adacore.com>
2618         * exp_ch4.adb (Expand_N_Type_Conversion): Add guard for
2619         Raise_Accessibility_Error call.
2620         * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add documentation
2621         on handling of invalid digits in based constants.
2622         * s-fatgen.ads: Minor reformatting.
2623         * sem_attr.adb (Analyze_Attribute, case Unrestricted_Access):
2624         Avoid noting bogus modification for Valid test.
2625         * snames.ads-tmpl (Name_Attr_Long_Float): New Name.
2626         * einfo.ads: Minor reformatting.
2627         * sem_warn.adb: Minor comment clarification.
2628         * sem_ch12.adb: Minor reformatting.
2630 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
2632         * exp_ch5.adb (Expand_Predicated_Loop): Handle properly loops
2633         over static predicates when the loop parameter specification
2634         carries a Reverse indicator.
2636 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
2638         * sem_ch12.adb (Instantiate_Object): If formal has a default,
2639         actual is missing and formal has an anonymous access type, copy
2640         access definition in full so that tree for instance is properly
2641         formatted for ASIS use.
2643 2015-01-07  Bob Duff  <duff@adacore.com>
2645         * sem_elab.adb (Check_Internal_Call_Continue): Give a warning
2646         for P'Access, where P is a subprogram in the same package as
2647         the P'Access, and the P'Access is evaluated at elaboration
2648         time, and occurs before the body of P. For example, "X : T :=
2649         P'Access;" would allow a subsequent call to X.all to be an
2650         access-before-elaboration error; hence the warning. This warning
2651         is enabled by the -gnatw.f switch.
2652         * opt.ads (Warn_On_Elab_Access): New flag for warning switch.
2653         * warnsw.adb (Set_Dot_Warning_Switch): Set Warn_On_Elab_Access.
2654         * gnat_ugn.texi: Document the new warning.
2656 2015-01-07  Johannes Kanig  <kanig@adacore.com>
2658         * lib-xref-spark_specific.adb (Collect_SPARK_Xrefs): Skip unneeded
2659         cross ref files.
2661 2015-01-07  Robert Dewar  <dewar@adacore.com>
2663         * s-taprop-linux.adb, clean.adb: Minor reformatting.
2665 2015-01-07  Arnaud Charlet  <charlet@adacore.com>
2667         * s-tassta.adb: Relax some overzealous assertions.
2669 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
2671         * sem_ch6.adb (Analyze_Return_Type): An call that returns a limited
2672         view of a type is legal when context is a thunk generated for
2673         operation inherited from an interface.
2674         * exp_ch6.adb (Expand_Simple_Function_Return): If context is
2675         a thunk and return type is an incomplete type do not continue
2676         expansion; thunk will be fully elaborated when generating code.
2678 2015-01-07  Doug Rupp  <rupp@adacore.com>
2680         * s-osinte-mingw.ads (LARGE_INTEGR): New subtype.
2681         (QueryPerformanceFrequency): New imported procedure.
2682         * s-taprop-mingw.adb (RT_Resolution): Call above and return
2683         resolution vice a hardcoded value.
2684         * s-taprop-solaris.adb (RT_Resolution): Call clock_getres and return
2685         resolution vice a hardcoded value.
2686         * s-linux-android.ads (clockid_t): New subtype.
2687         * s-osinte-aix.ads (clock_getres): New imported subprogram.
2688         * s-osinte-android.ads (clock_getres): Likewise.
2689         * s-osinte-freebsd.ads (clock_getres): Likewise.
2690         * s-osinte-solaris-posix.ads (clock_getres): Likewise.
2691         * s-osinte-darwin.ads (clock_getres): New subprogram.
2692         * s-osinte-darwin.adb (clock_getres): New subprogram.
2693         * thread.c (__gnat_clock_get_res) [__APPLE__]: New function.
2694         * s-taprop-posix.adb (RT_Resolution): Call clock_getres to
2695         calculate resolution vice hard coded value.
2697 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
2699         * exp_util.adb (Make_CW_Equivalent_Type): If root type is a
2700         limited view, use non-limited view when available to create
2701         equivalent record type.
2703 2015-01-07  Vincent Celier  <celier@adacore.com>
2705         * gnatcmd.adb: Remove command Sync and any data and processing
2706         related to this command. Remove project processing for gnatstack.
2707         * prj-attr.adb: Remove package Synchonize and its attributes.
2709 2015-01-07  Vincent Celier  <celier@adacore.com>
2711         * clean.adb: Minor error message change.
2713 2015-01-07  Tristan Gingold  <gingold@adacore.com>
2715         PR ada/64349  
2716         * env.c (__gnat_environ): Adjust for darwin9/darwin10.
2718 2015-01-07  Javier Miranda  <miranda@adacore.com>
2720         * sem_ch10.adb (Analyze_With_Clause): Compiling under -gnatq
2721         protect the frontend against never ending recursion caused by
2722         circularities in the sources.
2724 2015-01-07  Robert Dewar  <dewar@adacore.com>
2726         * a-reatim.adb, make.adb, exp_pakd.adb, i-cpoint.adb, sem_ch8.adb,
2727         exp_ch3.adb: Minor reformatting.
2729 2015-01-07  Doug Rupp  <rupp@adacore.com>
2731         * s-linux.ads (clockid_t): New subtype.
2732         * s-osinte-linux.ads (pragma Linker Options): Add -lrt.
2733         (clockid_t): New subtype.
2734         (clock_getres): Import system call.
2735         * s-taprop-linux.adb (System.OS_Constants): With and rename.
2736         (RT_Resolution): Remove
2737         hardcoded value and call clock_getres.
2738         * s-linux-sparc.ads, s-linux-mipsel.ads, s-linux-hppa.ads,
2739         s-linux-alpha.ads, s-linux-x32.ads (clockid_t): Add new subtype.
2741 2015-01-07  Robert Dewar  <dewar@adacore.com>
2743         * sem_warn.adb (Check_One_Unit): Guard against context item
2744         with no Entity field.
2746 2015-01-07  Vincent Celier  <celier@adacore.com>
2748         * clean.adb (Gnatclean): Warn that 'gnatclean -P' is obsolete.
2749         * make.adb (Initialize): Warn that 'gnatmake -P' is obsolete.
2751 2015-01-07  Vincent Celier  <celier@adacore.com>
2753         * prj-conf.adb (Parse_Project_And_Apply_Config): Always finalize
2754         errors/warnings in the first parsing of the project files,
2755         to display the warnings when there is no errors.
2757 2015-01-07  Tristan Gingold  <gingold@adacore.com>
2759         * i-cpoint.adb (Copy_Terminated_Array): Nicely handle null target.
2761 2015-01-07  Doug Rupp  <rupp@adacore.com>
2763         * s-taprop-vxworks.adb (Stop_All_Tasks): Pass return
2764         value from Int_Lock as parameter to Int_Unlock.
2765         * s-osinte-vxworks.ads (Int_Unlock): Add parameter.
2766         * s-vxwext.ads (Int_Unlock): Likewise.
2767         * s-vxwext-kernel.adb (intUnlock, Int_Unlock): Likewise.
2768         * s-vxwext-kernel.ads (Int_Unlock): Likewise.
2769         * s-vxwext-rtp.adb (Int_Unlock): Likewise.
2770         * s-vxwext-rtp.ads (Int_Unlock): Likewise.
2772 2015-01-07  Pierre-Marie de Rodat  <derodat@adacore.com>
2774         * exp_pakd.adb: Add a comment in exp_pakd.adb to explain why we
2775         keep ___XP suffixes
2777 2015-01-07  Tristan Gingold  <gingold@adacore.com>
2779         * i-cpoint.adb (Copy_Terminated_Array): Use Copy_Array to
2780         handle overlap.
2782 2015-01-07  Eric Botcazou  <ebotcazou@adacore.com>
2784         * sem_ch3.adb (Analyze_Full_Type_Declaration): Do not
2785         automatically set No_Strict_Aliasing on access types.
2786         * fe.h (No_Strict_Aliasing_CP): Declare.
2787         * gcc-interface/trans.c (gigi): Force flag_strict_aliasing to 0 if
2788         No_Strict_Aliasing_CP is set.
2790 2015-01-07  Johannes Kanig  <kanig@adacore.com>
2792         * sem_ch8.adb (Analyze_Subprogram_Renaming) do
2793         not build function wrapper in gnatprove mode when the package
2794         is externally axiomatized.
2796 2015-01-07  Jose Ruiz  <ruiz@adacore.com>
2798         * a-reatim.adb (Time_Of): Reduce the number of spurious overflows in
2799         intermediate computations when the parameters have different signs.
2801 2015-01-07  Javier Miranda  <miranda@adacore.com>
2803         * exp_ch3.adb (Build_Init_Procedure): For derived types,
2804         improve the code which takes care of identifying and moving to
2805         the beginning of the init-proc the call to the init-proc of the
2806         parent type.
2808 2015-01-07  Olivier Hainque  <hainque@adacore.com>
2810         * gcc-interface/trans.c (gnat_to_gnu, <N_Expression_With_Action>):
2811         Elaborate the expression as part of the same stmt group as the actions.
2813 2015-01-07  Robert Dewar  <dewar@adacore.com>
2815         * sem_ch3.adb: Minor error message change.
2817 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
2819         * sem_prag.adb (Analyze_Pragma, case Preelaborable_Initialization):
2820         Following AI05-028, the pragam applies legally to any composite type.
2822 2015-01-07  Arnaud Charlet  <charlet@adacore.com>
2824         * s-osinte-vxworks.adb, s-osinte-vxworks.ads
2825         (sigwait, sigwaitinfo): Removed, not needed after all on any
2826         VxWorks configurations.
2828 2015-01-07  Robert Dewar  <dewar@adacore.com>
2830         * sem_ch3.adb, freeze.adb, exp_disp.adb: Minor reformatting.
2832 2015-01-07  Javier Miranda  <miranda@adacore.com>
2834         * exp_disp.adb (Expand_Interface_Conversion): Adding missing
2835         generation of accessibility check.
2837 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
2839         * sem_ch3.adb (Derived_Type_Declaration): In the case of an
2840         illegal completion from a class- wide type, set etype of the
2841         derived type properly to prevent cascaded errors.
2843 2015-01-07  Robert Dewar  <dewar@adacore.com>
2845         * prj.ads, i-cpoint.adb, freeze.adb, ghost.adb, prj-err.adb: Minor
2846         reformatting.
2848 2015-01-07  Robert Dewar  <dewar@adacore.com>
2850         * restrict.adb (Check_Restriction_No_Use_Of_Attribute):
2851         New procedure.
2852         (OK_No_Use_Of_Entity_Name): New function.
2853         (Set_Restriction_No_Use_Of_Entity): New procedure.
2854         * restrict.ads (Check_Restriction_No_Use_Of_Attribute):
2855         New procedure.
2856         (OK_No_Use_Of_Entity_Name): New function.
2857         (Set_Restriction_No_Use_Of_Entity): New procedure.
2858         * sem_ch8.adb (Find_Direct_Name): Add check for violation of
2859         No_Use_Of_Entity.
2860         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
2861         Add processing for new restriction No_Use_Of_Entity.
2863 2015-01-07  Eric Botcazou  <ebotcazou@adacore.com>
2865         * freeze.adb (Freeze_Array_Type): Apply same handling to Is_Atomic
2866         component type as to Has_Atomic_Components type.  Remove useless
2867         test on Is_Aliased component type.
2869 2015-01-07  Hristian Kirtchev  <kirtchev@adacore.com>
2871         * alloc.ads Alphabetize several declarations. Add constants
2872         Ignored_Ghost_Units_Initial and Ignored_Ghost_Units_Increment.
2873         * atree.adb Add with and use clauses for Opt.
2874         (Allocate_Initialize_Node): Mark a node as ignored Ghost
2875         if it is created in an ignored Ghost region.
2876         (Ekind_In): New variant.
2877         (Is_Ignored_Ghost_Node): New routine.
2878         (Set_Is_Ignored_Ghost_Node): New routine.
2879         * atree.adb Aplhabetize several subprograms declarations. Flag
2880         Spare0 is now known as Is_Ignored_Ghost_Node.
2881         (Ekind_In): New variant.
2882         (Is_Ignored_Ghost_Node): New routine.
2883         (Set_Is_Ignored_Ghost_Node): New routine.
2884         * einfo.adb: Flag 279 is now known as Contains_Ignored_Ghost_Code.
2885         (Contains_Ignored_Ghost_Code): New routine.
2886         (Set_Contains_Ignored_Ghost_Code): New routine.
2887         (Set_Is_Checked_Ghost_Entity, Set_Is_Ignored_Ghost_Entity):
2888         It is now possible to set this property on an unanalyzed entity.
2889         (Write_Entity_Flags): Output the status of flag
2890         Contains_Ignored_Ghost_Code.
2891         * einfo.ads New attribute Contains_Ignored_Ghost_Code along with
2892         usage in nodes.
2893         (Contains_Ignored_Ghost_Code): New routine
2894         along with pragma Inline.
2895         (Set_Contains_Ignored_Ghost_Code): New routine along with pragma Inline.
2896         * exp_ch3.adb Add with and use clauses for Ghost.
2897         (Freeze_Type): Capture/restore the value of Ghost_Mode on entry/exit.
2898         Set the Ghost_Mode in effect.
2899         (Restore_Globals): New routine.
2900         * exp_ch7.adb (Process_Declarations): Do not process a context
2901         that invoves an ignored Ghost entity.
2902         * exp_dbug.adb (Qualify_All_Entity_Names): Skip an ignored Ghost
2903         construct that has been rewritten as a null statement.
2904         * exp_disp.adb Add with and use clauses for Ghost.
2905         (Make_DT): Capture/restore the value of Ghost_Mode on entry/exit. Set
2906         the Ghost_Mode in effect.
2907         (Restore_Globals): New routine.
2908         * exp_util.adb (Requires_Cleanup_Actions): An ignored Ghost entity
2909         does not require any clean up. Add two missing cases that deal
2910         with block statements.
2911         * freeze.adb Add with and use clauses for Ghost.
2912         (Freeze_Entity): Capture/restore the value of Ghost_Mode on entry/exit.
2913         Set the Ghost_Mode in effect.
2914         (Restore_Globals): New routine.
2915         * frontend.adb Add with and use clauses for Ghost. Remove any
2916         ignored Ghost code from all units that qualify.
2917         * ghost.adb New unit.
2918         * ghost.ads New unit.
2919         * gnat1drv.adb Add with clause for Ghost. Initialize and lock
2920         the table in package Ghost.
2921         * lib.ads: Alphabetize several subprogram declarations.
2922         * lib-xref.adb (Output_References): Do not generate reference
2923         information for ignored Ghost entities.
2924         * opt.ads Add new type Ghost_Mode_Type and new global variable
2925         Ghost_Mode.
2926         * rtsfind.adb (Load_RTU): Provide a clean environment when
2927         loading a runtime unit.
2928         * sem.adb (Analyze): Capture/restore the value of Ghost_Mode on
2929         entry/exit as the node may set a different mode.
2930         (Do_Analyze):
2931         Capture/restore the value of Ghost_Mode on entry/exit as the
2932         unit may be withed from a unit with a different Ghost mode.
2933         * sem_ch3.adb Add with and use clauses for Ghost.
2934         (Analyze_Full_Type_Declaration, Analyze_Incomplete_Type_Decl,
2935         Analyze_Number_Declaration, Analyze_Private_Extension_Declaration,
2936         Analyze_Subtype_Declaration): Set the Ghost_Mode in effect. Mark
2937         the entity as Ghost when there is a Ghost_Mode in effect.
2938         (Array_Type_Declaration): The implicit base type inherits the
2939         "ghostness" from the array type.
2940         (Derive_Subprogram): The
2941         alias inherits the "ghostness" from the parent subprogram.
2942         (Make_Implicit_Base): The implicit base type inherits the
2943         "ghostness" from the parent type.
2944         * sem_ch5.adb Add with and use clauses for Ghost.
2945         (Analyze_Assignment): Set the Ghost_Mode in effect.
2946         * sem_ch6.adb Add with and use clauses for Ghost.
2947         (Analyze_Abstract_Subprogram_Declaration, Analyze_Procedure_Call,
2948         Analyze_Subprogram_Body_Helper, Analyze_Subprogram_Declaration):
2949         Set the Ghost_Mode in effect. Mark the entity as Ghost when
2950         there is a Ghost_Mode in effect.
2951         * sem_ch7.adb Add with and use clauses for Ghost.
2952         (Analyze_Package_Body_Helper, Analyze_Package_Declaration,
2953         Analyze_Private_Type_Declaration): Set the Ghost_Mode in
2954         effect. Mark the entity as Ghost when there is a Ghost_Mode
2955         in effect.
2956         * sem_ch8.adb Add with and use clauses for Ghost.
2957         (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
2958         Analyze_Object_Renaming, Analyze_Package_Renaming,
2959         Analyze_Subprogram_Renaming): Set the Ghost_Mode in effect. Mark
2960         the entity as Ghost when there is a Ghost_Mode in effect.
2961         (Find_Type): Check the Ghost context of a type.
2962         * sem_ch11.adb Add with and use clauses for Ghost.
2963         (Analyze_Exception_Declaration): Set the Ghost_Mode in
2964         effect. Mark the entity as Ghost when there is a Ghost_Mode
2965         in effect.
2966         * sem_ch12.adb Add with and use clauses for Ghost.
2967         (Analyze_Generic_Package_Declaration,
2968         Analyze_Generic_Subprogram_Declaration): Set the Ghost_Mode in effect.
2969         Mark the entity as Ghost when there is a Ghost_Mode in effect.
2970         * sem_prag.adb Add with and use clauses for Ghost.
2971         (Analyze_Pragma): Ghost-related checks are triggered when there
2972         is a Ghost mode in effect.
2973         (Create_Abstract_State): Mark the
2974         entity as Ghost when there is a Ghost_Mode in effect.
2975         * sem_res.adb Add with and use clauses for Ghost.
2976         (Check_Ghost_Context): Removed.
2977         * sem_util.adb (Check_Ghost_Completion): Removed.
2978         (Check_Ghost_Derivation): Removed.
2979         (Incomplete_Or_Partial_View):
2980         Add a guard in case the entity has not been analyzed yet
2981         and does carry a scope.
2982         (Is_Declaration): New routine.
2983         (Is_Ghost_Entity): Removed.
2984         (Is_Ghost_Statement_Or_Pragma):
2985         Removed.
2986         (Is_Subject_To_Ghost): Removed.
2987         (Set_Is_Ghost_Entity):
2988         Removed.
2989         (Within_Ghost_Scope): Removed.
2990         * sem_util.adb (Check_Ghost_Completion): Removed.
2991         (Check_Ghost_Derivation): Removed.
2992         (Is_Declaration): New routine.
2993         (Is_Ghost_Entity): Removed.
2994         (Is_Ghost_Statement_Or_Pragma): Removed.
2995         (Is_Subject_To_Ghost): Removed.
2996         (Set_Is_Ghost_Entity): Removed.
2997         (Within_Ghost_Scope): Removed.
2998         * sinfo.ads Add a section on Ghost mode.
2999         * treepr.adb (Print_Header_Flag): New routine.
3000         (Print_Node_Header): Factor out code. Output flag
3001         Is_Ignored_Ghost_Node.
3002         * gcc-interface/Make-lang.in: Add dependency for unit Ghost.
3004 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
3006         * freeze.adb (Freeze_Array_Type) <Complain_CS>: Remove always
3007         true test and unreachable 'else' arm.
3009 2015-01-06  Vincent Celier  <celier@adacore.com>
3011         * prj-conf.adb (Check_Target): Improve error message when
3012         there are mismatched targets between the on in the configuration
3013         project file and the specified one, either in the main project
3014         file or in the --target= switch.
3016 2015-01-06  Pascal Obry  <obry@adacore.com>
3018         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Mode and
3019         Install_Name attribute definitions.
3021 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
3023         * freeze.adb (Wrap_Imported_Subprogram): Indicate that the
3024         generated Import pragma for the internal imported procedure does
3025         not come from an aspect, so that Is_Imported can be properly
3026         set for it.
3028 2015-01-06  Gary Dismukes  <dismukes@adacore.com>
3030         * sem_ch12.adb (Might_Inline_Subp): Record whether
3031         any subprograms in the generic package are marked with
3032         pragma Inline_Always (setting flag Has_Inline_Always).
3033         (Analyze_Package_Instantiation): Add test of Has_Inline_Always
3034         alongside existing test of Front_End_Inlining as alternative
3035         conditions for setting Inline_Now. Also add test of
3036         Has_Inline_Always along with Front_End_Inlining test as an
3037         alternative condition for setting Needs_Body to False.
3039 2015-01-06  Tristan Gingold  <gingold@adacore.com>
3041         * i-cpoint.adb (Copy_Array): Handle overlap.
3043 2015-01-06  Pascal Obry  <obry@adacore.com>
3045         * bindgen.adb: Minor style fix.
3047 2015-01-06  Robert Dewar  <dewar@adacore.com>
3049         * sem_util.ads, sem_util.adb: Minor reformatting.
3051 2015-01-06  Vincent Celier  <celier@adacore.com>
3053         * prj-conf.adb (Parse_Project_And_Apply_Config): Reset incomplete
3054         with flags before parsing the projects.
3055         * prj-err.adb (Error_Msg): Do nothing if there are incomplete withs.
3056         * prj-part.adb (Post_Parse_Context_Clause): Set Incomplete_Withs
3057         to True in the flags, when Ignore_Missing_With is True and an
3058         imported project cannot be found.
3059         * prj-proc.adb (Expression): When there are incomplete withs and
3060         a variable or attribute is not found, set the variable/attribute
3061         to unknown.
3062         * prj.ads (Processing_Flags): New flag Incomplete_Withs,
3063         defaulted to False.
3065 2015-01-06  Vasiliy Fofanov  <fofanov@adacore.com>
3067         * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-conf.adb,
3068         prj-err.adb: Add new switch --no-command-line.
3070 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
3072         * sem_ch12.adb: Sloc of wrapper is that of instantiation.
3074 2015-01-06  Robert Dewar  <dewar@adacore.com>
3076         * sem_ch11.adb: Minor reformatting.
3078 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
3080         * exp_aggr.adb (Get_Assoc_Expr): New routine internal to
3081         Build_Array_Aggr_Code, used to initialized components covered
3082         by a box association. If the component type is scalar and has
3083         a default aspect, use it to initialize such components.
3085 2015-01-06  Pascal Obry  <obry@adacore.com>
3087         * rtinit.c (__gnat_runtime_initialize): Add a parameter to
3088         control the setup of the exception handler.
3089         * initialize.c: Remove unused declaration.
3090         * bindgen.adb: Always call __gnat_runtime_initialize and pass
3091         whether the exeception handler must be set or not.
3093 2015-01-06  Thomas Quinot  <quinot@adacore.com>
3095         * freeze.adb (Set_SSO_From_Defaults): When setting scalar storage
3096         order to native from default, make sure to also adjust bit order.
3097         * exp_aggr.adb: Minor reformatting.
3099 2015-01-06  Robert Dewar  <dewar@adacore.com>
3101         * s-valllu.adb, s-valllu.ads, s-valuti.ads, s-valuns.adb, s-valuns.ads,
3102         s-valrea.adb, s-valrea.ads: Add some additional guards for
3103         Str'Last = Positive'Last.
3105 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
3107         * sem_ch12.adb, sem_ch8.adb: Ongoing work for wrappers for actual
3108         subprograms.
3110 2015-01-06  Javier Miranda  <miranda@adacore.com>
3112         * exp_disp.adb (Expand_Interface_Conversion): Reapply patch.
3114 2015-01-06  Thomas Quinot  <quinot@adacore.com>
3116         * sem_util.ads: Minor reformatting.
3117         * sem_cat.adb (In_RCI_Visible_Declarations): Change back to...
3118         (In_RCI_Declaration) Return to old name, as proper checking of
3119         entity being in the visible part depends on entity kind and must
3120         be done by the caller.
3122 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
3124         * sem_ch12.adb, sem_ch12.ads, sem_ch8.adb: Ongoing work for wrappers
3125         for operators in SPARK.
3127 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
3129         * sem_aggr.adb (Get_Value): In ASIS mode, preanalyze the
3130         expression in an others association before making copies for
3131         separate resolution and accessibility checks. This ensures that
3132         the type of the expression is available to ASIS in all cases,
3133         in particular if the expression is itself an aggregate.
3135 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
3137         * einfo.ads (Has_Independent_Components): Document extended
3138         usage.
3139         * einfo.adb (Has_Independent_Components): Remove obsolete assertion.
3140         (Set_Has_Independent_Components): Adjust assertion.
3141         * sem_prag.adb (Analyze_Pragma): Also set Has_Independent_Components
3142         for pragma Atomic_Components.  Set Has_Independent_Components
3143         on the object instead of the type for an object declaration with
3144         pragma Independent_Components.
3146 2015-01-06  Olivier Hainque  <hainque@adacore.com>
3148         * set_targ.adb (Read_Target_Dependent_Values): Set
3149         Long_Double_Index when "long double" is read.
3150         (elaboration code): Register_Back_End_Types only when not reading from
3151         config files. Doing otherwise is pointless and error prone.
3153 2015-01-06  Robert Dewar  <dewar@adacore.com>
3155         * s-valrea.adb (Value_Real): Check for Str'Last = Positive'Last
3157 2015-01-06  Robert Dewar  <dewar@adacore.com>
3159         * a-wtgeau.adb, a-ztgeau.adb, a-tigeau.adb (String_Skip): Raise PE if
3160         Str'Last = Positive'Last.
3162 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
3164         * sem_ch6.adb (Matches_Limited_View): Handle properly the case
3165         where the non-limited type is a generic actual and appears as
3166         a subtype of the non-limited view of the other.
3167         * freeze.adb (Build_Renamed_Body): If the return type of the
3168         declaration that is being completed is a limited view and the
3169         non-limited view is available, use it in the specification of
3170         the generated body.
3172 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
3174         * sem_ch3.adb (Find_Type_Name): If there is a previous tagged
3175         incomplete view, the type of the classwide type common to both
3176         views is the type being declared.
3178 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
3180         * einfo.ads (Is_Independent): Further document extended usage.
3182 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
3184         * einfo.ads (Is_Independent): Document extended usage.
3185         * einfo.adb (Is_Independent): Remove obsolete assertion.
3186         (Set_Is_Independent): Likewise.
3187         * sem_prag.adb (Process_Atomic_Shared_Volatile): Rename into...
3188         (Process_Atomic_Independent_Shared_Volatile): ...this.
3189         Deal with pragma Independent here.
3190         (Analyze_Pragma): Adjust
3191         to above renaming and also invoke it for pragma Independent.
3192         Adjust comment for Independent_Components.
3194 2015-01-06  Robert Dewar  <dewar@adacore.com>
3196         * snames.ads-tmpl: Remove entries for attribute Enum_Image.
3197         * exp_attr.adb: Remove reference to Attribute_Enum_Image.
3199 2015-01-06  Robert Dewar  <dewar@adacore.com>
3201         * s-vallli.adb (Value_Long_Long_Integer): Handle case of Str'Last
3202         = Positive'Last.
3203         * s-valllu.adb (Value_Long_Long_Unsigned): Handle case of
3204         Str'Last = Positive'Last.
3206 2015-01-06  Robert Dewar  <dewar@adacore.com>
3208         * sem_prag.adb (Process_Inline): Remove redundant construct
3209         warning (-gnatw.r) for an ineffective pragma Inline.
3211 2015-01-06  Robert Dewar  <dewar@adacore.com>
3213         * s-valint.adb: Fix typo in last checkin.
3214         * s-valuns.adb (Value_Unsigned): More efficient fix for
3215         Positive'Last case.
3216         * sem_attr.adb (Analyze_Attribute): Minor reformatting
3217         (Eval_Attribute): Static ervaluation of 'Img for enumeration types.
3219 2015-01-06  Robert Dewar  <dewar@adacore.com>
3221         * s-valint.adb, s-valuns.adb (Value_Integer): Deal with case where
3222         Str'Last = Positive'Last
3224 2015-01-06  Thomas Quinot  <quinot@adacore.com>
3226         * xoscons.adb: Display exception information and return non-zero
3227         exit status in top level exception handler.
3229 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
3231         * sem_ch8.adb: Code clean up.
3233 2015-01-06  Tristan Gingold  <gingold@adacore.com>
3235         * targparm.ads: Remove obsolete comment.
3237 2015-01-06  Olivier Hainque  <hainque@adacore.com>
3239         * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Variable): When
3240         constructing a ref to variable, update inner_const_flag from the
3241         variable TREE_READONLY attribute.
3242         * gcc-interface/targtyps.c (WIDEST_HARDWARE_FP_SIZE): Remove default
3243         definition.
3244         (get_target_float_size): Remove.
3245         (get_target_double_size): Remove.
3246         (get_target_long_double_size): Remove.
3248 2015-01-06  Pascal Obry  <obry@adacore.com>
3250         * adaint.c (ProcListEvt): Set to NULL.
3251         * rtinit.c: New file.
3252         (__gnat_rt_init_count): New reference counter set to 0.
3253         (__gnat_runtime_initialize): Move code here from __gnat_initialize when
3254         this code is actually needed for the runtime initialization. This
3255         routine returns immediately if the initialization has already been done.
3256         * final.c: Revert previous change.
3257         * rtfinal.c: New file.
3258         (__gnat_runtime_finalize)[Win32]: Add finalization of the critical
3259         section and event. The default version of this routine is empty (except
3260         for the reference counting code). This routine returns immediately if
3261         some others libraries are referencing the runtime.
3262         * bindgen.adb (Gen_Adainit): Generate call to Runtime_Initialize
3263         remove circuitry to initialize the signal handler as this is
3264         now done by the runtime initialization routine.
3265         (Gen_Adafinal): Generate call to Runtime_Finalize.
3266         * gnat_ugn.texi: Update documentation about concurrency and
3267         initialization/finalization of the run-time.
3268         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Add
3269         references to rtfinal.o and rtinit.o
3271 2015-01-06  Robert Dewar  <dewar@adacore.com>
3273         * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
3274         for Enum_Image.
3275         * sem_attr.adb: Implement Enum_Image attribute.
3276         * snames.ads-tmpl: Add entries for Enum_Image attribute.
3278 2015-01-06  Robert Dewar  <dewar@adacore.com>
3280         * namet.ads: Document use of Boolean2 for No_Use_Of_Entity.
3281         * restrict.ads (No_Use_Of_Entity): New table.
3282         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
3283         Ignore No_Use_Of_Entity (will be processed in parser).
3284         * snames.ads-tmpl: Add entry for Name_No_Use_Of_Entity.
3286 2015-01-06  Vincent Celier  <celier@adacore.com>
3288         * prj-tree.adb (Imported_Or_Extended_Project_Of): Do not try
3289         to check for an extended project, if a project does not have
3290         yet a project declaration.
3292 2015-01-06  Pierre-Marie Derodat  <derodat@adacore.com>
3294         * scos.ads: Update documentation about the SCO table build
3295         process and about table records format.
3296         * par_sco.ads (SCO_Record): Rename to SCO_Record_Raw.
3297         (SCO_Record_Filtered): New procedure.
3298         (Set_SCO_Logical_Operator): New procedure.
3299         (dsco): Update documentation.
3300         * par_sco.adb: Update library-level comments.
3301         (SCO_Generation_State_Type): New type.
3302         (SCO_Generation_State): New variable.
3303         (SCO_Raw_Table): New package instanciation.
3304         (Condition_Pragma_Hash_Table): Rename to SCO_Raw_Hash_Table.
3305         ("<"): New.
3306         (Tristate): New type.
3307         (Is_Logical_Operator): Return Tristate and update documentation.
3308         (Has_Decision): Update call to Is_Logical_Operator and complete
3309         documentation.
3310         (Set_Table_Entry): Rename to Set_Raw_Table_Entry, update
3311         comment, add an assertion for state checking and change
3312         references to SCO_Table into SCO_Raw_Table.
3313         (dsco): Refactor to dump the raw and the filtered tables.
3314         (Process_Decisions.Output_Decision_Operand): Handle putative
3315         short-circuit operators.
3316         (Process_Decisions.Output_Element): Update references
3317         to Set_Table_Entry and to Condition_Pragma_Hash_Table.
3318         (Process_Decisions.Process_Decision_Operand): Update call
3319         to Is_Logical_Operator.
3320         (Process_Decisions.Process_Node): Handle putative short-circuit
3321         operators and change references to
3322         SCO_Table into SCO_Raw_Table.
3323         (SCO_Output): Add an assertion
3324         for state checking and remove code that used to stamp out SCO entries.
3325         (SCO_Pragma_Disabled): Change reference to SCO_Table
3326         into SCO_Raw_Table.
3327         (SCO_Record): Rename to SCO_Record_Raw,
3328         add an assertion for state checking and change references
3329         to SCO_Table into SCO_Raw_Table.
3330         (Set_SCO_Condition): Add an assertion for state checking, update
3331         references to Condition_Pragma_Hash_Table and change references to
3332         SCO_Table into SCO_Raw_Table.
3333         (Set_SCO_Pragma_Enabled): Add an assertion for state checking and
3334         change references to SCO_Table into SCO_Raw_Table.
3335         (Set_SCO_Logical_Operator): New procedure.
3336         (Traverse_Declarations_Or_Statements.Set_Statement_Entry): Update
3337         references to Set_Table_Entry and to Condition_Pragma_Hash_Table.
3338         (SCO_Record_Fildered): New procedure.
3339         * gnat1drv.adb (Gnat1drv): Invoke the SCO filtering pass.
3340         * lib-writ.adb (Write_ALI): Invoke the SCO filtering pass and
3341         output SCOs.
3342         * par-load.adb (Load): Update reference to SCO_Record.
3343         * par.adb (Par): Update reference to SCO_Record.
3344         * put_scos.adb (Put_SCOs): Add an assertion to check that no
3345         putative SCO condition reaches this end.
3346         * sem_ch10.adb (Analyze_Proper_Body): Update reference to SCO_Record.
3347         * sem_res.adb (Resolve_Logical_Op): Validate putative SCOs
3348         when corresponding to an "and"/"or" operator affected by the
3349         Short_Circuit_And_Or pragma.
3351 2015-01-06  Robert Dewar  <dewar@adacore.com>
3353         * sem_ch8.adb (Analyze_Use_Package): Give more specific error
3354         msg for attempted USE of generic subprogram or subprogram.
3356 2015-01-06  Robert Dewar  <dewar@adacore.com>
3358         * s-valllu.adb, a-tiinau.adb, a-timoau.adb, a-ztinau.adb, a-ztmoau.adb,
3359         s-valuns.adb, s-valrea.adb, a-wtflau.adb, a-tiflau.adb, a-ztflau.adb,
3360         a-wtinau.adb, a-wtmoau.adb: Document recognition of : in place of #.
3362 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
3364         * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
3365         that specify stream subprograms, if the prefix is a class-wide
3366         type then the generated attribute definition clause must apply
3367         to the same class-wide type.
3368         (Default_Iterator): An iterator defined by an aspect of some
3369         container type T must have a first parameter of type T, T'class,
3370         or an access to such (from code reading RM 5.5.1 (2/3)).
3372 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
3374         * gnat1drv.adb: Minor: complete previous change.
3376 2015-01-06  Olivier Hainque  <hainque@adacore.com>
3378         * set_targ.ads (C_Type_For): New function. Return the name of
3379         a C type supported by the back-end and suitable as a basis to
3380         construct the standard Ada floating point type identified by
3381         the T parameter. This is used as a common ground to feed both
3382         ttypes values and the GNAT tree nodes for the standard floating
3383         point types.
3384         * set_targ.adb (Long_Double_Index): The index at which "long
3385         double" gets registered in the FPT_Mode_Table. This is useful to
3386         know whether we have a "long double" available at all and get at
3387         it's characteristics without having to search the FPT_Mode_Table
3388         when we need to decide which C type should be used as the
3389         basis for Long_Long_Float in Ada.
3390         (Register_Float_Type): Fill Long_Double_Index.
3391         (FPT_Mode_Index_For): New function. Return the index in
3392         FPT_Mode_Table that designates the entry corresponding to the
3393         provided C type name.
3394         (FPT_Mode_Index_For): New function. Return the index in
3395         FPT_Mode_Table that designates the entry for a back-end type
3396         suitable as a basis to construct the standard Ada floating point
3397         type identified by the input T parameter.
3398         (elaboration code): Register_Back_End_Types unconditionally,
3399         so C_Type_For can operate regardless of -gnateT. Do it
3400         early so we can query it for the floating point sizes, via
3401         FPT_Mode_Index_For. Initialize Float_Size, Double_Size and
3402         Long_Double_Size from the FPT_Mode_Table, as cstand will do.
3403         * cstand.adb (Create_Float_Types): Use C_Type_For to determine
3404         which C type should be used as the basis for the construction
3405         of the Standard Ada floating point types.
3406         * get_targ.ads (Get_Float_Size, Get_Double_Size,
3407         Get_Long_Double_Size): Remove.
3408         * get_targ.adb: Likewise.
3410 2015-01-06  Thomas Quinot  <quinot@adacore.com>
3412         * sem_cat.adb (In_RCI_Declaration): Remove unnecessary
3413         parameter and rename to...
3414         (In_RCI_Visible_Declarations): Fix handling of private part of nested
3415         package.
3416         (Validate_RCI_Subprogram_Declaration): Reject illegal function
3417         returning anonymous access in RCI unit.
3419 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
3421         * sem_ch6.adb (New_Overloaded_Entity): In GNATprove mode, a
3422         function wrapper may be a homonym of another local declaration.
3423         * sem_ch8.adb (Analyze_Subprogram_Renaming): In GNATprove mode,
3424         build function and operator wrappers after the actual subprogram
3425         has been resolved, and replace the standard renaming declaration
3426         with the declaration of wrapper.
3427         * sem_ch12.ads (Build_Function_Wrapper, Build_Operator_Wraooer):
3428         make public for use elsewhere.
3429         * sem_ch12.adb (Build_Function_Wrapper, Build_Operator_Wraooer):
3430         rewrite, now that actual is fully resolved when wrapper is
3431         constructed.
3433 2015-01-06  Javier Miranda  <miranda@adacore.com>
3435         * exp_disp.adb: Revert previous change.
3437 2015-01-06  Robert Dewar  <dewar@adacore.com>
3439         * exp_util.adb: Change name Name_Table_Boolean to
3440         Name_Table_Boolean1.
3441         * namet.adb: Change name Name_Table_Boolean to Name_Table_Boolean1
3442         Introduce Name_Table_Boolean2/3.
3443         * namet.ads: Change name Name_Table_Boolean to Name_Table_Boolean1
3444         Introduce Name_Table_Boolean2/3.
3445         * par-ch13.adb: Change name Name_Table_Boolean to
3446         Name_Table_Boolean1.
3448 2015-01-06  Bob Duff  <duff@adacore.com>
3450         * gnat_rm.texi: Improve documentation regarding No_Task_Termination.
3452 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
3454         * sem_aggr.adb (Resolve_Record_Aggregte, Get_Value): For an
3455         others choice that covers multiple components, analyze each
3456         copy with the type of the component even in compile-only mode,
3457         to detect potential accessibility errors.
3459 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
3461         * sem_res.adb (Is_Assignment_Or_Object_Expression): New routine.
3462         (Resolve_Actuals): An effectively volatile out
3463         parameter cannot act as an in or in out actual in a call.
3464         (Resolve_Entity_Name): An effectively volatile out parameter
3465         cannot be read.
3467 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
3469         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): If the body is
3470         the expansion of an expression function it may be pre-analyzed
3471         if a 'access attribute is applied to the function, in which case
3472         last_entity may have been assigned already.
3474 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
3476         * sem_ch4.adb (Analyze_One_Call): If formal has an incomplete
3477         type and actual has the corresponding full view, there is no
3478         error, but a case of use of incomplete type in a predicate or
3479         invariant expression.
3481 2015-01-06  Vincent Celier  <celier@adacore.com>
3483         * makeutl.adb (Insert_No_Roots): Make sure that the same source
3484         in two different project tree is checked in both trees, if they
3485         are sources of two different projects, extended or not.
3487 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
3489         * gnat1drv.adb: Minor code clean up.
3490         (Adjust_Global_Switches): Ignore gnatprove_mode in codepeer_mode.
3492 2015-01-06  Bob Duff  <duff@adacore.com>
3494         * osint.adb (Read_Source_File): Don't print out
3495         file name unless T = Source.
3497 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
3499         * sem_util.adb (Is_Variable, Is_OK_Variable_For_Out_Formal):
3500         recognize improper uses of constant_reference types as actuals
3501         for in-out parameters.
3502         (Check_Function_Call): Do not collect identifiers if function
3503         name is missing because of previous error.
3505 2015-01-06  Robert Dewar  <dewar@adacore.com>
3507         * ali-util.adb, sem_prag.adb, rtsfind.adb, sem_util.adb, sem_res.adb,
3508         ali.adb, binde.adb, namet.adb, namet.ads, gnatls.adb, bcheck.adb:
3509         Minor change of name Name_Table_Info => Name_Table_Int.
3511 2015-01-06  Robert Dewar  <dewar@adacore.com>
3513         * exp_strm.adb (Build_Elementary_Input_Call): Clarify comments
3514         in previous checkin.
3515         * freeze.adb (Freeze_Fixed_Point_Type): Add warning for shaving
3516         of bounds.
3517         * sem_prag.adb, sem_ch10.adb, sem_ch6.adb: Minor reformatting.
3519 2015-01-06  Vincent Celier  <celier@adacore.com>
3521         * a-strsup.adb (Times (Natural;String;Positive)): Raise
3522         Length_Error, not Index_Error, when the result is too long.
3524 2015-01-06  Thomas Quinot  <quinot@adacore.com>
3526         * a-direct.adb (Create_Path): Minor error handling and
3527         performance improvement.
3529 2015-01-06  Robert Dewar  <dewar@adacore.com>
3531         * checks.ads, sem_ch12.adb: Minor reformatting.
3532         * exp_ch4.adb (Expand_N_Op_Divide): Generate explicit divide by
3533         zero check for fixed-point case if Backend_Divide_Checks_On_Target
3534         is False.
3536 2015-01-06  Robert Dewar  <dewar@adacore.com>
3538         * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
3539         Do not set restriction No_Elaboration_Code unless the pragma
3540         appears in the main unit).
3542 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
3544         * sem_ch10.adb (Is_Regular_With_Clause): Add guard to verify
3545         that with clause has already been analyzed before checking kind
3546         of with_clause.
3548 2015-01-06  Robert Dewar  <dewar@adacore.com>
3550         * exp_strm.adb (Build_Elementary_Input_Call): Return base type
3551         (as required by RM).
3553 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
3555         * a-reatim.adb ("/"): Add explicit pragma Unsuppress (Division_Check).
3557 2015-01-06  Robert Dewar  <dewar@adacore.com>
3559         * sem_prag.adb (Process_Suppress_Unsuppress): Add extra warning
3560         for ignoring pragma Suppress (Elaboration_Check) in SPARK mode.
3562 2015-01-06  Javier Miranda  <miranda@adacore.com>
3564         * exp_disp.adb (Expand_Interface_Conversion): No displacement
3565         of the pointer to the object needed when the type of the operand
3566         is not an interface type and the interface is one of its parent
3567         types (since they share the primary dispatch table).
3569 2015-01-06  Vincent Celier  <celier@adacore.com>
3571         * prj-env.adb: Minor comment update.
3573 2015-01-06  Javier Miranda  <miranda@adacore.com>
3575         * sem_res.adb (Valid_Conversion): Restrict the checks on anonymous
3576         access types whose target type is an interface type to operands
3577         that are access types; required to report an error when the
3578         operand is not an access type.
3580 2015-01-06  Bob Duff  <duff@adacore.com>
3582         * a-cfinve.adb (Copy): Set the discriminant to the Length when
3583         Capacity = 0.
3584         * a-cofove.ads (Capacity): Add a postcondition.
3585         * a-cfinve.ads (Capacity): Add a postcondition.
3586         (Reserve_Capacity): Correct the postcondition in the case where
3587         Capacity = 0; that means "Capacity => Length (Container)".
3588         * a-cofove.adb (Elems[c]): Add a comment
3589         explaining the dangers and how to avoid them.
3591 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
3593         * sem_ch12.adb: Code clean up.
3595 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
3597         * gnatvsn.ads: Bump copyright year.
3599 2015-01-06  Robert Dewar  <dewar@adacore.com>
3601         * s-taskin.ads, s-traces.ads: Minor reformatting.
3602         * exp_util.adb: Minor typo fix.
3604 2015-01-06  Vincent Celier  <celier@adacore.com>
3606         * gnatls.adb (Search_RTS): Invoke Initialize_Default_Project_Path
3607         with the runtime name.
3608         * prj-env.adb (Initialize_Default_Project_Path): When both
3609         Target_Name and Runtime_Name are not empty string, add to the
3610         project path the two directories .../lib/gnat and .../share/gpr
3611         related to the runtime.
3612         * prj-env.ads (Initialize_Default_Project_Path): New String
3613         parameter Runtime_Name, defaulted to the empty string.
3615 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
3617         * frontend.adb: Guard against the case where a configuration
3618         pragma may be split into multiple pragmas and the original
3619         rewritten as a null statement.
3620         * sem_prag.adb (Analyze_Pragma): Insert a brand new Check_Policy
3621         pragma using Insert_Before rather than Insert_Action. This
3622         takes care of the configuration pragma case where Insert_Action
3623         would fail.
3625 2015-01-06  Bob Duff  <duff@adacore.com>
3627         * a-coboho.ads (Element_Access): Add "pragma
3628         No_Strict_Aliasing (Element_Access);". This is needed because
3629         we are unchecked-converting from Address to Element_Access.
3630         * a-cofove.ads, a-cofove.adb (Elems,Elemsc): Fix bounds of the
3631         result to be 1.
3633 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
3635         * sem_res.adb (Resolve_Actuals): Remove the
3636         restriction which prohibits volatile actual parameters with
3637         enabled external propery Async_Writers to act appear in procedure
3638         calls where the corresponding formal is of mode OUT.
3640 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
3642         * gnat_ugn.texi: Bump @copying's copyright year.
3644 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
3646         PR ada/64492
3647         * gcc-interface/Makefile.in (../stamp-tools): Reinstate dropped code.
3649 2015-01-04  Uros Bizjak  <ubizjak@gmail.com>
3651         * gcc-interface/misc.c (internal_error_function): Use xasprintf instead
3652         of unchecked asprintf.
3655 Copyright (C) 2015 Free Software Foundation, Inc.
3657 Copying and distribution of this file, with or without modification,
3658 are permitted in any medium without royalty provided the copyright
3659 notice and this notice are preserved.