Fix bzero warning in child_setup_tty
[official-gcc.git] / gcc / ada / ChangeLog
blob8b9fbe5b65fe420cf48b733c51060bd6491ddea1
1 2015-03-31  Tom de Vries  <tom@codesourcery.com>
3         PR ada/65490
4         * terminals.c (child_setup_tty): Fix warning 'argument to sizeof in
5         bzero call is the same expression as the destination'.
7 2015-03-26  Eric Botcazou  <ebotcazou@adacore.com>
9         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Deref>: New case.
11 2015-03-24  Gary Dismukes  <dismukes@adacore.com>
13         * sem_ch3.adb: Minor typo fix (missing paren).
15 2015-03-24  Robert Dewar  <dewar@adacore.com>
17         * sinfo.ads: Update comment.
19 2015-03-24  Robert Dewar  <dewar@adacore.com>
21         * exp_attr.adb: Add entry for typ'Deref.
22         * sem_attr.adb (Deref): New GNAT attribute.
23         * sem_attr.ads: Add entry for new GNAT attribute Deref.
24         * snames.ads-tmpl: Add entries for new attribute Deref.
26 2015-03-24  Ed Schonberg  <schonberg@adacore.com>
28         * sem_ch13.adb (Rep_Item_Too_Early): allow pragma Convention
29         on generic type.
31 2015-03-24  Gary Dismukes  <dismukes@adacore.com>
33         * inline.adb: Minor typo fix.
35 2015-03-24  Arnaud Charlet  <charlet@adacore.com>
37         * doc/gnat_ugn/building_executable_programs_with_gnat.rst,
38         doc/gnat_ugn/gnat_utility_programs.rst
39         doc/gnat_rm/implementation_defined_attributes.rst
40         doc/gnat_rm/implementation_defined_pragmas.rst
41         doc/gnat_rm/representation_clauses_and_pragmas.rst
42         doc/gnat_rm/about_this_guide.rst
43         doc/gnat_rm/implementation_of_ada_2012_features.rst: Doc improvements.
44         * gnat_rm.texi, gnat_ugn.texi: Regenerate.
46 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
48         PR bootstrap/65522
49         * adadecode.c (ada_demangle): Guard with IN_RTS instead of IN_GCC.
51 2015-03-20  Eric Botcazou  <ebotcazou@adacore.com>
53         PR ada/65451
54         * gcc-interface/utils.c (gnat_pushdecl): Tidy up and improve comment.
55         Make sure to chain only main variants through TYPE_NEXT_PTR_TO.
57         * gcc-interface/trans.c (Attribute_to_gnu): Revert latest change.
59 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
61         * gcc-interface/utils2.c (gnat_invariant_expr): Return null if the type
62         of the expression ends up being composite.
64 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
66         * gcc-interface/decl.c (is_from_limited_with_of_main): New predicate.
67         (gnat_to_gnu_entity) <E_Subprogram_Type>: Invoke it on return and
68         parameter types to detect circularities in ASIS mode.
69         * gcc-interface/trans.c (Attribute_to_gnu): Mention AI05-0151.
71 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
73         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Abstract_State>: Do not
74         short-circuit the regular handling.
76 2015-03-13  Robert Dewar  <dewar@adacore.com>
78         * exp_unst.adb (Note_Uplevel_Reference): Eliminate duplicate
79         references.
80         (Actual_Ref): New function.
81         (AREC_String): Minor reformatting.
82         (Unnest_Subprogram): Use Actual_Ref.
83         * frontend.adb (Frontend): Turn off Unnest_Subprogram_Mode
84         before call to Instantiate_Bodies.
86 2015-03-13  Ed Schonberg  <schonberg@adacore.com>
88         * freeze.adb (Freeze_Profile): If the return type of a function
89         being frozen is an untagged limited view and the function is
90         abstract, mark the type as frozen because there is no later
91         point at which the profile of the subprogram will be elaborated.
93 2015-03-13  Robert Dewar  <dewar@adacore.com>
95         * einfo.adb, einfo.ads, atree.adb, atree.ads, atree.h: Add seventh
96         component to entities. Add new fields Field36-41 and Node36-41.
98 2015-03-13  Claire Dross  <dross@adacore.com>
100         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Rewrite after review.
102 2015-03-13  Robert Dewar  <dewar@adacore.com>
104         * exp_util.adb (Is_Volatile_Reference): Compile time known
105         value is never considered to be a volatile reference.
107 2015-03-13  Robert Dewar  <dewar@adacore.com>
109         * sem_ch3.adb (Analyze_Object_Contract): Suppress "constant
110         cannot be volatile" for internally generated object (such as
111         FIRST and LAST constants).
113 2015-03-13  Ed Schonberg  <schonberg@adacore.com>
115         * sem_ch12.adb (Validate_Access_Subprogram_Instance): If a
116         convention is specified for the formal parameter, verify that
117         the actual has the same convention.
118         * sem_prag.adb (Set_Convention_From_Pragma): Allow convention
119         pragma to be set on a generic formal type.
120         * sem_util.adb (Set_Convention): Ignore within an instance,
121         as it has already been verified in the generic unit.
123 2015-03-13  Claire Dross  <dross@adacore.com>
125         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Do not inline
126         subprograms with unconstrained record parameters containing
127         Itype declarations.
128         * sinfo.ads Document GNATprove assumption that type should match
129         in the AST.
130         * sem_ch6.adb (Analyze_Subprogram_Body_Contract):
131         Do not check for Refined_Depends and Refined_Globals contracts
132         as they are optional.
134 2015-03-13  Ed Schonberg  <schonberg@adacore.com>
136         * sem_ch12.adb (Instantiate_Type): For a floating-point type,
137         capture dimension info if any, because the generated subtype
138         declaration does not come from source and will not process dimensions.
139         * sem_dim,adb (Analyze_Dimension_Extension_Or_Record_Aggregate):
140         Do not analyze expressions with an initialization procedure
141         because aggregates will have been checked at the point of record
142         declaration.
144 2015-03-13  Robert Dewar  <dewar@adacore.com>
146         * aspects.ads, aspects.adb: Add entries for aspect Unimplemented.
147         * einfo.ads, einfo.adb (Is_Unimplemented): New flag.
148         * sem_ch13.adb: Add dummy entry for aspect Unimplemented.
149         * snames.ads-tmpl: Add entry for Name_Unimplemented.
151 2015-03-13  Gary Dismukes  <dismukes@adacore.com>
153         * style.adb (Missing_Overriding): Apply the
154         Comes_From_Source test to the Original_Node of the subprogram
155         node, to handle the case of a null procedure declaration that
156         has been rewritten as an empty procedure body.
158 2015-03-13  Robert Dewar  <dewar@adacore.com>
160         * exp_util.ads: Minor fix to comment.
161         * sem_ch3.adb (Constrain_Index): Correct pasto from previous
162         change.
164 2015-03-13  Robert Dewar  <dewar@adacore.com>
166         * exp_util.ads, exp_util.adb (Force_Evaluation): Add Related_Id and
167         Is_Low/High_Bound params.
168         * sem_ch3.adb (Constrain_Index): Use new Force_Evaluation calling
169         sequence to simplify generation of FIRST/LAST temps for bounds.
171 2015-03-12  Olivier Hainque  <hainque@adacore.com>
173         * gcc-interface/trans.c (Attribute_to_gnu) <Code_Address case>:
174         On targets where a function symbol designates a function descriptor,
175         fetch the function code address from the descriptor.
176         (USE_RUNTIME_DESCRIPTORS): Provide a default definition.
178 2015-03-04  Robert Dewar  <dewar@adacore.com>
180         * sem_warn.adb: Minor reformatting.
181         * init.c: Minor tweaks.
183 2015-03-04  Dmitriy Anisimko  <anisimko@adacore.com>
185         * a-coinho-shared.adb: Fix clear of already empty holder.
187 2015-03-04  Robert Dewar  <dewar@adacore.com>
189         * exp_unst.adb (Check_Dynamic_Type): Ignore library level types.
190         (Check_Uplevel_Reference_To_Type): Ignore call inside generic.
191         (Note_Uplevel_Reference): Ignore call inside generic.
192         (Note_Uplevel_Reference): Fix check for no entity field.
193         (Unnest_Subprogram): Ignore call inside generic.
194         (Find_Current_Subprogram): Use Defining_Entity, not Defining_Unit_Name.
195         (Visit_Node): Ignore calls to Imported subprograms.
196         (Visit_Node): Fix problem in finding subprogram body in some cases.
197         (Add_Form_To_Spec): Use Defining_Entity, not Defining_Unit_Name.
199 2015-03-04  Robert Dewar  <dewar@adacore.com>
201         * einfo.adb (Is_ARECnF_Entity): Removed.
202         (Last_Formal): Remove special handling of Is_ARECnF_Entity.
203         (Next_Formal): Remove special handling of Is_ARECnF_Entity.
204         (Next_Formal_With_Extras): Remove special handling of Is_ARECnF_Entity.
205         (Number_Entries): Minor reformatting.
206         * einfo.ads (Is_ARECnF_Entity): Removed.
207         * exp_unst.adb (Unnest_Subprogram): Remove setting of
208         Is_ARECnF_Entity.
209         (Add_Extra_Formal): Use normal Extra_Formal circuit.
210         * sprint.adb (Write_Param_Specs): Properly handle case where
211         there are no source formals, but we have at least one Extra_Formal
212         present.
214 2015-03-04  Ed Schonberg  <schonberg@adacore.com>
216         * sem_aggr.adb (Resolve_Record_Aggregate,
217         Add_Discriminant_Values): If the value is a reference to the
218         current instance of an enclosing type, use its base type to check
219         against prefix of attribute reference, because the target type
220         may be otherwise constrained.
222 2015-03-04  Robert Dewar  <dewar@adacore.com>
224         * atree.h: Add entries for Flag287-Flag309.
225         * einfo.adb: Add (unused) flags Flag287-Flag309.
227 2015-03-04  Ed Schonberg  <schonberg@adacore.com>
229         * sem_util.adb (Collect_Interfaces, Collect): When gathering
230         interfaces of ancestors, handle properly a subtype of a private
231         extension.
233 2015-03-04  Robert Dewar  <dewar@adacore.com>
235         * einfo.adb (Is_ARECnF_Entity): New flag (ARECnF is an extra formal).
236         (Next_Formal): Don't return ARECnF formal.
237         (Last_Formal): Don't consider ARECnF formal.
238         (Next_Formal_With_Extras): Do consider ARECnF formal.
239         * einfo.ads (Is_ARECnF_Entity): New flag (ARECnF is an extra formal).
240         * exp_unst.adb (Create_Entities): Set Is_ARECnF_Entity flag.
242 2015-03-04  Javier Miranda  <miranda@adacore.com>
244         * exp_ch6.adb (Expand_Simple_Function_Return): When the returned
245         object is a class-wide interface object and we generate the
246         accessibility described in RM 6.5(8/3) then displace the pointer
247         to the object to reference the base of the object (to get access
248         to the TSD of the object).
250 2015-03-04  Hristian Kirtchev  <kirtchev@adacore.com>
252         * sem_prag.adb (Analyze_Abstract_State): Use routine
253         Malformed_State_Error to issue general errors.
254         (Analyze_Pragma): Diagnose a syntax error related to a state
255         declaration with a simple option.
256         (Malformed_State_Error): New routine.
258 2015-03-04  Robert Dewar  <dewar@adacore.com>
260         * a-strsup.adb (Super_Slice): Deal with super flat case.
261         * einfo.ads: Minor reformatting.
262         * s-imgdec.adb (Set_Decimal_Digits): Add comment about possibly
263         redundant code.
265 2015-03-04  Claire Dross  <dross@adacore.com>
267         * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
268         a-cforse.ads, a-cofove.ads: Use Default_Initial_Condition on formal
269         containers.
271 2015-03-04  Ed Schonberg  <schonberg@adacore.com>
273         * sem_warn.adb (Check_References): When checking for an unused
274         in-out parameter of a class- wide type, use its type to determine
275         whether it is private, in order to avoid a spurious warning when
276         subprogram spec and body are in different units.
278 2015-03-04  Yannick Moy  <moy@adacore.com>
280         * sem_attr.adb: Improve warning messages.
282 2015-03-04  Robert Dewar  <dewar@adacore.com>
284         * exp_ch6.adb (Expand_N_Subprogram_Body): Avoid trying to unnest
285         generic subprograms.
286         * exp_unst.adb (Check_Dynamic_Type): Handle record types properly
287         (Note_Uplevel_Reference): Ignore uplevel references to non-types
288         (Get_Level): Consider only subprograms, not blocks.
289         (Visit_Node): Set proper condition for generating ARECnF entity.
290         Ignore indirect calls. Ignore calls to subprograms
291         outside our nest.
292         (Unnest_Subprogram): Minor changes in dealing with ARECnF entity.
293         (Add_Form_To_Spec): Properly set Last_Entity field.
294         (Unnest_Subprogram): Set current subprogram scope for analyze calls.
295         Handle case of no uplevel refs in outer subprogram
296         Don't mark uplevel entities as aliased.
297         Don't deal with calls with no ARECnF requirement.
299 2015-03-04  Robert Dewar  <dewar@adacore.com>
301         * s-valrea.adb (Scan_Real): Remove redundant tests from scaling loops.
302         * s-imgdec.adb (Set_Decimal_Digits): Remove redundant Max
303         operation in computing LZ.
304         * sem_attr.adb: Minor typo fix
306 2015-03-04  Robert Dewar  <dewar@adacore.com>
308         * exp_ch7.adb: Minor reformatting.
309         * exp_unst.adb (Build_Tables): Fix minor glitch for no separate
310         spec case.
311         * erroutc.adb (Delete_Msg): add missing decrement of info msg counter.
313 2015-03-04  Hristian Kirtchev  <kirtchev@adacore.com>
315         * exp_ch6.adb (Build_Pragma_Check_Equivalent): Suppress
316         references to formal parameters subject to pragma Unreferenced.
317         (Suppress_Reference): New routine.
318         * sem_attr.adb (Analyze_Attribute): Reimplement the analysis
319         of attribute 'Old. Attributes 'Old and 'Result now share
320         common processing.
321         (Analyze_Old_Result_Attribute): New routine.
322         (Check_Placement_In_Check): Removed.
323         (Check_Placement_In_Contract_Cases): Removed.
324         (Check_Placement_In_Test_Case): Removed.
325         (Check_Use_In_Contract_Cases): Removed.
326         (Check_Use_In_Test_Case): Removed.
327         (In_Refined_Post): Removed.
328         (Is_Within): Removed.
329         * sem_warn.adb (Check_Low_Bound_Tested): Code cleanup.
330         (Check_Low_Bound_Tested_For): New routine.
332 2015-03-04  Hristian Kirtchev  <kirtchev@adacore.com>
334         * exp_ch3.adb (Expand_N_Object_Declaration):
335         Generate a runtime check to test the expression of pragma
336         Default_Initial_Condition when the object is default initialized.
338 2015-03-02  Robert Dewar  <dewar@adacore.com>
340         * scng.adb (Scan): Ignore illegal character in relaxed
341         semantics mode.
343 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
345         * sem_ch4.adb (Analyze_Set_Membership); Retain Overloaded flag
346         on left operand, so it can be properly resolved with type of
347         alternatives of right operand.
348         * sem_res.adb (Resolve_Set_Membership): Handle properly an
349         overloaded left-hand side when the alternatives on the right
350         hand side are literals of some universal type.  Use first
351         non-overloaded alternative to find expected type.
353 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
355         * exp_ch7.adb (Make_Set_Finalize_Address_Call): Use underlying
356         type to retrieve designated type, because the purported access
357         type may be a partial (private) view, when it is declared in
358         the private part of a nested package, and finalization actions
359         are generated when completing compilation of enclosing unit.
361 2015-03-02  Robert Dewar  <dewar@adacore.com>
363         * back_end.adb (Call_Back_End): Remove previous patch,
364         the back end now gets to see the result of -gnatd.1
365         (Unnest_Subprogram_Mode) processing.
366         * elists.ads, elists.adb (List_Length): New function.
367         * exp_unst.ads, exp_unst.adb: Major changes, first complete version.
368         * sem_util.adb (Check_Nested_Access): Handle formals in
369         Unnest_Subprogram_Mode.
370         (Adjust_Named_Associations): Minor reformatting.
371         * sprint.adb (Sprint_Node_Actual): Fix failure to print aliased
372         for parameters.
374 2015-03-02  Robert Dewar  <dewar@adacore.com>
376         * atree.ads, atree.adb (Uint24): New function
377         (Set_Uint24): New procedure.
378         * atree.h (Uint24): New macro for field access.
379         * back_end.adb (Call_Back_End): For now, don't call back end
380         if unnesting subprogs.
381         * einfo.adb (Activation_Record_Component): New field
382         (Subps_Index): New field.
383         * einfo.ads (Activation_Record_Component): New field
384         (Subps_Index): New field Minor reordering of comments into alpha order.
385         * exp_unst.ads, exp_unst.adb: Continued development.
387 2015-03-02  Gary Dismukes  <dismukes@adacore.com>
389         * exp_disp.ads: Minor reformatting.
391 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
393         * sem_ch8.adb (Chain_Use_Clause): Do not chain use clause from
394         ancestor to list of use clauses active in descendant unit if we
395         are within the private part of an intervening parent, to prevent
396         circularities in use clause list.
398 2015-03-02  Javier Miranda  <miranda@adacore.com>
400         * exp_ch9.adb (Build_Corresponding_Record): Propagate type
401         invariants to the corresponding record type.
402         * exp_disp.ad[sb] (Set_DT_Position_Value): New subprogram
403         which sets the value of the DTC_Entity associated with a given
404         primitive of a tagged type and propagates the value to the
405         wrapped subprogram.
406         (Set_DTC_Entity_Value): Propagate the DTC
407         value to the wrapped entity.
408         * sem_ch13.adb (Build_Invariant_Procedure): Append the code
409         associated with invariants of progenitors.
410         * sem_ch3.adb (Build_Derived_Record_Type): Inherit type invariants
411         of parents and progenitors.
412         (Process_Full_View): Check hidden inheritance of class-wide type
413         invariants.
414         * sem_ch7.adb (Analyze_Package_Specification): Do not generate
415         the invariant procedure for interface types; build the invariant
416         procedure for tagged types inheriting invariants from their
417         progenitors.
418         * sem_prag.adb (Pragma_Invariant) Allow invariants in interface
419         types but do not build their invariant procedure since their
420         invariants will be propagated to the invariant procedure of
421         types covering the interface.
422         * exp_ch6.adb, exp_disp.adb, sem_ch3.adb, sem_ch7.adb,
423         sem_ch8.adb, sem_disp.adb: Replace all calls to Set_DT_Position
424         by calls to Set_DT_Position_Value.
426 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
428         * sem_attr.adb (Analyze_Attribute): Factor out heavily indented
429         code in Denote_Same_Function.  Do not analyze attribute 'Result
430         when it is inside procedure _Postconditions.  Remove a misplaced
431         warning diagnostic. Code cleanup.
432         (Denote_Same_Function): New routine.
433         * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): Code
434         cleanup. Warn on pre/postconditions on an inlined subprogram.
435         (Analyze_Pragma, Refined_Post case): Warn on pre/postconditions on
436         an inlined subprogram.
437         (Analyze_Pre_Post_Condition_In_Decl_Part): Code cleanup. Warn on
438         pre/post condition on an inlined subprogram.
439         (Analyze_Test_Case_In_Decl_Part): Code cleanup. Warn on
440         pre/postconditions on an inlined subprogram.
441         (Check_Postcondition_Use_In_Inlined_Subprogram): New routine.
443 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
445         * sem_prag.adb (Ensure_Aggregate_Form):
446         Ensure that the name denoted by the Chars of a pragma argument
447         association has the proper Sloc when converted into an aggregate.
449 2015-03-02  Bob Duff  <duff@adacore.com>
451         * sem_ch6.adb (Check_Private_Overriding): Capture
452         Incomplete_Or_Partial_View in a constant. This is cleaner and
453         more efficient.
455 2015-03-02  Gary Dismukes  <dismukes@adacore.com>
457         * einfo.ads, exp_unst.ads: Minor reformatting.
459 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
461         * a-strsea.adb (Find_Token): Ensure that the range of iteration
462         does not perform any improper character access. This prevents
463         erroneous access in the unusual case of an empty string target
464         and a From parameter less than Source'First.
466 2015-03-02  Robert Dewar  <dewar@adacore.com>
468         * elists.adb (List_Length): Fix incorrect result.
470 2015-03-02  Bob Duff  <duff@adacore.com>
472         * sem_ch6.adb (Check_Private_Overriding): Refine the legality
473         checks here. It used to check that the function is merely
474         overriding SOMEthing. Now it checks that the function is
475         overriding a corresponding public operation. This is a correction
476         to the implementation of the rule in RM-3.9.3(10).
478 2015-03-02  Robert Dewar  <dewar@adacore.com>
480         * debug.adb: Document new debug flag -gnatd.1.
481         * einfo.ads, einfo.adb (Has_Nested_Subprogram): New flag.
482         (Has_Uplevel_Reference): New flag (Is_Static_Type): New flag.
483         (Uplevel_Reference_Noted):New flag (Uplevel_References): New field.
484         * elists.ads elists.adb (List_Length): New function.
485         * exp_ch6.adb (Expand_N_Subprogram_Body): Call Unnest_Subprogram
486         when appropriate (Process_Preconditions): Minor code
487         reorganization and reformatting
488         * exp_unst.ads, exp_unst.adb: New files.
489         * gnat1drv.adb (Adjust_Global_Switches): Set
490         Unnest_Subprogram_Mode if -gnatd.1
491         * namet.ads, namet.adb (Name_Find_Str): New version of Name_Find with
492         string argument.
493         * opt.ads (Unnest_Subprogram_Mode): New flag.
494         * par-ch3.adb (P_Identifier_Declarations): Fixes to -gnatd.2 handling.
495         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set
496         Has_Nested_Subprogram flag.
497         * sem_ch8.adb (Find_Direct_Name): New calling sequence for
498         Check_Nested_Access.
499         (Find_Selected_Component): Minor comment addition.
500         * sem_util.adb (Check_Nested_Access): New version for use with Exp_Unst.
501         (Note_Possible_Modification): New calling sequence for
502         Check_Nested_Access.
503         * sem_util.ads (Check_Nested_Access): New version for use with Exp_Unst.
504         * gcc-interface/Make-lang.in (GNAT1_OBJS): Add exp_unst.o
506 2015-03-02  Pierre-Marie de Rodat  <derodat@adacore.com>
508         * gcc-interface/utils.c (gnat_pushdecl): For non-artificial pointer
509         types, preserve the original type and create copies just like the C
510         front-end does.  For artificial ones, do not define a name for
511         the original type.
512         (create_type_decl): When gnat_pushdecl made the input type the
513         original type for the new declaration, do not define a stub
514         declaration for it.
515         * gcc-interface/utils2.c (build_binary_op): Accept two different
516         pointer types when they point to the same type.
518 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
520         * exp_util.adb (Possible_Bit_Aligned_Component): Do not process
521         an unanalyzed node.
522         * sem_util.adb (Kill_Current_Values): Do not invalidate and
523         de-null a constant.
525 2015-03-02  Robert Dewar  <dewar@adacore.com>
527         * sem_ch3.adb, exp_attr.adb, checks.adb, exp_aggr.adb: Minor
528         reformatting.
530 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
532         * sem_ch8.adb: extend use of Available_Subtype.
534 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
536         * sem_prag.adb (Duplication_Error): Remove the special handling
537         of 'Class or _Class in the context of pre/postconditions.
538         (Process_Class_Wide_Condition): Remove the special handling of
539         'Class or _Class in the context of pre/postconditions.
540         * sem_util.adb (Original_Aspect_Pragma_Name): Names Pre_Class
541         and Post_Class no longer need to be converted to _Pre and _Post.
542         * sem_util.ads (Original_Aspect_Pragma_Name): Update the comment
543         on usage.
545 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
547         * exp_ch6.adb (Process_Preconditions): Modify the
548         mechanism that find the first source declaration to correct exit
549         the loop once it has been found.
551 2015-03-02  Gary Dismukes  <dismukes@adacore.com>
553         * a-strsea.adb: Minor typo fix.
555 2015-03-02  Bob Duff  <duff@adacore.com>
557         * einfo.ads: Minor comment fixes.
559 2015-03-02  Gary Dismukes  <dismukes@adacore.com>
561         * einfo.adb, checks.adb: Minor reformatting and typo fixes.
563 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
565         * exp_aggr.adb (Get_Assoc_Expr): If the Default_Component_Value
566         is defined for the array type, use it instead of a Default_Value
567         specified for the component type itself.
569 2015-03-02  Thomas Quinot  <quinot@adacore.com>
571         * exp_attr.adb (Expand_N_Attribute_Reference, case Input): When
572         expanding a 'Input attribute reference for a class-wide type,
573         do not generate a separate object declaration for the controlling
574         tag dummy object; instead, generate the expression inline in the
575         dispatching call. Otherwise, the declaration (which involves a
576         call to String'Input, returning a dynamically sized value on the
577         secondary stack) will be expanded outside of proper secondary
578         stack mark/release operations, and will thus cause a secondary
579         stack leak.
581 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
583         * checks.adb (Add_Validity_Check): Change the names of all
584         formal parameters to better illustrate their purpose. Update
585         the subprogram documentation. Update all occurrences of the
586         formal parameters. Generate a pre/postcondition pragma by
587         calling Build_Pre_Post_Condition.
588         (Build_PPC_Pragma): Removed.
589         (Build_Pre_Post_Condition): New routine.
590         * einfo.adb Node8 is no longer used as Postcondition_Proc. Node14
591         is now used as Postconditions_Proc. Flag240 is now renamed to
592         Has_Expanded_Contract.  (First_Formal): The routine can now
593         operate on generic subprograms.
594         (First_Formal_With_Extras): The routine can now operate on generic
595         subprograms.
596         (Has_Expanded_Contract): New routine.
597         (Has_Postconditions): Removed.
598         (Postcondition_Proc): Removed.
599         (Postconditions_Proc): New routine.
600         (Set_Has_Expanded_Contract): New routine.
601         (Set_Has_Postconditions): Removed.
602         (Set_Postcondition_Proc): Removed.
603         (Set_Postconditions_Proc): New routine.
604         (Write_Entity_Flags): Remove the output of Has_Postconditions. Add
605         the output of Has_Expanded_Contract.
606         (Write_Field8_Name): Remove the output of Postcondition_Proc.
607         (Write_Field14_Name): Add the output of Postconditions_Proc.
608         * einfo.ads New attributes Has_Expanded_Contract and
609         Postconditions_Proc along with occurrences in entities.
610         Remove attributes Has_Postconditions and Postcondition_Proc
611         along with occurrences in entities.
612         (Has_Expanded_Contract): New routine along with pragma Inline.
613         (Has_Postconditions): Removed along with pragma Inline.
614         (Postcondition_Proc): Removed along with pragma Inline.
615         (Postconditions_Proc): New routine along with pragma Inline.
616         (Set_Has_Expanded_Contract): New routine along with pragma Inline.
617         (Set_Has_Postconditions): Removed along with pragma Inline.
618         (Set_Postcondition_Proc): Removed along with pragma Inline.
619         (Set_Postconditions_Proc): New routine along with pragma Inline.
620         * exp_ch6.adb (Add_Return): Code cleanup. Update the
621         generation of the call to the _Postconditions routine of
622         the procedure.  (Expand_Non_Function_Return): Reformat the
623         comment on usage. Code cleanup.  Update the generation of
624         the call to the _Postconditions routine of the procedure or
625         entry [family].
626         (Expand_Simple_Function_Return): Update the
627         generation of the _Postconditions routine of the function.
628         (Expand_Subprogram_Contract): Reimplemented.
629         * exp_ch6.ads (Expand_Subprogram_Contract): Update the parameter
630         profile along the comment on usage.
631         * exp_ch9.adb (Build_PPC_Wrapper): Code cleanup.
632         (Expand_N_Task_Type_Declaration): Generate pre/postconditions
633         wrapper when the entry [family] has a contract with
634         pre/postconditions.
635         * exp_prag.adb (Expand_Attributes_In_Consequence): New routine.
636         (Expand_Contract_Cases): This routine and its subsidiaries now
637         analyze all generated code.
638         (Expand_Old_In_Consequence): Removed.
639         * sem_attr.adb Add with and use clause for Sem_Prag.
640         (Analyze_Attribute): Reimplment the analysis of attribute 'Result.
641         (Check_Use_In_Test_Case): Use routine Test_Case_Arg to obtain
642         "Ensures".
643         * sem_ch3.adb (Analyze_Declarations): Analyze the contract of
644         a generic subprogram.
645         (Analyze_Object_Declaration): Do not create a contract node.
646         (Derive_Subprogram): Do not create a contract node.
647         * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Do
648         not create a contract node.
649         (Analyze_Completion_Contract): New routine.
650         (Analyze_Function_Return): Alphabetize.
651         (Analyze_Generic_Subprogram_Body): Alphabetize. Do not create a
652         contract node.  Do not copy pre/postconditions to the original
653         generic template.
654         (Analyze_Null_Procedure): Do not create a contract node.
655         (Analyze_Subprogram_Body_Contract): Reimplemented.
656         (Analyze_Subprogram_Body_Helper): Do not mark the enclosing scope
657         as having postconditions. Do not create a contract node. Analyze
658         the subprogram body contract of a body that acts as a compilation
659         unit. Expand the subprogram contract after the declarations have
660         been analyzed.
661         (Analyze_Subprogram_Contract): Reimplemented.
662         (Analyze_Subprogram_Specification): Do not create a contract node.
663         (List_Inherited_Pre_Post_Aspects): Code cleanup.
664         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Update the
665         comment on usage.
666         (Analyze_Subprogram_Contract): Update the
667         parameter profile and the comment on usage.
668         * sem_ch7.adb (Analyze_Package_Body_Helper): Do not create a
669         contract node.
670         (Analyze_Package_Declaration): Do not create a
671         contract node.
672         (Is_Subp_Or_Const_Ref): Ensure that the prefix has an entity.
673         * sem_ch8.adb (Analyze_Subprogram_Renaming): Do not create a
674         contract node.
675         * sem_ch9.adb (Analyze_Entry_Declaration): Do not create a
676         contract node.
677         * sem_ch10.adb (Analyze_Compilation_Unit): Move local variables to
678         their proper section and alphabetize them. Analyze the contract of
679         a [generic] subprogram after all Pragmas_After have been analyzed.
680         (Analyze_Subprogram_Body_Stub_Contract): Alphabetize.
681         * sem_ch12.adb (Analyze_Generic_Package_Declaration): Do not
682         create a contract node.
683         (Analyze_Generic_Subprogram_Declaration):
684         Alphabetize local variables. Do not create a contract
685         node. Do not generate aspects out of pragmas for ASIS.
686         (Analyze_Subprogram_Instantiation): Instantiate
687         the contract of the subprogram.  Do not create a
688         contract node.  (Instantiate_Contract): New routine.
689         (Instantiate_Subprogram_Body): Alphabetize local variables.
690         (Save_Global_References_In_Aspects): New routine.
691         (Save_References): Do not save the global references found within
692         the aspects of a generic subprogram.
693         * sem_ch12.ads (Save_Global_References_In_Aspects): New routine.
694         * sem_ch13.adb (Analyze_Aspect_Specifications): Do not use
695         Original_Node for establishing linkages.
696         (Insert_Pragma): Insertion in a subprogram body takes precedence over
697         the case where the subprogram body is also a compilation unit.
698         * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): Use
699         Get_Argument to obtain the proper expression. Install the generic
700         formals when the related context is a generic subprogram.
701         (Analyze_Depends_In_Decl_Part): Use Get_Argument to obtain
702         the proper expression. Use Corresponding_Spec_Of to obtain
703         the spec. Install the generic formal when the related context
704         is a generic subprogram.
705         (Analyze_Global_In_Decl_Part): Use Get_Argument to obtain the proper
706         expression. Use Corresponding_Spec_Of to obtain the spec. Install the
707         generic formal when the related context is a generic subprogram.
708         (Analyze_Initial_Condition_In_Decl_Part): Use Get_Argument
709         to obtain the proper expression. Remove the call to
710         Check_SPARK_Aspect_For_ASIS as the analysis is now done
711         automatically.
712         (Analyze_Pragma): Update all occurrences
713         to Original_Aspect_Name. Pragmas Contract_Cases, Depends,
714         Extensions_Visible, Global, Postcondition, Precondition and
715         Test_Case now carry generic templates when the related context
716         is a generic subprogram. The same pragmas are no longer
717         forcefully fully analyzed when the context is a subprogram
718         that acts as a compilation unit. Pragmas Abstract_State,
719         Initial_Condition, Initializes and Refined_State have been clean
720         up. Pragmas Post, Post_Class, Postcondition, Pre, Pre_Class
721         and Precondition now use the same routine for analysis. Pragma
722         Refined_Post does not need to check the use of 'Result or
723         the lack of a post-state in its expression. Reimplement the
724         analysis of pragma Test_Case.
725         (Analyze_Pre_Post_Condition): New routine.
726         (Analyze_Pre_Post_Condition_In_Decl_Part):
727         Reimplemented.
728         (Analyze_Refined_Depends_In_Decl_Part): Use Get_Argument to obtain the
729         proper expression.
730         (Analyze_Refined_Global_In_Decl_Part): Use Get_Argument to obtain
731         the proper expression.
732         (Analyze_Test_Case_In_Decl_Part): Reimplemented.
733         (Check_Pre_Post): Removed.
734         (Check_Precondition_Postcondition): Removed.
735         (Check_SPARK_Aspect_For_ASIS): Removed.
736         (Check_Test_Case): Removed.
737         (Collect_Subprogram_Inputs_Outputs): Use Get_Argument
738         to obtain the proper expression. Use Corresponding_Spec_Of to
739         find the proper spec.
740         (Create_Generic_Template): New routine.
741         (Duplication_Error): New routine.
742         (Expression_Function_Error): New routine.
743         (Find_Related_Subprogram_Or_Body): Moved to the spec
744         of Sem_Prag. Emit precise error messages. Account for cases of
745         rewritten expression functions, generic instantiations, handled
746         sequence of statements and pragmas from aspects.
747         (Get_Argument): New routine.
748         (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Removed.
749         (Preanalyze_CTC_Args): Removed.
750         (Process_Class_Wide_Condition): New routine.
751         * sem_prag.ads (Analyze_Test_Case_In_Decl_Part): Update
752         the parameter profile along with the comment on usage.
753         (Find_Related_Subprogram_Or_Body): Moved from the body of Sem_Prag.
754         (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Removed.
755         (Test_Case_Arg): New routine.
756         * sem_util.adb Add with and use clauses for Sem_Ch6.
757         (Add_Contract_Item): This routine now creates a contract
758         node the first time an item is added. Remove the duplicate
759         aspect/pragma checks.
760         (Check_Result_And_Post_State): Reimplemented.
761         (Corresponding_Spec_Of): New routine.
762         (Get_Ensures_From_CTC_Pragma): Removed.
763         (Get_Requires_From_CTC_Pragma): Removed.
764         (Has_Significant_Contract): New routine.
765         (Inherit_Subprogram_Contract): Inherit only if the source
766         has a contract.
767         (Install_Generic_Formals): New routine.
768         (Original_Aspect_Name): Removed.
769         (Original_Aspect_Pragma_Name): New routine.
770         * sem_util.ads (Check_Result_And_Post_State): Reimplemented.
771         (Corresponding_Spec_Of): New routine.
772         (Get_Ensures_From_CTC_Pragma): Removed.
773         (Get_Requires_From_CTC_Pragma): Removed.
774         (Has_Significant_Contract): New routine.
775         (Install_Generic_Formals): New routine.
776         (Original_Aspect_Name): Removed.
777         (Original_Aspect_Pragma_Name): New routine.
778         * sem_warn.adb Add with and use clauses for Sem_Prag.
779         (Within_Postcondition): Use Test_Case_Arg to extract "Ensures".
781 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
783         * sem_ch8.adb (Available_Subtype): Optimization in
784         Find_Selected_Component: when safe, use existing subtype of
785         array component, possibly discriminant-dependent, rather than
786         creating new subtype declaration for it. In this fashion different
787         occurrences of the component have the same subtype, rather than
788         just equivalent ones. Simplifies value tracing in GNATProve.
790 2015-03-01  Arnaud Charlet  <charlet@adacore.com>
792         PR ada/65259
794         * doc/gnat_ugn/gnat_project_manager.rst,
795         doc/gnat_ugn/platform_specific_information.rst: Remove reference to
796         image, too troublesome with texi format.
797         * gnat_ugn.texi: Regenerate.
799 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
801         PR libgomp/64625
802         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8): Remove.
803         (DEF_FUNCTION_TYPE_VAR_12): Likewise.
804         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
806 2015-02-23  Thomas Schwinge  <thomas@codesourcery.com>
808         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8): Fix number of
809         arguments parameter.
810         (DEF_FUNCTION_TYPE_VAR_12): Likewise.
812 2015-02-22  Arnaud Charlet  <charlet@adacore.com>
814         * doc/Makefile: postprocess texinfo files to update @dircategory
815         and update texi files under gcc/ada.
816         * gnat_ugn.texi, gnat_rm.texi: Regenerated.
818 2015-02-22  Arnaud Charlet  <charlet@adacore.com>
820         * doc/gnat_ugn/project-manager-figure.png,
821         doc/gnat_ugn/rtlibrary-structure.png: New.
823 2015-02-22  Tom de Vries  <tom@codesourcery.com>
825         PR ada/65100
826         * gnat-style.texi (@subsection Loop Statements): Replace @noindent by
827         @item, and fix warning '@itemize has text but no @item'.
829 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
831         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Pragma
832         legally applies to an abstract subprogram declaration.
833         * freeze.adb: Minor comment addition.
835 2015-02-20  Robert Dewar  <dewar@adacore.com>
837         * errout.ads: Document replacement of Name_uPre/Post/Type_Invariant.
838         * erroutc.adb (Set_Msg_Str): Replace _xxx.
839         (Pre/Post/Type_Invariant) by xxx'Class.
840         * erroutc.ads (Set_Msg_Str): Replace _xxx.
841         (Pre/Post/Type_Invariant) by xxx'Class.
842         * sem_prag.adb (Fix_Error): Remove special casing of
843         Name_uType_Invariant.
844         (Analyze_Pre_Post_Condition_In_Decl_Part): Remove special casing of
845         Name_uPre and Name_uPost in aspect case (done in Errout now).
847 2015-02-20  Robert Dewar  <dewar@adacore.com>
849         * g-alveop.adb: Minor style fixes.
851 2015-02-20  Robert Dewar  <dewar@adacore.com>
853         * freeze.adb (Warn_Overlay): Guard against blow up with address
854         clause.
856 2015-02-20  Bob Duff  <duff@adacore.com>
858         * exp_attr.adb (May_Be_External_Call): Remove this. There is no need
859         for the compiler to guess whether the call is internal or external --
860         it is always external.
861         (Expand_Access_To_Protected_Op): For P'Access, where P
862         is a protected subprogram, always create a pointer to the
863         External_Subprogram.
865 2015-02-20  Robert Dewar  <dewar@adacore.com>
867         * a-dispat.adb, a-stcoed.ads: Minor reformatting.
869 2015-02-20  Robert Dewar  <dewar@adacore.com>
871         * sem_ch13.adb (Build_Discrete_Static_Predicate): Allow static
872         predicate for non-static subtype.
873         (Build_Predicate_Functions): Do not assume subtype associated with a
874         static predicate must be static.
876 2015-02-20  Robert Dewar  <dewar@adacore.com>
878         * errout.adb (Set_Msg_Node): Better handling of internal names
879         (Set_Msg_Node): Kill message when we cannot eliminate internal name.
880         * errout.ads: Document additional case of message deletion.
881         * namet.adb (Is_Internal_Name): Refined to consider wide
882         strings in brackets notation and character literals not to be
883         internal names.
884         * sem_ch8.adb (Find_Selected_Component): Give additional error
885         when selector name is a subprogram whose first parameter has
886         the same type as the prefix, but that type is untagged.
888 2015-02-20  Robert Dewar  <dewar@adacore.com>
890         * g-allein.ads, g-alveop.adb, g-alveop.ads, opt.ads: Minor reformatting
892 2015-02-20  Tristan Gingold  <gingold@adacore.com>
894         * opt.ads (GNAT_Mode_Config): New variable.
895         * opt.adb (Set_Opt_Config_Switches): Consider GNAT_Mode_Config
896         to set Assertions_Enabled.
897         * switch-c.adb (Scan_Front_End_Switches): Set GNAT_Mode_Config
898         for -gnatg.
900 2015-02-20  Robert Dewar  <dewar@adacore.com>
902         * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add an additional
903         comment regarding the handling of unterminated fixed-point
904         constants.
905         * s-valuns.ads (Scan_Raw_Unsigned): Add comments
906         corresponding to those previously added for
907         System.Val_LLU.Scan_Raw_Long_Long_Unsigned.
909 2015-02-20  Olivier Hainque  <hainque@adacore.com>
911         * g-allein.ads, g-alveop.ads, g-alveop.adb: Code clean ups.
913 2015-02-20  Robert Dewar  <dewar@adacore.com>
915         * sem_prag.adb: Minor comment clarification.
917 2015-02-20  Olivier Hainque  <hainque@adacore.com>
919         * g-allein.ads (vec_ctf, vec_vcsfx, vec_vcfux): Remove.
920         * g-alleve.ads, g-alleva.adb (vcfux): Likewise.
921         * g-alveop.ads (vec_vcfsx, vec_vcfux): Just rename the ll versions.
922         (vec_ctf): Now renamings as well.
924 2015-02-20  Robert Dewar  <dewar@adacore.com>
926         * switch-c.adb, bindgen.adb: Minor reformatting.
928 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
930         * sem_prag.adb (Analyze_Pragma, case Type_Invariant):
931         Invariant'class is allowed on an abstract type.
933 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
935         * sem_ch3.adb (Access_Definition): If the access definition is
936         for a protected component and defines an access to protected
937         subprogram, do not create an itype reference for it because a
938         full type declaration will be built in order to generate the
939         proper equivalent type.
940         (Analyze_Subtype_Declaration): Add information of incomplete
941         subtypes, for Ada 2012 extended uses of incomplete types.
943 2015-02-20  Gary Dismukes  <dismukes@adacore.com>
945         * sem_res.adb: Minor reformatting.
947 2015-02-20  Vincent Celier  <celier@adacore.com>
949         * switch-c.adb (Scan_Front_End_Switches): When comparing runtime
950         path name for several switches --RTS, use the normalized path
951         names.
953 2015-02-20  Vincent Celier  <celier@adacore.com>
955         * bindgen.adb: Minor reformatting and code reorganization.
957 2015-02-20  Jose Ruiz  <ruiz@adacore.com>
959         * a-stcoed.ads: Add spec for this package (Unimplemented_Unit).
960         * impunit.adb (Non_Imp_File_Names_12): Mark unit a-stcoed.ads as
961         defined by Ada 2012.
963 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
965         * sysdep.c, expect.c, s-oscons-tmplt.c, gsocket.h, adaint.c: Remove
966         obsolete references to RTX, nucleus, VMS.
968 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
970         * sem_prag.adb (Fix_Error): For an illegal Type_Invariant'Class
971         aspect, use name that mentions Class explicitly, rather than
972         compiler-internal name.
974 2015-02-20  Robert Dewar  <dewar@adacore.com>
976         * debug.adb: Add documentation for -gnatd.2 (allow statements
977         in decl sequences).
978         * par-ch3.adb (P_Identifier_Declarations): Handle
979         statement appearing where declaration expected more cleanly.
980         (Statement_When_Declaration_Expected): Implement debug flag
981         -gnatd.2.
983 2015-02-20  Jose Ruiz  <ruiz@adacore.com>
985         * a-dinopr.ads: Add spec for this package (Unimplemented_Unit).
986         * a-dispat.ads (Yield): Include procedure added in Ada 2012.
987         * a-dispat.adb (Yield): Implement procedure added in Ada 2012.
988         * impunit.adb (Non_Imp_File_Names_05): Mark unit a-dinopr.ads as
989         defined by Ada 2005.
990         * snames.ads-tmpl (Name_Non_Preemptive_FIFO_Within_Priorities):
991         This is the correct name for the dispatching policy (FIFO was
992         missing).
994 2015-02-20  Javier Miranda  <miranda@adacore.com>
996         * sem_res.adb (Resolve_Type_Conversion): If the type of the
997         operand is the limited-view of a class-wide type then recover
998         the class-wide type of the non-limited view.
1000 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
1002         * gcc-interface/Makefile.in: Remove references to nucleus.
1003         * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Procedure): Set
1004         extern_flag to true for Inline_Always subprograms with
1005         Intrinsic convention.
1007 2015-02-20  Yannick Moy  <moy@adacore.com>
1009         * sem_prag.ads: Minor typo in comment.
1011 2015-02-20  Pascal Obry  <obry@adacore.com>
1013         * s-osprim-mingw.adb: Fix Get_Base_Time parameter mode.
1015 2015-02-20  Vincent Celier  <celier@adacore.com>
1017         * makeutl.adb (Get_Directories.Add_Dir): Add a directory only
1018         if it exists.
1020 2015-02-20  Robert Dewar  <dewar@adacore.com>
1022         * sem_eval.ads: Minor reformatting.
1024 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
1026         * freeze.adb (Size_Known): Do not set the packed size for
1027         independent type or component.
1028         (Freeze_Array_Type): Check for Independent[_Components] with packing
1029         or explicit component size clause.
1030         * gnat1drv.adb (Post_Compilation_Validation_Checks): Do the validation
1031         of independence pragmas only for non-GCC back-ends.
1032         * sem_ch13.adb (Initialize): Likewise for the initialization.
1033         * sem_prag.adb (Record_Independence_Check): New procedure to record an
1034         independence check in the table.
1035         (Analyze_Pragma): Use it throughout instead of doing it manually.
1036         * gcc-interface/decl.c (gnat_to_gnu_field): Add support for
1037         independent type or component.
1039 2015-02-20  Thomas Quinot  <quinot@adacore.com>
1041         * adaint.c (__gnat_readdir): For Solaris, use 64 bit variants of
1042         struct direct and readdir. This is required for NFS filesystems
1043         mounted from servers that use 64-bit cookies.
1045 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
1047         * sem_ch12.adb (Analyze_Subprogram_Instantiaion): New subprogram
1048         Build_Subprogram_Renaming, to create renaming of subprogram
1049         instance in the the declaration of the wrapper package rather
1050         than in its body, so that it is available for analysis of aspects
1051         propagated from generic to instantiation.
1052         (Check_Mismatch): An actual for a formal package that is an
1053         incomplete type matches a formal type that is incomplete.
1054         (Instantiate_Package_Body): Move code that builds subprogram
1055         renaming to Analyze_Subprogram_Instantiation.
1056         (Instantiate_Type): The generated subtype is a limited view if
1057         the actual is a limited view.
1058         (Load_Parent_Of_Generic): Retrieve instance declaration from
1059         its new position within wrapper package.
1061 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
1063         * s-parame-vxworks.adb, s-os_lib.ads: Update comments.
1065 2015-02-20  Robert Dewar  <dewar@adacore.com>
1067         * s-osinte-vxworks.ads (To_Timespec): Add comment about the
1068         issue of negative arguments.
1070 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
1072         * gnat1drv.adb: Minor consistency fix.
1074 2015-02-20  Pascal Obry  <obry@adacore.com>
1076         * s-osprim-mingw.adb (Get_Base_Time): Properly release lock in all
1077         paths.
1079 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
1081         * inline.adb (Expand_Inlined_Call): Skip again calls to subprogram
1082         renamings.
1083         * exp_ch6.adb (Expand_Call): Use back-end inlining
1084         instead of expansion for simple subprogram renamings.
1086 2015-02-20  Robert Dewar  <dewar@adacore.com>
1088         * exp_util.adb: Minor reformatting.
1090 2015-02-20  Vincent Celier  <celier@adacore.com>
1092         * switch-c.adb (Scan_Front_End_Switches): Do not fail when --RTS=
1093         is specified several times with different values that indicates
1094         the same runtime directory.
1096 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
1098         * sem_attr.adb (Check_Not_Incomplete_Type): Clean up code to
1099         handle properly illegal uses of attributes on prefixes on an
1100         incomplete type, both when the type of the prefix is locally
1101         incomplete, and when it is a limited view of a type whose
1102         non-limited view is not available.
1103         (Analyze_Attribute): Add calls to Check_Not_Incomplete_Type for
1104         'Address and others.
1106 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
1108         * exp_ch6.adb: Fix minor typo in comment.
1110 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
1112         * sinfo.ads: Add comment.
1114 2015-02-20  Olivier Hainque  <hainque@adacore.com>
1116         * opt.ads: Replace Opt.Suppress_All_Inlining by two separate
1117         flags controlling the actual FE inlining out of pragma Inline
1118         and pragma Inline_Always.
1119         * adabkend.adb (Scan_Compiler_Arguments): Set both flags to True
1120         on -fno-inline, which disables all inlining in compilers with
1121         an Ada back-end and without back-end inlining support.
1122         * back_end.adb (Scan_Back_End_Switches): Set the Inline related
1123         flag to True on -fno-inline and leave Inline_Always alone for
1124         gcc back-ends.
1125         * back_end.ads (Scan_Compiler_Arguments): Adjust spec wrt the
1126         names of the Opt flags it sets.
1127         * gnat1drv.adb (Adjust_Global_Switches): Remove test on
1128         Opt.Suppress_All_Inlining in the Back_End_Inlining computation.
1129         * sem_prag.adb (Make_Inline): Remove early return conditioned
1130         on Opt.Suppress_All_Inlining.
1131         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use the flags to
1132         disable the calls to Build_Body_To_Inline otherwise triggered
1133         by pragma Inline or Inline_Always. This will prevent actual
1134         front-end inlining of the subprogram on calls.
1136 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
1138         * exp_ch3.adb (Default_Initialize_Object): Call Add_Inlined_Body on the
1139         Abort_Undefer_Direct function.
1140         * exp_ch5.adb (Expand_N_Assignment_Statement): Likewise.
1141         * exp_intr.adb (Expand_Unc_Deallocation): Likewise.
1142         * exp_prag.adb (Expand_Pragma_Abort_Defer): Likewise.
1143         * exp_ch4.adb (Expand_N_Selected_Component): Adjust call to
1144         Add_Inlined_Body.
1145         * exp_ch6.adb (Expand_Call): Adjust calls to Add_Inlined_Body.
1146          Remove call to Register_Backend_Call and move code resetting
1147         Needs_Debug_Info on inlined subprograms to...
1148         * inline.ads (Add_Inlined_Body): Add N parameter.
1149         (Register_Backend_Call): Delete.
1150         * inline.adb (Add_Inlined_Body): ...here and simplify.
1151          Register the call with Backend_Calls directly.
1152         (Register_Backend_Call): Delete.
1153         * s-stalib.ads (Abort_Undefer_Direct): Restore pragma Inline.
1155 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
1157         * s-stalib.ads: Fix typo.
1159 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
1161         * exp_ch3.adb (Default_Initialize_Object): If the object has a
1162         delayed freeze, the actions associated with default initialization
1163         must be part of the freeze actions, rather that being inserted
1164         directly after the object declaration.
1166 2015-02-20  Robert Dewar  <dewar@adacore.com>
1168         * lib-load.adb: Minor comment update.
1170 2015-02-20  Vincent Celier  <celier@adacore.com>
1172         * prj-proc.adb (Process_Case_Construction): When there are
1173         incomplete withed projects and the case variable is unknown,
1174         skip the case construction.
1176 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
1178         * exp_ch6.adb (Expand_Actuals): Add caller-side invariant checks
1179         when an actual is a view conversion, either because the call is
1180         to an inherited operation, or because the actual is an explicit
1181         type conversion to an ancestor type.  Fixes ACATS 4.0D: C732001
1183 2015-02-20  Robert Dewar  <dewar@adacore.com>
1185         * einfo.ads: Minor comment updates Fix missing pragma Inline
1186         for Set_Partial_View_Has_Unknown_Discr.
1187         * einfo.adb (Write_Entity_Flags): Add missing entry for
1188         Partial_View_Has_Unknown_Discr.
1189         * sem_ch3.adb: Minor reformatting.
1191 2015-02-20  Vincent Celier  <celier@adacore.com>
1193         * opt.ads: Minor cleanup: remove mention of gprmake.
1194         * s-stalib.ads (Abort_Undefer_Direct): Do not inline.
1195         * s-tataat.adb: Do not call System.Tasking.Self but directly
1196         System.Task_Primitives.Operations.Self.
1198 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
1200         * gnat_rm.texi, gnat_ugn.texi: Now automatically generated from
1201         sphinx in the doc directory.
1202         * doc: New directory containing sphinx versions of gnat_rm and gnat_ugn
1204 2015-02-20  Robert Dewar  <dewar@adacore.com>
1206         * sem_res.adb: Minor reformatting.
1207         * exp_ch9.adb (Build_Protected_Spec): Copy Aliased setting when
1208         building spec.
1209         * sem_ch13.adb (Analyze_Aspect_Specifications): Exclude Boolean
1210         aspects from circuitry setting delay required to false if the
1211         argument is an integer literal.
1213 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
1215         * einfo.ads. einfo.adb (Partial_View_Has_Unknown_Discr):  New flag
1216         on type entities, to enforce AI12-0133: default initialization
1217         of types whose partial view has unknown discriminants does not
1218         get an invariant check, because clients of the unit can never
1219         declare objects of such types.
1220         * sem_ch3.adb (Find_Type_Name); Set new flag
1221         Partial_View_Has_Unknown_Discr when needed.
1222         * exp_ch3.adb (Expand_N_Object_Declaration): Use flag to suppress
1223         generation of invariant call on default-initialized object.
1225 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
1227         * gcc-interface/decl.c (gnat_to_gnu_param): Do not strip the padding
1228         if the parameter either is passed by reference or if the alignment
1229         would be lowered.
1231 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
1233         * gcc-interface/decl.c (is_cplusplus_method): Use Is_Primitive flag to
1234         detect primitive operations of tagged and untagged types.
1236 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
1238         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias
1239         sets in presence of derivation for subprogram types.
1241 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
1243         * gcc-interface/utils.c (begin_subprog_body): Assert that the body is
1244         present in the same context as the declaration.
1246 2015-02-07  Jakub Jelinek  <jakub@redhat.com>
1248         PR middle-end/64340
1249         * gcc-interface/trans.c (gigi): Recreate optimization_default_node
1250         and optimization_current_node after tweaking global_options.
1252 2015-02-05  Robert Dewar  <dewar@adacore.com>
1254         * prj-proc.adb, sem_aux.adb, exp_ch9.adb, errout.adb, prj-dect.adb,
1255         prj-nmsc.adb: Minor reformatting.
1257 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
1259         * sem_type.adb (Covers): In ASIS_Mode the Corresponding_Record
1260         of a protected type may not be available, so to check conformance
1261         with an interface type, examine the interface list in the type
1262         declaration directly.
1263         (Write_Overloads): Improve information for indirect calls,
1264         for debugger use.
1266 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
1268         * exp_ch3.adb (Make_Tag_Assignment): Do not perform this
1269         expansion activity in ASIS mode.
1271 2015-02-05  Javier Miranda  <miranda@adacore.com>
1273         * errout.adb (Error_Msg_PT): Add missing error.
1274         * sem_ch6.adb (Check_Synchronized_Overriding): Check the missing
1275         RM rule.  Code cleanup.
1276         * exp_ch9.adb (Build_Wrapper_Spec): Propagate "constant" in
1277         anonymous access types.  Found working on the tests. Code cleanup.
1279 2015-02-05  Vincent Celier  <celier@adacore.com>
1281         * prj-dect.adb (Parse_Attribute_Declaration): Continue scanning
1282         when there are incomplete withs.
1283         * prj-nmsc.adb (Process_Naming): Do not try to get the value
1284         of an element when it is nil.
1285         (Check_Naming): Do not check a nil suffix for illegality
1286         * prj-proc.adb (Expression): Do not process an empty term.
1287         * prj-strt.adb (Attribute_Reference): If attribute cannot be
1288         found, parse a possible index to avoid cascading errors.
1290 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
1292         * sem_aux.adb (Is_Derived_Type): A subprogram_type generated
1293         for an access_to_subprogram declaration is not a derived type.
1295 2015-02-05  Robert Dewar  <dewar@adacore.com>
1297         * errout.adb (Error_Msg_Internal): For non-serious error set
1298         Fatal_Error to Ignored.
1299         * lib-load.adb (Load_Unit): Minor comment updates.
1300         * sem_ch10.adb (Analyze_With_Clause): Propagate Fatal_Error
1301         setting from with'ed unit to with'ing unit.
1302         * sem_prag.adb (Analyze_Pragma, case Warnings): Document handling
1303         of ambiguity.
1305 2015-02-05  Yannick Moy  <moy@adacore.com>
1307         * sem_prag.adb, par-prag.adb: Minor code clean up.
1309 2015-02-05  Yannick Moy  <moy@adacore.com>
1311         * par-prag.adb (Pragma_Warnings): Update for extended form
1312         of pragma Warnings. The "one" argument case may now have 2 or
1313         3 arguments.
1314         * sem_prag.adb (Analyze_Pragma/Pragma_Warnings): Update for
1315         extended form of pragma Warnings. Pragma with tool name is either
1316         rewritten as null or as an equivalent form without tool name,
1317         before reanalysis.
1318         * snames.ads-tmpl (Name_Gnatprove): New name.
1320 2015-02-05  Robert Dewar  <dewar@adacore.com>
1322         * sem_ch13.adb (Add_Invariants): Don't assume invariant is
1323         standard Boolean.
1324         * sem_prag.adb (Analyze_Pragma, case Check): Don't assume
1325         condition is standard Boolean, it can be non-standard derived
1326         Boolean.
1328 2015-02-05  Robert Dewar  <dewar@adacore.com>
1330         * checks.adb (Enable_Range_Check): Disconnect attempted
1331         optimization for the case of range check for subscript of
1332         unconstrained array.
1334 2015-02-05  Robert Dewar  <dewar@adacore.com>
1336         * par-ch13.adb (With_Present): New function
1337         (Aspect_Specifications_Present): Handle WHEN in place of WITH
1338         (Get_Aspect_Specifications): Comment update.
1339         * par.adb: Comment updates.
1341 2015-02-05  Robert Dewar  <dewar@adacore.com>
1343         * errout.adb (Handle_Serious_Error): New setting of Fatal_Error.
1344         * frontend.adb (Frontend): New setting of Fatal_Error.
1345         * lib-load.adb (Create_Dummy_Package_Unit): New setting of
1346         Fatal_Error.
1347         (Load_Main_Source): New setting of Fatal_Error
1348         (Load_Unit): New setting of Fatal_Error.
1349         * lib-writ.adb (Add_Preprocessing_Dependency): New setting of
1350         Fatal_Error.
1351         (Ensure_System_Dependency): New setting of Fatal_Error.
1352         * lib.adb (Fatal_Error): New setting of Fatal_Error
1353         (Set_Fatal_Error): New setting of Fatal_Error.
1354         * lib.ads: New definition of Fatal_Error and associated routines.
1355         * par-ch10.adb (P_Compilation_Unit): New setting of Fatal_Error.
1356         * par-load.adb (Load): New setting of Fatal_Error.
1357         * rtsfind.adb (Load_RTU): New setting of Fatal_Error.
1358         * sem_ch10.adb (Analyze_Compilation_Unit): New setting of
1359         Fatal_Error.
1360         (Optional_Subunit): New setting of Fatal_Error.
1361         (Analyze_Proper_Body): New setting of Fatal_Error.
1362         (Load_Needed_Body): New setting of Fatal_Error.
1364 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
1366         * sem_res.adb (Resolve_Call): If the function being called has
1367         out parameters do not check for language version if the function
1368         comes from a predefined unit, as those are always compiled in
1369         Ada 2012 mode.
1371 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
1373         * sem_ch3.adb (Process_Full_View): Verify that the full view
1374         of a type extension must carry an explicit limited keyword if
1375         the partial view does (RM 7.3 (10.1)).
1377 2015-02-05  Robert Dewar  <dewar@adacore.com>
1379         * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads,
1380         sem_warn.ads: Minor reformatting.
1381         * exp_ch13.adb (Expand_N_Freeze_Entity): Add guard for aspect
1382         deleted by -gnatI.
1383         * sem_prag.adb (Analyze_Pragma, case Type_Invariant): Give
1384         error for abstract type.
1386 2015-02-05  Yannick Moy  <moy@adacore.com>
1388         * opt.ads (Warn_On_Suspicious_Contract): Update comment
1389         describing use.
1390         * sem_attr.adb (Analyze_Attribute/Attribute_Update): Warn on
1391         suspicious uses of 'Update.
1392         * sem_warn.adb, sem_warn.ads (Warn_On_Suspicious_Update): New
1393         function issues warning on suspicious uses of 'Update.
1394         * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads: Mark
1395         package spec and body as SPARK_Mode Off.
1397 2015-02-05  Robert Dewar  <dewar@adacore.com>
1399         * sem_prag.adb (Set_Elab_Unit_Name): New name for Set_Unit_Name
1400         (Analyze_Pragma): Change Set_Unit_Name to Set_Elab_Unit_Name
1401         (Set_Elab_Unit_Name): Generate reference for Elaborate[_All]
1402         * sem_warn.adb (Warn_On_Unreferenced_Entity): Suppress warning
1403         for exported entity.
1405 2015-02-05  Hristian Kirtchev  <kirtchev@adacore.com>
1407         * sem_prag.adb (Check_Pragma_Conformance): Add
1408         local variable Arg. Ensure that all errors are associated with
1409         the pragma if it appears without an argument. Add comments on
1410         various cases.
1412 2015-02-05  Robert Dewar  <dewar@adacore.com>
1414         * lib-xref.adb: Minor reformatting.
1416 2015-02-05  Tristan Gingold  <gingold@adacore.com>
1418         PR ada/64349da/64349
1419         * env.c: Fix thinko: handle Darwin case before default one.
1421 2015-01-30  Robert Dewar  <dewar@adacore.com>
1423         * a-assert.adb: Minor reformatting.
1424         * sem_ch13.adb: Minor comment clarification.
1425         * types.ads: Minor comment update.
1426         * sem_eval.adb (Real_Or_String_Static_Predicate_Matches): Avoid blow up
1427         when we have a predicate that is nothing but an inherited dynamic
1428         predicate.
1430 2015-01-30  Jerome Guitton  <guitton@adacore.com>
1432         * gcc-interface/Makefile.in (x86-vxworks): Update GCC_SPEC_FILES to
1433         include cert link spec.
1435 2015-01-30  Robert Dewar  <dewar@adacore.com>
1437         * einfo.ads: Minor comment fix.
1438         * freeze.adb (Freeze_Profile): Add test for suspicious import
1439         in pure unit.
1440         * sem_prag.adb (Process_Import_Or_Interface): Test for suspicious
1441         use in Pure unit is now moved to Freeze (to properly catch
1442         Pure_Function exemption).
1444 2015-01-30  Bob Duff  <duff@adacore.com>
1446         * sem_res.ads: Minor comment fix.
1447         * sem_type.adb: sem_type.adb (Remove_Conversions): Need to
1448         check both operands of an operator.
1450 2015-01-30  Yannick Moy  <moy@adacore.com>
1452         * a-assert.ads, a-assert.adb: Mark package spec in SPARK. Set assertion
1453         policy for Pre to Ignore.
1454         (Assert): Add precondition.
1456 2015-01-30  Robert Dewar  <dewar@adacore.com>
1458         * sem_prag.adb (Process_Import_Or_Interface): Warn if used in
1459         Pure unit.
1460         * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Clarify
1461         documentation for some special cases of invalid attempts at
1462         based integers.
1464 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
1466         * errout.ads: Minor reformatting.
1468 2015-01-30  Yannick Moy  <moy@adacore.com>
1470         * inline.adb (Process_Formals): Use the sloc of
1471         the inlined node instead of the sloc of the actual parameter,
1472         when replacing formal parameters by the actual one.
1474 2015-01-30  Arnaud Charlet  <charlet@adacore.com>
1476         * g-expect.adb (Get_Command_Output): Use infinite timeout when
1477         calling Expect.
1479 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
1481         * sem_ch12.adb (Analyze_Associations): If an in-parameter is
1482         defaulted in an instantiation, add an entry in the list of actuals
1483         to indicate the default value of the formal (as is already done
1484         for defaulted subprograms).
1486 2015-01-30  Javier Miranda  <miranda@adacore.com>
1488         * errout.adb (Error_Msg_PT): Minor error phrasing update.
1490 2015-01-30  Robert Dewar  <dewar@adacore.com>
1492         * sem_warn.adb (Warn_On_Known_Condition): Improve error message
1493         for object case.
1495 2015-01-30  Pierre-Marie de Rodat  <derodat@adacore.com>
1497         * exp_dbug.adb (Get_Encoded_Name): When
1498         -fgnat-encodings=minimal, do not generate names for biased types.
1500 2015-01-30  Tristan Gingold  <gingold@adacore.com>
1502         PR ada/64349
1503         * env.c: Move vxworks and darwin includes out of #ifdef IN_RTS.
1505 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
1507         * freeze.adb: Minor reformatting.
1509 2015-01-30  Javier Miranda  <miranda@adacore.com>
1511         * errout.ads (Error_Msg_PT): Replace Node_Id by Entity_Id and
1512         improve its documentation.
1513         * errout.adb (Error_Msg_PT): Improve the error message.
1514         * sem_ch6.adb (Check_Conformance): Update call to Error_Msg_PT.
1515         (Check_Synchronized_Overriding): Update call to Error_Msg_PT.
1516         * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup.
1518 2015-01-30  Robert Dewar  <dewar@adacore.com>
1520         * sem_warn.adb (Warn_On_Known_Condition): Do special casing of
1521         message for False case.
1523 2015-01-30  Doug Rupp  <rupp@adacore.com>
1525         * s-vxwext-kernel.ads (Task_Cont): Remove imported subprogram body.
1526         * s-vxwext-kernel.adb (Task_Cont): New subpprogram body specialized for
1527         kernel.
1529 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
1531         * sem_attr.adb (Declared_Within_Generic_Unit):
1532         New function to test whether an entity is declared within the
1533         declarative region of a given generic unit.
1534         (Resolve_Attribute): For checking legality of subprogram'Access within
1535         a generic unit, call new Boolean function Declared_Within_Generic_Unit
1536         instead of simply comparing the results of Enclosing_Generic_Unit on
1537         the prefix and access type.  Correct minor comment typos.
1539 2015-01-30  Robert Dewar  <dewar@adacore.com>
1541         * freeze.adb, exp_util.ads: Update comment.
1542         * exp_util.adb, exp_ch3.adb: Minor code reorganization and reformatting.
1543         * sem_util.adb: Minor: fix typo.
1545 2015-01-30  Hristian Kirtchev  <kirtchev@adacore.com>
1547         * sem_attr.adb (Analyze_Attribute): Ensure that
1548         the check concerning Refined_Post takes precedence over the
1549         other cases.
1551 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
1553         * sem_prag.adb: Minor typo fixes and reformatting.
1555 2015-01-30  Yannick Moy  <moy@adacore.com>
1557         * sem_attr.adb: Code clean up.
1559 2015-01-30  Robert Dewar  <dewar@adacore.com>
1561         * ali.adb (Scan_ALI): Set Serious_Errors flag in Unit record.
1562         * ali.ads (Unit_Record): Add new field Serious_Errors.
1563         * lib-writ.adb (Write_Unit_Information): Set SE (serious errors)
1564         attribute in U line.
1565         * lib-writ.ads: New attribute SE (serious erors) in unit line.
1567 2015-01-30  Hristian Kirtchev  <kirtchev@adacore.com>
1569         * einfo.adb Update the usage of attributes Entry_Bodies_Array,
1570         Lit_Indexes, Scale_Value, Storage_Size_Variable,
1571         String_Literal_Low_Bound along associated routines and
1572         Write_FieldX_Name.
1573         (Pending_Access_Types): New routine.
1574         (Set_Pending_Access_Types): New routine.
1575         (Write_Field15_Name): Add an entry for Pending_Access_Types.
1576         * einfo.ads Add new attribute Pending_Access_Types along
1577         with usage in nodes.  Update the usage of attributes
1578         Entry_Bodies_Array, Lit_Indexes, Scale_Value,
1579         Storage_Size_Variable, String_Literal_Low_Bound.
1580         (Pending_Access_Types): New routine along with pragma Inline.
1581         (Set_Pending_Access_Types): New routine along with pragma Inline.
1582         * exp_ch3.adb (Expand_Freeze_Array_Type): Add new local variable
1583         Ins_Node. Determine the insertion node for anonynous access type
1584         that acts as a component type of an array. Update the call to
1585         Build_Finalization_Master.
1586         (Expand_Freeze_Record_Type): Update
1587         the calls to Build_Finalization_Master.
1588         (Freeze_Type): Remove
1589         local variable RACW_Seen. Factor out the code that deals with
1590         remote access-to-class-wide types. Create a finalization master
1591         when the designated type contains a private component. Fully
1592         initialize all pending access types.
1593         (Process_RACW_Types): New routine.
1594         (Process_Pending_Access_Types): New routine.
1595         * exp_ch4.adb (Expand_Allocator_Expression): Allocation no longer
1596         needs to set primitive Finalize_Address.
1597         (Expand_N_Allocator): Allocation no longer sets primitive
1598         Finalize_Address.
1599         * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
1600         Update the call to Build_Finalization_Master.
1601         (Make_Build_In_Place_Call_In_Allocator): Allocation no longer
1602         needs to set primitive Finalize_Address.
1603         * exp_ch7.adb (Add_Pending_Access_Type): New routine.
1604         (Build_Finalization_Master): New parameter profile. Associate
1605         primitive Finalize_Address with the finalization master if the
1606         designated type has been frozen, otherwise treat the access
1607         type as pending. Simplify the insertion of the master and
1608         related initialization code.
1609         (Make_Finalize_Address_Body): Allow Finalize_Address for class-wide
1610         abstract types.
1611         (Make_Set_Finalize_Address_Call): Remove forlam parameter Typ.
1612         Simplify the implementation.
1613         * exp_ch7.ads (Build_Finalization_Master): New parameter profile
1614         along with comment on usage.
1615         (Make_Set_Finalize_Address_Call): Remove formal parameter Typ. Update
1616         the comment on usage.
1617         * exp_util.adb (Build_Allocate_Deallocate_Proc): Use routine
1618         Finalize_Address to retrieve the primitive.
1619         (Finalize_Address): New routine.
1620         (Find_Finalize_Address): Removed.
1621         * exp_util.ads (Finalize_Address): New routine.
1622         * freeze.adb (Freeze_All): Remove the generation of finalization
1623         masters.
1624         * sem_ch3.adb (Analyze_Full_Type_Declaration): Propagate any
1625         pending access types from the partial to the full view.
1627 2015-01-30  Robert Dewar  <dewar@adacore.com>
1629         * sem_disp.adb: Minor reformatting.
1630         * sem_disp.ads: Documentation update.
1632 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
1634         * sem_disp.adb (Is_Dynamically_Tagged): when applied to an entity
1635         or a function call, return True if type is class-wide.
1636         * sem_res.adb (Resolve_Case_Expression, Resolve_If_Expression);
1637         Apply RM 4.5.7 (17/3): all or none of the dependent expression
1638         of a conditional expression must be dynamically tagged.
1640 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
1642         * sem_ch6.adb (Analyze_Function_Return): In an extended return
1643         statement, apply accessibility check to result object when there
1644         is no initializing expression (Ada 2012 RM 6.5 (5.4/3))
1646 2015-01-30  Robert Dewar  <dewar@adacore.com>
1648         * sem_ch4.adb (Analyze_If_Expression): Allow for non-standard
1649         Boolean for case where ELSE is omitted.
1650         * sem_res.adb: Minor reformatting.
1652 2015-01-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1654         Fix build under cygwin/64.
1655         * adaint.h: Add check for __CYGWIN__.
1656         * mingw32.h: Prevent windows.h from including x86intrin.h in GCC.
1658 2015-01-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1660         PR ada/64640
1661         * adaint.c: Handle __CYGWIN__ like __MINGW32__ here.
1662         * mingw32.h: Don't include <tchar.h> under cygwin.
1663         (_O_U8TEXT, _O_U16TEXT, _O_WTEXT): Set to _O_TEXT if not yet defined.
1665 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
1667         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8)
1668         (DEF_FUNCTION_TYPE_VAR_12): New macros.
1670 2015-01-09  Michael Collison  <michael.collison@linaro.org>
1672         * gcc-interface/cuintp.c: Include hash-set.h, machmode.h,
1673         vec.h, double-int.h, input.h, alias.h, symtab.h,
1674         fold-const.h, wide-int.h, and inchash.h due to
1675         flattening of tree.h.
1676         * gcc-interface/decl.c: Ditto.
1677         * gcc-interface/misc.c: Ditto.
1678         * gcc-interface/targtyps.c: Include hash-set.h, machmode.h,
1679         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h,
1680         fold-const.h, wide-int.h, and inchash.h due to
1681         flattening of tree.h.
1682         * gcc-interface/trans.c: Include hash-set.h, machmode.h,
1683         vec.h, double-int.h, input.h, alias.h, symtab.h, real.h,
1684         fold-const.h, wide-int.h, inchash.h due to
1685         flattening of tree.h.
1686         * gcc-interface/utils.c: Include hash-set.h, machmode.h,
1687         vec.h, double-int.h, input.h, alias.h, symtab.h,
1688         fold-const.h, wide-int.h, and inchash.h due to
1689         flattening of tree.h.
1690         * gcc-interface/utils2.c: Ditto.
1692 2015-01-07  Robert Dewar  <dewar@adacore.com>
1694         * sem_warn.adb (Check_One_Unit): Don't give unused entities
1695         warning for a package which is used as a generic parameter.
1697 2015-01-07  Bob Duff  <duff@adacore.com>
1699         * usage.adb (Usage): Correct documentation of
1700         -gnatw.f switches.
1702 2015-01-07  Robert Dewar  <dewar@adacore.com>
1704         * s-fileio.adb: Minor reformatting.
1706 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1708         * sem_ch12.adb (Instantiate_Object): If formal is an anonymous
1709         access to subprogram, replace its formals with new entities when
1710         building the object declaration, both if actual is present and
1711         when it is defaulted.
1713 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1715         * sem_ch5.adb (Analyze_Assignment): If left-hand side is a view
1716         conversion and type of expression has invariant, apply invariant
1717         check on expression.
1719 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1721         * sem_ch3.adb (Create_Constrained_Components): A call to
1722         Gather_Components may detect an error if an inherited discriminant
1723         that controls a variant is non-static.
1724         * sem_aggr.adb (Resolve_Record_Aggregate, Step 5): The call to
1725         Gather_Components may report an error if an inherited discriminant
1726         in a variant in non-static.
1727         * sem_util.adb (Gather_Components): If a non-static discriminant
1728         is inherited do not report error here, but let caller handle it.
1729         (Find_Actual): Small optimization.
1731 2015-01-07  Bob Duff  <duff@adacore.com>
1733         * usage.adb (Usage): Document -gnatw.f switch.
1735 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1737         * sem_ch12.adb: Code clean up and minor reformatting.
1739 2015-01-07  Robert Dewar  <dewar@adacore.com>
1741         * exp_ch4.adb (Expand_N_Type_Conversion): Add guard for
1742         Raise_Accessibility_Error call.
1743         * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add documentation
1744         on handling of invalid digits in based constants.
1745         * s-fatgen.ads: Minor reformatting.
1746         * sem_attr.adb (Analyze_Attribute, case Unrestricted_Access):
1747         Avoid noting bogus modification for Valid test.
1748         * snames.ads-tmpl (Name_Attr_Long_Float): New Name.
1749         * einfo.ads: Minor reformatting.
1750         * sem_warn.adb: Minor comment clarification.
1751         * sem_ch12.adb: Minor reformatting.
1753 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1755         * exp_ch5.adb (Expand_Predicated_Loop): Handle properly loops
1756         over static predicates when the loop parameter specification
1757         carries a Reverse indicator.
1759 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1761         * sem_ch12.adb (Instantiate_Object): If formal has a default,
1762         actual is missing and formal has an anonymous access type, copy
1763         access definition in full so that tree for instance is properly
1764         formatted for ASIS use.
1766 2015-01-07  Bob Duff  <duff@adacore.com>
1768         * sem_elab.adb (Check_Internal_Call_Continue): Give a warning
1769         for P'Access, where P is a subprogram in the same package as
1770         the P'Access, and the P'Access is evaluated at elaboration
1771         time, and occurs before the body of P. For example, "X : T :=
1772         P'Access;" would allow a subsequent call to X.all to be an
1773         access-before-elaboration error; hence the warning. This warning
1774         is enabled by the -gnatw.f switch.
1775         * opt.ads (Warn_On_Elab_Access): New flag for warning switch.
1776         * warnsw.adb (Set_Dot_Warning_Switch): Set Warn_On_Elab_Access.
1777         * gnat_ugn.texi: Document the new warning.
1779 2015-01-07  Johannes Kanig  <kanig@adacore.com>
1781         * lib-xref-spark_specific.adb (Collect_SPARK_Xrefs): Skip unneeded
1782         cross ref files.
1784 2015-01-07  Robert Dewar  <dewar@adacore.com>
1786         * s-taprop-linux.adb, clean.adb: Minor reformatting.
1788 2015-01-07  Arnaud Charlet  <charlet@adacore.com>
1790         * s-tassta.adb: Relax some overzealous assertions.
1792 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1794         * sem_ch6.adb (Analyze_Return_Type): An call that returns a limited
1795         view of a type is legal when context is a thunk generated for
1796         operation inherited from an interface.
1797         * exp_ch6.adb (Expand_Simple_Function_Return): If context is
1798         a thunk and return type is an incomplete type do not continue
1799         expansion; thunk will be fully elaborated when generating code.
1801 2015-01-07  Doug Rupp  <rupp@adacore.com>
1803         * s-osinte-mingw.ads (LARGE_INTEGR): New subtype.
1804         (QueryPerformanceFrequency): New imported procedure.
1805         * s-taprop-mingw.adb (RT_Resolution): Call above and return
1806         resolution vice a hardcoded value.
1807         * s-taprop-solaris.adb (RT_Resolution): Call clock_getres and return
1808         resolution vice a hardcoded value.
1809         * s-linux-android.ads (clockid_t): New subtype.
1810         * s-osinte-aix.ads (clock_getres): New imported subprogram.
1811         * s-osinte-android.ads (clock_getres): Likewise.
1812         * s-osinte-freebsd.ads (clock_getres): Likewise.
1813         * s-osinte-solaris-posix.ads (clock_getres): Likewise.
1814         * s-osinte-darwin.ads (clock_getres): New subprogram.
1815         * s-osinte-darwin.adb (clock_getres): New subprogram.
1816         * thread.c (__gnat_clock_get_res) [__APPLE__]: New function.
1817         * s-taprop-posix.adb (RT_Resolution): Call clock_getres to
1818         calculate resolution vice hard coded value.
1820 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1822         * exp_util.adb (Make_CW_Equivalent_Type): If root type is a
1823         limited view, use non-limited view when available to create
1824         equivalent record type.
1826 2015-01-07  Vincent Celier  <celier@adacore.com>
1828         * gnatcmd.adb: Remove command Sync and any data and processing
1829         related to this command. Remove project processing for gnatstack.
1830         * prj-attr.adb: Remove package Synchonize and its attributes.
1832 2015-01-07  Vincent Celier  <celier@adacore.com>
1834         * clean.adb: Minor error message change.
1836 2015-01-07  Tristan Gingold  <gingold@adacore.com>
1838         PR ada/64349  
1839         * env.c (__gnat_environ): Adjust for darwin9/darwin10.
1841 2015-01-07  Javier Miranda  <miranda@adacore.com>
1843         * sem_ch10.adb (Analyze_With_Clause): Compiling under -gnatq
1844         protect the frontend against never ending recursion caused by
1845         circularities in the sources.
1847 2015-01-07  Robert Dewar  <dewar@adacore.com>
1849         * a-reatim.adb, make.adb, exp_pakd.adb, i-cpoint.adb, sem_ch8.adb,
1850         exp_ch3.adb: Minor reformatting.
1852 2015-01-07  Doug Rupp  <rupp@adacore.com>
1854         * s-linux.ads (clockid_t): New subtype.
1855         * s-osinte-linux.ads (pragma Linker Options): Add -lrt.
1856         (clockid_t): New subtype.
1857         (clock_getres): Import system call.
1858         * s-taprop-linux.adb (System.OS_Constants): With and rename.
1859         (RT_Resolution): Remove
1860         hardcoded value and call clock_getres.
1861         * s-linux-sparc.ads, s-linux-mipsel.ads, s-linux-hppa.ads,
1862         s-linux-alpha.ads, s-linux-x32.ads (clockid_t): Add new subtype.
1864 2015-01-07  Robert Dewar  <dewar@adacore.com>
1866         * sem_warn.adb (Check_One_Unit): Guard against context item
1867         with no Entity field.
1869 2015-01-07  Vincent Celier  <celier@adacore.com>
1871         * clean.adb (Gnatclean): Warn that 'gnatclean -P' is obsolete.
1872         * make.adb (Initialize): Warn that 'gnatmake -P' is obsolete.
1874 2015-01-07  Vincent Celier  <celier@adacore.com>
1876         * prj-conf.adb (Parse_Project_And_Apply_Config): Always finalize
1877         errors/warnings in the first parsing of the project files,
1878         to display the warnings when there is no errors.
1880 2015-01-07  Tristan Gingold  <gingold@adacore.com>
1882         * i-cpoint.adb (Copy_Terminated_Array): Nicely handle null target.
1884 2015-01-07  Doug Rupp  <rupp@adacore.com>
1886         * s-taprop-vxworks.adb (Stop_All_Tasks): Pass return
1887         value from Int_Lock as parameter to Int_Unlock.
1888         * s-osinte-vxworks.ads (Int_Unlock): Add parameter.
1889         * s-vxwext.ads (Int_Unlock): Likewise.
1890         * s-vxwext-kernel.adb (intUnlock, Int_Unlock): Likewise.
1891         * s-vxwext-kernel.ads (Int_Unlock): Likewise.
1892         * s-vxwext-rtp.adb (Int_Unlock): Likewise.
1893         * s-vxwext-rtp.ads (Int_Unlock): Likewise.
1895 2015-01-07  Pierre-Marie de Rodat  <derodat@adacore.com>
1897         * exp_pakd.adb: Add a comment in exp_pakd.adb to explain why we
1898         keep ___XP suffixes
1900 2015-01-07  Tristan Gingold  <gingold@adacore.com>
1902         * i-cpoint.adb (Copy_Terminated_Array): Use Copy_Array to
1903         handle overlap.
1905 2015-01-07  Eric Botcazou  <ebotcazou@adacore.com>
1907         * sem_ch3.adb (Analyze_Full_Type_Declaration): Do not
1908         automatically set No_Strict_Aliasing on access types.
1909         * fe.h (No_Strict_Aliasing_CP): Declare.
1910         * gcc-interface/trans.c (gigi): Force flag_strict_aliasing to 0 if
1911         No_Strict_Aliasing_CP is set.
1913 2015-01-07  Johannes Kanig  <kanig@adacore.com>
1915         * sem_ch8.adb (Analyze_Subprogram_Renaming) do
1916         not build function wrapper in gnatprove mode when the package
1917         is externally axiomatized.
1919 2015-01-07  Jose Ruiz  <ruiz@adacore.com>
1921         * a-reatim.adb (Time_Of): Reduce the number of spurious overflows in
1922         intermediate computations when the parameters have different signs.
1924 2015-01-07  Javier Miranda  <miranda@adacore.com>
1926         * exp_ch3.adb (Build_Init_Procedure): For derived types,
1927         improve the code which takes care of identifying and moving to
1928         the beginning of the init-proc the call to the init-proc of the
1929         parent type.
1931 2015-01-07  Olivier Hainque  <hainque@adacore.com>
1933         * gcc-interface/trans.c (gnat_to_gnu, <N_Expression_With_Action>):
1934         Elaborate the expression as part of the same stmt group as the actions.
1936 2015-01-07  Robert Dewar  <dewar@adacore.com>
1938         * sem_ch3.adb: Minor error message change.
1940 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1942         * sem_prag.adb (Analyze_Pragma, case Preelaborable_Initialization):
1943         Following AI05-028, the pragam applies legally to any composite type.
1945 2015-01-07  Arnaud Charlet  <charlet@adacore.com>
1947         * s-osinte-vxworks.adb, s-osinte-vxworks.ads
1948         (sigwait, sigwaitinfo): Removed, not needed after all on any
1949         VxWorks configurations.
1951 2015-01-07  Robert Dewar  <dewar@adacore.com>
1953         * sem_ch3.adb, freeze.adb, exp_disp.adb: Minor reformatting.
1955 2015-01-07  Javier Miranda  <miranda@adacore.com>
1957         * exp_disp.adb (Expand_Interface_Conversion): Adding missing
1958         generation of accessibility check.
1960 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1962         * sem_ch3.adb (Derived_Type_Declaration): In the case of an
1963         illegal completion from a class- wide type, set etype of the
1964         derived type properly to prevent cascaded errors.
1966 2015-01-07  Robert Dewar  <dewar@adacore.com>
1968         * prj.ads, i-cpoint.adb, freeze.adb, ghost.adb, prj-err.adb: Minor
1969         reformatting.
1971 2015-01-07  Robert Dewar  <dewar@adacore.com>
1973         * restrict.adb (Check_Restriction_No_Use_Of_Attribute):
1974         New procedure.
1975         (OK_No_Use_Of_Entity_Name): New function.
1976         (Set_Restriction_No_Use_Of_Entity): New procedure.
1977         * restrict.ads (Check_Restriction_No_Use_Of_Attribute):
1978         New procedure.
1979         (OK_No_Use_Of_Entity_Name): New function.
1980         (Set_Restriction_No_Use_Of_Entity): New procedure.
1981         * sem_ch8.adb (Find_Direct_Name): Add check for violation of
1982         No_Use_Of_Entity.
1983         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
1984         Add processing for new restriction No_Use_Of_Entity.
1986 2015-01-07  Eric Botcazou  <ebotcazou@adacore.com>
1988         * freeze.adb (Freeze_Array_Type): Apply same handling to Is_Atomic
1989         component type as to Has_Atomic_Components type.  Remove useless
1990         test on Is_Aliased component type.
1992 2015-01-07  Hristian Kirtchev  <kirtchev@adacore.com>
1994         * alloc.ads Alphabetize several declarations. Add constants
1995         Ignored_Ghost_Units_Initial and Ignored_Ghost_Units_Increment.
1996         * atree.adb Add with and use clauses for Opt.
1997         (Allocate_Initialize_Node): Mark a node as ignored Ghost
1998         if it is created in an ignored Ghost region.
1999         (Ekind_In): New variant.
2000         (Is_Ignored_Ghost_Node): New routine.
2001         (Set_Is_Ignored_Ghost_Node): New routine.
2002         * atree.adb Aplhabetize several subprograms declarations. Flag
2003         Spare0 is now known as Is_Ignored_Ghost_Node.
2004         (Ekind_In): New variant.
2005         (Is_Ignored_Ghost_Node): New routine.
2006         (Set_Is_Ignored_Ghost_Node): New routine.
2007         * einfo.adb: Flag 279 is now known as Contains_Ignored_Ghost_Code.
2008         (Contains_Ignored_Ghost_Code): New routine.
2009         (Set_Contains_Ignored_Ghost_Code): New routine.
2010         (Set_Is_Checked_Ghost_Entity, Set_Is_Ignored_Ghost_Entity):
2011         It is now possible to set this property on an unanalyzed entity.
2012         (Write_Entity_Flags): Output the status of flag
2013         Contains_Ignored_Ghost_Code.
2014         * einfo.ads New attribute Contains_Ignored_Ghost_Code along with
2015         usage in nodes.
2016         (Contains_Ignored_Ghost_Code): New routine
2017         along with pragma Inline.
2018         (Set_Contains_Ignored_Ghost_Code): New routine along with pragma Inline.
2019         * exp_ch3.adb Add with and use clauses for Ghost.
2020         (Freeze_Type): Capture/restore the value of Ghost_Mode on entry/exit.
2021         Set the Ghost_Mode in effect.
2022         (Restore_Globals): New routine.
2023         * exp_ch7.adb (Process_Declarations): Do not process a context
2024         that invoves an ignored Ghost entity.
2025         * exp_dbug.adb (Qualify_All_Entity_Names): Skip an ignored Ghost
2026         construct that has been rewritten as a null statement.
2027         * exp_disp.adb Add with and use clauses for Ghost.
2028         (Make_DT): Capture/restore the value of Ghost_Mode on entry/exit. Set
2029         the Ghost_Mode in effect.
2030         (Restore_Globals): New routine.
2031         * exp_util.adb (Requires_Cleanup_Actions): An ignored Ghost entity
2032         does not require any clean up. Add two missing cases that deal
2033         with block statements.
2034         * freeze.adb Add with and use clauses for Ghost.
2035         (Freeze_Entity): Capture/restore the value of Ghost_Mode on entry/exit.
2036         Set the Ghost_Mode in effect.
2037         (Restore_Globals): New routine.
2038         * frontend.adb Add with and use clauses for Ghost. Remove any
2039         ignored Ghost code from all units that qualify.
2040         * ghost.adb New unit.
2041         * ghost.ads New unit.
2042         * gnat1drv.adb Add with clause for Ghost. Initialize and lock
2043         the table in package Ghost.
2044         * lib.ads: Alphabetize several subprogram declarations.
2045         * lib-xref.adb (Output_References): Do not generate reference
2046         information for ignored Ghost entities.
2047         * opt.ads Add new type Ghost_Mode_Type and new global variable
2048         Ghost_Mode.
2049         * rtsfind.adb (Load_RTU): Provide a clean environment when
2050         loading a runtime unit.
2051         * sem.adb (Analyze): Capture/restore the value of Ghost_Mode on
2052         entry/exit as the node may set a different mode.
2053         (Do_Analyze):
2054         Capture/restore the value of Ghost_Mode on entry/exit as the
2055         unit may be withed from a unit with a different Ghost mode.
2056         * sem_ch3.adb Add with and use clauses for Ghost.
2057         (Analyze_Full_Type_Declaration, Analyze_Incomplete_Type_Decl,
2058         Analyze_Number_Declaration, Analyze_Private_Extension_Declaration,
2059         Analyze_Subtype_Declaration): Set the Ghost_Mode in effect. Mark
2060         the entity as Ghost when there is a Ghost_Mode in effect.
2061         (Array_Type_Declaration): The implicit base type inherits the
2062         "ghostness" from the array type.
2063         (Derive_Subprogram): The
2064         alias inherits the "ghostness" from the parent subprogram.
2065         (Make_Implicit_Base): The implicit base type inherits the
2066         "ghostness" from the parent type.
2067         * sem_ch5.adb Add with and use clauses for Ghost.
2068         (Analyze_Assignment): Set the Ghost_Mode in effect.
2069         * sem_ch6.adb Add with and use clauses for Ghost.
2070         (Analyze_Abstract_Subprogram_Declaration, Analyze_Procedure_Call,
2071         Analyze_Subprogram_Body_Helper, Analyze_Subprogram_Declaration):
2072         Set the Ghost_Mode in effect. Mark the entity as Ghost when
2073         there is a Ghost_Mode in effect.
2074         * sem_ch7.adb Add with and use clauses for Ghost.
2075         (Analyze_Package_Body_Helper, Analyze_Package_Declaration,
2076         Analyze_Private_Type_Declaration): Set the Ghost_Mode in
2077         effect. Mark the entity as Ghost when there is a Ghost_Mode
2078         in effect.
2079         * sem_ch8.adb Add with and use clauses for Ghost.
2080         (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
2081         Analyze_Object_Renaming, Analyze_Package_Renaming,
2082         Analyze_Subprogram_Renaming): Set the Ghost_Mode in effect. Mark
2083         the entity as Ghost when there is a Ghost_Mode in effect.
2084         (Find_Type): Check the Ghost context of a type.
2085         * sem_ch11.adb Add with and use clauses for Ghost.
2086         (Analyze_Exception_Declaration): Set the Ghost_Mode in
2087         effect. Mark the entity as Ghost when there is a Ghost_Mode
2088         in effect.
2089         * sem_ch12.adb Add with and use clauses for Ghost.
2090         (Analyze_Generic_Package_Declaration,
2091         Analyze_Generic_Subprogram_Declaration): Set the Ghost_Mode in effect.
2092         Mark the entity as Ghost when there is a Ghost_Mode in effect.
2093         * sem_prag.adb Add with and use clauses for Ghost.
2094         (Analyze_Pragma): Ghost-related checks are triggered when there
2095         is a Ghost mode in effect.
2096         (Create_Abstract_State): Mark the
2097         entity as Ghost when there is a Ghost_Mode in effect.
2098         * sem_res.adb Add with and use clauses for Ghost.
2099         (Check_Ghost_Context): Removed.
2100         * sem_util.adb (Check_Ghost_Completion): Removed.
2101         (Check_Ghost_Derivation): Removed.
2102         (Incomplete_Or_Partial_View):
2103         Add a guard in case the entity has not been analyzed yet
2104         and does carry a scope.
2105         (Is_Declaration): New routine.
2106         (Is_Ghost_Entity): Removed.
2107         (Is_Ghost_Statement_Or_Pragma):
2108         Removed.
2109         (Is_Subject_To_Ghost): Removed.
2110         (Set_Is_Ghost_Entity):
2111         Removed.
2112         (Within_Ghost_Scope): Removed.
2113         * sem_util.adb (Check_Ghost_Completion): Removed.
2114         (Check_Ghost_Derivation): Removed.
2115         (Is_Declaration): New routine.
2116         (Is_Ghost_Entity): Removed.
2117         (Is_Ghost_Statement_Or_Pragma): Removed.
2118         (Is_Subject_To_Ghost): Removed.
2119         (Set_Is_Ghost_Entity): Removed.
2120         (Within_Ghost_Scope): Removed.
2121         * sinfo.ads Add a section on Ghost mode.
2122         * treepr.adb (Print_Header_Flag): New routine.
2123         (Print_Node_Header): Factor out code. Output flag
2124         Is_Ignored_Ghost_Node.
2125         * gcc-interface/Make-lang.in: Add dependency for unit Ghost.
2127 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
2129         * freeze.adb (Freeze_Array_Type) <Complain_CS>: Remove always
2130         true test and unreachable 'else' arm.
2132 2015-01-06  Vincent Celier  <celier@adacore.com>
2134         * prj-conf.adb (Check_Target): Improve error message when
2135         there are mismatched targets between the on in the configuration
2136         project file and the specified one, either in the main project
2137         file or in the --target= switch.
2139 2015-01-06  Pascal Obry  <obry@adacore.com>
2141         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Mode and
2142         Install_Name attribute definitions.
2144 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2146         * freeze.adb (Wrap_Imported_Subprogram): Indicate that the
2147         generated Import pragma for the internal imported procedure does
2148         not come from an aspect, so that Is_Imported can be properly
2149         set for it.
2151 2015-01-06  Gary Dismukes  <dismukes@adacore.com>
2153         * sem_ch12.adb (Might_Inline_Subp): Record whether
2154         any subprograms in the generic package are marked with
2155         pragma Inline_Always (setting flag Has_Inline_Always).
2156         (Analyze_Package_Instantiation): Add test of Has_Inline_Always
2157         alongside existing test of Front_End_Inlining as alternative
2158         conditions for setting Inline_Now. Also add test of
2159         Has_Inline_Always along with Front_End_Inlining test as an
2160         alternative condition for setting Needs_Body to False.
2162 2015-01-06  Tristan Gingold  <gingold@adacore.com>
2164         * i-cpoint.adb (Copy_Array): Handle overlap.
2166 2015-01-06  Pascal Obry  <obry@adacore.com>
2168         * bindgen.adb: Minor style fix.
2170 2015-01-06  Robert Dewar  <dewar@adacore.com>
2172         * sem_util.ads, sem_util.adb: Minor reformatting.
2174 2015-01-06  Vincent Celier  <celier@adacore.com>
2176         * prj-conf.adb (Parse_Project_And_Apply_Config): Reset incomplete
2177         with flags before parsing the projects.
2178         * prj-err.adb (Error_Msg): Do nothing if there are incomplete withs.
2179         * prj-part.adb (Post_Parse_Context_Clause): Set Incomplete_Withs
2180         to True in the flags, when Ignore_Missing_With is True and an
2181         imported project cannot be found.
2182         * prj-proc.adb (Expression): When there are incomplete withs and
2183         a variable or attribute is not found, set the variable/attribute
2184         to unknown.
2185         * prj.ads (Processing_Flags): New flag Incomplete_Withs,
2186         defaulted to False.
2188 2015-01-06  Vasiliy Fofanov  <fofanov@adacore.com>
2190         * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-conf.adb,
2191         prj-err.adb: Add new switch --no-command-line.
2193 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2195         * sem_ch12.adb: Sloc of wrapper is that of instantiation.
2197 2015-01-06  Robert Dewar  <dewar@adacore.com>
2199         * sem_ch11.adb: Minor reformatting.
2201 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2203         * exp_aggr.adb (Get_Assoc_Expr): New routine internal to
2204         Build_Array_Aggr_Code, used to initialized components covered
2205         by a box association. If the component type is scalar and has
2206         a default aspect, use it to initialize such components.
2208 2015-01-06  Pascal Obry  <obry@adacore.com>
2210         * rtinit.c (__gnat_runtime_initialize): Add a parameter to
2211         control the setup of the exception handler.
2212         * initialize.c: Remove unused declaration.
2213         * bindgen.adb: Always call __gnat_runtime_initialize and pass
2214         whether the exeception handler must be set or not.
2216 2015-01-06  Thomas Quinot  <quinot@adacore.com>
2218         * freeze.adb (Set_SSO_From_Defaults): When setting scalar storage
2219         order to native from default, make sure to also adjust bit order.
2220         * exp_aggr.adb: Minor reformatting.
2222 2015-01-06  Robert Dewar  <dewar@adacore.com>
2224         * s-valllu.adb, s-valllu.ads, s-valuti.ads, s-valuns.adb, s-valuns.ads,
2225         s-valrea.adb, s-valrea.ads: Add some additional guards for
2226         Str'Last = Positive'Last.
2228 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2230         * sem_ch12.adb, sem_ch8.adb: Ongoing work for wrappers for actual
2231         subprograms.
2233 2015-01-06  Javier Miranda  <miranda@adacore.com>
2235         * exp_disp.adb (Expand_Interface_Conversion): Reapply patch.
2237 2015-01-06  Thomas Quinot  <quinot@adacore.com>
2239         * sem_util.ads: Minor reformatting.
2240         * sem_cat.adb (In_RCI_Visible_Declarations): Change back to...
2241         (In_RCI_Declaration) Return to old name, as proper checking of
2242         entity being in the visible part depends on entity kind and must
2243         be done by the caller.
2245 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2247         * sem_ch12.adb, sem_ch12.ads, sem_ch8.adb: Ongoing work for wrappers
2248         for operators in SPARK.
2250 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2252         * sem_aggr.adb (Get_Value): In ASIS mode, preanalyze the
2253         expression in an others association before making copies for
2254         separate resolution and accessibility checks. This ensures that
2255         the type of the expression is available to ASIS in all cases,
2256         in particular if the expression is itself an aggregate.
2258 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
2260         * einfo.ads (Has_Independent_Components): Document extended
2261         usage.
2262         * einfo.adb (Has_Independent_Components): Remove obsolete assertion.
2263         (Set_Has_Independent_Components): Adjust assertion.
2264         * sem_prag.adb (Analyze_Pragma): Also set Has_Independent_Components
2265         for pragma Atomic_Components.  Set Has_Independent_Components
2266         on the object instead of the type for an object declaration with
2267         pragma Independent_Components.
2269 2015-01-06  Olivier Hainque  <hainque@adacore.com>
2271         * set_targ.adb (Read_Target_Dependent_Values): Set
2272         Long_Double_Index when "long double" is read.
2273         (elaboration code): Register_Back_End_Types only when not reading from
2274         config files. Doing otherwise is pointless and error prone.
2276 2015-01-06  Robert Dewar  <dewar@adacore.com>
2278         * s-valrea.adb (Value_Real): Check for Str'Last = Positive'Last
2280 2015-01-06  Robert Dewar  <dewar@adacore.com>
2282         * a-wtgeau.adb, a-ztgeau.adb, a-tigeau.adb (String_Skip): Raise PE if
2283         Str'Last = Positive'Last.
2285 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2287         * sem_ch6.adb (Matches_Limited_View): Handle properly the case
2288         where the non-limited type is a generic actual and appears as
2289         a subtype of the non-limited view of the other.
2290         * freeze.adb (Build_Renamed_Body): If the return type of the
2291         declaration that is being completed is a limited view and the
2292         non-limited view is available, use it in the specification of
2293         the generated body.
2295 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2297         * sem_ch3.adb (Find_Type_Name): If there is a previous tagged
2298         incomplete view, the type of the classwide type common to both
2299         views is the type being declared.
2301 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
2303         * einfo.ads (Is_Independent): Further document extended usage.
2305 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
2307         * einfo.ads (Is_Independent): Document extended usage.
2308         * einfo.adb (Is_Independent): Remove obsolete assertion.
2309         (Set_Is_Independent): Likewise.
2310         * sem_prag.adb (Process_Atomic_Shared_Volatile): Rename into...
2311         (Process_Atomic_Independent_Shared_Volatile): ...this.
2312         Deal with pragma Independent here.
2313         (Analyze_Pragma): Adjust
2314         to above renaming and also invoke it for pragma Independent.
2315         Adjust comment for Independent_Components.
2317 2015-01-06  Robert Dewar  <dewar@adacore.com>
2319         * snames.ads-tmpl: Remove entries for attribute Enum_Image.
2320         * exp_attr.adb: Remove reference to Attribute_Enum_Image.
2322 2015-01-06  Robert Dewar  <dewar@adacore.com>
2324         * s-vallli.adb (Value_Long_Long_Integer): Handle case of Str'Last
2325         = Positive'Last.
2326         * s-valllu.adb (Value_Long_Long_Unsigned): Handle case of
2327         Str'Last = Positive'Last.
2329 2015-01-06  Robert Dewar  <dewar@adacore.com>
2331         * sem_prag.adb (Process_Inline): Remove redundant construct
2332         warning (-gnatw.r) for an ineffective pragma Inline.
2334 2015-01-06  Robert Dewar  <dewar@adacore.com>
2336         * s-valint.adb: Fix typo in last checkin.
2337         * s-valuns.adb (Value_Unsigned): More efficient fix for
2338         Positive'Last case.
2339         * sem_attr.adb (Analyze_Attribute): Minor reformatting
2340         (Eval_Attribute): Static ervaluation of 'Img for enumeration types.
2342 2015-01-06  Robert Dewar  <dewar@adacore.com>
2344         * s-valint.adb, s-valuns.adb (Value_Integer): Deal with case where
2345         Str'Last = Positive'Last
2347 2015-01-06  Thomas Quinot  <quinot@adacore.com>
2349         * xoscons.adb: Display exception information and return non-zero
2350         exit status in top level exception handler.
2352 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2354         * sem_ch8.adb: Code clean up.
2356 2015-01-06  Tristan Gingold  <gingold@adacore.com>
2358         * targparm.ads: Remove obsolete comment.
2360 2015-01-06  Olivier Hainque  <hainque@adacore.com>
2362         * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Variable): When
2363         constructing a ref to variable, update inner_const_flag from the
2364         variable TREE_READONLY attribute.
2365         * gcc-interface/targtyps.c (WIDEST_HARDWARE_FP_SIZE): Remove default
2366         definition.
2367         (get_target_float_size): Remove.
2368         (get_target_double_size): Remove.
2369         (get_target_long_double_size): Remove.
2371 2015-01-06  Pascal Obry  <obry@adacore.com>
2373         * adaint.c (ProcListEvt): Set to NULL.
2374         * rtinit.c: New file.
2375         (__gnat_rt_init_count): New reference counter set to 0.
2376         (__gnat_runtime_initialize): Move code here from __gnat_initialize when
2377         this code is actually needed for the runtime initialization. This
2378         routine returns immediately if the initialization has already been done.
2379         * final.c: Revert previous change.
2380         * rtfinal.c: New file.
2381         (__gnat_runtime_finalize)[Win32]: Add finalization of the critical
2382         section and event. The default version of this routine is empty (except
2383         for the reference counting code). This routine returns immediately if
2384         some others libraries are referencing the runtime.
2385         * bindgen.adb (Gen_Adainit): Generate call to Runtime_Initialize
2386         remove circuitry to initialize the signal handler as this is
2387         now done by the runtime initialization routine.
2388         (Gen_Adafinal): Generate call to Runtime_Finalize.
2389         * gnat_ugn.texi: Update documentation about concurrency and
2390         initialization/finalization of the run-time.
2391         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Add
2392         references to rtfinal.o and rtinit.o
2394 2015-01-06  Robert Dewar  <dewar@adacore.com>
2396         * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
2397         for Enum_Image.
2398         * sem_attr.adb: Implement Enum_Image attribute.
2399         * snames.ads-tmpl: Add entries for Enum_Image attribute.
2401 2015-01-06  Robert Dewar  <dewar@adacore.com>
2403         * namet.ads: Document use of Boolean2 for No_Use_Of_Entity.
2404         * restrict.ads (No_Use_Of_Entity): New table.
2405         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
2406         Ignore No_Use_Of_Entity (will be processed in parser).
2407         * snames.ads-tmpl: Add entry for Name_No_Use_Of_Entity.
2409 2015-01-06  Vincent Celier  <celier@adacore.com>
2411         * prj-tree.adb (Imported_Or_Extended_Project_Of): Do not try
2412         to check for an extended project, if a project does not have
2413         yet a project declaration.
2415 2015-01-06  Pierre-Marie Derodat  <derodat@adacore.com>
2417         * scos.ads: Update documentation about the SCO table build
2418         process and about table records format.
2419         * par_sco.ads (SCO_Record): Rename to SCO_Record_Raw.
2420         (SCO_Record_Filtered): New procedure.
2421         (Set_SCO_Logical_Operator): New procedure.
2422         (dsco): Update documentation.
2423         * par_sco.adb: Update library-level comments.
2424         (SCO_Generation_State_Type): New type.
2425         (SCO_Generation_State): New variable.
2426         (SCO_Raw_Table): New package instanciation.
2427         (Condition_Pragma_Hash_Table): Rename to SCO_Raw_Hash_Table.
2428         ("<"): New.
2429         (Tristate): New type.
2430         (Is_Logical_Operator): Return Tristate and update documentation.
2431         (Has_Decision): Update call to Is_Logical_Operator and complete
2432         documentation.
2433         (Set_Table_Entry): Rename to Set_Raw_Table_Entry, update
2434         comment, add an assertion for state checking and change
2435         references to SCO_Table into SCO_Raw_Table.
2436         (dsco): Refactor to dump the raw and the filtered tables.
2437         (Process_Decisions.Output_Decision_Operand): Handle putative
2438         short-circuit operators.
2439         (Process_Decisions.Output_Element): Update references
2440         to Set_Table_Entry and to Condition_Pragma_Hash_Table.
2441         (Process_Decisions.Process_Decision_Operand): Update call
2442         to Is_Logical_Operator.
2443         (Process_Decisions.Process_Node): Handle putative short-circuit
2444         operators and change references to
2445         SCO_Table into SCO_Raw_Table.
2446         (SCO_Output): Add an assertion
2447         for state checking and remove code that used to stamp out SCO entries.
2448         (SCO_Pragma_Disabled): Change reference to SCO_Table
2449         into SCO_Raw_Table.
2450         (SCO_Record): Rename to SCO_Record_Raw,
2451         add an assertion for state checking and change references
2452         to SCO_Table into SCO_Raw_Table.
2453         (Set_SCO_Condition): Add an assertion for state checking, update
2454         references to Condition_Pragma_Hash_Table and change references to
2455         SCO_Table into SCO_Raw_Table.
2456         (Set_SCO_Pragma_Enabled): Add an assertion for state checking and
2457         change references to SCO_Table into SCO_Raw_Table.
2458         (Set_SCO_Logical_Operator): New procedure.
2459         (Traverse_Declarations_Or_Statements.Set_Statement_Entry): Update
2460         references to Set_Table_Entry and to Condition_Pragma_Hash_Table.
2461         (SCO_Record_Fildered): New procedure.
2462         * gnat1drv.adb (Gnat1drv): Invoke the SCO filtering pass.
2463         * lib-writ.adb (Write_ALI): Invoke the SCO filtering pass and
2464         output SCOs.
2465         * par-load.adb (Load): Update reference to SCO_Record.
2466         * par.adb (Par): Update reference to SCO_Record.
2467         * put_scos.adb (Put_SCOs): Add an assertion to check that no
2468         putative SCO condition reaches this end.
2469         * sem_ch10.adb (Analyze_Proper_Body): Update reference to SCO_Record.
2470         * sem_res.adb (Resolve_Logical_Op): Validate putative SCOs
2471         when corresponding to an "and"/"or" operator affected by the
2472         Short_Circuit_And_Or pragma.
2474 2015-01-06  Robert Dewar  <dewar@adacore.com>
2476         * sem_ch8.adb (Analyze_Use_Package): Give more specific error
2477         msg for attempted USE of generic subprogram or subprogram.
2479 2015-01-06  Robert Dewar  <dewar@adacore.com>
2481         * s-valllu.adb, a-tiinau.adb, a-timoau.adb, a-ztinau.adb, a-ztmoau.adb,
2482         s-valuns.adb, s-valrea.adb, a-wtflau.adb, a-tiflau.adb, a-ztflau.adb,
2483         a-wtinau.adb, a-wtmoau.adb: Document recognition of : in place of #.
2485 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2487         * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
2488         that specify stream subprograms, if the prefix is a class-wide
2489         type then the generated attribute definition clause must apply
2490         to the same class-wide type.
2491         (Default_Iterator): An iterator defined by an aspect of some
2492         container type T must have a first parameter of type T, T'class,
2493         or an access to such (from code reading RM 5.5.1 (2/3)).
2495 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
2497         * gnat1drv.adb: Minor: complete previous change.
2499 2015-01-06  Olivier Hainque  <hainque@adacore.com>
2501         * set_targ.ads (C_Type_For): New function. Return the name of
2502         a C type supported by the back-end and suitable as a basis to
2503         construct the standard Ada floating point type identified by
2504         the T parameter. This is used as a common ground to feed both
2505         ttypes values and the GNAT tree nodes for the standard floating
2506         point types.
2507         * set_targ.adb (Long_Double_Index): The index at which "long
2508         double" gets registered in the FPT_Mode_Table. This is useful to
2509         know whether we have a "long double" available at all and get at
2510         it's characteristics without having to search the FPT_Mode_Table
2511         when we need to decide which C type should be used as the
2512         basis for Long_Long_Float in Ada.
2513         (Register_Float_Type): Fill Long_Double_Index.
2514         (FPT_Mode_Index_For): New function. Return the index in
2515         FPT_Mode_Table that designates the entry corresponding to the
2516         provided C type name.
2517         (FPT_Mode_Index_For): New function. Return the index in
2518         FPT_Mode_Table that designates the entry for a back-end type
2519         suitable as a basis to construct the standard Ada floating point
2520         type identified by the input T parameter.
2521         (elaboration code): Register_Back_End_Types unconditionally,
2522         so C_Type_For can operate regardless of -gnateT. Do it
2523         early so we can query it for the floating point sizes, via
2524         FPT_Mode_Index_For. Initialize Float_Size, Double_Size and
2525         Long_Double_Size from the FPT_Mode_Table, as cstand will do.
2526         * cstand.adb (Create_Float_Types): Use C_Type_For to determine
2527         which C type should be used as the basis for the construction
2528         of the Standard Ada floating point types.
2529         * get_targ.ads (Get_Float_Size, Get_Double_Size,
2530         Get_Long_Double_Size): Remove.
2531         * get_targ.adb: Likewise.
2533 2015-01-06  Thomas Quinot  <quinot@adacore.com>
2535         * sem_cat.adb (In_RCI_Declaration): Remove unnecessary
2536         parameter and rename to...
2537         (In_RCI_Visible_Declarations): Fix handling of private part of nested
2538         package.
2539         (Validate_RCI_Subprogram_Declaration): Reject illegal function
2540         returning anonymous access in RCI unit.
2542 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2544         * sem_ch6.adb (New_Overloaded_Entity): In GNATprove mode, a
2545         function wrapper may be a homonym of another local declaration.
2546         * sem_ch8.adb (Analyze_Subprogram_Renaming): In GNATprove mode,
2547         build function and operator wrappers after the actual subprogram
2548         has been resolved, and replace the standard renaming declaration
2549         with the declaration of wrapper.
2550         * sem_ch12.ads (Build_Function_Wrapper, Build_Operator_Wraooer):
2551         make public for use elsewhere.
2552         * sem_ch12.adb (Build_Function_Wrapper, Build_Operator_Wraooer):
2553         rewrite, now that actual is fully resolved when wrapper is
2554         constructed.
2556 2015-01-06  Javier Miranda  <miranda@adacore.com>
2558         * exp_disp.adb: Revert previous change.
2560 2015-01-06  Robert Dewar  <dewar@adacore.com>
2562         * exp_util.adb: Change name Name_Table_Boolean to
2563         Name_Table_Boolean1.
2564         * namet.adb: Change name Name_Table_Boolean to Name_Table_Boolean1
2565         Introduce Name_Table_Boolean2/3.
2566         * namet.ads: Change name Name_Table_Boolean to Name_Table_Boolean1
2567         Introduce Name_Table_Boolean2/3.
2568         * par-ch13.adb: Change name Name_Table_Boolean to
2569         Name_Table_Boolean1.
2571 2015-01-06  Bob Duff  <duff@adacore.com>
2573         * gnat_rm.texi: Improve documentation regarding No_Task_Termination.
2575 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2577         * sem_aggr.adb (Resolve_Record_Aggregte, Get_Value): For an
2578         others choice that covers multiple components, analyze each
2579         copy with the type of the component even in compile-only mode,
2580         to detect potential accessibility errors.
2582 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
2584         * sem_res.adb (Is_Assignment_Or_Object_Expression): New routine.
2585         (Resolve_Actuals): An effectively volatile out
2586         parameter cannot act as an in or in out actual in a call.
2587         (Resolve_Entity_Name): An effectively volatile out parameter
2588         cannot be read.
2590 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2592         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): If the body is
2593         the expansion of an expression function it may be pre-analyzed
2594         if a 'access attribute is applied to the function, in which case
2595         last_entity may have been assigned already.
2597 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2599         * sem_ch4.adb (Analyze_One_Call): If formal has an incomplete
2600         type and actual has the corresponding full view, there is no
2601         error, but a case of use of incomplete type in a predicate or
2602         invariant expression.
2604 2015-01-06  Vincent Celier  <celier@adacore.com>
2606         * makeutl.adb (Insert_No_Roots): Make sure that the same source
2607         in two different project tree is checked in both trees, if they
2608         are sources of two different projects, extended or not.
2610 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
2612         * gnat1drv.adb: Minor code clean up.
2613         (Adjust_Global_Switches): Ignore gnatprove_mode in codepeer_mode.
2615 2015-01-06  Bob Duff  <duff@adacore.com>
2617         * osint.adb (Read_Source_File): Don't print out
2618         file name unless T = Source.
2620 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2622         * sem_util.adb (Is_Variable, Is_OK_Variable_For_Out_Formal):
2623         recognize improper uses of constant_reference types as actuals
2624         for in-out parameters.
2625         (Check_Function_Call): Do not collect identifiers if function
2626         name is missing because of previous error.
2628 2015-01-06  Robert Dewar  <dewar@adacore.com>
2630         * ali-util.adb, sem_prag.adb, rtsfind.adb, sem_util.adb, sem_res.adb,
2631         ali.adb, binde.adb, namet.adb, namet.ads, gnatls.adb, bcheck.adb:
2632         Minor change of name Name_Table_Info => Name_Table_Int.
2634 2015-01-06  Robert Dewar  <dewar@adacore.com>
2636         * exp_strm.adb (Build_Elementary_Input_Call): Clarify comments
2637         in previous checkin.
2638         * freeze.adb (Freeze_Fixed_Point_Type): Add warning for shaving
2639         of bounds.
2640         * sem_prag.adb, sem_ch10.adb, sem_ch6.adb: Minor reformatting.
2642 2015-01-06  Vincent Celier  <celier@adacore.com>
2644         * a-strsup.adb (Times (Natural;String;Positive)): Raise
2645         Length_Error, not Index_Error, when the result is too long.
2647 2015-01-06  Thomas Quinot  <quinot@adacore.com>
2649         * a-direct.adb (Create_Path): Minor error handling and
2650         performance improvement.
2652 2015-01-06  Robert Dewar  <dewar@adacore.com>
2654         * checks.ads, sem_ch12.adb: Minor reformatting.
2655         * exp_ch4.adb (Expand_N_Op_Divide): Generate explicit divide by
2656         zero check for fixed-point case if Backend_Divide_Checks_On_Target
2657         is False.
2659 2015-01-06  Robert Dewar  <dewar@adacore.com>
2661         * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
2662         Do not set restriction No_Elaboration_Code unless the pragma
2663         appears in the main unit).
2665 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2667         * sem_ch10.adb (Is_Regular_With_Clause): Add guard to verify
2668         that with clause has already been analyzed before checking kind
2669         of with_clause.
2671 2015-01-06  Robert Dewar  <dewar@adacore.com>
2673         * exp_strm.adb (Build_Elementary_Input_Call): Return base type
2674         (as required by RM).
2676 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
2678         * a-reatim.adb ("/"): Add explicit pragma Unsuppress (Division_Check).
2680 2015-01-06  Robert Dewar  <dewar@adacore.com>
2682         * sem_prag.adb (Process_Suppress_Unsuppress): Add extra warning
2683         for ignoring pragma Suppress (Elaboration_Check) in SPARK mode.
2685 2015-01-06  Javier Miranda  <miranda@adacore.com>
2687         * exp_disp.adb (Expand_Interface_Conversion): No displacement
2688         of the pointer to the object needed when the type of the operand
2689         is not an interface type and the interface is one of its parent
2690         types (since they share the primary dispatch table).
2692 2015-01-06  Vincent Celier  <celier@adacore.com>
2694         * prj-env.adb: Minor comment update.
2696 2015-01-06  Javier Miranda  <miranda@adacore.com>
2698         * sem_res.adb (Valid_Conversion): Restrict the checks on anonymous
2699         access types whose target type is an interface type to operands
2700         that are access types; required to report an error when the
2701         operand is not an access type.
2703 2015-01-06  Bob Duff  <duff@adacore.com>
2705         * a-cfinve.adb (Copy): Set the discriminant to the Length when
2706         Capacity = 0.
2707         * a-cofove.ads (Capacity): Add a postcondition.
2708         * a-cfinve.ads (Capacity): Add a postcondition.
2709         (Reserve_Capacity): Correct the postcondition in the case where
2710         Capacity = 0; that means "Capacity => Length (Container)".
2711         * a-cofove.adb (Elems[c]): Add a comment
2712         explaining the dangers and how to avoid them.
2714 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2716         * sem_ch12.adb: Code clean up.
2718 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
2720         * gnatvsn.ads: Bump copyright year.
2722 2015-01-06  Robert Dewar  <dewar@adacore.com>
2724         * s-taskin.ads, s-traces.ads: Minor reformatting.
2725         * exp_util.adb: Minor typo fix.
2727 2015-01-06  Vincent Celier  <celier@adacore.com>
2729         * gnatls.adb (Search_RTS): Invoke Initialize_Default_Project_Path
2730         with the runtime name.
2731         * prj-env.adb (Initialize_Default_Project_Path): When both
2732         Target_Name and Runtime_Name are not empty string, add to the
2733         project path the two directories .../lib/gnat and .../share/gpr
2734         related to the runtime.
2735         * prj-env.ads (Initialize_Default_Project_Path): New String
2736         parameter Runtime_Name, defaulted to the empty string.
2738 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
2740         * frontend.adb: Guard against the case where a configuration
2741         pragma may be split into multiple pragmas and the original
2742         rewritten as a null statement.
2743         * sem_prag.adb (Analyze_Pragma): Insert a brand new Check_Policy
2744         pragma using Insert_Before rather than Insert_Action. This
2745         takes care of the configuration pragma case where Insert_Action
2746         would fail.
2748 2015-01-06  Bob Duff  <duff@adacore.com>
2750         * a-coboho.ads (Element_Access): Add "pragma
2751         No_Strict_Aliasing (Element_Access);". This is needed because
2752         we are unchecked-converting from Address to Element_Access.
2753         * a-cofove.ads, a-cofove.adb (Elems,Elemsc): Fix bounds of the
2754         result to be 1.
2756 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
2758         * sem_res.adb (Resolve_Actuals): Remove the
2759         restriction which prohibits volatile actual parameters with
2760         enabled external propery Async_Writers to act appear in procedure
2761         calls where the corresponding formal is of mode OUT.
2763 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
2765         * gnat_ugn.texi: Bump @copying's copyright year.
2767 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
2769         PR ada/64492
2770         * gcc-interface/Makefile.in (../stamp-tools): Reinstate dropped code.
2772 2015-01-04  Uros Bizjak  <ubizjak@gmail.com>
2774         * gcc-interface/misc.c (internal_error_function): Use xasprintf instead
2775         of unchecked asprintf.
2778 Copyright (C) 2015 Free Software Foundation, Inc.
2780 Copying and distribution of this file, with or without modification,
2781 are permitted in any medium without royalty provided the copyright
2782 notice and this notice are preserved.