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