2015-03-13 Robert Dewar <dewar@adacore.com>
[official-gcc.git] / gcc / ada / ChangeLog
blobd9b7325dc5ea2e86070a960c1a9399f60ce95c72
1 2015-03-13  Robert Dewar  <dewar@adacore.com>
3         * exp_util.ads, exp_util.adb (Force_Evaluation): Add Related_Id and
4         Is_Low/High_Bound params.
5         * sem_ch3.adb (Constrain_Index): Use new Force_Evaluation calling
6         sequence to simplify generation of FIRST/LAST temps for bounds.
8 2015-03-12  Olivier Hainque  <hainque@adacore.com>
10         * gcc-interface/trans.c (Attribute_to_gnu) <Code_Address case>:
11         On targets where a function symbol designates a function descriptor,
12         fetch the function code address from the descriptor.
13         (USE_RUNTIME_DESCRIPTORS): Provide a default definition.
15 2015-03-04  Robert Dewar  <dewar@adacore.com>
17         * sem_warn.adb: Minor reformatting.
18         * init.c: Minor tweaks.
20 2015-03-04  Dmitriy Anisimko  <anisimko@adacore.com>
22         * a-coinho-shared.adb: Fix clear of already empty holder.
24 2015-03-04  Robert Dewar  <dewar@adacore.com>
26         * exp_unst.adb (Check_Dynamic_Type): Ignore library level types.
27         (Check_Uplevel_Reference_To_Type): Ignore call inside generic.
28         (Note_Uplevel_Reference): Ignore call inside generic.
29         (Note_Uplevel_Reference): Fix check for no entity field.
30         (Unnest_Subprogram): Ignore call inside generic.
31         (Find_Current_Subprogram): Use Defining_Entity, not Defining_Unit_Name.
32         (Visit_Node): Ignore calls to Imported subprograms.
33         (Visit_Node): Fix problem in finding subprogram body in some cases.
34         (Add_Form_To_Spec): Use Defining_Entity, not Defining_Unit_Name.
36 2015-03-04  Robert Dewar  <dewar@adacore.com>
38         * einfo.adb (Is_ARECnF_Entity): Removed.
39         (Last_Formal): Remove special handling of Is_ARECnF_Entity.
40         (Next_Formal): Remove special handling of Is_ARECnF_Entity.
41         (Next_Formal_With_Extras): Remove special handling of Is_ARECnF_Entity.
42         (Number_Entries): Minor reformatting.
43         * einfo.ads (Is_ARECnF_Entity): Removed.
44         * exp_unst.adb (Unnest_Subprogram): Remove setting of
45         Is_ARECnF_Entity.
46         (Add_Extra_Formal): Use normal Extra_Formal circuit.
47         * sprint.adb (Write_Param_Specs): Properly handle case where
48         there are no source formals, but we have at least one Extra_Formal
49         present.
51 2015-03-04  Ed Schonberg  <schonberg@adacore.com>
53         * sem_aggr.adb (Resolve_Record_Aggregate,
54         Add_Discriminant_Values): If the value is a reference to the
55         current instance of an enclosing type, use its base type to check
56         against prefix of attribute reference, because the target type
57         may be otherwise constrained.
59 2015-03-04  Robert Dewar  <dewar@adacore.com>
61         * atree.h: Add entries for Flag287-Flag309.
62         * einfo.adb: Add (unused) flags Flag287-Flag309.
64 2015-03-04  Ed Schonberg  <schonberg@adacore.com>
66         * sem_util.adb (Collect_Interfaces, Collect): When gathering
67         interfaces of ancestors, handle properly a subtype of a private
68         extension.
70 2015-03-04  Robert Dewar  <dewar@adacore.com>
72         * einfo.adb (Is_ARECnF_Entity): New flag (ARECnF is an extra formal).
73         (Next_Formal): Don't return ARECnF formal.
74         (Last_Formal): Don't consider ARECnF formal.
75         (Next_Formal_With_Extras): Do consider ARECnF formal.
76         * einfo.ads (Is_ARECnF_Entity): New flag (ARECnF is an extra formal).
77         * exp_unst.adb (Create_Entities): Set Is_ARECnF_Entity flag.
79 2015-03-04  Javier Miranda  <miranda@adacore.com>
81         * exp_ch6.adb (Expand_Simple_Function_Return): When the returned
82         object is a class-wide interface object and we generate the
83         accessibility described in RM 6.5(8/3) then displace the pointer
84         to the object to reference the base of the object (to get access
85         to the TSD of the object).
87 2015-03-04  Hristian Kirtchev  <kirtchev@adacore.com>
89         * sem_prag.adb (Analyze_Abstract_State): Use routine
90         Malformed_State_Error to issue general errors.
91         (Analyze_Pragma): Diagnose a syntax error related to a state
92         declaration with a simple option.
93         (Malformed_State_Error): New routine.
95 2015-03-04  Robert Dewar  <dewar@adacore.com>
97         * a-strsup.adb (Super_Slice): Deal with super flat case.
98         * einfo.ads: Minor reformatting.
99         * s-imgdec.adb (Set_Decimal_Digits): Add comment about possibly
100         redundant code.
102 2015-03-04  Claire Dross  <dross@adacore.com>
104         * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
105         a-cforse.ads, a-cofove.ads: Use Default_Initial_Condition on formal
106         containers.
108 2015-03-04  Ed Schonberg  <schonberg@adacore.com>
110         * sem_warn.adb (Check_References): When checking for an unused
111         in-out parameter of a class- wide type, use its type to determine
112         whether it is private, in order to avoid a spurious warning when
113         subprogram spec and body are in different units.
115 2015-03-04  Yannick Moy  <moy@adacore.com>
117         * sem_attr.adb: Improve warning messages.
119 2015-03-04  Robert Dewar  <dewar@adacore.com>
121         * exp_ch6.adb (Expand_N_Subprogram_Body): Avoid trying to unnest
122         generic subprograms.
123         * exp_unst.adb (Check_Dynamic_Type): Handle record types properly
124         (Note_Uplevel_Reference): Ignore uplevel references to non-types
125         (Get_Level): Consider only subprograms, not blocks.
126         (Visit_Node): Set proper condition for generating ARECnF entity.
127         Ignore indirect calls. Ignore calls to subprograms
128         outside our nest.
129         (Unnest_Subprogram): Minor changes in dealing with ARECnF entity.
130         (Add_Form_To_Spec): Properly set Last_Entity field.
131         (Unnest_Subprogram): Set current subprogram scope for analyze calls.
132         Handle case of no uplevel refs in outer subprogram
133         Don't mark uplevel entities as aliased.
134         Don't deal with calls with no ARECnF requirement.
136 2015-03-04  Robert Dewar  <dewar@adacore.com>
138         * s-valrea.adb (Scan_Real): Remove redundant tests from scaling loops.
139         * s-imgdec.adb (Set_Decimal_Digits): Remove redundant Max
140         operation in computing LZ.
141         * sem_attr.adb: Minor typo fix
143 2015-03-04  Robert Dewar  <dewar@adacore.com>
145         * exp_ch7.adb: Minor reformatting.
146         * exp_unst.adb (Build_Tables): Fix minor glitch for no separate
147         spec case.
148         * erroutc.adb (Delete_Msg): add missing decrement of info msg counter.
150 2015-03-04  Hristian Kirtchev  <kirtchev@adacore.com>
152         * exp_ch6.adb (Build_Pragma_Check_Equivalent): Suppress
153         references to formal parameters subject to pragma Unreferenced.
154         (Suppress_Reference): New routine.
155         * sem_attr.adb (Analyze_Attribute): Reimplement the analysis
156         of attribute 'Old. Attributes 'Old and 'Result now share
157         common processing.
158         (Analyze_Old_Result_Attribute): New routine.
159         (Check_Placement_In_Check): Removed.
160         (Check_Placement_In_Contract_Cases): Removed.
161         (Check_Placement_In_Test_Case): Removed.
162         (Check_Use_In_Contract_Cases): Removed.
163         (Check_Use_In_Test_Case): Removed.
164         (In_Refined_Post): Removed.
165         (Is_Within): Removed.
166         * sem_warn.adb (Check_Low_Bound_Tested): Code cleanup.
167         (Check_Low_Bound_Tested_For): New routine.
169 2015-03-04  Hristian Kirtchev  <kirtchev@adacore.com>
171         * exp_ch3.adb (Expand_N_Object_Declaration):
172         Generate a runtime check to test the expression of pragma
173         Default_Initial_Condition when the object is default initialized.
175 2015-03-02  Robert Dewar  <dewar@adacore.com>
177         * scng.adb (Scan): Ignore illegal character in relaxed
178         semantics mode.
180 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
182         * sem_ch4.adb (Analyze_Set_Membership); Retain Overloaded flag
183         on left operand, so it can be properly resolved with type of
184         alternatives of right operand.
185         * sem_res.adb (Resolve_Set_Membership): Handle properly an
186         overloaded left-hand side when the alternatives on the right
187         hand side are literals of some universal type.  Use first
188         non-overloaded alternative to find expected type.
190 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
192         * exp_ch7.adb (Make_Set_Finalize_Address_Call): Use underlying
193         type to retrieve designated type, because the purported access
194         type may be a partial (private) view, when it is declared in
195         the private part of a nested package, and finalization actions
196         are generated when completing compilation of enclosing unit.
198 2015-03-02  Robert Dewar  <dewar@adacore.com>
200         * back_end.adb (Call_Back_End): Remove previous patch,
201         the back end now gets to see the result of -gnatd.1
202         (Unnest_Subprogram_Mode) processing.
203         * elists.ads, elists.adb (List_Length): New function.
204         * exp_unst.ads, exp_unst.adb: Major changes, first complete version.
205         * sem_util.adb (Check_Nested_Access): Handle formals in
206         Unnest_Subprogram_Mode.
207         (Adjust_Named_Associations): Minor reformatting.
208         * sprint.adb (Sprint_Node_Actual): Fix failure to print aliased
209         for parameters.
211 2015-03-02  Robert Dewar  <dewar@adacore.com>
213         * atree.ads, atree.adb (Uint24): New function
214         (Set_Uint24): New procedure.
215         * atree.h (Uint24): New macro for field access.
216         * back_end.adb (Call_Back_End): For now, don't call back end
217         if unnesting subprogs.
218         * einfo.adb (Activation_Record_Component): New field
219         (Subps_Index): New field.
220         * einfo.ads (Activation_Record_Component): New field
221         (Subps_Index): New field Minor reordering of comments into alpha order.
222         * exp_unst.ads, exp_unst.adb: Continued development.
224 2015-03-02  Gary Dismukes  <dismukes@adacore.com>
226         * exp_disp.ads: Minor reformatting.
228 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
230         * sem_ch8.adb (Chain_Use_Clause): Do not chain use clause from
231         ancestor to list of use clauses active in descendant unit if we
232         are within the private part of an intervening parent, to prevent
233         circularities in use clause list.
235 2015-03-02  Javier Miranda  <miranda@adacore.com>
237         * exp_ch9.adb (Build_Corresponding_Record): Propagate type
238         invariants to the corresponding record type.
239         * exp_disp.ad[sb] (Set_DT_Position_Value): New subprogram
240         which sets the value of the DTC_Entity associated with a given
241         primitive of a tagged type and propagates the value to the
242         wrapped subprogram.
243         (Set_DTC_Entity_Value): Propagate the DTC
244         value to the wrapped entity.
245         * sem_ch13.adb (Build_Invariant_Procedure): Append the code
246         associated with invariants of progenitors.
247         * sem_ch3.adb (Build_Derived_Record_Type): Inherit type invariants
248         of parents and progenitors.
249         (Process_Full_View): Check hidden inheritance of class-wide type
250         invariants.
251         * sem_ch7.adb (Analyze_Package_Specification): Do not generate
252         the invariant procedure for interface types; build the invariant
253         procedure for tagged types inheriting invariants from their
254         progenitors.
255         * sem_prag.adb (Pragma_Invariant) Allow invariants in interface
256         types but do not build their invariant procedure since their
257         invariants will be propagated to the invariant procedure of
258         types covering the interface.
259         * exp_ch6.adb, exp_disp.adb, sem_ch3.adb, sem_ch7.adb,
260         sem_ch8.adb, sem_disp.adb: Replace all calls to Set_DT_Position
261         by calls to Set_DT_Position_Value.
263 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
265         * sem_attr.adb (Analyze_Attribute): Factor out heavily indented
266         code in Denote_Same_Function.  Do not analyze attribute 'Result
267         when it is inside procedure _Postconditions.  Remove a misplaced
268         warning diagnostic. Code cleanup.
269         (Denote_Same_Function): New routine.
270         * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): Code
271         cleanup. Warn on pre/postconditions on an inlined subprogram.
272         (Analyze_Pragma, Refined_Post case): Warn on pre/postconditions on
273         an inlined subprogram.
274         (Analyze_Pre_Post_Condition_In_Decl_Part): Code cleanup. Warn on
275         pre/post condition on an inlined subprogram.
276         (Analyze_Test_Case_In_Decl_Part): Code cleanup. Warn on
277         pre/postconditions on an inlined subprogram.
278         (Check_Postcondition_Use_In_Inlined_Subprogram): New routine.
280 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
282         * sem_prag.adb (Ensure_Aggregate_Form):
283         Ensure that the name denoted by the Chars of a pragma argument
284         association has the proper Sloc when converted into an aggregate.
286 2015-03-02  Bob Duff  <duff@adacore.com>
288         * sem_ch6.adb (Check_Private_Overriding): Capture
289         Incomplete_Or_Partial_View in a constant. This is cleaner and
290         more efficient.
292 2015-03-02  Gary Dismukes  <dismukes@adacore.com>
294         * einfo.ads, exp_unst.ads: Minor reformatting.
296 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
298         * a-strsea.adb (Find_Token): Ensure that the range of iteration
299         does not perform any improper character access. This prevents
300         erroneous access in the unusual case of an empty string target
301         and a From parameter less than Source'First.
303 2015-03-02  Robert Dewar  <dewar@adacore.com>
305         * elists.adb (List_Length): Fix incorrect result.
307 2015-03-02  Bob Duff  <duff@adacore.com>
309         * sem_ch6.adb (Check_Private_Overriding): Refine the legality
310         checks here. It used to check that the function is merely
311         overriding SOMEthing. Now it checks that the function is
312         overriding a corresponding public operation. This is a correction
313         to the implementation of the rule in RM-3.9.3(10).
315 2015-03-02  Robert Dewar  <dewar@adacore.com>
317         * debug.adb: Document new debug flag -gnatd.1.
318         * einfo.ads, einfo.adb (Has_Nested_Subprogram): New flag.
319         (Has_Uplevel_Reference): New flag (Is_Static_Type): New flag.
320         (Uplevel_Reference_Noted):New flag (Uplevel_References): New field.
321         * elists.ads elists.adb (List_Length): New function.
322         * exp_ch6.adb (Expand_N_Subprogram_Body): Call Unnest_Subprogram
323         when appropriate (Process_Preconditions): Minor code
324         reorganization and reformatting
325         * exp_unst.ads, exp_unst.adb: New files.
326         * gnat1drv.adb (Adjust_Global_Switches): Set
327         Unnest_Subprogram_Mode if -gnatd.1
328         * namet.ads, namet.adb (Name_Find_Str): New version of Name_Find with
329         string argument.
330         * opt.ads (Unnest_Subprogram_Mode): New flag.
331         * par-ch3.adb (P_Identifier_Declarations): Fixes to -gnatd.2 handling.
332         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set
333         Has_Nested_Subprogram flag.
334         * sem_ch8.adb (Find_Direct_Name): New calling sequence for
335         Check_Nested_Access.
336         (Find_Selected_Component): Minor comment addition.
337         * sem_util.adb (Check_Nested_Access): New version for use with Exp_Unst.
338         (Note_Possible_Modification): New calling sequence for
339         Check_Nested_Access.
340         * sem_util.ads (Check_Nested_Access): New version for use with Exp_Unst.
341         * gcc-interface/Make-lang.in (GNAT1_OBJS): Add exp_unst.o
343 2015-03-02  Pierre-Marie de Rodat  <derodat@adacore.com>
345         * gcc-interface/utils.c (gnat_pushdecl): For non-artificial pointer
346         types, preserve the original type and create copies just like the C
347         front-end does.  For artificial ones, do not define a name for
348         the original type.
349         (create_type_decl): When gnat_pushdecl made the input type the
350         original type for the new declaration, do not define a stub
351         declaration for it.
352         * gcc-interface/utils2.c (build_binary_op): Accept two different
353         pointer types when they point to the same type.
355 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
357         * exp_util.adb (Possible_Bit_Aligned_Component): Do not process
358         an unanalyzed node.
359         * sem_util.adb (Kill_Current_Values): Do not invalidate and
360         de-null a constant.
362 2015-03-02  Robert Dewar  <dewar@adacore.com>
364         * sem_ch3.adb, exp_attr.adb, checks.adb, exp_aggr.adb: Minor
365         reformatting.
367 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
369         * sem_ch8.adb: extend use of Available_Subtype.
371 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
373         * sem_prag.adb (Duplication_Error): Remove the special handling
374         of 'Class or _Class in the context of pre/postconditions.
375         (Process_Class_Wide_Condition): Remove the special handling of
376         'Class or _Class in the context of pre/postconditions.
377         * sem_util.adb (Original_Aspect_Pragma_Name): Names Pre_Class
378         and Post_Class no longer need to be converted to _Pre and _Post.
379         * sem_util.ads (Original_Aspect_Pragma_Name): Update the comment
380         on usage.
382 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
384         * exp_ch6.adb (Process_Preconditions): Modify the
385         mechanism that find the first source declaration to correct exit
386         the loop once it has been found.
388 2015-03-02  Gary Dismukes  <dismukes@adacore.com>
390         * a-strsea.adb: Minor typo fix.
392 2015-03-02  Bob Duff  <duff@adacore.com>
394         * einfo.ads: Minor comment fixes.
396 2015-03-02  Gary Dismukes  <dismukes@adacore.com>
398         * einfo.adb, checks.adb: Minor reformatting and typo fixes.
400 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
402         * exp_aggr.adb (Get_Assoc_Expr): If the Default_Component_Value
403         is defined for the array type, use it instead of a Default_Value
404         specified for the component type itself.
406 2015-03-02  Thomas Quinot  <quinot@adacore.com>
408         * exp_attr.adb (Expand_N_Attribute_Reference, case Input): When
409         expanding a 'Input attribute reference for a class-wide type,
410         do not generate a separate object declaration for the controlling
411         tag dummy object; instead, generate the expression inline in the
412         dispatching call. Otherwise, the declaration (which involves a
413         call to String'Input, returning a dynamically sized value on the
414         secondary stack) will be expanded outside of proper secondary
415         stack mark/release operations, and will thus cause a secondary
416         stack leak.
418 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
420         * checks.adb (Add_Validity_Check): Change the names of all
421         formal parameters to better illustrate their purpose. Update
422         the subprogram documentation. Update all occurrences of the
423         formal parameters. Generate a pre/postcondition pragma by
424         calling Build_Pre_Post_Condition.
425         (Build_PPC_Pragma): Removed.
426         (Build_Pre_Post_Condition): New routine.
427         * einfo.adb Node8 is no longer used as Postcondition_Proc. Node14
428         is now used as Postconditions_Proc. Flag240 is now renamed to
429         Has_Expanded_Contract.  (First_Formal): The routine can now
430         operate on generic subprograms.
431         (First_Formal_With_Extras): The routine can now operate on generic
432         subprograms.
433         (Has_Expanded_Contract): New routine.
434         (Has_Postconditions): Removed.
435         (Postcondition_Proc): Removed.
436         (Postconditions_Proc): New routine.
437         (Set_Has_Expanded_Contract): New routine.
438         (Set_Has_Postconditions): Removed.
439         (Set_Postcondition_Proc): Removed.
440         (Set_Postconditions_Proc): New routine.
441         (Write_Entity_Flags): Remove the output of Has_Postconditions. Add
442         the output of Has_Expanded_Contract.
443         (Write_Field8_Name): Remove the output of Postcondition_Proc.
444         (Write_Field14_Name): Add the output of Postconditions_Proc.
445         * einfo.ads New attributes Has_Expanded_Contract and
446         Postconditions_Proc along with occurrences in entities.
447         Remove attributes Has_Postconditions and Postcondition_Proc
448         along with occurrences in entities.
449         (Has_Expanded_Contract): New routine along with pragma Inline.
450         (Has_Postconditions): Removed along with pragma Inline.
451         (Postcondition_Proc): Removed along with pragma Inline.
452         (Postconditions_Proc): New routine along with pragma Inline.
453         (Set_Has_Expanded_Contract): New routine along with pragma Inline.
454         (Set_Has_Postconditions): Removed along with pragma Inline.
455         (Set_Postcondition_Proc): Removed along with pragma Inline.
456         (Set_Postconditions_Proc): New routine along with pragma Inline.
457         * exp_ch6.adb (Add_Return): Code cleanup. Update the
458         generation of the call to the _Postconditions routine of
459         the procedure.  (Expand_Non_Function_Return): Reformat the
460         comment on usage. Code cleanup.  Update the generation of
461         the call to the _Postconditions routine of the procedure or
462         entry [family].
463         (Expand_Simple_Function_Return): Update the
464         generation of the _Postconditions routine of the function.
465         (Expand_Subprogram_Contract): Reimplemented.
466         * exp_ch6.ads (Expand_Subprogram_Contract): Update the parameter
467         profile along the comment on usage.
468         * exp_ch9.adb (Build_PPC_Wrapper): Code cleanup.
469         (Expand_N_Task_Type_Declaration): Generate pre/postconditions
470         wrapper when the entry [family] has a contract with
471         pre/postconditions.
472         * exp_prag.adb (Expand_Attributes_In_Consequence): New routine.
473         (Expand_Contract_Cases): This routine and its subsidiaries now
474         analyze all generated code.
475         (Expand_Old_In_Consequence): Removed.
476         * sem_attr.adb Add with and use clause for Sem_Prag.
477         (Analyze_Attribute): Reimplment the analysis of attribute 'Result.
478         (Check_Use_In_Test_Case): Use routine Test_Case_Arg to obtain
479         "Ensures".
480         * sem_ch3.adb (Analyze_Declarations): Analyze the contract of
481         a generic subprogram.
482         (Analyze_Object_Declaration): Do not create a contract node.
483         (Derive_Subprogram): Do not create a contract node.
484         * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Do
485         not create a contract node.
486         (Analyze_Completion_Contract): New routine.
487         (Analyze_Function_Return): Alphabetize.
488         (Analyze_Generic_Subprogram_Body): Alphabetize. Do not create a
489         contract node.  Do not copy pre/postconditions to the original
490         generic template.
491         (Analyze_Null_Procedure): Do not create a contract node.
492         (Analyze_Subprogram_Body_Contract): Reimplemented.
493         (Analyze_Subprogram_Body_Helper): Do not mark the enclosing scope
494         as having postconditions. Do not create a contract node. Analyze
495         the subprogram body contract of a body that acts as a compilation
496         unit. Expand the subprogram contract after the declarations have
497         been analyzed.
498         (Analyze_Subprogram_Contract): Reimplemented.
499         (Analyze_Subprogram_Specification): Do not create a contract node.
500         (List_Inherited_Pre_Post_Aspects): Code cleanup.
501         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Update the
502         comment on usage.
503         (Analyze_Subprogram_Contract): Update the
504         parameter profile and the comment on usage.
505         * sem_ch7.adb (Analyze_Package_Body_Helper): Do not create a
506         contract node.
507         (Analyze_Package_Declaration): Do not create a
508         contract node.
509         (Is_Subp_Or_Const_Ref): Ensure that the prefix has an entity.
510         * sem_ch8.adb (Analyze_Subprogram_Renaming): Do not create a
511         contract node.
512         * sem_ch9.adb (Analyze_Entry_Declaration): Do not create a
513         contract node.
514         * sem_ch10.adb (Analyze_Compilation_Unit): Move local variables to
515         their proper section and alphabetize them. Analyze the contract of
516         a [generic] subprogram after all Pragmas_After have been analyzed.
517         (Analyze_Subprogram_Body_Stub_Contract): Alphabetize.
518         * sem_ch12.adb (Analyze_Generic_Package_Declaration): Do not
519         create a contract node.
520         (Analyze_Generic_Subprogram_Declaration):
521         Alphabetize local variables. Do not create a contract
522         node. Do not generate aspects out of pragmas for ASIS.
523         (Analyze_Subprogram_Instantiation): Instantiate
524         the contract of the subprogram.  Do not create a
525         contract node.  (Instantiate_Contract): New routine.
526         (Instantiate_Subprogram_Body): Alphabetize local variables.
527         (Save_Global_References_In_Aspects): New routine.
528         (Save_References): Do not save the global references found within
529         the aspects of a generic subprogram.
530         * sem_ch12.ads (Save_Global_References_In_Aspects): New routine.
531         * sem_ch13.adb (Analyze_Aspect_Specifications): Do not use
532         Original_Node for establishing linkages.
533         (Insert_Pragma): Insertion in a subprogram body takes precedence over
534         the case where the subprogram body is also a compilation unit.
535         * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): Use
536         Get_Argument to obtain the proper expression. Install the generic
537         formals when the related context is a generic subprogram.
538         (Analyze_Depends_In_Decl_Part): Use Get_Argument to obtain
539         the proper expression. Use Corresponding_Spec_Of to obtain
540         the spec. Install the generic formal when the related context
541         is a generic subprogram.
542         (Analyze_Global_In_Decl_Part): Use Get_Argument to obtain the proper
543         expression. Use Corresponding_Spec_Of to obtain the spec. Install the
544         generic formal when the related context is a generic subprogram.
545         (Analyze_Initial_Condition_In_Decl_Part): Use Get_Argument
546         to obtain the proper expression. Remove the call to
547         Check_SPARK_Aspect_For_ASIS as the analysis is now done
548         automatically.
549         (Analyze_Pragma): Update all occurrences
550         to Original_Aspect_Name. Pragmas Contract_Cases, Depends,
551         Extensions_Visible, Global, Postcondition, Precondition and
552         Test_Case now carry generic templates when the related context
553         is a generic subprogram. The same pragmas are no longer
554         forcefully fully analyzed when the context is a subprogram
555         that acts as a compilation unit. Pragmas Abstract_State,
556         Initial_Condition, Initializes and Refined_State have been clean
557         up. Pragmas Post, Post_Class, Postcondition, Pre, Pre_Class
558         and Precondition now use the same routine for analysis. Pragma
559         Refined_Post does not need to check the use of 'Result or
560         the lack of a post-state in its expression. Reimplement the
561         analysis of pragma Test_Case.
562         (Analyze_Pre_Post_Condition): New routine.
563         (Analyze_Pre_Post_Condition_In_Decl_Part):
564         Reimplemented.
565         (Analyze_Refined_Depends_In_Decl_Part): Use Get_Argument to obtain the
566         proper expression.
567         (Analyze_Refined_Global_In_Decl_Part): Use Get_Argument to obtain
568         the proper expression.
569         (Analyze_Test_Case_In_Decl_Part): Reimplemented.
570         (Check_Pre_Post): Removed.
571         (Check_Precondition_Postcondition): Removed.
572         (Check_SPARK_Aspect_For_ASIS): Removed.
573         (Check_Test_Case): Removed.
574         (Collect_Subprogram_Inputs_Outputs): Use Get_Argument
575         to obtain the proper expression. Use Corresponding_Spec_Of to
576         find the proper spec.
577         (Create_Generic_Template): New routine.
578         (Duplication_Error): New routine.
579         (Expression_Function_Error): New routine.
580         (Find_Related_Subprogram_Or_Body): Moved to the spec
581         of Sem_Prag. Emit precise error messages. Account for cases of
582         rewritten expression functions, generic instantiations, handled
583         sequence of statements and pragmas from aspects.
584         (Get_Argument): New routine.
585         (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Removed.
586         (Preanalyze_CTC_Args): Removed.
587         (Process_Class_Wide_Condition): New routine.
588         * sem_prag.ads (Analyze_Test_Case_In_Decl_Part): Update
589         the parameter profile along with the comment on usage.
590         (Find_Related_Subprogram_Or_Body): Moved from the body of Sem_Prag.
591         (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Removed.
592         (Test_Case_Arg): New routine.
593         * sem_util.adb Add with and use clauses for Sem_Ch6.
594         (Add_Contract_Item): This routine now creates a contract
595         node the first time an item is added. Remove the duplicate
596         aspect/pragma checks.
597         (Check_Result_And_Post_State): Reimplemented.
598         (Corresponding_Spec_Of): New routine.
599         (Get_Ensures_From_CTC_Pragma): Removed.
600         (Get_Requires_From_CTC_Pragma): Removed.
601         (Has_Significant_Contract): New routine.
602         (Inherit_Subprogram_Contract): Inherit only if the source
603         has a contract.
604         (Install_Generic_Formals): New routine.
605         (Original_Aspect_Name): Removed.
606         (Original_Aspect_Pragma_Name): New routine.
607         * sem_util.ads (Check_Result_And_Post_State): Reimplemented.
608         (Corresponding_Spec_Of): New routine.
609         (Get_Ensures_From_CTC_Pragma): Removed.
610         (Get_Requires_From_CTC_Pragma): Removed.
611         (Has_Significant_Contract): New routine.
612         (Install_Generic_Formals): New routine.
613         (Original_Aspect_Name): Removed.
614         (Original_Aspect_Pragma_Name): New routine.
615         * sem_warn.adb Add with and use clauses for Sem_Prag.
616         (Within_Postcondition): Use Test_Case_Arg to extract "Ensures".
618 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
620         * sem_ch8.adb (Available_Subtype): Optimization in
621         Find_Selected_Component: when safe, use existing subtype of
622         array component, possibly discriminant-dependent, rather than
623         creating new subtype declaration for it. In this fashion different
624         occurrences of the component have the same subtype, rather than
625         just equivalent ones. Simplifies value tracing in GNATProve.
627 2015-03-01  Arnaud Charlet  <charlet@adacore.com>
629         PR ada/65259
631         * doc/gnat_ugn/gnat_project_manager.rst,
632         doc/gnat_ugn/platform_specific_information.rst: Remove reference to
633         image, too troublesome with texi format.
634         * gnat_ugn.texi: Regenerate.
636 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
638         PR libgomp/64625
639         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8): Remove.
640         (DEF_FUNCTION_TYPE_VAR_12): Likewise.
641         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
643 2015-02-23  Thomas Schwinge  <thomas@codesourcery.com>
645         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8): Fix number of
646         arguments parameter.
647         (DEF_FUNCTION_TYPE_VAR_12): Likewise.
649 2015-02-22  Arnaud Charlet  <charlet@adacore.com>
651         * doc/Makefile: postprocess texinfo files to update @dircategory
652         and update texi files under gcc/ada.
653         * gnat_ugn.texi, gnat_rm.texi: Regenerated.
655 2015-02-22  Arnaud Charlet  <charlet@adacore.com>
657         * doc/gnat_ugn/project-manager-figure.png,
658         doc/gnat_ugn/rtlibrary-structure.png: New.
660 2015-02-22  Tom de Vries  <tom@codesourcery.com>
662         PR ada/65100
663         * gnat-style.texi (@subsection Loop Statements): Replace @noindent by
664         @item, and fix warning '@itemize has text but no @item'.
666 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
668         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Pragma
669         legally applies to an abstract subprogram declaration.
670         * freeze.adb: Minor comment addition.
672 2015-02-20  Robert Dewar  <dewar@adacore.com>
674         * errout.ads: Document replacement of Name_uPre/Post/Type_Invariant.
675         * erroutc.adb (Set_Msg_Str): Replace _xxx.
676         (Pre/Post/Type_Invariant) by xxx'Class.
677         * erroutc.ads (Set_Msg_Str): Replace _xxx.
678         (Pre/Post/Type_Invariant) by xxx'Class.
679         * sem_prag.adb (Fix_Error): Remove special casing of
680         Name_uType_Invariant.
681         (Analyze_Pre_Post_Condition_In_Decl_Part): Remove special casing of
682         Name_uPre and Name_uPost in aspect case (done in Errout now).
684 2015-02-20  Robert Dewar  <dewar@adacore.com>
686         * g-alveop.adb: Minor style fixes.
688 2015-02-20  Robert Dewar  <dewar@adacore.com>
690         * freeze.adb (Warn_Overlay): Guard against blow up with address
691         clause.
693 2015-02-20  Bob Duff  <duff@adacore.com>
695         * exp_attr.adb (May_Be_External_Call): Remove this. There is no need
696         for the compiler to guess whether the call is internal or external --
697         it is always external.
698         (Expand_Access_To_Protected_Op): For P'Access, where P
699         is a protected subprogram, always create a pointer to the
700         External_Subprogram.
702 2015-02-20  Robert Dewar  <dewar@adacore.com>
704         * a-dispat.adb, a-stcoed.ads: Minor reformatting.
706 2015-02-20  Robert Dewar  <dewar@adacore.com>
708         * sem_ch13.adb (Build_Discrete_Static_Predicate): Allow static
709         predicate for non-static subtype.
710         (Build_Predicate_Functions): Do not assume subtype associated with a
711         static predicate must be static.
713 2015-02-20  Robert Dewar  <dewar@adacore.com>
715         * errout.adb (Set_Msg_Node): Better handling of internal names
716         (Set_Msg_Node): Kill message when we cannot eliminate internal name.
717         * errout.ads: Document additional case of message deletion.
718         * namet.adb (Is_Internal_Name): Refined to consider wide
719         strings in brackets notation and character literals not to be
720         internal names.
721         * sem_ch8.adb (Find_Selected_Component): Give additional error
722         when selector name is a subprogram whose first parameter has
723         the same type as the prefix, but that type is untagged.
725 2015-02-20  Robert Dewar  <dewar@adacore.com>
727         * g-allein.ads, g-alveop.adb, g-alveop.ads, opt.ads: Minor reformatting
729 2015-02-20  Tristan Gingold  <gingold@adacore.com>
731         * opt.ads (GNAT_Mode_Config): New variable.
732         * opt.adb (Set_Opt_Config_Switches): Consider GNAT_Mode_Config
733         to set Assertions_Enabled.
734         * switch-c.adb (Scan_Front_End_Switches): Set GNAT_Mode_Config
735         for -gnatg.
737 2015-02-20  Robert Dewar  <dewar@adacore.com>
739         * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add an additional
740         comment regarding the handling of unterminated fixed-point
741         constants.
742         * s-valuns.ads (Scan_Raw_Unsigned): Add comments
743         corresponding to those previously added for
744         System.Val_LLU.Scan_Raw_Long_Long_Unsigned.
746 2015-02-20  Olivier Hainque  <hainque@adacore.com>
748         * g-allein.ads, g-alveop.ads, g-alveop.adb: Code clean ups.
750 2015-02-20  Robert Dewar  <dewar@adacore.com>
752         * sem_prag.adb: Minor comment clarification.
754 2015-02-20  Olivier Hainque  <hainque@adacore.com>
756         * g-allein.ads (vec_ctf, vec_vcsfx, vec_vcfux): Remove.
757         * g-alleve.ads, g-alleva.adb (vcfux): Likewise.
758         * g-alveop.ads (vec_vcfsx, vec_vcfux): Just rename the ll versions.
759         (vec_ctf): Now renamings as well.
761 2015-02-20  Robert Dewar  <dewar@adacore.com>
763         * switch-c.adb, bindgen.adb: Minor reformatting.
765 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
767         * sem_prag.adb (Analyze_Pragma, case Type_Invariant):
768         Invariant'class is allowed on an abstract type.
770 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
772         * sem_ch3.adb (Access_Definition): If the access definition is
773         for a protected component and defines an access to protected
774         subprogram, do not create an itype reference for it because a
775         full type declaration will be built in order to generate the
776         proper equivalent type.
777         (Analyze_Subtype_Declaration): Add information of incomplete
778         subtypes, for Ada 2012 extended uses of incomplete types.
780 2015-02-20  Gary Dismukes  <dismukes@adacore.com>
782         * sem_res.adb: Minor reformatting.
784 2015-02-20  Vincent Celier  <celier@adacore.com>
786         * switch-c.adb (Scan_Front_End_Switches): When comparing runtime
787         path name for several switches --RTS, use the normalized path
788         names.
790 2015-02-20  Vincent Celier  <celier@adacore.com>
792         * bindgen.adb: Minor reformatting and code reorganization.
794 2015-02-20  Jose Ruiz  <ruiz@adacore.com>
796         * a-stcoed.ads: Add spec for this package (Unimplemented_Unit).
797         * impunit.adb (Non_Imp_File_Names_12): Mark unit a-stcoed.ads as
798         defined by Ada 2012.
800 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
802         * sysdep.c, expect.c, s-oscons-tmplt.c, gsocket.h, adaint.c: Remove
803         obsolete references to RTX, nucleus, VMS.
805 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
807         * sem_prag.adb (Fix_Error): For an illegal Type_Invariant'Class
808         aspect, use name that mentions Class explicitly, rather than
809         compiler-internal name.
811 2015-02-20  Robert Dewar  <dewar@adacore.com>
813         * debug.adb: Add documentation for -gnatd.2 (allow statements
814         in decl sequences).
815         * par-ch3.adb (P_Identifier_Declarations): Handle
816         statement appearing where declaration expected more cleanly.
817         (Statement_When_Declaration_Expected): Implement debug flag
818         -gnatd.2.
820 2015-02-20  Jose Ruiz  <ruiz@adacore.com>
822         * a-dinopr.ads: Add spec for this package (Unimplemented_Unit).
823         * a-dispat.ads (Yield): Include procedure added in Ada 2012.
824         * a-dispat.adb (Yield): Implement procedure added in Ada 2012.
825         * impunit.adb (Non_Imp_File_Names_05): Mark unit a-dinopr.ads as
826         defined by Ada 2005.
827         * snames.ads-tmpl (Name_Non_Preemptive_FIFO_Within_Priorities):
828         This is the correct name for the dispatching policy (FIFO was
829         missing).
831 2015-02-20  Javier Miranda  <miranda@adacore.com>
833         * sem_res.adb (Resolve_Type_Conversion): If the type of the
834         operand is the limited-view of a class-wide type then recover
835         the class-wide type of the non-limited view.
837 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
839         * gcc-interface/Makefile.in: Remove references to nucleus.
840         * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Procedure): Set
841         extern_flag to true for Inline_Always subprograms with
842         Intrinsic convention.
844 2015-02-20  Yannick Moy  <moy@adacore.com>
846         * sem_prag.ads: Minor typo in comment.
848 2015-02-20  Pascal Obry  <obry@adacore.com>
850         * s-osprim-mingw.adb: Fix Get_Base_Time parameter mode.
852 2015-02-20  Vincent Celier  <celier@adacore.com>
854         * makeutl.adb (Get_Directories.Add_Dir): Add a directory only
855         if it exists.
857 2015-02-20  Robert Dewar  <dewar@adacore.com>
859         * sem_eval.ads: Minor reformatting.
861 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
863         * freeze.adb (Size_Known): Do not set the packed size for
864         independent type or component.
865         (Freeze_Array_Type): Check for Independent[_Components] with packing
866         or explicit component size clause.
867         * gnat1drv.adb (Post_Compilation_Validation_Checks): Do the validation
868         of independence pragmas only for non-GCC back-ends.
869         * sem_ch13.adb (Initialize): Likewise for the initialization.
870         * sem_prag.adb (Record_Independence_Check): New procedure to record an
871         independence check in the table.
872         (Analyze_Pragma): Use it throughout instead of doing it manually.
873         * gcc-interface/decl.c (gnat_to_gnu_field): Add support for
874         independent type or component.
876 2015-02-20  Thomas Quinot  <quinot@adacore.com>
878         * adaint.c (__gnat_readdir): For Solaris, use 64 bit variants of
879         struct direct and readdir. This is required for NFS filesystems
880         mounted from servers that use 64-bit cookies.
882 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
884         * sem_ch12.adb (Analyze_Subprogram_Instantiaion): New subprogram
885         Build_Subprogram_Renaming, to create renaming of subprogram
886         instance in the the declaration of the wrapper package rather
887         than in its body, so that it is available for analysis of aspects
888         propagated from generic to instantiation.
889         (Check_Mismatch): An actual for a formal package that is an
890         incomplete type matches a formal type that is incomplete.
891         (Instantiate_Package_Body): Move code that builds subprogram
892         renaming to Analyze_Subprogram_Instantiation.
893         (Instantiate_Type): The generated subtype is a limited view if
894         the actual is a limited view.
895         (Load_Parent_Of_Generic): Retrieve instance declaration from
896         its new position within wrapper package.
898 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
900         * s-parame-vxworks.adb, s-os_lib.ads: Update comments.
902 2015-02-20  Robert Dewar  <dewar@adacore.com>
904         * s-osinte-vxworks.ads (To_Timespec): Add comment about the
905         issue of negative arguments.
907 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
909         * gnat1drv.adb: Minor consistency fix.
911 2015-02-20  Pascal Obry  <obry@adacore.com>
913         * s-osprim-mingw.adb (Get_Base_Time): Properly release lock in all
914         paths.
916 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
918         * inline.adb (Expand_Inlined_Call): Skip again calls to subprogram
919         renamings.
920         * exp_ch6.adb (Expand_Call): Use back-end inlining
921         instead of expansion for simple subprogram renamings.
923 2015-02-20  Robert Dewar  <dewar@adacore.com>
925         * exp_util.adb: Minor reformatting.
927 2015-02-20  Vincent Celier  <celier@adacore.com>
929         * switch-c.adb (Scan_Front_End_Switches): Do not fail when --RTS=
930         is specified several times with different values that indicates
931         the same runtime directory.
933 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
935         * sem_attr.adb (Check_Not_Incomplete_Type): Clean up code to
936         handle properly illegal uses of attributes on prefixes on an
937         incomplete type, both when the type of the prefix is locally
938         incomplete, and when it is a limited view of a type whose
939         non-limited view is not available.
940         (Analyze_Attribute): Add calls to Check_Not_Incomplete_Type for
941         'Address and others.
943 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
945         * exp_ch6.adb: Fix minor typo in comment.
947 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
949         * sinfo.ads: Add comment.
951 2015-02-20  Olivier Hainque  <hainque@adacore.com>
953         * opt.ads: Replace Opt.Suppress_All_Inlining by two separate
954         flags controlling the actual FE inlining out of pragma Inline
955         and pragma Inline_Always.
956         * adabkend.adb (Scan_Compiler_Arguments): Set both flags to True
957         on -fno-inline, which disables all inlining in compilers with
958         an Ada back-end and without back-end inlining support.
959         * back_end.adb (Scan_Back_End_Switches): Set the Inline related
960         flag to True on -fno-inline and leave Inline_Always alone for
961         gcc back-ends.
962         * back_end.ads (Scan_Compiler_Arguments): Adjust spec wrt the
963         names of the Opt flags it sets.
964         * gnat1drv.adb (Adjust_Global_Switches): Remove test on
965         Opt.Suppress_All_Inlining in the Back_End_Inlining computation.
966         * sem_prag.adb (Make_Inline): Remove early return conditioned
967         on Opt.Suppress_All_Inlining.
968         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use the flags to
969         disable the calls to Build_Body_To_Inline otherwise triggered
970         by pragma Inline or Inline_Always. This will prevent actual
971         front-end inlining of the subprogram on calls.
973 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
975         * exp_ch3.adb (Default_Initialize_Object): Call Add_Inlined_Body on the
976         Abort_Undefer_Direct function.
977         * exp_ch5.adb (Expand_N_Assignment_Statement): Likewise.
978         * exp_intr.adb (Expand_Unc_Deallocation): Likewise.
979         * exp_prag.adb (Expand_Pragma_Abort_Defer): Likewise.
980         * exp_ch4.adb (Expand_N_Selected_Component): Adjust call to
981         Add_Inlined_Body.
982         * exp_ch6.adb (Expand_Call): Adjust calls to Add_Inlined_Body.
983          Remove call to Register_Backend_Call and move code resetting
984         Needs_Debug_Info on inlined subprograms to...
985         * inline.ads (Add_Inlined_Body): Add N parameter.
986         (Register_Backend_Call): Delete.
987         * inline.adb (Add_Inlined_Body): ...here and simplify.
988          Register the call with Backend_Calls directly.
989         (Register_Backend_Call): Delete.
990         * s-stalib.ads (Abort_Undefer_Direct): Restore pragma Inline.
992 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
994         * s-stalib.ads: Fix typo.
996 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
998         * exp_ch3.adb (Default_Initialize_Object): If the object has a
999         delayed freeze, the actions associated with default initialization
1000         must be part of the freeze actions, rather that being inserted
1001         directly after the object declaration.
1003 2015-02-20  Robert Dewar  <dewar@adacore.com>
1005         * lib-load.adb: Minor comment update.
1007 2015-02-20  Vincent Celier  <celier@adacore.com>
1009         * prj-proc.adb (Process_Case_Construction): When there are
1010         incomplete withed projects and the case variable is unknown,
1011         skip the case construction.
1013 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
1015         * exp_ch6.adb (Expand_Actuals): Add caller-side invariant checks
1016         when an actual is a view conversion, either because the call is
1017         to an inherited operation, or because the actual is an explicit
1018         type conversion to an ancestor type.  Fixes ACATS 4.0D: C732001
1020 2015-02-20  Robert Dewar  <dewar@adacore.com>
1022         * einfo.ads: Minor comment updates Fix missing pragma Inline
1023         for Set_Partial_View_Has_Unknown_Discr.
1024         * einfo.adb (Write_Entity_Flags): Add missing entry for
1025         Partial_View_Has_Unknown_Discr.
1026         * sem_ch3.adb: Minor reformatting.
1028 2015-02-20  Vincent Celier  <celier@adacore.com>
1030         * opt.ads: Minor cleanup: remove mention of gprmake.
1031         * s-stalib.ads (Abort_Undefer_Direct): Do not inline.
1032         * s-tataat.adb: Do not call System.Tasking.Self but directly
1033         System.Task_Primitives.Operations.Self.
1035 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
1037         * gnat_rm.texi, gnat_ugn.texi: Now automatically generated from
1038         sphinx in the doc directory.
1039         * doc: New directory containing sphinx versions of gnat_rm and gnat_ugn
1041 2015-02-20  Robert Dewar  <dewar@adacore.com>
1043         * sem_res.adb: Minor reformatting.
1044         * exp_ch9.adb (Build_Protected_Spec): Copy Aliased setting when
1045         building spec.
1046         * sem_ch13.adb (Analyze_Aspect_Specifications): Exclude Boolean
1047         aspects from circuitry setting delay required to false if the
1048         argument is an integer literal.
1050 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
1052         * einfo.ads. einfo.adb (Partial_View_Has_Unknown_Discr):  New flag
1053         on type entities, to enforce AI12-0133: default initialization
1054         of types whose partial view has unknown discriminants does not
1055         get an invariant check, because clients of the unit can never
1056         declare objects of such types.
1057         * sem_ch3.adb (Find_Type_Name); Set new flag
1058         Partial_View_Has_Unknown_Discr when needed.
1059         * exp_ch3.adb (Expand_N_Object_Declaration): Use flag to suppress
1060         generation of invariant call on default-initialized object.
1062 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
1064         * gcc-interface/decl.c (gnat_to_gnu_param): Do not strip the padding
1065         if the parameter either is passed by reference or if the alignment
1066         would be lowered.
1068 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
1070         * gcc-interface/decl.c (is_cplusplus_method): Use Is_Primitive flag to
1071         detect primitive operations of tagged and untagged types.
1073 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
1075         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias
1076         sets in presence of derivation for subprogram types.
1078 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
1080         * gcc-interface/utils.c (begin_subprog_body): Assert that the body is
1081         present in the same context as the declaration.
1083 2015-02-07  Jakub Jelinek  <jakub@redhat.com>
1085         PR middle-end/64340
1086         * gcc-interface/trans.c (gigi): Recreate optimization_default_node
1087         and optimization_current_node after tweaking global_options.
1089 2015-02-05  Robert Dewar  <dewar@adacore.com>
1091         * prj-proc.adb, sem_aux.adb, exp_ch9.adb, errout.adb, prj-dect.adb,
1092         prj-nmsc.adb: Minor reformatting.
1094 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
1096         * sem_type.adb (Covers): In ASIS_Mode the Corresponding_Record
1097         of a protected type may not be available, so to check conformance
1098         with an interface type, examine the interface list in the type
1099         declaration directly.
1100         (Write_Overloads): Improve information for indirect calls,
1101         for debugger use.
1103 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
1105         * exp_ch3.adb (Make_Tag_Assignment): Do not perform this
1106         expansion activity in ASIS mode.
1108 2015-02-05  Javier Miranda  <miranda@adacore.com>
1110         * errout.adb (Error_Msg_PT): Add missing error.
1111         * sem_ch6.adb (Check_Synchronized_Overriding): Check the missing
1112         RM rule.  Code cleanup.
1113         * exp_ch9.adb (Build_Wrapper_Spec): Propagate "constant" in
1114         anonymous access types.  Found working on the tests. Code cleanup.
1116 2015-02-05  Vincent Celier  <celier@adacore.com>
1118         * prj-dect.adb (Parse_Attribute_Declaration): Continue scanning
1119         when there are incomplete withs.
1120         * prj-nmsc.adb (Process_Naming): Do not try to get the value
1121         of an element when it is nil.
1122         (Check_Naming): Do not check a nil suffix for illegality
1123         * prj-proc.adb (Expression): Do not process an empty term.
1124         * prj-strt.adb (Attribute_Reference): If attribute cannot be
1125         found, parse a possible index to avoid cascading errors.
1127 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
1129         * sem_aux.adb (Is_Derived_Type): A subprogram_type generated
1130         for an access_to_subprogram declaration is not a derived type.
1132 2015-02-05  Robert Dewar  <dewar@adacore.com>
1134         * errout.adb (Error_Msg_Internal): For non-serious error set
1135         Fatal_Error to Ignored.
1136         * lib-load.adb (Load_Unit): Minor comment updates.
1137         * sem_ch10.adb (Analyze_With_Clause): Propagate Fatal_Error
1138         setting from with'ed unit to with'ing unit.
1139         * sem_prag.adb (Analyze_Pragma, case Warnings): Document handling
1140         of ambiguity.
1142 2015-02-05  Yannick Moy  <moy@adacore.com>
1144         * sem_prag.adb, par-prag.adb: Minor code clean up.
1146 2015-02-05  Yannick Moy  <moy@adacore.com>
1148         * par-prag.adb (Pragma_Warnings): Update for extended form
1149         of pragma Warnings. The "one" argument case may now have 2 or
1150         3 arguments.
1151         * sem_prag.adb (Analyze_Pragma/Pragma_Warnings): Update for
1152         extended form of pragma Warnings. Pragma with tool name is either
1153         rewritten as null or as an equivalent form without tool name,
1154         before reanalysis.
1155         * snames.ads-tmpl (Name_Gnatprove): New name.
1157 2015-02-05  Robert Dewar  <dewar@adacore.com>
1159         * sem_ch13.adb (Add_Invariants): Don't assume invariant is
1160         standard Boolean.
1161         * sem_prag.adb (Analyze_Pragma, case Check): Don't assume
1162         condition is standard Boolean, it can be non-standard derived
1163         Boolean.
1165 2015-02-05  Robert Dewar  <dewar@adacore.com>
1167         * checks.adb (Enable_Range_Check): Disconnect attempted
1168         optimization for the case of range check for subscript of
1169         unconstrained array.
1171 2015-02-05  Robert Dewar  <dewar@adacore.com>
1173         * par-ch13.adb (With_Present): New function
1174         (Aspect_Specifications_Present): Handle WHEN in place of WITH
1175         (Get_Aspect_Specifications): Comment update.
1176         * par.adb: Comment updates.
1178 2015-02-05  Robert Dewar  <dewar@adacore.com>
1180         * errout.adb (Handle_Serious_Error): New setting of Fatal_Error.
1181         * frontend.adb (Frontend): New setting of Fatal_Error.
1182         * lib-load.adb (Create_Dummy_Package_Unit): New setting of
1183         Fatal_Error.
1184         (Load_Main_Source): New setting of Fatal_Error
1185         (Load_Unit): New setting of Fatal_Error.
1186         * lib-writ.adb (Add_Preprocessing_Dependency): New setting of
1187         Fatal_Error.
1188         (Ensure_System_Dependency): New setting of Fatal_Error.
1189         * lib.adb (Fatal_Error): New setting of Fatal_Error
1190         (Set_Fatal_Error): New setting of Fatal_Error.
1191         * lib.ads: New definition of Fatal_Error and associated routines.
1192         * par-ch10.adb (P_Compilation_Unit): New setting of Fatal_Error.
1193         * par-load.adb (Load): New setting of Fatal_Error.
1194         * rtsfind.adb (Load_RTU): New setting of Fatal_Error.
1195         * sem_ch10.adb (Analyze_Compilation_Unit): New setting of
1196         Fatal_Error.
1197         (Optional_Subunit): New setting of Fatal_Error.
1198         (Analyze_Proper_Body): New setting of Fatal_Error.
1199         (Load_Needed_Body): New setting of Fatal_Error.
1201 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
1203         * sem_res.adb (Resolve_Call): If the function being called has
1204         out parameters do not check for language version if the function
1205         comes from a predefined unit, as those are always compiled in
1206         Ada 2012 mode.
1208 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
1210         * sem_ch3.adb (Process_Full_View): Verify that the full view
1211         of a type extension must carry an explicit limited keyword if
1212         the partial view does (RM 7.3 (10.1)).
1214 2015-02-05  Robert Dewar  <dewar@adacore.com>
1216         * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads,
1217         sem_warn.ads: Minor reformatting.
1218         * exp_ch13.adb (Expand_N_Freeze_Entity): Add guard for aspect
1219         deleted by -gnatI.
1220         * sem_prag.adb (Analyze_Pragma, case Type_Invariant): Give
1221         error for abstract type.
1223 2015-02-05  Yannick Moy  <moy@adacore.com>
1225         * opt.ads (Warn_On_Suspicious_Contract): Update comment
1226         describing use.
1227         * sem_attr.adb (Analyze_Attribute/Attribute_Update): Warn on
1228         suspicious uses of 'Update.
1229         * sem_warn.adb, sem_warn.ads (Warn_On_Suspicious_Update): New
1230         function issues warning on suspicious uses of 'Update.
1231         * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads: Mark
1232         package spec and body as SPARK_Mode Off.
1234 2015-02-05  Robert Dewar  <dewar@adacore.com>
1236         * sem_prag.adb (Set_Elab_Unit_Name): New name for Set_Unit_Name
1237         (Analyze_Pragma): Change Set_Unit_Name to Set_Elab_Unit_Name
1238         (Set_Elab_Unit_Name): Generate reference for Elaborate[_All]
1239         * sem_warn.adb (Warn_On_Unreferenced_Entity): Suppress warning
1240         for exported entity.
1242 2015-02-05  Hristian Kirtchev  <kirtchev@adacore.com>
1244         * sem_prag.adb (Check_Pragma_Conformance): Add
1245         local variable Arg. Ensure that all errors are associated with
1246         the pragma if it appears without an argument. Add comments on
1247         various cases.
1249 2015-02-05  Robert Dewar  <dewar@adacore.com>
1251         * lib-xref.adb: Minor reformatting.
1253 2015-02-05  Tristan Gingold  <gingold@adacore.com>
1255         PR ada/64349da/64349
1256         * env.c: Fix thinko: handle Darwin case before default one.
1258 2015-01-30  Robert Dewar  <dewar@adacore.com>
1260         * a-assert.adb: Minor reformatting.
1261         * sem_ch13.adb: Minor comment clarification.
1262         * types.ads: Minor comment update.
1263         * sem_eval.adb (Real_Or_String_Static_Predicate_Matches): Avoid blow up
1264         when we have a predicate that is nothing but an inherited dynamic
1265         predicate.
1267 2015-01-30  Jerome Guitton  <guitton@adacore.com>
1269         * gcc-interface/Makefile.in (x86-vxworks): Update GCC_SPEC_FILES to
1270         include cert link spec.
1272 2015-01-30  Robert Dewar  <dewar@adacore.com>
1274         * einfo.ads: Minor comment fix.
1275         * freeze.adb (Freeze_Profile): Add test for suspicious import
1276         in pure unit.
1277         * sem_prag.adb (Process_Import_Or_Interface): Test for suspicious
1278         use in Pure unit is now moved to Freeze (to properly catch
1279         Pure_Function exemption).
1281 2015-01-30  Bob Duff  <duff@adacore.com>
1283         * sem_res.ads: Minor comment fix.
1284         * sem_type.adb: sem_type.adb (Remove_Conversions): Need to
1285         check both operands of an operator.
1287 2015-01-30  Yannick Moy  <moy@adacore.com>
1289         * a-assert.ads, a-assert.adb: Mark package spec in SPARK. Set assertion
1290         policy for Pre to Ignore.
1291         (Assert): Add precondition.
1293 2015-01-30  Robert Dewar  <dewar@adacore.com>
1295         * sem_prag.adb (Process_Import_Or_Interface): Warn if used in
1296         Pure unit.
1297         * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Clarify
1298         documentation for some special cases of invalid attempts at
1299         based integers.
1301 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
1303         * errout.ads: Minor reformatting.
1305 2015-01-30  Yannick Moy  <moy@adacore.com>
1307         * inline.adb (Process_Formals): Use the sloc of
1308         the inlined node instead of the sloc of the actual parameter,
1309         when replacing formal parameters by the actual one.
1311 2015-01-30  Arnaud Charlet  <charlet@adacore.com>
1313         * g-expect.adb (Get_Command_Output): Use infinite timeout when
1314         calling Expect.
1316 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
1318         * sem_ch12.adb (Analyze_Associations): If an in-parameter is
1319         defaulted in an instantiation, add an entry in the list of actuals
1320         to indicate the default value of the formal (as is already done
1321         for defaulted subprograms).
1323 2015-01-30  Javier Miranda  <miranda@adacore.com>
1325         * errout.adb (Error_Msg_PT): Minor error phrasing update.
1327 2015-01-30  Robert Dewar  <dewar@adacore.com>
1329         * sem_warn.adb (Warn_On_Known_Condition): Improve error message
1330         for object case.
1332 2015-01-30  Pierre-Marie de Rodat  <derodat@adacore.com>
1334         * exp_dbug.adb (Get_Encoded_Name): When
1335         -fgnat-encodings=minimal, do not generate names for biased types.
1337 2015-01-30  Tristan Gingold  <gingold@adacore.com>
1339         PR ada/64349
1340         * env.c: Move vxworks and darwin includes out of #ifdef IN_RTS.
1342 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
1344         * freeze.adb: Minor reformatting.
1346 2015-01-30  Javier Miranda  <miranda@adacore.com>
1348         * errout.ads (Error_Msg_PT): Replace Node_Id by Entity_Id and
1349         improve its documentation.
1350         * errout.adb (Error_Msg_PT): Improve the error message.
1351         * sem_ch6.adb (Check_Conformance): Update call to Error_Msg_PT.
1352         (Check_Synchronized_Overriding): Update call to Error_Msg_PT.
1353         * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup.
1355 2015-01-30  Robert Dewar  <dewar@adacore.com>
1357         * sem_warn.adb (Warn_On_Known_Condition): Do special casing of
1358         message for False case.
1360 2015-01-30  Doug Rupp  <rupp@adacore.com>
1362         * s-vxwext-kernel.ads (Task_Cont): Remove imported subprogram body.
1363         * s-vxwext-kernel.adb (Task_Cont): New subpprogram body specialized for
1364         kernel.
1366 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
1368         * sem_attr.adb (Declared_Within_Generic_Unit):
1369         New function to test whether an entity is declared within the
1370         declarative region of a given generic unit.
1371         (Resolve_Attribute): For checking legality of subprogram'Access within
1372         a generic unit, call new Boolean function Declared_Within_Generic_Unit
1373         instead of simply comparing the results of Enclosing_Generic_Unit on
1374         the prefix and access type.  Correct minor comment typos.
1376 2015-01-30  Robert Dewar  <dewar@adacore.com>
1378         * freeze.adb, exp_util.ads: Update comment.
1379         * exp_util.adb, exp_ch3.adb: Minor code reorganization and reformatting.
1380         * sem_util.adb: Minor: fix typo.
1382 2015-01-30  Hristian Kirtchev  <kirtchev@adacore.com>
1384         * sem_attr.adb (Analyze_Attribute): Ensure that
1385         the check concerning Refined_Post takes precedence over the
1386         other cases.
1388 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
1390         * sem_prag.adb: Minor typo fixes and reformatting.
1392 2015-01-30  Yannick Moy  <moy@adacore.com>
1394         * sem_attr.adb: Code clean up.
1396 2015-01-30  Robert Dewar  <dewar@adacore.com>
1398         * ali.adb (Scan_ALI): Set Serious_Errors flag in Unit record.
1399         * ali.ads (Unit_Record): Add new field Serious_Errors.
1400         * lib-writ.adb (Write_Unit_Information): Set SE (serious errors)
1401         attribute in U line.
1402         * lib-writ.ads: New attribute SE (serious erors) in unit line.
1404 2015-01-30  Hristian Kirtchev  <kirtchev@adacore.com>
1406         * einfo.adb Update the usage of attributes Entry_Bodies_Array,
1407         Lit_Indexes, Scale_Value, Storage_Size_Variable,
1408         String_Literal_Low_Bound along associated routines and
1409         Write_FieldX_Name.
1410         (Pending_Access_Types): New routine.
1411         (Set_Pending_Access_Types): New routine.
1412         (Write_Field15_Name): Add an entry for Pending_Access_Types.
1413         * einfo.ads Add new attribute Pending_Access_Types along
1414         with usage in nodes.  Update the usage of attributes
1415         Entry_Bodies_Array, Lit_Indexes, Scale_Value,
1416         Storage_Size_Variable, String_Literal_Low_Bound.
1417         (Pending_Access_Types): New routine along with pragma Inline.
1418         (Set_Pending_Access_Types): New routine along with pragma Inline.
1419         * exp_ch3.adb (Expand_Freeze_Array_Type): Add new local variable
1420         Ins_Node. Determine the insertion node for anonynous access type
1421         that acts as a component type of an array. Update the call to
1422         Build_Finalization_Master.
1423         (Expand_Freeze_Record_Type): Update
1424         the calls to Build_Finalization_Master.
1425         (Freeze_Type): Remove
1426         local variable RACW_Seen. Factor out the code that deals with
1427         remote access-to-class-wide types. Create a finalization master
1428         when the designated type contains a private component. Fully
1429         initialize all pending access types.
1430         (Process_RACW_Types): New routine.
1431         (Process_Pending_Access_Types): New routine.
1432         * exp_ch4.adb (Expand_Allocator_Expression): Allocation no longer
1433         needs to set primitive Finalize_Address.
1434         (Expand_N_Allocator): Allocation no longer sets primitive
1435         Finalize_Address.
1436         * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
1437         Update the call to Build_Finalization_Master.
1438         (Make_Build_In_Place_Call_In_Allocator): Allocation no longer
1439         needs to set primitive Finalize_Address.
1440         * exp_ch7.adb (Add_Pending_Access_Type): New routine.
1441         (Build_Finalization_Master): New parameter profile. Associate
1442         primitive Finalize_Address with the finalization master if the
1443         designated type has been frozen, otherwise treat the access
1444         type as pending. Simplify the insertion of the master and
1445         related initialization code.
1446         (Make_Finalize_Address_Body): Allow Finalize_Address for class-wide
1447         abstract types.
1448         (Make_Set_Finalize_Address_Call): Remove forlam parameter Typ.
1449         Simplify the implementation.
1450         * exp_ch7.ads (Build_Finalization_Master): New parameter profile
1451         along with comment on usage.
1452         (Make_Set_Finalize_Address_Call): Remove formal parameter Typ. Update
1453         the comment on usage.
1454         * exp_util.adb (Build_Allocate_Deallocate_Proc): Use routine
1455         Finalize_Address to retrieve the primitive.
1456         (Finalize_Address): New routine.
1457         (Find_Finalize_Address): Removed.
1458         * exp_util.ads (Finalize_Address): New routine.
1459         * freeze.adb (Freeze_All): Remove the generation of finalization
1460         masters.
1461         * sem_ch3.adb (Analyze_Full_Type_Declaration): Propagate any
1462         pending access types from the partial to the full view.
1464 2015-01-30  Robert Dewar  <dewar@adacore.com>
1466         * sem_disp.adb: Minor reformatting.
1467         * sem_disp.ads: Documentation update.
1469 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
1471         * sem_disp.adb (Is_Dynamically_Tagged): when applied to an entity
1472         or a function call, return True if type is class-wide.
1473         * sem_res.adb (Resolve_Case_Expression, Resolve_If_Expression);
1474         Apply RM 4.5.7 (17/3): all or none of the dependent expression
1475         of a conditional expression must be dynamically tagged.
1477 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
1479         * sem_ch6.adb (Analyze_Function_Return): In an extended return
1480         statement, apply accessibility check to result object when there
1481         is no initializing expression (Ada 2012 RM 6.5 (5.4/3))
1483 2015-01-30  Robert Dewar  <dewar@adacore.com>
1485         * sem_ch4.adb (Analyze_If_Expression): Allow for non-standard
1486         Boolean for case where ELSE is omitted.
1487         * sem_res.adb: Minor reformatting.
1489 2015-01-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1491         Fix build under cygwin/64.
1492         * adaint.h: Add check for __CYGWIN__.
1493         * mingw32.h: Prevent windows.h from including x86intrin.h in GCC.
1495 2015-01-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1497         PR ada/64640
1498         * adaint.c: Handle __CYGWIN__ like __MINGW32__ here.
1499         * mingw32.h: Don't include <tchar.h> under cygwin.
1500         (_O_U8TEXT, _O_U16TEXT, _O_WTEXT): Set to _O_TEXT if not yet defined.
1502 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
1504         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8)
1505         (DEF_FUNCTION_TYPE_VAR_12): New macros.
1507 2015-01-09  Michael Collison  <michael.collison@linaro.org>
1509         * gcc-interface/cuintp.c: Include hash-set.h, machmode.h,
1510         vec.h, double-int.h, input.h, alias.h, symtab.h,
1511         fold-const.h, wide-int.h, and inchash.h due to
1512         flattening of tree.h.
1513         * gcc-interface/decl.c: Ditto.
1514         * gcc-interface/misc.c: Ditto.
1515         * gcc-interface/targtyps.c: Include hash-set.h, machmode.h,
1516         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h,
1517         fold-const.h, wide-int.h, and inchash.h due to
1518         flattening of tree.h.
1519         * gcc-interface/trans.c: Include hash-set.h, machmode.h,
1520         vec.h, double-int.h, input.h, alias.h, symtab.h, real.h,
1521         fold-const.h, wide-int.h, inchash.h due to
1522         flattening of tree.h.
1523         * gcc-interface/utils.c: Include hash-set.h, machmode.h,
1524         vec.h, double-int.h, input.h, alias.h, symtab.h,
1525         fold-const.h, wide-int.h, and inchash.h due to
1526         flattening of tree.h.
1527         * gcc-interface/utils2.c: Ditto.
1529 2015-01-07  Robert Dewar  <dewar@adacore.com>
1531         * sem_warn.adb (Check_One_Unit): Don't give unused entities
1532         warning for a package which is used as a generic parameter.
1534 2015-01-07  Bob Duff  <duff@adacore.com>
1536         * usage.adb (Usage): Correct documentation of
1537         -gnatw.f switches.
1539 2015-01-07  Robert Dewar  <dewar@adacore.com>
1541         * s-fileio.adb: Minor reformatting.
1543 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1545         * sem_ch12.adb (Instantiate_Object): If formal is an anonymous
1546         access to subprogram, replace its formals with new entities when
1547         building the object declaration, both if actual is present and
1548         when it is defaulted.
1550 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1552         * sem_ch5.adb (Analyze_Assignment): If left-hand side is a view
1553         conversion and type of expression has invariant, apply invariant
1554         check on expression.
1556 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1558         * sem_ch3.adb (Create_Constrained_Components): A call to
1559         Gather_Components may detect an error if an inherited discriminant
1560         that controls a variant is non-static.
1561         * sem_aggr.adb (Resolve_Record_Aggregate, Step 5): The call to
1562         Gather_Components may report an error if an inherited discriminant
1563         in a variant in non-static.
1564         * sem_util.adb (Gather_Components): If a non-static discriminant
1565         is inherited do not report error here, but let caller handle it.
1566         (Find_Actual): Small optimization.
1568 2015-01-07  Bob Duff  <duff@adacore.com>
1570         * usage.adb (Usage): Document -gnatw.f switch.
1572 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1574         * sem_ch12.adb: Code clean up and minor reformatting.
1576 2015-01-07  Robert Dewar  <dewar@adacore.com>
1578         * exp_ch4.adb (Expand_N_Type_Conversion): Add guard for
1579         Raise_Accessibility_Error call.
1580         * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add documentation
1581         on handling of invalid digits in based constants.
1582         * s-fatgen.ads: Minor reformatting.
1583         * sem_attr.adb (Analyze_Attribute, case Unrestricted_Access):
1584         Avoid noting bogus modification for Valid test.
1585         * snames.ads-tmpl (Name_Attr_Long_Float): New Name.
1586         * einfo.ads: Minor reformatting.
1587         * sem_warn.adb: Minor comment clarification.
1588         * sem_ch12.adb: Minor reformatting.
1590 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1592         * exp_ch5.adb (Expand_Predicated_Loop): Handle properly loops
1593         over static predicates when the loop parameter specification
1594         carries a Reverse indicator.
1596 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1598         * sem_ch12.adb (Instantiate_Object): If formal has a default,
1599         actual is missing and formal has an anonymous access type, copy
1600         access definition in full so that tree for instance is properly
1601         formatted for ASIS use.
1603 2015-01-07  Bob Duff  <duff@adacore.com>
1605         * sem_elab.adb (Check_Internal_Call_Continue): Give a warning
1606         for P'Access, where P is a subprogram in the same package as
1607         the P'Access, and the P'Access is evaluated at elaboration
1608         time, and occurs before the body of P. For example, "X : T :=
1609         P'Access;" would allow a subsequent call to X.all to be an
1610         access-before-elaboration error; hence the warning. This warning
1611         is enabled by the -gnatw.f switch.
1612         * opt.ads (Warn_On_Elab_Access): New flag for warning switch.
1613         * warnsw.adb (Set_Dot_Warning_Switch): Set Warn_On_Elab_Access.
1614         * gnat_ugn.texi: Document the new warning.
1616 2015-01-07  Johannes Kanig  <kanig@adacore.com>
1618         * lib-xref-spark_specific.adb (Collect_SPARK_Xrefs): Skip unneeded
1619         cross ref files.
1621 2015-01-07  Robert Dewar  <dewar@adacore.com>
1623         * s-taprop-linux.adb, clean.adb: Minor reformatting.
1625 2015-01-07  Arnaud Charlet  <charlet@adacore.com>
1627         * s-tassta.adb: Relax some overzealous assertions.
1629 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1631         * sem_ch6.adb (Analyze_Return_Type): An call that returns a limited
1632         view of a type is legal when context is a thunk generated for
1633         operation inherited from an interface.
1634         * exp_ch6.adb (Expand_Simple_Function_Return): If context is
1635         a thunk and return type is an incomplete type do not continue
1636         expansion; thunk will be fully elaborated when generating code.
1638 2015-01-07  Doug Rupp  <rupp@adacore.com>
1640         * s-osinte-mingw.ads (LARGE_INTEGR): New subtype.
1641         (QueryPerformanceFrequency): New imported procedure.
1642         * s-taprop-mingw.adb (RT_Resolution): Call above and return
1643         resolution vice a hardcoded value.
1644         * s-taprop-solaris.adb (RT_Resolution): Call clock_getres and return
1645         resolution vice a hardcoded value.
1646         * s-linux-android.ads (clockid_t): New subtype.
1647         * s-osinte-aix.ads (clock_getres): New imported subprogram.
1648         * s-osinte-android.ads (clock_getres): Likewise.
1649         * s-osinte-freebsd.ads (clock_getres): Likewise.
1650         * s-osinte-solaris-posix.ads (clock_getres): Likewise.
1651         * s-osinte-darwin.ads (clock_getres): New subprogram.
1652         * s-osinte-darwin.adb (clock_getres): New subprogram.
1653         * thread.c (__gnat_clock_get_res) [__APPLE__]: New function.
1654         * s-taprop-posix.adb (RT_Resolution): Call clock_getres to
1655         calculate resolution vice hard coded value.
1657 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1659         * exp_util.adb (Make_CW_Equivalent_Type): If root type is a
1660         limited view, use non-limited view when available to create
1661         equivalent record type.
1663 2015-01-07  Vincent Celier  <celier@adacore.com>
1665         * gnatcmd.adb: Remove command Sync and any data and processing
1666         related to this command. Remove project processing for gnatstack.
1667         * prj-attr.adb: Remove package Synchonize and its attributes.
1669 2015-01-07  Vincent Celier  <celier@adacore.com>
1671         * clean.adb: Minor error message change.
1673 2015-01-07  Tristan Gingold  <gingold@adacore.com>
1675         PR ada/64349  
1676         * env.c (__gnat_environ): Adjust for darwin9/darwin10.
1678 2015-01-07  Javier Miranda  <miranda@adacore.com>
1680         * sem_ch10.adb (Analyze_With_Clause): Compiling under -gnatq
1681         protect the frontend against never ending recursion caused by
1682         circularities in the sources.
1684 2015-01-07  Robert Dewar  <dewar@adacore.com>
1686         * a-reatim.adb, make.adb, exp_pakd.adb, i-cpoint.adb, sem_ch8.adb,
1687         exp_ch3.adb: Minor reformatting.
1689 2015-01-07  Doug Rupp  <rupp@adacore.com>
1691         * s-linux.ads (clockid_t): New subtype.
1692         * s-osinte-linux.ads (pragma Linker Options): Add -lrt.
1693         (clockid_t): New subtype.
1694         (clock_getres): Import system call.
1695         * s-taprop-linux.adb (System.OS_Constants): With and rename.
1696         (RT_Resolution): Remove
1697         hardcoded value and call clock_getres.
1698         * s-linux-sparc.ads, s-linux-mipsel.ads, s-linux-hppa.ads,
1699         s-linux-alpha.ads, s-linux-x32.ads (clockid_t): Add new subtype.
1701 2015-01-07  Robert Dewar  <dewar@adacore.com>
1703         * sem_warn.adb (Check_One_Unit): Guard against context item
1704         with no Entity field.
1706 2015-01-07  Vincent Celier  <celier@adacore.com>
1708         * clean.adb (Gnatclean): Warn that 'gnatclean -P' is obsolete.
1709         * make.adb (Initialize): Warn that 'gnatmake -P' is obsolete.
1711 2015-01-07  Vincent Celier  <celier@adacore.com>
1713         * prj-conf.adb (Parse_Project_And_Apply_Config): Always finalize
1714         errors/warnings in the first parsing of the project files,
1715         to display the warnings when there is no errors.
1717 2015-01-07  Tristan Gingold  <gingold@adacore.com>
1719         * i-cpoint.adb (Copy_Terminated_Array): Nicely handle null target.
1721 2015-01-07  Doug Rupp  <rupp@adacore.com>
1723         * s-taprop-vxworks.adb (Stop_All_Tasks): Pass return
1724         value from Int_Lock as parameter to Int_Unlock.
1725         * s-osinte-vxworks.ads (Int_Unlock): Add parameter.
1726         * s-vxwext.ads (Int_Unlock): Likewise.
1727         * s-vxwext-kernel.adb (intUnlock, Int_Unlock): Likewise.
1728         * s-vxwext-kernel.ads (Int_Unlock): Likewise.
1729         * s-vxwext-rtp.adb (Int_Unlock): Likewise.
1730         * s-vxwext-rtp.ads (Int_Unlock): Likewise.
1732 2015-01-07  Pierre-Marie de Rodat  <derodat@adacore.com>
1734         * exp_pakd.adb: Add a comment in exp_pakd.adb to explain why we
1735         keep ___XP suffixes
1737 2015-01-07  Tristan Gingold  <gingold@adacore.com>
1739         * i-cpoint.adb (Copy_Terminated_Array): Use Copy_Array to
1740         handle overlap.
1742 2015-01-07  Eric Botcazou  <ebotcazou@adacore.com>
1744         * sem_ch3.adb (Analyze_Full_Type_Declaration): Do not
1745         automatically set No_Strict_Aliasing on access types.
1746         * fe.h (No_Strict_Aliasing_CP): Declare.
1747         * gcc-interface/trans.c (gigi): Force flag_strict_aliasing to 0 if
1748         No_Strict_Aliasing_CP is set.
1750 2015-01-07  Johannes Kanig  <kanig@adacore.com>
1752         * sem_ch8.adb (Analyze_Subprogram_Renaming) do
1753         not build function wrapper in gnatprove mode when the package
1754         is externally axiomatized.
1756 2015-01-07  Jose Ruiz  <ruiz@adacore.com>
1758         * a-reatim.adb (Time_Of): Reduce the number of spurious overflows in
1759         intermediate computations when the parameters have different signs.
1761 2015-01-07  Javier Miranda  <miranda@adacore.com>
1763         * exp_ch3.adb (Build_Init_Procedure): For derived types,
1764         improve the code which takes care of identifying and moving to
1765         the beginning of the init-proc the call to the init-proc of the
1766         parent type.
1768 2015-01-07  Olivier Hainque  <hainque@adacore.com>
1770         * gcc-interface/trans.c (gnat_to_gnu, <N_Expression_With_Action>):
1771         Elaborate the expression as part of the same stmt group as the actions.
1773 2015-01-07  Robert Dewar  <dewar@adacore.com>
1775         * sem_ch3.adb: Minor error message change.
1777 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1779         * sem_prag.adb (Analyze_Pragma, case Preelaborable_Initialization):
1780         Following AI05-028, the pragam applies legally to any composite type.
1782 2015-01-07  Arnaud Charlet  <charlet@adacore.com>
1784         * s-osinte-vxworks.adb, s-osinte-vxworks.ads
1785         (sigwait, sigwaitinfo): Removed, not needed after all on any
1786         VxWorks configurations.
1788 2015-01-07  Robert Dewar  <dewar@adacore.com>
1790         * sem_ch3.adb, freeze.adb, exp_disp.adb: Minor reformatting.
1792 2015-01-07  Javier Miranda  <miranda@adacore.com>
1794         * exp_disp.adb (Expand_Interface_Conversion): Adding missing
1795         generation of accessibility check.
1797 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1799         * sem_ch3.adb (Derived_Type_Declaration): In the case of an
1800         illegal completion from a class- wide type, set etype of the
1801         derived type properly to prevent cascaded errors.
1803 2015-01-07  Robert Dewar  <dewar@adacore.com>
1805         * prj.ads, i-cpoint.adb, freeze.adb, ghost.adb, prj-err.adb: Minor
1806         reformatting.
1808 2015-01-07  Robert Dewar  <dewar@adacore.com>
1810         * restrict.adb (Check_Restriction_No_Use_Of_Attribute):
1811         New procedure.
1812         (OK_No_Use_Of_Entity_Name): New function.
1813         (Set_Restriction_No_Use_Of_Entity): New procedure.
1814         * restrict.ads (Check_Restriction_No_Use_Of_Attribute):
1815         New procedure.
1816         (OK_No_Use_Of_Entity_Name): New function.
1817         (Set_Restriction_No_Use_Of_Entity): New procedure.
1818         * sem_ch8.adb (Find_Direct_Name): Add check for violation of
1819         No_Use_Of_Entity.
1820         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
1821         Add processing for new restriction No_Use_Of_Entity.
1823 2015-01-07  Eric Botcazou  <ebotcazou@adacore.com>
1825         * freeze.adb (Freeze_Array_Type): Apply same handling to Is_Atomic
1826         component type as to Has_Atomic_Components type.  Remove useless
1827         test on Is_Aliased component type.
1829 2015-01-07  Hristian Kirtchev  <kirtchev@adacore.com>
1831         * alloc.ads Alphabetize several declarations. Add constants
1832         Ignored_Ghost_Units_Initial and Ignored_Ghost_Units_Increment.
1833         * atree.adb Add with and use clauses for Opt.
1834         (Allocate_Initialize_Node): Mark a node as ignored Ghost
1835         if it is created in an ignored Ghost region.
1836         (Ekind_In): New variant.
1837         (Is_Ignored_Ghost_Node): New routine.
1838         (Set_Is_Ignored_Ghost_Node): New routine.
1839         * atree.adb Aplhabetize several subprograms declarations. Flag
1840         Spare0 is now known as Is_Ignored_Ghost_Node.
1841         (Ekind_In): New variant.
1842         (Is_Ignored_Ghost_Node): New routine.
1843         (Set_Is_Ignored_Ghost_Node): New routine.
1844         * einfo.adb: Flag 279 is now known as Contains_Ignored_Ghost_Code.
1845         (Contains_Ignored_Ghost_Code): New routine.
1846         (Set_Contains_Ignored_Ghost_Code): New routine.
1847         (Set_Is_Checked_Ghost_Entity, Set_Is_Ignored_Ghost_Entity):
1848         It is now possible to set this property on an unanalyzed entity.
1849         (Write_Entity_Flags): Output the status of flag
1850         Contains_Ignored_Ghost_Code.
1851         * einfo.ads New attribute Contains_Ignored_Ghost_Code along with
1852         usage in nodes.
1853         (Contains_Ignored_Ghost_Code): New routine
1854         along with pragma Inline.
1855         (Set_Contains_Ignored_Ghost_Code): New routine along with pragma Inline.
1856         * exp_ch3.adb Add with and use clauses for Ghost.
1857         (Freeze_Type): Capture/restore the value of Ghost_Mode on entry/exit.
1858         Set the Ghost_Mode in effect.
1859         (Restore_Globals): New routine.
1860         * exp_ch7.adb (Process_Declarations): Do not process a context
1861         that invoves an ignored Ghost entity.
1862         * exp_dbug.adb (Qualify_All_Entity_Names): Skip an ignored Ghost
1863         construct that has been rewritten as a null statement.
1864         * exp_disp.adb Add with and use clauses for Ghost.
1865         (Make_DT): Capture/restore the value of Ghost_Mode on entry/exit. Set
1866         the Ghost_Mode in effect.
1867         (Restore_Globals): New routine.
1868         * exp_util.adb (Requires_Cleanup_Actions): An ignored Ghost entity
1869         does not require any clean up. Add two missing cases that deal
1870         with block statements.
1871         * freeze.adb Add with and use clauses for Ghost.
1872         (Freeze_Entity): Capture/restore the value of Ghost_Mode on entry/exit.
1873         Set the Ghost_Mode in effect.
1874         (Restore_Globals): New routine.
1875         * frontend.adb Add with and use clauses for Ghost. Remove any
1876         ignored Ghost code from all units that qualify.
1877         * ghost.adb New unit.
1878         * ghost.ads New unit.
1879         * gnat1drv.adb Add with clause for Ghost. Initialize and lock
1880         the table in package Ghost.
1881         * lib.ads: Alphabetize several subprogram declarations.
1882         * lib-xref.adb (Output_References): Do not generate reference
1883         information for ignored Ghost entities.
1884         * opt.ads Add new type Ghost_Mode_Type and new global variable
1885         Ghost_Mode.
1886         * rtsfind.adb (Load_RTU): Provide a clean environment when
1887         loading a runtime unit.
1888         * sem.adb (Analyze): Capture/restore the value of Ghost_Mode on
1889         entry/exit as the node may set a different mode.
1890         (Do_Analyze):
1891         Capture/restore the value of Ghost_Mode on entry/exit as the
1892         unit may be withed from a unit with a different Ghost mode.
1893         * sem_ch3.adb Add with and use clauses for Ghost.
1894         (Analyze_Full_Type_Declaration, Analyze_Incomplete_Type_Decl,
1895         Analyze_Number_Declaration, Analyze_Private_Extension_Declaration,
1896         Analyze_Subtype_Declaration): Set the Ghost_Mode in effect. Mark
1897         the entity as Ghost when there is a Ghost_Mode in effect.
1898         (Array_Type_Declaration): The implicit base type inherits the
1899         "ghostness" from the array type.
1900         (Derive_Subprogram): The
1901         alias inherits the "ghostness" from the parent subprogram.
1902         (Make_Implicit_Base): The implicit base type inherits the
1903         "ghostness" from the parent type.
1904         * sem_ch5.adb Add with and use clauses for Ghost.
1905         (Analyze_Assignment): Set the Ghost_Mode in effect.
1906         * sem_ch6.adb Add with and use clauses for Ghost.
1907         (Analyze_Abstract_Subprogram_Declaration, Analyze_Procedure_Call,
1908         Analyze_Subprogram_Body_Helper, Analyze_Subprogram_Declaration):
1909         Set the Ghost_Mode in effect. Mark the entity as Ghost when
1910         there is a Ghost_Mode in effect.
1911         * sem_ch7.adb Add with and use clauses for Ghost.
1912         (Analyze_Package_Body_Helper, Analyze_Package_Declaration,
1913         Analyze_Private_Type_Declaration): Set the Ghost_Mode in
1914         effect. Mark the entity as Ghost when there is a Ghost_Mode
1915         in effect.
1916         * sem_ch8.adb Add with and use clauses for Ghost.
1917         (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
1918         Analyze_Object_Renaming, Analyze_Package_Renaming,
1919         Analyze_Subprogram_Renaming): Set the Ghost_Mode in effect. Mark
1920         the entity as Ghost when there is a Ghost_Mode in effect.
1921         (Find_Type): Check the Ghost context of a type.
1922         * sem_ch11.adb Add with and use clauses for Ghost.
1923         (Analyze_Exception_Declaration): Set the Ghost_Mode in
1924         effect. Mark the entity as Ghost when there is a Ghost_Mode
1925         in effect.
1926         * sem_ch12.adb Add with and use clauses for Ghost.
1927         (Analyze_Generic_Package_Declaration,
1928         Analyze_Generic_Subprogram_Declaration): Set the Ghost_Mode in effect.
1929         Mark the entity as Ghost when there is a Ghost_Mode in effect.
1930         * sem_prag.adb Add with and use clauses for Ghost.
1931         (Analyze_Pragma): Ghost-related checks are triggered when there
1932         is a Ghost mode in effect.
1933         (Create_Abstract_State): Mark the
1934         entity as Ghost when there is a Ghost_Mode in effect.
1935         * sem_res.adb Add with and use clauses for Ghost.
1936         (Check_Ghost_Context): Removed.
1937         * sem_util.adb (Check_Ghost_Completion): Removed.
1938         (Check_Ghost_Derivation): Removed.
1939         (Incomplete_Or_Partial_View):
1940         Add a guard in case the entity has not been analyzed yet
1941         and does carry a scope.
1942         (Is_Declaration): New routine.
1943         (Is_Ghost_Entity): Removed.
1944         (Is_Ghost_Statement_Or_Pragma):
1945         Removed.
1946         (Is_Subject_To_Ghost): Removed.
1947         (Set_Is_Ghost_Entity):
1948         Removed.
1949         (Within_Ghost_Scope): Removed.
1950         * sem_util.adb (Check_Ghost_Completion): Removed.
1951         (Check_Ghost_Derivation): Removed.
1952         (Is_Declaration): New routine.
1953         (Is_Ghost_Entity): Removed.
1954         (Is_Ghost_Statement_Or_Pragma): Removed.
1955         (Is_Subject_To_Ghost): Removed.
1956         (Set_Is_Ghost_Entity): Removed.
1957         (Within_Ghost_Scope): Removed.
1958         * sinfo.ads Add a section on Ghost mode.
1959         * treepr.adb (Print_Header_Flag): New routine.
1960         (Print_Node_Header): Factor out code. Output flag
1961         Is_Ignored_Ghost_Node.
1962         * gcc-interface/Make-lang.in: Add dependency for unit Ghost.
1964 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
1966         * freeze.adb (Freeze_Array_Type) <Complain_CS>: Remove always
1967         true test and unreachable 'else' arm.
1969 2015-01-06  Vincent Celier  <celier@adacore.com>
1971         * prj-conf.adb (Check_Target): Improve error message when
1972         there are mismatched targets between the on in the configuration
1973         project file and the specified one, either in the main project
1974         file or in the --target= switch.
1976 2015-01-06  Pascal Obry  <obry@adacore.com>
1978         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Mode and
1979         Install_Name attribute definitions.
1981 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1983         * freeze.adb (Wrap_Imported_Subprogram): Indicate that the
1984         generated Import pragma for the internal imported procedure does
1985         not come from an aspect, so that Is_Imported can be properly
1986         set for it.
1988 2015-01-06  Gary Dismukes  <dismukes@adacore.com>
1990         * sem_ch12.adb (Might_Inline_Subp): Record whether
1991         any subprograms in the generic package are marked with
1992         pragma Inline_Always (setting flag Has_Inline_Always).
1993         (Analyze_Package_Instantiation): Add test of Has_Inline_Always
1994         alongside existing test of Front_End_Inlining as alternative
1995         conditions for setting Inline_Now. Also add test of
1996         Has_Inline_Always along with Front_End_Inlining test as an
1997         alternative condition for setting Needs_Body to False.
1999 2015-01-06  Tristan Gingold  <gingold@adacore.com>
2001         * i-cpoint.adb (Copy_Array): Handle overlap.
2003 2015-01-06  Pascal Obry  <obry@adacore.com>
2005         * bindgen.adb: Minor style fix.
2007 2015-01-06  Robert Dewar  <dewar@adacore.com>
2009         * sem_util.ads, sem_util.adb: Minor reformatting.
2011 2015-01-06  Vincent Celier  <celier@adacore.com>
2013         * prj-conf.adb (Parse_Project_And_Apply_Config): Reset incomplete
2014         with flags before parsing the projects.
2015         * prj-err.adb (Error_Msg): Do nothing if there are incomplete withs.
2016         * prj-part.adb (Post_Parse_Context_Clause): Set Incomplete_Withs
2017         to True in the flags, when Ignore_Missing_With is True and an
2018         imported project cannot be found.
2019         * prj-proc.adb (Expression): When there are incomplete withs and
2020         a variable or attribute is not found, set the variable/attribute
2021         to unknown.
2022         * prj.ads (Processing_Flags): New flag Incomplete_Withs,
2023         defaulted to False.
2025 2015-01-06  Vasiliy Fofanov  <fofanov@adacore.com>
2027         * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-conf.adb,
2028         prj-err.adb: Add new switch --no-command-line.
2030 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2032         * sem_ch12.adb: Sloc of wrapper is that of instantiation.
2034 2015-01-06  Robert Dewar  <dewar@adacore.com>
2036         * sem_ch11.adb: Minor reformatting.
2038 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2040         * exp_aggr.adb (Get_Assoc_Expr): New routine internal to
2041         Build_Array_Aggr_Code, used to initialized components covered
2042         by a box association. If the component type is scalar and has
2043         a default aspect, use it to initialize such components.
2045 2015-01-06  Pascal Obry  <obry@adacore.com>
2047         * rtinit.c (__gnat_runtime_initialize): Add a parameter to
2048         control the setup of the exception handler.
2049         * initialize.c: Remove unused declaration.
2050         * bindgen.adb: Always call __gnat_runtime_initialize and pass
2051         whether the exeception handler must be set or not.
2053 2015-01-06  Thomas Quinot  <quinot@adacore.com>
2055         * freeze.adb (Set_SSO_From_Defaults): When setting scalar storage
2056         order to native from default, make sure to also adjust bit order.
2057         * exp_aggr.adb: Minor reformatting.
2059 2015-01-06  Robert Dewar  <dewar@adacore.com>
2061         * s-valllu.adb, s-valllu.ads, s-valuti.ads, s-valuns.adb, s-valuns.ads,
2062         s-valrea.adb, s-valrea.ads: Add some additional guards for
2063         Str'Last = Positive'Last.
2065 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2067         * sem_ch12.adb, sem_ch8.adb: Ongoing work for wrappers for actual
2068         subprograms.
2070 2015-01-06  Javier Miranda  <miranda@adacore.com>
2072         * exp_disp.adb (Expand_Interface_Conversion): Reapply patch.
2074 2015-01-06  Thomas Quinot  <quinot@adacore.com>
2076         * sem_util.ads: Minor reformatting.
2077         * sem_cat.adb (In_RCI_Visible_Declarations): Change back to...
2078         (In_RCI_Declaration) Return to old name, as proper checking of
2079         entity being in the visible part depends on entity kind and must
2080         be done by the caller.
2082 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2084         * sem_ch12.adb, sem_ch12.ads, sem_ch8.adb: Ongoing work for wrappers
2085         for operators in SPARK.
2087 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2089         * sem_aggr.adb (Get_Value): In ASIS mode, preanalyze the
2090         expression in an others association before making copies for
2091         separate resolution and accessibility checks. This ensures that
2092         the type of the expression is available to ASIS in all cases,
2093         in particular if the expression is itself an aggregate.
2095 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
2097         * einfo.ads (Has_Independent_Components): Document extended
2098         usage.
2099         * einfo.adb (Has_Independent_Components): Remove obsolete assertion.
2100         (Set_Has_Independent_Components): Adjust assertion.
2101         * sem_prag.adb (Analyze_Pragma): Also set Has_Independent_Components
2102         for pragma Atomic_Components.  Set Has_Independent_Components
2103         on the object instead of the type for an object declaration with
2104         pragma Independent_Components.
2106 2015-01-06  Olivier Hainque  <hainque@adacore.com>
2108         * set_targ.adb (Read_Target_Dependent_Values): Set
2109         Long_Double_Index when "long double" is read.
2110         (elaboration code): Register_Back_End_Types only when not reading from
2111         config files. Doing otherwise is pointless and error prone.
2113 2015-01-06  Robert Dewar  <dewar@adacore.com>
2115         * s-valrea.adb (Value_Real): Check for Str'Last = Positive'Last
2117 2015-01-06  Robert Dewar  <dewar@adacore.com>
2119         * a-wtgeau.adb, a-ztgeau.adb, a-tigeau.adb (String_Skip): Raise PE if
2120         Str'Last = Positive'Last.
2122 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2124         * sem_ch6.adb (Matches_Limited_View): Handle properly the case
2125         where the non-limited type is a generic actual and appears as
2126         a subtype of the non-limited view of the other.
2127         * freeze.adb (Build_Renamed_Body): If the return type of the
2128         declaration that is being completed is a limited view and the
2129         non-limited view is available, use it in the specification of
2130         the generated body.
2132 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2134         * sem_ch3.adb (Find_Type_Name): If there is a previous tagged
2135         incomplete view, the type of the classwide type common to both
2136         views is the type being declared.
2138 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
2140         * einfo.ads (Is_Independent): Further document extended usage.
2142 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
2144         * einfo.ads (Is_Independent): Document extended usage.
2145         * einfo.adb (Is_Independent): Remove obsolete assertion.
2146         (Set_Is_Independent): Likewise.
2147         * sem_prag.adb (Process_Atomic_Shared_Volatile): Rename into...
2148         (Process_Atomic_Independent_Shared_Volatile): ...this.
2149         Deal with pragma Independent here.
2150         (Analyze_Pragma): Adjust
2151         to above renaming and also invoke it for pragma Independent.
2152         Adjust comment for Independent_Components.
2154 2015-01-06  Robert Dewar  <dewar@adacore.com>
2156         * snames.ads-tmpl: Remove entries for attribute Enum_Image.
2157         * exp_attr.adb: Remove reference to Attribute_Enum_Image.
2159 2015-01-06  Robert Dewar  <dewar@adacore.com>
2161         * s-vallli.adb (Value_Long_Long_Integer): Handle case of Str'Last
2162         = Positive'Last.
2163         * s-valllu.adb (Value_Long_Long_Unsigned): Handle case of
2164         Str'Last = Positive'Last.
2166 2015-01-06  Robert Dewar  <dewar@adacore.com>
2168         * sem_prag.adb (Process_Inline): Remove redundant construct
2169         warning (-gnatw.r) for an ineffective pragma Inline.
2171 2015-01-06  Robert Dewar  <dewar@adacore.com>
2173         * s-valint.adb: Fix typo in last checkin.
2174         * s-valuns.adb (Value_Unsigned): More efficient fix for
2175         Positive'Last case.
2176         * sem_attr.adb (Analyze_Attribute): Minor reformatting
2177         (Eval_Attribute): Static ervaluation of 'Img for enumeration types.
2179 2015-01-06  Robert Dewar  <dewar@adacore.com>
2181         * s-valint.adb, s-valuns.adb (Value_Integer): Deal with case where
2182         Str'Last = Positive'Last
2184 2015-01-06  Thomas Quinot  <quinot@adacore.com>
2186         * xoscons.adb: Display exception information and return non-zero
2187         exit status in top level exception handler.
2189 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2191         * sem_ch8.adb: Code clean up.
2193 2015-01-06  Tristan Gingold  <gingold@adacore.com>
2195         * targparm.ads: Remove obsolete comment.
2197 2015-01-06  Olivier Hainque  <hainque@adacore.com>
2199         * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Variable): When
2200         constructing a ref to variable, update inner_const_flag from the
2201         variable TREE_READONLY attribute.
2202         * gcc-interface/targtyps.c (WIDEST_HARDWARE_FP_SIZE): Remove default
2203         definition.
2204         (get_target_float_size): Remove.
2205         (get_target_double_size): Remove.
2206         (get_target_long_double_size): Remove.
2208 2015-01-06  Pascal Obry  <obry@adacore.com>
2210         * adaint.c (ProcListEvt): Set to NULL.
2211         * rtinit.c: New file.
2212         (__gnat_rt_init_count): New reference counter set to 0.
2213         (__gnat_runtime_initialize): Move code here from __gnat_initialize when
2214         this code is actually needed for the runtime initialization. This
2215         routine returns immediately if the initialization has already been done.
2216         * final.c: Revert previous change.
2217         * rtfinal.c: New file.
2218         (__gnat_runtime_finalize)[Win32]: Add finalization of the critical
2219         section and event. The default version of this routine is empty (except
2220         for the reference counting code). This routine returns immediately if
2221         some others libraries are referencing the runtime.
2222         * bindgen.adb (Gen_Adainit): Generate call to Runtime_Initialize
2223         remove circuitry to initialize the signal handler as this is
2224         now done by the runtime initialization routine.
2225         (Gen_Adafinal): Generate call to Runtime_Finalize.
2226         * gnat_ugn.texi: Update documentation about concurrency and
2227         initialization/finalization of the run-time.
2228         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Add
2229         references to rtfinal.o and rtinit.o
2231 2015-01-06  Robert Dewar  <dewar@adacore.com>
2233         * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
2234         for Enum_Image.
2235         * sem_attr.adb: Implement Enum_Image attribute.
2236         * snames.ads-tmpl: Add entries for Enum_Image attribute.
2238 2015-01-06  Robert Dewar  <dewar@adacore.com>
2240         * namet.ads: Document use of Boolean2 for No_Use_Of_Entity.
2241         * restrict.ads (No_Use_Of_Entity): New table.
2242         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
2243         Ignore No_Use_Of_Entity (will be processed in parser).
2244         * snames.ads-tmpl: Add entry for Name_No_Use_Of_Entity.
2246 2015-01-06  Vincent Celier  <celier@adacore.com>
2248         * prj-tree.adb (Imported_Or_Extended_Project_Of): Do not try
2249         to check for an extended project, if a project does not have
2250         yet a project declaration.
2252 2015-01-06  Pierre-Marie Derodat  <derodat@adacore.com>
2254         * scos.ads: Update documentation about the SCO table build
2255         process and about table records format.
2256         * par_sco.ads (SCO_Record): Rename to SCO_Record_Raw.
2257         (SCO_Record_Filtered): New procedure.
2258         (Set_SCO_Logical_Operator): New procedure.
2259         (dsco): Update documentation.
2260         * par_sco.adb: Update library-level comments.
2261         (SCO_Generation_State_Type): New type.
2262         (SCO_Generation_State): New variable.
2263         (SCO_Raw_Table): New package instanciation.
2264         (Condition_Pragma_Hash_Table): Rename to SCO_Raw_Hash_Table.
2265         ("<"): New.
2266         (Tristate): New type.
2267         (Is_Logical_Operator): Return Tristate and update documentation.
2268         (Has_Decision): Update call to Is_Logical_Operator and complete
2269         documentation.
2270         (Set_Table_Entry): Rename to Set_Raw_Table_Entry, update
2271         comment, add an assertion for state checking and change
2272         references to SCO_Table into SCO_Raw_Table.
2273         (dsco): Refactor to dump the raw and the filtered tables.
2274         (Process_Decisions.Output_Decision_Operand): Handle putative
2275         short-circuit operators.
2276         (Process_Decisions.Output_Element): Update references
2277         to Set_Table_Entry and to Condition_Pragma_Hash_Table.
2278         (Process_Decisions.Process_Decision_Operand): Update call
2279         to Is_Logical_Operator.
2280         (Process_Decisions.Process_Node): Handle putative short-circuit
2281         operators and change references to
2282         SCO_Table into SCO_Raw_Table.
2283         (SCO_Output): Add an assertion
2284         for state checking and remove code that used to stamp out SCO entries.
2285         (SCO_Pragma_Disabled): Change reference to SCO_Table
2286         into SCO_Raw_Table.
2287         (SCO_Record): Rename to SCO_Record_Raw,
2288         add an assertion for state checking and change references
2289         to SCO_Table into SCO_Raw_Table.
2290         (Set_SCO_Condition): Add an assertion for state checking, update
2291         references to Condition_Pragma_Hash_Table and change references to
2292         SCO_Table into SCO_Raw_Table.
2293         (Set_SCO_Pragma_Enabled): Add an assertion for state checking and
2294         change references to SCO_Table into SCO_Raw_Table.
2295         (Set_SCO_Logical_Operator): New procedure.
2296         (Traverse_Declarations_Or_Statements.Set_Statement_Entry): Update
2297         references to Set_Table_Entry and to Condition_Pragma_Hash_Table.
2298         (SCO_Record_Fildered): New procedure.
2299         * gnat1drv.adb (Gnat1drv): Invoke the SCO filtering pass.
2300         * lib-writ.adb (Write_ALI): Invoke the SCO filtering pass and
2301         output SCOs.
2302         * par-load.adb (Load): Update reference to SCO_Record.
2303         * par.adb (Par): Update reference to SCO_Record.
2304         * put_scos.adb (Put_SCOs): Add an assertion to check that no
2305         putative SCO condition reaches this end.
2306         * sem_ch10.adb (Analyze_Proper_Body): Update reference to SCO_Record.
2307         * sem_res.adb (Resolve_Logical_Op): Validate putative SCOs
2308         when corresponding to an "and"/"or" operator affected by the
2309         Short_Circuit_And_Or pragma.
2311 2015-01-06  Robert Dewar  <dewar@adacore.com>
2313         * sem_ch8.adb (Analyze_Use_Package): Give more specific error
2314         msg for attempted USE of generic subprogram or subprogram.
2316 2015-01-06  Robert Dewar  <dewar@adacore.com>
2318         * s-valllu.adb, a-tiinau.adb, a-timoau.adb, a-ztinau.adb, a-ztmoau.adb,
2319         s-valuns.adb, s-valrea.adb, a-wtflau.adb, a-tiflau.adb, a-ztflau.adb,
2320         a-wtinau.adb, a-wtmoau.adb: Document recognition of : in place of #.
2322 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2324         * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
2325         that specify stream subprograms, if the prefix is a class-wide
2326         type then the generated attribute definition clause must apply
2327         to the same class-wide type.
2328         (Default_Iterator): An iterator defined by an aspect of some
2329         container type T must have a first parameter of type T, T'class,
2330         or an access to such (from code reading RM 5.5.1 (2/3)).
2332 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
2334         * gnat1drv.adb: Minor: complete previous change.
2336 2015-01-06  Olivier Hainque  <hainque@adacore.com>
2338         * set_targ.ads (C_Type_For): New function. Return the name of
2339         a C type supported by the back-end and suitable as a basis to
2340         construct the standard Ada floating point type identified by
2341         the T parameter. This is used as a common ground to feed both
2342         ttypes values and the GNAT tree nodes for the standard floating
2343         point types.
2344         * set_targ.adb (Long_Double_Index): The index at which "long
2345         double" gets registered in the FPT_Mode_Table. This is useful to
2346         know whether we have a "long double" available at all and get at
2347         it's characteristics without having to search the FPT_Mode_Table
2348         when we need to decide which C type should be used as the
2349         basis for Long_Long_Float in Ada.
2350         (Register_Float_Type): Fill Long_Double_Index.
2351         (FPT_Mode_Index_For): New function. Return the index in
2352         FPT_Mode_Table that designates the entry corresponding to the
2353         provided C type name.
2354         (FPT_Mode_Index_For): New function. Return the index in
2355         FPT_Mode_Table that designates the entry for a back-end type
2356         suitable as a basis to construct the standard Ada floating point
2357         type identified by the input T parameter.
2358         (elaboration code): Register_Back_End_Types unconditionally,
2359         so C_Type_For can operate regardless of -gnateT. Do it
2360         early so we can query it for the floating point sizes, via
2361         FPT_Mode_Index_For. Initialize Float_Size, Double_Size and
2362         Long_Double_Size from the FPT_Mode_Table, as cstand will do.
2363         * cstand.adb (Create_Float_Types): Use C_Type_For to determine
2364         which C type should be used as the basis for the construction
2365         of the Standard Ada floating point types.
2366         * get_targ.ads (Get_Float_Size, Get_Double_Size,
2367         Get_Long_Double_Size): Remove.
2368         * get_targ.adb: Likewise.
2370 2015-01-06  Thomas Quinot  <quinot@adacore.com>
2372         * sem_cat.adb (In_RCI_Declaration): Remove unnecessary
2373         parameter and rename to...
2374         (In_RCI_Visible_Declarations): Fix handling of private part of nested
2375         package.
2376         (Validate_RCI_Subprogram_Declaration): Reject illegal function
2377         returning anonymous access in RCI unit.
2379 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2381         * sem_ch6.adb (New_Overloaded_Entity): In GNATprove mode, a
2382         function wrapper may be a homonym of another local declaration.
2383         * sem_ch8.adb (Analyze_Subprogram_Renaming): In GNATprove mode,
2384         build function and operator wrappers after the actual subprogram
2385         has been resolved, and replace the standard renaming declaration
2386         with the declaration of wrapper.
2387         * sem_ch12.ads (Build_Function_Wrapper, Build_Operator_Wraooer):
2388         make public for use elsewhere.
2389         * sem_ch12.adb (Build_Function_Wrapper, Build_Operator_Wraooer):
2390         rewrite, now that actual is fully resolved when wrapper is
2391         constructed.
2393 2015-01-06  Javier Miranda  <miranda@adacore.com>
2395         * exp_disp.adb: Revert previous change.
2397 2015-01-06  Robert Dewar  <dewar@adacore.com>
2399         * exp_util.adb: Change name Name_Table_Boolean to
2400         Name_Table_Boolean1.
2401         * namet.adb: Change name Name_Table_Boolean to Name_Table_Boolean1
2402         Introduce Name_Table_Boolean2/3.
2403         * namet.ads: Change name Name_Table_Boolean to Name_Table_Boolean1
2404         Introduce Name_Table_Boolean2/3.
2405         * par-ch13.adb: Change name Name_Table_Boolean to
2406         Name_Table_Boolean1.
2408 2015-01-06  Bob Duff  <duff@adacore.com>
2410         * gnat_rm.texi: Improve documentation regarding No_Task_Termination.
2412 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2414         * sem_aggr.adb (Resolve_Record_Aggregte, Get_Value): For an
2415         others choice that covers multiple components, analyze each
2416         copy with the type of the component even in compile-only mode,
2417         to detect potential accessibility errors.
2419 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
2421         * sem_res.adb (Is_Assignment_Or_Object_Expression): New routine.
2422         (Resolve_Actuals): An effectively volatile out
2423         parameter cannot act as an in or in out actual in a call.
2424         (Resolve_Entity_Name): An effectively volatile out parameter
2425         cannot be read.
2427 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2429         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): If the body is
2430         the expansion of an expression function it may be pre-analyzed
2431         if a 'access attribute is applied to the function, in which case
2432         last_entity may have been assigned already.
2434 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2436         * sem_ch4.adb (Analyze_One_Call): If formal has an incomplete
2437         type and actual has the corresponding full view, there is no
2438         error, but a case of use of incomplete type in a predicate or
2439         invariant expression.
2441 2015-01-06  Vincent Celier  <celier@adacore.com>
2443         * makeutl.adb (Insert_No_Roots): Make sure that the same source
2444         in two different project tree is checked in both trees, if they
2445         are sources of two different projects, extended or not.
2447 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
2449         * gnat1drv.adb: Minor code clean up.
2450         (Adjust_Global_Switches): Ignore gnatprove_mode in codepeer_mode.
2452 2015-01-06  Bob Duff  <duff@adacore.com>
2454         * osint.adb (Read_Source_File): Don't print out
2455         file name unless T = Source.
2457 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2459         * sem_util.adb (Is_Variable, Is_OK_Variable_For_Out_Formal):
2460         recognize improper uses of constant_reference types as actuals
2461         for in-out parameters.
2462         (Check_Function_Call): Do not collect identifiers if function
2463         name is missing because of previous error.
2465 2015-01-06  Robert Dewar  <dewar@adacore.com>
2467         * ali-util.adb, sem_prag.adb, rtsfind.adb, sem_util.adb, sem_res.adb,
2468         ali.adb, binde.adb, namet.adb, namet.ads, gnatls.adb, bcheck.adb:
2469         Minor change of name Name_Table_Info => Name_Table_Int.
2471 2015-01-06  Robert Dewar  <dewar@adacore.com>
2473         * exp_strm.adb (Build_Elementary_Input_Call): Clarify comments
2474         in previous checkin.
2475         * freeze.adb (Freeze_Fixed_Point_Type): Add warning for shaving
2476         of bounds.
2477         * sem_prag.adb, sem_ch10.adb, sem_ch6.adb: Minor reformatting.
2479 2015-01-06  Vincent Celier  <celier@adacore.com>
2481         * a-strsup.adb (Times (Natural;String;Positive)): Raise
2482         Length_Error, not Index_Error, when the result is too long.
2484 2015-01-06  Thomas Quinot  <quinot@adacore.com>
2486         * a-direct.adb (Create_Path): Minor error handling and
2487         performance improvement.
2489 2015-01-06  Robert Dewar  <dewar@adacore.com>
2491         * checks.ads, sem_ch12.adb: Minor reformatting.
2492         * exp_ch4.adb (Expand_N_Op_Divide): Generate explicit divide by
2493         zero check for fixed-point case if Backend_Divide_Checks_On_Target
2494         is False.
2496 2015-01-06  Robert Dewar  <dewar@adacore.com>
2498         * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
2499         Do not set restriction No_Elaboration_Code unless the pragma
2500         appears in the main unit).
2502 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2504         * sem_ch10.adb (Is_Regular_With_Clause): Add guard to verify
2505         that with clause has already been analyzed before checking kind
2506         of with_clause.
2508 2015-01-06  Robert Dewar  <dewar@adacore.com>
2510         * exp_strm.adb (Build_Elementary_Input_Call): Return base type
2511         (as required by RM).
2513 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
2515         * a-reatim.adb ("/"): Add explicit pragma Unsuppress (Division_Check).
2517 2015-01-06  Robert Dewar  <dewar@adacore.com>
2519         * sem_prag.adb (Process_Suppress_Unsuppress): Add extra warning
2520         for ignoring pragma Suppress (Elaboration_Check) in SPARK mode.
2522 2015-01-06  Javier Miranda  <miranda@adacore.com>
2524         * exp_disp.adb (Expand_Interface_Conversion): No displacement
2525         of the pointer to the object needed when the type of the operand
2526         is not an interface type and the interface is one of its parent
2527         types (since they share the primary dispatch table).
2529 2015-01-06  Vincent Celier  <celier@adacore.com>
2531         * prj-env.adb: Minor comment update.
2533 2015-01-06  Javier Miranda  <miranda@adacore.com>
2535         * sem_res.adb (Valid_Conversion): Restrict the checks on anonymous
2536         access types whose target type is an interface type to operands
2537         that are access types; required to report an error when the
2538         operand is not an access type.
2540 2015-01-06  Bob Duff  <duff@adacore.com>
2542         * a-cfinve.adb (Copy): Set the discriminant to the Length when
2543         Capacity = 0.
2544         * a-cofove.ads (Capacity): Add a postcondition.
2545         * a-cfinve.ads (Capacity): Add a postcondition.
2546         (Reserve_Capacity): Correct the postcondition in the case where
2547         Capacity = 0; that means "Capacity => Length (Container)".
2548         * a-cofove.adb (Elems[c]): Add a comment
2549         explaining the dangers and how to avoid them.
2551 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2553         * sem_ch12.adb: Code clean up.
2555 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
2557         * gnatvsn.ads: Bump copyright year.
2559 2015-01-06  Robert Dewar  <dewar@adacore.com>
2561         * s-taskin.ads, s-traces.ads: Minor reformatting.
2562         * exp_util.adb: Minor typo fix.
2564 2015-01-06  Vincent Celier  <celier@adacore.com>
2566         * gnatls.adb (Search_RTS): Invoke Initialize_Default_Project_Path
2567         with the runtime name.
2568         * prj-env.adb (Initialize_Default_Project_Path): When both
2569         Target_Name and Runtime_Name are not empty string, add to the
2570         project path the two directories .../lib/gnat and .../share/gpr
2571         related to the runtime.
2572         * prj-env.ads (Initialize_Default_Project_Path): New String
2573         parameter Runtime_Name, defaulted to the empty string.
2575 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
2577         * frontend.adb: Guard against the case where a configuration
2578         pragma may be split into multiple pragmas and the original
2579         rewritten as a null statement.
2580         * sem_prag.adb (Analyze_Pragma): Insert a brand new Check_Policy
2581         pragma using Insert_Before rather than Insert_Action. This
2582         takes care of the configuration pragma case where Insert_Action
2583         would fail.
2585 2015-01-06  Bob Duff  <duff@adacore.com>
2587         * a-coboho.ads (Element_Access): Add "pragma
2588         No_Strict_Aliasing (Element_Access);". This is needed because
2589         we are unchecked-converting from Address to Element_Access.
2590         * a-cofove.ads, a-cofove.adb (Elems,Elemsc): Fix bounds of the
2591         result to be 1.
2593 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
2595         * sem_res.adb (Resolve_Actuals): Remove the
2596         restriction which prohibits volatile actual parameters with
2597         enabled external propery Async_Writers to act appear in procedure
2598         calls where the corresponding formal is of mode OUT.
2600 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
2602         * gnat_ugn.texi: Bump @copying's copyright year.
2604 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
2606         PR ada/64492
2607         * gcc-interface/Makefile.in (../stamp-tools): Reinstate dropped code.
2609 2015-01-04  Uros Bizjak  <ubizjak@gmail.com>
2611         * gcc-interface/misc.c (internal_error_function): Use xasprintf instead
2612         of unchecked asprintf.
2615 Copyright (C) 2015 Free Software Foundation, Inc.
2617 Copying and distribution of this file, with or without modification,
2618 are permitted in any medium without royalty provided the copyright
2619 notice and this notice are preserved.