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