2015-03-04 Robert Dewar <dewar@adacore.com>
[official-gcc.git] / gcc / ada / ChangeLog
blob5c3816b40998e7da7bd7a9d1f337b8775cc885bf
1 2015-03-04  Robert Dewar  <dewar@adacore.com>
3         * atree.h: Add entries for Flag287-Flag309.
4         * einfo.adb: Add (unused) flags Flag287-Flag309.
6 2015-03-04  Ed Schonberg  <schonberg@adacore.com>
8         * sem_util.adb (Collect_Interfaces, Collect): When gathering
9         interfaces of ancestors, handle properly a subtype of a private
10         extension.
12 2015-03-04  Robert Dewar  <dewar@adacore.com>
14         * einfo.adb (Is_ARECnF_Entity): New flag (ARECnF is an extra formal).
15         (Next_Formal): Don't return ARECnF formal.
16         (Last_Formal): Don't consider ARECnF formal.
17         (Next_Formal_With_Extras): Do consider ARECnF formal.
18         * einfo.ads (Is_ARECnF_Entity): New flag (ARECnF is an extra formal).
19         * exp_unst.adb (Create_Entities): Set Is_ARECnF_Entity flag.
21 2015-03-04  Javier Miranda  <miranda@adacore.com>
23         * exp_ch6.adb (Expand_Simple_Function_Return): When the returned
24         object is a class-wide interface object and we generate the
25         accessibility described in RM 6.5(8/3) then displace the pointer
26         to the object to reference the base of the object (to get access
27         to the TSD of the object).
29 2015-03-04  Hristian Kirtchev  <kirtchev@adacore.com>
31         * sem_prag.adb (Analyze_Abstract_State): Use routine
32         Malformed_State_Error to issue general errors.
33         (Analyze_Pragma): Diagnose a syntax error related to a state
34         declaration with a simple option.
35         (Malformed_State_Error): New routine.
37 2015-03-04  Robert Dewar  <dewar@adacore.com>
39         * a-strsup.adb (Super_Slice): Deal with super flat case.
40         * einfo.ads: Minor reformatting.
41         * s-imgdec.adb (Set_Decimal_Digits): Add comment about possibly
42         redundant code.
44 2015-03-04  Claire Dross  <dross@adacore.com>
46         * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
47         a-cforse.ads, a-cofove.ads: Use Default_Initial_Condition on formal
48         containers.
50 2015-03-04  Ed Schonberg  <schonberg@adacore.com>
52         * sem_warn.adb (Check_References): When checking for an unused
53         in-out parameter of a class- wide type, use its type to determine
54         whether it is private, in order to avoid a spurious warning when
55         subprogram spec and body are in different units.
57 2015-03-04  Yannick Moy  <moy@adacore.com>
59         * sem_attr.adb: Improve warning messages.
61 2015-03-04  Robert Dewar  <dewar@adacore.com>
63         * exp_ch6.adb (Expand_N_Subprogram_Body): Avoid trying to unnest
64         generic subprograms.
65         * exp_unst.adb (Check_Dynamic_Type): Handle record types properly
66         (Note_Uplevel_Reference): Ignore uplevel references to non-types
67         (Get_Level): Consider only subprograms, not blocks.
68         (Visit_Node): Set proper condition for generating ARECnF entity.
69         Ignore indirect calls. Ignore calls to subprograms
70         outside our nest.
71         (Unnest_Subprogram): Minor changes in dealing with ARECnF entity.
72         (Add_Form_To_Spec): Properly set Last_Entity field.
73         (Unnest_Subprogram): Set current subprogram scope for analyze calls.
74         Handle case of no uplevel refs in outer subprogram
75         Don't mark uplevel entities as aliased.
76         Don't deal with calls with no ARECnF requirement.
78 2015-03-04  Robert Dewar  <dewar@adacore.com>
80         * s-valrea.adb (Scan_Real): Remove redundant tests from scaling loops.
81         * s-imgdec.adb (Set_Decimal_Digits): Remove redundant Max
82         operation in computing LZ.
83         * sem_attr.adb: Minor typo fix
85 2015-03-04  Robert Dewar  <dewar@adacore.com>
87         * exp_ch7.adb: Minor reformatting.
88         * exp_unst.adb (Build_Tables): Fix minor glitch for no separate
89         spec case.
90         * erroutc.adb (Delete_Msg): add missing decrement of info msg counter.
92 2015-03-04  Hristian Kirtchev  <kirtchev@adacore.com>
94         * exp_ch6.adb (Build_Pragma_Check_Equivalent): Suppress
95         references to formal parameters subject to pragma Unreferenced.
96         (Suppress_Reference): New routine.
97         * sem_attr.adb (Analyze_Attribute): Reimplement the analysis
98         of attribute 'Old. Attributes 'Old and 'Result now share
99         common processing.
100         (Analyze_Old_Result_Attribute): New routine.
101         (Check_Placement_In_Check): Removed.
102         (Check_Placement_In_Contract_Cases): Removed.
103         (Check_Placement_In_Test_Case): Removed.
104         (Check_Use_In_Contract_Cases): Removed.
105         (Check_Use_In_Test_Case): Removed.
106         (In_Refined_Post): Removed.
107         (Is_Within): Removed.
108         * sem_warn.adb (Check_Low_Bound_Tested): Code cleanup.
109         (Check_Low_Bound_Tested_For): New routine.
111 2015-03-04  Hristian Kirtchev  <kirtchev@adacore.com>
113         * exp_ch3.adb (Expand_N_Object_Declaration):
114         Generate a runtime check to test the expression of pragma
115         Default_Initial_Condition when the object is default initialized.
117 2015-03-02  Robert Dewar  <dewar@adacore.com>
119         * scng.adb (Scan): Ignore illegal character in relaxed
120         semantics mode.
122 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
124         * sem_ch4.adb (Analyze_Set_Membership); Retain Overloaded flag
125         on left operand, so it can be properly resolved with type of
126         alternatives of right operand.
127         * sem_res.adb (Resolve_Set_Membership): Handle properly an
128         overloaded left-hand side when the alternatives on the right
129         hand side are literals of some universal type.  Use first
130         non-overloaded alternative to find expected type.
132 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
134         * exp_ch7.adb (Make_Set_Finalize_Address_Call): Use underlying
135         type to retrieve designated type, because the purported access
136         type may be a partial (private) view, when it is declared in
137         the private part of a nested package, and finalization actions
138         are generated when completing compilation of enclosing unit.
140 2015-03-02  Robert Dewar  <dewar@adacore.com>
142         * back_end.adb (Call_Back_End): Remove previous patch,
143         the back end now gets to see the result of -gnatd.1
144         (Unnest_Subprogram_Mode) processing.
145         * elists.ads, elists.adb (List_Length): New function.
146         * exp_unst.ads, exp_unst.adb: Major changes, first complete version.
147         * sem_util.adb (Check_Nested_Access): Handle formals in
148         Unnest_Subprogram_Mode.
149         (Adjust_Named_Associations): Minor reformatting.
150         * sprint.adb (Sprint_Node_Actual): Fix failure to print aliased
151         for parameters.
153 2015-03-02  Robert Dewar  <dewar@adacore.com>
155         * atree.ads, atree.adb (Uint24): New function
156         (Set_Uint24): New procedure.
157         * atree.h (Uint24): New macro for field access.
158         * back_end.adb (Call_Back_End): For now, don't call back end
159         if unnesting subprogs.
160         * einfo.adb (Activation_Record_Component): New field
161         (Subps_Index): New field.
162         * einfo.ads (Activation_Record_Component): New field
163         (Subps_Index): New field Minor reordering of comments into alpha order.
164         * exp_unst.ads, exp_unst.adb: Continued development.
166 2015-03-02  Gary Dismukes  <dismukes@adacore.com>
168         * exp_disp.ads: Minor reformatting.
170 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
172         * sem_ch8.adb (Chain_Use_Clause): Do not chain use clause from
173         ancestor to list of use clauses active in descendant unit if we
174         are within the private part of an intervening parent, to prevent
175         circularities in use clause list.
177 2015-03-02  Javier Miranda  <miranda@adacore.com>
179         * exp_ch9.adb (Build_Corresponding_Record): Propagate type
180         invariants to the corresponding record type.
181         * exp_disp.ad[sb] (Set_DT_Position_Value): New subprogram
182         which sets the value of the DTC_Entity associated with a given
183         primitive of a tagged type and propagates the value to the
184         wrapped subprogram.
185         (Set_DTC_Entity_Value): Propagate the DTC
186         value to the wrapped entity.
187         * sem_ch13.adb (Build_Invariant_Procedure): Append the code
188         associated with invariants of progenitors.
189         * sem_ch3.adb (Build_Derived_Record_Type): Inherit type invariants
190         of parents and progenitors.
191         (Process_Full_View): Check hidden inheritance of class-wide type
192         invariants.
193         * sem_ch7.adb (Analyze_Package_Specification): Do not generate
194         the invariant procedure for interface types; build the invariant
195         procedure for tagged types inheriting invariants from their
196         progenitors.
197         * sem_prag.adb (Pragma_Invariant) Allow invariants in interface
198         types but do not build their invariant procedure since their
199         invariants will be propagated to the invariant procedure of
200         types covering the interface.
201         * exp_ch6.adb, exp_disp.adb, sem_ch3.adb, sem_ch7.adb,
202         sem_ch8.adb, sem_disp.adb: Replace all calls to Set_DT_Position
203         by calls to Set_DT_Position_Value.
205 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
207         * sem_attr.adb (Analyze_Attribute): Factor out heavily indented
208         code in Denote_Same_Function.  Do not analyze attribute 'Result
209         when it is inside procedure _Postconditions.  Remove a misplaced
210         warning diagnostic. Code cleanup.
211         (Denote_Same_Function): New routine.
212         * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): Code
213         cleanup. Warn on pre/postconditions on an inlined subprogram.
214         (Analyze_Pragma, Refined_Post case): Warn on pre/postconditions on
215         an inlined subprogram.
216         (Analyze_Pre_Post_Condition_In_Decl_Part): Code cleanup. Warn on
217         pre/post condition on an inlined subprogram.
218         (Analyze_Test_Case_In_Decl_Part): Code cleanup. Warn on
219         pre/postconditions on an inlined subprogram.
220         (Check_Postcondition_Use_In_Inlined_Subprogram): New routine.
222 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
224         * sem_prag.adb (Ensure_Aggregate_Form):
225         Ensure that the name denoted by the Chars of a pragma argument
226         association has the proper Sloc when converted into an aggregate.
228 2015-03-02  Bob Duff  <duff@adacore.com>
230         * sem_ch6.adb (Check_Private_Overriding): Capture
231         Incomplete_Or_Partial_View in a constant. This is cleaner and
232         more efficient.
234 2015-03-02  Gary Dismukes  <dismukes@adacore.com>
236         * einfo.ads, exp_unst.ads: Minor reformatting.
238 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
240         * a-strsea.adb (Find_Token): Ensure that the range of iteration
241         does not perform any improper character access. This prevents
242         erroneous access in the unusual case of an empty string target
243         and a From parameter less than Source'First.
245 2015-03-02  Robert Dewar  <dewar@adacore.com>
247         * elists.adb (List_Length): Fix incorrect result.
249 2015-03-02  Bob Duff  <duff@adacore.com>
251         * sem_ch6.adb (Check_Private_Overriding): Refine the legality
252         checks here. It used to check that the function is merely
253         overriding SOMEthing. Now it checks that the function is
254         overriding a corresponding public operation. This is a correction
255         to the implementation of the rule in RM-3.9.3(10).
257 2015-03-02  Robert Dewar  <dewar@adacore.com>
259         * debug.adb: Document new debug flag -gnatd.1.
260         * einfo.ads, einfo.adb (Has_Nested_Subprogram): New flag.
261         (Has_Uplevel_Reference): New flag (Is_Static_Type): New flag.
262         (Uplevel_Reference_Noted):New flag (Uplevel_References): New field.
263         * elists.ads elists.adb (List_Length): New function.
264         * exp_ch6.adb (Expand_N_Subprogram_Body): Call Unnest_Subprogram
265         when appropriate (Process_Preconditions): Minor code
266         reorganization and reformatting
267         * exp_unst.ads, exp_unst.adb: New files.
268         * gnat1drv.adb (Adjust_Global_Switches): Set
269         Unnest_Subprogram_Mode if -gnatd.1
270         * namet.ads, namet.adb (Name_Find_Str): New version of Name_Find with
271         string argument.
272         * opt.ads (Unnest_Subprogram_Mode): New flag.
273         * par-ch3.adb (P_Identifier_Declarations): Fixes to -gnatd.2 handling.
274         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set
275         Has_Nested_Subprogram flag.
276         * sem_ch8.adb (Find_Direct_Name): New calling sequence for
277         Check_Nested_Access.
278         (Find_Selected_Component): Minor comment addition.
279         * sem_util.adb (Check_Nested_Access): New version for use with Exp_Unst.
280         (Note_Possible_Modification): New calling sequence for
281         Check_Nested_Access.
282         * sem_util.ads (Check_Nested_Access): New version for use with Exp_Unst.
283         * gcc-interface/Make-lang.in (GNAT1_OBJS): Add exp_unst.o
285 2015-03-02  Pierre-Marie de Rodat  <derodat@adacore.com>
287         * gcc-interface/utils.c (gnat_pushdecl): For non-artificial pointer
288         types, preserve the original type and create copies just like the C
289         front-end does.  For artificial ones, do not define a name for
290         the original type.
291         (create_type_decl): When gnat_pushdecl made the input type the
292         original type for the new declaration, do not define a stub
293         declaration for it.
294         * gcc-interface/utils2.c (build_binary_op): Accept two different
295         pointer types when they point to the same type.
297 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
299         * exp_util.adb (Possible_Bit_Aligned_Component): Do not process
300         an unanalyzed node.
301         * sem_util.adb (Kill_Current_Values): Do not invalidate and
302         de-null a constant.
304 2015-03-02  Robert Dewar  <dewar@adacore.com>
306         * sem_ch3.adb, exp_attr.adb, checks.adb, exp_aggr.adb: Minor
307         reformatting.
309 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
311         * sem_ch8.adb: extend use of Available_Subtype.
313 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
315         * sem_prag.adb (Duplication_Error): Remove the special handling
316         of 'Class or _Class in the context of pre/postconditions.
317         (Process_Class_Wide_Condition): Remove the special handling of
318         'Class or _Class in the context of pre/postconditions.
319         * sem_util.adb (Original_Aspect_Pragma_Name): Names Pre_Class
320         and Post_Class no longer need to be converted to _Pre and _Post.
321         * sem_util.ads (Original_Aspect_Pragma_Name): Update the comment
322         on usage.
324 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
326         * exp_ch6.adb (Process_Preconditions): Modify the
327         mechanism that find the first source declaration to correct exit
328         the loop once it has been found.
330 2015-03-02  Gary Dismukes  <dismukes@adacore.com>
332         * a-strsea.adb: Minor typo fix.
334 2015-03-02  Bob Duff  <duff@adacore.com>
336         * einfo.ads: Minor comment fixes.
338 2015-03-02  Gary Dismukes  <dismukes@adacore.com>
340         * einfo.adb, checks.adb: Minor reformatting and typo fixes.
342 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
344         * exp_aggr.adb (Get_Assoc_Expr): If the Default_Component_Value
345         is defined for the array type, use it instead of a Default_Value
346         specified for the component type itself.
348 2015-03-02  Thomas Quinot  <quinot@adacore.com>
350         * exp_attr.adb (Expand_N_Attribute_Reference, case Input): When
351         expanding a 'Input attribute reference for a class-wide type,
352         do not generate a separate object declaration for the controlling
353         tag dummy object; instead, generate the expression inline in the
354         dispatching call. Otherwise, the declaration (which involves a
355         call to String'Input, returning a dynamically sized value on the
356         secondary stack) will be expanded outside of proper secondary
357         stack mark/release operations, and will thus cause a secondary
358         stack leak.
360 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
362         * checks.adb (Add_Validity_Check): Change the names of all
363         formal parameters to better illustrate their purpose. Update
364         the subprogram documentation. Update all occurrences of the
365         formal parameters. Generate a pre/postcondition pragma by
366         calling Build_Pre_Post_Condition.
367         (Build_PPC_Pragma): Removed.
368         (Build_Pre_Post_Condition): New routine.
369         * einfo.adb Node8 is no longer used as Postcondition_Proc. Node14
370         is now used as Postconditions_Proc. Flag240 is now renamed to
371         Has_Expanded_Contract.  (First_Formal): The routine can now
372         operate on generic subprograms.
373         (First_Formal_With_Extras): The routine can now operate on generic
374         subprograms.
375         (Has_Expanded_Contract): New routine.
376         (Has_Postconditions): Removed.
377         (Postcondition_Proc): Removed.
378         (Postconditions_Proc): New routine.
379         (Set_Has_Expanded_Contract): New routine.
380         (Set_Has_Postconditions): Removed.
381         (Set_Postcondition_Proc): Removed.
382         (Set_Postconditions_Proc): New routine.
383         (Write_Entity_Flags): Remove the output of Has_Postconditions. Add
384         the output of Has_Expanded_Contract.
385         (Write_Field8_Name): Remove the output of Postcondition_Proc.
386         (Write_Field14_Name): Add the output of Postconditions_Proc.
387         * einfo.ads New attributes Has_Expanded_Contract and
388         Postconditions_Proc along with occurrences in entities.
389         Remove attributes Has_Postconditions and Postcondition_Proc
390         along with occurrences in entities.
391         (Has_Expanded_Contract): New routine along with pragma Inline.
392         (Has_Postconditions): Removed along with pragma Inline.
393         (Postcondition_Proc): Removed along with pragma Inline.
394         (Postconditions_Proc): New routine along with pragma Inline.
395         (Set_Has_Expanded_Contract): New routine along with pragma Inline.
396         (Set_Has_Postconditions): Removed along with pragma Inline.
397         (Set_Postcondition_Proc): Removed along with pragma Inline.
398         (Set_Postconditions_Proc): New routine along with pragma Inline.
399         * exp_ch6.adb (Add_Return): Code cleanup. Update the
400         generation of the call to the _Postconditions routine of
401         the procedure.  (Expand_Non_Function_Return): Reformat the
402         comment on usage. Code cleanup.  Update the generation of
403         the call to the _Postconditions routine of the procedure or
404         entry [family].
405         (Expand_Simple_Function_Return): Update the
406         generation of the _Postconditions routine of the function.
407         (Expand_Subprogram_Contract): Reimplemented.
408         * exp_ch6.ads (Expand_Subprogram_Contract): Update the parameter
409         profile along the comment on usage.
410         * exp_ch9.adb (Build_PPC_Wrapper): Code cleanup.
411         (Expand_N_Task_Type_Declaration): Generate pre/postconditions
412         wrapper when the entry [family] has a contract with
413         pre/postconditions.
414         * exp_prag.adb (Expand_Attributes_In_Consequence): New routine.
415         (Expand_Contract_Cases): This routine and its subsidiaries now
416         analyze all generated code.
417         (Expand_Old_In_Consequence): Removed.
418         * sem_attr.adb Add with and use clause for Sem_Prag.
419         (Analyze_Attribute): Reimplment the analysis of attribute 'Result.
420         (Check_Use_In_Test_Case): Use routine Test_Case_Arg to obtain
421         "Ensures".
422         * sem_ch3.adb (Analyze_Declarations): Analyze the contract of
423         a generic subprogram.
424         (Analyze_Object_Declaration): Do not create a contract node.
425         (Derive_Subprogram): Do not create a contract node.
426         * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Do
427         not create a contract node.
428         (Analyze_Completion_Contract): New routine.
429         (Analyze_Function_Return): Alphabetize.
430         (Analyze_Generic_Subprogram_Body): Alphabetize. Do not create a
431         contract node.  Do not copy pre/postconditions to the original
432         generic template.
433         (Analyze_Null_Procedure): Do not create a contract node.
434         (Analyze_Subprogram_Body_Contract): Reimplemented.
435         (Analyze_Subprogram_Body_Helper): Do not mark the enclosing scope
436         as having postconditions. Do not create a contract node. Analyze
437         the subprogram body contract of a body that acts as a compilation
438         unit. Expand the subprogram contract after the declarations have
439         been analyzed.
440         (Analyze_Subprogram_Contract): Reimplemented.
441         (Analyze_Subprogram_Specification): Do not create a contract node.
442         (List_Inherited_Pre_Post_Aspects): Code cleanup.
443         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Update the
444         comment on usage.
445         (Analyze_Subprogram_Contract): Update the
446         parameter profile and the comment on usage.
447         * sem_ch7.adb (Analyze_Package_Body_Helper): Do not create a
448         contract node.
449         (Analyze_Package_Declaration): Do not create a
450         contract node.
451         (Is_Subp_Or_Const_Ref): Ensure that the prefix has an entity.
452         * sem_ch8.adb (Analyze_Subprogram_Renaming): Do not create a
453         contract node.
454         * sem_ch9.adb (Analyze_Entry_Declaration): Do not create a
455         contract node.
456         * sem_ch10.adb (Analyze_Compilation_Unit): Move local variables to
457         their proper section and alphabetize them. Analyze the contract of
458         a [generic] subprogram after all Pragmas_After have been analyzed.
459         (Analyze_Subprogram_Body_Stub_Contract): Alphabetize.
460         * sem_ch12.adb (Analyze_Generic_Package_Declaration): Do not
461         create a contract node.
462         (Analyze_Generic_Subprogram_Declaration):
463         Alphabetize local variables. Do not create a contract
464         node. Do not generate aspects out of pragmas for ASIS.
465         (Analyze_Subprogram_Instantiation): Instantiate
466         the contract of the subprogram.  Do not create a
467         contract node.  (Instantiate_Contract): New routine.
468         (Instantiate_Subprogram_Body): Alphabetize local variables.
469         (Save_Global_References_In_Aspects): New routine.
470         (Save_References): Do not save the global references found within
471         the aspects of a generic subprogram.
472         * sem_ch12.ads (Save_Global_References_In_Aspects): New routine.
473         * sem_ch13.adb (Analyze_Aspect_Specifications): Do not use
474         Original_Node for establishing linkages.
475         (Insert_Pragma): Insertion in a subprogram body takes precedence over
476         the case where the subprogram body is also a compilation unit.
477         * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): Use
478         Get_Argument to obtain the proper expression. Install the generic
479         formals when the related context is a generic subprogram.
480         (Analyze_Depends_In_Decl_Part): Use Get_Argument to obtain
481         the proper expression. Use Corresponding_Spec_Of to obtain
482         the spec. Install the generic formal when the related context
483         is a generic subprogram.
484         (Analyze_Global_In_Decl_Part): Use Get_Argument to obtain the proper
485         expression. Use Corresponding_Spec_Of to obtain the spec. Install the
486         generic formal when the related context is a generic subprogram.
487         (Analyze_Initial_Condition_In_Decl_Part): Use Get_Argument
488         to obtain the proper expression. Remove the call to
489         Check_SPARK_Aspect_For_ASIS as the analysis is now done
490         automatically.
491         (Analyze_Pragma): Update all occurrences
492         to Original_Aspect_Name. Pragmas Contract_Cases, Depends,
493         Extensions_Visible, Global, Postcondition, Precondition and
494         Test_Case now carry generic templates when the related context
495         is a generic subprogram. The same pragmas are no longer
496         forcefully fully analyzed when the context is a subprogram
497         that acts as a compilation unit. Pragmas Abstract_State,
498         Initial_Condition, Initializes and Refined_State have been clean
499         up. Pragmas Post, Post_Class, Postcondition, Pre, Pre_Class
500         and Precondition now use the same routine for analysis. Pragma
501         Refined_Post does not need to check the use of 'Result or
502         the lack of a post-state in its expression. Reimplement the
503         analysis of pragma Test_Case.
504         (Analyze_Pre_Post_Condition): New routine.
505         (Analyze_Pre_Post_Condition_In_Decl_Part):
506         Reimplemented.
507         (Analyze_Refined_Depends_In_Decl_Part): Use Get_Argument to obtain the
508         proper expression.
509         (Analyze_Refined_Global_In_Decl_Part): Use Get_Argument to obtain
510         the proper expression.
511         (Analyze_Test_Case_In_Decl_Part): Reimplemented.
512         (Check_Pre_Post): Removed.
513         (Check_Precondition_Postcondition): Removed.
514         (Check_SPARK_Aspect_For_ASIS): Removed.
515         (Check_Test_Case): Removed.
516         (Collect_Subprogram_Inputs_Outputs): Use Get_Argument
517         to obtain the proper expression. Use Corresponding_Spec_Of to
518         find the proper spec.
519         (Create_Generic_Template): New routine.
520         (Duplication_Error): New routine.
521         (Expression_Function_Error): New routine.
522         (Find_Related_Subprogram_Or_Body): Moved to the spec
523         of Sem_Prag. Emit precise error messages. Account for cases of
524         rewritten expression functions, generic instantiations, handled
525         sequence of statements and pragmas from aspects.
526         (Get_Argument): New routine.
527         (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Removed.
528         (Preanalyze_CTC_Args): Removed.
529         (Process_Class_Wide_Condition): New routine.
530         * sem_prag.ads (Analyze_Test_Case_In_Decl_Part): Update
531         the parameter profile along with the comment on usage.
532         (Find_Related_Subprogram_Or_Body): Moved from the body of Sem_Prag.
533         (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Removed.
534         (Test_Case_Arg): New routine.
535         * sem_util.adb Add with and use clauses for Sem_Ch6.
536         (Add_Contract_Item): This routine now creates a contract
537         node the first time an item is added. Remove the duplicate
538         aspect/pragma checks.
539         (Check_Result_And_Post_State): Reimplemented.
540         (Corresponding_Spec_Of): New routine.
541         (Get_Ensures_From_CTC_Pragma): Removed.
542         (Get_Requires_From_CTC_Pragma): Removed.
543         (Has_Significant_Contract): New routine.
544         (Inherit_Subprogram_Contract): Inherit only if the source
545         has a contract.
546         (Install_Generic_Formals): New routine.
547         (Original_Aspect_Name): Removed.
548         (Original_Aspect_Pragma_Name): New routine.
549         * sem_util.ads (Check_Result_And_Post_State): Reimplemented.
550         (Corresponding_Spec_Of): New routine.
551         (Get_Ensures_From_CTC_Pragma): Removed.
552         (Get_Requires_From_CTC_Pragma): Removed.
553         (Has_Significant_Contract): New routine.
554         (Install_Generic_Formals): New routine.
555         (Original_Aspect_Name): Removed.
556         (Original_Aspect_Pragma_Name): New routine.
557         * sem_warn.adb Add with and use clauses for Sem_Prag.
558         (Within_Postcondition): Use Test_Case_Arg to extract "Ensures".
560 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
562         * sem_ch8.adb (Available_Subtype): Optimization in
563         Find_Selected_Component: when safe, use existing subtype of
564         array component, possibly discriminant-dependent, rather than
565         creating new subtype declaration for it. In this fashion different
566         occurrences of the component have the same subtype, rather than
567         just equivalent ones. Simplifies value tracing in GNATProve.
569 2015-03-01  Arnaud Charlet  <charlet@adacore.com>
571         PR ada/65259
573         * doc/gnat_ugn/gnat_project_manager.rst,
574         doc/gnat_ugn/platform_specific_information.rst: Remove reference to
575         image, too troublesome with texi format.
576         * gnat_ugn.texi: Regenerate.
578 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
580         PR libgomp/64625
581         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8): Remove.
582         (DEF_FUNCTION_TYPE_VAR_12): Likewise.
583         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
585 2015-02-23  Thomas Schwinge  <thomas@codesourcery.com>
587         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8): Fix number of
588         arguments parameter.
589         (DEF_FUNCTION_TYPE_VAR_12): Likewise.
591 2015-02-22  Arnaud Charlet  <charlet@adacore.com>
593         * doc/Makefile: postprocess texinfo files to update @dircategory
594         and update texi files under gcc/ada.
595         * gnat_ugn.texi, gnat_rm.texi: Regenerated.
597 2015-02-22  Arnaud Charlet  <charlet@adacore.com>
599         * doc/gnat_ugn/project-manager-figure.png,
600         doc/gnat_ugn/rtlibrary-structure.png: New.
602 2015-02-22  Tom de Vries  <tom@codesourcery.com>
604         PR ada/65100
605         * gnat-style.texi (@subsection Loop Statements): Replace @noindent by
606         @item, and fix warning '@itemize has text but no @item'.
608 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
610         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Pragma
611         legally applies to an abstract subprogram declaration.
612         * freeze.adb: Minor comment addition.
614 2015-02-20  Robert Dewar  <dewar@adacore.com>
616         * errout.ads: Document replacement of Name_uPre/Post/Type_Invariant.
617         * erroutc.adb (Set_Msg_Str): Replace _xxx.
618         (Pre/Post/Type_Invariant) by xxx'Class.
619         * erroutc.ads (Set_Msg_Str): Replace _xxx.
620         (Pre/Post/Type_Invariant) by xxx'Class.
621         * sem_prag.adb (Fix_Error): Remove special casing of
622         Name_uType_Invariant.
623         (Analyze_Pre_Post_Condition_In_Decl_Part): Remove special casing of
624         Name_uPre and Name_uPost in aspect case (done in Errout now).
626 2015-02-20  Robert Dewar  <dewar@adacore.com>
628         * g-alveop.adb: Minor style fixes.
630 2015-02-20  Robert Dewar  <dewar@adacore.com>
632         * freeze.adb (Warn_Overlay): Guard against blow up with address
633         clause.
635 2015-02-20  Bob Duff  <duff@adacore.com>
637         * exp_attr.adb (May_Be_External_Call): Remove this. There is no need
638         for the compiler to guess whether the call is internal or external --
639         it is always external.
640         (Expand_Access_To_Protected_Op): For P'Access, where P
641         is a protected subprogram, always create a pointer to the
642         External_Subprogram.
644 2015-02-20  Robert Dewar  <dewar@adacore.com>
646         * a-dispat.adb, a-stcoed.ads: Minor reformatting.
648 2015-02-20  Robert Dewar  <dewar@adacore.com>
650         * sem_ch13.adb (Build_Discrete_Static_Predicate): Allow static
651         predicate for non-static subtype.
652         (Build_Predicate_Functions): Do not assume subtype associated with a
653         static predicate must be static.
655 2015-02-20  Robert Dewar  <dewar@adacore.com>
657         * errout.adb (Set_Msg_Node): Better handling of internal names
658         (Set_Msg_Node): Kill message when we cannot eliminate internal name.
659         * errout.ads: Document additional case of message deletion.
660         * namet.adb (Is_Internal_Name): Refined to consider wide
661         strings in brackets notation and character literals not to be
662         internal names.
663         * sem_ch8.adb (Find_Selected_Component): Give additional error
664         when selector name is a subprogram whose first parameter has
665         the same type as the prefix, but that type is untagged.
667 2015-02-20  Robert Dewar  <dewar@adacore.com>
669         * g-allein.ads, g-alveop.adb, g-alveop.ads, opt.ads: Minor reformatting
671 2015-02-20  Tristan Gingold  <gingold@adacore.com>
673         * opt.ads (GNAT_Mode_Config): New variable.
674         * opt.adb (Set_Opt_Config_Switches): Consider GNAT_Mode_Config
675         to set Assertions_Enabled.
676         * switch-c.adb (Scan_Front_End_Switches): Set GNAT_Mode_Config
677         for -gnatg.
679 2015-02-20  Robert Dewar  <dewar@adacore.com>
681         * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add an additional
682         comment regarding the handling of unterminated fixed-point
683         constants.
684         * s-valuns.ads (Scan_Raw_Unsigned): Add comments
685         corresponding to those previously added for
686         System.Val_LLU.Scan_Raw_Long_Long_Unsigned.
688 2015-02-20  Olivier Hainque  <hainque@adacore.com>
690         * g-allein.ads, g-alveop.ads, g-alveop.adb: Code clean ups.
692 2015-02-20  Robert Dewar  <dewar@adacore.com>
694         * sem_prag.adb: Minor comment clarification.
696 2015-02-20  Olivier Hainque  <hainque@adacore.com>
698         * g-allein.ads (vec_ctf, vec_vcsfx, vec_vcfux): Remove.
699         * g-alleve.ads, g-alleva.adb (vcfux): Likewise.
700         * g-alveop.ads (vec_vcfsx, vec_vcfux): Just rename the ll versions.
701         (vec_ctf): Now renamings as well.
703 2015-02-20  Robert Dewar  <dewar@adacore.com>
705         * switch-c.adb, bindgen.adb: Minor reformatting.
707 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
709         * sem_prag.adb (Analyze_Pragma, case Type_Invariant):
710         Invariant'class is allowed on an abstract type.
712 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
714         * sem_ch3.adb (Access_Definition): If the access definition is
715         for a protected component and defines an access to protected
716         subprogram, do not create an itype reference for it because a
717         full type declaration will be built in order to generate the
718         proper equivalent type.
719         (Analyze_Subtype_Declaration): Add information of incomplete
720         subtypes, for Ada 2012 extended uses of incomplete types.
722 2015-02-20  Gary Dismukes  <dismukes@adacore.com>
724         * sem_res.adb: Minor reformatting.
726 2015-02-20  Vincent Celier  <celier@adacore.com>
728         * switch-c.adb (Scan_Front_End_Switches): When comparing runtime
729         path name for several switches --RTS, use the normalized path
730         names.
732 2015-02-20  Vincent Celier  <celier@adacore.com>
734         * bindgen.adb: Minor reformatting and code reorganization.
736 2015-02-20  Jose Ruiz  <ruiz@adacore.com>
738         * a-stcoed.ads: Add spec for this package (Unimplemented_Unit).
739         * impunit.adb (Non_Imp_File_Names_12): Mark unit a-stcoed.ads as
740         defined by Ada 2012.
742 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
744         * sysdep.c, expect.c, s-oscons-tmplt.c, gsocket.h, adaint.c: Remove
745         obsolete references to RTX, nucleus, VMS.
747 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
749         * sem_prag.adb (Fix_Error): For an illegal Type_Invariant'Class
750         aspect, use name that mentions Class explicitly, rather than
751         compiler-internal name.
753 2015-02-20  Robert Dewar  <dewar@adacore.com>
755         * debug.adb: Add documentation for -gnatd.2 (allow statements
756         in decl sequences).
757         * par-ch3.adb (P_Identifier_Declarations): Handle
758         statement appearing where declaration expected more cleanly.
759         (Statement_When_Declaration_Expected): Implement debug flag
760         -gnatd.2.
762 2015-02-20  Jose Ruiz  <ruiz@adacore.com>
764         * a-dinopr.ads: Add spec for this package (Unimplemented_Unit).
765         * a-dispat.ads (Yield): Include procedure added in Ada 2012.
766         * a-dispat.adb (Yield): Implement procedure added in Ada 2012.
767         * impunit.adb (Non_Imp_File_Names_05): Mark unit a-dinopr.ads as
768         defined by Ada 2005.
769         * snames.ads-tmpl (Name_Non_Preemptive_FIFO_Within_Priorities):
770         This is the correct name for the dispatching policy (FIFO was
771         missing).
773 2015-02-20  Javier Miranda  <miranda@adacore.com>
775         * sem_res.adb (Resolve_Type_Conversion): If the type of the
776         operand is the limited-view of a class-wide type then recover
777         the class-wide type of the non-limited view.
779 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
781         * gcc-interface/Makefile.in: Remove references to nucleus.
782         * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Procedure): Set
783         extern_flag to true for Inline_Always subprograms with
784         Intrinsic convention.
786 2015-02-20  Yannick Moy  <moy@adacore.com>
788         * sem_prag.ads: Minor typo in comment.
790 2015-02-20  Pascal Obry  <obry@adacore.com>
792         * s-osprim-mingw.adb: Fix Get_Base_Time parameter mode.
794 2015-02-20  Vincent Celier  <celier@adacore.com>
796         * makeutl.adb (Get_Directories.Add_Dir): Add a directory only
797         if it exists.
799 2015-02-20  Robert Dewar  <dewar@adacore.com>
801         * sem_eval.ads: Minor reformatting.
803 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
805         * freeze.adb (Size_Known): Do not set the packed size for
806         independent type or component.
807         (Freeze_Array_Type): Check for Independent[_Components] with packing
808         or explicit component size clause.
809         * gnat1drv.adb (Post_Compilation_Validation_Checks): Do the validation
810         of independence pragmas only for non-GCC back-ends.
811         * sem_ch13.adb (Initialize): Likewise for the initialization.
812         * sem_prag.adb (Record_Independence_Check): New procedure to record an
813         independence check in the table.
814         (Analyze_Pragma): Use it throughout instead of doing it manually.
815         * gcc-interface/decl.c (gnat_to_gnu_field): Add support for
816         independent type or component.
818 2015-02-20  Thomas Quinot  <quinot@adacore.com>
820         * adaint.c (__gnat_readdir): For Solaris, use 64 bit variants of
821         struct direct and readdir. This is required for NFS filesystems
822         mounted from servers that use 64-bit cookies.
824 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
826         * sem_ch12.adb (Analyze_Subprogram_Instantiaion): New subprogram
827         Build_Subprogram_Renaming, to create renaming of subprogram
828         instance in the the declaration of the wrapper package rather
829         than in its body, so that it is available for analysis of aspects
830         propagated from generic to instantiation.
831         (Check_Mismatch): An actual for a formal package that is an
832         incomplete type matches a formal type that is incomplete.
833         (Instantiate_Package_Body): Move code that builds subprogram
834         renaming to Analyze_Subprogram_Instantiation.
835         (Instantiate_Type): The generated subtype is a limited view if
836         the actual is a limited view.
837         (Load_Parent_Of_Generic): Retrieve instance declaration from
838         its new position within wrapper package.
840 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
842         * s-parame-vxworks.adb, s-os_lib.ads: Update comments.
844 2015-02-20  Robert Dewar  <dewar@adacore.com>
846         * s-osinte-vxworks.ads (To_Timespec): Add comment about the
847         issue of negative arguments.
849 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
851         * gnat1drv.adb: Minor consistency fix.
853 2015-02-20  Pascal Obry  <obry@adacore.com>
855         * s-osprim-mingw.adb (Get_Base_Time): Properly release lock in all
856         paths.
858 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
860         * inline.adb (Expand_Inlined_Call): Skip again calls to subprogram
861         renamings.
862         * exp_ch6.adb (Expand_Call): Use back-end inlining
863         instead of expansion for simple subprogram renamings.
865 2015-02-20  Robert Dewar  <dewar@adacore.com>
867         * exp_util.adb: Minor reformatting.
869 2015-02-20  Vincent Celier  <celier@adacore.com>
871         * switch-c.adb (Scan_Front_End_Switches): Do not fail when --RTS=
872         is specified several times with different values that indicates
873         the same runtime directory.
875 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
877         * sem_attr.adb (Check_Not_Incomplete_Type): Clean up code to
878         handle properly illegal uses of attributes on prefixes on an
879         incomplete type, both when the type of the prefix is locally
880         incomplete, and when it is a limited view of a type whose
881         non-limited view is not available.
882         (Analyze_Attribute): Add calls to Check_Not_Incomplete_Type for
883         'Address and others.
885 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
887         * exp_ch6.adb: Fix minor typo in comment.
889 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
891         * sinfo.ads: Add comment.
893 2015-02-20  Olivier Hainque  <hainque@adacore.com>
895         * opt.ads: Replace Opt.Suppress_All_Inlining by two separate
896         flags controlling the actual FE inlining out of pragma Inline
897         and pragma Inline_Always.
898         * adabkend.adb (Scan_Compiler_Arguments): Set both flags to True
899         on -fno-inline, which disables all inlining in compilers with
900         an Ada back-end and without back-end inlining support.
901         * back_end.adb (Scan_Back_End_Switches): Set the Inline related
902         flag to True on -fno-inline and leave Inline_Always alone for
903         gcc back-ends.
904         * back_end.ads (Scan_Compiler_Arguments): Adjust spec wrt the
905         names of the Opt flags it sets.
906         * gnat1drv.adb (Adjust_Global_Switches): Remove test on
907         Opt.Suppress_All_Inlining in the Back_End_Inlining computation.
908         * sem_prag.adb (Make_Inline): Remove early return conditioned
909         on Opt.Suppress_All_Inlining.
910         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use the flags to
911         disable the calls to Build_Body_To_Inline otherwise triggered
912         by pragma Inline or Inline_Always. This will prevent actual
913         front-end inlining of the subprogram on calls.
915 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
917         * exp_ch3.adb (Default_Initialize_Object): Call Add_Inlined_Body on the
918         Abort_Undefer_Direct function.
919         * exp_ch5.adb (Expand_N_Assignment_Statement): Likewise.
920         * exp_intr.adb (Expand_Unc_Deallocation): Likewise.
921         * exp_prag.adb (Expand_Pragma_Abort_Defer): Likewise.
922         * exp_ch4.adb (Expand_N_Selected_Component): Adjust call to
923         Add_Inlined_Body.
924         * exp_ch6.adb (Expand_Call): Adjust calls to Add_Inlined_Body.
925          Remove call to Register_Backend_Call and move code resetting
926         Needs_Debug_Info on inlined subprograms to...
927         * inline.ads (Add_Inlined_Body): Add N parameter.
928         (Register_Backend_Call): Delete.
929         * inline.adb (Add_Inlined_Body): ...here and simplify.
930          Register the call with Backend_Calls directly.
931         (Register_Backend_Call): Delete.
932         * s-stalib.ads (Abort_Undefer_Direct): Restore pragma Inline.
934 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
936         * s-stalib.ads: Fix typo.
938 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
940         * exp_ch3.adb (Default_Initialize_Object): If the object has a
941         delayed freeze, the actions associated with default initialization
942         must be part of the freeze actions, rather that being inserted
943         directly after the object declaration.
945 2015-02-20  Robert Dewar  <dewar@adacore.com>
947         * lib-load.adb: Minor comment update.
949 2015-02-20  Vincent Celier  <celier@adacore.com>
951         * prj-proc.adb (Process_Case_Construction): When there are
952         incomplete withed projects and the case variable is unknown,
953         skip the case construction.
955 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
957         * exp_ch6.adb (Expand_Actuals): Add caller-side invariant checks
958         when an actual is a view conversion, either because the call is
959         to an inherited operation, or because the actual is an explicit
960         type conversion to an ancestor type.  Fixes ACATS 4.0D: C732001
962 2015-02-20  Robert Dewar  <dewar@adacore.com>
964         * einfo.ads: Minor comment updates Fix missing pragma Inline
965         for Set_Partial_View_Has_Unknown_Discr.
966         * einfo.adb (Write_Entity_Flags): Add missing entry for
967         Partial_View_Has_Unknown_Discr.
968         * sem_ch3.adb: Minor reformatting.
970 2015-02-20  Vincent Celier  <celier@adacore.com>
972         * opt.ads: Minor cleanup: remove mention of gprmake.
973         * s-stalib.ads (Abort_Undefer_Direct): Do not inline.
974         * s-tataat.adb: Do not call System.Tasking.Self but directly
975         System.Task_Primitives.Operations.Self.
977 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
979         * gnat_rm.texi, gnat_ugn.texi: Now automatically generated from
980         sphinx in the doc directory.
981         * doc: New directory containing sphinx versions of gnat_rm and gnat_ugn
983 2015-02-20  Robert Dewar  <dewar@adacore.com>
985         * sem_res.adb: Minor reformatting.
986         * exp_ch9.adb (Build_Protected_Spec): Copy Aliased setting when
987         building spec.
988         * sem_ch13.adb (Analyze_Aspect_Specifications): Exclude Boolean
989         aspects from circuitry setting delay required to false if the
990         argument is an integer literal.
992 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
994         * einfo.ads. einfo.adb (Partial_View_Has_Unknown_Discr):  New flag
995         on type entities, to enforce AI12-0133: default initialization
996         of types whose partial view has unknown discriminants does not
997         get an invariant check, because clients of the unit can never
998         declare objects of such types.
999         * sem_ch3.adb (Find_Type_Name); Set new flag
1000         Partial_View_Has_Unknown_Discr when needed.
1001         * exp_ch3.adb (Expand_N_Object_Declaration): Use flag to suppress
1002         generation of invariant call on default-initialized object.
1004 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
1006         * gcc-interface/decl.c (gnat_to_gnu_param): Do not strip the padding
1007         if the parameter either is passed by reference or if the alignment
1008         would be lowered.
1010 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
1012         * gcc-interface/decl.c (is_cplusplus_method): Use Is_Primitive flag to
1013         detect primitive operations of tagged and untagged types.
1015 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
1017         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias
1018         sets in presence of derivation for subprogram types.
1020 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
1022         * gcc-interface/utils.c (begin_subprog_body): Assert that the body is
1023         present in the same context as the declaration.
1025 2015-02-07  Jakub Jelinek  <jakub@redhat.com>
1027         PR middle-end/64340
1028         * gcc-interface/trans.c (gigi): Recreate optimization_default_node
1029         and optimization_current_node after tweaking global_options.
1031 2015-02-05  Robert Dewar  <dewar@adacore.com>
1033         * prj-proc.adb, sem_aux.adb, exp_ch9.adb, errout.adb, prj-dect.adb,
1034         prj-nmsc.adb: Minor reformatting.
1036 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
1038         * sem_type.adb (Covers): In ASIS_Mode the Corresponding_Record
1039         of a protected type may not be available, so to check conformance
1040         with an interface type, examine the interface list in the type
1041         declaration directly.
1042         (Write_Overloads): Improve information for indirect calls,
1043         for debugger use.
1045 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
1047         * exp_ch3.adb (Make_Tag_Assignment): Do not perform this
1048         expansion activity in ASIS mode.
1050 2015-02-05  Javier Miranda  <miranda@adacore.com>
1052         * errout.adb (Error_Msg_PT): Add missing error.
1053         * sem_ch6.adb (Check_Synchronized_Overriding): Check the missing
1054         RM rule.  Code cleanup.
1055         * exp_ch9.adb (Build_Wrapper_Spec): Propagate "constant" in
1056         anonymous access types.  Found working on the tests. Code cleanup.
1058 2015-02-05  Vincent Celier  <celier@adacore.com>
1060         * prj-dect.adb (Parse_Attribute_Declaration): Continue scanning
1061         when there are incomplete withs.
1062         * prj-nmsc.adb (Process_Naming): Do not try to get the value
1063         of an element when it is nil.
1064         (Check_Naming): Do not check a nil suffix for illegality
1065         * prj-proc.adb (Expression): Do not process an empty term.
1066         * prj-strt.adb (Attribute_Reference): If attribute cannot be
1067         found, parse a possible index to avoid cascading errors.
1069 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
1071         * sem_aux.adb (Is_Derived_Type): A subprogram_type generated
1072         for an access_to_subprogram declaration is not a derived type.
1074 2015-02-05  Robert Dewar  <dewar@adacore.com>
1076         * errout.adb (Error_Msg_Internal): For non-serious error set
1077         Fatal_Error to Ignored.
1078         * lib-load.adb (Load_Unit): Minor comment updates.
1079         * sem_ch10.adb (Analyze_With_Clause): Propagate Fatal_Error
1080         setting from with'ed unit to with'ing unit.
1081         * sem_prag.adb (Analyze_Pragma, case Warnings): Document handling
1082         of ambiguity.
1084 2015-02-05  Yannick Moy  <moy@adacore.com>
1086         * sem_prag.adb, par-prag.adb: Minor code clean up.
1088 2015-02-05  Yannick Moy  <moy@adacore.com>
1090         * par-prag.adb (Pragma_Warnings): Update for extended form
1091         of pragma Warnings. The "one" argument case may now have 2 or
1092         3 arguments.
1093         * sem_prag.adb (Analyze_Pragma/Pragma_Warnings): Update for
1094         extended form of pragma Warnings. Pragma with tool name is either
1095         rewritten as null or as an equivalent form without tool name,
1096         before reanalysis.
1097         * snames.ads-tmpl (Name_Gnatprove): New name.
1099 2015-02-05  Robert Dewar  <dewar@adacore.com>
1101         * sem_ch13.adb (Add_Invariants): Don't assume invariant is
1102         standard Boolean.
1103         * sem_prag.adb (Analyze_Pragma, case Check): Don't assume
1104         condition is standard Boolean, it can be non-standard derived
1105         Boolean.
1107 2015-02-05  Robert Dewar  <dewar@adacore.com>
1109         * checks.adb (Enable_Range_Check): Disconnect attempted
1110         optimization for the case of range check for subscript of
1111         unconstrained array.
1113 2015-02-05  Robert Dewar  <dewar@adacore.com>
1115         * par-ch13.adb (With_Present): New function
1116         (Aspect_Specifications_Present): Handle WHEN in place of WITH
1117         (Get_Aspect_Specifications): Comment update.
1118         * par.adb: Comment updates.
1120 2015-02-05  Robert Dewar  <dewar@adacore.com>
1122         * errout.adb (Handle_Serious_Error): New setting of Fatal_Error.
1123         * frontend.adb (Frontend): New setting of Fatal_Error.
1124         * lib-load.adb (Create_Dummy_Package_Unit): New setting of
1125         Fatal_Error.
1126         (Load_Main_Source): New setting of Fatal_Error
1127         (Load_Unit): New setting of Fatal_Error.
1128         * lib-writ.adb (Add_Preprocessing_Dependency): New setting of
1129         Fatal_Error.
1130         (Ensure_System_Dependency): New setting of Fatal_Error.
1131         * lib.adb (Fatal_Error): New setting of Fatal_Error
1132         (Set_Fatal_Error): New setting of Fatal_Error.
1133         * lib.ads: New definition of Fatal_Error and associated routines.
1134         * par-ch10.adb (P_Compilation_Unit): New setting of Fatal_Error.
1135         * par-load.adb (Load): New setting of Fatal_Error.
1136         * rtsfind.adb (Load_RTU): New setting of Fatal_Error.
1137         * sem_ch10.adb (Analyze_Compilation_Unit): New setting of
1138         Fatal_Error.
1139         (Optional_Subunit): New setting of Fatal_Error.
1140         (Analyze_Proper_Body): New setting of Fatal_Error.
1141         (Load_Needed_Body): New setting of Fatal_Error.
1143 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
1145         * sem_res.adb (Resolve_Call): If the function being called has
1146         out parameters do not check for language version if the function
1147         comes from a predefined unit, as those are always compiled in
1148         Ada 2012 mode.
1150 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
1152         * sem_ch3.adb (Process_Full_View): Verify that the full view
1153         of a type extension must carry an explicit limited keyword if
1154         the partial view does (RM 7.3 (10.1)).
1156 2015-02-05  Robert Dewar  <dewar@adacore.com>
1158         * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads,
1159         sem_warn.ads: Minor reformatting.
1160         * exp_ch13.adb (Expand_N_Freeze_Entity): Add guard for aspect
1161         deleted by -gnatI.
1162         * sem_prag.adb (Analyze_Pragma, case Type_Invariant): Give
1163         error for abstract type.
1165 2015-02-05  Yannick Moy  <moy@adacore.com>
1167         * opt.ads (Warn_On_Suspicious_Contract): Update comment
1168         describing use.
1169         * sem_attr.adb (Analyze_Attribute/Attribute_Update): Warn on
1170         suspicious uses of 'Update.
1171         * sem_warn.adb, sem_warn.ads (Warn_On_Suspicious_Update): New
1172         function issues warning on suspicious uses of 'Update.
1173         * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads: Mark
1174         package spec and body as SPARK_Mode Off.
1176 2015-02-05  Robert Dewar  <dewar@adacore.com>
1178         * sem_prag.adb (Set_Elab_Unit_Name): New name for Set_Unit_Name
1179         (Analyze_Pragma): Change Set_Unit_Name to Set_Elab_Unit_Name
1180         (Set_Elab_Unit_Name): Generate reference for Elaborate[_All]
1181         * sem_warn.adb (Warn_On_Unreferenced_Entity): Suppress warning
1182         for exported entity.
1184 2015-02-05  Hristian Kirtchev  <kirtchev@adacore.com>
1186         * sem_prag.adb (Check_Pragma_Conformance): Add
1187         local variable Arg. Ensure that all errors are associated with
1188         the pragma if it appears without an argument. Add comments on
1189         various cases.
1191 2015-02-05  Robert Dewar  <dewar@adacore.com>
1193         * lib-xref.adb: Minor reformatting.
1195 2015-02-05  Tristan Gingold  <gingold@adacore.com>
1197         PR ada/64349da/64349
1198         * env.c: Fix thinko: handle Darwin case before default one.
1200 2015-01-30  Robert Dewar  <dewar@adacore.com>
1202         * a-assert.adb: Minor reformatting.
1203         * sem_ch13.adb: Minor comment clarification.
1204         * types.ads: Minor comment update.
1205         * sem_eval.adb (Real_Or_String_Static_Predicate_Matches): Avoid blow up
1206         when we have a predicate that is nothing but an inherited dynamic
1207         predicate.
1209 2015-01-30  Jerome Guitton  <guitton@adacore.com>
1211         * gcc-interface/Makefile.in (x86-vxworks): Update GCC_SPEC_FILES to
1212         include cert link spec.
1214 2015-01-30  Robert Dewar  <dewar@adacore.com>
1216         * einfo.ads: Minor comment fix.
1217         * freeze.adb (Freeze_Profile): Add test for suspicious import
1218         in pure unit.
1219         * sem_prag.adb (Process_Import_Or_Interface): Test for suspicious
1220         use in Pure unit is now moved to Freeze (to properly catch
1221         Pure_Function exemption).
1223 2015-01-30  Bob Duff  <duff@adacore.com>
1225         * sem_res.ads: Minor comment fix.
1226         * sem_type.adb: sem_type.adb (Remove_Conversions): Need to
1227         check both operands of an operator.
1229 2015-01-30  Yannick Moy  <moy@adacore.com>
1231         * a-assert.ads, a-assert.adb: Mark package spec in SPARK. Set assertion
1232         policy for Pre to Ignore.
1233         (Assert): Add precondition.
1235 2015-01-30  Robert Dewar  <dewar@adacore.com>
1237         * sem_prag.adb (Process_Import_Or_Interface): Warn if used in
1238         Pure unit.
1239         * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Clarify
1240         documentation for some special cases of invalid attempts at
1241         based integers.
1243 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
1245         * errout.ads: Minor reformatting.
1247 2015-01-30  Yannick Moy  <moy@adacore.com>
1249         * inline.adb (Process_Formals): Use the sloc of
1250         the inlined node instead of the sloc of the actual parameter,
1251         when replacing formal parameters by the actual one.
1253 2015-01-30  Arnaud Charlet  <charlet@adacore.com>
1255         * g-expect.adb (Get_Command_Output): Use infinite timeout when
1256         calling Expect.
1258 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
1260         * sem_ch12.adb (Analyze_Associations): If an in-parameter is
1261         defaulted in an instantiation, add an entry in the list of actuals
1262         to indicate the default value of the formal (as is already done
1263         for defaulted subprograms).
1265 2015-01-30  Javier Miranda  <miranda@adacore.com>
1267         * errout.adb (Error_Msg_PT): Minor error phrasing update.
1269 2015-01-30  Robert Dewar  <dewar@adacore.com>
1271         * sem_warn.adb (Warn_On_Known_Condition): Improve error message
1272         for object case.
1274 2015-01-30  Pierre-Marie de Rodat  <derodat@adacore.com>
1276         * exp_dbug.adb (Get_Encoded_Name): When
1277         -fgnat-encodings=minimal, do not generate names for biased types.
1279 2015-01-30  Tristan Gingold  <gingold@adacore.com>
1281         PR ada/64349
1282         * env.c: Move vxworks and darwin includes out of #ifdef IN_RTS.
1284 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
1286         * freeze.adb: Minor reformatting.
1288 2015-01-30  Javier Miranda  <miranda@adacore.com>
1290         * errout.ads (Error_Msg_PT): Replace Node_Id by Entity_Id and
1291         improve its documentation.
1292         * errout.adb (Error_Msg_PT): Improve the error message.
1293         * sem_ch6.adb (Check_Conformance): Update call to Error_Msg_PT.
1294         (Check_Synchronized_Overriding): Update call to Error_Msg_PT.
1295         * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup.
1297 2015-01-30  Robert Dewar  <dewar@adacore.com>
1299         * sem_warn.adb (Warn_On_Known_Condition): Do special casing of
1300         message for False case.
1302 2015-01-30  Doug Rupp  <rupp@adacore.com>
1304         * s-vxwext-kernel.ads (Task_Cont): Remove imported subprogram body.
1305         * s-vxwext-kernel.adb (Task_Cont): New subpprogram body specialized for
1306         kernel.
1308 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
1310         * sem_attr.adb (Declared_Within_Generic_Unit):
1311         New function to test whether an entity is declared within the
1312         declarative region of a given generic unit.
1313         (Resolve_Attribute): For checking legality of subprogram'Access within
1314         a generic unit, call new Boolean function Declared_Within_Generic_Unit
1315         instead of simply comparing the results of Enclosing_Generic_Unit on
1316         the prefix and access type.  Correct minor comment typos.
1318 2015-01-30  Robert Dewar  <dewar@adacore.com>
1320         * freeze.adb, exp_util.ads: Update comment.
1321         * exp_util.adb, exp_ch3.adb: Minor code reorganization and reformatting.
1322         * sem_util.adb: Minor: fix typo.
1324 2015-01-30  Hristian Kirtchev  <kirtchev@adacore.com>
1326         * sem_attr.adb (Analyze_Attribute): Ensure that
1327         the check concerning Refined_Post takes precedence over the
1328         other cases.
1330 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
1332         * sem_prag.adb: Minor typo fixes and reformatting.
1334 2015-01-30  Yannick Moy  <moy@adacore.com>
1336         * sem_attr.adb: Code clean up.
1338 2015-01-30  Robert Dewar  <dewar@adacore.com>
1340         * ali.adb (Scan_ALI): Set Serious_Errors flag in Unit record.
1341         * ali.ads (Unit_Record): Add new field Serious_Errors.
1342         * lib-writ.adb (Write_Unit_Information): Set SE (serious errors)
1343         attribute in U line.
1344         * lib-writ.ads: New attribute SE (serious erors) in unit line.
1346 2015-01-30  Hristian Kirtchev  <kirtchev@adacore.com>
1348         * einfo.adb Update the usage of attributes Entry_Bodies_Array,
1349         Lit_Indexes, Scale_Value, Storage_Size_Variable,
1350         String_Literal_Low_Bound along associated routines and
1351         Write_FieldX_Name.
1352         (Pending_Access_Types): New routine.
1353         (Set_Pending_Access_Types): New routine.
1354         (Write_Field15_Name): Add an entry for Pending_Access_Types.
1355         * einfo.ads Add new attribute Pending_Access_Types along
1356         with usage in nodes.  Update the usage of attributes
1357         Entry_Bodies_Array, Lit_Indexes, Scale_Value,
1358         Storage_Size_Variable, String_Literal_Low_Bound.
1359         (Pending_Access_Types): New routine along with pragma Inline.
1360         (Set_Pending_Access_Types): New routine along with pragma Inline.
1361         * exp_ch3.adb (Expand_Freeze_Array_Type): Add new local variable
1362         Ins_Node. Determine the insertion node for anonynous access type
1363         that acts as a component type of an array. Update the call to
1364         Build_Finalization_Master.
1365         (Expand_Freeze_Record_Type): Update
1366         the calls to Build_Finalization_Master.
1367         (Freeze_Type): Remove
1368         local variable RACW_Seen. Factor out the code that deals with
1369         remote access-to-class-wide types. Create a finalization master
1370         when the designated type contains a private component. Fully
1371         initialize all pending access types.
1372         (Process_RACW_Types): New routine.
1373         (Process_Pending_Access_Types): New routine.
1374         * exp_ch4.adb (Expand_Allocator_Expression): Allocation no longer
1375         needs to set primitive Finalize_Address.
1376         (Expand_N_Allocator): Allocation no longer sets primitive
1377         Finalize_Address.
1378         * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
1379         Update the call to Build_Finalization_Master.
1380         (Make_Build_In_Place_Call_In_Allocator): Allocation no longer
1381         needs to set primitive Finalize_Address.
1382         * exp_ch7.adb (Add_Pending_Access_Type): New routine.
1383         (Build_Finalization_Master): New parameter profile. Associate
1384         primitive Finalize_Address with the finalization master if the
1385         designated type has been frozen, otherwise treat the access
1386         type as pending. Simplify the insertion of the master and
1387         related initialization code.
1388         (Make_Finalize_Address_Body): Allow Finalize_Address for class-wide
1389         abstract types.
1390         (Make_Set_Finalize_Address_Call): Remove forlam parameter Typ.
1391         Simplify the implementation.
1392         * exp_ch7.ads (Build_Finalization_Master): New parameter profile
1393         along with comment on usage.
1394         (Make_Set_Finalize_Address_Call): Remove formal parameter Typ. Update
1395         the comment on usage.
1396         * exp_util.adb (Build_Allocate_Deallocate_Proc): Use routine
1397         Finalize_Address to retrieve the primitive.
1398         (Finalize_Address): New routine.
1399         (Find_Finalize_Address): Removed.
1400         * exp_util.ads (Finalize_Address): New routine.
1401         * freeze.adb (Freeze_All): Remove the generation of finalization
1402         masters.
1403         * sem_ch3.adb (Analyze_Full_Type_Declaration): Propagate any
1404         pending access types from the partial to the full view.
1406 2015-01-30  Robert Dewar  <dewar@adacore.com>
1408         * sem_disp.adb: Minor reformatting.
1409         * sem_disp.ads: Documentation update.
1411 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
1413         * sem_disp.adb (Is_Dynamically_Tagged): when applied to an entity
1414         or a function call, return True if type is class-wide.
1415         * sem_res.adb (Resolve_Case_Expression, Resolve_If_Expression);
1416         Apply RM 4.5.7 (17/3): all or none of the dependent expression
1417         of a conditional expression must be dynamically tagged.
1419 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
1421         * sem_ch6.adb (Analyze_Function_Return): In an extended return
1422         statement, apply accessibility check to result object when there
1423         is no initializing expression (Ada 2012 RM 6.5 (5.4/3))
1425 2015-01-30  Robert Dewar  <dewar@adacore.com>
1427         * sem_ch4.adb (Analyze_If_Expression): Allow for non-standard
1428         Boolean for case where ELSE is omitted.
1429         * sem_res.adb: Minor reformatting.
1431 2015-01-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1433         Fix build under cygwin/64.
1434         * adaint.h: Add check for __CYGWIN__.
1435         * mingw32.h: Prevent windows.h from including x86intrin.h in GCC.
1437 2015-01-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1439         PR ada/64640
1440         * adaint.c: Handle __CYGWIN__ like __MINGW32__ here.
1441         * mingw32.h: Don't include <tchar.h> under cygwin.
1442         (_O_U8TEXT, _O_U16TEXT, _O_WTEXT): Set to _O_TEXT if not yet defined.
1444 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
1446         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8)
1447         (DEF_FUNCTION_TYPE_VAR_12): New macros.
1449 2015-01-09  Michael Collison  <michael.collison@linaro.org>
1451         * gcc-interface/cuintp.c: Include hash-set.h, machmode.h,
1452         vec.h, double-int.h, input.h, alias.h, symtab.h,
1453         fold-const.h, wide-int.h, and inchash.h due to
1454         flattening of tree.h.
1455         * gcc-interface/decl.c: Ditto.
1456         * gcc-interface/misc.c: Ditto.
1457         * gcc-interface/targtyps.c: Include hash-set.h, machmode.h,
1458         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h,
1459         fold-const.h, wide-int.h, and inchash.h due to
1460         flattening of tree.h.
1461         * gcc-interface/trans.c: Include hash-set.h, machmode.h,
1462         vec.h, double-int.h, input.h, alias.h, symtab.h, real.h,
1463         fold-const.h, wide-int.h, inchash.h due to
1464         flattening of tree.h.
1465         * gcc-interface/utils.c: Include hash-set.h, machmode.h,
1466         vec.h, double-int.h, input.h, alias.h, symtab.h,
1467         fold-const.h, wide-int.h, and inchash.h due to
1468         flattening of tree.h.
1469         * gcc-interface/utils2.c: Ditto.
1471 2015-01-07  Robert Dewar  <dewar@adacore.com>
1473         * sem_warn.adb (Check_One_Unit): Don't give unused entities
1474         warning for a package which is used as a generic parameter.
1476 2015-01-07  Bob Duff  <duff@adacore.com>
1478         * usage.adb (Usage): Correct documentation of
1479         -gnatw.f switches.
1481 2015-01-07  Robert Dewar  <dewar@adacore.com>
1483         * s-fileio.adb: Minor reformatting.
1485 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1487         * sem_ch12.adb (Instantiate_Object): If formal is an anonymous
1488         access to subprogram, replace its formals with new entities when
1489         building the object declaration, both if actual is present and
1490         when it is defaulted.
1492 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1494         * sem_ch5.adb (Analyze_Assignment): If left-hand side is a view
1495         conversion and type of expression has invariant, apply invariant
1496         check on expression.
1498 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1500         * sem_ch3.adb (Create_Constrained_Components): A call to
1501         Gather_Components may detect an error if an inherited discriminant
1502         that controls a variant is non-static.
1503         * sem_aggr.adb (Resolve_Record_Aggregate, Step 5): The call to
1504         Gather_Components may report an error if an inherited discriminant
1505         in a variant in non-static.
1506         * sem_util.adb (Gather_Components): If a non-static discriminant
1507         is inherited do not report error here, but let caller handle it.
1508         (Find_Actual): Small optimization.
1510 2015-01-07  Bob Duff  <duff@adacore.com>
1512         * usage.adb (Usage): Document -gnatw.f switch.
1514 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1516         * sem_ch12.adb: Code clean up and minor reformatting.
1518 2015-01-07  Robert Dewar  <dewar@adacore.com>
1520         * exp_ch4.adb (Expand_N_Type_Conversion): Add guard for
1521         Raise_Accessibility_Error call.
1522         * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add documentation
1523         on handling of invalid digits in based constants.
1524         * s-fatgen.ads: Minor reformatting.
1525         * sem_attr.adb (Analyze_Attribute, case Unrestricted_Access):
1526         Avoid noting bogus modification for Valid test.
1527         * snames.ads-tmpl (Name_Attr_Long_Float): New Name.
1528         * einfo.ads: Minor reformatting.
1529         * sem_warn.adb: Minor comment clarification.
1530         * sem_ch12.adb: Minor reformatting.
1532 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1534         * exp_ch5.adb (Expand_Predicated_Loop): Handle properly loops
1535         over static predicates when the loop parameter specification
1536         carries a Reverse indicator.
1538 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1540         * sem_ch12.adb (Instantiate_Object): If formal has a default,
1541         actual is missing and formal has an anonymous access type, copy
1542         access definition in full so that tree for instance is properly
1543         formatted for ASIS use.
1545 2015-01-07  Bob Duff  <duff@adacore.com>
1547         * sem_elab.adb (Check_Internal_Call_Continue): Give a warning
1548         for P'Access, where P is a subprogram in the same package as
1549         the P'Access, and the P'Access is evaluated at elaboration
1550         time, and occurs before the body of P. For example, "X : T :=
1551         P'Access;" would allow a subsequent call to X.all to be an
1552         access-before-elaboration error; hence the warning. This warning
1553         is enabled by the -gnatw.f switch.
1554         * opt.ads (Warn_On_Elab_Access): New flag for warning switch.
1555         * warnsw.adb (Set_Dot_Warning_Switch): Set Warn_On_Elab_Access.
1556         * gnat_ugn.texi: Document the new warning.
1558 2015-01-07  Johannes Kanig  <kanig@adacore.com>
1560         * lib-xref-spark_specific.adb (Collect_SPARK_Xrefs): Skip unneeded
1561         cross ref files.
1563 2015-01-07  Robert Dewar  <dewar@adacore.com>
1565         * s-taprop-linux.adb, clean.adb: Minor reformatting.
1567 2015-01-07  Arnaud Charlet  <charlet@adacore.com>
1569         * s-tassta.adb: Relax some overzealous assertions.
1571 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1573         * sem_ch6.adb (Analyze_Return_Type): An call that returns a limited
1574         view of a type is legal when context is a thunk generated for
1575         operation inherited from an interface.
1576         * exp_ch6.adb (Expand_Simple_Function_Return): If context is
1577         a thunk and return type is an incomplete type do not continue
1578         expansion; thunk will be fully elaborated when generating code.
1580 2015-01-07  Doug Rupp  <rupp@adacore.com>
1582         * s-osinte-mingw.ads (LARGE_INTEGR): New subtype.
1583         (QueryPerformanceFrequency): New imported procedure.
1584         * s-taprop-mingw.adb (RT_Resolution): Call above and return
1585         resolution vice a hardcoded value.
1586         * s-taprop-solaris.adb (RT_Resolution): Call clock_getres and return
1587         resolution vice a hardcoded value.
1588         * s-linux-android.ads (clockid_t): New subtype.
1589         * s-osinte-aix.ads (clock_getres): New imported subprogram.
1590         * s-osinte-android.ads (clock_getres): Likewise.
1591         * s-osinte-freebsd.ads (clock_getres): Likewise.
1592         * s-osinte-solaris-posix.ads (clock_getres): Likewise.
1593         * s-osinte-darwin.ads (clock_getres): New subprogram.
1594         * s-osinte-darwin.adb (clock_getres): New subprogram.
1595         * thread.c (__gnat_clock_get_res) [__APPLE__]: New function.
1596         * s-taprop-posix.adb (RT_Resolution): Call clock_getres to
1597         calculate resolution vice hard coded value.
1599 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1601         * exp_util.adb (Make_CW_Equivalent_Type): If root type is a
1602         limited view, use non-limited view when available to create
1603         equivalent record type.
1605 2015-01-07  Vincent Celier  <celier@adacore.com>
1607         * gnatcmd.adb: Remove command Sync and any data and processing
1608         related to this command. Remove project processing for gnatstack.
1609         * prj-attr.adb: Remove package Synchonize and its attributes.
1611 2015-01-07  Vincent Celier  <celier@adacore.com>
1613         * clean.adb: Minor error message change.
1615 2015-01-07  Tristan Gingold  <gingold@adacore.com>
1617         PR ada/64349  
1618         * env.c (__gnat_environ): Adjust for darwin9/darwin10.
1620 2015-01-07  Javier Miranda  <miranda@adacore.com>
1622         * sem_ch10.adb (Analyze_With_Clause): Compiling under -gnatq
1623         protect the frontend against never ending recursion caused by
1624         circularities in the sources.
1626 2015-01-07  Robert Dewar  <dewar@adacore.com>
1628         * a-reatim.adb, make.adb, exp_pakd.adb, i-cpoint.adb, sem_ch8.adb,
1629         exp_ch3.adb: Minor reformatting.
1631 2015-01-07  Doug Rupp  <rupp@adacore.com>
1633         * s-linux.ads (clockid_t): New subtype.
1634         * s-osinte-linux.ads (pragma Linker Options): Add -lrt.
1635         (clockid_t): New subtype.
1636         (clock_getres): Import system call.
1637         * s-taprop-linux.adb (System.OS_Constants): With and rename.
1638         (RT_Resolution): Remove
1639         hardcoded value and call clock_getres.
1640         * s-linux-sparc.ads, s-linux-mipsel.ads, s-linux-hppa.ads,
1641         s-linux-alpha.ads, s-linux-x32.ads (clockid_t): Add new subtype.
1643 2015-01-07  Robert Dewar  <dewar@adacore.com>
1645         * sem_warn.adb (Check_One_Unit): Guard against context item
1646         with no Entity field.
1648 2015-01-07  Vincent Celier  <celier@adacore.com>
1650         * clean.adb (Gnatclean): Warn that 'gnatclean -P' is obsolete.
1651         * make.adb (Initialize): Warn that 'gnatmake -P' is obsolete.
1653 2015-01-07  Vincent Celier  <celier@adacore.com>
1655         * prj-conf.adb (Parse_Project_And_Apply_Config): Always finalize
1656         errors/warnings in the first parsing of the project files,
1657         to display the warnings when there is no errors.
1659 2015-01-07  Tristan Gingold  <gingold@adacore.com>
1661         * i-cpoint.adb (Copy_Terminated_Array): Nicely handle null target.
1663 2015-01-07  Doug Rupp  <rupp@adacore.com>
1665         * s-taprop-vxworks.adb (Stop_All_Tasks): Pass return
1666         value from Int_Lock as parameter to Int_Unlock.
1667         * s-osinte-vxworks.ads (Int_Unlock): Add parameter.
1668         * s-vxwext.ads (Int_Unlock): Likewise.
1669         * s-vxwext-kernel.adb (intUnlock, Int_Unlock): Likewise.
1670         * s-vxwext-kernel.ads (Int_Unlock): Likewise.
1671         * s-vxwext-rtp.adb (Int_Unlock): Likewise.
1672         * s-vxwext-rtp.ads (Int_Unlock): Likewise.
1674 2015-01-07  Pierre-Marie de Rodat  <derodat@adacore.com>
1676         * exp_pakd.adb: Add a comment in exp_pakd.adb to explain why we
1677         keep ___XP suffixes
1679 2015-01-07  Tristan Gingold  <gingold@adacore.com>
1681         * i-cpoint.adb (Copy_Terminated_Array): Use Copy_Array to
1682         handle overlap.
1684 2015-01-07  Eric Botcazou  <ebotcazou@adacore.com>
1686         * sem_ch3.adb (Analyze_Full_Type_Declaration): Do not
1687         automatically set No_Strict_Aliasing on access types.
1688         * fe.h (No_Strict_Aliasing_CP): Declare.
1689         * gcc-interface/trans.c (gigi): Force flag_strict_aliasing to 0 if
1690         No_Strict_Aliasing_CP is set.
1692 2015-01-07  Johannes Kanig  <kanig@adacore.com>
1694         * sem_ch8.adb (Analyze_Subprogram_Renaming) do
1695         not build function wrapper in gnatprove mode when the package
1696         is externally axiomatized.
1698 2015-01-07  Jose Ruiz  <ruiz@adacore.com>
1700         * a-reatim.adb (Time_Of): Reduce the number of spurious overflows in
1701         intermediate computations when the parameters have different signs.
1703 2015-01-07  Javier Miranda  <miranda@adacore.com>
1705         * exp_ch3.adb (Build_Init_Procedure): For derived types,
1706         improve the code which takes care of identifying and moving to
1707         the beginning of the init-proc the call to the init-proc of the
1708         parent type.
1710 2015-01-07  Olivier Hainque  <hainque@adacore.com>
1712         * gcc-interface/trans.c (gnat_to_gnu, <N_Expression_With_Action>):
1713         Elaborate the expression as part of the same stmt group as the actions.
1715 2015-01-07  Robert Dewar  <dewar@adacore.com>
1717         * sem_ch3.adb: Minor error message change.
1719 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1721         * sem_prag.adb (Analyze_Pragma, case Preelaborable_Initialization):
1722         Following AI05-028, the pragam applies legally to any composite type.
1724 2015-01-07  Arnaud Charlet  <charlet@adacore.com>
1726         * s-osinte-vxworks.adb, s-osinte-vxworks.ads
1727         (sigwait, sigwaitinfo): Removed, not needed after all on any
1728         VxWorks configurations.
1730 2015-01-07  Robert Dewar  <dewar@adacore.com>
1732         * sem_ch3.adb, freeze.adb, exp_disp.adb: Minor reformatting.
1734 2015-01-07  Javier Miranda  <miranda@adacore.com>
1736         * exp_disp.adb (Expand_Interface_Conversion): Adding missing
1737         generation of accessibility check.
1739 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1741         * sem_ch3.adb (Derived_Type_Declaration): In the case of an
1742         illegal completion from a class- wide type, set etype of the
1743         derived type properly to prevent cascaded errors.
1745 2015-01-07  Robert Dewar  <dewar@adacore.com>
1747         * prj.ads, i-cpoint.adb, freeze.adb, ghost.adb, prj-err.adb: Minor
1748         reformatting.
1750 2015-01-07  Robert Dewar  <dewar@adacore.com>
1752         * restrict.adb (Check_Restriction_No_Use_Of_Attribute):
1753         New procedure.
1754         (OK_No_Use_Of_Entity_Name): New function.
1755         (Set_Restriction_No_Use_Of_Entity): New procedure.
1756         * restrict.ads (Check_Restriction_No_Use_Of_Attribute):
1757         New procedure.
1758         (OK_No_Use_Of_Entity_Name): New function.
1759         (Set_Restriction_No_Use_Of_Entity): New procedure.
1760         * sem_ch8.adb (Find_Direct_Name): Add check for violation of
1761         No_Use_Of_Entity.
1762         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
1763         Add processing for new restriction No_Use_Of_Entity.
1765 2015-01-07  Eric Botcazou  <ebotcazou@adacore.com>
1767         * freeze.adb (Freeze_Array_Type): Apply same handling to Is_Atomic
1768         component type as to Has_Atomic_Components type.  Remove useless
1769         test on Is_Aliased component type.
1771 2015-01-07  Hristian Kirtchev  <kirtchev@adacore.com>
1773         * alloc.ads Alphabetize several declarations. Add constants
1774         Ignored_Ghost_Units_Initial and Ignored_Ghost_Units_Increment.
1775         * atree.adb Add with and use clauses for Opt.
1776         (Allocate_Initialize_Node): Mark a node as ignored Ghost
1777         if it is created in an ignored Ghost region.
1778         (Ekind_In): New variant.
1779         (Is_Ignored_Ghost_Node): New routine.
1780         (Set_Is_Ignored_Ghost_Node): New routine.
1781         * atree.adb Aplhabetize several subprograms declarations. Flag
1782         Spare0 is now known as Is_Ignored_Ghost_Node.
1783         (Ekind_In): New variant.
1784         (Is_Ignored_Ghost_Node): New routine.
1785         (Set_Is_Ignored_Ghost_Node): New routine.
1786         * einfo.adb: Flag 279 is now known as Contains_Ignored_Ghost_Code.
1787         (Contains_Ignored_Ghost_Code): New routine.
1788         (Set_Contains_Ignored_Ghost_Code): New routine.
1789         (Set_Is_Checked_Ghost_Entity, Set_Is_Ignored_Ghost_Entity):
1790         It is now possible to set this property on an unanalyzed entity.
1791         (Write_Entity_Flags): Output the status of flag
1792         Contains_Ignored_Ghost_Code.
1793         * einfo.ads New attribute Contains_Ignored_Ghost_Code along with
1794         usage in nodes.
1795         (Contains_Ignored_Ghost_Code): New routine
1796         along with pragma Inline.
1797         (Set_Contains_Ignored_Ghost_Code): New routine along with pragma Inline.
1798         * exp_ch3.adb Add with and use clauses for Ghost.
1799         (Freeze_Type): Capture/restore the value of Ghost_Mode on entry/exit.
1800         Set the Ghost_Mode in effect.
1801         (Restore_Globals): New routine.
1802         * exp_ch7.adb (Process_Declarations): Do not process a context
1803         that invoves an ignored Ghost entity.
1804         * exp_dbug.adb (Qualify_All_Entity_Names): Skip an ignored Ghost
1805         construct that has been rewritten as a null statement.
1806         * exp_disp.adb Add with and use clauses for Ghost.
1807         (Make_DT): Capture/restore the value of Ghost_Mode on entry/exit. Set
1808         the Ghost_Mode in effect.
1809         (Restore_Globals): New routine.
1810         * exp_util.adb (Requires_Cleanup_Actions): An ignored Ghost entity
1811         does not require any clean up. Add two missing cases that deal
1812         with block statements.
1813         * freeze.adb Add with and use clauses for Ghost.
1814         (Freeze_Entity): Capture/restore the value of Ghost_Mode on entry/exit.
1815         Set the Ghost_Mode in effect.
1816         (Restore_Globals): New routine.
1817         * frontend.adb Add with and use clauses for Ghost. Remove any
1818         ignored Ghost code from all units that qualify.
1819         * ghost.adb New unit.
1820         * ghost.ads New unit.
1821         * gnat1drv.adb Add with clause for Ghost. Initialize and lock
1822         the table in package Ghost.
1823         * lib.ads: Alphabetize several subprogram declarations.
1824         * lib-xref.adb (Output_References): Do not generate reference
1825         information for ignored Ghost entities.
1826         * opt.ads Add new type Ghost_Mode_Type and new global variable
1827         Ghost_Mode.
1828         * rtsfind.adb (Load_RTU): Provide a clean environment when
1829         loading a runtime unit.
1830         * sem.adb (Analyze): Capture/restore the value of Ghost_Mode on
1831         entry/exit as the node may set a different mode.
1832         (Do_Analyze):
1833         Capture/restore the value of Ghost_Mode on entry/exit as the
1834         unit may be withed from a unit with a different Ghost mode.
1835         * sem_ch3.adb Add with and use clauses for Ghost.
1836         (Analyze_Full_Type_Declaration, Analyze_Incomplete_Type_Decl,
1837         Analyze_Number_Declaration, Analyze_Private_Extension_Declaration,
1838         Analyze_Subtype_Declaration): Set the Ghost_Mode in effect. Mark
1839         the entity as Ghost when there is a Ghost_Mode in effect.
1840         (Array_Type_Declaration): The implicit base type inherits the
1841         "ghostness" from the array type.
1842         (Derive_Subprogram): The
1843         alias inherits the "ghostness" from the parent subprogram.
1844         (Make_Implicit_Base): The implicit base type inherits the
1845         "ghostness" from the parent type.
1846         * sem_ch5.adb Add with and use clauses for Ghost.
1847         (Analyze_Assignment): Set the Ghost_Mode in effect.
1848         * sem_ch6.adb Add with and use clauses for Ghost.
1849         (Analyze_Abstract_Subprogram_Declaration, Analyze_Procedure_Call,
1850         Analyze_Subprogram_Body_Helper, Analyze_Subprogram_Declaration):
1851         Set the Ghost_Mode in effect. Mark the entity as Ghost when
1852         there is a Ghost_Mode in effect.
1853         * sem_ch7.adb Add with and use clauses for Ghost.
1854         (Analyze_Package_Body_Helper, Analyze_Package_Declaration,
1855         Analyze_Private_Type_Declaration): Set the Ghost_Mode in
1856         effect. Mark the entity as Ghost when there is a Ghost_Mode
1857         in effect.
1858         * sem_ch8.adb Add with and use clauses for Ghost.
1859         (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
1860         Analyze_Object_Renaming, Analyze_Package_Renaming,
1861         Analyze_Subprogram_Renaming): Set the Ghost_Mode in effect. Mark
1862         the entity as Ghost when there is a Ghost_Mode in effect.
1863         (Find_Type): Check the Ghost context of a type.
1864         * sem_ch11.adb Add with and use clauses for Ghost.
1865         (Analyze_Exception_Declaration): Set the Ghost_Mode in
1866         effect. Mark the entity as Ghost when there is a Ghost_Mode
1867         in effect.
1868         * sem_ch12.adb Add with and use clauses for Ghost.
1869         (Analyze_Generic_Package_Declaration,
1870         Analyze_Generic_Subprogram_Declaration): Set the Ghost_Mode in effect.
1871         Mark the entity as Ghost when there is a Ghost_Mode in effect.
1872         * sem_prag.adb Add with and use clauses for Ghost.
1873         (Analyze_Pragma): Ghost-related checks are triggered when there
1874         is a Ghost mode in effect.
1875         (Create_Abstract_State): Mark the
1876         entity as Ghost when there is a Ghost_Mode in effect.
1877         * sem_res.adb Add with and use clauses for Ghost.
1878         (Check_Ghost_Context): Removed.
1879         * sem_util.adb (Check_Ghost_Completion): Removed.
1880         (Check_Ghost_Derivation): Removed.
1881         (Incomplete_Or_Partial_View):
1882         Add a guard in case the entity has not been analyzed yet
1883         and does carry a scope.
1884         (Is_Declaration): New routine.
1885         (Is_Ghost_Entity): Removed.
1886         (Is_Ghost_Statement_Or_Pragma):
1887         Removed.
1888         (Is_Subject_To_Ghost): Removed.
1889         (Set_Is_Ghost_Entity):
1890         Removed.
1891         (Within_Ghost_Scope): Removed.
1892         * sem_util.adb (Check_Ghost_Completion): Removed.
1893         (Check_Ghost_Derivation): Removed.
1894         (Is_Declaration): New routine.
1895         (Is_Ghost_Entity): Removed.
1896         (Is_Ghost_Statement_Or_Pragma): Removed.
1897         (Is_Subject_To_Ghost): Removed.
1898         (Set_Is_Ghost_Entity): Removed.
1899         (Within_Ghost_Scope): Removed.
1900         * sinfo.ads Add a section on Ghost mode.
1901         * treepr.adb (Print_Header_Flag): New routine.
1902         (Print_Node_Header): Factor out code. Output flag
1903         Is_Ignored_Ghost_Node.
1904         * gcc-interface/Make-lang.in: Add dependency for unit Ghost.
1906 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
1908         * freeze.adb (Freeze_Array_Type) <Complain_CS>: Remove always
1909         true test and unreachable 'else' arm.
1911 2015-01-06  Vincent Celier  <celier@adacore.com>
1913         * prj-conf.adb (Check_Target): Improve error message when
1914         there are mismatched targets between the on in the configuration
1915         project file and the specified one, either in the main project
1916         file or in the --target= switch.
1918 2015-01-06  Pascal Obry  <obry@adacore.com>
1920         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Mode and
1921         Install_Name attribute definitions.
1923 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1925         * freeze.adb (Wrap_Imported_Subprogram): Indicate that the
1926         generated Import pragma for the internal imported procedure does
1927         not come from an aspect, so that Is_Imported can be properly
1928         set for it.
1930 2015-01-06  Gary Dismukes  <dismukes@adacore.com>
1932         * sem_ch12.adb (Might_Inline_Subp): Record whether
1933         any subprograms in the generic package are marked with
1934         pragma Inline_Always (setting flag Has_Inline_Always).
1935         (Analyze_Package_Instantiation): Add test of Has_Inline_Always
1936         alongside existing test of Front_End_Inlining as alternative
1937         conditions for setting Inline_Now. Also add test of
1938         Has_Inline_Always along with Front_End_Inlining test as an
1939         alternative condition for setting Needs_Body to False.
1941 2015-01-06  Tristan Gingold  <gingold@adacore.com>
1943         * i-cpoint.adb (Copy_Array): Handle overlap.
1945 2015-01-06  Pascal Obry  <obry@adacore.com>
1947         * bindgen.adb: Minor style fix.
1949 2015-01-06  Robert Dewar  <dewar@adacore.com>
1951         * sem_util.ads, sem_util.adb: Minor reformatting.
1953 2015-01-06  Vincent Celier  <celier@adacore.com>
1955         * prj-conf.adb (Parse_Project_And_Apply_Config): Reset incomplete
1956         with flags before parsing the projects.
1957         * prj-err.adb (Error_Msg): Do nothing if there are incomplete withs.
1958         * prj-part.adb (Post_Parse_Context_Clause): Set Incomplete_Withs
1959         to True in the flags, when Ignore_Missing_With is True and an
1960         imported project cannot be found.
1961         * prj-proc.adb (Expression): When there are incomplete withs and
1962         a variable or attribute is not found, set the variable/attribute
1963         to unknown.
1964         * prj.ads (Processing_Flags): New flag Incomplete_Withs,
1965         defaulted to False.
1967 2015-01-06  Vasiliy Fofanov  <fofanov@adacore.com>
1969         * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-conf.adb,
1970         prj-err.adb: Add new switch --no-command-line.
1972 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1974         * sem_ch12.adb: Sloc of wrapper is that of instantiation.
1976 2015-01-06  Robert Dewar  <dewar@adacore.com>
1978         * sem_ch11.adb: Minor reformatting.
1980 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1982         * exp_aggr.adb (Get_Assoc_Expr): New routine internal to
1983         Build_Array_Aggr_Code, used to initialized components covered
1984         by a box association. If the component type is scalar and has
1985         a default aspect, use it to initialize such components.
1987 2015-01-06  Pascal Obry  <obry@adacore.com>
1989         * rtinit.c (__gnat_runtime_initialize): Add a parameter to
1990         control the setup of the exception handler.
1991         * initialize.c: Remove unused declaration.
1992         * bindgen.adb: Always call __gnat_runtime_initialize and pass
1993         whether the exeception handler must be set or not.
1995 2015-01-06  Thomas Quinot  <quinot@adacore.com>
1997         * freeze.adb (Set_SSO_From_Defaults): When setting scalar storage
1998         order to native from default, make sure to also adjust bit order.
1999         * exp_aggr.adb: Minor reformatting.
2001 2015-01-06  Robert Dewar  <dewar@adacore.com>
2003         * s-valllu.adb, s-valllu.ads, s-valuti.ads, s-valuns.adb, s-valuns.ads,
2004         s-valrea.adb, s-valrea.ads: Add some additional guards for
2005         Str'Last = Positive'Last.
2007 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2009         * sem_ch12.adb, sem_ch8.adb: Ongoing work for wrappers for actual
2010         subprograms.
2012 2015-01-06  Javier Miranda  <miranda@adacore.com>
2014         * exp_disp.adb (Expand_Interface_Conversion): Reapply patch.
2016 2015-01-06  Thomas Quinot  <quinot@adacore.com>
2018         * sem_util.ads: Minor reformatting.
2019         * sem_cat.adb (In_RCI_Visible_Declarations): Change back to...
2020         (In_RCI_Declaration) Return to old name, as proper checking of
2021         entity being in the visible part depends on entity kind and must
2022         be done by the caller.
2024 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2026         * sem_ch12.adb, sem_ch12.ads, sem_ch8.adb: Ongoing work for wrappers
2027         for operators in SPARK.
2029 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2031         * sem_aggr.adb (Get_Value): In ASIS mode, preanalyze the
2032         expression in an others association before making copies for
2033         separate resolution and accessibility checks. This ensures that
2034         the type of the expression is available to ASIS in all cases,
2035         in particular if the expression is itself an aggregate.
2037 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
2039         * einfo.ads (Has_Independent_Components): Document extended
2040         usage.
2041         * einfo.adb (Has_Independent_Components): Remove obsolete assertion.
2042         (Set_Has_Independent_Components): Adjust assertion.
2043         * sem_prag.adb (Analyze_Pragma): Also set Has_Independent_Components
2044         for pragma Atomic_Components.  Set Has_Independent_Components
2045         on the object instead of the type for an object declaration with
2046         pragma Independent_Components.
2048 2015-01-06  Olivier Hainque  <hainque@adacore.com>
2050         * set_targ.adb (Read_Target_Dependent_Values): Set
2051         Long_Double_Index when "long double" is read.
2052         (elaboration code): Register_Back_End_Types only when not reading from
2053         config files. Doing otherwise is pointless and error prone.
2055 2015-01-06  Robert Dewar  <dewar@adacore.com>
2057         * s-valrea.adb (Value_Real): Check for Str'Last = Positive'Last
2059 2015-01-06  Robert Dewar  <dewar@adacore.com>
2061         * a-wtgeau.adb, a-ztgeau.adb, a-tigeau.adb (String_Skip): Raise PE if
2062         Str'Last = Positive'Last.
2064 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2066         * sem_ch6.adb (Matches_Limited_View): Handle properly the case
2067         where the non-limited type is a generic actual and appears as
2068         a subtype of the non-limited view of the other.
2069         * freeze.adb (Build_Renamed_Body): If the return type of the
2070         declaration that is being completed is a limited view and the
2071         non-limited view is available, use it in the specification of
2072         the generated body.
2074 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2076         * sem_ch3.adb (Find_Type_Name): If there is a previous tagged
2077         incomplete view, the type of the classwide type common to both
2078         views is the type being declared.
2080 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
2082         * einfo.ads (Is_Independent): Further document extended usage.
2084 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
2086         * einfo.ads (Is_Independent): Document extended usage.
2087         * einfo.adb (Is_Independent): Remove obsolete assertion.
2088         (Set_Is_Independent): Likewise.
2089         * sem_prag.adb (Process_Atomic_Shared_Volatile): Rename into...
2090         (Process_Atomic_Independent_Shared_Volatile): ...this.
2091         Deal with pragma Independent here.
2092         (Analyze_Pragma): Adjust
2093         to above renaming and also invoke it for pragma Independent.
2094         Adjust comment for Independent_Components.
2096 2015-01-06  Robert Dewar  <dewar@adacore.com>
2098         * snames.ads-tmpl: Remove entries for attribute Enum_Image.
2099         * exp_attr.adb: Remove reference to Attribute_Enum_Image.
2101 2015-01-06  Robert Dewar  <dewar@adacore.com>
2103         * s-vallli.adb (Value_Long_Long_Integer): Handle case of Str'Last
2104         = Positive'Last.
2105         * s-valllu.adb (Value_Long_Long_Unsigned): Handle case of
2106         Str'Last = Positive'Last.
2108 2015-01-06  Robert Dewar  <dewar@adacore.com>
2110         * sem_prag.adb (Process_Inline): Remove redundant construct
2111         warning (-gnatw.r) for an ineffective pragma Inline.
2113 2015-01-06  Robert Dewar  <dewar@adacore.com>
2115         * s-valint.adb: Fix typo in last checkin.
2116         * s-valuns.adb (Value_Unsigned): More efficient fix for
2117         Positive'Last case.
2118         * sem_attr.adb (Analyze_Attribute): Minor reformatting
2119         (Eval_Attribute): Static ervaluation of 'Img for enumeration types.
2121 2015-01-06  Robert Dewar  <dewar@adacore.com>
2123         * s-valint.adb, s-valuns.adb (Value_Integer): Deal with case where
2124         Str'Last = Positive'Last
2126 2015-01-06  Thomas Quinot  <quinot@adacore.com>
2128         * xoscons.adb: Display exception information and return non-zero
2129         exit status in top level exception handler.
2131 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2133         * sem_ch8.adb: Code clean up.
2135 2015-01-06  Tristan Gingold  <gingold@adacore.com>
2137         * targparm.ads: Remove obsolete comment.
2139 2015-01-06  Olivier Hainque  <hainque@adacore.com>
2141         * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Variable): When
2142         constructing a ref to variable, update inner_const_flag from the
2143         variable TREE_READONLY attribute.
2144         * gcc-interface/targtyps.c (WIDEST_HARDWARE_FP_SIZE): Remove default
2145         definition.
2146         (get_target_float_size): Remove.
2147         (get_target_double_size): Remove.
2148         (get_target_long_double_size): Remove.
2150 2015-01-06  Pascal Obry  <obry@adacore.com>
2152         * adaint.c (ProcListEvt): Set to NULL.
2153         * rtinit.c: New file.
2154         (__gnat_rt_init_count): New reference counter set to 0.
2155         (__gnat_runtime_initialize): Move code here from __gnat_initialize when
2156         this code is actually needed for the runtime initialization. This
2157         routine returns immediately if the initialization has already been done.
2158         * final.c: Revert previous change.
2159         * rtfinal.c: New file.
2160         (__gnat_runtime_finalize)[Win32]: Add finalization of the critical
2161         section and event. The default version of this routine is empty (except
2162         for the reference counting code). This routine returns immediately if
2163         some others libraries are referencing the runtime.
2164         * bindgen.adb (Gen_Adainit): Generate call to Runtime_Initialize
2165         remove circuitry to initialize the signal handler as this is
2166         now done by the runtime initialization routine.
2167         (Gen_Adafinal): Generate call to Runtime_Finalize.
2168         * gnat_ugn.texi: Update documentation about concurrency and
2169         initialization/finalization of the run-time.
2170         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Add
2171         references to rtfinal.o and rtinit.o
2173 2015-01-06  Robert Dewar  <dewar@adacore.com>
2175         * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
2176         for Enum_Image.
2177         * sem_attr.adb: Implement Enum_Image attribute.
2178         * snames.ads-tmpl: Add entries for Enum_Image attribute.
2180 2015-01-06  Robert Dewar  <dewar@adacore.com>
2182         * namet.ads: Document use of Boolean2 for No_Use_Of_Entity.
2183         * restrict.ads (No_Use_Of_Entity): New table.
2184         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
2185         Ignore No_Use_Of_Entity (will be processed in parser).
2186         * snames.ads-tmpl: Add entry for Name_No_Use_Of_Entity.
2188 2015-01-06  Vincent Celier  <celier@adacore.com>
2190         * prj-tree.adb (Imported_Or_Extended_Project_Of): Do not try
2191         to check for an extended project, if a project does not have
2192         yet a project declaration.
2194 2015-01-06  Pierre-Marie Derodat  <derodat@adacore.com>
2196         * scos.ads: Update documentation about the SCO table build
2197         process and about table records format.
2198         * par_sco.ads (SCO_Record): Rename to SCO_Record_Raw.
2199         (SCO_Record_Filtered): New procedure.
2200         (Set_SCO_Logical_Operator): New procedure.
2201         (dsco): Update documentation.
2202         * par_sco.adb: Update library-level comments.
2203         (SCO_Generation_State_Type): New type.
2204         (SCO_Generation_State): New variable.
2205         (SCO_Raw_Table): New package instanciation.
2206         (Condition_Pragma_Hash_Table): Rename to SCO_Raw_Hash_Table.
2207         ("<"): New.
2208         (Tristate): New type.
2209         (Is_Logical_Operator): Return Tristate and update documentation.
2210         (Has_Decision): Update call to Is_Logical_Operator and complete
2211         documentation.
2212         (Set_Table_Entry): Rename to Set_Raw_Table_Entry, update
2213         comment, add an assertion for state checking and change
2214         references to SCO_Table into SCO_Raw_Table.
2215         (dsco): Refactor to dump the raw and the filtered tables.
2216         (Process_Decisions.Output_Decision_Operand): Handle putative
2217         short-circuit operators.
2218         (Process_Decisions.Output_Element): Update references
2219         to Set_Table_Entry and to Condition_Pragma_Hash_Table.
2220         (Process_Decisions.Process_Decision_Operand): Update call
2221         to Is_Logical_Operator.
2222         (Process_Decisions.Process_Node): Handle putative short-circuit
2223         operators and change references to
2224         SCO_Table into SCO_Raw_Table.
2225         (SCO_Output): Add an assertion
2226         for state checking and remove code that used to stamp out SCO entries.
2227         (SCO_Pragma_Disabled): Change reference to SCO_Table
2228         into SCO_Raw_Table.
2229         (SCO_Record): Rename to SCO_Record_Raw,
2230         add an assertion for state checking and change references
2231         to SCO_Table into SCO_Raw_Table.
2232         (Set_SCO_Condition): Add an assertion for state checking, update
2233         references to Condition_Pragma_Hash_Table and change references to
2234         SCO_Table into SCO_Raw_Table.
2235         (Set_SCO_Pragma_Enabled): Add an assertion for state checking and
2236         change references to SCO_Table into SCO_Raw_Table.
2237         (Set_SCO_Logical_Operator): New procedure.
2238         (Traverse_Declarations_Or_Statements.Set_Statement_Entry): Update
2239         references to Set_Table_Entry and to Condition_Pragma_Hash_Table.
2240         (SCO_Record_Fildered): New procedure.
2241         * gnat1drv.adb (Gnat1drv): Invoke the SCO filtering pass.
2242         * lib-writ.adb (Write_ALI): Invoke the SCO filtering pass and
2243         output SCOs.
2244         * par-load.adb (Load): Update reference to SCO_Record.
2245         * par.adb (Par): Update reference to SCO_Record.
2246         * put_scos.adb (Put_SCOs): Add an assertion to check that no
2247         putative SCO condition reaches this end.
2248         * sem_ch10.adb (Analyze_Proper_Body): Update reference to SCO_Record.
2249         * sem_res.adb (Resolve_Logical_Op): Validate putative SCOs
2250         when corresponding to an "and"/"or" operator affected by the
2251         Short_Circuit_And_Or pragma.
2253 2015-01-06  Robert Dewar  <dewar@adacore.com>
2255         * sem_ch8.adb (Analyze_Use_Package): Give more specific error
2256         msg for attempted USE of generic subprogram or subprogram.
2258 2015-01-06  Robert Dewar  <dewar@adacore.com>
2260         * s-valllu.adb, a-tiinau.adb, a-timoau.adb, a-ztinau.adb, a-ztmoau.adb,
2261         s-valuns.adb, s-valrea.adb, a-wtflau.adb, a-tiflau.adb, a-ztflau.adb,
2262         a-wtinau.adb, a-wtmoau.adb: Document recognition of : in place of #.
2264 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2266         * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
2267         that specify stream subprograms, if the prefix is a class-wide
2268         type then the generated attribute definition clause must apply
2269         to the same class-wide type.
2270         (Default_Iterator): An iterator defined by an aspect of some
2271         container type T must have a first parameter of type T, T'class,
2272         or an access to such (from code reading RM 5.5.1 (2/3)).
2274 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
2276         * gnat1drv.adb: Minor: complete previous change.
2278 2015-01-06  Olivier Hainque  <hainque@adacore.com>
2280         * set_targ.ads (C_Type_For): New function. Return the name of
2281         a C type supported by the back-end and suitable as a basis to
2282         construct the standard Ada floating point type identified by
2283         the T parameter. This is used as a common ground to feed both
2284         ttypes values and the GNAT tree nodes for the standard floating
2285         point types.
2286         * set_targ.adb (Long_Double_Index): The index at which "long
2287         double" gets registered in the FPT_Mode_Table. This is useful to
2288         know whether we have a "long double" available at all and get at
2289         it's characteristics without having to search the FPT_Mode_Table
2290         when we need to decide which C type should be used as the
2291         basis for Long_Long_Float in Ada.
2292         (Register_Float_Type): Fill Long_Double_Index.
2293         (FPT_Mode_Index_For): New function. Return the index in
2294         FPT_Mode_Table that designates the entry corresponding to the
2295         provided C type name.
2296         (FPT_Mode_Index_For): New function. Return the index in
2297         FPT_Mode_Table that designates the entry for a back-end type
2298         suitable as a basis to construct the standard Ada floating point
2299         type identified by the input T parameter.
2300         (elaboration code): Register_Back_End_Types unconditionally,
2301         so C_Type_For can operate regardless of -gnateT. Do it
2302         early so we can query it for the floating point sizes, via
2303         FPT_Mode_Index_For. Initialize Float_Size, Double_Size and
2304         Long_Double_Size from the FPT_Mode_Table, as cstand will do.
2305         * cstand.adb (Create_Float_Types): Use C_Type_For to determine
2306         which C type should be used as the basis for the construction
2307         of the Standard Ada floating point types.
2308         * get_targ.ads (Get_Float_Size, Get_Double_Size,
2309         Get_Long_Double_Size): Remove.
2310         * get_targ.adb: Likewise.
2312 2015-01-06  Thomas Quinot  <quinot@adacore.com>
2314         * sem_cat.adb (In_RCI_Declaration): Remove unnecessary
2315         parameter and rename to...
2316         (In_RCI_Visible_Declarations): Fix handling of private part of nested
2317         package.
2318         (Validate_RCI_Subprogram_Declaration): Reject illegal function
2319         returning anonymous access in RCI unit.
2321 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2323         * sem_ch6.adb (New_Overloaded_Entity): In GNATprove mode, a
2324         function wrapper may be a homonym of another local declaration.
2325         * sem_ch8.adb (Analyze_Subprogram_Renaming): In GNATprove mode,
2326         build function and operator wrappers after the actual subprogram
2327         has been resolved, and replace the standard renaming declaration
2328         with the declaration of wrapper.
2329         * sem_ch12.ads (Build_Function_Wrapper, Build_Operator_Wraooer):
2330         make public for use elsewhere.
2331         * sem_ch12.adb (Build_Function_Wrapper, Build_Operator_Wraooer):
2332         rewrite, now that actual is fully resolved when wrapper is
2333         constructed.
2335 2015-01-06  Javier Miranda  <miranda@adacore.com>
2337         * exp_disp.adb: Revert previous change.
2339 2015-01-06  Robert Dewar  <dewar@adacore.com>
2341         * exp_util.adb: Change name Name_Table_Boolean to
2342         Name_Table_Boolean1.
2343         * namet.adb: Change name Name_Table_Boolean to Name_Table_Boolean1
2344         Introduce Name_Table_Boolean2/3.
2345         * namet.ads: Change name Name_Table_Boolean to Name_Table_Boolean1
2346         Introduce Name_Table_Boolean2/3.
2347         * par-ch13.adb: Change name Name_Table_Boolean to
2348         Name_Table_Boolean1.
2350 2015-01-06  Bob Duff  <duff@adacore.com>
2352         * gnat_rm.texi: Improve documentation regarding No_Task_Termination.
2354 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2356         * sem_aggr.adb (Resolve_Record_Aggregte, Get_Value): For an
2357         others choice that covers multiple components, analyze each
2358         copy with the type of the component even in compile-only mode,
2359         to detect potential accessibility errors.
2361 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
2363         * sem_res.adb (Is_Assignment_Or_Object_Expression): New routine.
2364         (Resolve_Actuals): An effectively volatile out
2365         parameter cannot act as an in or in out actual in a call.
2366         (Resolve_Entity_Name): An effectively volatile out parameter
2367         cannot be read.
2369 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2371         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): If the body is
2372         the expansion of an expression function it may be pre-analyzed
2373         if a 'access attribute is applied to the function, in which case
2374         last_entity may have been assigned already.
2376 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2378         * sem_ch4.adb (Analyze_One_Call): If formal has an incomplete
2379         type and actual has the corresponding full view, there is no
2380         error, but a case of use of incomplete type in a predicate or
2381         invariant expression.
2383 2015-01-06  Vincent Celier  <celier@adacore.com>
2385         * makeutl.adb (Insert_No_Roots): Make sure that the same source
2386         in two different project tree is checked in both trees, if they
2387         are sources of two different projects, extended or not.
2389 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
2391         * gnat1drv.adb: Minor code clean up.
2392         (Adjust_Global_Switches): Ignore gnatprove_mode in codepeer_mode.
2394 2015-01-06  Bob Duff  <duff@adacore.com>
2396         * osint.adb (Read_Source_File): Don't print out
2397         file name unless T = Source.
2399 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2401         * sem_util.adb (Is_Variable, Is_OK_Variable_For_Out_Formal):
2402         recognize improper uses of constant_reference types as actuals
2403         for in-out parameters.
2404         (Check_Function_Call): Do not collect identifiers if function
2405         name is missing because of previous error.
2407 2015-01-06  Robert Dewar  <dewar@adacore.com>
2409         * ali-util.adb, sem_prag.adb, rtsfind.adb, sem_util.adb, sem_res.adb,
2410         ali.adb, binde.adb, namet.adb, namet.ads, gnatls.adb, bcheck.adb:
2411         Minor change of name Name_Table_Info => Name_Table_Int.
2413 2015-01-06  Robert Dewar  <dewar@adacore.com>
2415         * exp_strm.adb (Build_Elementary_Input_Call): Clarify comments
2416         in previous checkin.
2417         * freeze.adb (Freeze_Fixed_Point_Type): Add warning for shaving
2418         of bounds.
2419         * sem_prag.adb, sem_ch10.adb, sem_ch6.adb: Minor reformatting.
2421 2015-01-06  Vincent Celier  <celier@adacore.com>
2423         * a-strsup.adb (Times (Natural;String;Positive)): Raise
2424         Length_Error, not Index_Error, when the result is too long.
2426 2015-01-06  Thomas Quinot  <quinot@adacore.com>
2428         * a-direct.adb (Create_Path): Minor error handling and
2429         performance improvement.
2431 2015-01-06  Robert Dewar  <dewar@adacore.com>
2433         * checks.ads, sem_ch12.adb: Minor reformatting.
2434         * exp_ch4.adb (Expand_N_Op_Divide): Generate explicit divide by
2435         zero check for fixed-point case if Backend_Divide_Checks_On_Target
2436         is False.
2438 2015-01-06  Robert Dewar  <dewar@adacore.com>
2440         * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
2441         Do not set restriction No_Elaboration_Code unless the pragma
2442         appears in the main unit).
2444 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2446         * sem_ch10.adb (Is_Regular_With_Clause): Add guard to verify
2447         that with clause has already been analyzed before checking kind
2448         of with_clause.
2450 2015-01-06  Robert Dewar  <dewar@adacore.com>
2452         * exp_strm.adb (Build_Elementary_Input_Call): Return base type
2453         (as required by RM).
2455 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
2457         * a-reatim.adb ("/"): Add explicit pragma Unsuppress (Division_Check).
2459 2015-01-06  Robert Dewar  <dewar@adacore.com>
2461         * sem_prag.adb (Process_Suppress_Unsuppress): Add extra warning
2462         for ignoring pragma Suppress (Elaboration_Check) in SPARK mode.
2464 2015-01-06  Javier Miranda  <miranda@adacore.com>
2466         * exp_disp.adb (Expand_Interface_Conversion): No displacement
2467         of the pointer to the object needed when the type of the operand
2468         is not an interface type and the interface is one of its parent
2469         types (since they share the primary dispatch table).
2471 2015-01-06  Vincent Celier  <celier@adacore.com>
2473         * prj-env.adb: Minor comment update.
2475 2015-01-06  Javier Miranda  <miranda@adacore.com>
2477         * sem_res.adb (Valid_Conversion): Restrict the checks on anonymous
2478         access types whose target type is an interface type to operands
2479         that are access types; required to report an error when the
2480         operand is not an access type.
2482 2015-01-06  Bob Duff  <duff@adacore.com>
2484         * a-cfinve.adb (Copy): Set the discriminant to the Length when
2485         Capacity = 0.
2486         * a-cofove.ads (Capacity): Add a postcondition.
2487         * a-cfinve.ads (Capacity): Add a postcondition.
2488         (Reserve_Capacity): Correct the postcondition in the case where
2489         Capacity = 0; that means "Capacity => Length (Container)".
2490         * a-cofove.adb (Elems[c]): Add a comment
2491         explaining the dangers and how to avoid them.
2493 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2495         * sem_ch12.adb: Code clean up.
2497 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
2499         * gnatvsn.ads: Bump copyright year.
2501 2015-01-06  Robert Dewar  <dewar@adacore.com>
2503         * s-taskin.ads, s-traces.ads: Minor reformatting.
2504         * exp_util.adb: Minor typo fix.
2506 2015-01-06  Vincent Celier  <celier@adacore.com>
2508         * gnatls.adb (Search_RTS): Invoke Initialize_Default_Project_Path
2509         with the runtime name.
2510         * prj-env.adb (Initialize_Default_Project_Path): When both
2511         Target_Name and Runtime_Name are not empty string, add to the
2512         project path the two directories .../lib/gnat and .../share/gpr
2513         related to the runtime.
2514         * prj-env.ads (Initialize_Default_Project_Path): New String
2515         parameter Runtime_Name, defaulted to the empty string.
2517 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
2519         * frontend.adb: Guard against the case where a configuration
2520         pragma may be split into multiple pragmas and the original
2521         rewritten as a null statement.
2522         * sem_prag.adb (Analyze_Pragma): Insert a brand new Check_Policy
2523         pragma using Insert_Before rather than Insert_Action. This
2524         takes care of the configuration pragma case where Insert_Action
2525         would fail.
2527 2015-01-06  Bob Duff  <duff@adacore.com>
2529         * a-coboho.ads (Element_Access): Add "pragma
2530         No_Strict_Aliasing (Element_Access);". This is needed because
2531         we are unchecked-converting from Address to Element_Access.
2532         * a-cofove.ads, a-cofove.adb (Elems,Elemsc): Fix bounds of the
2533         result to be 1.
2535 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
2537         * sem_res.adb (Resolve_Actuals): Remove the
2538         restriction which prohibits volatile actual parameters with
2539         enabled external propery Async_Writers to act appear in procedure
2540         calls where the corresponding formal is of mode OUT.
2542 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
2544         * gnat_ugn.texi: Bump @copying's copyright year.
2546 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
2548         PR ada/64492
2549         * gcc-interface/Makefile.in (../stamp-tools): Reinstate dropped code.
2551 2015-01-04  Uros Bizjak  <ubizjak@gmail.com>
2553         * gcc-interface/misc.c (internal_error_function): Use xasprintf instead
2554         of unchecked asprintf.
2557 Copyright (C) 2015 Free Software Foundation, Inc.
2559 Copying and distribution of this file, with or without modification,
2560 are permitted in any medium without royalty provided the copyright
2561 notice and this notice are preserved.